/*! jQuery v3.3.1 | (c) JS Foundation and other contributors | jquery.org/license */

//     Underscore.js 1.5.1
//     http://underscorejs.org
//     (c) 2009-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
//     Underscore may be freely distributed under the MIT license.

/**
 * @license RequireJS text 2.0.13+ Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/requirejs/text for details
 */

/*!
 * JavaScript Cookie v2.2.0
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */

//     (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
//     Backbone may be freely distributed under the MIT license.
//     For all details and documentation:
//     http://backbonejs.org

/*
  backbone.paginator
  http://github.com/backbone-paginator/backbone.paginator

  Copyright (c) 2016 Jimmy Yuen Ho Wong and contributors
  Licensed under the MIT @license.
*/

/*
 * SimpleModal @VERSION - jQuery Plugin
 * http://simplemodal.com/
 * Copyright (c) 2014 Eric Martin
 * Licensed under MIT and GPL
 * Date:
 */

/*
Copyright 2012 Igor Vaynberg

Version: 3.5.2 Timestamp: Sat Nov  1 14:43:36 EDT 2014

This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
General Public License version 2 (the "GPL License"). You may choose either license to govern your
use of this software only upon the condition that you accept all of the terms of either the Apache
License or the GPL License.

You may obtain a copy of the Apache License and the GPL License at:

    http://www.apache.org/licenses/LICENSE-2.0
    http://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the
Apache License or the GPL License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
the specific language governing permissions and limitations under the Apache License and the GPL License.
*/

/*! jQuery UI - v1.12.1 - 2018-01-23
* http://jqueryui.com
* Includes: widget.js, keycode.js, unique-id.js, widgets/datepicker.js, widgets/progressbar.js, widgets/tabs.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */

/*
 * jQuery Iframe Transport Plugin
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2011, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/*! jQuery UI - v1.11.1 - 2014-09-17
* http://jqueryui.com
* Includes: widget.js
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */

/*!
 * jQuery UI Widget 1.11.1
 * http://jqueryui.com
 *
 * Copyright 2014 jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/jQuery.widget/
 */

/*
 * jQuery File Upload Plugin
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/*
 * jQuery File Upload Processing Plugin
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2012, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/*
 * jQuery File Upload Validation Plugin
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2013, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/*
 * jQuery File Upload User Interface Plugin
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function i(e,t,i){var n,s=(t=t||re).createElement("script");if(s.text=e,i)for(n in Le)i[n]&&(s[n]=i[n]);t.head.appendChild(s).parentNode.removeChild(s)}function n(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?he[pe.call(e)]||"object":typeof e}function s(e){var t=!!e&&"length"in e&&e.length,i=n(e);return!ye(e)&&!Ye(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function a(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function r(e,t,i){return ye(t)?ve.grep(e,function(e,n){return!!t.call(e,n,e)!==i}):t.nodeType?ve.grep(e,function(e){return e===t!==i}):"string"!=typeof t?ve.grep(e,function(e){return ce.call(t,e)>-1!==i}):ve.filter(t,e,i)}function o(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function d(e){var t={};return ve.each(e.match(Ze)||[],function(e,i){t[i]=!0}),t}function l(e){return e}function u(e){throw e}function c(e,t,i,n){var s;try{e&&ye(s=e.promise)?s.call(e).done(t).fail(i):e&&ye(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}function h(){re.removeEventListener("DOMContentLoaded",h),e.removeEventListener("load",h),ve.ready()}function p(e,t){return t.toUpperCase()}function m(e){return e.replace(Fe,"ms-").replace(je,p)}function _(){this.expando=ve.expando+_.uid++}function f(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Qe.test(e)?JSON.parse(e):e)}function g(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(Be,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=f(i)}catch(e){}Ne.set(e,t,i)}else i=void 0;return i}function y(e,t,i,n){var s,a,r=20,o=n?function(){return n.cur()}:function(){return ve.css(e,t,"")},d=o(),l=i&&i[3]||(ve.cssNumber[t]?"":"px"),u=(ve.cssNumber[t]||"px"!==l&&+d)&&Ae.exec(ve.css(e,t));if(u&&u[3]!==l){for(d/=2,l=l||u[3],u=+d||1;r--;)ve.style(e,t,u+l),(1-a)*(1-(a=o()/d||.5))<=0&&(r=0),u/=a;u*=2,ve.style(e,t,u+l),i=i||[]}return i&&(u=+u||+d||0,s=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=l,n.start=u,n.end=s)),s}function Y(e){var t,i=e.ownerDocument,n=e.nodeName,s=Ie[n];return s||(t=i.body.appendChild(i.createElement(n)),s=ve.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),Ie[n]=s,s)}function L(e,t){for(var i,n,s=[],a=0,r=e.length;a<r;a++)(n=e[a]).style&&(i=n.style.display,t?("none"===i&&(s[a]=We.get(n,"display")||null,s[a]||(n.style.display="")),""===n.style.display&&Ge(n)&&(s[a]=Y(n))):"none"!==i&&(s[a]="none",We.set(n,"display",i)));for(a=0;a<r;a++)null!=s[a]&&(e[a].style.display=s[a]);return e}function v(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&a(e,t)?ve.merge([e],i):i}function M(e,t){for(var i=0,n=e.length;i<n;i++)We.set(e[i],"globalEval",!t||We.get(t[i],"globalEval"))}function b(e,t,i,s,a){for(var r,o,d,l,u,c,h=t.createDocumentFragment(),p=[],m=0,_=e.length;m<_;m++)if((r=e[m])||0===r)if("object"===n(r))ve.merge(p,r.nodeType?[r]:r);else if(Ve.test(r)){for(o=o||h.appendChild(t.createElement("div")),d=(ze.exec(r)||["",""])[1].toLowerCase(),l=qe[d]||qe._default,o.innerHTML=l[1]+ve.htmlPrefilter(r)+l[2],c=l[0];c--;)o=o.lastChild;ve.merge(p,o.childNodes),(o=h.firstChild).textContent=""}else p.push(t.createTextNode(r));for(h.textContent="",m=0;r=p[m++];)if(s&&ve.inArray(r,s)>-1)a&&a.push(r);else if(u=ve.contains(r.ownerDocument,r),o=v(h.appendChild(r),"script"),u&&M(o),i)for(c=0;r=o[c++];)Ue.test(r.type||"")&&i.push(r);return h}function T(){return!0}function D(){return!1}function w(){try{return re.activeElement}catch(e){}}function S(e,t,i,n,s,a){var r,o;if("object"==typeof t){"string"!=typeof i&&(n=n||i,i=void 0);for(o in t)S(e,o,i,n,t[o],a);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=D;else if(!s)return e;return 1===a&&(r=s,(s=function(e){return ve().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=ve.guid++)),e.each(function(){ve.event.add(this,t,s,n,i)})}function k(e,t){return a(e,"table")&&a(11!==t.nodeType?t:t.firstChild,"tr")?ve(e).children("tbody")[0]||e:e}function C(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function H(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function x(e,t){var i,n,s,a,r,o,d,l;if(1===t.nodeType){if(We.hasData(e)&&(a=We.access(e),r=We.set(t,a),l=a.events)){delete r.handle,r.events={};for(s in l)for(i=0,n=l[s].length;i<n;i++)ve.event.add(t,s,l[s][i])}Ne.hasData(e)&&(o=Ne.access(e),d=ve.extend({},o),Ne.set(t,d))}}function Z(e,t){var i=t.nodeName.toLowerCase();"input"===i&&Ke.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function P(e,t,n,s){t=le.apply([],t);var a,r,o,d,l,u,c=0,h=e.length,p=h-1,m=t[0],_=ye(m);if(_||h>1&&"string"==typeof m&&!ge.checkClone&&rt.test(m))return e.each(function(i){var a=e.eq(i);_&&(t[0]=m.call(this,i,a.html())),P(a,t,n,s)});if(h&&(a=b(t,e[0].ownerDocument,!1,e,s),r=a.firstChild,1===a.childNodes.length&&(a=r),r||s)){for(d=(o=ve.map(v(a,"script"),C)).length;c<h;c++)l=a,c!==p&&(l=ve.clone(l,!0,!0),d&&ve.merge(o,v(l,"script"))),n.call(e[c],l,c);if(d)for(u=o[o.length-1].ownerDocument,ve.map(o,H),c=0;c<d;c++)l=o[c],Ue.test(l.type||"")&&!We.access(l,"globalEval")&&ve.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?ve._evalUrl&&ve._evalUrl(l.src):i(l.textContent.replace(ot,""),u,l))}return e}function J(e,t,i){for(var n,s=t?ve.filter(t,e):e,a=0;null!=(n=s[a]);a++)i||1!==n.nodeType||ve.cleanData(v(n)),n.parentNode&&(i&&ve.contains(n.ownerDocument,n)&&M(v(n,"script")),n.parentNode.removeChild(n));return e}function X(e,t,i){var n,s,a,r,o=e.style;return(i=i||lt(e))&&(""!==(r=i.getPropertyValue(t)||i[t])||ve.contains(e.ownerDocument,e)||(r=ve.style(e,t)),!ge.pixelBoxStyles()&&dt.test(r)&&ut.test(t)&&(n=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=s,o.maxWidth=a)),void 0!==r?r+"":r}function F(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function j(e){if(e in ft)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=_t.length;i--;)if((e=_t[i]+t)in ft)return e}function E(e){var t=ve.cssProps[e];return t||(t=ve.cssProps[e]=j(e)||e),t}function W(e,t,i){var n=Ae.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function N(e,t,i,n,s,a){var r="width"===t?1:0,o=0,d=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(d+=ve.css(e,i+Re[r],!0,s)),n?("content"===i&&(d-=ve.css(e,"padding"+Re[r],!0,s)),"margin"!==i&&(d-=ve.css(e,"border"+Re[r]+"Width",!0,s))):(d+=ve.css(e,"padding"+Re[r],!0,s),"padding"!==i?d+=ve.css(e,"border"+Re[r]+"Width",!0,s):o+=ve.css(e,"border"+Re[r]+"Width",!0,s));return!n&&a>=0&&(d+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-d-o-.5))),d}function Q(e,t,i){var n=lt(e),s=X(e,t,n),a="border-box"===ve.css(e,"boxSizing",!1,n),r=a;if(dt.test(s)){if(!i)return s;s="auto"}return r=r&&(ge.boxSizingReliable()||s===e.style[t]),("auto"===s||!parseFloat(s)&&"inline"===ve.css(e,"display",!1,n))&&(s=e["offset"+t[0].toUpperCase()+t.slice(1)],r=!0),(s=parseFloat(s)||0)+N(e,t,i||(a?"border":"content"),r,n,s)+"px"}function B(e,t,i,n,s){return new B.prototype.init(e,t,i,n,s)}function O(){yt&&(!1===re.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(O):e.setTimeout(O,ve.fx.interval),ve.fx.tick())}function A(){return e.setTimeout(function(){gt=void 0}),gt=Date.now()}function R(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=Re[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function G(e,t,i){for(var n,s=(K.tweeners[t]||[]).concat(K.tweeners["*"]),a=0,r=s.length;a<r;a++)if(n=s[a].call(i,t,e))return n}function $(e,t,i){var n,s,a,r,o,d,l,u,c="width"in t||"height"in t,h=this,p={},m=e.style,_=e.nodeType&&Ge(e),f=We.get(e,"fxshow");i.queue||(null==(r=ve._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,o=r.empty.fire,r.empty.fire=function(){r.unqueued||o()}),r.unqueued++,h.always(function(){h.always(function(){r.unqueued--,ve.queue(e,"fx").length||r.empty.fire()})}));for(n in t)if(s=t[n],Yt.test(s)){if(delete t[n],a=a||"toggle"===s,s===(_?"hide":"show")){if("show"!==s||!f||void 0===f[n])continue;_=!0}p[n]=f&&f[n]||ve.style(e,n)}if((d=!ve.isEmptyObject(t))||!ve.isEmptyObject(p)){c&&1===e.nodeType&&(i.overflow=[m.overflow,m.overflowX,m.overflowY],null==(l=f&&f.display)&&(l=We.get(e,"display")),"none"===(u=ve.css(e,"display"))&&(l?u=l:(L([e],!0),l=e.style.display||l,u=ve.css(e,"display"),L([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===ve.css(e,"float")&&(d||(h.done(function(){m.display=l}),null==l&&(u=m.display,l="none"===u?"":u)),m.display="inline-block")),i.overflow&&(m.overflow="hidden",h.always(function(){m.overflow=i.overflow[0],m.overflowX=i.overflow[1],m.overflowY=i.overflow[2]})),d=!1;for(n in p)d||(f?"hidden"in f&&(_=f.hidden):f=We.access(e,"fxshow",{display:l}),a&&(f.hidden=!_),_&&L([e],!0),h.done(function(){_||L([e]),We.remove(e,"fxshow");for(n in p)ve.style(e,n,p[n])})),d=G(_?f[n]:0,n,h),n in f||(f[n]=d.start,_&&(d.end=d.start,d.start=0))}}function I(e,t){var i,n,s,a,r;for(i in e)if(n=m(i),s=t[n],a=e[i],Array.isArray(a)&&(s=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),(r=ve.cssHooks[n])&&"expand"in r){a=r.expand(a),delete e[n];for(i in a)i in e||(e[i]=a[i],t[i]=s)}else t[n]=s}function K(e,t,i){var n,s,a=0,r=K.prefilters.length,o=ve.Deferred().always(function(){delete d.elem}),d=function(){if(s)return!1;for(var t=gt||A(),i=Math.max(0,l.startTime+l.duration-t),n=1-(i/l.duration||0),a=0,r=l.tweens.length;a<r;a++)l.tweens[a].run(n);return o.notifyWith(e,[l,n,i]),n<1&&r?i:(r||o.notifyWith(e,[l,1,0]),o.resolveWith(e,[l]),!1)},l=o.promise({elem:e,props:ve.extend({},t),opts:ve.extend(!0,{specialEasing:{},easing:ve.easing._default},i),originalProperties:t,originalOptions:i,startTime:gt||A(),duration:i.duration,tweens:[],createTween:function(t,i){var n=ve.Tween(e,l.opts,t,i,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(n),n},stop:function(t){var i=0,n=t?l.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)l.tweens[i].run(1);return t?(o.notifyWith(e,[l,1,0]),o.resolveWith(e,[l,t])):o.rejectWith(e,[l,t]),this}}),u=l.props;for(I(u,l.opts.specialEasing);a<r;a++)if(n=K.prefilters[a].call(l,e,u,l.opts))return ye(n.stop)&&(ve._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ve.map(u,G,l),ye(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ve.fx.timer(ve.extend(d,{elem:e,anim:l,queue:l.opts.queue})),l}function z(e){return(e.match(Ze)||[]).join(" ")}function U(e){return e.getAttribute&&e.getAttribute("class")||""}function q(e){return Array.isArray(e)?e:"string"==typeof e?e.match(Ze)||[]:[]}function V(e,t,i,s){var a;if(Array.isArray(t))ve.each(t,function(t,n){i||xt.test(e)?s(e,n):V(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,s)});else if(i||"object"!==n(t))s(e,t);else for(a in t)V(e+"["+a+"]",t[a],i,s)}function ee(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,a=t.toLowerCase().match(Ze)||[];if(ye(i))for(;n=a[s++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function te(e,t,i,n){function s(o){var d;return a[o]=!0,ve.each(e[o]||[],function(e,o){var l=o(t,i,n);return"string"!=typeof l||r||a[l]?r?!(d=l):void 0:(t.dataTypes.unshift(l),s(l),!1)}),d}var a={},r=e===Ot;return s(t.dataTypes[0])||!a["*"]&&s("*")}function ie(e,t){var i,n,s=ve.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&ve.extend(!0,e,n),e}function ne(e,t,i){for(var n,s,a,r,o=e.contents,d=e.dataTypes;"*"===d[0];)d.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in o)if(o[s]&&o[s].test(n)){d.unshift(s);break}if(d[0]in i)a=d[0];else{for(s in i){if(!d[0]||e.converters[s+" "+d[0]]){a=s;break}r||(r=s)}a=a||r}if(a)return a!==d[0]&&d.unshift(a),i[a]}function se(e,t,i,n){var s,a,r,o,d,l={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)l[r.toLowerCase()]=e.converters[r];for(a=u.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!d&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),d=a,a=u.shift())if("*"===a)a=d;else if("*"!==d&&d!==a){if(!(r=l[d+" "+a]||l["* "+a]))for(s in l)if((o=s.split(" "))[1]===a&&(r=l[d+" "+o[0]]||l["* "+o[0]])){!0===r?r=l[s]:!0!==l[s]&&(a=o[0],u.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+d+" to "+a}}}return{state:"success",data:t}}var ae=[],re=e.document,oe=Object.getPrototypeOf,de=ae.slice,le=ae.concat,ue=ae.push,ce=ae.indexOf,he={},pe=he.toString,me=he.hasOwnProperty,_e=me.toString,fe=_e.call(Object),ge={},ye=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},Ye=function(e){return null!=e&&e===e.window},Le={type:!0,src:!0,noModule:!0},ve=function(e,t){return new ve.fn.init(e,t)},Me=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;ve.fn=ve.prototype={jquery:"3.3.1",constructor:ve,length:0,toArray:function(){return de.call(this)},get:function(e){return null==e?de.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ve.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ve.each(this,e)},map:function(e){return this.pushStack(ve.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(de.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:ue,sort:ae.sort,splice:ae.splice},ve.extend=ve.fn.extend=function(){var e,t,i,n,s,a,r=arguments[0]||{},o=1,d=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[o]||{},o++),"object"==typeof r||ye(r)||(r={}),o===d&&(r=this,o--);o<d;o++)if(null!=(e=arguments[o]))for(t in e)i=r[t],r!==(n=e[t])&&(l&&n&&(ve.isPlainObject(n)||(s=Array.isArray(n)))?(s?(s=!1,a=i&&Array.isArray(i)?i:[]):a=i&&ve.isPlainObject(i)?i:{},r[t]=ve.extend(l,a,n)):void 0!==n&&(r[t]=n));return r},ve.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==pe.call(e)||(t=oe(e))&&("function"!=typeof(i=me.call(t,"constructor")&&t.constructor)||_e.call(i)!==fe))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){i(e)},each:function(e,t){var i,n=0;if(s(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(Me,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(s(Object(e))?ve.merge(i,"string"==typeof e?[e]:e):ue.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:ce.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,a=e.length,r=!i;s<a;s++)!t(e[s],s)!==r&&n.push(e[s]);return n},map:function(e,t,i){var n,a,r=0,o=[];if(s(e))for(n=e.length;r<n;r++)null!=(a=t(e[r],r,i))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,i))&&o.push(a);return le.apply([],o)},guid:1,support:ge}),"function"==typeof Symbol&&(ve.fn[Symbol.iterator]=ae[Symbol.iterator]),ve.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){he["[object "+t+"]"]=t.toLowerCase()});var be=function(e){function t(e,t,i,n){var s,a,r,o,d,u,h,p=t&&t.ownerDocument,m=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return i;if(!n&&((t?t.ownerDocument||t:W)!==x&&H(t),t=t||x,P)){if(11!==m&&(d=_e.exec(e)))if(s=d[1]){if(9===m){if(!(r=t.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(p&&(r=p.getElementById(s))&&j(t,r)&&r.id===s)return i.push(r),i}else{if(d[2])return z.apply(i,t.getElementsByTagName(e)),i;if((s=d[3])&&L.getElementsByClassName&&t.getElementsByClassName)return z.apply(i,t.getElementsByClassName(s)),i}if(L.qsa&&!A[e+" "]&&(!J||!J.test(e))){if(1!==m)p=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(Ye,Le):t.setAttribute("id",o=E),a=(u=T(e)).length;a--;)u[a]="#"+o+" "+c(u[a]);h=u.join(","),p=fe.test(e)&&l(t.parentNode)||t}if(h)try{return z.apply(i,p.querySelectorAll(h)),i}catch(e){}finally{o===E&&t.removeAttribute("id")}}}return w(e.replace(ae,"$1"),t,i,n)}function i(){function e(i,n){return t.push(i+" ")>v.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[E]=!0,e}function s(e){var t=x.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var i=e.split("|"),n=i.length;n--;)v.attrHandle[i[n]]=t}function r(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function o(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Me(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function d(e){return n(function(t){return t=+t,n(function(i,n){for(var s,a=e([],i.length,t),r=a.length;r--;)i[s=a[r]]&&(i[s]=!(n[s]=i[s]))})})}function l(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function c(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function h(e,t,i){var n=t.dir,s=t.next,a=s||n,r=i&&"parentNode"===a,o=Q++;return t.first?function(t,i,s){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,s);return!1}:function(t,i,d){var l,u,c,h=[N,o];if(d){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,d))return!0}else for(;t=t[n];)if(1===t.nodeType||r)if(c=t[E]||(t[E]={}),u=c[t.uniqueID]||(c[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[n]||t;else{if((l=u[a])&&l[0]===N&&l[1]===o)return h[2]=l[2];if(u[a]=h,h[2]=e(t,i,d))return!0}return!1}}function p(e){return e.length>1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function m(e,i,n){for(var s=0,a=i.length;s<a;s++)t(e,i[s],n);return n}function _(e,t,i,n,s){for(var a,r=[],o=0,d=e.length,l=null!=t;o<d;o++)(a=e[o])&&(i&&!i(a,n,s)||(r.push(a),l&&t.push(o)));return r}function f(e,t,i,s,a,r){return s&&!s[E]&&(s=f(s)),a&&!a[E]&&(a=f(a,r)),n(function(n,r,o,d){var l,u,c,h=[],p=[],f=r.length,g=n||m(t||"*",o.nodeType?[o]:o,[]),y=!e||!n&&t?g:_(g,h,e,o,d),Y=i?a||(n?e:f||s)?[]:r:y;if(i&&i(y,Y,o,d),s)for(l=_(Y,p),s(l,[],o,d),u=l.length;u--;)(c=l[u])&&(Y[p[u]]=!(y[p[u]]=c));if(n){if(a||e){if(a){for(l=[],u=Y.length;u--;)(c=Y[u])&&l.push(y[u]=c);a(null,Y=[],l,d)}for(u=Y.length;u--;)(c=Y[u])&&(l=a?q(n,c):h[u])>-1&&(n[l]=!(r[l]=c))}}else Y=_(Y===r?Y.splice(f,Y.length):Y),a?a(null,r,Y,d):z.apply(r,Y)})}function g(e){for(var t,i,n,s=e.length,a=v.relative[e[0].type],r=a||v.relative[" "],o=a?1:0,d=h(function(e){return e===t},r,!0),l=h(function(e){return q(t,e)>-1},r,!0),u=[function(e,i,n){var s=!a&&(n||i!==S)||((t=i).nodeType?d(e,i,n):l(e,i,n));return t=null,s}];o<s;o++)if(i=v.relative[e[o].type])u=[h(p(u),i)];else{if((i=v.filter[e[o].type].apply(null,e[o].matches))[E]){for(n=++o;n<s&&!v.relative[e[n].type];n++);return f(o>1&&p(u),o>1&&c(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(ae,"$1"),i,o<n&&g(e.slice(o,n)),n<s&&g(e=e.slice(n)),n<s&&c(e))}u.push(i)}return p(u)}function y(e,i){var s=i.length>0,a=e.length>0,r=function(n,r,o,d,l){var u,c,h,p=0,m="0",f=n&&[],g=[],y=S,Y=n||a&&v.find.TAG("*",l),L=N+=null==y?1:Math.random()||.1,M=Y.length;for(l&&(S=r===x||r||l);m!==M&&null!=(u=Y[m]);m++){if(a&&u){for(c=0,r||u.ownerDocument===x||(H(u),o=!P);h=e[c++];)if(h(u,r||x,o)){d.push(u);break}l&&(N=L)}s&&((u=!h&&u)&&p--,n&&f.push(u))}if(p+=m,s&&m!==p){for(c=0;h=i[c++];)h(f,g,r,o);if(n){if(p>0)for(;m--;)f[m]||g[m]||(g[m]=I.call(d));g=_(g)}z.apply(d,g),l&&!n&&g.length>0&&p+i.length>1&&t.uniqueSort(d)}return l&&(N=L,S=y),f};return s?n(r):r}var Y,L,v,M,b,T,D,w,S,k,C,H,x,Z,P,J,X,F,j,E="sizzle"+1*new Date,W=e.document,N=0,Q=0,B=i(),O=i(),A=i(),R=function(e,t){return e===t&&(C=!0),0},G={}.hasOwnProperty,$=[],I=$.pop,K=$.push,z=$.push,U=$.slice,q=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},V="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ee="[\\x20\\t\\r\\n\\f]",te="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ie="\\["+ee+"*("+te+")(?:"+ee+"*([*^$|!~]?=)"+ee+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+te+"))|)"+ee+"*\\]",ne=":("+te+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",se=new RegExp(ee+"+","g"),ae=new RegExp("^"+ee+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ee+"+$","g"),re=new RegExp("^"+ee+"*,"+ee+"*"),oe=new RegExp("^"+ee+"*([>+~]|"+ee+")"+ee+"*"),de=new RegExp("="+ee+"*([^\\]'\"]*?)"+ee+"*\\]","g"),le=new RegExp(ne),ue=new RegExp("^"+te+"$"),ce={ID:new RegExp("^#("+te+")"),CLASS:new RegExp("^\\.("+te+")"),TAG:new RegExp("^("+te+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ee+"*(even|odd|(([+-]|)(\\d*)n|)"+ee+"*(?:([+-]|)"+ee+"*(\\d+)|))"+ee+"*\\)|)","i"),bool:new RegExp("^(?:"+V+")$","i"),needsContext:new RegExp("^"+ee+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ee+"*((?:-\\d)?\\d*)"+ee+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,pe=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,_e=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,fe=/[+~]/,ge=new RegExp("\\\\([\\da-f]{1,6}"+ee+"?|("+ee+")|.)","ig"),ye=function(e,t,i){var n="0x"+t-65536;return n!==n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},Ye=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Le=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ve=function(){H()},Me=h(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{z.apply($=U.call(W.childNodes),W.childNodes),$[W.childNodes.length].nodeType}catch(e){z={apply:$.length?function(e,t){K.apply(e,U.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}L=t.support={},b=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},H=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:W;return n!==x&&9===n.nodeType&&n.documentElement?(x=n,Z=x.documentElement,P=!b(x),W!==x&&(i=x.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ve,!1):i.attachEvent&&i.attachEvent("onunload",ve)),L.attributes=s(function(e){return e.className="i",!e.getAttribute("className")}),L.getElementsByTagName=s(function(e){return e.appendChild(x.createComment("")),!e.getElementsByTagName("*").length}),L.getElementsByClassName=me.test(x.getElementsByClassName),L.getById=s(function(e){return Z.appendChild(e).id=E,!x.getElementsByName||!x.getElementsByName(E).length}),L.getById?(v.filter.ID=function(e){var t=e.replace(ge,ye);return function(e){return e.getAttribute("id")===t}},v.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var i=t.getElementById(e);return i?[i]:[]}}):(v.filter.ID=function(e){var t=e.replace(ge,ye);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},v.find.ID=function(e,t){if(void 0!==t.getElementById&&P){var i,n,s,a=t.getElementById(e);if(a){if((i=a.getAttributeNode("id"))&&i.value===e)return[a];for(s=t.getElementsByName(e),n=0;a=s[n++];)if((i=a.getAttributeNode("id"))&&i.value===e)return[a]}return[]}}),v.find.TAG=L.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):L.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[s++];)1===i.nodeType&&n.push(i);return n}return a},v.find.CLASS=L.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&P)return t.getElementsByClassName(e)},X=[],J=[],(L.qsa=me.test(x.querySelectorAll))&&(s(function(e){Z.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&J.push("[*^$]="+ee+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||J.push("\\["+ee+"*(?:value|"+V+")"),e.querySelectorAll("[id~="+E+"-]").length||J.push("~="),e.querySelectorAll(":checked").length||J.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||J.push(".#.+[+~]")}),s(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=x.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&J.push("name"+ee+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&J.push(":enabled",":disabled"),Z.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&J.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),J.push(",.*:")})),(L.matchesSelector=me.test(F=Z.matches||Z.webkitMatchesSelector||Z.mozMatchesSelector||Z.oMatchesSelector||Z.msMatchesSelector))&&s(function(e){L.disconnectedMatch=F.call(e,"*"),F.call(e,"[s!='']:x"),X.push("!=",ne)}),J=J.length&&new RegExp(J.join("|")),X=X.length&&new RegExp(X.join("|")),t=me.test(Z.compareDocumentPosition),j=t||me.test(Z.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},R=t?function(e,t){if(e===t)return C=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!L.sortDetached&&t.compareDocumentPosition(e)===i?e===x||e.ownerDocument===W&&j(W,e)?-1:t===x||t.ownerDocument===W&&j(W,t)?1:k?q(k,e)-q(k,t):0:4&i?-1:1)}:function(e,t){if(e===t)return C=!0,0;var i,n=0,s=e.parentNode,a=t.parentNode,o=[e],d=[t];if(!s||!a)return e===x?-1:t===x?1:s?-1:a?1:k?q(k,e)-q(k,t):0;if(s===a)return r(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)d.unshift(i);for(;o[n]===d[n];)n++;return n?r(o[n],d[n]):o[n]===W?-1:d[n]===W?1:0},x):x},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==x&&H(e),i=i.replace(de,"='$1']"),L.matchesSelector&&P&&!A[i+" "]&&(!X||!X.test(i))&&(!J||!J.test(i)))try{var n=F.call(e,i);if(n||L.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return t(i,x,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==x&&H(e),j(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==x&&H(e);var i=v.attrHandle[t.toLowerCase()],n=i&&G.call(v.attrHandle,t.toLowerCase())?i(e,t,!P):void 0;return void 0!==n?n:L.attributes||!P?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.escape=function(e){return(e+"").replace(Ye,Le)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,s=0;if(C=!L.detectDuplicates,k=!L.sortStable&&e.slice(0),e.sort(R),C){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return k=null,e},M=t.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=M(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=M(t);return i},(v=t.selectors={cacheLength:50,createPseudo:n,match:ce,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ge,ye),e[3]=(e[3]||e[4]||e[5]||"").replace(ge,ye),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return ce.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&le.test(i)&&(t=T(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ge,ye).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+ee+")"+e+"("+ee+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,i,n){return function(s){var a=t.attr(s,e);return null==a?"!="===i:!i||(a+="","="===i?a===n:"!="===i?a!==n:"^="===i?n&&0===a.indexOf(n):"*="===i?n&&a.indexOf(n)>-1:"$="===i?n&&a.slice(-n.length)===n:"~="===i?(" "+a.replace(se," ")+" ").indexOf(n)>-1:"|="===i&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,i,n,s){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,d){var l,u,c,h,p,m,_=a!==r?"nextSibling":"previousSibling",f=t.parentNode,g=o&&t.nodeName.toLowerCase(),y=!d&&!o,Y=!1;if(f){if(a){for(;_;){for(h=t;h=h[_];)if(o?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;m=_="only"===e&&!m&&"nextSibling"}return!0}if(m=[r?f.firstChild:f.lastChild],r&&y){for(Y=(p=(l=(u=(c=(h=f)[E]||(h[E]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===N&&l[1])&&l[2],h=p&&f.childNodes[p];h=++p&&h&&h[_]||(Y=p=0)||m.pop();)if(1===h.nodeType&&++Y&&h===t){u[e]=[N,p,Y];break}}else if(y&&(Y=p=(l=(u=(c=(h=t)[E]||(h[E]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]||[])[0]===N&&l[1]),!1===Y)for(;(h=++p&&h&&h[_]||(Y=p=0)||m.pop())&&((o?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++Y||(y&&((u=(c=h[E]||(h[E]={}))[h.uniqueID]||(c[h.uniqueID]={}))[e]=[N,Y]),h!==t)););return(Y-=s)===n||Y%n==0&&Y/n>=0}}},PSEUDO:function(e,i){var s,a=v.pseudos[e]||v.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[E]?a(i):a.length>1?(s=[e,e,"",i],v.setFilters.hasOwnProperty(e.toLowerCase())?n(function(e,t){for(var n,s=a(e,i),r=s.length;r--;)e[n=q(e,s[r])]=!(t[n]=s[r])}):function(e){return a(e,0,s)}):a}},pseudos:{not:n(function(e){var t=[],i=[],s=D(e.replace(ae,"$1"));return s[E]?n(function(e,t,i,n){for(var a,r=s(e,null,n,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))}):function(e,n,a){return t[0]=e,s(t,null,a,i),t[0]=null,!i.pop()}}),has:n(function(e){return function(i){return t(e,i).length>0}}),contains:n(function(e){return e=e.replace(ge,ye),function(t){return(t.textContent||t.innerText||M(t)).indexOf(e)>-1}}),lang:n(function(e){return ue.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ge,ye).toLowerCase(),function(t){var i;do{if(i=P?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===Z},focus:function(e){return e===x.activeElement&&(!x.hasFocus||x.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:o(!1),disabled:o(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){
for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!v.pseudos.empty(e)},header:function(e){return pe.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:d(function(){return[0]}),last:d(function(e,t){return[t-1]}),eq:d(function(e,t,i){return[i<0?i+t:i]}),even:d(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:d(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:d(function(e,t,i){for(var n=i<0?i+t:i;--n>=0;)e.push(n);return e}),gt:d(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=v.pseudos.eq;for(Y in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})v.pseudos[Y]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(Y);for(Y in{submit:!0,reset:!0})v.pseudos[Y]=function(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}(Y);return u.prototype=v.filters=v.pseudos,v.setFilters=new u,T=t.tokenize=function(e,i){var n,s,a,r,o,d,l,u=O[e+" "];if(u)return i?0:u.slice(0);for(o=e,d=[],l=v.preFilter;o;){n&&!(s=re.exec(o))||(s&&(o=o.slice(s[0].length)||o),d.push(a=[])),n=!1,(s=oe.exec(o))&&(n=s.shift(),a.push({value:n,type:s[0].replace(ae," ")}),o=o.slice(n.length));for(r in v.filter)!(s=ce[r].exec(o))||l[r]&&!(s=l[r](s))||(n=s.shift(),a.push({value:n,type:r,matches:s}),o=o.slice(n.length));if(!n)break}return i?o.length:o?t.error(e):O(e,d).slice(0)},D=t.compile=function(e,t){var i,n=[],s=[],a=A[e+" "];if(!a){for(t||(t=T(e)),i=t.length;i--;)(a=g(t[i]))[E]?n.push(a):s.push(a);(a=A(e,y(s,n))).selector=e}return a},w=t.select=function(e,t,i,n){var s,a,r,o,d,u="function"==typeof e&&e,h=!n&&T(e=u.selector||e);if(i=i||[],1===h.length){if((a=h[0]=h[0].slice(0)).length>2&&"ID"===(r=a[0]).type&&9===t.nodeType&&P&&v.relative[a[1].type]){if(!(t=(v.find.ID(r.matches[0].replace(ge,ye),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(s=ce.needsContext.test(e)?0:a.length;s--&&(r=a[s],!v.relative[o=r.type]);)if((d=v.find[o])&&(n=d(r.matches[0].replace(ge,ye),fe.test(a[0].type)&&l(t.parentNode)||t))){if(a.splice(s,1),!(e=n.length&&c(a)))return z.apply(i,n),i;break}}return(u||D(e,h))(n,t,!P,i,!t||fe.test(e)&&l(t.parentNode)||t),i},L.sortStable=E.split("").sort(R).join("")===E,L.detectDuplicates=!!C,H(),L.sortDetached=s(function(e){return 1&e.compareDocumentPosition(x.createElement("fieldset"))}),s(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),L.attributes&&s(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),s(function(e){return null==e.getAttribute("disabled")})||a(V,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),t}(e);ve.find=be,ve.expr=be.selectors,ve.expr[":"]=ve.expr.pseudos,ve.uniqueSort=ve.unique=be.uniqueSort,ve.text=be.getText,ve.isXMLDoc=be.isXML,ve.contains=be.contains,ve.escapeSelector=be.escape;var Te=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&ve(e).is(i))break;n.push(e)}return n},De=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},we=ve.expr.match.needsContext,Se=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;ve.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?ve.find.matchesSelector(n,e)?[n]:[]:ve.find.matches(e,ve.grep(t,function(e){return 1===e.nodeType}))},ve.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(ve(e).filter(function(){for(t=0;t<n;t++)if(ve.contains(s[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)ve.find(e,s[t],i);return n>1?ve.uniqueSort(i):i},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?ve(e):e||[],!1).length}});var ke,Ce=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ve.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||ke,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ce.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof ve?t[0]:t,ve.merge(this,ve.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Se.test(n[1])&&ve.isPlainObject(t))for(n in t)ye(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=re.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):ye(e)?void 0!==i.ready?i.ready(e):e(ve):ve.makeArray(e,this)}).prototype=ve.fn,ke=ve(re);var He=/^(?:parents|prev(?:Until|All))/,xe={children:!0,contents:!0,next:!0,prev:!0};ve.fn.extend({has:function(e){var t=ve(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(ve.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,s=this.length,a=[],r="string"!=typeof e&&ve(e);if(!we.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&ve.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(a.length>1?ve.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?ce.call(ve(e),this[0]):ce.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ve.uniqueSort(ve.merge(this.get(),ve(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ve.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Te(e,"parentNode")},parentsUntil:function(e,t,i){return Te(e,"parentNode",i)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return Te(e,"nextSibling")},prevAll:function(e){return Te(e,"previousSibling")},nextUntil:function(e,t,i){return Te(e,"nextSibling",i)},prevUntil:function(e,t,i){return Te(e,"previousSibling",i)},siblings:function(e){return De((e.parentNode||{}).firstChild,e)},children:function(e){return De(e.firstChild)},contents:function(e){return a(e,"iframe")?e.contentDocument:(a(e,"template")&&(e=e.content||e),ve.merge([],e.childNodes))}},function(e,t){ve.fn[e]=function(i,n){var s=ve.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=ve.filter(n,s)),this.length>1&&(xe[e]||ve.uniqueSort(s),He.test(e)&&s.reverse()),this.pushStack(s)}});var Ze=/[^\x20\t\r\n\f]+/g;ve.Callbacks=function(e){e="string"==typeof e?d(e):ve.extend({},e);var t,i,s,a,r=[],o=[],l=-1,u=function(){for(a=a||e.once,s=t=!0;o.length;l=-1)for(i=o.shift();++l<r.length;)!1===r[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=r.length,i=!1);e.memory||(i=!1),t=!1,a&&(r=i?[]:"")},c={add:function(){return r&&(i&&!t&&(l=r.length-1,o.push(i)),function t(i){ve.each(i,function(i,s){ye(s)?e.unique&&c.has(s)||r.push(s):s&&s.length&&"string"!==n(s)&&t(s)})}(arguments),i&&!t&&u()),this},remove:function(){return ve.each(arguments,function(e,t){for(var i;(i=ve.inArray(t,r,i))>-1;)r.splice(i,1),i<=l&&l--}),this},has:function(e){return e?ve.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=o=[],r=i="",this},disabled:function(){return!r},lock:function(){return a=o=[],i||t||(r=i=""),this},locked:function(){return!!a},fireWith:function(e,i){return a||(i=[e,(i=i||[]).slice?i.slice():i],o.push(i),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!s}};return c},ve.extend({Deferred:function(t){var i=[["notify","progress",ve.Callbacks("memory"),ve.Callbacks("memory"),2],["resolve","done",ve.Callbacks("once memory"),ve.Callbacks("once memory"),0,"resolved"],["reject","fail",ve.Callbacks("once memory"),ve.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return ve.Deferred(function(t){ve.each(i,function(i,n){var s=ye(e[n[4]])&&e[n[4]];a[n[1]](function(){var e=s&&s.apply(this,arguments);e&&ye(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[n[0]+"With"](this,s?[e]:arguments)})}),e=null}).promise()},then:function(t,n,s){function a(t,i,n,s){return function(){var o=this,d=arguments,c=function(){var e,c;if(!(t<r)){if((e=n.apply(o,d))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,ye(c)?s?c.call(e,a(r,i,l,s),a(r,i,u,s)):(r++,c.call(e,a(r,i,l,s),a(r,i,u,s),a(r,i,l,i.notifyWith))):(n!==l&&(o=void 0,d=[e]),(s||i.resolveWith)(o,d))}},h=s?c:function(){try{c()}catch(e){ve.Deferred.exceptionHook&&ve.Deferred.exceptionHook(e,h.stackTrace),t+1>=r&&(n!==u&&(o=void 0,d=[e]),i.rejectWith(o,d))}};t?h():(ve.Deferred.getStackHook&&(h.stackTrace=ve.Deferred.getStackHook()),e.setTimeout(h))}}var r=0;return ve.Deferred(function(e){i[0][3].add(a(0,e,ye(s)?s:l,e.notifyWith)),i[1][3].add(a(0,e,ye(t)?t:l)),i[2][3].add(a(0,e,ye(n)?n:u))}).promise()},promise:function(e){return null!=e?ve.extend(e,s):s}},a={};return ve.each(i,function(e,t){var r=t[2],o=t[5];s[t[1]]=r.add,o&&r.add(function(){n=o},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=r.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,i=t,n=Array(i),s=de.call(arguments),a=ve.Deferred(),r=function(e){return function(i){n[e]=this,s[e]=arguments.length>1?de.call(arguments):i,--t||a.resolveWith(n,s)}};if(t<=1&&(c(e,a.done(r(i)).resolve,a.reject,!t),"pending"===a.state()||ye(s[i]&&s[i].then)))return a.then();for(;i--;)c(s[i],r(i),a.reject);return a.promise()}});var Pe=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ve.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&Pe.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},ve.readyException=function(t){e.setTimeout(function(){throw t})};var Je=ve.Deferred();ve.fn.ready=function(e){return Je.then(e).catch(function(e){ve.readyException(e)}),this},ve.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ve.readyWait:ve.isReady)||(ve.isReady=!0,!0!==e&&--ve.readyWait>0||Je.resolveWith(re,[ve]))}}),ve.ready.then=Je.then,"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll?e.setTimeout(ve.ready):(re.addEventListener("DOMContentLoaded",h),e.addEventListener("load",h));var Xe=function(e,t,i,s,a,r,o){var d=0,l=e.length,u=null==i;if("object"===n(i)){a=!0;for(d in i)Xe(e,t,d,i[d],!0,r,o)}else if(void 0!==s&&(a=!0,ye(s)||(o=!0),u&&(o?(t.call(e,s),t=null):(u=t,t=function(e,t,i){return u.call(ve(e),i)})),t))for(;d<l;d++)t(e[d],i,o?s:s.call(e[d],d,t(e[d],i)));return a?e:u?t.call(e):l?t(e[0],i):r},Fe=/^-ms-/,je=/-([a-z])/g,Ee=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};_.uid=1,_.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Ee(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[m(t)]=i;else for(n in t)s[m(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][m(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(m):(t=m(t))in n?[t]:t.match(Ze)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||ve.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ve.isEmptyObject(t)}};var We=new _,Ne=new _,Qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Be=/[A-Z]/g;ve.extend({hasData:function(e){return Ne.hasData(e)||We.hasData(e)},data:function(e,t,i){return Ne.access(e,t,i)},removeData:function(e,t){Ne.remove(e,t)},_data:function(e,t,i){return We.access(e,t,i)},_removeData:function(e,t){We.remove(e,t)}}),ve.fn.extend({data:function(e,t){var i,n,s,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(s=Ne.get(a),1===a.nodeType&&!We.get(a,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=m(n.slice(5)),g(a,n,s[n]));We.set(a,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each(function(){Ne.set(this,e)}):Xe(this,function(t){var i;if(a&&void 0===t){if(void 0!==(i=Ne.get(a,e)))return i;if(void 0!==(i=g(a,e)))return i}else this.each(function(){Ne.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ne.remove(this,e)})}}),ve.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=We.get(e,t),i&&(!n||Array.isArray(i)?n=We.access(e,t,ve.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=ve.queue(e,t),n=i.length,s=i.shift(),a=ve._queueHooks(e,t),r=function(){ve.dequeue(e,t)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete a.stop,s.call(e,r,a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return We.get(e,i)||We.access(e,i,{empty:ve.Callbacks("once memory").add(function(){We.remove(e,[t+"queue",i])})})}}),ve.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?ve.queue(this[0],e):void 0===t?this:this.each(function(){var i=ve.queue(this,e,t);ve._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&ve.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ve.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=ve.Deferred(),a=this,r=this.length,o=function(){--n||s.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=We.get(a[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),s.promise(t)}});var Oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ae=new RegExp("^(?:([+-])=|)("+Oe+")([a-z%]*)$","i"),Re=["Top","Right","Bottom","Left"],Ge=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ve.contains(e.ownerDocument,e)&&"none"===ve.css(e,"display")},$e=function(e,t,i,n){var s,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];s=i.apply(e,n||[]);for(a in t)e.style[a]=r[a];return s},Ie={};ve.fn.extend({show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ge(this)?ve(this).show():ve(this).hide()})}});var Ke=/^(?:checkbox|radio)$/i,ze=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ue=/^$|^module$|\/(?:java|ecma)script/i,qe={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};qe.optgroup=qe.option,qe.tbody=qe.tfoot=qe.colgroup=qe.caption=qe.thead,qe.th=qe.td;var Ve=/<|&#?\w+;/;!function(){var e=re.createDocumentFragment().appendChild(re.createElement("div")),t=re.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),ge.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",ge.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var et=re.documentElement,tt=/^key/,it=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,nt=/^([^.]*)(?:\.(.+)|)/;ve.event={global:{},add:function(e,t,i,n,s){var a,r,o,d,l,u,c,h,p,m,_,f=We.get(e);if(f)for(i.handler&&(i=(a=i).handler,s=a.selector),s&&ve.find.matchesSelector(et,s),i.guid||(i.guid=ve.guid++),(d=f.events)||(d=f.events={}),(r=f.handle)||(r=f.handle=function(t){return void 0!==ve&&ve.event.triggered!==t.type?ve.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(Ze)||[""]).length;l--;)p=_=(o=nt.exec(t[l])||[])[1],m=(o[2]||"").split(".").sort(),p&&(c=ve.event.special[p]||{},p=(s?c.delegateType:c.bindType)||p,c=ve.event.special[p]||{},u=ve.extend({type:p,origType:_,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&ve.expr.match.needsContext.test(s),namespace:m.join(".")},a),(h=d[p])||((h=d[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,m,r)||e.addEventListener&&e.addEventListener(p,r)),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),ve.event.global[p]=!0)},remove:function(e,t,i,n,s){var a,r,o,d,l,u,c,h,p,m,_,f=We.hasData(e)&&We.get(e);if(f&&(d=f.events)){for(l=(t=(t||"").match(Ze)||[""]).length;l--;)if(o=nt.exec(t[l])||[],p=_=o[1],m=(o[2]||"").split(".").sort(),p){for(c=ve.event.special[p]||{},h=d[p=(n?c.delegateType:c.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=h.length;a--;)u=h[a],!s&&_!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,c.remove&&c.remove.call(e,u));r&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,m,f.handle)||ve.removeEvent(e,p,f.handle),delete d[p])}else for(p in d)ve.event.remove(e,p+t[l],i,n,!0);ve.isEmptyObject(d)&&We.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,a,r,o=ve.event.fix(e),d=new Array(arguments.length),l=(We.get(this,"events")||{})[o.type]||[],u=ve.event.special[o.type]||{};for(d[0]=o,t=1;t<arguments.length;t++)d[t]=arguments[t];if(o.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,o)){for(r=ve.event.handlers.call(this,o,l),t=0;(s=r[t++])&&!o.isPropagationStopped();)for(o.currentTarget=s.elem,i=0;(a=s.handlers[i++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!o.rnamespace.test(a.namespace)||(o.handleObj=a,o.data=a.data,void 0!==(n=((ve.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,d))&&!1===(o.result=n)&&(o.preventDefault(),o.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,o),o.result}},handlers:function(e,t){var i,n,s,a,r,o=[],d=t.delegateCount,l=e.target;if(d&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(a=[],r={},i=0;i<d;i++)void 0===r[s=(n=t[i]).selector+" "]&&(r[s]=n.needsContext?ve(s,this).index(l)>-1:ve.find(s,this,null,[l]).length),r[s]&&a.push(n);a.length&&o.push({elem:l,handlers:a})}return l=this,d<t.length&&o.push({elem:l,handlers:t.slice(d)}),o},addProp:function(e,t){Object.defineProperty(ve.Event.prototype,e,{enumerable:!0,configurable:!0,get:ye(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[ve.expando]?e:new ve.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==w()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===w()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&a(this,"input"))return this.click(),!1},_default:function(e){return a(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ve.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},ve.Event=function(e,t){if(!(this instanceof ve.Event))return new ve.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?T:D,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ve.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ve.expando]=!0},ve.Event.prototype={constructor:ve.Event,isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=T,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=T,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=T,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ve.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&tt.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&it.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},ve.event.addProp),ve.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ve.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,s=e.relatedTarget,a=e.handleObj;return s&&(s===n||ve.contains(n,s))||(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}}),ve.fn.extend({on:function(e,t,i,n){return S(this,e,t,i,n)},one:function(e,t,i,n){return S(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,ve(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=D),this.each(function(){ve.event.remove(this,e,i,t)})}});var st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,at=/<script|<style|<link/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ve.extend({htmlPrefilter:function(e){return e.replace(st,"<$1></$2>")},clone:function(e,t,i){var n,s,a,r,o=e.cloneNode(!0),d=ve.contains(e.ownerDocument,e);if(!(ge.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ve.isXMLDoc(e)))for(r=v(o),n=0,s=(a=v(e)).length;n<s;n++)Z(a[n],r[n]);if(t)if(i)for(a=a||v(e),r=r||v(o),n=0,s=a.length;n<s;n++)x(a[n],r[n]);else x(e,o);return(r=v(o,"script")).length>0&&M(r,!d&&v(e,"script")),o},cleanData:function(e){for(var t,i,n,s=ve.event.special,a=0;void 0!==(i=e[a]);a++)if(Ee(i)){if(t=i[We.expando]){if(t.events)for(n in t.events)s[n]?ve.event.remove(i,n):ve.removeEvent(i,n,t.handle);i[We.expando]=void 0}i[Ne.expando]&&(i[Ne.expando]=void 0)}}}),ve.fn.extend({detach:function(e){return J(this,e,!0)},remove:function(e){return J(this,e)},text:function(e){return Xe(this,function(e){return void 0===e?ve.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return P(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||k(this,e).appendChild(e)})},prepend:function(){return P(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return P(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ve.cleanData(v(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ve.clone(this,e,t)})},html:function(e){return Xe(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!at.test(e)&&!qe[(ze.exec(e)||["",""])[1].toLowerCase()]){e=ve.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(ve.cleanData(v(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return P(this,arguments,function(t){var i=this.parentNode;ve.inArray(this,e)<0&&(ve.cleanData(v(this)),i&&i.replaceChild(t,this))},e)}}),ve.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ve.fn[e]=function(e){for(var i,n=[],s=ve(e),a=s.length-1,r=0;r<=a;r++)i=r===a?this:this.clone(!0),ve(s[r])[t](i),ue.apply(n,i.get());return this.pushStack(n)}});var dt=new RegExp("^("+Oe+")(?!px)[a-z%]+$","i"),lt=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},ut=new RegExp(Re.join("|"),"i");!function(){function t(){if(l){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",et.appendChild(d).appendChild(l);var t=e.getComputedStyle(l);n="1%"!==t.top,o=12===i(t.marginLeft),l.style.right="60%",r=36===i(t.right),s=36===i(t.width),l.style.position="absolute",a=36===l.offsetWidth||"absolute",et.removeChild(d),l=null}}function i(e){return Math.round(parseFloat(e))}var n,s,a,r,o,d=re.createElement("div"),l=re.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",ge.clearCloneStyle="content-box"===l.style.backgroundClip,ve.extend(ge,{boxSizingReliable:function(){return t(),s},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),n},reliableMarginLeft:function(){return t(),o},scrollboxSize:function(){return t(),a}}))}();var ct=/^(none|table(?!-c[ea]).+)/,ht=/^--/,pt={position:"absolute",visibility:"hidden",display:"block"},mt={letterSpacing:"0",fontWeight:"400"},_t=["Webkit","Moz","ms"],ft=re.createElement("div").style;ve.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=X(e,"opacity");return""===i?"1":i}}}},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(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,r,o=m(t),d=ht.test(t),l=e.style;if(d||(t=E(o)),r=ve.cssHooks[t]||ve.cssHooks[o],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:l[t];"string"==(a=typeof i)&&(s=Ae.exec(i))&&s[1]&&(i=y(e,t,s),a="number"),null!=i&&i===i&&("number"===a&&(i+=s&&s[3]||(ve.cssNumber[o]?"":"px")),ge.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(d?l.setProperty(t,i):l[t]=i))}},css:function(e,t,i,n){var s,a,r,o=m(t);return ht.test(t)||(t=E(o)),(r=ve.cssHooks[t]||ve.cssHooks[o])&&"get"in r&&(s=r.get(e,!0,i)),void 0===s&&(s=X(e,t,n)),"normal"===s&&t in mt&&(s=mt[t]),""===i||i?(a=parseFloat(s),!0===i||isFinite(a)?a||0:s):s}}),ve.each(["height","width"],function(e,t){ve.cssHooks[t]={get:function(e,i,n){if(i)return!ct.test(ve.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Q(e,t,n):$e(e,pt,function(){return Q(e,t,n)})},set:function(e,i,n){var s,a=lt(e),r="border-box"===ve.css(e,"boxSizing",!1,a),o=n&&N(e,t,n,r,a);return r&&ge.scrollboxSize()===a.position&&(o-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-N(e,t,"border",!1,a)-.5)),o&&(s=Ae.exec(i))&&"px"!==(s[3]||"px")&&(e.style[t]=i,i=ve.css(e,t)),W(e,i,o)}}}),ve.cssHooks.marginLeft=F(ge.reliableMarginLeft,function(e,t){if(t)return(parseFloat(X(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ve.each({margin:"",padding:"",border:"Width"},function(e,t){ve.cssHooks[e+t]={expand:function(i){for(var n=0,s={},a="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+Re[n]+t]=a[n]||a[n-2]||a[0];return s}},"margin"!==e&&(ve.cssHooks[e+t].set=W)}),ve.fn.extend({css:function(e,t){return Xe(this,function(e,t,i){var n,s,a={},r=0;if(Array.isArray(t)){for(n=lt(e),s=t.length;r<s;r++)a[t[r]]=ve.css(e,t[r],!1,n);return a}return void 0!==i?ve.style(e,t,i):ve.css(e,t)},e,t,arguments.length>1)}}),ve.Tween=B,B.prototype={constructor:B,init:function(e,t,i,n,s,a){this.elem=e,this.prop=i,this.easing=s||ve.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(ve.cssNumber[i]?"":"px")},cur:function(){var e=B.propHooks[this.prop];return e&&e.get?e.get(this):B.propHooks._default.get(this)},run:function(e){var t,i=B.propHooks[this.prop];return this.options.duration?this.pos=t=ve.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):B.propHooks._default.set(this),this}},B.prototype.init.prototype=B.prototype,B.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ve.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ve.fx.step[e.prop]?ve.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ve.cssProps[e.prop]]&&!ve.cssHooks[e.prop]?e.elem[e.prop]=e.now:ve.style(e.elem,e.prop,e.now+e.unit)}}},B.propHooks.scrollTop=B.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ve.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ve.fx=B.prototype.init,ve.fx.step={};var gt,yt,Yt=/^(?:toggle|show|hide)$/,Lt=/queueHooks$/;ve.Animation=ve.extend(K,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return y(i.elem,e,Ae.exec(t),i),i}]},tweener:function(e,t){ye(e)?(t=e,e=["*"]):e=e.match(Ze);for(var i,n=0,s=e.length;n<s;n++)i=e[n],K.tweeners[i]=K.tweeners[i]||[],K.tweeners[i].unshift(t)},prefilters:[$],prefilter:function(e,t){t?K.prefilters.unshift(e):K.prefilters.push(e)}}),ve.speed=function(e,t,i){var n=e&&"object"==typeof e?ve.extend({},e):{complete:i||!i&&t||ye(e)&&e,duration:e,easing:i&&t||t&&!ye(t)&&t};return ve.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in ve.fx.speeds?n.duration=ve.fx.speeds[n.duration]:n.duration=ve.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){ye(n.old)&&n.old.call(this),n.queue&&ve.dequeue(this,n.queue)},n},ve.fn.extend({fadeTo:function(e,t,i,n){return this.filter(Ge).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var s=ve.isEmptyObject(e),a=ve.speed(t,i,n),r=function(){var t=K(this,ve.extend({},e),a);(s||We.get(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,s=null!=e&&e+"queueHooks",a=ve.timers,r=We.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&Lt.test(s)&&n(r[s]);for(s=a.length;s--;)a[s].elem!==this||null!=e&&a[s].queue!==e||(a[s].anim.stop(i),t=!1,a.splice(s,1));!t&&i||ve.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){
var t,i=We.get(this),n=i[e+"queue"],s=i[e+"queueHooks"],a=ve.timers,r=n?n.length:0;for(i.finish=!0,ve.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish})}}),ve.each(["toggle","show","hide"],function(e,t){var i=ve.fn[t];ve.fn[t]=function(e,n,s){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(R(t,!0),e,n,s)}}),ve.each({slideDown:R("show"),slideUp:R("hide"),slideToggle:R("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ve.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}}),ve.timers=[],ve.fx.tick=function(){var e,t=0,i=ve.timers;for(gt=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||ve.fx.stop(),gt=void 0},ve.fx.timer=function(e){ve.timers.push(e),ve.fx.start()},ve.fx.interval=13,ve.fx.start=function(){yt||(yt=!0,O())},ve.fx.stop=function(){yt=null},ve.fx.speeds={slow:600,fast:200,_default:400},ve.fn.delay=function(t,i){return t=ve.fx?ve.fx.speeds[t]||t:t,i=i||"fx",this.queue(i,function(i,n){var s=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(s)}})},function(){var e=re.createElement("input"),t=re.createElement("select").appendChild(re.createElement("option"));e.type="checkbox",ge.checkOn=""!==e.value,ge.optSelected=t.selected,(e=re.createElement("input")).value="t",e.type="radio",ge.radioValue="t"===e.value}();var vt,Mt=ve.expr.attrHandle;ve.fn.extend({attr:function(e,t){return Xe(this,ve.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ve.removeAttr(this,e)})}}),ve.extend({attr:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?ve.prop(e,t,i):(1===a&&ve.isXMLDoc(e)||(s=ve.attrHooks[t.toLowerCase()]||(ve.expr.match.bool.test(t)?vt:void 0)),void 0!==i?null===i?void ve.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=ve.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!ge.radioValue&&"radio"===t&&a(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(Ze);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),vt={set:function(e,t,i){return!1===t?ve.removeAttr(e,i):e.setAttribute(i,i),i}},ve.each(ve.expr.match.bool.source.match(/\w+/g),function(e,t){var i=Mt[t]||ve.find.attr;Mt[t]=function(e,t,n){var s,a,r=t.toLowerCase();return n||(a=Mt[r],Mt[r]=s,s=null!=i(e,t,n)?r:null,Mt[r]=a),s}});var bt=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;ve.fn.extend({prop:function(e,t){return Xe(this,ve.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ve.propFix[e]||e]})}}),ve.extend({prop:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&ve.isXMLDoc(e)||(t=ve.propFix[t]||t,s=ve.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=ve.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ge.optSelected||(ve.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ve.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ve.propFix[this.toLowerCase()]=this}),ve.fn.extend({addClass:function(e){var t,i,n,s,a,r,o,d=0;if(ye(e))return this.each(function(t){ve(this).addClass(e.call(this,t,U(this)))});if((t=q(e)).length)for(;i=this[d++];)if(s=U(i),n=1===i.nodeType&&" "+z(s)+" "){for(r=0;a=t[r++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");s!==(o=z(n))&&i.setAttribute("class",o)}return this},removeClass:function(e){var t,i,n,s,a,r,o,d=0;if(ye(e))return this.each(function(t){ve(this).removeClass(e.call(this,t,U(this)))});if(!arguments.length)return this.attr("class","");if((t=q(e)).length)for(;i=this[d++];)if(s=U(i),n=1===i.nodeType&&" "+z(s)+" "){for(r=0;a=t[r++];)for(;n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");s!==(o=z(n))&&i.setAttribute("class",o)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):ye(e)?this.each(function(i){ve(this).toggleClass(e.call(this,i,U(this),t),t)}):this.each(function(){var t,s,a,r;if(n)for(s=0,a=ve(this),r=q(e);t=r[s++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==i||((t=U(this))&&We.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":We.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+z(U(i))+" ").indexOf(t)>-1)return!0;return!1}});var Dt=/\r/g;ve.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=ye(e),this.each(function(i){var s;1===this.nodeType&&(null==(s=n?e.call(this,i,ve(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=ve.map(s,function(e){return null==e?"":e+""})),(t=ve.valHooks[this.type]||ve.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))})):s?(t=ve.valHooks[s.type]||ve.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(Dt,""):null==i?"":i:void 0}}),ve.extend({valHooks:{option:{get:function(e){var t=ve.find.attr(e,"value");return null!=t?t:z(ve.text(e))}},select:{get:function(e){var t,i,n,s=e.options,r=e.selectedIndex,o="select-one"===e.type,d=o?null:[],l=o?r+1:s.length;for(n=r<0?l:o?r:0;n<l;n++)if(((i=s[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!a(i.parentNode,"optgroup"))){if(t=ve(i).val(),o)return t;d.push(t)}return d},set:function(e,t){for(var i,n,s=e.options,a=ve.makeArray(t),r=s.length;r--;)((n=s[r]).selected=ve.inArray(ve.valHooks.option.get(n),a)>-1)&&(i=!0);return i||(e.selectedIndex=-1),a}}}}),ve.each(["radio","checkbox"],function(){ve.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=ve.inArray(ve(e).val(),t)>-1}},ge.checkOn||(ve.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),ge.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,St=function(e){e.stopPropagation()};ve.extend(ve.event,{trigger:function(t,i,n,s){var a,r,o,d,l,u,c,h,p=[n||re],m=me.call(t,"type")?t.type:t,_=me.call(t,"namespace")?t.namespace.split("."):[];if(r=h=o=n=n||re,3!==n.nodeType&&8!==n.nodeType&&!wt.test(m+ve.event.triggered)&&(m.indexOf(".")>-1&&(m=(_=m.split(".")).shift(),_.sort()),l=m.indexOf(":")<0&&"on"+m,t=t[ve.expando]?t:new ve.Event(m,"object"==typeof t&&t),t.isTrigger=s?2:3,t.namespace=_.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:ve.makeArray(i,[t]),c=ve.event.special[m]||{},s||!c.trigger||!1!==c.trigger.apply(n,i))){if(!s&&!c.noBubble&&!Ye(n)){for(d=c.delegateType||m,wt.test(d+m)||(r=r.parentNode);r;r=r.parentNode)p.push(r),o=r;o===(n.ownerDocument||re)&&p.push(o.defaultView||o.parentWindow||e)}for(a=0;(r=p[a++])&&!t.isPropagationStopped();)h=r,t.type=a>1?d:c.bindType||m,(u=(We.get(r,"events")||{})[t.type]&&We.get(r,"handle"))&&u.apply(r,i),(u=l&&r[l])&&u.apply&&Ee(r)&&(t.result=u.apply(r,i),!1===t.result&&t.preventDefault());return t.type=m,s||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),i)||!Ee(n)||l&&ye(n[m])&&!Ye(n)&&((o=n[l])&&(n[l]=null),ve.event.triggered=m,t.isPropagationStopped()&&h.addEventListener(m,St),n[m](),t.isPropagationStopped()&&h.removeEventListener(m,St),ve.event.triggered=void 0,o&&(n[l]=o)),t.result}},simulate:function(e,t,i){var n=ve.extend(new ve.Event,i,{type:e,isSimulated:!0});ve.event.trigger(n,null,t)}}),ve.fn.extend({trigger:function(e,t){return this.each(function(){ve.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return ve.event.trigger(e,t,i,!0)}}),ge.focusin||ve.each({focus:"focusin",blur:"focusout"},function(e,t){var i=function(e){ve.event.simulate(t,e.target,ve.event.fix(e))};ve.event.special[t]={setup:function(){var n=this.ownerDocument||this,s=We.access(n,t);s||n.addEventListener(e,i,!0),We.access(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=We.access(n,t)-1;s?We.access(n,t,s):(n.removeEventListener(e,i,!0),We.remove(n,t))}}});var kt=e.location,Ct=Date.now(),Ht=/\?/;ve.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||ve.error("Invalid XML: "+t),i};var xt=/\[\]$/,Zt=/\r?\n/g,Pt=/^(?:submit|button|image|reset|file)$/i,Jt=/^(?:input|select|textarea|keygen)/i;ve.param=function(e,t){var i,n=[],s=function(e,t){var i=ye(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(e)||e.jquery&&!ve.isPlainObject(e))ve.each(e,function(){s(this.name,this.value)});else for(i in e)V(i,e[i],t,s);return n.join("&")},ve.fn.extend({serialize:function(){return ve.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ve.prop(this,"elements");return e?ve.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ve(this).is(":disabled")&&Jt.test(this.nodeName)&&!Pt.test(e)&&(this.checked||!Ke.test(e))}).map(function(e,t){var i=ve(this).val();return null==i?null:Array.isArray(i)?ve.map(i,function(e){return{name:t.name,value:e.replace(Zt,"\r\n")}}):{name:t.name,value:i.replace(Zt,"\r\n")}}).get()}});var Xt=/%20/g,Ft=/#.*$/,jt=/([?&])_=[^&]*/,Et=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Nt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Bt={},Ot={},At="*/".concat("*"),Rt=re.createElement("a");Rt.href=kt.href,ve.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:Wt.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":At,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":ve.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ie(ie(e,ve.ajaxSettings),t):ie(ve.ajaxSettings,e)},ajaxPrefilter:ee(Bt),ajaxTransport:ee(Ot),ajax:function(t,i){function n(t,i,n,o){var l,h,p,L,v,M=i;u||(u=!0,d&&e.clearTimeout(d),s=void 0,r=o||"",b.readyState=t>0?4:0,l=t>=200&&t<300||304===t,n&&(L=ne(m,b,n)),L=se(m,L,b,l),l?(m.ifModified&&((v=b.getResponseHeader("Last-Modified"))&&(ve.lastModified[a]=v),(v=b.getResponseHeader("etag"))&&(ve.etag[a]=v)),204===t||"HEAD"===m.type?M="nocontent":304===t?M="notmodified":(M=L.state,h=L.data,l=!(p=L.error))):(p=M,!t&&M||(M="error",t<0&&(t=0))),b.status=t,b.statusText=(i||M)+"",l?g.resolveWith(_,[h,M,b]):g.rejectWith(_,[b,M,p]),b.statusCode(Y),Y=void 0,c&&f.trigger(l?"ajaxSuccess":"ajaxError",[b,m,l?h:p]),y.fireWith(_,[b,M]),c&&(f.trigger("ajaxComplete",[b,m]),--ve.active||ve.event.trigger("ajaxStop")))}"object"==typeof t&&(i=t,t=void 0),i=i||{};var s,a,r,o,d,l,u,c,h,p,m=ve.ajaxSetup({},i),_=m.context||m,f=m.context&&(_.nodeType||_.jquery)?ve(_):ve.event,g=ve.Deferred(),y=ve.Callbacks("once memory"),Y=m.statusCode||{},L={},v={},M="canceled",b={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o)for(o={};t=Et.exec(r);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=v[e.toLowerCase()]=v[e.toLowerCase()]||e,L[e]=t),this},overrideMimeType:function(e){return null==u&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)b.always(e[b.status]);else for(t in e)Y[t]=[Y[t],e[t]];return this},abort:function(e){var t=e||M;return s&&s.abort(t),n(0,t),this}};if(g.promise(b),m.url=((t||m.url||kt.href)+"").replace(Qt,kt.protocol+"//"),m.type=i.method||i.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(Ze)||[""],null==m.crossDomain){l=re.createElement("a");try{l.href=m.url,l.href=l.href,m.crossDomain=Rt.protocol+"//"+Rt.host!=l.protocol+"//"+l.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=ve.param(m.data,m.traditional)),te(Bt,m,i,b),u)return b;(c=ve.event&&m.global)&&0==ve.active++&&ve.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Nt.test(m.type),a=m.url.replace(Ft,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Xt,"+")):(p=m.url.slice(a.length),m.data&&(m.processData||"string"==typeof m.data)&&(a+=(Ht.test(a)?"&":"?")+m.data,delete m.data),!1===m.cache&&(a=a.replace(jt,"$1"),p=(Ht.test(a)?"&":"?")+"_="+Ct+++p),m.url=a+p),m.ifModified&&(ve.lastModified[a]&&b.setRequestHeader("If-Modified-Since",ve.lastModified[a]),ve.etag[a]&&b.setRequestHeader("If-None-Match",ve.etag[a])),(m.data&&m.hasContent&&!1!==m.contentType||i.contentType)&&b.setRequestHeader("Content-Type",m.contentType),b.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+At+"; q=0.01":""):m.accepts["*"]);for(h in m.headers)b.setRequestHeader(h,m.headers[h]);if(m.beforeSend&&(!1===m.beforeSend.call(_,b,m)||u))return b.abort();if(M="abort",y.add(m.complete),b.done(m.success),b.fail(m.error),s=te(Ot,m,i,b)){if(b.readyState=1,c&&f.trigger("ajaxSend",[b,m]),u)return b;m.async&&m.timeout>0&&(d=e.setTimeout(function(){b.abort("timeout")},m.timeout));try{u=!1,s.send(L,n)}catch(e){if(u)throw e;n(-1,e)}}else n(-1,"No Transport");return b},getJSON:function(e,t,i){return ve.get(e,t,i,"json")},getScript:function(e,t){return ve.get(e,void 0,t,"script")}}),ve.each(["get","post"],function(e,t){ve[t]=function(e,i,n,s){return ye(i)&&(s=s||n,n=i,i=void 0),ve.ajax(ve.extend({url:e,type:t,dataType:s,data:i,success:n},ve.isPlainObject(e)&&e))}}),ve._evalUrl=function(e){return ve.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ve.fn.extend({wrapAll:function(e){var t;return this[0]&&(ye(e)&&(e=e.call(this[0])),t=ve(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return ye(e)?this.each(function(t){ve(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ve(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=ye(e);return this.each(function(i){ve(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ve(this).replaceWith(this.childNodes)}),this}}),ve.expr.pseudos.hidden=function(e){return!ve.expr.pseudos.visible(e)},ve.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ve.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Gt={0:200,1223:204},$t=ve.ajaxSettings.xhr();ge.cors=!!$t&&"withCredentials"in $t,ge.ajax=$t=!!$t,ve.ajaxTransport(function(t){var i,n;if(ge.cors||$t&&!t.crossDomain)return{send:function(s,a){var r,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest");for(r in s)o.setRequestHeader(r,s[r]);i=function(e){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(Gt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout(function(){i&&n()})},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(e){if(i)throw e}},abort:function(){i&&i()}}}),ve.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ve.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ve.globalEval(e),e}}}),ve.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ve.ajaxTransport("script",function(e){if(e.crossDomain){var t,i;return{send:function(n,s){t=ve("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&s("error"===e.type?404:200,e.type)}),re.head.appendChild(t[0])},abort:function(){i&&i()}}}});var It=[],Kt=/(=)\?(?=&|$)|\?\?/;ve.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=It.pop()||ve.expando+"_"+Ct++;return this[e]=!0,e}}),ve.ajaxPrefilter("json jsonp",function(t,i,n){var s,a,r,o=!1!==t.jsonp&&(Kt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=ye(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Kt,"$1"+s):!1!==t.jsonp&&(t.url+=(Ht.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return r||ve.error(s+" was not called"),r[0]},t.dataTypes[0]="json",a=e[s],e[s]=function(){r=arguments},n.always(function(){void 0===a?ve(e).removeProp(s):e[s]=a,t[s]&&(t.jsonpCallback=i.jsonpCallback,It.push(s)),r&&ye(a)&&a(r[0]),r=a=void 0}),"script"}),ge.createHTMLDocument=function(){var e=re.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ve.parseHTML=function(e,t,i){if("string"!=typeof e)return[];"boolean"==typeof t&&(i=t,t=!1);var n,s,a;return t||(ge.createHTMLDocument?((n=(t=re.implementation.createHTMLDocument("")).createElement("base")).href=re.location.href,t.head.appendChild(n)):t=re),s=Se.exec(e),a=!i&&[],s?[t.createElement(s[1])]:(s=b([e],t,a),a&&a.length&&ve(a).remove(),ve.merge([],s.childNodes))},ve.fn.load=function(e,t,i){var n,s,a,r=this,o=e.indexOf(" ");return o>-1&&(n=z(e.slice(o)),e=e.slice(0,o)),ye(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),r.length>0&&ve.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){a=arguments,r.html(n?ve("<div>").append(ve.parseHTML(e)).find(n):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,a||[e.responseText,t,e])})}),this},ve.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ve.fn[t]=function(e){return this.on(t,e)}}),ve.expr.pseudos.animated=function(e){return ve.grep(ve.timers,function(t){return e===t.elem}).length},ve.offset={setOffset:function(e,t,i){var n,s,a,r,o,d,l=ve.css(e,"position"),u=ve(e),c={};"static"===l&&(e.style.position="relative"),o=u.offset(),a=ve.css(e,"top"),d=ve.css(e,"left"),("absolute"===l||"fixed"===l)&&(a+d).indexOf("auto")>-1?(r=(n=u.position()).top,s=n.left):(r=parseFloat(a)||0,s=parseFloat(d)||0),ye(t)&&(t=t.call(e,i,ve.extend({},o))),null!=t.top&&(c.top=t.top-o.top+r),null!=t.left&&(c.left=t.left-o.left+s),"using"in t?t.using.call(e,c):u.css(c)}},ve.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ve.offset.setOffset(this,e,t)});var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===ve.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===ve.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=ve(e).offset()).top+=ve.css(e,"borderTopWidth",!0),s.left+=ve.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-ve.css(n,"marginTop",!0),left:t.left-s.left-ve.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ve.css(e,"position");)e=e.offsetParent;return e||et})}}),ve.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;ve.fn[e]=function(n){return Xe(this,function(e,n,s){var a;if(Ye(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===s)return a?a[t]:e[n];a?a.scrollTo(i?a.pageXOffset:s,i?s:a.pageYOffset):e[n]=s},e,n,arguments.length)}}),ve.each(["top","left"],function(e,t){ve.cssHooks[t]=F(ge.pixelPosition,function(e,i){if(i)return i=X(e,t),dt.test(i)?ve(e).position()[t]+"px":i})}),ve.each({Height:"height",Width:"width"},function(e,t){ve.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,n){ve.fn[n]=function(s,a){var r=arguments.length&&(i||"boolean"!=typeof s),o=i||(!0===s||!0===a?"margin":"border");return Xe(this,function(t,i,s){var a;return Ye(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===s?ve.css(t,i,o):ve.style(t,i,s,o)},t,r?s:void 0,r)}})}),ve.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ve.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}),ve.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ve.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),ve.proxy=function(e,t){var i,n,s;if("string"==typeof t&&(i=e[t],t=e,e=i),ye(e))return n=de.call(arguments,2),s=function(){return e.apply(t||this,n.concat(de.call(arguments)))},s.guid=e.guid=e.guid||ve.guid++,s},ve.holdReady=function(e){e?ve.readyWait++:ve.ready(!0)},ve.isArray=Array.isArray,ve.parseJSON=JSON.parse,ve.nodeName=a,ve.isFunction=ye,ve.isWindow=Ye,ve.camelCase=m,ve.type=n,ve.now=Date.now,ve.isNumeric=function(e){var t=ve.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ve});var zt=e.jQuery,Ut=e.$;return ve.noConflict=function(t){return e.$===ve&&(e.$=Ut),t&&e.jQuery===ve&&(e.jQuery=zt),ve},t||(e.jQuery=e.$=ve),ve}),function(){var e=this,t=e._,i={},n=Array.prototype,s=Object.prototype,a=Function.prototype,r=n.push,o=n.slice,d=n.concat,l=s.toString,u=s.hasOwnProperty,c=n.forEach,h=n.map,p=n.reduce,m=n.reduceRight,_=n.filter,f=n.every,g=n.some,y=n.indexOf,Y=n.lastIndexOf,L=Array.isArray,v=Object.keys,M=a.bind,b=function(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=b),exports._=b):e._=b,b.VERSION="1.5.1";var T=b.each=b.forEach=function(e,t,n){if(null!=e)if(c&&e.forEach===c)e.forEach(t,n);else if(e.length===+e.length){for(var s=0,a=e.length;s<a;s++)if(t.call(n,e[s],s,e)===i)return}else for(var r in e)if(b.has(e,r)&&t.call(n,e[r],r,e)===i)return};b.map=b.collect=function(e,t,i){var n=[];return null==e?n:h&&e.map===h?e.map(t,i):(T(e,function(e,s,a){n.push(t.call(i,e,s,a))}),n)};var D="Reduce of empty array with no initial value";b.reduce=b.foldl=b.inject=function(e,t,i,n){var s=arguments.length>2;if(null==e&&(e=[]),p&&e.reduce===p)return n&&(t=b.bind(t,n)),s?e.reduce(t,i):e.reduce(t);if(T(e,function(e,a,r){s?i=t.call(n,i,e,a,r):(i=e,s=!0)}),!s)throw new TypeError(D);return i},b.reduceRight=b.foldr=function(e,t,i,n){var s=arguments.length>2;if(null==e&&(e=[]),m&&e.reduceRight===m)return n&&(t=b.bind(t,n)),s?e.reduceRight(t,i):e.reduceRight(t);var a=e.length;if(a!==+a){var r=b.keys(e);a=r.length}if(T(e,function(o,d,l){d=r?r[--a]:--a,s?i=t.call(n,i,e[d],d,l):(i=e[d],s=!0)}),!s)throw new TypeError(D);return i},b.find=b.detect=function(e,t,i){var n;return w(e,function(e,s,a){if(t.call(i,e,s,a))return n=e,!0}),n},b.filter=b.select=function(e,t,i){var n=[];return null==e?n:_&&e.filter===_?e.filter(t,i):(T(e,function(e,s,a){t.call(i,e,s,a)&&n.push(e)}),n)},b.reject=function(e,t,i){return b.filter(e,function(e,n,s){return!t.call(i,e,n,s)},i)},b.every=b.all=function(e,t,n){t||(t=b.identity);var s=!0;return null==e?s:f&&e.every===f?e.every(t,n):(T(e,function(e,a,r){if(!(s=s&&t.call(n,e,a,r)))return i}),!!s)};var w=b.some=b.any=function(e,t,n){t||(t=b.identity);var s=!1;return null==e?s:g&&e.some===g?e.some(t,n):(T(e,function(e,a,r){if(s||(s=t.call(n,e,a,r)))return i}),!!s)};b.contains=b.include=function(e,t){return null!=e&&(y&&e.indexOf===y?-1!=e.indexOf(t):w(e,function(e){return e===t}))},b.invoke=function(e,t){var i=o.call(arguments,2),n=b.isFunction(t);return b.map(e,function(e){return(n?t:e[t]).apply(e,i)})},b.pluck=function(e,t){return b.map(e,function(e){return e[t]})},b.where=function(e,t,i){return b.isEmpty(t)?i?void 0:[]:b[i?"find":"filter"](e,function(e){for(var i in t)if(t[i]!==e[i])return!1;return!0})},b.findWhere=function(e,t){return b.where(e,t,!0)},b.max=function(e,t,i){if(!t&&b.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.max.apply(Math,e);if(!t&&b.isEmpty(e))return-1/0;var n={computed:-1/0,value:-1/0};return T(e,function(e,s,a){var r=t?t.call(i,e,s,a):e;r>n.computed&&(n={value:e,computed:r})}),n.value},b.min=function(e,t,i){if(!t&&b.isArray(e)&&e[0]===+e[0]&&e.length<65535)return Math.min.apply(Math,e);if(!t&&b.isEmpty(e))return 1/0;var n={computed:1/0,value:1/0};return T(e,function(e,s,a){var r=t?t.call(i,e,s,a):e;r<n.computed&&(n={value:e,computed:r})}),n.value},b.shuffle=function(e){var t,i=0,n=[];return T(e,function(e){t=b.random(i++),n[i-1]=n[t],n[t]=e}),n};var S=function(e){return b.isFunction(e)?e:function(t){return t[e]}};b.sortBy=function(e,t,i){var n=S(t);return b.pluck(b.map(e,function(e,t,s){return{value:e,index:t,criteria:n.call(i,e,t,s)}}).sort(function(e,t){var i=e.criteria,n=t.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return e.index<t.index?-1:1}),"value")};var k=function(e,t,i,n){var s={},a=S(null==t?b.identity:t);return T(e,function(t,r){var o=a.call(i,t,r,e);n(s,o,t)}),s};b.groupBy=function(e,t,i){return k(e,t,i,function(e,t,i){(b.has(e,t)?e[t]:e[t]=[]).push(i)})},b.countBy=function(e,t,i){return k(e,t,i,function(e,t){b.has(e,t)||(e[t]=0),e[t]++})},b.sortedIndex=function(e,t,i,n){i=null==i?b.identity:S(i);for(var s=i.call(n,t),a=0,r=e.length;a<r;){var o=a+r>>>1;i.call(n,e[o])<s?a=o+1:r=o}return a},b.toArray=function(e){return e?b.isArray(e)?o.call(e):e.length===+e.length?b.map(e,b.identity):b.values(e):[]},b.size=function(e){return null==e?0:e.length===+e.length?e.length:b.keys(e).length},b.first=b.head=b.take=function(e,t,i){if(null!=e)return null==t||i?e[0]:o.call(e,0,t)},b.initial=function(e,t,i){return o.call(e,0,e.length-(null==t||i?1:t))},b.last=function(e,t,i){if(null!=e)return null==t||i?e[e.length-1]:o.call(e,Math.max(e.length-t,0))},b.rest=b.tail=b.drop=function(e,t,i){return o.call(e,null==t||i?1:t)},b.compact=function(e){return b.filter(e,b.identity)};var C=function(e,t,i){return t&&b.every(e,b.isArray)?d.apply(i,e):(T(e,function(e){b.isArray(e)||b.isArguments(e)?t?r.apply(i,e):C(e,t,i):i.push(e)}),i)};b.flatten=function(e,t){return C(e,t,[])},b.without=function(e){return b.difference(e,o.call(arguments,1))},b.uniq=b.unique=function(e,t,i,n){b.isFunction(t)&&(n=i,i=t,t=!1);var s=i?b.map(e,i,n):e,a=[],r=[];return T(s,function(i,n){(t?n&&r[r.length-1]===i:b.contains(r,i))||(r.push(i),a.push(e[n]))}),a},b.union=function(){return b.uniq(b.flatten(arguments,!0))},b.intersection=function(e){var t=o.call(arguments,1);return b.filter(b.uniq(e),function(e){return b.every(t,function(t){return b.indexOf(t,e)>=0})})},b.difference=function(e){var t=d.apply(n,o.call(arguments,1));return b.filter(e,function(e){return!b.contains(t,e)})},b.zip=function(){for(var e=b.max(b.pluck(arguments,"length").concat(0)),t=new Array(e),i=0;i<e;i++)t[i]=b.pluck(arguments,""+i);return t},b.object=function(e,t){if(null==e)return{};for(var i={},n=0,s=e.length;n<s;n++)t?i[e[n]]=t[n]:i[e[n][0]]=e[n][1];return i},b.indexOf=function(e,t,i){if(null==e)return-1;var n=0,s=e.length;if(i){if("number"!=typeof i)return n=b.sortedIndex(e,t),e[n]===t?n:-1;n=i<0?Math.max(0,s+i):i}if(y&&e.indexOf===y)return e.indexOf(t,i);for(;n<s;n++)if(e[n]===t)return n;return-1},b.lastIndexOf=function(e,t,i){if(null==e)return-1;var n=null!=i;if(Y&&e.lastIndexOf===Y)return n?e.lastIndexOf(t,i):e.lastIndexOf(t);for(var s=n?i:e.length;s--;)if(e[s]===t)return s;return-1},b.range=function(e,t,i){arguments.length<=1&&(t=e||0,e=0),i=arguments[2]||1;for(var n=Math.max(Math.ceil((t-e)/i),0),s=0,a=new Array(n);s<n;)a[s++]=e,e+=i;return a};var H=function(){};b.bind=function(e,t){var i,n;if(M&&e.bind===M)return M.apply(e,o.call(arguments,1));if(!b.isFunction(e))throw new TypeError;return i=o.call(arguments,2),n=function(){if(!(this instanceof n))return e.apply(t,i.concat(o.call(arguments)));H.prototype=e.prototype;var s=new H;H.prototype=null;var a=e.apply(s,i.concat(o.call(arguments)));return Object(a)===a?a:s}},b.partial=function(e){var t=o.call(arguments,1);return function(){return e.apply(this,t.concat(o.call(arguments)))}},b.bindAll=function(e){var t=o.call(arguments,1);if(0===t.length)throw new Error("bindAll must be passed function names");return T(t,function(t){e[t]=b.bind(e[t],e)}),e},b.memoize=function(e,t){var i={};return t||(t=b.identity),function(){var n=t.apply(this,arguments);return b.has(i,n)?i[n]:i[n]=e.apply(this,arguments)}},b.delay=function(e,t){var i=o.call(arguments,2);return setTimeout(function(){return e.apply(null,i)},t)},b.defer=function(e){return b.delay.apply(b,[e,1].concat(o.call(arguments,1)))},b.throttle=function(e,t,i){var n,s,a,r=null,o=0;i||(i={});var d=function(){o=!1===i.leading?0:new Date,r=null,a=e.apply(n,s)};return function(){var l=new Date;o||!1!==i.leading||(o=l);var u=t-(l-o);return n=this,s=arguments,u<=0?(clearTimeout(r),r=null,o=l,a=e.apply(n,s)):r||!1===i.trailing||(r=setTimeout(d,u)),a}},b.debounce=function(e,t,i){var n,s=null;return function(){var a=this,r=arguments,o=function(){s=null,i||(n=e.apply(a,r))},d=i&&!s;return clearTimeout(s),s=setTimeout(o,t),d&&(n=e.apply(a,r)),n}},b.once=function(e){var t,i=!1;return function(){return i?t:(i=!0,t=e.apply(this,arguments),e=null,t)}},b.wrap=function(e,t){return function(){var i=[e];return r.apply(i,arguments),t.apply(this,i)}},b.compose=function(){var e=arguments;return function(){for(var t=arguments,i=e.length-1;i>=0;i--)t=[e[i].apply(this,t)];return t[0]}},b.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},b.keys=v||function(e){if(e!==Object(e))throw new TypeError("Invalid object");var t=[];for(var i in e)b.has(e,i)&&t.push(i);return t},b.values=function(e){var t=[];for(var i in e)b.has(e,i)&&t.push(e[i]);return t},b.pairs=function(e){var t=[];for(var i in e)b.has(e,i)&&t.push([i,e[i]]);return t},b.invert=function(e){var t={};for(var i in e)b.has(e,i)&&(t[e[i]]=i);return t},b.functions=b.methods=function(e){var t=[]
;for(var i in e)b.isFunction(e[i])&&t.push(i);return t.sort()},b.extend=function(e){return T(o.call(arguments,1),function(t){if(t)for(var i in t)e[i]=t[i]}),e},b.pick=function(e){var t={},i=d.apply(n,o.call(arguments,1));return T(i,function(i){i in e&&(t[i]=e[i])}),t},b.omit=function(e){var t={},i=d.apply(n,o.call(arguments,1));for(var s in e)b.contains(i,s)||(t[s]=e[s]);return t},b.defaults=function(e){return T(o.call(arguments,1),function(t){if(t)for(var i in t)void 0===e[i]&&(e[i]=t[i])}),e},b.clone=function(e){return b.isObject(e)?b.isArray(e)?e.slice():b.extend({},e):e},b.tap=function(e,t){return t(e),e};var x=function(e,t,i,n){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return e===t;e instanceof b&&(e=e._wrapped),t instanceof b&&(t=t._wrapped);var s=l.call(e);if(s!=l.call(t))return!1;switch(s){case"[object String]":return e==String(t);case"[object Number]":return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}if("object"!=typeof e||"object"!=typeof t)return!1;for(var a=i.length;a--;)if(i[a]==e)return n[a]==t;var r=e.constructor,o=t.constructor;if(r!==o&&!(b.isFunction(r)&&r instanceof r&&b.isFunction(o)&&o instanceof o))return!1;i.push(e),n.push(t);var d=0,u=!0;if("[object Array]"==s){if(d=e.length,u=d==t.length)for(;d--&&(u=x(e[d],t[d],i,n)););}else{for(var c in e)if(b.has(e,c)&&(d++,!(u=b.has(t,c)&&x(e[c],t[c],i,n))))break;if(u){for(c in t)if(b.has(t,c)&&!d--)break;u=!d}}return i.pop(),n.pop(),u};b.isEqual=function(e,t){return x(e,t,[],[])},b.isEmpty=function(e){if(null==e)return!0;if(b.isArray(e)||b.isString(e))return 0===e.length;for(var t in e)if(b.has(e,t))return!1;return!0},b.isElement=function(e){return!(!e||1!==e.nodeType)},b.isArray=L||function(e){return"[object Array]"==l.call(e)},b.isObject=function(e){return e===Object(e)},T(["Arguments","Function","String","Number","Date","RegExp"],function(e){b["is"+e]=function(t){return l.call(t)=="[object "+e+"]"}}),b.isArguments(arguments)||(b.isArguments=function(e){return!(!e||!b.has(e,"callee"))}),"function"!=typeof/./&&(b.isFunction=function(e){return"function"==typeof e}),b.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},b.isNaN=function(e){return b.isNumber(e)&&e!=+e},b.isBoolean=function(e){return!0===e||!1===e||"[object Boolean]"==l.call(e)},b.isNull=function(e){return null===e},b.isUndefined=function(e){return void 0===e},b.has=function(e,t){return u.call(e,t)},b.noConflict=function(){return e._=t,this},b.identity=function(e){return e},b.times=function(e,t,i){for(var n=Array(Math.max(0,e)),s=0;s<e;s++)n[s]=t.call(i,s);return n},b.random=function(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))};var Z={escape:{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;"}};Z.unescape=b.invert(Z.escape);var P={escape:new RegExp("["+b.keys(Z.escape).join("")+"]","g"),unescape:new RegExp("("+b.keys(Z.unescape).join("|")+")","g")};b.each(["escape","unescape"],function(e){b[e]=function(t){return null==t?"":(""+t).replace(P[e],function(t){return Z[e][t]})}}),b.result=function(e,t){if(null!=e){var i=e[t];return b.isFunction(i)?i.call(e):i}},b.mixin=function(e){T(b.functions(e),function(t){var i=b[t]=e[t];b.prototype[t]=function(){var e=[this._wrapped];return r.apply(e,arguments),E.call(this,i.apply(b,e))}})};var J=0;b.uniqueId=function(e){var t=++J+"";return e?e+t:t},b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var X=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"},j=/\\|'|\r|\n|\t|\u2028|\u2029/g;b.template=function(e,t,i){var n;i=b.defaults({},i,b.templateSettings);var s=new RegExp([(i.escape||X).source,(i.interpolate||X).source,(i.evaluate||X).source].join("|")+"|$","g"),a=0,r="__p+='";e.replace(s,function(t,i,n,s,o){return r+=e.slice(a,o).replace(j,function(e){return"\\"+F[e]}),i&&(r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'"),n&&(r+="'+\n((__t=("+n+"))==null?'':__t)+\n'"),s&&(r+="';\n"+s+"\n__p+='"),a=o+t.length,t}),r+="';\n",i.variable||(r="with(obj||{}){\n"+r+"}\n"),r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{n=new Function(i.variable||"obj","_",r)}catch(e){throw e.source=r,e}if(t)return n(t,b);var o=function(e){return n.call(this,e,b)};return o.source="function("+(i.variable||"obj")+"){\n"+r+"}",o},b.chain=function(e){return b(e).chain()};var E=function(e){return this._chain?b(e).chain():e};b.mixin(b),T(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];b.prototype[e]=function(){var i=this._wrapped;return t.apply(i,arguments),"shift"!=e&&"splice"!=e||0!==i.length||delete i[0],E.call(this,i)}}),T(["concat","join","slice"],function(e){var t=n[e];b.prototype[e]=function(){return E.call(this,t.apply(this._wrapped,arguments))}}),b.extend(b.prototype,{chain:function(){return this._chain=!0,this},value:function(){return this._wrapped}})}.call(this),define("underscore",function(e){return function(){return e._}}(this)),define("text",["module"],function(e){"use strict";var t,i,n,s,a,r=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],o=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,d=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,l="undefined"!=typeof location&&location.href,u=l&&location.protocol&&location.protocol.replace(/\:/,""),c=l&&location.hostname,h=l&&(location.port||void 0),p={},m=e.config&&e.config()||{};return t={version:"2.0.13+",strip:function(e){if(e){e=e.replace(o,"");var t=e.match(d);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:m.createXhr||function(){var e,t,i;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;t<3;t+=1){i=r[t];try{e=new ActiveXObject(i)}catch(e){}if(e){r=[i];break}}return e},parseName:function(e){var t,i,n,s=!1,a=e.lastIndexOf("."),r=0===e.indexOf("./")||0===e.indexOf("../");return-1!==a&&(!r||a>1)?(t=e.substring(0,a),i=e.substring(a+1)):t=e,n=i||t,a=n.indexOf("!"),-1!==a&&(s="strip"===n.substring(a+1),n=n.substring(0,a),i?i=n:t=n),{moduleName:t,ext:i,strip:s}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,i,n,s){var a,r,o,d=t.xdRegExp.exec(e);return!d||(a=d[2],r=d[3],r=r.split(":"),o=r[1],r=r[0],!(a&&a!==i||r&&r.toLowerCase()!==n.toLowerCase()||(o||r)&&o!==s))},finishLoad:function(e,i,n,s){n=i?t.strip(n):n,m.isBuild&&(p[e]=n),s(n)},load:function(e,i,n,s){if(s&&s.isBuild&&!s.inlineText)return void n();m.isBuild=s&&s.isBuild;var a=t.parseName(e),r=a.moduleName+(a.ext?"."+a.ext:""),o=i.toUrl(r),d=m.useXhr||t.useXhr;if(0===o.indexOf("empty:"))return void n();!l||d(o,u,c,h)?t.get(o,function(i){t.finishLoad(e,a.strip,i,n)},function(e){n.error&&n.error(e)}):i([r],function(e){t.finishLoad(a.moduleName+"."+a.ext,a.strip,e,n)})},write:function(e,i,n,s){if(p.hasOwnProperty(i)){var a=t.jsEscape(p[i]);n.asModule(e+"!"+i,"define(function () { return '"+a+"';});\n")}},writeFile:function(e,i,n,s,a){var r=t.parseName(i),o=r.ext?"."+r.ext:"",d=r.moduleName+o,l=n.toUrl(r.moduleName+o)+".js";t.load(d,n,function(i){var n=function(e){return s(l,e)};n.asModule=function(e,t){return s.asModule(e,l,t)},t.write(e,d,n,a)},a)}},"node"===m.env||!m.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(i=require.nodeRequire("fs"),t.get=function(e,t,n){try{var s=i.readFileSync(e,"utf8");"\ufeff"===s[0]&&(s=s.substring(1)),t(s)}catch(e){n&&n(e)}}):"xhr"===m.env||!m.env&&t.createXhr()?t.get=function(e,i,n,s){var a,r=t.createXhr();if(r.open("GET",e,!0),s)for(a in s)s.hasOwnProperty(a)&&r.setRequestHeader(a.toLowerCase(),s[a]);m.onXhr&&m.onXhr(r,e),r.onreadystatechange=function(t){var s,a;4===r.readyState&&(s=r.status||0,s>399&&s<600?(a=new Error(e+" HTTP status: "+s),a.xhr=r,n&&n(a)):i(r.responseText),m.onXhrComplete&&m.onXhrComplete(r,e))},r.send(null)}:"rhino"===m.env||!m.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?t.get=function(e,t){var i,n,s=new java.io.File(e),a=java.lang.System.getProperty("line.separator"),r=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(s),"utf-8")),o="";try{for(i=new java.lang.StringBuffer,n=r.readLine(),n&&n.length()&&65279===n.charAt(0)&&(n=n.substring(1)),null!==n&&i.append(n);null!==(n=r.readLine());)i.append(a),i.append(n);o=String(i.toString())}finally{r.close()}t(o)}:("xpconnect"===m.env||!m.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(n=Components.classes,s=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),a="@mozilla.org/windows-registry-key;1"in n,t.get=function(e,t){var i,r,o,d={};a&&(e=e.replace(/\//g,"\\")),o=new FileUtils.File(e);try{i=n["@mozilla.org/network/file-input-stream;1"].createInstance(s.nsIFileInputStream),i.init(o,1,0,!1),r=n["@mozilla.org/intl/converter-input-stream;1"].createInstance(s.nsIConverterInputStream),r.init(i,"utf-8",i.available(),s.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),r.readString(i.available(),d),r.close(),i.close(),t(d.value)}catch(e){throw new Error((o&&o.path||"")+": "+e)}}),t}),define("pinyin-by-unicode",{strChineseFirstPY:"[encoded data, 20902 characters]"}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define("moment",t):e.moment=t()}(this,function(){"use strict";function e(){return Xt.apply(null,arguments)}function t(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function r(e,t){var i,n=[];for(i=0;i<e.length;++i)n.push(t(e[i],i));return n}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function d(e,t){for(var i in t)o(t,i)&&(e[i]=t[i]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,i,n){return ge(e,t,i,n,!0).utc()}function u(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function c(e){if(null==e._isValid){var t=u(e),i=Ft.call(t.parsedDateParts,function(e){return null!=e}),n=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i)
;if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function h(e){var t=l(NaN);return null!=e?d(u(t),e):u(t).userInvalidated=!0,t}function p(e,t){var i,s,a;if(n(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),n(t._i)||(e._i=t._i),n(t._f)||(e._f=t._f),n(t._l)||(e._l=t._l),n(t._strict)||(e._strict=t._strict),n(t._tzm)||(e._tzm=t._tzm),n(t._isUTC)||(e._isUTC=t._isUTC),n(t._offset)||(e._offset=t._offset),n(t._pf)||(e._pf=u(t)),n(t._locale)||(e._locale=t._locale),jt.length>0)for(i=0;i<jt.length;i++)n(a=t[s=jt[i]])||(e[s]=a);return e}function m(t){p(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Et&&(Et=!0,e.updateOffset(this),Et=!1)}function _(e){return e instanceof m||null!=e&&null!=e._isAMomentObject}function f(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function g(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=f(t)),i}function y(e,t,i){var n,s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(n=0;n<s;n++)(i&&e[n]!==t[n]||!i&&g(e[n])!==g(t[n]))&&r++;return r+a}function Y(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function L(t,i){var n=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){for(var s,a=[],r=0;r<arguments.length;r++){if(s="","object"==typeof arguments[r]){s+="\n["+r+"] ";for(var o in arguments[0])s+=o+": "+arguments[0][o]+", ";s=s.slice(0,-2)}else s=arguments[r];a.push(s)}Y(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}function v(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),Wt[t]||(Y(i),Wt[t]=!0)}function M(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function b(e,t){var n,s=d({},e);for(n in t)o(t,n)&&(i(e[n])&&i(t[n])?(s[n]={},d(s[n],e[n]),d(s[n],t[n])):null!=t[n]?s[n]=t[n]:delete s[n]);for(n in e)o(e,n)&&!o(t,n)&&i(e[n])&&(s[n]=d({},s[n]));return s}function T(e){null!=e&&this.set(e)}function D(e,t){var i=e.toLowerCase();Qt[i]=Qt[i+"s"]=Qt[t]=e}function w(e){return"string"==typeof e?Qt[e]||Qt[e.toLowerCase()]:void 0}function S(e){var t,i,n={};for(i in e)o(e,i)&&(t=w(i))&&(n[t]=e[i]);return n}function k(e,t){Bt[e]=t}function C(e,t,i){var n=""+Math.abs(e),s=t-n.length;return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function H(e,t,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),e&&(Gt[e]=s),t&&(Gt[t[0]]=function(){return C(s.apply(this,arguments),t[1],t[2])}),i&&(Gt[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function x(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Z(e,t){return e.isValid()?(t=P(t,e.localeData()),Rt[t]=Rt[t]||function(e){var t,i,n=e.match(Ot);for(t=0,i=n.length;t<i;t++)Gt[n[t]]?n[t]=Gt[n[t]]:n[t]=x(n[t]);return function(t){var s,a="";for(s=0;s<i;s++)a+=M(n[s])?n[s].call(t,e):n[s];return a}}(t),Rt[t](e)):e.localeData().invalidDate()}function P(e,t){function i(e){return t.longDateFormat(e)||e}var n=5;for(At.lastIndex=0;n>=0&&At.test(e);)e=e.replace(At,i),At.lastIndex=0,n-=1;return e}function J(e,t,i){li[e]=M(t)?t:function(e,n){return e&&i?i:t}}function X(e,t){return o(li,e)?li[e](t._strict,t._locale):new RegExp(function(e){return F(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,n,s){return t||i||n||s}))}(e))}function F(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function j(e,t){var i,n=t;for("string"==typeof e&&(e=[e]),s(t)&&(n=function(e,i){i[t]=g(e)}),i=0;i<e.length;i++)ui[e[i]]=n}function E(e,t){j(e,function(e,i,n,s){n._w=n._w||{},t(e,n._w,n,s)})}function W(e,t,i){null!=t&&o(ui,e)&&ui[e](t,i._a,i,e)}function N(e){return Q(e)?366:365}function Q(e){return e%4==0&&e%100!=0||e%400==0}function B(t,i){return function(n){return null!=n?(A(this,t,n),e.updateOffset(this,i),this):O(this,t)}}function O(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function A(e,t,i){e.isValid()&&!isNaN(i)&&("FullYear"===t&&Q(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](i,e.month(),R(i,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](i))}function R(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=function(e,t){return(e%12+12)%12}(t);return e+=(t-i)/12,1===i?Q(e)?29:28:31-i%7%2}function G(e,t){var i;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=g(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return i=Math.min(e.date(),R(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,i),e}function $(t){return null!=t?(G(this,t),e.updateOffset(this,!0),this):O(this,"Month")}function I(){function e(e,t){return t.length-e.length}var t,i,n=[],s=[],a=[];for(t=0;t<12;t++)i=l([2e3,t]),n.push(this.monthsShort(i,"")),s.push(this.months(i,"")),a.push(this.months(i,"")),a.push(this.monthsShort(i,""));for(n.sort(e),s.sort(e),a.sort(e),t=0;t<12;t++)n[t]=F(n[t]),s[t]=F(s[t]);for(t=0;t<24;t++)a[t]=F(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function K(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function z(e,t,i){var n=7+t-i;return-(7+K(e,0,n).getUTCDay()-t)%7+n-1}function U(e,t,i,n,s){var a,r,o=1+7*(t-1)+(7+i-n)%7+z(e,n,s);return o<=0?r=N(a=e-1)+o:o>N(e)?(a=e+1,r=o-N(e)):(a=e,r=o),{year:a,dayOfYear:r}}function q(e,t,i){var n,s,a=z(e.year(),t,i),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?n=r+V(s=e.year()-1,t,i):r>V(e.year(),t,i)?(n=r-V(e.year(),t,i),s=e.year()+1):(s=e.year(),n=r),{week:n,year:s}}function V(e,t,i){var n=z(e,t,i),s=z(e+1,t,i);return(N(e)-n+s)/7}function ee(){function e(e,t){return t.length-e.length}var t,i,n,s,a,r=[],o=[],d=[],u=[];for(t=0;t<7;t++)i=l([2e3,1]).day(t),n=this.weekdaysMin(i,""),s=this.weekdaysShort(i,""),a=this.weekdays(i,""),r.push(n),o.push(s),d.push(a),u.push(n),u.push(s),u.push(a);for(r.sort(e),o.sort(e),d.sort(e),u.sort(e),t=0;t<7;t++)o[t]=F(o[t]),d[t]=F(d[t]),u[t]=F(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function te(){return this.hours()%12||12}function ie(e,t){H(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ne(e,t){return t._meridiemParse}function se(e){return e?e.toLowerCase().replace("_","-"):e}function ae(e){var t=null;if(!Fi[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=Pi._abbr,require("./locale/"+e),re(t)}catch(e){}return Fi[e]}function re(e,t){var i;return e&&(i=n(t)?de(e):oe(e,t))&&(Pi=i),Pi._abbr}function oe(e,t){if(null!==t){var i=Xi;if(t.abbr=e,null!=Fi[e])v("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=Fi[e]._config;else if(null!=t.parentLocale){if(null==Fi[t.parentLocale])return ji[t.parentLocale]||(ji[t.parentLocale]=[]),ji[t.parentLocale].push({name:e,config:t}),null;i=Fi[t.parentLocale]._config}return Fi[e]=new T(b(i,t)),ji[e]&&ji[e].forEach(function(e){oe(e.name,e.config)}),re(e),Fi[e]}return delete Fi[e],null}function de(e){var i;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Pi;if(!t(e)){if(i=ae(e))return i;e=[e]}return function(e){for(var t,i,n,s,a=0;a<e.length;){for(t=(s=se(e[a]).split("-")).length,i=(i=se(e[a+1]))?i.split("-"):null;t>0;){if(n=ae(s.slice(0,t).join("-")))return n;if(i&&i.length>=t&&y(s,i,!0)>=t-1)break;t--}a++}return null}(e)}function le(e){var t,i=e._a;return i&&-2===u(e).overflow&&(t=i[hi]<0||i[hi]>11?hi:i[pi]<1||i[pi]>R(i[ci],i[hi])?pi:i[mi]<0||i[mi]>24||24===i[mi]&&(0!==i[_i]||0!==i[fi]||0!==i[gi])?mi:i[_i]<0||i[_i]>59?_i:i[fi]<0||i[fi]>59?fi:i[gi]<0||i[gi]>999?gi:-1,u(e)._overflowDayOfYear&&(t<ci||t>pi)&&(t=pi),u(e)._overflowWeeks&&-1===t&&(t=yi),u(e)._overflowWeekday&&-1===t&&(t=Yi),u(e).overflow=t),e}function ue(e,t,i){return null!=e?e:null!=t?t:i}function ce(t){var i,n,s,a,r,o=[];if(!t._d){for(s=function(t){var i=new Date(e.now());return t._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}(t),t._w&&null==t._a[pi]&&null==t._a[hi]&&function(e){var t,i,n,s,a,r,o,d;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,r=4,i=ue(t.GG,e._a[ci],q(ye(),1,4).year),n=ue(t.W,1),((s=ue(t.E,1))<1||s>7)&&(d=!0);else{a=e._locale._week.dow,r=e._locale._week.doy;var l=q(ye(),a,r);i=ue(t.gg,e._a[ci],l.year),n=ue(t.w,l.week),null!=t.d?((s=t.d)<0||s>6)&&(d=!0):null!=t.e?(s=t.e+a,(t.e<0||t.e>6)&&(d=!0)):s=a}n<1||n>V(i,a,r)?u(e)._overflowWeeks=!0:null!=d?u(e)._overflowWeekday=!0:(o=U(i,n,s,a,r),e._a[ci]=o.year,e._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(r=ue(t._a[ci],s[ci]),(t._dayOfYear>N(r)||0===t._dayOfYear)&&(u(t)._overflowDayOfYear=!0),n=K(r,0,t._dayOfYear),t._a[hi]=n.getUTCMonth(),t._a[pi]=n.getUTCDate()),i=0;i<3&&null==t._a[i];++i)t._a[i]=o[i]=s[i];for(;i<7;i++)t._a[i]=o[i]=null==t._a[i]?2===i?1:0:t._a[i];24===t._a[mi]&&0===t._a[_i]&&0===t._a[fi]&&0===t._a[gi]&&(t._nextDay=!0,t._a[mi]=0),t._d=(t._useUTC?K:function(e,t,i,n,s,a,r){var o=new Date(e,t,i,n,s,a,r);return e<100&&e>=0&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,o),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[mi]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(u(t).weekdayMismatch=!0)}}function he(e){var t,i,n,s,a,r,o=e._i,d=Ei.exec(o)||Wi.exec(o);if(d){for(u(e).iso=!0,t=0,i=Qi.length;t<i;t++)if(Qi[t][1].exec(d[1])){s=Qi[t][0],n=!1!==Qi[t][2];break}if(null==s)return void(e._isValid=!1);if(d[3]){for(t=0,i=Bi.length;t<i;t++)if(Bi[t][1].exec(d[3])){a=(d[2]||" ")+Bi[t][0];break}if(null==a)return void(e._isValid=!1)}if(!n&&null!=a)return void(e._isValid=!1);if(d[4]){if(!Ni.exec(d[4]))return void(e._isValid=!1);r="Z"}e._f=s+(a||"")+(r||""),_e(e)}else e._isValid=!1}function pe(e,t,i,n,s,a){var r=[function(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}(e),Ti.indexOf(t),parseInt(i,10),parseInt(n,10),parseInt(s,10)];return a&&r.push(parseInt(a,10)),r}function me(e){var t=Ai.exec(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e._i));if(t){var i=pe(t[4],t[3],t[2],t[5],t[6],t[7]);if(!function(e,t,i){return!e||ki.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(u(i).weekdayMismatch=!0,i._isValid=!1,!1)}(t[1],i,e))return;e._a=i,e._tzm=function(e,t,i){if(e)return Ri[e];if(t)return 0;var n=parseInt(i,10),s=n%100;return(n-s)/100*60+s}(t[8],t[9],t[10]),e._d=K.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),u(e).rfc2822=!0}else e._isValid=!1}function _e(t){if(t._f!==e.ISO_8601)if(t._f!==e.RFC_2822){t._a=[],u(t).empty=!0;var i,n,s,a,r,o=""+t._i,d=o.length,l=0;for(s=P(t._f,t._locale).match(Ot)||[],i=0;i<s.length;i++)a=s[i],(n=(o.match(X(a,t))||[])[0])&&((r=o.substr(0,o.indexOf(n))).length>0&&u(t).unusedInput.push(r),o=o.slice(o.indexOf(n)+n.length),l+=n.length),Gt[a]?(n?u(t).empty=!1:u(t).unusedTokens.push(a),W(a,n,t)):t._strict&&!n&&u(t).unusedTokens.push(a);u(t).charsLeftOver=d-l,o.length>0&&u(t).unusedInput.push(o),t._a[mi]<=12&&!0===u(t).bigHour&&t._a[mi]>0&&(u(t).bigHour=void 0),u(t).parsedDateParts=t._a.slice(0),u(t).meridiem=t._meridiem,t._a[mi]=function(e,t,i){var n;return null==i?t:null!=e.meridiemHour?e.meridiemHour(t,i):null!=e.isPM?((n=e.isPM(i))&&t<12&&(t+=12),n||12!==t||(t=0),t):t}(t._locale,t._a[mi],t._meridiem),ce(t),le(t)}else me(t);else he(t)}function fe(o){var l=o._i,f=o._f;return o._locale=o._locale||de(o._l),null===l||void 0===f&&""===l?h({nullInput:!0}):("string"==typeof l&&(o._i=l=o._locale.preparse(l)),_(l)?new m(le(l)):(a(l)?o._d=l:t(f)?function(e){var t,i,n,s,a;if(0===e._f.length)return u(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)a=0,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],_e(t),c(t)&&(a+=u(t).charsLeftOver,a+=10*u(t).unusedTokens.length,u(t).score=a,(null==n||a<n)&&(n=a,i=t));d(e,i||t)}(o):f?_e(o):function(o){var d=o._i;n(d)?o._d=new Date(e.now()):a(d)?o._d=new Date(d.valueOf()):"string"==typeof d?function(t){var i=Oi.exec(t._i);null===i?(he(t),!1===t._isValid&&(delete t._isValid,me(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))):t._d=new Date(+i[1])}(o):t(d)?(o._a=r(d.slice(0),function(e){return parseInt(e,10)}),ce(o)):i(d)?function(e){if(!e._d){var t=S(e._i);e._a=r([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ce(e)}}(o):s(d)?o._d=new Date(d):e.createFromInputFallback(o)}(o),c(o)||(o._d=null),o))}function ge(e,n,s,a,r){var o={};return!0!==s&&!1!==s||(a=s,s=void 0),(i(e)&&function(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}(e)||t(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=s,o._i=e,o._f=n,o._strict=a,function(e){var t=new m(le(fe(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(o)}function ye(e,t,i,n){return ge(e,t,i,n,!1)}function Ye(e,i){var n,s;if(1===i.length&&t(i[0])&&(i=i[0]),!i.length)return ye();for(n=i[0],s=1;s<i.length;++s)i[s].isValid()&&!i[s][e](n)||(n=i[s]);return n}function Le(e){var t=S(e),i=t.year||0,n=t.quarter||0,s=t.month||0,a=t.week||0,r=t.day||0,o=t.hour||0,d=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=function(e){for(var t in e)if(-1===Li.call(Ii,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var i=!1,n=0;n<Ii.length;++n)if(e[Ii[n]]){if(i)return!1;parseFloat(e[Ii[n]])!==g(e[Ii[n]])&&(i=!0)}return!0}(t),this._milliseconds=+u+1e3*l+6e4*d+1e3*o*60*60,this._days=+r+7*a,this._months=+s+3*n+12*i,this._data={},this._locale=de(),this._bubble()}function ve(e){return e instanceof Le}function Me(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function be(e,t){H(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+C(~~(e/60),2)+t+C(~~e%60,2)})}function Te(e,t){var i=(t||"").match(e);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Ki)||["-",0,0],s=60*n[1]+g(n[2]);return 0===s?0:"+"===n[0]?s:-s}function De(t,i){var n,s;return i._isUTC?(n=i.clone(),s=(_(t)||a(t)?t.valueOf():ye(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),e.updateOffset(n,!1),n):ye(t).local()}function we(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Se(){return!!this.isValid()&&this._isUTC&&0===this._offset}function ke(e,t){var i,n,a,r=e,d=null;return ve(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(r={},t?r[t]=e:r.milliseconds=e):(d=zi.exec(e))?(i="-"===d[1]?-1:1,r={y:0,d:g(d[pi])*i,h:g(d[mi])*i,m:g(d[_i])*i,s:g(d[fi])*i,ms:g(Me(1e3*d[gi]))*i}):(d=Ui.exec(e))?(i="-"===d[1]?-1:(d[1],1),r={y:Ce(d[2],i),M:Ce(d[3],i),w:Ce(d[4],i),d:Ce(d[5],i),h:Ce(d[6],i),m:Ce(d[7],i),s:Ce(d[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(a=function(e,t){var i;return e.isValid()&&t.isValid()?(t=De(t,e),e.isBefore(t)?i=He(e,t):((i=He(t,e)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(ye(r.from),ye(r.to)),(r={}).ms=a.milliseconds,r.M=a.months),n=new Le(r),ve(e)&&o(e,"_locale")&&(n._locale=e._locale),n}function Ce(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function He(e,t){var i={milliseconds:0,months:0};return i.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function xe(e,t){return function(i,n){var s,a;return null===n||isNaN(+n)||(v(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=i,i=n,n=a),i="string"==typeof i?+i:i,s=ke(i,n),Ze(this,s,e),this}}function Ze(t,i,n,s){var a=i._milliseconds,r=Me(i._days),o=Me(i._months);t.isValid()&&(s=null==s||s,o&&G(t,O(t,"Month")+o*n),r&&A(t,"Date",O(t,"Date")+r*n),a&&t._d.setTime(t._d.valueOf()+a*n),s&&e.updateOffset(t,r||o))}function Pe(e,t){var i,n=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(n,"months");return i=t-s<0?(t-s)/(s-e.clone().add(n-1,"months")):(t-s)/(e.clone().add(n+1,"months")-s),-(n+i)||0}function Je(e){var t;return void 0===e?this._locale._abbr:(null!=(t=de(e))&&(this._locale=t),this)}function Xe(){return this._locale}function Fe(e,t){H(0,[e,e.length],0,t)}function je(e,t,i,n,s){var a;return null==e?q(this,n,s).year:(a=V(e,n,s),t>a&&(t=a),function(e,t,i,n,s){var a=U(e,t,i,n,s),r=K(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}.call(this,e,t,i,n,s))}function Ee(e,t){t[gi]=g(1e3*("0."+e))}function We(e){return e}function Ne(e,t,i,n){var s=de(),a=l().set(n,t);return s[i](a,e)}function Qe(e,t,i){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Ne(e,t,i,"month");var n,a=[];for(n=0;n<12;n++)a[n]=Ne(e,n,i,"month");return a}function Be(e,t,i,n){"boolean"==typeof e?(s(t)&&(i=t,t=void 0),t=t||""):(i=t=e,e=!1,s(t)&&(i=t,t=void 0),t=t||"");var a=de(),r=e?a._week.dow:0;if(null!=i)return Ne(t,(i+r)%7,n,"day");var o,d=[];for(o=0;o<7;o++)d[o]=Ne(t,(o+r)%7,n,"day");return d}function Oe(e,t,i,n){var s=ke(t,i);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function Ae(e){return e<0?Math.floor(e):Math.ceil(e)}function Re(e){return 4800*e/146097}function Ge(e){return 146097*e/4800}function $e(e){return function(){return this.as(e)}}function Ie(e){return function(){return this.isValid()?this._data[e]:NaN}}function Ke(e){return(e>0)-(e<0)||+e}function ze(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i=Sn(this._milliseconds)/1e3,n=Sn(this._days),s=Sn(this._months);t=f((e=f(i/60))/60),i%=60,e%=60;var a=f(s/12),r=s%=12,o=n,d=t,l=e,u=i?i.toFixed(3).replace(/\.?0+$/,""):"",c=this.asSeconds();if(!c)return"P0D";var h=c<0?"-":"",p=Ke(this._months)!==Ke(c)?"-":"",m=Ke(this._days)!==Ke(c)?"-":"",_=Ke(this._milliseconds)!==Ke(c)?"-":"";return h+"P"+(a?p+a+"Y":"")+(r?p+r+"M":"")+(o?m+o+"D":"")+(d||l||u?"T":"")+(d?_+d+"H":"")+(l?_+l+"M":"")+(u?_+u+"S":"")}function Ue(e,t,i){return"m"===i?t?"хвіліна":"хвіліну":"h"===i?t?"гадзіна":"гадзіну":e+" "+function(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}({ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[i],+e)}function qe(e,t,i){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[i],e)}function Ve(e){return e>9?Ve(e%10):e}function et(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}function tt(e){return e>1&&e<5&&1!=~~(e/10)}function it(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"pár sekund":"pár sekundami";case"ss":return t||n?s+(tt(e)?"sekundy":"sekund"):s+"sekundami";case"m":return t?"minuta":n?"minutu":"minutou";case"mm":return t||n?s+(tt(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(tt(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||n?"den":"dnem";case"dd":return t||n?s+(tt(e)?"dny":"dní"):s+"dny";case"M":return t||n?"měsíc":"měsícem";case"MM":return t||n?s+(tt(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return t||n?"rok":"rokem";case"yy":return t||n?s+(tt(e)?"roky":"let"):s+"lety"}}function nt(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}function st(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}function at(e,t,i,n){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[i][0]:s[i][1]}function rt(e,t,i,n){var s={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?s[i][2]?s[i][2]:s[i][1]:n?s[i][0]:s[i][1]}function ot(e,t,i,n){var s="";switch(i){case"s":return n?"muutaman sekunnin":"muutama sekunti";case"ss":return n?"sekunnin":"sekuntia";case"m":return n?"minuutin":"minuutti";case"mm":s=n?"minuutin":"minuuttia";break;case"h":return n?"tunnin":"tunti";case"hh":s=n?"tunnin":"tuntia";break;case"d":return n?"päivän":"päivä";case"dd":s=n?"päivän":"päivää";break;case"M":return n?"kuukauden":"kuukausi";case"MM":s=n?"kuukauden":"kuukautta";break;case"y":return n?"vuoden":"vuosi";case"yy":s=n?"vuoden":"vuotta"}return s=function(e,t){return e<10?t?us[e]:ls[e]:e}(e,n)+" "+s}function dt(e,t,i,n){var s={s:["thodde secondanim","thodde second"],ss:[e+" secondanim",e+" second"],m:["eka mintan","ek minute"],mm:[e+" mintanim",e+" mintam"],h:["eka horan","ek hor"],hh:[e+" horanim",e+" hor"],d:["eka disan","ek dis"],dd:[e+" disanim",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineanim",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsanim",e+" vorsam"]};return t?s[i][0]:s[i][1]}function lt(e,t,i){var n=e+" ";switch(i){case"ss":return n+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return n+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return n+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return n+=1===e?"dan":"dana";case"MM":return n+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return n+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}function ut(e,t,i,n){var s=e;switch(i){case"s":return n||t?"néhány másodperc":"néhány másodperce";case"ss":return s+(n||t)?" másodperc":" másodperce";case"m":return"egy"+(n||t?" perc":" perce");case"mm":return s+(n||t?" perc":" perce");case"h":return"egy"+(n||t?" óra":" órája");case"hh":return s+(n||t?" óra":" órája");case"d":return"egy"+(n||t?" nap":" napja");case"dd":return s+(n||t?" nap":" napja");case"M":return"egy"+(n||t?" hónap":" hónapja");case"MM":return s+(n||t?" hónap":" hónapja");case"y":return"egy"+(n||t?" év":" éve");case"yy":return s+(n||t?" év":" éve")}return""}function ct(e){return(e?"":"[múlt] ")+"["+gs[this.day()]+"] LT[-kor]"}function ht(e){return e%100==11||e%10!=1}function pt(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return ht(e)?s+(t||n?"sekúndur":"sekúndum"):s+"sekúnda";case"m":return t?"mínúta":"mínútu";case"mm":return ht(e)?s+(t||n?"mínútur":"mínútum"):t?s+"mínúta":s+"mínútu";case"hh":return ht(e)?s+(t||n?"klukkustundir":"klukkustundum"):s+"klukkustund";case"d":return t?"dagur":n?"dag":"degi";case"dd":return ht(e)?t?s+"dagar":s+(n?"daga":"dögum"):t?s+"dagur":s+(n?"dag":"degi");case"M":return t?"mánuður":n?"mánuð":"mánuði";case"MM":return ht(e)?t?s+"mánuðir":s+(n?"mánuði":"mánuðum"):t?s+"mánuður":s+(n?"mánuð":"mánuði");case"y":return t||n?"ár":"ári";case"yy":return ht(e)?s+(t||n?"ár":"árum"):s+(t||n?"ár":"ári")}}function mt(e,t,i,n){var s={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?s[i][0]:s[i][1]}function _t(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return _t(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return _t(e)}return e/=1e3,_t(e)}function ft(e,t,i,n){return t?yt(i)[0]:n?yt(i)[1]:yt(i)[2]}function gt(e){return e%10==0||e>10&&e<20}function yt(e){return Ms[e].split("_")}function Yt(e,t,i,n){var s=e+" ";return 1===e?s+ft(0,t,i[0],n):t?s+(gt(e)?yt(i)[1]:yt(i)[0]):n?s+yt(i)[1]:s+(gt(e)?yt(i)[1]:yt(i)[2])}function Lt(e,t,i){return i?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function vt(e,t,i){return e+" "+Lt(bs[i],e,t)}function Mt(e,t,i){return Lt(bs[i],e,t)}function bt(e,t,i,n){var s="";if(t)switch(i){case"s":s="काही सेकंद";break;case"ss":s="%d सेकंद";break;case"m":s="एक मिनिट";break;case"mm":s="%d मिनिटे";break;case"h":s="एक तास";break;case"hh":s="%d तास";break;case"d":s="एक दिवस";break;case"dd":s="%d दिवस";break;case"M":s="एक महिना";break;case"MM":s="%d महिने";break;case"y":s="एक वर्ष";break;case"yy":s="%d वर्षे"}else switch(i){case"s":s="काही सेकंदां";break;case"ss":s="%d सेकंदां";break;case"m":s="एका मिनिटा";break;case"mm":s="%d मिनिटां";break;case"h":s="एका तासा";break;case"hh":s="%d तासां";break;case"d":s="एका दिवसा";break;case"dd":s="%d दिवसां";break;case"M":s="एका महिन्या";break;case"MM":s="%d महिन्यां";break;case"y":s="एका वर्षा";break;case"yy":s="%d वर्षां"}return s.replace(/%d/i,e)}function Tt(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function Dt(e,t,i){var n=e+" ";switch(i){case"ss":return n+(Tt(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return n+(Tt(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return n+(Tt(e)?"godziny":"godzin");case"MM":return n+(Tt(e)?"miesiące":"miesięcy");case"yy":return n+(Tt(e)?"lata":"lat")}}function wt(e,t,i){var n=" ";return(e%100>=20||e>=100&&e%100==0)&&(n=" de "),e+n+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[i]}function St(e,t,i){return"m"===i?t?"минута":"минуту":e+" "+function(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}({ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[i],+e)}function kt(e){return e>1&&e<5}function Ct(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"pár sekúnd":"pár sekundami";case"ss":return t||n?s+(kt(e)?"sekundy":"sekúnd"):s+"sekundami";case"m":return t?"minúta":n?"minútu":"minútou";case"mm":return t||n?s+(kt(e)?"minúty":"minút"):s+"minútami";case"h":return t?"hodina":n?"hodinu":"hodinou";case"hh":return t||n?s+(kt(e)?"hodiny":"hodín"):s+"hodinami";case"d":return t||n?"deň":"dňom";case"dd":return t||n?s+(kt(e)?"dni":"dní"):s+"dňami";case"M":return t||n?"mesiac":"mesiacom";case"MM":return t||n?s+(kt(e)?"mesiace":"mesiacov"):s+"mesiacmi";case"y":return t||n?"rok":"rokom";case"yy":return t||n?s+(kt(e)?"roky":"rokov"):s+"rokmi"}}function Ht(e,t,i,n){var s=e+" ";switch(i){case"s":return t||n?"nekaj sekund":"nekaj sekundami";case"ss":return s+=1===e?t?"sekundo":"sekundi":2===e?t||n?"sekundi":"sekundah":e<5?t||n?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return s+=1===e?t?"minuta":"minuto":2===e?t||n?"minuti":"minutama":e<5?t||n?"minute":"minutami":t||n?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return s+=1===e?t?"ura":"uro":2===e?t||n?"uri":"urama":e<5?t||n?"ure":"urami":t||n?"ur":"urami";case"d":return t||n?"en dan":"enim dnem";case"dd":return s+=1===e?t||n?"dan":"dnem":2===e?t||n?"dni":"dnevoma":t||n?"dni":"dnevi";case"M":return t||n?"en mesec":"enim mesecem";case"MM":return s+=1===e?t||n?"mesec":"mesecem":2===e?t||n?"meseca":"mesecema":e<5?t||n?"mesece":"meseci":t||n?"mesecev":"meseci";case"y":return t||n?"eno leto":"enim letom";case"yy":return s+=1===e?t||n?"leto":"letom":2===e?t||n?"leti":"letoma":e<5?t||n?"leta":"leti":t||n?"let":"leti"}}function xt(e,t,i,n){var s=function(e){var t=Math.floor(e%1e3/100),i=Math.floor(e%100/10),n=e%10,s="";return t>0&&(s+=qs[t]+"vatlh"),i>0&&(s+=(""!==s?" ":"")+qs[i]+"maH"),n>0&&(s+=(""!==s?" ":"")+qs[n]),""===s?"pagh":s}(e);switch(i){case"ss":return s+" lup";case"mm":return s+" tup";case"hh":return s+" rep";case"dd":return s+" jaj";case"MM":return s+" jar";case"yy":return s+" DIS"}}function Zt(e,t,i,n){var s={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n míut","'iens míut"],mm:[e+" míuts",e+" míuts"],h:["'n þora","'iensa þora"],hh:[e+" þoras",e+" þoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return n?s[i][0]:t?s[i][0]:s[i][1]}function Pt(e,t,i){return"m"===i?t?"хвилина":"хвилину":"h"===i?t?"година":"годину":e+" "+function(e,t){var i=e.split("_");return t%10==1&&t%100!=11?i[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?i[1]:i[2]}({ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[i],+e)}function Jt(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var Xt,Ft;Ft=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),i=t.length>>>0,n=0;n<i;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};var jt=e.momentProperties=[],Et=!1,Wt={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var Nt;Nt=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)o(e,t)&&i.push(t);return i};var Qt={},Bt={},Ot=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,At=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Rt={},Gt={},$t=/\d/,It=/\d\d/,Kt=/\d{3}/,zt=/\d{4}/,Ut=/[+-]?\d{6}/,qt=/\d\d?/,Vt=/\d\d\d\d?/,ei=/\d\d\d\d\d\d?/,ti=/\d{1,3}/,ii=/\d{1,4}/,ni=/[+-]?\d{1,6}/,si=/\d+/,ai=/[+-]?\d+/,ri=/Z|[+-]\d\d:?\d\d/gi,oi=/Z|[+-]\d\d(?::?\d\d)?/gi,di=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,li={},ui={},ci=0,hi=1,pi=2,mi=3,_i=4,fi=5,gi=6,yi=7,Yi=8;H("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),D("year","y"),k("year",1),J("Y",ai),J("YY",qt,It),J("YYYY",ii,zt),J("YYYYY",ni,Ut),J("YYYYYY",ni,Ut),j(["YYYYY","YYYYYY"],ci),j("YYYY",function(t,i){i[ci]=2===t.length?e.parseTwoDigitYear(t):g(t)}),j("YY",function(t,i){i[ci]=e.parseTwoDigitYear(t)}),j("Y",function(e,t){t[ci]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return g(e)+(g(e)>68?1900:2e3)};var Li,vi=B("FullYear",!0)
;Li=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),H("MMMM",0,0,function(e){return this.localeData().months(this,e)}),D("month","M"),k("month",8),J("M",qt),J("MM",qt,It),J("MMM",function(e,t){return t.monthsShortRegex(e)}),J("MMMM",function(e,t){return t.monthsRegex(e)}),j(["M","MM"],function(e,t){t[hi]=g(e)-1}),j(["MMM","MMMM"],function(e,t,i,n){var s=i._locale.monthsParse(e,n,i._strict);null!=s?t[hi]=s:u(i).invalidMonth=e});var Mi=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,bi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ti="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Di=di,wi=di;H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),D("week","w"),D("isoWeek","W"),k("week",5),k("isoWeek",5),J("w",qt),J("ww",qt,It),J("W",qt),J("WW",qt,It),E(["w","ww","W","WW"],function(e,t,i,n){t[n.substr(0,1)]=g(e)}),H("d",0,"do","day"),H("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),H("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),H("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),D("day","d"),D("weekday","e"),D("isoWeekday","E"),k("day",11),k("weekday",11),k("isoWeekday",11),J("d",qt),J("e",qt),J("E",qt),J("dd",function(e,t){return t.weekdaysMinRegex(e)}),J("ddd",function(e,t){return t.weekdaysShortRegex(e)}),J("dddd",function(e,t){return t.weekdaysRegex(e)}),E(["dd","ddd","dddd"],function(e,t,i,n){var s=i._locale.weekdaysParse(e,n,i._strict);null!=s?t.d=s:u(i).invalidWeekday=e}),E(["d","e","E"],function(e,t,i,n){t[n]=g(e)});var Si="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ki="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ci="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Hi=di,xi=di,Zi=di;H("H",["HH",2],0,"hour"),H("h",["hh",2],0,te),H("k",["kk",2],0,function(){return this.hours()||24}),H("hmm",0,0,function(){return""+te.apply(this)+C(this.minutes(),2)}),H("hmmss",0,0,function(){return""+te.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)}),H("Hmm",0,0,function(){return""+this.hours()+C(this.minutes(),2)}),H("Hmmss",0,0,function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)}),ie("a",!0),ie("A",!1),D("hour","h"),k("hour",13),J("a",ne),J("A",ne),J("H",qt),J("h",qt),J("k",qt),J("HH",qt,It),J("hh",qt,It),J("kk",qt,It),J("hmm",Vt),J("hmmss",ei),J("Hmm",Vt),J("Hmmss",ei),j(["H","HH"],mi),j(["k","kk"],function(e,t,i){var n=g(e);t[mi]=24===n?0:n}),j(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),j(["h","hh"],function(e,t,i){t[mi]=g(e),u(i).bigHour=!0}),j("hmm",function(e,t,i){var n=e.length-2;t[mi]=g(e.substr(0,n)),t[_i]=g(e.substr(n)),u(i).bigHour=!0}),j("hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[mi]=g(e.substr(0,n)),t[_i]=g(e.substr(n,2)),t[fi]=g(e.substr(s)),u(i).bigHour=!0}),j("Hmm",function(e,t,i){var n=e.length-2;t[mi]=g(e.substr(0,n)),t[_i]=g(e.substr(n))}),j("Hmmss",function(e,t,i){var n=e.length-4,s=e.length-2;t[mi]=g(e.substr(0,n)),t[_i]=g(e.substr(n,2)),t[fi]=g(e.substr(s))});var Pi,Ji=B("Hours",!0),Xi={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:bi,monthsShort:Ti,week:{dow:0,doy:6},weekdays:Si,weekdaysMin:Ci,weekdaysShort:ki,meridiemParse:/[ap]\.?m?\.?/i},Fi={},ji={},Ei=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Wi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ni=/Z|[+-]\d\d(?::?\d\d)?/,Qi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Bi=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Oi=/^\/?Date\((\-?\d+)/i,Ai=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ri={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};e.createFromInputFallback=L("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var Gi=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ye.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),$i=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=ye.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()}),Ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];be("Z",":"),be("ZZ",""),J("Z",oi),J("ZZ",oi),j(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=Te(oi,e)});var Ki=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var zi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ui=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;ke.fn=Le.prototype,ke.invalid=function(){return ke(NaN)};var qi=xe(1,"add"),Vi=xe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var en=L("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Fe("gggg","weekYear"),Fe("ggggg","weekYear"),Fe("GGGG","isoWeekYear"),Fe("GGGGG","isoWeekYear"),D("weekYear","gg"),D("isoWeekYear","GG"),k("weekYear",1),k("isoWeekYear",1),J("G",ai),J("g",ai),J("GG",qt,It),J("gg",qt,It),J("GGGG",ii,zt),J("gggg",ii,zt),J("GGGGG",ni,Ut),J("ggggg",ni,Ut),E(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,n){t[n.substr(0,2)]=g(e)}),E(["gg","GG"],function(t,i,n,s){i[s]=e.parseTwoDigitYear(t)}),H("Q",0,"Qo","quarter"),D("quarter","Q"),k("quarter",7),J("Q",$t),j("Q",function(e,t){t[hi]=3*(g(e)-1)}),H("D",["DD",2],"Do","date"),D("date","D"),k("date",9),J("D",qt),J("DD",qt,It),J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),j(["D","DD"],pi),j("Do",function(e,t){t[pi]=g(e.match(qt)[0])});var tn=B("Date",!0);H("DDD",["DDDD",3],"DDDo","dayOfYear"),D("dayOfYear","DDD"),k("dayOfYear",4),J("DDD",ti),J("DDDD",Kt),j(["DDD","DDDD"],function(e,t,i){i._dayOfYear=g(e)}),H("m",["mm",2],0,"minute"),D("minute","m"),k("minute",14),J("m",qt),J("mm",qt,It),j(["m","mm"],_i);var nn=B("Minutes",!1);H("s",["ss",2],0,"second"),D("second","s"),k("second",15),J("s",qt),J("ss",qt,It),j(["s","ss"],fi);var sn=B("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),D("millisecond","ms"),k("millisecond",16),J("S",ti,$t),J("SS",ti,It),J("SSS",ti,Kt);var an;for(an="SSSS";an.length<=9;an+="S")J(an,si);for(an="S";an.length<=9;an+="S")j(an,Ee);var rn=B("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var on=m.prototype;on.add=qi,on.calendar=function(t,i){var n=t||ye(),s=De(n,this).startOf("day"),a=e.calendarFormat(this,s)||"sameElse",r=i&&(M(i[a])?i[a].call(this,n):i[a]);return this.format(r||this.localeData().calendar(a,this,ye(n)))},on.clone=function(){return new m(this)},on.diff=function(e,t,i){var n,s,a;if(!this.isValid())return NaN;if(!(n=De(e,this)).isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),t=w(t)){case"year":a=Pe(this,n)/12;break;case"month":a=Pe(this,n);break;case"quarter":a=Pe(this,n)/3;break;case"second":a=(this-n)/1e3;break;case"minute":a=(this-n)/6e4;break;case"hour":a=(this-n)/36e5;break;case"day":a=(this-n-s)/864e5;break;case"week":a=(this-n-s)/6048e5;break;default:a=this-n}return i?a:f(a)},on.endOf=function(e){return void 0===(e=w(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},on.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=Z(this,t);return this.localeData().postformat(i)},on.from=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||ye(e).isValid())?ke({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},on.fromNow=function(e){return this.from(ye(),e)},on.to=function(e,t){return this.isValid()&&(_(e)&&e.isValid()||ye(e).isValid())?ke({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},on.toNow=function(e){return this.to(ye(),e)},on.get=function(e){return e=w(e),M(this[e])?this[e]():this},on.invalidAt=function(){return u(this).overflow},on.isAfter=function(e,t){var i=_(e)?e:ye(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=w(n(t)?"millisecond":t))?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},on.isBefore=function(e,t){var i=_(e)?e:ye(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=w(n(t)?"millisecond":t))?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},on.isBetween=function(e,t,i,n){return("("===(n=n||"()")[0]?this.isAfter(e,i):!this.isBefore(e,i))&&(")"===n[1]?this.isBefore(t,i):!this.isAfter(t,i))},on.isSame=function(e,t){var i,n=_(e)?e:ye(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=w(t||"millisecond"))?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},on.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},on.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},on.isValid=function(){return c(this)},on.lang=en,on.locale=Je,on.localeData=Xe,on.max=$i,on.min=Gi,on.parsingFlags=function(){return d({},u(this))},on.set=function(e,t){if("object"==typeof e)for(var i=function(e){var t=[];for(var i in e)t.push({unit:i,priority:Bt[i]});return t.sort(function(e,t){return e.priority-t.priority}),t}(e=S(e)),n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit]);else if(e=w(e),M(this[e]))return this[e](t);return this},on.startOf=function(e){switch(e=w(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},on.subtract=Vi,on.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},on.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},on.toDate=function(){return new Date(this.valueOf())},on.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return i.year()<0||i.year()>9999?Z(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):M(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",Z(i,"Z")):Z(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},on.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var i="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s=t+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+s)},on.toJSON=function(){return this.isValid()?this.toISOString():null},on.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},on.unix=function(){return Math.floor(this.valueOf()/1e3)},on.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},on.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},on.year=vi,on.isLeapYear=function(){return Q(this.year())},on.weekYear=function(e){return je.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},on.isoWeekYear=function(e){return je.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},on.quarter=on.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},on.month=$,on.daysInMonth=function(){return R(this.year(),this.month())},on.week=on.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},on.isoWeek=on.isoWeeks=function(e){var t=q(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},on.weeksInYear=function(){var e=this.localeData()._week;return V(this.year(),e.dow,e.doy)},on.isoWeeksInYear=function(){return V(this.year(),1,4)},on.date=tn,on.day=on.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},on.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},on.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},on.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},on.hour=on.hours=Ji,on.minute=on.minutes=nn,on.second=on.seconds=sn,on.millisecond=on.milliseconds=rn,on.utcOffset=function(t,i,n){var s,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Te(oi,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&i&&(s=we(this)),this._offset=t,this._isUTC=!0,null!=s&&this.add(s,"m"),a!==t&&(!i||this._changeInProgress?Ze(this,ke(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:we(this)},on.utc=function(e){return this.utcOffset(0,e)},on.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(we(this),"m")),this},on.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Te(ri,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},on.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?ye(e).utcOffset():0,(this.utcOffset()-e)%60==0)},on.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},on.isLocal=function(){return!!this.isValid()&&!this._isUTC},on.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},on.isUtc=Se,on.isUTC=Se,on.zoneAbbr=function(){return this._isUTC?"UTC":""},on.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},on.dates=L("dates accessor is deprecated. Use date instead.",tn),on.months=L("months accessor is deprecated. Use month instead",$),on.years=L("years accessor is deprecated. Use year instead",vi),on.zone=L("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),on.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!n(this._isDSTShifted))return this._isDSTShifted;var e={};if(p(e,this),(e=fe(e))._a){var t=e._isUTC?l(e._a):ye(e._a);this._isDSTShifted=this.isValid()&&y(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=T.prototype;dn.calendar=function(e,t,i){var n=this._calendar[e]||this._calendar.sameElse;return M(n)?n.call(t,i):n},dn.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(e){return this._ordinal.replace("%d",e)},dn.preparse=We,dn.postformat=We,dn.relativeTime=function(e,t,i,n){var s=this._relativeTime[i];return M(s)?s(e,t,i,n):s.replace(/%d/i,e)},dn.pastFuture=function(e,t){var i=this._relativeTime[e>0?"future":"past"];return M(i)?i(t):i.replace(/%s/i,t)},dn.set=function(e){var t,i;for(i in e)M(t=e[i])?this[i]=t:this["_"+i]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(e,i){return e?t(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Mi).test(i)?"format":"standalone"][e.month()]:t(this._months)?this._months:this._months.standalone},dn.monthsShort=function(e,i){return e?t(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Mi.test(i)?"format":"standalone"][e.month()]:t(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(e,t,i){var n,s,a;if(this._monthsParseExact)return function(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)a=l([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(a,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(s=Li.call(this._shortMonthsParse,r))?s:null:-1!==(s=Li.call(this._longMonthsParse,r))?s:null:"MMM"===t?-1!==(s=Li.call(this._shortMonthsParse,r))?s:-1!==(s=Li.call(this._longMonthsParse,r))?s:null:-1!==(s=Li.call(this._longMonthsParse,r))?s:-1!==(s=Li.call(this._shortMonthsParse,r))?s:null}.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=l([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(a.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(i&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!i&&this._monthsParse[n].test(e))return n}},dn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||I.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=wi),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||I.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Di),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(e){return q(e,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(e,i){return e?t(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(i)?"format":"standalone"][e.day()]:t(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},dn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},dn.weekdaysParse=function(e,t,i){var n,s,a;if(this._weekdaysParseExact)return function(e,t,i){var n,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)a=l([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(a,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(s=Li.call(this._weekdaysParse,r))?s:null:"ddd"===t?-1!==(s=Li.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=Li.call(this._minWeekdaysParse,r))?s:null:"dddd"===t?-1!==(s=Li.call(this._weekdaysParse,r))?s:-1!==(s=Li.call(this._shortWeekdaysParse,r))?s:-1!==(s=Li.call(this._minWeekdaysParse,r))?s:null:"ddd"===t?-1!==(s=Li.call(this._shortWeekdaysParse,r))?s:-1!==(s=Li.call(this._weekdaysParse,r))?s:-1!==(s=Li.call(this._minWeekdaysParse,r))?s:null:-1!==(s=Li.call(this._minWeekdaysParse,r))?s:-1!==(s=Li.call(this._weekdaysParse,r))?s:-1!==(s=Li.call(this._shortWeekdaysParse,r))?s:null}.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=l([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(a.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(i&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(i&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!i&&this._weekdaysParse[n].test(e))return n}},dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Hi),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xi),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||ee.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},dn.meridiem=function(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"},re("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===g(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=L("moment.lang is deprecated. Use moment.locale instead.",re),e.langData=L("moment.langData is deprecated. Use moment.localeData instead.",de);var ln=Math.abs,un=$e("ms"),cn=$e("s"),hn=$e("m"),pn=$e("h"),mn=$e("d"),_n=$e("w"),fn=$e("M"),gn=$e("y"),yn=Ie("milliseconds"),Yn=Ie("seconds"),Ln=Ie("minutes"),vn=Ie("hours"),Mn=Ie("days"),bn=Ie("months"),Tn=Ie("years"),Dn=Math.round,wn={ss:44,s:45,m:45,h:22,d:26,M:11},Sn=Math.abs,kn=Le.prototype;kn.isValid=function(){return this._isValid},kn.abs=function(){var e=this._data;return this._milliseconds=ln(this._milliseconds),this._days=ln(this._days),this._months=ln(this._months),e.milliseconds=ln(e.milliseconds),e.seconds=ln(e.seconds),e.minutes=ln(e.minutes),e.hours=ln(e.hours),e.months=ln(e.months),e.years=ln(e.years),this},kn.add=function(e,t){return Oe(this,e,t,1)},kn.subtract=function(e,t){return Oe(this,e,t,-1)},kn.as=function(e){if(!this.isValid())return NaN;var t,i,n=this._milliseconds;if("month"===(e=w(e))||"year"===e)return t=this._days+n/864e5,i=this._months+Re(t),"month"===e?i:i/12;switch(t=this._days+Math.round(Ge(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},kn.asMilliseconds=un,kn.asSeconds=cn,kn.asMinutes=hn,kn.asHours=pn,kn.asDays=mn,kn.asWeeks=_n,kn.asMonths=fn,kn.asYears=gn,kn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*g(this._months/12):NaN},kn._bubble=function(){var e,t,i,n,s,a=this._milliseconds,r=this._days,o=this._months,d=this._data;return a>=0&&r>=0&&o>=0||a<=0&&r<=0&&o<=0||(a+=864e5*Ae(Ge(o)+r),r=0,o=0),d.milliseconds=a%1e3,e=f(a/1e3),d.seconds=e%60,t=f(e/60),d.minutes=t%60,i=f(t/60),d.hours=i%24,r+=f(i/24),s=f(Re(r)),o+=s,r-=Ae(Ge(s)),n=f(o/12),o%=12,d.days=r,d.months=o,d.years=n,this},kn.clone=function(){return ke(this)},kn.get=function(e){return e=w(e),this.isValid()?this[e+"s"]():NaN},kn.milliseconds=yn,kn.seconds=Yn,kn.minutes=Ln,kn.hours=vn,kn.days=Mn,kn.weeks=function(){return f(this.days()/7)},kn.months=bn,kn.years=Tn,kn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=function(e,t,i){var n=ke(e).abs(),s=Dn(n.as("s")),a=Dn(n.as("m")),r=Dn(n.as("h")),o=Dn(n.as("d")),d=Dn(n.as("M")),l=Dn(n.as("y")),u=s<=wn.ss&&["s",s]||s<wn.s&&["ss",s]||a<=1&&["m"]||a<wn.m&&["mm",a]||r<=1&&["h"]||r<wn.h&&["hh",r]||o<=1&&["d"]||o<wn.d&&["dd",o]||d<=1&&["M"]||d<wn.M&&["MM",d]||l<=1&&["y"]||["yy",l];return u[2]=t,u[3]=+e>0,u[4]=i,function(e,t,i,n,s){return s.relativeTime(t||1,!!i,e,n)}.apply(null,u)}(this,!e,t);return e&&(i=t.pastFuture(+this,i)),t.postformat(i)},kn.toISOString=ze,kn.toString=ze,kn.toJSON=ze,kn.locale=Je,kn.localeData=Xe,kn.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ze),kn.lang=en,H("X",0,0,"unix"),H("x",0,0,"valueOf"),J("x",ai),J("X",/[+-]?\d+(\.\d{1,3})?/),j("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e,10))}),j("x",function(e,t,i){i._d=new Date(g(e))}),e.version="2.20.1",function(e){Xt=e}(ye),e.fn=on,e.min=function(){return Ye("isBefore",[].slice.call(arguments,0))},e.max=function(){return Ye("isAfter",[].slice.call(arguments,0))},e.now=function(){return Date.now?Date.now():+new Date},e.utc=l,e.unix=function(e){return ye(1e3*e)},e.months=function(e,t){return Qe(e,t,"months")},e.isDate=a,e.locale=re,e.invalid=h,e.duration=ke,e.isMoment=_,e.weekdays=function(e,t,i){return Be(e,t,i,"weekdays")},e.parseZone=function(){return ye.apply(null,arguments).parseZone()},e.localeData=de,e.isDuration=ve,e.monthsShort=function(e,t){return Qe(e,t,"monthsShort")},e.weekdaysMin=function(e,t,i){return Be(e,t,i,"weekdaysMin")},e.defineLocale=oe,e.updateLocale=function(e,t){if(null!=t){var i,n,s=Xi;null!=(n=ae(e))&&(s=n._config),(i=new T(t=b(s,t))).parentLocale=Fi[e],Fi[e]=i,re(e)}else null!=Fi[e]&&(null!=Fi[e].parentLocale?Fi[e]=Fi[e].parentLocale:null!=Fi[e]&&delete Fi[e]);return Fi[e]},e.locales=function(){return Nt(Fi)},e.weekdaysShort=function(e,t,i){return Be(e,t,i,"weekdaysShort")},e.normalizeUnits=w,e.relativeTimeRounding=function(e){return void 0===e?Dn:"function"==typeof e&&(Dn=e,!0)},e.relativeTimeThreshold=function(e,t){return void 0!==wn[e]&&(void 0===t?wn[e]:(wn[e]=t,"s"===e&&(wn.ss=t-1),!0))},e.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},e.prototype=on,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"vm":"VM":i?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[Môre om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),e.defineLocale("ar-dz",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"أح_إث_ثلا_أر_خم_جم_سب".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:4}}),e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),
weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}});var Cn={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},Hn=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},xn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Zn=function(e){return function(t,i,n,s){var a=Hn(t),r=xn[e][Hn(t)];return 2===a&&(r=r[i?0:1]),r.replace(/%d/i,t)}},Pn=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:Pn,monthsShort:Pn,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Zn("s"),ss:Zn("s"),m:Zn("m"),mm:Zn("m"),h:Zn("h"),hh:Zn("h"),d:Zn("d"),dd:Zn("d"),M:Zn("M"),MM:Zn("M"),y:Zn("y"),yy:Zn("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Cn[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}}),e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}});var Jn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},Xn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return Xn[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Jn[e]}).replace(/,/g,"،")},week:{dow:0,doy:6}}),e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}});var Fn={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},jn={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},En=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},Wn={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},Nn=function(e){return function(t,i,n,s){var a=En(t),r=Wn[e][En(t)];return 2===a&&(r=r[i?0:1]),r.replace(/%d/i,t)}},Qn=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:Qn,monthsShort:Qn,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:Nn("s"),ss:Nn("s"),m:Nn("m"),mm:Nn("m"),h:Nn("h"),hh:Nn("h"),d:Nn("d"),dd:Nn("d"),M:Nn("M"),MM:Nn("M"),y:Nn("y"),yy:Nn("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return jn[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return Fn[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}});var Bn={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"birneçə saniyyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,i){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var t=e%10;return e+(Bn[t]||Bn[e%100-t]||Bn[e>=100?100:null])},week:{dow:1,doy:7}}),e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:Ue,mm:Ue,h:Ue,hh:Ue,d:"дзень",dd:Ue,M:"месяц",MM:Ue,y:"год",yy:Ue},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}}),e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янр_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[В изминалата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[В изминалия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}});var On={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},An={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারী_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব_মার্চ_এপ্র_মে_জুন_জুল_আগ_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return An[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return On[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,i){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}});var Rn={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},Gn={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return Gn[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Rn[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,i){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}}),e.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:qe,h:"un eur",hh:"%d eur",d:"un devezh",dd:qe,M:"ur miz",MM:qe,y:"ur bloaz",yy:function(e){switch(Ve(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}}),e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:et,m:et,mm:et,h:et,hh:et,d:"dan",dd:et,M:"mjesec",MM:et,y:"godinu",yy:et},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var i=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(i="a"),e+i},week:{dow:1,doy:4}});var $n="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),In="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");e.defineLocale("cs",{months:$n,monthsShort:In,monthsParse:function(e,t){var i,n=[];for(i=0;i<12;i++)n[i]=new RegExp("^"+e[i]+"$|^"+t[i]+"$","i");return n}($n,In),shortMonthsParse:function(e){var t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$","i");return i}(In),longMonthsParse:function(e){var t,i=[];for(t=0;t<12;t++)i[t]=new RegExp("^"+e[t]+"$","i");return i}($n),weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:it,ss:it,m:it,mm:it,h:it,hh:it,d:it,dd:it,M:it,MM:it,y:it,yy:it},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"рен":/\u04ab\u0443\u043b$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-мӗш",week:{dow:1,doy:7}}),e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}}),e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:nt,mm:"%d Minuten",h:nt,hh:"%d Stunden",d:nt,dd:nt,M:nt,MM:nt,y:nt,yy:nt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:st,mm:"%d Minuten",h:st,hh:"%d Stunden",d:st,dd:st,M:st,MM:st,y:st,yy:st},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:at,mm:"%d Minuten",h:at,hh:"%d Stunden",d:at,dd:at,M:at,MM:at,y:at,yy:at},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Kn=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],zn=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:Kn,monthsShort:Kn,weekdays:zn,weekdaysShort:zn,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,i){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}}),e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,i){return e>11?i?"μμ":"ΜΜ":i?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(e,t){var i=this._calendarEl[e],n=t&&t.hours();return M(i)&&(i=i.apply(t)),i.replace("{}",n%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%dη",week:{dow:1,doy:4}}),e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aŭg_sep_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,i){return e>11?i?"p.t.m.":"P.T.M.":i?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}});var Un="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),qn="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),Vn=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],es=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?qn[e.month()]:Un[e.month()]:Un},monthsRegex:es,monthsShortRegex:es,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:Vn,longMonthsParse:Vn,shortMonthsParse:Vn,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var ts="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),is="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?is[e.month()]:ts[e.month()]:ts},monthsParseExact:!0,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"MMMM [de] D [de] YYYY",LLL:"MMMM [de] D [de] YYYY h:mm A",LLLL:"dddd, MMMM [de] D [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:0,doy:6}});var ns="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),ss="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),as=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],rs=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?ss[e.month()]:ns[e.month()]:ns},monthsRegex:rs,monthsShortRegex:rs,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:as,longMonthsParse:as,shortMonthsParse:as,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:rt,ss:rt,m:rt,mm:rt,h:rt,hh:rt,d:rt,dd:"%d päeva",M:rt,MM:rt,y:rt,yy:rt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var os={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},ds={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,i){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"ثانیه d%",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return ds[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return os[e]}).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%dم",week:{dow:6,doy:12}});var ls="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),us=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",ls[7],ls[8],ls[9]];e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:ot,ss:ot,m:ot,mm:ot,h:ot,hh:ot,d:ot,dd:ot,M:ot,MM:ot,y:ot,yy:ot},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minutt",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaði",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}}),e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}}),e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});var cs="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),hs="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?hs[e.month()]:cs[e.month()]:cs},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}}),e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:dt,ss:dt,m:dt,mm:dt,h:dt,hh:dt,d:dt,dd:dt,M:dt,MM:dt,y:dt,yy:dt},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){switch(t){case"D":return e+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokalli"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"rati":e<12?"sokalli":e<16?"donparam":e<20?"sanje":"rati"}});var ps={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},ms={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પેહલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return ms[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return ps[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}}),e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,i){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?i?'לפנה"צ':"לפני הצהריים":e<18?i?'אחה"צ':"אחרי הצהריים":"בערב"}});var _s={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},fs={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("hi",{months:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return fs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return _s[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}}),e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:
case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:lt,m:lt,mm:lt,h:lt,hh:lt,d:"dan",dd:lt,M:"mjesec",MM:lt,y:"godinu",yy:lt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var gs="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,i){return e<12?!0===i?"de":"DE":!0===i?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return ct.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return ct.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:ut,ss:ut,m:ut,mm:ut,h:ut,hh:ut,d:ut,dd:ut,M:ut,MM:ut,y:ut,yy:ut},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}}),e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:pt,ss:pt,m:pt,mm:pt,h:"klukkustund",hh:pt,d:pt,dd:pt,M:pt,MM:pt,y:pt,yy:pt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("ja",{months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 HH:mm dddd",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日 HH:mm dddd"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,i){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}}),e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}}),e.defineLocale("ka",{months:{standalone:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),format:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(e)?e.replace(/\u10d8$/,"ში"):e+"ში"},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"ის უკან"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"წლის უკან"):void 0},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});var ys={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(ys[e]||ys[e%10]||ys[e>=100?100:null])},week:{dow:1,doy:7}}),e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}});var Ys={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},Ls={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬ_ಅಕ್ಟೋಬ_ನವೆಂಬ_ಡಿಸೆಂಬ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return Ls[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Ys[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}}),e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"오후"===e},meridiem:function(e,t,i){return e<12?"오전":"오후"}});var vs={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кече саат] LT",lastWeek:"[Өткен аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(vs[e]||vs[e%10]||vs[e>=100?100:null])},week:{dow:1,doy:7}}),e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return _t(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return _t(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:mt,mm:"%d Minutten",h:mt,hh:"%d Stonnen",d:mt,dd:"%d Deeg",M:mt,MM:"%d Méint",y:mt,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,i){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}});var Ms={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,i,n){return t?"kelios sekundės":n?"kelių sekundžių":"kelias sekundes"},ss:Yt,m:ft,mm:Yt,h:ft,hh:Yt,d:ft,dd:Yt,M:ft,MM:Yt,y:ft,yy:Yt},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});var bs={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:vt,m:Mt,mm:vt,h:Mt,hh:vt,d:Mt,dd:vt,M:Mt,MM:vt,y:Mt,yy:vt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ts={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=Ts.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+Ts.correctGrammaticalCase(e,n)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:Ts.translate,m:Ts.translate,mm:Ts.translate,h:Ts.translate,hh:Ts.translate,d:"dan",dd:Ts.translate,M:"mjesec",MM:Ts.translate,y:"godinu",yy:Ts.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"после %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,i=e%100;return 0===e?e+"-ев":0===i?e+"-ен":i>10&&i<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}}),e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,i){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});var Ds={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},ws={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:bt,ss:bt,m:bt,mm:bt,h:bt,hh:bt,d:bt,dd:bt,M:bt,MM:bt,y:bt,yy:bt},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return ws[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Ds[e]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात्री"===t?e<4?e:e+12:"सकाळी"===t?e:"दुपारी"===t?e>=10?e:e+12:"सायंकाळी"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}}),e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,i){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",
hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}}),e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}});var Ss={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},ks={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return ks[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Ss[e]})},week:{dow:1,doy:4}}),e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Cs={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},Hs={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return Hs[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Cs[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,i){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});var xs="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Zs="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),Ps=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Js=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Zs[e.month()]:xs[e.month()]:xs},monthsRegex:Js,monthsShortRegex:Js,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:Ps,longMonthsParse:Ps,shortMonthsParse:Ps,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});var Xs="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),Fs="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),js=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],Es=/^(januari|februari|maart|april|mei|april|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,t){return e?/-MMM-/.test(t)?Fs[e.month()]:Xs[e.month()]:Xs},monthsRegex:Es,monthsShortRegex:Es,monthsStrictRegex:/^(januari|februari|maart|mei|ju[nl]i|april|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:js,longMonthsParse:js,shortMonthsParse:js,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}}),e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_mån_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_må_ty_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Ws={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},Ns={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return Ns[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return Ws[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}});var Qs="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),Bs="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");e.defineLocale("pl",{months:function(e,t){return e?""===t?"("+Bs[e.month()]+"|"+Qs[e.month()]+")":/D MMMM/.test(t)?Bs[e.month()]:Qs[e.month()]:Qs},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:Dt,m:Dt,mm:Dt,h:Dt,hh:Dt,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:Dt,y:"rok",yy:Dt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"%s atrás",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº"}),e.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%dº",week:{dow:1,doy:4}}),e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:wt,m:"un minut",mm:wt,h:"o oră",hh:wt,d:"o zi",dd:wt,M:"o lună",MM:wt,y:"un an",yy:wt},week:{dow:1,doy:7}});var Os=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:Os,longMonthsParse:Os,shortMonthsParse:Os,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В следующее] dddd [в] LT";case 1:case 2:case 4:return"[В следующий] dddd [в] LT";case 3:case 5:case 6:return"[В следующую] dddd [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd [в] LT":"[В] dddd [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:St,m:St,mm:St,h:"час",hh:St,d:"день",dd:St,M:"месяц",MM:St,y:"год",yy:St},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});var As=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],Rs=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:As,monthsShort:As,weekdays:Rs,weekdaysShort:Rs,weekdaysMin:Rs,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" වැනි"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,i){return e>11?i?"ප.ව.":"පස් වරු":i?"පෙ.ව.":"පෙර වරු"}});var Gs="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),$s="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");e.defineLocale("sk",{months:Gs,monthsShort:$s,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:Ct,ss:Ct,m:Ct,mm:Ct,h:Ct,hh:Ct,d:Ct,dd:Ct,M:Ct,MM:Ct,y:Ct,yy:Ct},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:Ht,ss:Ht,m:Ht,mm:Ht,h:Ht,hh:Ht,d:Ht,dd:Ht,M:Ht,MM:Ht,y:Ht,yy:Ht},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,i){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Is={words:{ss:["секунда","секунде","секунди"],m:["један минут","једне минуте"],mm:["минут","минуте","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],dd:["дан","дана","дана"],MM:["месец","месеца","месеци"],yy:["година","године","година"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=Is.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+Is.correctGrammaticalCase(e,n)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:Is.translate,m:Is.translate,mm:Is.translate,h:Is.translate,hh:Is.translate,d:"дан",dd:Is.translate,M:"месец",MM:Is.translate,y:"годину",yy:Is.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});var Ks={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,t,i){var n=Ks.words[i];return 1===i.length?t?n[0]:n[1]:e+" "+Ks.correctGrammaticalCase(e,n)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:Ks.translate,m:Ks.translate,mm:Ks.translate,h:Ks.translate,hh:Ks.translate,d:"dan",dd:Ks.translate,M:"mesec",MM:Ks.translate,y:"godinu",yy:Ks.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}}),e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",
LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,i){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}}),e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t?"a":2===t?"a":"e")},week:{dow:1,doy:4}}),e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}});var zs={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},Us={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return Us[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return zs[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,i){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t?e:"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}}),e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జూలై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జూలై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%dవ",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,i){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}}),e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juniu_Juliu_Augustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Aug_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sexta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sext_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Sex_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutus %d",h:"horas ida",hh:"horas %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,i){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}}),e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});var qs="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return t=-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:xt,m:"wa’ tup",mm:xt,h:"wa’ rep",hh:xt,d:"wa’ jaj",dd:xt,M:"wa’ jar",MM:xt,y:"wa’ DIS",yy:xt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});var Vs={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_Çar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},dayOfMonthOrdinalParse:/\d{1,2}'(inci|nci|\xfcnc\xfc|nc\u0131|uncu|\u0131nc\u0131)/,ordinal:function(e){if(0===e)return e+"'ıncı";var t=e%10;return e+(Vs[t]||Vs[e%100-t]||Vs[e>=100?100:null])},week:{dow:1,doy:7}}),e.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,i){return e>11?i?"d'o":"D'O":i?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:Zt,ss:Zt,m:Zt,mm:Zt,h:Zt,hh:Zt,d:Zt,dd:Zt,M:Zt,MM:Zt,y:Zt,yy:Zt},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}}),e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}}),e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}}),e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var i={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return e?i[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:i.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:Jt("[Сьогодні "),nextDay:Jt("[Завтра "),lastDay:Jt("[Вчора "),nextWeek:Jt("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return Jt("[Минулої] dddd [").call(this);case 1:case 2:case 4:return Jt("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:Pt,m:Pt,mm:Pt,h:"годину",hh:Pt,d:"день",dd:Pt,M:"місяць",MM:Pt,y:"рік",yy:Pt},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,i){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});var ea=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],ta=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];return e.defineLocale("ur",{months:ea,monthsShort:ea,weekdays:ta,weekdaysShort:ta,weekdaysMin:ta,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"شام"===e},meridiem:function(e,t,i){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}}),e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}}),e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}}),e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,i){return e<12?i?"sa":"SA":i?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần rồi lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}}),e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}}),e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}}),e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s内",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}}),e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,i){var n=100*e+t;return n<600?"凌晨":n<900?"早上":n<1130?"上午":n<1230?"中午":n<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}}),e.locale("en"),e}),function(e){var t=!1;if("function"==typeof define&&define.amd&&(define("js.cookie",e),t=!0),"object"==typeof exports&&(module.exports=e(),t=!0),!t){var i=window.Cookies,n=window.Cookies=e();n.noConflict=function(){return window.Cookies=i,n}}}(function(){function e(){for(var e=0,t={};e<arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}function t(i){function n(t,s,a){var r;if("undefined"!=typeof document){if(arguments.length>1){if(a=e({path:"/"},n.defaults,a),"number"==typeof a.expires){var o=new Date;o.setMilliseconds(o.getMilliseconds()+864e5*a.expires),a.expires=o}a.expires=a.expires?a.expires.toUTCString():"";try{r=JSON.stringify(s),/^[\{\[]/.test(r)&&(s=r)}catch(e){}s=i.write?i.write(s,t):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape);var d="";for(var l in a)a[l]&&(d+="; "+l,!0!==a[l]&&(d+="="+a[l]));return document.cookie=t+"="+s+d}t||(r={});for(var u=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,h=0;h<u.length;h++){var p=u[h].split("="),m=p.slice(1).join("=");this.json||'"'!==m.charAt(0)||(m=m.slice(1,-1));try{var _=p[0].replace(c,decodeURIComponent);if(m=i.read?i.read(m,_):i(m,_)||m.replace(c,decodeURIComponent),this.json)try{m=JSON.parse(m)}catch(e){}if(t===_){r=m;break}t||(r[_]=m)}catch(e){}}return r}}return n.set=n,n.get=function(e){return n.call(n,e)},n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(t,i){n(t,"",e(i,{expires:-1}))},n.withConverter=t,n}return t(function(){})}),require.config({shim:{underscore:{exports:"_"},backbone:{deps:["underscore","jquery"],exports:"Backbone"},"backbone.paginator":{deps:["backbone"],exports:"BackbonePaginator"}},paths:{jquery:"lib/jquery.min","jquery.ui":"lib/jquery-ui.min","jquery.ui.widget":"lib/jquery.ui.widget.1.11.1",tmpl:"lib/tmpl.min","jquery.iframe-transport":"lib/jquery.iframe-transport","jquery.fileupload":"lib/jquery.fileupload","jquery.fileupload-process":"lib/jquery.fileupload-process","jquery.fileupload-validate":"lib/jquery.fileupload-validate","jquery.fileupload-ui":"lib/jquery.fileupload-ui","jquery.magnific-popup":"lib/jquery.magnific-popup.min","js.cookie":"lib/js.cookie",simplemodal:"lib/jquery.simplemodal",jstree:"lib/jstree.min",select2:"lib/select2-3.5.2",moment:"lib/moment-with-locales.min",marked:"lib/marked.min",underscore:"lib/underscore",backbone:"lib/backbone","backbone.paginator":"lib/backbone.paginator",text:"lib/text"}}),define("common",["jquery","underscore","text","pinyin-by-unicode","moment","js.cookie"],function(e,t,i,n,s,a){return{INFO_TIMEOUT:1e4,SUCCESS_TIMEOUT:3e3,ERROR_TIMEOUT:3e3,strChineseFirstPY:n.strChineseFirstPY,getUrl:function(e){var t=app.config.siteRoot,i=app.config.fileServerRoot;switch(e.name){case"list_lib_dir":return t+"ajax/lib/"+e.repo_id+"/dir/";case"del_dir":return t+"api/v2.1/repos/"+e.repo_id+"/dir/";case"del_file":case"get_file_info":return t+"api/v2.1/repos/"+e.repo_id+"/file/";case"download_dir_zip_url":return i+"zip/"+e.zip_token;case"zip_task":return t+"api/v2.1/repos/"+e.repo_id+"/zip-task/";case"query_zip_progress":return t+"api/v2.1/query-zip-progress/";case"cancel_zip_task":return t+"api/v2.1/cancel-zip-task/";case"copy_move_task":return t+"api/v2.1/copy-move-task/";case"query_copy_move_progress":return t+"api/v2.1/query-copy-move-progress/";case"rename_dir":return t+"api/v2.1/repos/"+e.repo_id+"/dir/";case"rename_file":case"lock_or_unlock_file":return t+"api/v2.1/repos/"+e.repo_id+"/file/";case"new_dir":return t+"api/v2.1/repos/"+e.repo_id+"/dir/";case"new_file":return t+"api/v2.1/repos/"+e.repo_id+"/file/";case"del_dirents":return t+"ajax/repo/"+e.repo_id+"/dirents/delete/";case"mv_dirents":return t+"ajax/repo/"+e.repo_id+"/dirents/move/";case"cp_dirents":return t+"ajax/repo/"+e.repo_id+"/dirents/copy/";case"get_dirents":return t+"ajax/repo/"+e.repo_id+"/dirents/";case"dir-details":return t+"api/v2.1/repos/"+e.repo_id+"/dir/detail/";case"tags":return t+"api/v2.1/repos/"+e.repo_id+"/tags/";case"file-comments":return t+"api2/repos/"+e.repo_id+"/file/comments/";case"repos":return t+"api2/repos/";case"deleted_repos":return t+"api/v2.1/deleted-repos/";case"pub_repos":return t+"api2/repos/public/";case"unenc_rw_repos":return t+"ajax/unenc-rw-repos/";case"api_v2.1_repo_set_password":return t+"api/v2.1/repos/"+e.repo_id+"/set-password/";case"get_history_changes":return t+"ajax/repo/"+e.repo_id+"/history/changes/";case"beshared_repo":
return t+"api2/beshared-repos/"+e.repo_id+"/";case"dir_shared_items":return t+"api2/repos/"+e.repo_id+"/dir/shared_items/";case"shared_repos":return t+"api2/shared-repos/"+e.repo_id+"/";case"repo":return t+"api2/repos/"+e.repo_id+"/";case"repo_v2.1":return t+"api/v2.1/repos/"+e.repo_id+"/";case"repo_owner":return t+"api2/repos/"+e.repo_id+"/owner/";case"repo_history_limit":return t+"api2/repos/"+e.repo_id+"/history-limit/";case"repo_shared_download_links":return t+"api2/repos/"+e.repo_id+"/download-shared-links/";case"repo_shared_download_link":return t+"api2/repos/"+e.repo_id+"/download-shared-links/"+e.token+"/";case"repo_shared_upload_links":return t+"api2/repos/"+e.repo_id+"/upload-shared-links/";case"repo_shared_upload_link":return t+"api2/repos/"+e.repo_id+"/upload-shared-links/"+e.token+"/";case"repo_user_folder_perm":return t+"api2/repos/"+e.repo_id+"/user-folder-perm/";case"repo_group_folder_perm":return t+"api2/repos/"+e.repo_id+"/group-folder-perm/";case"repo_upload_link":return t+"api2/repos/"+e.repo_id+"/upload-link/";case"repo_update_link":return t+"api2/repos/"+e.repo_id+"/update-link/";case"repo_file_uploaded_bytes":return t+"api/v2.1/repos/"+e.repo_id+"/file-uploaded-bytes/";case"repo_labels":return t+"api/v2.1/revision-tags/tagged-items/";case"user_repo_labels":return t+"api/v2.1/revision-tags/tag-names/";case"group-owned-library-user-folder-permission":return t+"api/v2.1/group-owned-libraries/"+e.repo_id+"/user-folder-permission/";case"group-owned-library-group-folder-permission":return t+"api/v2.1/group-owned-libraries/"+e.repo_id+"/group-folder-permission/";case"share_admin_repos":return t+"api/v2.1/shared-repos/";case"share_admin_repo":return t+"api/v2.1/shared-repos/"+e.repo_id+"/";case"share_admin_folders":return t+"api/v2.1/shared-folders/";case"share_admin_share_links":return t+"api/v2.1/share-links/";case"share_admin_share_link":return t+"api/v2.1/share-links/"+e.token+"/";case"share_admin_upload_links":return t+"api/v2.1/upload-links/";case"share_admin_upload_link":return t+"api/v2.1/upload-links/"+e.token+"/";case"send_shared_download_link":return t+"share/link/send/";case"send_shared_upload_link":return t+"share/upload_link/send/";case"smart_link":return t+"api/v2.1/smart-link/";case"groups":return t+"api/v2.1/groups/";case"all_groups":return t+"api/v2.1/all-groups/";case"shareable_groups":return t+"api/v2.1/shareable-groups/";case"search_group":return t+"api/v2.1/search-group/";case"group":return t+"api/v2.1/groups/"+e.group_id+"/";case"group_members":return t+"api/v2.1/groups/"+e.group_id+"/members/";case"group_member":return t+"api/v2.1/groups/"+e.group_id+"/members/"+e.email+"/";case"group_member_bulk":return t+"api/v2.1/groups/"+e.group_id+"/members/bulk/";case"group_import_members":return t+"ajax/group/"+e.group_id+"/members/import/";case"group_repos":return t+"api2/groups/"+e.group_id+"/repos/";case"group_owned_repos":return t+"api/v2.1/groups/"+e.group_id+"/group-owned-libraries/";case"group_owned_repo":return t+"api/v2.1/groups/"+e.group_id+"/group-owned-libraries/"+e.repo_id+"/";case"group_owned_repo_user_share":return t+"api/v2.1/group-owned-libraries/"+e.repo_id+"/user-share/";case"group_owned_repo_group_share":return t+"api/v2.1/group-owned-libraries/"+e.repo_id+"/group-share/";case"address_book_sub_groups":return t+"api/v2.1/address-book/groups/"+e.group_id+"/sub-groups/";case"address_book_group_search_members":return t+"api/v2.1/address-book/groups/"+e.group_id+"/search-member/";case"group_discussions":return t+"api2/groups/"+e.group_id+"/discussions/";case"group_discussion":return t+"api2/groups/"+e.group_id+"/discussions/"+e.discussion_id+"/";case"thumbnail_create":return t+"thumbnail/"+e.repo_id+"/create/";case"thumbnail_get":return t+"thumbnail/"+e.repo_id+"/"+e.size+e.path;case"view_raw_file":return t+"repo/"+e.repo_id+"/raw"+e.path;case"get_popup_notices":return t+"ajax/get_popup_notices/";case"notifications":return t+"api/v2.1/notifications/";case"notification":return t+"api/v2.1/notification/";case"user_enabled_modules":return t+"api/v2.1/user-enabled-modules/";case"starred_files":return t+"api2/starredfiles/";case"events":return t+"api2/events/";case"devices":return t+"api2/devices/";case"invitations":return t+"api/v2.1/invitations/";case"invitations_batch":return t+"api/v2.1/invitations/batch/";case"invitation":return t+"api/v2.1/invitations/"+e.token+"/";case"search_user":return t+"api2/search-user/";case"user_profile":return t+"profile/"+e.username+"/";case"space_and_traffic":return t+"ajax/space_and_traffic/";case"sysinfo":return t+"api/v2.1/admin/sysinfo/";case"admin-devices":return t+"api/v2.1/admin/devices/";case"admin-device-errors":return t+"api/v2.1/admin/device-errors/";case"admin-device-trusted-ip":return t+"api/v2.1/admin/device-trusted-ip/";case"admin-libraries":return t+"api/v2.1/admin/libraries/";case"admin-library":return t+"api/v2.1/admin/libraries/"+e.repo_id+"/";case"admin-library-history-limit":return t+"api/v2.1/admin/libraries/"+e.repo_id+"/history-limit/";case"admin-library-dirents":return t+"api/v2.1/admin/libraries/"+e.repo_id+"/dirents/";case"admin-groups":return t+"api/v2.1/admin/groups/";case"admin-group":return t+"api/v2.1/admin/groups/"+e.group_id+"/";case"admin-group-libraries":return t+"api/v2.1/admin/groups/"+e.group_id+"/libraries/";case"admin-group-library":return t+"api/v2.1/admin/groups/"+e.group_id+"/libraries/"+e.repo_id+"/";case"admin-group-owned-libraries":return t+"api/v2.1/admin/groups/"+e.group_id+"/group-owned-libraries/";case"admin-group-owned-library":return t+"api/v2.1/admin/groups/"+e.group_id+"/group-owned-libraries/"+e.repo_id+"/";case"admin-group-members":return t+"api/v2.1/admin/groups/"+e.group_id+"/members/";case"admin-group-member":return t+"api/v2.1/admin/groups/"+e.group_id+"/members/"+encodeURIComponent(e.email)+"/";case"admin-system-library":return t+"api/v2.1/admin/system-library/";case"admin-system-library-upload-link":return t+"api/v2.1/admin/system-library/upload-link/";case"admin-trash-libraries":return t+"api/v2.1/admin/trash-libraries/";case"admin-trash-library":return t+"api/v2.1/admin/trash-libraries/"+e.repo_id+"/";case"admin_shares":return t+"api/v2.1/admin/shares/";case"sys_group_admin_export_excel":return t+"sys/groupadmin/export-excel/";case"admin-operation-logs":return t+"api/v2.1/admin/admin-logs/";case"admin-login-logs":return t+"api/v2.1/admin/admin-login-logs/";case"admin-address-book-groups":return t+"api/v2.1/admin/address-book/groups/";case"admin-address-book-group":return t+"api/v2.1/admin/address-book/groups/"+e.group_id+"/";case"org-admin-address-book-groups":return t+"api/v2.1/org/"+e.org_id+"/admin/address-book/groups/";case"org-admin-address-book-group":return t+"api/v2.1/org/"+e.org_id+"/admin/address-book/groups/"+e.group_id+"/";case"org-admin-group":return t+"api/v2.1/org/"+e.org_id+"/admin/groups/"+e.group_id+"/";case"org-admin-group-members":return t+"api/v2.1/org/"+e.org_id+"/admin/groups/"+e.group_id+"/members/";case"org-admin-group-member":return t+"api/v2.1/org/"+e.org_id+"/admin/groups/"+e.group_id+"/members/"+encodeURIComponent(e.email)+"/";case"org-admin-group-libraries":return t+"api/v2.1/org/"+e.org_id+"/admin/groups/"+e.group_id+"/libraries/";case"org-admin-group-owned-libraries":return t+"api/v2.1/org/"+e.org_id+"/admin/groups/"+e.group_id+"/group-owned-libraries/";case"org-admin-group-owned-library":return t+"api/v2.1/org/"+e.org_id+"/admin/groups/"+e.group_id+"/group-owned-libraries/"+e.repo_id+"/";case"license":return t+"api/v2.1/admin/license/"}},FILEEXT_ICON_MAP:{md:"txt.png",txt:"txt.png",pdf:"pdf.png",doc:"word.png",docx:"word.png",odt:"word.png",fodt:"word.png",ppt:"ppt.png",pptx:"ppt.png",odp:"ppt.png",fodp:"ppt.png",xls:"excel.png",xlsx:"excel.png",ods:"excel.png",fods:"excel.png",mp4:"video.png",ogv:"video.png",webm:"video.png",mov:"video.png",flv:"video.png",wmv:"video.png",rmvb:"video.png",mp3:"music.png",oga:"music.png",ogg:"music.png",flac:"music.png",aac:"music.png",ac3:"music.png",wma:"music.png",jpg:"pic.png",jpeg:"pic.png",png:"pic.png",svg:"pic.png",gif:"pic.png",bmp:"pic.png",ico:"pic.png",default:"file.png"},getFileIconUrl:function(e,i){i=i>24?192:24;var n;return-1==e.lastIndexOf(".")?app.config.mediaUrl+"img/file/"+i+"/"+this.FILEEXT_ICON_MAP.default:(n=e.substr(e.lastIndexOf(".")+1).toLowerCase(),t.has(this.FILEEXT_ICON_MAP,n)?app.config.mediaUrl+"img/file/"+i+"/"+this.FILEEXT_ICON_MAP[n]:app.config.mediaUrl+"img/file/"+i+"/"+this.FILEEXT_ICON_MAP.default)},getDirIconUrl:function(e,t){return t>24?e?app.config.mediaUrl+"img/folder-read-only-192.png":app.config.mediaUrl+"img/folder-192.png":e?app.config.mediaUrl+"img/folder-read-only-24.png":app.config.mediaUrl+"img/folder-24.png"},getLibIconUrl:function(e,t,i){var n="lib.png";e&&(n="lib-encrypted.png"),t&&(n="lib-readonly.png");var s=i||256;return app.config.mediaUrl+"img/lib/"+s+"/"+n},getLibIconTitle:function(e,t){return e?gettext("Encrypted library"):t?gettext("Read-Only library"):gettext("Read-Write library")},isHiDPI:function(){return(window.devicePixelRatio?window.devicePixelRatio:1)>1},showConfirm:function(t,i,n){var s=e("#confirm-popup"),a=e("#confirm-con"),r=e("#confirm-yes");a.html("<h3>"+t+"</h3><p>"+i+"</p>"),s.modal(),e("#simplemodal-container").css({height:"auto"}),r.on("click",n)},showConfirmWithExtraOption:function(i,n,s,a){var r=e("#confirm-popup"),o=e("#confirm-con"),d=e("#confirm-yes"),l=t.template(e("#confirm-dialog-with-extra-option-tmpl").html()),u=l({is_pro:app.pageOptions.is_pro,title:i,content:n,extraOption:s});o.html(u),r.modal(),e("#simplemodal-container").css({height:"auto"}),d.on("click",function(){var t="on"===e("#confirm-extra-option:checked").val();a(t)})},closeModal:function(){e.modal.close()},feedback:function(t,i,n){var s,a,r,o=this,n=n||5e3,d="";"string"==typeof t?r=e('<li class="'+i+'">'+this.HTMLescape(t)+"</li>"):(e(t).each(function(e,t){d+='<li class="'+t.type+'">'+o.HTMLescape(t.msg)+"</li>"}),r=e(d)),e(".messages").length>0?s=e(".messages").html(r):(s=e('<ul class="messages"></ul>').html(r),e("#main").append(s)),a="-"+(s.outerHeight()+parseInt("15px"))+"px",s.css({left:(e(window).width()-s.width())/2,top:a}),setTimeout(function(){s.css({top:"15px"})},10),setTimeout(function(){s.css({top:a})},n)},showFormError:function(t,i){e("#"+t+" .error").html(i).removeClass("hide"),e("#simplemodal-container").css({height:"auto"})},prepareAjaxErrorMsg:function(e){var t;if(e.responseText){var i=JSON.parse(e.responseText);t=this.HTMLescape(i.error||i.error_msg||i.detail)}else t=gettext("Failed. Please check the network.");return t},ajaxErrorHandler:function(e,t,i){var n=this.prepareAjaxErrorMsg(e);this.feedback(n,"error")},prepareCollectionFetchErrorMsg:function(e,t,i){var n;return t.responseText?401==t.status?n=gettext("Permission error"):403==t.status?(n=gettext("Permission error"),location.href=app.config.loginUrl+"?next="+encodeURIComponent(location.pathname+location.hash)):n=this.HTMLescape(JSON.parse(t.responseText).error_msg):n=gettext("Please check the network."),n},enableButton:function(e){e.prop("disabled",!1).removeClass("btn-disabled")},disableButton:function(e){e.prop("disabled",!0).addClass("btn-disabled")},setCaretPos:function(e,t){var i;return document.selection?(i=e.createTextRange(),i.move("character",t),i.select()):e.setSelectionRange(t,t)},prepareApiCsrf:function(){Backbone._sync=Backbone.sync,Backbone.sync=function(e,t,i){if("create"==e||"update"==e||"delete"==e){var n=app.pageOptions.csrfToken;i.beforeSend=function(e){e.setRequestHeader("X-CSRFToken",n)}}return Backbone._sync(e,t,i)}},prepareCSRFToken:function(e,t){/^http:.*/.test(t.url)||/^https:.*/.test(t.url)||e.setRequestHeader("X-CSRFToken",function(e){var t=null;if(document.cookie&&""!=document.cookie)for(var i=document.cookie.split(";"),n=0;n<i.length;n++){var s=jQuery.trim(i[n]);if(s.substring(0,e.length+1)==e+"="){t=decodeURIComponent(s.substring(e.length+1));break}}return t}(app.config.csrfCookieName))},ajaxPost:function(t){var i,n=this,s=t.form,a=t.form_id,r=t.post_url,o=t.post_data,d=t.after_op_success,l=s.children('[type="submit"]');this.disableButton(l),i=t.after_op_error?t.after_op_error:function(e,t,i){var s=n.prepareAjaxErrorMsg(e);n.showFormError(a,s),n.enableButton(l)},e.ajax({url:r,type:"POST",dataType:"json",beforeSend:this.prepareCSRFToken,data:o,success:d,error:i})},ajaxGet:function(t){var i,n=t.get_url,s=t.data,a=t.after_op_success;i=t.after_op_error?t.after_op_error:function(e,t,i){},e.ajax({url:n,cache:!1,dataType:"json",data:s,success:a,error:i})},HTMLescape:function(e){return document.createElement("div").appendChild(document.createTextNode(e)).parentNode.innerHTML},pathJoin:function(e){for(var t=e[0],i=1;i<e.length;i++)"/"==t[t.length-1]||"/"==e[i][0]?t+=e[i]:t+="/"+e[i];return t},encodePath:function(e){for(var t=e.split("/"),i=[],n=0,s=t.length;n<s;n++)i.push(encodeURIComponent(t[n]));return i.join("/")},initLocale:function(){var e;e="en"==app.pageOptions.language_code?"en-gb":"es-ar"==app.pageOptions.language_code||"es-mx"==app.pageOptions.language_code?"es":app.pageOptions.language_code,s.locale(e)},getRelativeTimeStr:function(e){return e-new Date>0?gettext("Just now"):e.fromNow()},closeTopNoticeBar:function(){if(!app.pageOptions.cur_note)return!1;var t=app.pageOptions.cur_note.id;if(e("#info-bar").addClass("hide"),navigator.cookieEnabled){var i=new Date,n=document.cookie.split("; "),s=!1;i.setTime(i.getTime()+12096e5),t+="; expires="+i.toGMTString()+"; path="+app.config.siteRoot;for(var a=0,r=n.length;a<r;a++)if("info_id"==n[a].split("=")[0]){s=!0,document.cookie="info_id="+n[a].split("=")[1]+t;break}s||(document.cookie="info_id="+t)}},contactInputOptionsForSelect2:function(t){var i,n=this;return i=t&&t.url?t.url:n.getUrl({name:"search_user"}),{placeholder:gettext("Search users or enter emails and press Enter"),tags:[],minimumInputLength:1,formatInputTooShort:gettext("Please enter 1 or more character"),formatNoMatches:gettext("No matches"),formatSearching:gettext("Searching..."),formatAjaxError:gettext("Loading failed"),ajax:{url:i,dataType:"json",delay:250,cache:!0,data:function(e){return{q:e}},results:function(e){for(var t=[],i=e.users||e,n=0,s=i.length;n<s;n++)t.push({id:i[n].email,text:i[n].name+" "+i[n].contact_email,avatar_url:i[n].avatar_url,contact_email:i[n].contact_email,name:i[n].name});return{results:t}}},formatResult:function(e){return e.avatar_url?'<img src="'+e.avatar_url+'" width="32" height="32" class="avatar"><span class="text ellipsis">'+n.HTMLescape(e.name)+"<br />"+n.HTMLescape(e.contact_email)+"</span>":void 0},formatSelection:function(e){return n.HTMLescape(e.name||e.id)},createSearchChoice:function(t){return{id:e.trim(t)}},escapeMarkup:function(e){return e}}},groupInputOptionsForSelect2:function(){var e=this;return{placeholder:gettext("Search groups"),tags:[],minimumInputLength:1,formatInputTooShort:gettext("Please enter 1 or more character"),formatNoMatches:gettext("No matches"),formatSearching:gettext("Searching..."),formatAjaxError:gettext("Loading failed"),ajax:{url:e.getUrl({name:"search_group"}),dataType:"json",delay:250,cache:!0,data:function(e){return{q:e}},results:function(e){for(var t=[],i=e,n=0,s=i.length;n<s;n++)t.push({id:i[n].id,text:i[n].name,name:i[n].name});return{results:t}}},formatResult:function(t){return t.name?'<span class="text ellipsis">'+e.HTMLescape(t.name)+"</span>":void 0},formatSelection:function(t){return e.HTMLescape(t.name)},escapeMarkup:function(e){return e}}},imageCheck:function(e){return-1!=e.lastIndexOf(".")&&-1!=["gif","jpeg","jpg","png","ico","bmp"].indexOf(e.substr(e.lastIndexOf(".")+1).toLowerCase())},videoCheck:function(e){return-1!=e.lastIndexOf(".")&&-1!=["mp4","ogv","webm","mov"].indexOf(e.substr(e.lastIndexOf(".")+1).toLowerCase())},compareTwoWord:function(e,t){var i,n,s=e.charCodeAt(0),a=t.charCodeAt(0),r=this.strChineseFirstPY;return 19968<s&&s<40869&&19968<a&&a<40869?(i=r.charAt(s-19968).toLowerCase(),n=r.charAt(a-19968).toLowerCase(),i>=n?1:-1):19968<s&&s<40869&&!(19968<a&&a<40869)?1:!(19968<s&&s<40869)&&19968<a&&a<40869?-1:(i=e.toLowerCase(),n=t.toLowerCase(),this.compareStrWithNumbersIn(i,n))},compareStrWithNumbersIn:function(e,t){var i,n,s,a=/\d+|\D+/g,r=/\d/,o=e.match(a),d=t.match(a),l=Math.min(o.length,d.length);if(o&&d&&(i=r.test(o[0]))==r.test(d[0]))for(var u=0;u<l;u++){if(n=o[u],s=d[u],i&&(n=parseInt(n,10),s=parseInt(s,10)),n!=s)return n<s?-1:1;i=!i}return(e>=t)-(e<=t)},toggleSortByNameMode:function(){"name_up"==app.pageOptions.sort_mode?(a.set("sort_mode","name_down"),app.pageOptions.sort_mode="name_down"):(a.set("sort_mode","name_up"),app.pageOptions.sort_mode="name_up")},toggleSortByTimeMode:function(){"time_down"==app.pageOptions.sort_mode?(a.set("sort_mode","time_up"),app.pageOptions.sort_mode="time_up"):(a.set("sort_mode","time_down"),app.pageOptions.sort_mode="time_down")},updateSortIconByMode:function(t){var i=app.pageOptions.sort_mode,n=t.context,s=e(".by-name .sort-icon",n),a=e(".by-time .sort-icon",n);switch(s.hide(),a.hide(),i){case"name_down":s.removeClass("icon-caret-up").addClass("icon-caret-down").show();break;case"name_up":s.removeClass("icon-caret-down").addClass("icon-caret-up").show();break;case"time_down":a.removeClass("icon-caret-up").addClass("icon-caret-down").show();break;case"time_up":a.removeClass("icon-caret-down").addClass("icon-caret-up").show();break;default:s.removeClass("icon-caret-down").addClass("icon-caret-up").show()}},sortLibs:function(e){var t=this,i=app.pageOptions.sort_mode,n=e.libs;switch(i){case"name_up":n.comparator=function(e,i){return e.get("name")?i.get("name")?t.compareTwoWord(e.get("name"),i.get("name")):-1:1};break;case"name_down":n.comparator=function(e,i){return e.get("name")?i.get("name")?-t.compareTwoWord(e.get("name"),i.get("name")):1:-1};break;case"time_up":n.comparator=function(e,t){return e.get("mtime")<t.get("mtime")?-1:1};break;case"time_down":n.comparator=function(e,t){return e.get("mtime")<t.get("mtime")?1:-1}}n.sort()},fileSizeFormat:function(e,t){var t=t||0;return e>=0&&e<1024?e+" B":e>=1024&&e<1048576?(e/1024).toFixed(t)+" KB":e>=1048576&&e<1073741824?(e/1048576).toFixed(t)+" MB":e>=1073741824&&e<1099511627776?(e/1073741824).toFixed(t)+" GB":e>=1099511627776?(e/1099511627776).toFixed(t)+" TB":e+" B"},quotaSizeFormat:function(e,t){var t=t||0;return e>=0&&e<1e3?e+" B":e>=1e3&&e<1e6?(e/1e3).toFixed(t)+" KB":e>=1e6&&e<1e9?(e/1e6).toFixed(t)+" MB":e>=1e9&&e<1e12?(e/1e9).toFixed(t)+" GB":e>=1e12?(e/1e12).toFixed(t)+" TB":e+" B"},groupId2Name:function(e){for(var t,i=app.pageOptions.groups,n=0,s=i.length;n<s;n++)if(e==i[n].id){t=i[n].name;break}return t},setCaretPosition:function(e,t){var i;return document.selection?(i=e.createTextRange(),i.move("character",t),i.select()):e.setSelectionRange(t,t)},zipDownload:function(t,i,n){var s,a,r=this,o=gettext("Packaging..."),d=e("<p></p>"),l=function(){e.ajax({url:r.getUrl({name:"query_zip_progress"})+"?token="+a,dataType:"json",cache:!1,success:function(t){var i=0==t.total?"100%":(t.zipped/t.total*100).toFixed(0)+"%";d.html(o+" "+i),t.total==t.zipped&&(setTimeout(function(){e.modal.close()},500),clearInterval(s),location.href=r.getUrl({name:"download_dir_zip_url",zip_token:a}))},error:function(e){r.ajaxErrorHandler(e),clearInterval(s)}})},u=function(){e.ajax({url:r.getUrl({name:"cancel_zip_task"}),type:"POST",dataType:"json",data:{token:a},beforeSend:r.prepareCSRFToken,success:function(){},error:function(e){}})};e.ajax({url:r.getUrl({name:"zip_task",repo_id:t}),data:{parent_dir:i,dirents:n},traditional:!0,dataType:"json",success:function(t){a=t.zip_token,d.html(o).modal({onClose:function(){clearInterval(s),u(),e.modal.close()}}),e("#simplemodal-container").css({width:"auto"}),l(),s=setInterval(l,1e3)},error:function(e){r.ajaxErrorHandler(e)}})}}}),function(e,t){if("function"==typeof define&&define.amd)define("backbone",["underscore","jquery","exports"],function(i,n,s){e.Backbone=t(e,s,i,n)});else if("undefined"!=typeof exports){var i=require("underscore");t(e,exports,i)}else e.Backbone=t(e,{},e._,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,t,i,n){var s=e.Backbone,a=[],r=a.slice;t.VERSION="1.1.2",t.$=n,t.noConflict=function(){return e.Backbone=s,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=t.Events={on:function(e,t,i){return l(this,"on",e,[t,i])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:i,ctx:i||this}),this):this},once:function(e,t,n){if(!l(this,"once",e,[t,n])||!t)return this;var s=this,a=i.once(function(){s.off(e,a),t.apply(this,arguments)});return a._callback=t,this.on(e,a,n)},off:function(e,t,n){var s,a,r,o,d,u,c,h;if(!this._events||!l(this,"off",e,[t,n]))return this;if(!e&&!t&&!n)return this._events=void 0,this;for(o=e?[e]:i.keys(this._events),d=0,u=o.length;d<u;d++)if(e=o[d],r=this._events[e]){if(this._events[e]=s=[],t||n)for(c=0,h=r.length;c<h;c++)a=r[c],(t&&t!==a.callback&&t!==a.callback._callback||n&&n!==a.context)&&s.push(a);s.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=r.call(arguments,1);if(!l(this,"trigger",e,t))return this;var i=this._events[e],n=this._events.all;return i&&u(i,t),n&&u(n,arguments),this},stopListening:function(e,t,n){var s=this._listeningTo;if(!s)return this;var a=!t&&!n;n||"object"!=typeof t||(n=this),e&&((s={})[e._listenId]=e);for(var r in s)e=s[r],e.off(t,n,this),(a||i.isEmpty(e._events))&&delete this._listeningTo[r];return this}},d=/\s+/,l=function(e,t,i,n){if(!i)return!0;if("object"==typeof i){for(var s in i)e[t].apply(e,[s,i[s]].concat(n));return!1}if(d.test(i)){for(var a=i.split(d),r=0,o=a.length;r<o;r++)e[t].apply(e,[a[r]].concat(n));return!1}return!0},u=function(e,t){var i,n=-1,s=e.length,a=t[0],r=t[1],o=t[2];switch(t.length){case 0:for(;++n<s;)(i=e[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=e[n]).callback.call(i.ctx,a);return;case 2:for(;++n<s;)(i=e[n]).callback.call(i.ctx,a,r);return;case 3:for(;++n<s;)(i=e[n]).callback.call(i.ctx,a,r,o);return;default:for(;++n<s;)(i=e[n]).callback.apply(i.ctx,t);return}},c={listenTo:"on",listenToOnce:"once"};i.each(c,function(e,t){o[t]=function(t,n,s){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=i.uniqueId("l"))]=t,s||"object"!=typeof n||(s=this),t[e](n,s,this),this}}),o.bind=o.on,o.unbind=o.off,i.extend(t,o);var h=t.Model=function(e,t){var n=e||{};t||(t={}),this.cid=i.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};i.extend(h.prototype,o,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return i.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return i.escape(this.get(e))},has:function(e){return null!=this.get(e)},set:function(e,t,n){var s,a,r,o,d,l,u,c;if(null==e)return this;if("object"==typeof e?(a=e,n=t):(a={})[e]=t,n||(n={}),!this._validate(a,n))return!1;r=n.unset,d=n.silent,o=[],l=this._changing,this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={}),c=this.attributes,u=this._previousAttributes,this.idAttribute in a&&(this.id=a[this.idAttribute]);for(s in a)t=a[s],i.isEqual(c[s],t)||o.push(s),i.isEqual(u[s],t)?delete this.changed[s]:this.changed[s]=t,r?delete c[s]:c[s]=t;if(!d){o.length&&(this._pending=n);for(var h=0,p=o.length;h<p;h++)this.trigger("change:"+o[h],this,c[o[h]],n)}if(l)return this;if(!d)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,i.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,i.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!i.isEmpty(this.changed):i.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&i.clone(this.changed);var t,n=!1,s=this._changing?this._previousAttributes:this.attributes;for(var a in e)i.isEqual(s[a],t=e[a])||((n||(n={}))[a]=t);return n},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(e){e=e?i.clone(e):{},void 0===e.parse&&(e.parse=!0);var t=this,n=e.success;return e.success=function(i){if(!t.set(t.parse(i,e),e))return!1;n&&n(t,i,e),t.trigger("sync",t,i,e)},j(this,e),this.sync("read",this,e)},save:function(e,t,n){var s,a,r,o=this.attributes;if(null==e||"object"==typeof e?(s=e,n=t):(s={})[e]=t,n=i.extend({validate:!0},n),s&&!n.wait){if(!this.set(s,n))return!1}else if(!this._validate(s,n))return!1;s&&n.wait&&(this.attributes=i.extend({},o,s)),void 0===n.parse&&(n.parse=!0);var d=this,l=n.success;return n.success=function(e){d.attributes=o;var t=d.parse(e,n);if(n.wait&&(t=i.extend(s||{},t)),i.isObject(t)&&!d.set(t,n))return!1;l&&l(d,e,n),d.trigger("sync",d,e,n)},j(this,n),a=this.isNew()?"create":n.patch?"patch":"update","patch"===a&&(n.attrs=s),r=this.sync(a,this,n),s&&n.wait&&(this.attributes=o),r},destroy:function(e){e=e?i.clone(e):{};var t=this,n=e.success,s=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(i){(e.wait||t.isNew())&&s(),n&&n(t,i,e),t.isNew()||t.trigger("sync",t,i,e)},this.isNew())return e.success(),!1;j(this,e);var a=this.sync("delete",this,e);return e.wait||s(),a},url:function(){var e=i.result(this,"urlRoot")||i.result(this.collection,"url")||F();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},i.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,i.extend(t,{validationError:n})),!1)}});var p=["keys","values","pairs","invert","pick","omit"];i.each(p,function(e){h.prototype[e]=function(){var t=r.call(arguments);return t.unshift(this.attributes),i[e].apply(i,t)}});var m=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,i.extend({silent:!0},t))},_={add:!0,remove:!0,merge:!0},f={add:!0,remove:!1};i.extend(m.prototype,o,{model:h,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,i.extend({merge:!1},t,f))},remove:function(e,t){var n=!i.isArray(e);e=n?[e]:i.clone(e),t||(t={});var s,a,r,o;for(s=0,a=e.length;s<a;s++)(o=e[s]=this.get(e[s]))&&(delete this._byId[o.id],delete this._byId[o.cid],r=this.indexOf(o),this.models.splice(r,1),this.length--,t.silent||(t.index=r,o.trigger("remove",o,this,t)),this._removeReference(o,t));return n?e[0]:e},set:function(e,t){t=i.defaults({},t,_),t.parse&&(e=this.parse(e,t));var n=!i.isArray(e);e=n?e?[e]:[]:i.clone(e);var s,a,r,o,d,l,u,c=t.at,p=this.model,m=this.comparator&&null==c&&!1!==t.sort,f=i.isString(this.comparator)?this.comparator:null,g=[],y=[],Y={},L=t.add,v=t.merge,M=t.remove,b=!(m||!L||!M)&&[];for(s=0,a=e.length;s<a;s++){if(d=e[s]||{},r=d instanceof h?o=d:d[p.prototype.idAttribute||"id"],l=this.get(r))M&&(Y[l.cid]=!0),v&&(d=d===o?o.attributes:d,t.parse&&(d=l.parse(d,t)),l.set(d,t),m&&!u&&l.hasChanged(f)&&(u=!0)),e[s]=l;else if(L){if(!(o=e[s]=this._prepareModel(d,t)))continue;g.push(o),this._addReference(o,t)}o=l||o,!b||!o.isNew()&&Y[o.id]||b.push(o),Y[o.id]=!0}if(M){for(s=0,a=this.length;s<a;++s)Y[(o=this.models[s]).cid]||y.push(o);y.length&&this.remove(y,t)}if(g.length||b&&b.length)if(m&&(u=!0),this.length+=g.length,null!=c)for(s=0,a=g.length;s<a;s++)this.models.splice(c+s,0,g[s]);else{b&&(this.models.length=0);var T=b||g;for(s=0,a=T.length;s<a;s++)this.models.push(T[s])}if(u&&this.sort({silent:!0}),!t.silent){for(s=0,a=g.length;s<a;s++)(o=g[s]).trigger("add",o,this,t);(u||b&&b.length)&&this.trigger("sort",this,t)}return n?e[0]:e},reset:function(e,t){t||(t={});for(var n=0,s=this.models.length;n<s;n++)this._removeReference(this.models[n],t);return t.previousModels=this.models,this._reset(),e=this.add(e,i.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,i.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,i.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return r.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return i.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"](function(t){for(var i in e)if(e[i]!==t.get(i))return!1;return!0})},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return i.invoke(this.models,"get",e)},fetch:function(e){e=e?i.clone(e):{},void 0===e.parse&&(e.parse=!0);var t=e.success,n=this;return e.success=function(i){var s=e.reset?"reset":"set";n[s](i,e),t&&t(n,i,e),n.trigger("sync",n,i,e)},j(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?i.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var n=this,s=t.success;return t.success=function(e,i){t.wait&&n.add(e,t),s&&s(e,i,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof h)return e;t=t?i.clone(t):{},t.collection=this;var n=new this.model(e,t);return n.validationError?(this.trigger("invalid",this,n.validationError,t),!1):n},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,i,n){("add"!==e&&"remove"!==e||i===this)&&("destroy"===e&&this.remove(t,n),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});var g=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(g,function(e){m.prototype[e]=function(){var t=r.call(arguments);return t.unshift(this.models),i[e].apply(i,t)}});var y=["groupBy","countBy","sortBy","indexBy"];i.each(y,function(e){m.prototype[e]=function(t,n){var s=i.isFunction(t)?t:function(e){return e.get(t)};return i[e](this.models,s,n)}});var Y=t.View=function(e){this.cid=i.uniqueId("view"),e||(e={}),i.extend(this,i.pick(e,v)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},L=/^(\S+)\s*(.*)$/,v=["model","collection","el","id","attributes","className","tagName","events"];i.extend(Y.prototype,o,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},
setElement:function(e,i){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==i&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=i.result(this,"events")))return this;this.undelegateEvents();for(var t in e){var n=e[t];if(i.isFunction(n)||(n=this[e[t]]),n){var s=t.match(L),a=s[1],r=s[2];n=i.bind(n,this),a+=".delegateEvents"+this.cid,""===r?this.$el.on(a,n):this.$el.on(a,r,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var e=i.extend({},i.result(this,"attributes"));this.id&&(e.id=i.result(this,"id")),this.className&&(e.class=i.result(this,"className"));var n=t.$("<"+i.result(this,"tagName")+">").attr(e);this.setElement(n,!1)}}}),t.sync=function(e,n,s){var a=b[e];i.defaults(s||(s={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var r={type:a,dataType:"json"};if(s.url||(r.url=i.result(n,"url")||F()),null!=s.data||!n||"create"!==e&&"update"!==e&&"patch"!==e||(r.contentType="application/json",r.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),s.emulateHTTP&&("PUT"===a||"DELETE"===a||"PATCH"===a)){r.type="POST",s.emulateJSON&&(r.data._method=a);var o=s.beforeSend;s.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",a),o)return o.apply(this,arguments)}}"GET"===r.type||s.emulateJSON||(r.processData=!1),"PATCH"===r.type&&M&&(r.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var d=s.xhr=t.ajax(i.extend(r,s));return n.trigger("request",n,d,s),d};var M=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),b={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var T=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},D=/\((.*?)\)/g,w=/(\(\?)?:\w+/g,S=/\*\w+/g,k=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(T.prototype,o,{initialize:function(){},route:function(e,n,s){i.isRegExp(e)||(e=this._routeToRegExp(e)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var a=this;return t.history.route(e,function(i){var r=a._extractParameters(e,i);a.execute(s,r),a.trigger.apply(a,["route:"+n].concat(r)),a.trigger("route",n,r),t.history.trigger("route",a,n,r)}),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,i){return t.history.navigate(e,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(k,"\\$&").replace(D,"(?:$1)?").replace(w,function(e,t){return t?e:"([^/?]+)"}).replace(S,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return i.map(n,function(e,t){return t===n.length-1?e||null:e?decodeURIComponent(e):null})}});var C=t.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},H=/^[#\/]|\s+$/g,x=/^\/+|\/+$/g,Z=/msie [\w.]+/,P=/\/$/,J=/#.*$/;C.started=!1,i.extend(C.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(P,"");e.indexOf(i)||(e=e.slice(i.length))}else e=this.getHash();return e.replace(H,"")},start:function(e){if(C.started)throw new Error("Backbone.history has already been started");C.started=!0,this.options=i.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),s=document.documentMode,a=Z.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);if(this.root=("/"+this.root+"/").replace(x,"/"),a&&this._wantsHashChange){var r=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=r.hide().appendTo("body")[0].contentWindow,this.navigate(n)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!a?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var o=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&o.hash&&(this.fragment=this.getHash().replace(H,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),C.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),i.any(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})},navigate:function(e,t){if(!C.started)return!1;t&&!0!==t||(t={trigger:!!t});var i=this.root+(e=this.getFragment(e||""));if(e=e.replace(J,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==i&&(i=i.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,i){if(i){var n=e.href.replace(/(javascript:|#).*$/,"");e.replace(n+"#"+t)}else e.hash="#"+t}}),t.history=new C;var X=function(e,t){var n,s=this;n=e&&i.has(e,"constructor")?e.constructor:function(){return s.apply(this,arguments)},i.extend(n,s,t);var a=function(){this.constructor=n};return a.prototype=s.prototype,n.prototype=new a,e&&i.extend(n.prototype,e),n.__super__=s.prototype,n};h.extend=m.extend=T.extend=Y.extend=C.extend=X;var F=function(){throw new Error('A "url" property or function must be specified')},j=function(e,t){var i=t.error;t.error=function(n){i&&i(e,n,t),e.trigger("error",e,n,t)}};return t}),define("sysadmin-app/views/side-nav",["jquery","underscore","backbone","common"],function(e,t,i,n){"use strict";return i.View.extend({el:"#side-nav",template:t.template(e("#side-nav-tmpl").html()),initialize:function(){this.default_cur_tab="dashboard",this.data={cur_tab:this.default_cur_tab},this.render();var t=this;e("#js-toggle-side-nav").on("click",function(){return t.show(),!1}),e(window).on("resize",function(){e(window).width()>=768&&t.show()})},render:function(){return this.$el.html(this.template(this.data)),this},setCurTab:function(t,i){this.data.cur_tab=t||this.default_cur_tab,i&&e.extend(this.data,i),this.render()},show:function(){this.$el.css({left:"0px"})},hide:function(){this.$el.css({left:"-300px"})},events:{"click .js-close-side-nav":"closeNav","click li a":"visitLink","submit #libs-search-form":"searchLibs","submit #trash-libs-search-form":"searchTrashLibs","submit #groups-search-form":"searchGroups"},closeNav:function(){return this.hide(),!1},visitLink:function(t){return e(window).width()<768&&this.hide(),!0},searchLibs:function(){var t=this.$("#libs-search-form"),i=e.trim(e('[name="name"]',t).val());if(!i)return!1;var n=t.attr("action")+"?name="+encodeURIComponent(i)+"&owner=";return location.href=n,!1},searchTrashLibs:function(){var t=this.$("#trash-libs-search-form"),i=e.trim(e('[name="name"]',t).val());if(!i)return!1;var n=t.attr("action")+"?name="+encodeURIComponent(i);return location.href=n,!1},searchGroups:function(){var t=this.$("#groups-search-form"),i=e.trim(e('[name="name"]',t).val());if(!i)return!1;var n=t.attr("action")+"?name="+encodeURIComponent(i);return location.href=n,!1}})}),define("sysadmin-app/models/sysinfo",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({url:function(){return i.getUrl({name:"sysinfo"})}})}),define("sysadmin-app/views/dashboard",["jquery","underscore","backbone","common","sysadmin-app/models/sysinfo"],function(e,t,i,n,s){"use strict";return i.View.extend({id:"admin-dashboard",template:t.template(e("#sysinfo-tmpl").html()),conTemplate:t.template(e("#sysinfo-con-tmpl").html()),initialize:function(){this.sysinfo=new s,this.render()},events:{"click .license-file-upload-btn":"uploadFile","change .license-file-upload-input":"uploadLicenseFile"},uploadFile:function(){this.$(".license-file-upload-input").trigger("click")},uploadLicenseFile:function(){var t,i=this.$(".license-file-upload-input");if(i[0].files){t=i[0].files[0];var s=i.attr("name"),a=new FormData;a.append(s,t),e.ajax({url:n.getUrl({name:"license"}),type:"POST",data:a,processData:!1,contentType:!1,beforeSend:n.prepareCSRFToken,success:function(){location.reload(!0)},error:function(e){n.ajaxErrorHandler(e)}})}},render:function(){this.$el.html(this.template()),this.$loadingTip=this.$(".loading-tip"),this.$sysinfo=this.$(".sysinfo")},showSysinfo:function(){this.$sysinfo.empty(),this.$loadingTip.show();var e=this;this.sysinfo.fetch({cache:!1,success:function(t,i,n){e.reset()},error:function(e,t,i){var s;s=t.responseText?401==t.status||403==t.status?gettext("Permission error"):n.HTMLescape(JSON.parse(t.responseText).error_msg):gettext("Failed. Please check the network."),n.feedback(s,"error")}})},hide:function(){this.$el.detach()},show:function(){e("#right-panel").html(this.$el),this.showSysinfo()},reset:function(){this.$loadingTip.hide();var e=this.sysinfo.toJSON();e.formatted_storage=n.quotaSizeFormat(e.total_storage,1),this.$sysinfo.html(this.conTemplate(e))}})}),define("app/views/widgets/hl-item-view",["jquery","underscore","backbone","common"],function(e,t,i,n){"use strict";return i.View.extend({tagName:"tr",hiddenOperationClass:".op-icon",initialize:function(e){this.$el.on("mouseenter",t.bind(this.highlight,this)),this.$el.on("mouseleave",t.bind(this.rmHighlight,this)),this.$el.on("focus","*",t.bind(this.focus,this))},focus:function(){if(app.ui.currentDropdown||app.ui.freezeItemHightlight)return!0;if(app.ui.currentHighlightedItem){if(app.ui.currentHighlightedItem==this)return!0;app.ui.currentHighlightedItem.rmHighlight()}return this.highlight(),!0},highlight:function(){app.ui.currentDropdown||app.ui.freezeItemHightlight||(app.ui.currentHighlightedItem=this,this.$el.addClass("hl").find(this.hiddenOperationClass).removeClass("vh"))},rmHighlight:function(){app.ui.currentDropdown||app.ui.freezeItemHightlight||(app.ui.currentHighlightedItem=null,this.$el.removeClass("hl"),e(window).width()>=768&&this.$el.find(this.hiddenOperationClass).addClass("vh"))}})}),define("sysadmin-app/views/device",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#device-item-tmpl").html()),events:{"click .unlink-device":"unlinkDeviceWithConfirm"},initialize:function(){a.prototype.initialize.call(this)},render:function(){var e=this.model.toJSON(),t=s(e.last_accessed);return e.time=t.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(t),this.$el.html(this.template(e)),this},unlinkDeviceWithConfirm:function(){var t=this,i=this.model.get("is_desktop_client"),s=this.model.get("device_name");if(!i)return t.model.unlink({wipe_device:!0,success:function(){t.remove();var e=gettext("Successfully unlink %(name)s.").replace("%(name)s",s);n.feedback(e,"success")},error:function(e){n.ajaxErrorHandler(e)}}),!1;var a=gettext("Unlink device"),r=gettext("Are you sure you want to unlink this device?"),o=gettext("Delete files from this device the next time it comes online."),d=function(i){return t.model.unlink({wipe_device:i,success:function(){t.remove();var e=gettext("Successfully unlink %(name)s.").replace("%(name)s",s);n.feedback(e,"success")},error:function(e){n.ajaxErrorHandler(e)},complete:function(){e.modal.close()}}),!1};n.showConfirmWithExtraOption(a,r,o,d)}})}),function(e){if("object"==typeof exports&&"function"==typeof require)module.exports=e(require("underscore"),require("backbone"));else if("function"==typeof define&&define.amd)define("backbone.paginator",["underscore","backbone"],e);else if("undefined"!=typeof _&&"undefined"!=typeof Backbone){var t=Backbone.PageableCollection,i=e(_,Backbone);Backbone.PageableCollection.noConflict=function(){return Backbone.PageableCollection=t,i}}}(function(e,t){"use strict";function i(t,i){if(!e.isNumber(t)||e.isNaN(t)||!e.isFinite(t)||~~t!==t)throw new TypeError("`"+i+"` must be a finite integer");return t}function n(e){for(var t,i,n,s,a={},r=decodeURIComponent,o=e.split("&"),d=0,l=o.length;d<l;d++){t=o[d].split("="),i=t[0],n=t[1],null==n&&(n=!0),i=r(i),n=r(n),s=a[i],m(s)?s.push(n):a[i]=s?[s,n]:n}return a}function s(e,t,i){var n=e._events[t];if(n&&n.length){var s=n[n.length-1],a=s.callback;s.callback=function(){try{a.apply(this,arguments),i()}catch(e){throw e}finally{s.callback=a}}}else i()}var a=e.extend,r=e.omit,o=e.clone,d=e.each,l=e.pick,u=e.contains,c=e.isEmpty,h=e.pairs,p=e.invert,m=e.isArray,_=e.isFunction,f=e.isObject,g=e.keys,y=e.isUndefined,Y=Math.ceil,L=Math.floor,v=Math.max,M=t.Collection.prototype,b=/[\s'"]/g,T=/[<>\s'"]/g,D=t.PageableCollection=t.Collection.extend({state:{firstPage:1,lastPage:null,currentPage:null,pageSize:25,totalPages:null,totalRecords:null,sortKey:null,order:-1},mode:"server",queryParams:{currentPage:"page",pageSize:"per_page",totalPages:"total_pages",totalRecords:"total_entries",sortKey:"sort_by",order:"order",directions:{"-1":"asc",1:"desc"}},constructor:function(e,t){M.constructor.apply(this,arguments),t=t||{};var i=this.mode=t.mode||this.mode||w.mode,n=a({},w.queryParams,this.queryParams,t.queryParams||{});n.directions=a({},w.queryParams.directions,this.queryParams.directions,n.directions||{}),this.queryParams=n;var s=this.state=a({},w.state,this.state,t.state||{});s.currentPage=null==s.currentPage?s.firstPage:s.currentPage,m(e)||(e=e?[e]:[]),e=e.slice(),"server"==i||null!=s.totalRecords||c(e)||(s.totalRecords=e.length),this.switchMode(i,a({fetch:!1,resetState:!1,models:e},t));var r=t.comparator;if(s.sortKey&&!r&&this.setSorting(s.sortKey,s.order,t),"server"!=i){var d=this.fullCollection;r&&t.full&&(this.comparator=null,d.comparator=r),t.full&&d.sort(),c(e)||(this.reset(e,a({silent:!0},t)),this.getPage(s.currentPage),e.splice.apply(e,[0,e.length].concat(this.models)))}this._initState=o(this.state)},_makeFullCollection:function(e,i){var n,s,a,r=["url","model","sync","comparator"],o=this.constructor.prototype,d={};for(n=0,s=r.length;n<s;n++)a=r[n],y(o[a])||(d[a]=o[a]);var l=new(t.Collection.extend(d))(e,i);for(n=0,s=r.length;n<s;n++)a=r[n],this[a]!==o[a]&&(l[a]=this[a]);return l},_makeCollectionEventHandler:function(e,t){return function(i,n,r,l){var u=e._handlers;d(g(u),function(i){var n=u[i];e.off(i,n),t.off(i,n)});var c=o(e.state),h=c.firstPage,p=0===h?c.currentPage:c.currentPage-1,m=c.pageSize,_=p*m,f=_+m;if("add"==i){var L,v,M,b,l=l||{};if(r==t)(v=t.indexOf(n))>=_&&v<f&&(b=e,L=M=v-_);else{L=e.indexOf(n),v=_+L,b=t;var M=y(l.at)?v:l.at+_}if(l.onRemove||(++c.totalRecords,delete l.onRemove),e.state=e._checkState(c),b){b.add(n,a({},l||{},{at:M}));var T=L>=m?n:!y(l.at)&&M<f&&e.length>m?e.at(m):null;T&&s(r,i,function(){e.remove(T,{onAdd:!0})})}}if("remove"==i)if(l.onAdd)delete l.onAdd;else{if(--c.totalRecords){var D=c.totalPages=Y(c.totalRecords/m);c.lastPage=0===h?D-1:D||h,c.currentPage>D&&(c.currentPage=c.lastPage)}else c.totalRecords=null,c.totalPages=null;e.state=e._checkState(c);var w,S=l.index;r==e?((w=t.at(f))?s(e,i,function(){e.push(w,{onRemove:!0})}):!e.length&&c.totalRecords&&e.reset(t.models.slice(_-m,f-m),a({},l,{parse:!1})),t.remove(n)):S>=_&&S<f&&((w=t.at(f-1))&&s(e,i,function(){e.push(w,{onRemove:!0})}),e.remove(n),!e.length&&c.totalRecords&&e.reset(t.models.slice(_-m,f-m),a({},l,{parse:!1})))}if("reset"==i)if(l=r,(r=n)==e&&null==l.from&&null==l.to){var k=t.models.slice(0,_),C=t.models.slice(_+e.models.length);t.reset(k.concat(e.models).concat(C),l)}else r==t&&((c.totalRecords=t.models.length)||(c.totalRecords=null,c.totalPages=null),"client"==e.mode&&(h=c.lastPage=c.currentPage=c.firstPage,p=0===h?c.currentPage:c.currentPage-1,_=p*m,f=_+m),e.state=e._checkState(c),e.reset(t.models.slice(_,f),a({},l,{parse:!1})));"sort"==i&&(l=r,(r=n)===t&&e.reset(t.models.slice(_,f),a({},l,{parse:!1}))),d(g(u),function(i){var n=u[i];d([e,t],function(e){e.on(i,n);var t=e._events[i]||[];t.unshift(t.pop())})})}},_checkState:function(e){var t=this.mode,n=this.links,s=e.totalRecords,a=e.pageSize,r=e.currentPage,o=e.firstPage,d=e.totalPages;if(null!=s&&null!=a&&null!=r&&null!=o&&("infinite"!=t||n)){if(s=i(s,"totalRecords"),a=i(a,"pageSize"),r=i(r,"currentPage"),o=i(o,"firstPage"),a<1)throw new RangeError("`pageSize` must be >= 1");if(d=e.totalPages=Y(s/a),o<0||o>1)throw new RangeError("`firstPage must be 0 or 1`");if(e.lastPage=0===o?v(0,d-1):d||o,"infinite"==t){if(!n[r+""])throw new RangeError("No link found for page "+r)}else if(r<o||d>0&&(o?r>d:r>=d))throw new RangeError("`currentPage` must be firstPage <= currentPage "+(o?"<":"<=")+" totalPages if "+o+"-based. Got "+r+".")}return e},setPageSize:function(e,t){e=i(e,"pageSize"),t=t||{first:!1};var n=this.state,s=Y(n.totalRecords/e),o=s?v(n.firstPage,L(s*n.currentPage/n.totalPages)):n.firstPage;return n=this.state=this._checkState(a({},n,{pageSize:e,currentPage:t.first?n.firstPage:o,totalPages:s})),this.getPage(n.currentPage,r(t,["first"]))},switchMode:function(t,i){if(!u(["server","client","infinite"],t))throw new TypeError('`mode` must be one of "server", "client" or "infinite"');i=i||{fetch:!0,resetState:!0};var n=this.state=i.resetState?o(this._initState):this._checkState(a({},this.state));this.mode=t;var s,l=this,c=this.fullCollection,h=this._handlers=this._handlers||{};if("server"==t||c)"server"==t&&c&&(d(g(h),function(e){s=h[e],l.off(e,s),c.off(e,s)}),delete this._handlers,this._fullComparator=c.comparator,delete this.fullCollection);else{c=this._makeFullCollection(i.models||[],i),c.pageableCollection=this,this.fullCollection=c;var p=this._makeCollectionEventHandler(this,c);d(["add","remove","reset","sort"],function(t){h[t]=s=e.bind(p,{},t),l.on(t,s),c.on(t,s)}),c.comparator=this._fullComparator}if("infinite"==t)for(var m=this.links={},_=n.firstPage,f=Y(n.totalRecords/n.pageSize),y=0===_?v(0,f-1):f||_,L=n.firstPage;L<=y;L++)m[L]=this.url;else this.links&&delete this.links;return i.fetch?this.fetch(r(i,"fetch","resetState")):this},hasPreviousPage:function(){var e=this.state,t=e.currentPage;return"infinite"!=this.mode?t>e.firstPage:!!this.links[t-1]},hasNextPage:function(){var e=this.state,t=this.state.currentPage;return"infinite"!=this.mode?t<e.lastPage:!!this.links[t+1]},getFirstPage:function(e){return this.getPage("first",e)},getPreviousPage:function(e){return this.getPage("prev",e)},getNextPage:function(e){return this.getPage("next",e)},getLastPage:function(e){return this.getPage("last",e)},getPage:function(e,t){var n=this.mode,s=this.fullCollection;t=t||{fetch:!1};var o=this.state,d=o.firstPage,l=o.currentPage,u=o.lastPage,h=o.pageSize,p=e;switch(e){case"first":p=d;break;case"prev":p=l-1;break;case"next":p=l+1;break;case"last":p=u;break;default:p=i(e,"index")}this.state=this._checkState(a({},o,{currentPage:p})),t.from=l,t.to=p;var m=(0===d?p:p-1)*h,_=s&&s.length?s.models.slice(m,m+h):[];return"client"!=n&&("infinite"!=n||c(_))||t.fetch?("infinite"==n&&(t.url=this.links[p]),this.fetch(r(t,"fetch"))):(this.reset(_,r(t,"fetch")),this)},getPageByOffset:function(e,t){if(e<0)throw new RangeError("`offset must be > 0`");e=i(e);var n=L(e/this.state.pageSize);return 0!==this.state.firstPage&&n++,n>this.state.lastPage&&(n=this.state.lastPage),this.getPage(n,t)},sync:function(e,i,n){var s=this;if("infinite"==s.mode){var r=n.success,o=s.state.currentPage;n.success=function(e,t,i){var d=s.links,l=s.parseLinks(e,a({xhr:i},n));l.first&&(d[s.state.firstPage]=l.first),l.prev&&(d[o-1]=l.prev),l.next&&(d[o+1]=l.next),r&&r(e,t,i)}}return(M.sync||t.sync).call(s,e,i,n)},parseLinks:function(e,t){var i={},n=t.xhr.getResponseHeader("Link");if(n){var s=["first","prev","next"];d(n.split(","),function(e){var t=e.split(";"),n=t[0].replace(T,""),a=t.slice(1);d(a,function(e){var t=e.split("="),a=t[0].replace(b,""),r=t[1].replace(b,"");"rel"==a&&u(s,r)&&(i[r]=n)})})}return i},parse:function(e,t){var i=this.parseState(e,o(this.queryParams),o(this.state),t);return i&&(this.state=this._checkState(a({},this.state,i))),this.parseRecords(e,t)},parseState:function(t,i,n,s){if(t&&2===t.length&&f(t[0])&&m(t[1])){var a=o(n),l=t[0];return d(h(r(i,"directions")),function(t){var i=t[0],n=t[1],s=l[n];y(s)||e.isNull(s)||(a[i]=l[n])}),l.order&&(a.order=1*p(i.directions)[l.order]),a}},parseRecords:function(e,t){return e&&2===e.length&&f(e[0])&&m(e[1])?e[1]:e},fetch:function(t){t=t||{};var i=this._checkState(this.state),s=this.mode;"infinite"!=s||t.url||(t.url=this.links[i.currentPage]);var o=t.data||{},d=t.url||this.url||"";_(d)&&(d=d.call(this));var u=d.indexOf("?");-1!=u&&(a(o,n(d.slice(u+1))),d=d.slice(0,u)),t.url=d,t.data=o;var c="client"==this.mode?l(this.queryParams,"sortKey","order"):r(l(this.queryParams,g(w.queryParams)),"directions"),p=e.clone(this);e.each(c,function(t,n){t=_(t)?t.call(p):t,null!=i[n]&&null!=t&&e.isUndefined(o[t])&&(o[t]=i[n])},this);var f;if(i.sortKey&&i.order){var Y=_(c.order)?c.order.call(p):c.order;if(m(i.order))for(o[Y]=[],f=0;f<i.order.length;f+=1)o[Y].push(this.queryParams.directions[i.order[f]]);else o[Y]=this.queryParams.directions[i.order+""]}else i.sortKey||delete o[c.order];var L,v,b=h(r(this.queryParams,g(w.queryParams)));for(f=0;f<b.length;f++)L=b[f],v=L[1],null!=(v=_(v)?v.call(p):v)&&(o[L[0]]=v);if("server"!=s){var T=this,D=this.fullCollection,S=t.success;return t.success=function(e,i,n){n=n||{},y(t.silent)?delete n.silent:n.silent=t.silent;var r=e.models;"client"==s?D.reset(r,n):(D.add(r,a({at:D.length},a(n,{parse:!1}))),T.trigger("reset",T,n)),S&&S(e,i,n)},M.fetch.call(this,a({},t,{silent:!0}))}return M.fetch.call(this,t)},_makeComparator:function(e,t,i){var n=this.state;if(e=e||n.sortKey,t=t||n.order,e&&t)return i||(i=function(e,t){return e.get(t)}),function(n,s){var a,r=i(n,e),o=i(s,e);return 1===t&&(a=r,r=o,o=a),r===o?0:r<o?-1:1}},setSorting:function(e,t,i){var n=this.state;n.sortKey=e,n.order=t=t||n.order;var s=this.fullCollection,r=!1,o=!1;e||(r=o=!0);var d=this.mode;i=a({side:"client"==d?d:"server",full:!0},i);var l=this._makeComparator(e,t,i.sortValue),u=i.full,c=i.side;return"client"==c?u?(s&&(s.comparator=l),r=!0):(this.comparator=l,o=!0):"server"!=c||u||(this.comparator=l),r&&(this.comparator=null),o&&s&&(s.comparator=null),this}}),w=D.prototype;return D}),define("sysadmin-app/models/device",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({unlink:function(e){var t={platform:this.get("platform"),device_id:this.get("device_id"),user:this.get("user")};e.wipe_device&&(t.wipe_device="true"),$.ajax({url:i.getUrl({name:"admin-devices"}),type:"DELETE",dataType:"json",beforeSend:i.prepareCSRFToken,data:t,success:function(){e.success&&e.success()},error:function(t){e.error&&e.error(t)},complete:function(t){e.complete&&e.complete(t)}})}})}),define("sysadmin-app/collection/devices",["underscore","backbone.paginator","common","sysadmin-app/models/device"],function(e,t,i,n){"use strict";return Backbone.PageableCollection.extend({model:n,state:{pageSize:50},parseState:function(e){return e.page_info},url:function(){return i.getUrl({name:"admin-devices"})},parseRecords:function(e){return e.devices}})}),define("sysadmin-app/views/desktop-devices",["jquery","underscore","backbone","common","moment","sysadmin-app/views/device","sysadmin-app/collection/devices"],function(e,t,i,n,s,a,r){"use strict";return i.View.extend({id:"admin-devices",template:t.template(e("#devices-tmpl").html()),initialize:function(){this.deviceCollection=new r,this.listenTo(this.deviceCollection,"add",this.addOne),this.listenTo(this.deviceCollection,"reset",this.reset),this.render()},render:function(){this.$el.html(this.template({cur_tab:"desktop",is_pro:app.pageOptions.is_pro})),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next")},events:{"click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide(),this.$jsNext.hide(),this.$jsPrevious.hide()},getNextPage:function(){this.initPage();var e=this.deviceCollection.state.current_page;return this.deviceCollection.state.has_next_page&&this.deviceCollection.getPage(e+1,{reset:!0,data:{platform:"desktop"}}),!1},getPreviousPage:function(){this.initPage();var e=this.deviceCollection.state.current_page;return e>1&&this.deviceCollection.getPage(e-1,{reset:!0,data:{platform:"desktop"}}),!1},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.showDesktopDevices()},showDesktopDevices:function(){this.initPage();var e=this.option.current_page||1;this.deviceCollection.fetch({data:{platform:"desktop",page:e},cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){var e=this.deviceCollection.length,t=this.deviceCollection.state.current_page;this.$loadingTip.hide(),e>0?(this.deviceCollection.each(this.addOne,this),this.$table.show(),this.renderPaginator()):this.$emptyTip.show(),app.router.navigate("desktop-devices/?page="+t)},addOne:function(e){var t=new a({model:e});this.$tableBody.append(t.render().el)},renderPaginator:function(){this.deviceCollection.state.has_next_page?this.$jsNext.show():this.$jsNext.hide(),this.deviceCollection.state.current_page>1?this.$jsPrevious.show():this.$jsPrevious.hide()}})}),define("sysadmin-app/views/mobile-devices",["jquery","underscore","backbone","common","moment","sysadmin-app/views/device","sysadmin-app/collection/devices"],function(e,t,i,n,s,a,r){"use strict";return i.View.extend({id:"admin-devices",template:t.template(e("#devices-tmpl").html()),initialize:function(){this.deviceCollection=new r,this.listenTo(this.deviceCollection,"add",this.addOne),this.listenTo(this.deviceCollection,"reset",this.reset),this.render()},render:function(){this.$el.html(this.template({cur_tab:"mobile",is_pro:app.pageOptions.is_pro})),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next")},events:{"click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide(),this.$jsNext.hide(),this.$jsPrevious.hide()},getNextPage:function(){this.initPage();var e=this.deviceCollection.state.current_page;return this.deviceCollection.state.has_next_page&&this.deviceCollection.getPage(e+1,{reset:!0,data:{platform:"mobile"}}),!1},getPreviousPage:function(){this.initPage();var e=this.deviceCollection.state.current_page;return e>1&&this.deviceCollection.getPage(e-1,{reset:!0,data:{platform:"mobile"}}),!1},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.showMobileDevices()},showMobileDevices:function(){this.initPage();var e=this.option.current_page||1;this.deviceCollection.fetch({data:{platform:"mobile",page:e},cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){var e=this.deviceCollection.length,t=this.deviceCollection.state.current_page;this.$loadingTip.hide(),e>0?(this.deviceCollection.each(this.addOne,this),this.$table.show(),this.renderPaginator()):this.$emptyTip.show(),app.router.navigate("mobile-devices/?page="+t)},addOne:function(e){var t=new a({model:e});this.$tableBody.append(t.render().el)},renderPaginator:function(){this.deviceCollection.state.has_next_page?this.$jsNext.show():this.$jsNext.hide(),this.deviceCollection.state.current_page>1?this.$jsPrevious.show():this.$jsPrevious.hide()}})}),define("sysadmin-app/views/device-error",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#device-error-item-tmpl").html()),initialize:function(){a.prototype.initialize.call(this)},render:function(){var e=this.model.toJSON(),t=s(e.error_time);return e.time=t.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(t),this.$el.html(this.template(e)),this}})}),define("sysadmin-app/models/device-error",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({})}),define("sysadmin-app/collection/device-errors",["underscore","backbone","common","sysadmin-app/models/device-error"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,url:function(){return i.getUrl({name:"admin-device-errors"})}})}),define("sysadmin-app/views/device-errors",["jquery","underscore","backbone","common","sysadmin-app/views/device-error","sysadmin-app/collection/device-errors"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-device-errors",template:t.template(e("#device-errors-tmpl").html()),initialize:function(){this.deviceErrorCollection=new a,this.listenTo(this.deviceErrorCollection,"add",this.addOne),this.listenTo(this.deviceErrorCollection,"reset",this.reset),this.render()},events:{"click #clean-device-errors":"cleanDeviceErrors"},cleanDeviceErrors:function(){var t=this;return e.ajax({url:n.getUrl({name:"admin-device-errors"}),type:"DELETE",beforeSend:n.prepareCSRFToken,success:function(){t.$table.hide(),t.$cleanBtn.hide(),t.$emptyTip.show(),t.deviceErrorCollection.reset();var e=gettext("Successfully clean all errors.");n.feedback(e,"success")},error:function(e){n.ajaxErrorHandler(e)}}),!1},render:function(){this.$el.html(this.template({cur_tab:"errors"})),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$cleanBtn=this.$("#clean-device-errors")},hide:function(){this.$el.detach()},show:function(){e("#right-panel").html(this.$el),this.showAdminDeviceError()},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide()},showAdminDeviceError:function(){this.initPage();this.deviceErrorCollection.fetch({cache:!1,reset:!0,success:function(e,t,i){},error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){this.$loadingTip.hide(),this.deviceErrorCollection.length?(this.deviceErrorCollection.each(this.addOne,this),this.$table.show(),this.$cleanBtn.show()):this.$emptyTip.show()},addOne:function(e){var t=new s({model:e});this.$tableBody.append(t.render().el)}})}),function(e){
"function"==typeof define&&define.amd?define("simplemodal",["jquery"],e):e(jQuery)}(function(e){var t=[],i=e(document),n=navigator.userAgent.toLowerCase(),s=e(window),a=[],r={ieQuirks:null,msie:/msie/.test(n)&&!/opera/.test(n),opera:/opera/.test(n)};r.ie6=r.msie&&/msie 6./.test(n)&&"object"!=typeof window.XMLHttpRequest,r.ie7=r.msie&&/msie 7.0/.test(n),r.boxModel="CSS1Compat"===document.compatMode,e.modal=function(t,i){return e.modal.impl.init(t,i)},e.modal.close=function(){e.modal.impl.close()},e.modal.focus=function(t){e.modal.impl.focus(t)},e.modal.setContainerDimensions=function(){e.modal.impl.setContainerDimensions()},e.modal.setPosition=function(){e.modal.impl.setPosition()},e.modal.update=function(t,i){e.modal.impl.update(t,i)},e.fn.modal=function(t){return e.modal.impl.init(this,t)},e.modal.defaults={appendTo:"body",focus:!0,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:!1,autoPosition:!0,zIndex:1e3,close:!0,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:!0,overlayClose:!1,fixed:!0,position:null,persist:!1,modal:!0,onOpen:null,onShow:null,onClose:null},e.modal.impl={d:{},init:function(t,i){var n=this;if(n.d.data)return!1;if(r.ieQuirks=r.msie&&!r.boxModel,n.o=e.extend({},e.modal.defaults,i),n.zIndex=n.o.zIndex,n.occb=!1,"object"==typeof t)t=t instanceof e?t:e(t),n.d.placeholder=!1,t.parent().parent().length>0&&(t.before(e("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"})),n.d.placeholder=!0,n.display=t.css("display"),n.o.persist||(n.d.orig=t.clone(!0)));else{if("string"!=typeof t&&"number"!=typeof t)return alert("SimpleModal Error: Unsupported data type: "+typeof t),n;t=e("<div></div>").html(t)}return n.create(t),t=null,n.open(),e.isFunction(n.o.onShow)&&n.o.onShow.apply(n,[n.d]),n},create:function(i){var n=this;n.getDimensions(),n.o.modal&&r.ie6&&(n.d.iframe=e('<iframe src="javascript:false;"></iframe>').css(e.extend(n.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:a[0],width:a[1],zIndex:n.o.zIndex,top:0,left:0})).appendTo(n.o.appendTo)),n.d.overlay=e("<div></div>").attr("id",n.o.overlayId).addClass("simplemodal-overlay").css(e.extend(n.o.overlayCss,{display:"none",opacity:n.o.opacity/100,height:n.o.modal?t[0]:0,width:n.o.modal?t[1]:0,position:"fixed",left:0,top:0,zIndex:n.o.zIndex+1})).appendTo(n.o.appendTo),n.d.container=e("<div></div>").attr("id",n.o.containerId).attr("role","dialog").addClass("simplemodal-container").css(e.extend({position:n.o.fixed?"fixed":"absolute"},n.o.containerCss,{display:"none",zIndex:n.o.zIndex+2})).append(n.o.close&&n.o.closeHTML?e(n.o.closeHTML).addClass(n.o.closeClass):"").appendTo(n.o.appendTo),n.d.wrap=e("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(n.d.container),n.d.data=i.attr("id",i.attr("id")||n.o.dataId).addClass("simplemodal-data").css(e.extend(n.o.dataCss,{display:"none"})).appendTo("body"),i=null,n.setContainerDimensions(),n.d.data.appendTo(n.d.wrap),(r.ie6||r.ieQuirks)&&n.fixIE()},bindEvents:function(){var n=this;e("."+n.o.closeClass).bind("click.simplemodal",function(e){e.preventDefault(),n.close()}),n.o.modal&&n.o.close&&n.o.overlayClose&&n.d.overlay.bind("click.simplemodal",function(e){e.preventDefault(),n.close()}),i.bind("keydown.simplemodal",function(e){n.o.modal&&9===e.keyCode?n.watchTab(e):n.o.close&&n.o.escClose&&27===e.keyCode&&(e.preventDefault(),n.close())}),s.bind("resize.simplemodal orientationchange.simplemodal",function(){n.getDimensions(),n.o.autoResize?n.setContainerDimensions():n.o.autoPosition&&n.setPosition(),r.ie6||r.ieQuirks?n.fixIE():n.o.modal&&(n.d.iframe&&n.d.iframe.css({height:a[0],width:a[1]}),n.d.overlay.css({height:t[0],width:t[1]}))})},unbindEvents:function(){e("."+this.o.closeClass).unbind("click.simplemodal"),i.unbind("keydown.simplemodal"),s.unbind(".simplemodal"),this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var t=this,i=t.o.position;e.each([t.d.iframe||null,t.o.modal?t.d.overlay:null,"fixed"===t.d.container.css("position")?t.d.container:null],function(e,t){if(t){var n="document.body.clientHeight",s="document.body.clientWidth",a="document.body.scrollHeight",r="document.body.scrollLeft",o="document.body.scrollTop",d="document.body.scrollWidth",l="document.documentElement.clientHeight",u="document.documentElement.clientWidth",c="document.documentElement.scrollLeft",h="document.documentElement.scrollTop",p=t[0].style;if(p.position="absolute",e<2)p.removeExpression("height"),p.removeExpression("width"),p.setExpression("height",a+" > "+n+" ? "+a+" : "+n+' + "px"'),p.setExpression("width",d+" > "+s+" ? "+d+" : "+s+' + "px"');else{var m,_;if(i&&i.constructor===Array){var f=i[0]?"number"==typeof i[0]?i[0].toString():i[0].replace(/px/,""):t.css("top").replace(/px/,"");if(m=-1===f.indexOf("%")?f+" + (t = "+h+" ? "+h+" : "+o+') + "px"':parseInt(f.replace(/%/,""))+" * (("+l+" || "+n+") / 100) + (t = "+h+" ? "+h+" : "+o+') + "px"',i[1]){var g="number"==typeof i[1]?i[1].toString():i[1].replace(/px/,"");_=-1===g.indexOf("%")?g+" + (t = "+c+" ? "+c+" : "+r+') + "px"':parseInt(g.replace(/%/,""))+" * (("+u+" || "+s+") / 100) + (t = "+c+" ? "+c+" : "+r+') + "px"'}}else m="("+l+" || "+n+") / 2 - (this.offsetHeight / 2) + (t = "+h+" ? "+h+" : "+o+') + "px"',_="("+u+" || "+s+") / 2 - (this.offsetWidth / 2) + (t = "+c+" ? "+c+" : "+r+') + "px"';p.removeExpression("top"),p.removeExpression("left"),p.setExpression("top",m),p.setExpression("left",_)}}})},focus:function(t){var i=this,n=t&&-1!==e.inArray(t,["first","last"])?t:"first",s=e(":input:enabled:visible:"+n,i.d.wrap);setTimeout(function(){s.length>0?s.focus():i.d.wrap.focus()},10)},getDimensions:function(){var e=void 0===window.innerHeight?s.height():window.innerHeight;t=[i.height(),i.width()],a=[e,s.width()]},getVal:function(e,t){return e?"number"==typeof e?e:"auto"===e?0:e.indexOf("%")>0?parseInt(e.replace(/%/,""))/100*("h"===t?a[0]:a[1]):parseInt(e.replace(/px/,"")):null},update:function(e,t){var i=this;if(!i.d.data)return!1;i.d.origHeight=i.getVal(e,"h"),i.d.origWidth=i.getVal(t,"w"),i.d.data.hide(),e&&i.d.container.css("height",e),t&&i.d.container.css("width",t),i.setContainerDimensions(),i.d.data.show(),i.o.focus&&i.focus(),i.unbindEvents(),i.bindEvents()},setContainerDimensions:function(){var e=this,t=r.ie6||r.ie7,i=e.d.origHeight?e.d.origHeight:r.opera?e.d.container.height():e.getVal(t?e.d.container[0].currentStyle.height:e.d.container.css("height"),"h"),n=e.d.origWidth?e.d.origWidth:r.opera?e.d.container.width():e.getVal(t?e.d.container[0].currentStyle.width:e.d.container.css("width"),"w"),s=e.d.data.outerHeight(!0),o=e.d.data.outerWidth(!0);e.d.origHeight=e.d.origHeight||i,e.d.origWidth=e.d.origWidth||n;var d=e.o.maxHeight?e.getVal(e.o.maxHeight,"h"):null,l=e.o.maxWidth?e.getVal(e.o.maxWidth,"w"):null,u=d&&d<a[0]?d:a[0],c=l&&l<a[1]?l:a[1],h=e.o.minHeight?e.getVal(e.o.minHeight,"h"):"auto";i=i?e.o.autoResize&&i>u?u:i<h?h:i:s?s>u?u:e.o.minHeight&&"auto"!==h&&s<h?h:s:h;var p=e.o.minWidth?e.getVal(e.o.minWidth,"w"):"auto";n=n?e.o.autoResize&&n>c?c:n<p?p:n:o?o>c?c:e.o.minWidth&&"auto"!==p&&o<p?p:o:p,e.d.container.css({height:i,width:n}),e.d.wrap.css({overflow:s>i||o>n?"auto":"visible"}),e.o.autoPosition&&e.setPosition()},setPosition:function(){var e,t,i=this,n=a[0]/2-i.d.container.outerHeight(!0)/2,r=a[1]/2-i.d.container.outerWidth(!0)/2,o="fixed"!==i.d.container.css("position")?s.scrollTop():0;i.o.position&&"[object Array]"===Object.prototype.toString.call(i.o.position)?(e=parseFloat(o)+parseFloat(i.o.position[0]||n),t=i.o.position[1]||r):(e=o+n,t=r),i.d.container.css({left:t,top:e})},watchTab:function(t){var i=this;if(e(t.target).parents(".simplemodal-container").length>0){if(i.inputs=e(":input:enabled:visible:first, :input:enabled:visible:last",i.d.data[0]),!t.shiftKey&&t.target===i.inputs[i.inputs.length-1]||t.shiftKey&&t.target===i.inputs[0]||0===i.inputs.length){t.preventDefault();var n=t.shiftKey?"last":"first";i.focus(n)}}else t.preventDefault(),i.focus()},open:function(){var t=this;t.d.iframe&&t.d.iframe.show(),e.isFunction(t.o.onOpen)?t.o.onOpen.apply(t,[t.d]):(t.d.overlay.show(),t.d.container.show(),t.d.data.show()),t.o.focus&&t.focus(),t.bindEvents()},close:function(){var t=this;if(!t.d.data)return!1;if(t.unbindEvents(),e.isFunction(t.o.onClose)&&!t.occb)t.occb=!0,t.o.onClose.apply(t,[t.d]);else{if(t.d.placeholder){var i=e("#simplemodal-placeholder");t.o.persist?i.replaceWith(t.d.data.removeClass("simplemodal-data").css("display",t.display)):(t.d.data.hide().remove(),i.replaceWith(t.d.orig))}else t.d.data.hide().remove();t.d.container.hide().remove(),t.d.overlay.hide(),t.d.iframe&&t.d.iframe.hide().remove(),t.d.overlay.remove(),t.d={}}}}}),function(e){void 0===e.fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}})}(jQuery),function(e,t){"use strict";function i(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function n(e){function t(e){return N[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function s(e,t){for(var i=0,n=t.length;i<n;i+=1)if(r(e,t[i]))return i;return-1}function a(){var t=e(W);t.appendTo(document.body);var i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}function r(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function o(e,t,i){var n,s,a;if(null===e||e.length<1)return[];for(n=e.split(t),s=0,a=n.length;s<a;s+=1)n[s]=i(n[s]);return n}function d(e){return e.outerWidth(!1)-e.width()}function l(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function u(i){i.on("mousemove",function(i){var n=j;n!==t&&n.x===i.pageX&&n.y===i.pageY||e(i.target).trigger("mousemove-filtered",i)})}function c(e,i,n){n=n||t;var s;return function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function h(e,t){var i=c(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){s(e.target,t.get())>=0&&i(e)})}function p(e){e[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&(t=i.createTextRange(),t.collapse(!1),t.select()))},0)}function m(t){t=e(t)[0];var i=0,n=0;if("selectionStart"in t)i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}function _(e){e.preventDefault(),e.stopPropagation()}function f(e){e.preventDefault(),e.stopImmediatePropagation()}function g(t){if(!J){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);J=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"}),J.attr("class","select2-sizer"),e(document.body).append(J)}return J.text(t.val()),J.width()}function y(t,i,n){var s,a,r=[];s=e.trim(t.attr("class")),s&&(s=""+s,e(s.split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)})),s=e.trim(i.attr("class")),s&&(s=""+s,e(s.split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)})),t.attr("class",r.join(" "))}function Y(e,t,i,s){var a=n(e.toUpperCase()).indexOf(n(t.toUpperCase())),r=t.length;if(a<0)return void i.push(s(e));i.push(s(e.substring(0,a))),i.push("<span class='select2-match'>"),i.push(s(e.substring(a,a+r))),i.push("</span>"),i.push(s(e.substring(a+r,e.length)))}function L(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function v(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(d){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,a=r,l=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},c=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,d.term,d.page,d.context):null,a="function"==typeof a?a.call(o,d.term,d.page,d.context):a,s&&"function"==typeof s.abort&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(c,i.params.call(o)):e.extend(c,i.params)),e.extend(c,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,d.page,d);d.callback(t)},error:function(e,t,i){var n={hasError:!0,jqXHR:e,textStatus:t,errorThrown:i};d.callback(n)}}),s=l.call(o,c)},a)}}function M(t){var i,n,s=t,a=function(e){return""+e.text};e.isArray(s)&&(n=s,s={results:n}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(a=r.text,e.isFunction(a)||(i=r.text,a=function(e){return e[i]})),function(t){var i,n=t.term,r={results:[]};if(""===n)return void t.callback(s());i=function(s,r){var o,d;if(s=s[0],s.children){o={};for(d in s)s.hasOwnProperty(d)&&(o[d]=s[d]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2(function(e,t){i(t,r.results)}),t.callback(r)}}function b(i){var n=e.isFunction(i);return function(s){var a=s.term,r={results:[]},o=n?i(s):i;e.isArray(o)&&(e(o).each(function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r))}}function T(t,i){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value")}function D(t,i){if(e.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(i,n)}return t}function w(t){var i=0;return e.each(t,function(e,t){t.children?i+=w(t.children):i++}),i}function S(e,i,n,s){var a,o,d,l,u,c=e,h=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(o=-1,d=0,l=s.tokenSeparators.length;d<l&&(u=s.tokenSeparators[d],!((o=e.indexOf(u))>=0));d++);if(o<0)break;if(a=e.substring(0,o),e=e.substring(o+u.length),a.length>0&&(a=s.createSearchChoice.call(this,a,i))!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)){for(h=!1,d=0,l=i.length;d<l;d++)if(r(s.id(a),s.id(i[d]))){h=!0;break}h||n(a)}}return c!==e?e:void 0}function k(){var t=this;e.each(arguments,function(e,i){t[i].remove(),t[i]=null})}function C(t,i){var n=function(){};return n.prototype=new t,n.prototype.constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}if(window.Select2===t){var H,x,Z,P,J,X,F,j={x:0,y:0},E={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case E.LEFT:case E.RIGHT:case E.UP:case E.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case E.SHIFT:case E.CTRL:case E.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},W="<div class='select2-measure-scrollbar'></div>",N={"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};X=e(document),P=function(){var e=1;return function(){return e++}}(),H=C(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s;this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+P()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(D(i.containerCss,this.opts.element)),this.container.addClass(D(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(D(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=n=this.container.find(".select2-results"),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),u(this.results),this.dropdown.on("mousemove-filtered",".select2-results",this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",".select2-results",this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",".select2-results",this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",".select2-results",this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),h(80,this.results),this.dropdown.on("scroll-debounced",".select2-results",this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&n.mousewheel(function(e,t,i,s){var a=n.scrollTop();s>0&&a-s<=0?(n.scrollTop(0),_(e)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),_(e))}),l(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",".select2-results",this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.nextSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var r=i.element.prop("disabled");r===t&&(r=!1),this.enable(!r);var o=i.element.prop("readonly");o===t&&(o=!1),this.readonly(o),F=F||a(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.show().removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show()),k.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:r(e.attr("locked"),"locked")||r(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,a,d,l=this;if(n=i.element,"select"===n.get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),i=e.extend({},{populateResults:function(n,s,a){var r,o=this.opts.id,d=this.liveRegion;(r=function(n,s,u){var c,h,p,m,_,f,g,y,Y,L;n=i.sortResults(n,s,a);var v=[];for(c=0,h=n.length;c<h;c+=1)p=n[c],_=!0===p.disabled,m=!_&&o(p)!==t,f=p.children&&p.children.length>0,g=e("<li></li>"),g.addClass("select2-results-dept-"+u),g.addClass("select2-result"),g.addClass(m?"select2-result-selectable":"select2-result-unselectable"),_&&g.addClass("select2-disabled"),f&&g.addClass("select2-result-with-children"),g.addClass(l.opts.formatResultCssClass(p)),g.attr("role","presentation"),y=e(document.createElement("div")),y.addClass("select2-result-label"),y.attr("id","select2-result-label-"+P()),y.attr("role","option"),L=i.formatResult(p,y,a,l.opts.escapeMarkup),L!==t&&(y.html(L),g.append(y)),f&&(Y=e("<ul></ul>"),Y.addClass("select2-result-sub"),r(p.children,Y,u+1),g.append(Y)),g.data("select2-data",p),v.push(g[0]);s.append(v),d.text(i.formatMatches(n.length))})(s,n,0)}},e.fn.select2.defaults,i),"function"!=typeof i.id&&(a=i.id,i.id=function(e){return e[a]}),e.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(s?(i.query=this.bind(function(e){var i,s,a,r={results:[],more:!1},o=e.term;a=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){a(t,r.results)}),e.callback(r)}),i.id=function(e){return e.id}):"query"in i||("ajax"in i?(d=i.element.data("ajax-url"),d&&d.length>0&&(i.ajax.url=d),i.query=v.call(i.element,i.ajax)):"data"in i?i.query=M(i.data):"tags"in i&&(i.query=b(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(o(t.val(),i.separator,i.transformVal)).each(function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each(function(){if(r(this.id,t.id))return t=this,!1}),s.push(t)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),this.container&&(y(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(D(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(y(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(D(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(t){e.each(t,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),
this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,a,r=this.dropdown,o=this.container,d=o.offset(),l=o.outerHeight(!1),u=o.outerWidth(!1),c=r.outerHeight(!1),h=e(window),p=h.width(),m=h.height(),_=h.scrollLeft()+p,f=h.scrollTop()+m,g=d.top+l,y=d.left,Y=g+c<=f,L=d.top-c>=h.scrollTop(),v=r.outerWidth(!1),M=r.hasClass("select2-drop-above");M?(i=!0,!L&&Y&&(n=!0,i=!1)):(i=!1,!Y&&L&&(n=!0,i=!0)),n&&(r.hide(),d=this.container.offset(),l=this.container.outerHeight(!1),u=this.container.outerWidth(!1),c=r.outerHeight(!1),_=h.scrollLeft()+p,f=h.scrollTop()+m,g=d.top+l,y=d.left,v=r.outerWidth(!1),r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),v=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:F.width),v>u?u=v:v=u,c=r.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(t=this.body.offset(),g-=t.top,y-=t.left),!function(){return y+v<=_}()&&function(){return d.left+_+o.outerWidth(!1)>v}()&&(y=d.left+this.container.outerWidth(!1)-v),s={left:y,width:u},i?(s.top=d.top-c,s.bottom="auto",this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above")):(s.top=g,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,D(this.opts.dropdownCss,this.opts.element)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),X.on("mousemove.select2Event",function(e){j.x=e.pageX,j.y=e.pageY}),!0)},opening:function(){var t,n=this.containerEventName,s="scroll."+n,a="resize."+n,r="orientationchange."+n;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),t=e("#select2-drop-mask"),0===t.length&&(t=e(document.createElement("div")),t.attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(n){i(t);var s,a=e("#select2-drop");a.length>0&&(s=a.data("select2"),s.opts.selectOnBlur&&s.selectHighlighted({noFocus:!0}),s.close(),n.preventDefault(),n.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var o=this;this.container.parents().add(window).each(function(){e(this).on(a+" "+s+" "+r,function(e){o.opened()&&o.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),X.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return D(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,a,r,o,d,l=this.results;if(!((i=this.highlight())<0)){if(0==i)return void l.scrollTop(0);t=this.findHighlightableChoices().find(".select2-result-label"),n=e(t[i]),d=(n.offset()||{}).top||0,s=d+n.outerHeight(!0),i===t.length-1&&(o=l.find("li.select2-more-results"),o.length>0&&(s=o.offset().top+o.outerHeight(!0))),a=l.offset().top+l.outerHeight(!1),s>a&&l.scrollTop(l.scrollTop()+(s-a)),r=d-l.offset().top,r<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+r)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){n+=t;var s=e(i[n]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,a=this.findHighlightableChoices();if(0===arguments.length)return s(a.filter(".select2-highlighted")[0],a.get());t>=a.length&&(t=a.length-1),t<0&&(t=0),this.removeHighlight(),i=e(a[t]),i.addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(D(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))})}))},tokenize:function(){},updateResults:function(i){function n(){l.removeClass("select2-active"),h.positionDropdown(),u.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?h.liveRegion.text(u.text()):h.liveRegion.text(h.opts.formatMatches(u.find('.select2-result-selectable:not(".select2-selected")').length))}function s(e){u.html(e),n()}var a,o,d,l=this.search,u=this.results,c=this.opts,h=this,p=l.val(),m=e.data(this.container,"select2-last-term");if((!0===i||!m||!r(p,m))&&(e.data(this.container,"select2-last-term",p),!0===i||!1!==this.showSearchInput&&this.opened())){d=++this.queryCount;var _=this.getMaximumSelectionSize();if(_>=1&&(a=this.data(),e.isArray(a)&&a.length>=_&&T(c.formatSelectionTooBig,"formatSelectionTooBig")))return void s("<li class='select2-selection-limit'>"+D(c.formatSelectionTooBig,c.element,_)+"</li>");if(l.val().length<c.minimumInputLength)return s(T(c.formatInputTooShort,"formatInputTooShort")?"<li class='select2-no-results'>"+D(c.formatInputTooShort,c.element,l.val(),c.minimumInputLength)+"</li>":""),void(i&&this.showSearch&&this.showSearch(!0));if(c.maximumInputLength&&l.val().length>c.maximumInputLength)return void s(T(c.formatInputTooLong,"formatInputTooLong")?"<li class='select2-no-results'>"+D(c.formatInputTooLong,c.element,l.val(),c.maximumInputLength)+"</li>":"");c.formatSearching&&0===this.findHighlightableChoices().length&&s("<li class='select2-searching'>"+D(c.formatSearching,c.element)+"</li>"),l.addClass("select2-active"),this.removeHighlight(),o=this.tokenize(),o!=t&&null!=o&&l.val(o),this.resultsPage=1,c.query({element:c.element,term:l.val(),page:this.resultsPage,context:null,matcher:c.matcher,callback:this.bind(function(a){var o;if(d==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(a.hasError!==t&&T(c.formatAjaxError,"formatAjaxError"))return void s("<li class='select2-ajax-error'>"+D(c.formatAjaxError,c.element,a.jqXHR,a.textStatus,a.errorThrown)+"</li>");if(this.context=a.context===t?null:a.context,this.opts.createSearchChoice&&""!==l.val()&&(o=this.opts.createSearchChoice.call(h,l.val(),a.results))!==t&&null!==o&&h.id(o)!==t&&null!==h.id(o)&&0===e(a.results).filter(function(){return r(h.id(this),h.id(o))}).length&&this.opts.createSearchChoicePosition(a.results,o),0===a.results.length&&T(c.formatNoMatches,"formatNoMatches"))return void s("<li class='select2-no-results'>"+D(c.formatNoMatches,c.element,l.val())+"</li>");u.empty(),h.opts.populateResults.call(this,u,a.results,{term:l.val(),page:this.resultsPage,context:null}),!0===a.more&&T(c.formatLoadMore,"formatLoadMore")&&(u.append("<li class='select2-more-results'>"+c.escapeMarkup(D(c.formatLoadMore,c.element,this.resultsPage))+"</li>"),window.setTimeout(function(){h.loadMoreIfNeeded()},10)),this.postprocessResults(a,i),n(),this.opts.element.trigger({type:"select2-loaded",items:a})}})})}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){p(this.search)},selectHighlighted:function(e){if(this._touchMoved)return void this.clearTouchMoved();var t=this.highlight(),i=this.results.find(".select2-highlighted"),n=i.closest(".select2-result").data("select2-data");n?(this.highlight(t),this.onSelect(n,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){function i(){var i,n,s,a,r,o;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==t)for(n=i.split(";"),a=0,r=n.length;a<r;a+=1)if(o=n[a].replace(/\s/g,""),null!==(s=o.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&s.length>=1)return s[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width"),i.indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px"):null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}var n=i.call(this);null!==n&&this.container.css("width",n)}}),x=C(H,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>","   <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>","   <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>","   <div class='select2-search'>","       <label for='' class='select2-offscreen'></label>","       <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'","       aria-autocomplete='list' />","   </div>","   <ul class='select2-results' role='listbox'>","   </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,s;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),i=this.search.get(0),i.createTextRange?(n=i.createTextRange(),n.collapse(!1),n.select()):i.setSelectionRange&&(s=this.search.val().length,i.setSelectionRange(s,s))),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),k.call(this,"selection","focusser")},initContainer:function(){var t,n,s=this.container,a=this.dropdown,r=P();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=s.find(".select2-choice"),this.focusser=s.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+r),this.focusser.attr("aria-labelledby","select2-chosen-"+r),this.results.attr("id","select2-results-"+r),this.search.attr("aria-owns","select2-results-"+r),this.focusser.attr("id","s2id_autogen"+r),n=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.focus(this.bind(function(){this.focus()})),this.focusser.prev().text(n.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||n.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===E.PAGE_UP||e.which===E.PAGE_DOWN)return void _(e);switch(e.which){case E.UP:case E.DOWN:return this.moveHighlight(e.which===E.UP?-1:1),void _(e);case E.ENTER:return this.selectHighlighted(),void _(e);case E.TAB:return void this.selectHighlighted({noFocus:!0});case E.ESC:return this.cancel(e),void _(e)}}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==E.TAB&&!E.isControl(e)&&!E.isFunctionKey(e)&&e.which!==E.ESC){if(!1===this.opts.openOnEnter&&e.which===E.ENTER)return void _(e);if(e.which==E.DOWN||e.which==E.UP||e.which==E.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void _(e)}return e.which==E.DELETE||e.which==E.BACKSPACE?(this.opts.allowClear&&this.clear(),void _(e)):void 0}})),l(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){this.isInterfaceEnabled()&&(this.clear(),f(e),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(n){i(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(n)})),a.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder(),e.nextSearchTerm=e.opts.nextSearchTerm(i,e.search.val()))})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),a=null;t.query({matcher:function(e,i,n){var o=r(s,t.id(n));return o&&(a=n),o},callback:e.isFunction(n)?function(){n(a)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,i){var n=0,s=this;if(this.findHighlightableChoices().each2(function(e,t){if(r(s.id(t.data("select2-data")),s.opts.element.val()))return n=e,!1}),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(w(e.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),r(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),i!==t&&s.append(i),n=this.opts.formatSelectionCssClass(e,s),n!==t&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,a=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return i=this.selection.data("select2-data"),i==t&&(i=null),i;arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),Z=C(H,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>","  <li class='select2-search-field'>","    <label for='' class='select2-offscreen'></label>","    <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>","  </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>","   <ul class='select2-results'>","   </ul>","</div>"].join(""))},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=o(i.val(),t.separator,t.transformVal),a=[];t.query({matcher:function(i,n,o){var d=e.grep(s,function(e){return r(e,t.id(o))}).length;return d&&a.push(o),d},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var o=s[i],d=0;d<a.length;d++){var l=a[d];if(r(o,t.id(l))){e.push(l),a.splice(d,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),k.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+P()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.focus(this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()){++this.keydowns;var i=t.find(".select2-search-choice-focus"),n=i.prev(".select2-search-choice:not(.select2-locked)"),s=i.next(".select2-search-choice:not(.select2-locked)"),a=m(this.search);if(i.length&&(e.which==E.LEFT||e.which==E.RIGHT||e.which==E.BACKSPACE||e.which==E.DELETE||e.which==E.ENTER)){var r=i;return e.which==E.LEFT&&n.length?r=n:e.which==E.RIGHT?r=s.length?s:null:e.which===E.BACKSPACE?this.unselect(i.first())&&(this.search.width(10),r=n.length?n:s):e.which==E.DELETE?this.unselect(i.first())&&(this.search.width(10),r=s.length?s:null):e.which==E.ENTER&&(r=null),this.selectChoice(r),_(e),void(r&&r.length||this.open())}if((e.which===E.BACKSPACE&&1==this.keydowns||e.which==E.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),void _(e);if(this.selectChoice(null),this.opened())switch(e.which){case E.UP:case E.DOWN:return this.moveHighlight(e.which===E.UP?-1:1),void _(e);case E.ENTER:return this.selectHighlighted(),void _(e);case E.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case E.ESC:return this.cancel(e),void _(e)}if(e.which!==E.TAB&&!E.isControl(e)&&!E.isFunctionKey(e)&&e.which!==E.BACKSPACE&&e.which!==E.ESC){if(e.which===E.ENTER){if(!1===this.opts.openOnEnter)return;if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return}this.open(),e.which!==E.PAGE_UP&&e.which!==E.PAGE_DOWN||_(e),e.which===E.ENTER&&_(e)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),""===this.search.val()&&this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.search.select()),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var i=[],n=[],a=this;e(t).each(function(){s(a.id(this),i)<0&&(i.push(a.id(this)),n.push(this))}),t=n,this.selection.find(".select2-search-choice").remove(),e(t).each(function(){a.addSelectedChoice(this)}),a.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,i){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.nextSearchTerm=this.opts.nextSearchTerm(e,this.search.val()),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.nextSearchTerm!=t&&(this.search.val(this.nextSearchTerm),this.updateResults(),this.search.select()),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),i&&i.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,s,a=!i.locked,r=e("<li class='select2-search-choice'>    <div></div>    <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),d=a?r:o,l=this.id(i),u=this.getVal();n=this.opts.formatSelection(i,d.find("div"),this.opts.escapeMarkup),n!=t&&d.find("div").replaceWith(e("<div></div>").html(n)),s=this.opts.formatSelectionCssClass(i,d.find("div")),s!=t&&d.addClass(s),a&&d.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),d.data("select2-data",i),d.insertBefore(this.searchContainer),u.push(l),this.setVal(u)},unselect:function(t){var i,n,a=this.getVal();if(t=t.closest(".select2-search-choice"),0===t.length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var r=e.Event("select2-removing");if(r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=s(this.id(i),a))>=0;)a.splice(n,1),this.setVal(a),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),a=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),o=this;a.each2(function(e,t){s(o.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),r.each2(function(e,t){
t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&o.highlight(0),!this.opts.createSearchChoice&&!a.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&T(o.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+D(o.opts.formatNoMatches,o.opts.element,o.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-d(this.search)},resizeSearch:function(){var e,t,i,n,s,a=d(this.search);e=g(this.search)+10,t=this.search.offset().left,i=this.selection.width(),n=this.selection.offset().left,s=i-(t-n)-a,s<e&&(s=i-a),s<40&&(s=i-a),s<=0&&(s=e),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?(e=this.select.val(),null===e?[]:e):(e=this.opts.element.val(),o(e,this.opts.separator,this.opts.transformVal))},setVal:function(t){var i;this.select?this.select.val(t):(i=[],e(t).each(function(){s(this,i)<0&&i.push(this)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var n=0;n<e.length;n++)r(this.opts.id(t[i]),this.opts.id(e[n]))&&(t.splice(i,1),i>0&&i--,e.splice(n,1),n--);return{added:t,removed:e}},val:function(i,n){var s,a=this;if(0===arguments.length)return this.getVal();if(s=this.data(),s.length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,a=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,a,r,o,d=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],u=["opened","isFocused","container","dropdown"],c=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===d.length||"object"==typeof d[0])i=0===d.length?{}:e.extend({},d[0]),i.element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?o=i.element.prop("multiple"):(o=i.multiple||!1,"tags"in i&&(i.multiple=o=!0)),n=o?new window.Select2.class.multi:new window.Select2.class.single,n.init(i);else{if("string"!=typeof d[0])throw"Invalid arguments to select2 plugin: "+d;if(s(d[0],l)<0)throw"Unknown method: "+d[0];if(r=t,(n=e(this).data("select2"))===t)return;if(a=d[0],"container"===a?r=n.container:"dropdown"===a?r=n.dropdown:(h[a]&&(a=h[a]),r=n[a].apply(n,d.slice(1))),s(d[0],u)>=0||s(d[0],c)>=0&&1==d.length)return!1}}),r===t?this:r},e.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return Y(this.text(e),i.term,s,n),s.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return n(""+t).toUpperCase().indexOf(n(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:S,escapeMarkup:L,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!(("ontouchstart"in window||navigator.msMaxTouchPoints>0)&&e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:v,local:M,tags:b},util:{debounce:c,markMatch:Y,escapeMarkup:L,stripDiacritics:n},class:{abstract:H,single:x,multi:Z}}}}(jQuery),define("select2",function(){}),function(e){"function"==typeof define&&define.amd?define("jquery.ui",["jquery"],e):e(jQuery)}(function(e){function t(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,s)}function s(){e.datepicker._isDisabledDatepicker(d.inline?d.dpDiv.parent()[0]:d.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function a(t,i){e.extend(t,i);for(var n in i)null==i[n]&&(t[n]=i[n]);return t}e.ui=e.ui||{},e.ui.version="1.12.1";var r=0,o=Array.prototype.slice;e.cleanData=function(t){return function(i){var n,s,a;for(a=0;null!=(s=i[a]);a++)try{(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove")}catch(e){}t(i)}}(e.cleanData),e.widget=function(t,i,n){var s,a,r,o={},d=t.split(".")[0];t=t.split(".")[1];var l=d+"-"+t;return n||(n=i,i=e.Widget),e.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr[":"][l.toLowerCase()]=function(t){return!!e.data(t,l)},e[d]=e[d]||{},s=e[d][t],a=e[d][t]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new a(e,t)},e.extend(a,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),r=new i,r.options=e.widget.extend({},r.options),e.each(n,function(t,n){return e.isFunction(n)?void(o[t]=function(){function e(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=s,t=n.apply(this,arguments),this._super=i,this._superApply=a,t}}()):void(o[t]=n)}),a.prototype=e.widget.extend(r,{widgetEventPrefix:s?r.widgetEventPrefix||t:t},o,{constructor:a,namespace:d,widgetName:t,widgetFullName:l}),s?(e.each(s._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,a,i._proto)}),delete s._childConstructors):i._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var i,n,s=o.call(arguments,1),a=0,r=s.length;r>a;a++)for(i in s[a])n=s[a][i],s[a].hasOwnProperty(i)&&void 0!==n&&(t[i]=e.isPlainObject(n)?e.isPlainObject(t[i])?e.widget.extend({},t[i],n):e.widget.extend({},n):n);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(s){var a="string"==typeof s,r=o.call(arguments,1),d=this;return a?this.length||"instance"!==s?this.each(function(){var i,a=e.data(this,n);return"instance"===s?(d=a,!1):a?e.isFunction(a[s])&&"_"!==s.charAt(0)?(i=a[s].apply(a,r),i!==a&&void 0!==i?(d=i&&i.jquery?d.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+s+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+s+"'")}):d=void 0:(r.length&&(s=e.widget.extend.apply(null,[s].concat(r))),this.each(function(){var t=e.data(this,n);t?(t.option(s||{}),t._init&&t._init()):e.data(this,n,new i(s,this))})),d}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},n=t.split("."),t=n.shift(),n.length){for(s=r[t]=e.widget.extend({},this.options[t]),a=0;n.length-1>a;a++)s[n[a]]=s[n[a]]||{},s=s[n[a]];if(t=n.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(i,a){var r,o;for(o=0;i.length>o;o++)r=s.classesElementLookup[i[o]]||e(),r=e(t.add?e.unique(r.get().concat(t.element.get())):r.not(t.element).get()),s.classesElementLookup[i[o]]=r,n.push(i[o]),a&&t.classes[i[o]]&&n.push(t.classes[i[o]])}var n=[],s=this;return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))})},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,a={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(t,i,n){var s,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,function(n,r){function o(){return t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled")?("string"==typeof r?a[r]:r).apply(a,arguments):void 0}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var d=n.match(/^([\w:-]*)\s*(.*)$/),l=d[1]+a.eventNamespace,u=d[2];u?s.on(l,u,o):i.on(l,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i).off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,a,r=this.options[t];if(n=n||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,n),!(e.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,s,a){"string"==typeof s&&(s={effect:s});var r,o=s?!0===s||"number"==typeof s?i:s.effect||i:t;s=s||{},"number"==typeof s&&(s={duration:s}),r=!e.isEmptyObject(s),s.complete=a,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,a):n.queue(function(i){e(this)[t](),a&&a.call(n[0]),i()})}}),e.widget,e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),e.extend(e.ui,{datepicker:{version:"1.12.1"}});var d;e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return a(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,a;n=t.nodeName.toLowerCase(),s="div"===n||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),a=this._newInst(e(t),s),a.settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span class='"+this._appendClass+"'>"+r+"</span>"),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),n=this._get(i,"showOn"),("focus"===n||"both"===n)&&t.on("focus",this._showDatepicker),("button"===n||"both"===n)&&(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),i.trigger=e(this._get(i,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):e("<button type='button'></button>").addClass(this._triggerClass).html(a?e("<img/>").attr({src:a,alt:s,title:s}):s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,n=0,s=0;e.length>s;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,r){var o,d,l,u,c,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),h=this._dialogInst=this._newInst(this._dialogInput,!1),h.settings={},e.data(this._dialogInput[0],"datepicker",h)),a(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(d=document.documentElement.clientWidth,l=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[d/2-100+u,l/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(t){var i,n=e(t),s=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&n.removeClass(this.markerClassName).empty(),d===s&&(d=null))},_enableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(n=s.children("."+this._inlineClass),n.children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),"input"===i?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(n=s.children("."+this._inlineClass),n.children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,r,o,d,l=this._getInst(t);return 2===arguments.length&&"string"==typeof i?"defaults"===i?e.extend({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i):null:(s=i||{},"string"==typeof i&&(s={},s[i]=n),void(l&&(this._curInst===l&&this._hideDatepicker(),r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(l,"min"),d=this._getMinMaxDate(l,"max"),a(l.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(l.settings.minDate=this._formatDate(l,o)),null!==d&&void 0!==s.dateFormat&&void 0===s.maxDate&&(l.settings.maxDate=this._formatDate(l,d)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,r),this._updateAlternate(l),this._updateDatepicker(l))))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,a=e.datepicker._getInst(t.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv),s[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),i=e.datepicker._get(a,"onSelect"),i?(n=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);return e.datepicker._get(s,"constrainInput")?(i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||" ">n||!i||i.indexOf(n)>-1):void 0},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(i){if(i=i.target||i,"input"!==i.nodeName.toLowerCase()&&(i=e("input",i.parentNode)[0]),!e.datepicker._isDisabledDatepicker(i)&&e.datepicker._lastInput!==i){var n,s,r,o,d,l,u;n=e.datepicker._getInst(i),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),s=e.datepicker._get(n,"beforeShow"),!1!==(r=s?s.apply(i,[i,n]):{})&&(a(n.settings,r),n.lastVal=null,e.datepicker._lastInput=i,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(i.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(i),e.datepicker._pos[1]+=i.offsetHeight),o=!1,e(i).parents().each(function(){return!(o|="fixed"===e(this).css("position"))}),d={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),d=e.datepicker._checkOffset(n,d,o),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:d.left+"px",top:d.top+"px"}),n.inline||(l=e.datepicker._get(n,"showAnim"),u=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",t(e(i))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?n.dpDiv.show(l,e.datepicker._get(n,"showOptions"),u):n.dpDiv[l||"show"](l?u:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n))}},_updateDatepicker:function(t){this.maxRows=4,d=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,n=this._getNumberOfMonths(t),a=n[1],r=t.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&s.apply(r.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),i=t.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,d=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),l=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>d&&d>s?Math.abs(i.left+s-d):0),i.top-=Math.min(i.top,i.top+a>l&&l>a?Math.abs(a+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return i=e(t).offset(),[i.left,i.top]},_hideDatepicker:function(t){var i,n,s,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,a=this._get(r,"onClose"),a&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0])
;(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&(!e.datepicker._inDialog||!e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==n)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i+("M"===n?this._get(a,"showCurrentAtPos"):0),n),this._updateDatepicker(a))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,i,n,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||(a=this._getInst(r[0]),a.selectedDay=a.currentDay=e("a",s).html(),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),n=this._get(a,"onSelect"),n?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&6>t,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?""+i:i+""))return null;var s,a,r,o,d=0,l=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,h=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,m=(n?n.monthNames:null)||this._defaults.monthNames,_=-1,f=-1,g=-1,y=-1,Y=!1,L=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},v=function(e){var t=L(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s="y"===e?n:1,a=RegExp("^\\d{"+s+","+n+"}"),r=i.substring(d).match(a);if(!r)throw"Missing number at position "+d;return d+=r[0].length,parseInt(r[0],10)},M=function(t,n,s){var a=-1,r=e.map(L(t)?s:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var n=t[1];return i.substr(d,n.length).toLowerCase()===n.toLowerCase()?(a=t[0],d+=n.length,!1):void 0}),-1!==a)return a+1;throw"Unknown name at position "+d},b=function(){if(i.charAt(d)!==t.charAt(s))throw"Unexpected literal at position "+d;d++};for(s=0;t.length>s;s++)if(Y)"'"!==t.charAt(s)||L("'")?b():Y=!1;else switch(t.charAt(s)){case"d":g=v("d");break;case"D":M("D",c,h);break;case"o":y=v("o");break;case"m":f=v("m");break;case"M":f=M("M",p,m);break;case"y":_=v("y");break;case"@":o=new Date(v("@")),_=o.getFullYear(),f=o.getMonth()+1,g=o.getDate();break;case"!":o=new Date((v("!")-this._ticksTo1970)/1e4),_=o.getFullYear(),f=o.getMonth()+1,g=o.getDate();break;case"'":L("'")?b():Y=!0;break;default:b()}if(i.length>d&&(r=i.substr(d),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===_?_=(new Date).getFullYear():100>_&&(_+=(new Date).getFullYear()-(new Date).getFullYear()%100+(u>=_?0:-100)),y>-1)for(f=1,g=y;!((a=this._getDaysInMonth(_,f-1))>=g);)f++,g-=a;if(o=this._daylightSavingAdjust(new Date(_,f-1,g)),o.getFullYear()!==_||o.getMonth()+1!==f||o.getDate()!==g)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,d=function(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},l=function(e,t,i){var n=""+t;if(d(e))for(;i>n.length;)n="0"+n;return n},u=function(e,t,i,n){return d(e)?n[t]:i[t]},c="",h=!1;if(t)for(n=0;e.length>n;n++)if(h)"'"!==e.charAt(n)||d("'")?c+=e.charAt(n):h=!1;else switch(e.charAt(n)){case"d":c+=l("d",t.getDate(),2);break;case"D":c+=u("D",t.getDay(),s,a);break;case"o":c+=l("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":c+=l("m",t.getMonth()+1,2);break;case"M":c+=u("M",t.getMonth(),r,o);break;case"y":c+=d("y")?t.getFullYear():(10>t.getFullYear()%100?"0":"")+t.getFullYear()%100;break;case"@":c+=t.getTime();break;case"!":c+=1e4*t.getTime()+this._ticksTo1970;break;case"'":d("'")?c+="'":h=!0;break;default:c+=e.charAt(n)}return c},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=e.length>t+1&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;e.length>t;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),a=n.getMonth(),r=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,d=o.exec(i);d;){switch(d[2]||"d"){case"d":case"D":r+=parseInt(d[1],10);break;case"w":case"W":r+=7*parseInt(d[1],10);break;case"m":case"M":a+=parseInt(d[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(d[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}d=o.exec(i)}return new Date(s,a,r)}(i):"number"==typeof i?isNaN(i)?n:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(i):new Date(i.getTime());return s=s&&"Invalid Date"==""+s?n:s,s&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,n,s,a,r,o,d,l,u,c,h,p,m,_,f,g,y,Y,L,v,M,b,T,D,w,S,k,C,H,x,Z,P,J,X,F,j,E,W,N=new Date,Q=this._daylightSavingAdjust(new Date(N.getFullYear(),N.getMonth(),N.getDate())),B=this._get(e,"isRTL"),O=this._get(e,"showButtonPanel"),A=this._get(e,"hideIfNoPrevNext"),R=this._get(e,"navigationAsDateFormat"),G=this._getNumberOfMonths(e),$=this._get(e,"showCurrentAtPos"),I=this._get(e,"stepMonths"),K=1!==G[0]||1!==G[1],z=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),U=this._getMinMaxDate(e,"min"),q=this._getMinMaxDate(e,"max"),V=e.drawMonth-$,ee=e.drawYear;if(0>V&&(V+=12,ee--),q)for(t=this._daylightSavingAdjust(new Date(q.getFullYear(),q.getMonth()-G[0]*G[1]+1,q.getDate())),t=U&&U>t?U:t;this._daylightSavingAdjust(new Date(ee,V,1))>t;)0>--V&&(V=11,ee--);for(e.drawMonth=V,e.drawYear=ee,i=this._get(e,"prevText"),i=R?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,V-I,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,V)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+i+"</span></a>":A?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"e":"w")+"'>"+i+"</span></a>",s=this._get(e,"nextText"),s=R?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,V+I,1)),this._getFormatConfig(e)):s,a=this._canAdjustMonth(e,1,ee,V)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+s+"</span></a>":A?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(B?"w":"e")+"'>"+s+"</span></a>",r=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?z:Q,r=R?this.formatDate(r,o,this._getFormatConfig(e)):r,d=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",l=O?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(B?d:"")+(this._isInRange(e,o)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(B?"":d)+"</div>":"",u=parseInt(this._get(e,"firstDay"),10),u=isNaN(u)?0:u,c=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),_=this._get(e,"monthNamesShort"),f=this._get(e,"beforeShowDay"),g=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),Y=this._getDefaultDate(e),L="",M=0;G[0]>M;M++){for(b="",this.maxRows=4,T=0;G[1]>T;T++){if(D=this._daylightSavingAdjust(new Date(ee,V,e.selectedDay)),w=" ui-corner-all",S="",K){if(S+="<div class='ui-datepicker-group",G[1]>1)switch(T){case 0:S+=" ui-datepicker-group-first",w=" ui-corner-"+(B?"right":"left");break;case G[1]-1:S+=" ui-datepicker-group-last",w=" ui-corner-"+(B?"left":"right");break;default:S+=" ui-datepicker-group-middle",w=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+w+"'>"+(/all|left/.test(w)&&0===M?B?a:n:"")+(/all|right/.test(w)&&0===M?B?n:a:"")+this._generateMonthYearHeader(e,V,ee,U,q,M>0||T>0,m,_)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=c?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",v=0;7>v;v++)C=(v+u)%7,k+="<th scope='col'"+((v+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[C]+"'>"+p[C]+"</span></th>";for(S+=k+"</tr></thead><tbody>",H=this._getDaysInMonth(ee,V),ee===e.selectedYear&&V===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,H)),x=(this._getFirstDayOfMonth(ee,V)-u+7)%7,Z=Math.ceil((x+H)/7),P=K&&this.maxRows>Z?this.maxRows:Z,this.maxRows=P,J=this._daylightSavingAdjust(new Date(ee,V,1-x)),X=0;P>X;X++){for(S+="<tr>",F=c?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(J)+"</td>":"",v=0;7>v;v++)j=f?f.apply(e.input?e.input[0]:null,[J]):[!0,""],E=J.getMonth()!==V,W=E&&!y||!j[0]||U&&U>J||q&&J>q,F+="<td class='"+((v+u+6)%7>=5?" ui-datepicker-week-end":"")+(E?" ui-datepicker-other-month":"")+(J.getTime()===D.getTime()&&V===e.selectedMonth&&e._keyEvent||Y.getTime()===J.getTime()&&Y.getTime()===D.getTime()?" "+this._dayOverClass:"")+(W?" "+this._unselectableClass+" ui-state-disabled":"")+(E&&!g?"":" "+j[1]+(J.getTime()===z.getTime()?" "+this._currentClass:"")+(J.getTime()===Q.getTime()?" ui-datepicker-today":""))+"'"+(E&&!g||!j[2]?"":" title='"+j[2].replace(/'/g,"&#39;")+"'")+(W?"":" data-handler='selectDay' data-event='click' data-month='"+J.getMonth()+"' data-year='"+J.getFullYear()+"'")+">"+(E&&!g?"&#xa0;":W?"<span class='ui-state-default'>"+J.getDate()+"</span>":"<a class='ui-state-default"+(J.getTime()===Q.getTime()?" ui-state-highlight":"")+(J.getTime()===z.getTime()?" ui-state-active":"")+(E?" ui-priority-secondary":"")+"' href='#'>"+J.getDate()+"</a>")+"</td>",J.setDate(J.getDate()+1),J=this._daylightSavingAdjust(J);S+=F+"</tr>"}V++,V>11&&(V=0,ee++),S+="</tbody></table>"+(K?"</div>"+(G[0]>0&&T===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),b+=S}L+=b}return L+=l,e._keyEvent=!1,L},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var d,l,u,c,h,p,m,_,f=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),Y="<div class='ui-datepicker-title'>",L="";if(a||!f)L+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(d=n&&n.getFullYear()===i,l=s&&s.getFullYear()===i,L+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",u=0;12>u;u++)(!d||u>=n.getMonth())&&(!l||s.getMonth()>=u)&&(L+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");L+="</select>"}if(y||(Y+=L+(!a&&f&&g?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!g)Y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(c=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},m=p(c[0]),_=Math.max(m,p(c[1]||"")),m=n?Math.max(m,n.getFullYear()):m,_=s?Math.min(_,s.getFullYear()):_,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";_>=m;m++)e.yearshtml+="<option value='"+m+"'"+(m===i?" selected='selected'":"")+">"+m+"</option>";e.yearshtml+="</select>",Y+=e.yearshtml,e.yearshtml=null}return Y+=this._get(e,"yearSuffix"),y&&(Y+=(!a&&f&&g?"":"&#xa0;")+L),Y+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&i>t?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(0>t?t:s[0]*s[1]),1));return 0>t&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,d=this._get(e,"yearRange");return d&&(i=d.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||o>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1",e.datepicker,e.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=e("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),void this._refreshValue())},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.ui.escapeSelector=function(){var e=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(t){return t.replace(e,"\\$1")}}(),e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var e=/#.*$/;return function(t){var i,n;i=t.href.replace(e,""),n=location.href.replace(e,"");try{i=decodeURIComponent(i)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return t.hash.length>1&&i===n}}(),_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),e.isArray(i.disabled)&&(i.disabled=e.unique(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(i.active):e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===t&&(n&&this.tabs.each(function(i,s){return e(s).attr("aria-controls")===n?(t=i,!1):void 0}),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===t||-1===t)&&(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),!i&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(e.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:s=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){for(var n=this.tabs.length-1;-1!==e.inArray(function(){return t>n&&(t=0),0>t&&(t=n),t}(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){return"active"===e?void this._activate(t):(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),void("heightStyle"===e&&this._setupHeightStyle(t)))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,n=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(i,n){var s,a,r,o=e(n).uniqueId().attr("id"),d=e(n).closest("li"),l=d.attr("aria-controls");t._isLocal(n)?(s=n.hash,r=s.substring(1),a=t.element.find(t._sanitizeSelector(s))):(r=d.attr("aria-controls")||e({}).uniqueId()[0].id,s="#"+r,a=t.element.find(s),a.length||(a=t._createPanel(r),a.insertAfter(t.panels[i-1]||t.tablist)),a.attr("aria-live","polite")),a.length&&(t.panels=t.panels.add(a)),l&&d.data("ui-tabs-aria-controls",l),d.attr({"aria-controls":r,"aria-labelledby":o}),a.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,n,s;for(e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;n=this.tabs[s];s++)i=e(n),!0===t||-1!==e.inArray(s,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,n=this.element.parent();"fill"===t?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,s=e(t.currentTarget),a=s.closest("li"),r=a[0]===n[0],o=r&&i.collapsible,d=o?e():this._getPanelForTab(a),l=n.length?this._getPanelForTab(n):e(),u={oldTab:n,oldPanel:l,newTab:o?e():a,newPanel:d};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||r&&!i.collapsible||!1===this._trigger("beforeActivate",t,u)||(i.active=!o&&this.tabs.index(a),this.active=r?e():a,this.xhr&&this.xhr.abort(),l.length||d.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),d.length&&this.load(this.tabs.index(a),t),this._toggle(t,u))},_toggle:function(t,i){function n(){a.running=!1,a._trigger("activate",t,i)}function s(){a._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),r.length&&a.options.show?a._show(r,a.options.show,n):(r.show(),n())}var a=this,r=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){a._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),s()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&o.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.ui.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(void 0===t?i=!1:(t=this._getIndex(t),i=e.isArray(i)?e.map(i,function(e){
return e!==t?e:null}):e.map(this.tabs,function(e,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=e.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var n=this,s=this.tabs.eq(t),a=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),o={tab:s,panel:r},d=function(e,t){"abort"===t&&n.panels.stop(!1,!0),n._removeClass(s,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===n.xhr&&delete n.xhr};this._isLocal(a[0])||(this.xhr=e.ajax(this._ajaxSettings(a,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(e,t,s){setTimeout(function(){r.html(e),n._trigger("load",i,o),d(s,t)},1)}).fail(function(e,t){setTimeout(function(){d(e,t)},1)})))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,a){return s._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:a},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs}),define("sysadmin-app/views/folder-share-item",["jquery","underscore","backbone","common"],function(e,t,i,n){"use strict";return i.View.extend({tagName:"tr",template:t.template(e("#folder-perm-item-tmpl").html()),initialize:function(e){this.item_data=e.item_data,this.repo_id=e.repo_id,this.render()},render:function(){return this.$el.html(this.template(e.extend({},this.item_data,{is_pro:app.pageOptions.is_pro}))),this},events:{mouseenter:"showOpIcons",mouseleave:"hideOpIcons","click .perm-edit-icon":"editIconClick","change .perm-toggle-select":"editPerm","click .delete-icon":"del"},showOpIcons:function(){this.$el.find(".op-icon").removeClass("vh")},hideOpIcons:function(){this.$el.find(".op-icon").addClass("vh")},editIconClick:function(t){return e(t.currentTarget).closest("td").find(".perm").addClass("hide").end().find(".perm-toggle-select").removeClass("hide"),!1},editPerm:function(t){var i,s=this,a=this.item_data,r=e(t.currentTarget).val(),o=n.getUrl({name:"admin_shares"});i=a.for_user?{repo_id:s.repo_id,share_type:"user",permission:r,share_to:a.user_email}:{repo_id:s.repo_id,share_type:"group",permission:r,share_to:a.group_id},e.ajax({url:o,dataType:"json",method:"PUT",beforeSend:n.prepareCSRFToken,data:i,success:function(e){a.permission=e.permission,a.is_admin=e.is_admin,s.render()},error:function(t){var i=n.prepareAjaxErrorMsg(t);a.for_user?e("#dir-user-share .error").html(i).removeClass("hide"):e("#dir-group-share .error").html(i).removeClass("hide")}})},del:function(){var t,i=this,s=this.item_data,a=n.getUrl({name:"admin_shares"});return t=s.for_user?{repo_id:i.repo_id,share_type:"user",permission:s.permission,share_to:s.user_email}:{repo_id:i.repo_id,share_type:"group",permission:s.permission,share_to:s.group_id},e.ajax({url:a,dataType:"json",method:"DELETE",beforeSend:n.prepareCSRFToken,data:t,success:function(){i.remove()},error:function(t){var i=n.prepareAjaxErrorMsg(t);s.for_user?e("#dir-user-share .error").html(i).removeClass("hide"):e("#dir-group-share .error").html(i).removeClass("hide")}}),!1}})}),define("sysadmin-app/views/share",["jquery","jquery.ui","underscore","backbone","common","sysadmin-app/views/folder-share-item"],function(e,t,i,n,s,a){"use strict";return n.View.extend({tagName:"div",id:"share-popup",template:i.template(e("#share-popup-tmpl").html()),initialize:function(t){this.repo_id=t.repo_id,this.repo_name=t.repo_name,this.render(),this.$el.modal({focus:!1}),e("#simplemodal-container").css({width:"auto",height:"auto"}),this.$("#share-tabs").tabs(),this.dirUserSharePanelInit(),this.dirGroupSharePanelInit();var i=this;e(document).on("click",function(e){var t=e.target||event.srcElement;i.$(".perm-edit-icon, .perm-toggle-select").is(t)||(i.$(".perm").removeClass("hide"),i.$(".perm-toggle-select").addClass("hide"))})},render:function(){return this.$el.html(this.template({title:gettext("Share {placeholder}").replace("{placeholder}",'<span class="op-target ellipsis ellipsis-op-target" title="'+s.HTMLescape(this.repo_name)+'">'+s.HTMLescape(this.repo_name)+"</span>"),repo_id:this.repo_id,is_pro:app.pageOptions.is_pro})),this},events:{"click #add-dir-user-share-item .submit":"dirUserShare","click #add-dir-group-share-item .submit":"dirGroupShare"},dirUserSharePanelInit:function(){var t=this.$("#dir-user-share"),i=this.$("#add-dir-user-share-item"),n=this.repo_id;e('[name="emails"]',t).select2(e.extend({},s.contactInputOptionsForSelect2())),s.ajaxGet({get_url:s.getUrl({name:"admin_shares"}),data:{repo_id:n,share_type:"user"},after_op_success:function(t){e(t).each(function(e,t){var s=new a({repo_id:n,item_data:{user_email:t.user_email,user_name:t.user_name,permission:t.permission,is_admin:t.is_admin,for_user:!0}});i.after(s.el)})}}),t.removeClass("hide"),this.$(".loading-tip").hide()},dirGroupSharePanelInit:function(){var t=this.$("#dir-group-share"),i=this.$("#add-dir-group-share-item"),n=this.repo_id;e('[name="groups"]',t).select2(e.extend({},s.groupInputOptionsForSelect2())),s.ajaxGet({get_url:s.getUrl({name:"admin_shares"}),data:{repo_id:n,share_type:"group"},after_op_success:function(t){e(t).each(function(e,t){var s=new a({repo_id:n,item_data:{group_id:t.group_id,group_name:t.group_name,permission:t.permission,is_admin:t.is_admin,for_user:!1}});i.after(s.el)})}}),t.removeClass("hide"),this.$(".loading-tip").hide()},dirUserShare:function(){var t=this.$("#add-dir-user-share-item"),i=e('[name="emails"]',t),n=i.val(),r=e('[name="permission"]',t),o=r.val();if(!n||!o)return!1;var d=this.repo_id,l=e('[type="submit"]',t),u=e("#dir-user-share .error");s.disableButton(l),e.ajax({url:s.getUrl({name:"admin_shares"}),dataType:"json",method:"POST",beforeSend:s.prepareCSRFToken,traditional:!0,data:{repo_id:d,share_type:"user",share_to:n.split(","),permission:o},success:function(n){if(n.success.length>0&&(e(n.success).each(function(e,i){var n=new a({repo_id:d,item_data:{user_email:i.user_email,user_name:i.user_name,permission:i.permission,is_admin:i.is_admin,for_user:!0}});t.after(n.el)}),i.select2("val",""),e("option",r).prop("selected",!1),e('[value="rw"]',r).prop("selected",!0),u.addClass("hide")),n.failed.length>0){var o="";e(n.failed).each(function(e,t){o+=s.HTMLescape(t.user_email)+": "+s.HTMLescape(t.error_msg)+"<br />"}),u.html(o).removeClass("hide")}},error:function(e){var t=s.prepareAjaxErrorMsg(e);u.html(t).removeClass("hide")},complete:function(){s.enableButton(l)}})},dirGroupShare:function(){var t=this.$("#add-dir-group-share-item"),i=e('[name="groups"]',t),n=i.val(),r=e('[name="permission"]',t),o=r.val();if(!n||!o)return!1;var d=this.repo_id,l=e("#dir-group-share .error"),u=e('[type="submit"]',t);s.disableButton(u),e.ajax({url:s.getUrl({name:"admin_shares"}),dataType:"json",method:"POST",beforeSend:s.prepareCSRFToken,traditional:!0,data:{repo_id:d,share_type:"group",share_to:n.split(","),permission:o},success:function(n){if(n.success.length>0&&(e(n.success).each(function(e,i){var n=new a({repo_id:d,item_data:{group_id:i.group_id,group_name:i.group_name,permission:i.permission,is_admin:i.is_admin,for_user:!1}});t.after(n.el)}),i.select2("val",""),e("option",r).prop("selected",!1),e('[value="rw"]',r).prop("selected",!0),l.addClass("hide")),n.failed.length>0){var o="";e(n.failed).each(function(e,t){o+=s.HTMLescape(t.group_id)+": "+s.HTMLescape(t.error_msg)+"<br />"}),l.html(o).removeClass("hide")}},error:function(e){s.prepareAjaxErrorMsg(e);l.html(err_msg).removeClass("hide")},complete:function(){s.enableButton(u)}})}})}),define("app/views/dialogs/repo-history-settings",["jquery","underscore","backbone","common"],function(e,t,i,n){"use strict";return i.View.extend({template:t.template(e("#history-settings-dialog-tmpl").html()),initialize:function(t){this.repo_name=t.repo_name,this.repo_id=t.repo_id,this.url_name=t.url_name,this.render(),this.$(".op-target").css({"max-width":280}),this.$el.modal(),e("#simplemodal-container").css({height:"auto"}),this.$loadingTip=this.$(".loading-tip"),this.$error=this.$(".error"),this.$form=this.$("form"),this.$radios=this.$("input:radio[name=history]"),this.$days_input=this.$("input:text[name=days]"),this.$submit=this.$("[type=submit]"),this.renderHistorySettings()},render:function(){var e=this.repo_name;return this.$el.html(this.template({title:gettext("{placeholder} History Setting").replace("{placeholder}",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(e)+'">'+n.HTMLescape(e)+"</span>"),default_history_limit:30})),this},renderHistorySettings:function(){var t=this;e.ajax({url:n.getUrl({name:this.url_name,repo_id:this.repo_id}),type:"get",dataType:"json",success:function(e){t.$loadingTip.hide(),e.keep_days<=-1?t.$radios.filter("[value=full_history]").prop("checked",!0):0==e.keep_days?t.$radios.filter("[value=no_history]").prop("checked",!0):(t.$radios.filter("[value=partial_history]").prop("checked",!0),t.$days_input.prop("disabled",!1).removeClass("input-disabled"),t.$days_input.val(e.keep_days)),t.$radios.filter(":checked").trigger("focus"),app.pageOptions.enable_repo_history_setting||(t.$(".history-settings-notice").removeClass("hide"),t.$radios.prop("disabled",!0),t.$days_input.prop("disabled",!0).addClass("input-disabled"),t.$submit.prop("disabled",!0).addClass("btn-disabled"))},error:function(e){var i=n.prepareAjaxErrorMsg(e);t.$error.html(i).show()}})},events:{'change [name="history"]':"changeHistorySetting","submit form":"formSubmit"},changeHistorySetting:function(t){var i=e(t.currentTarget).val(),n=this.$days_input;"full_history"==i||"no_history"==i?n.prop("disabled",!0).addClass("input-disabled"):n.prop("disabled",!1).removeClass("input-disabled")},formSubmit:function(){var t,i=this.$radios.filter(":checked").val(),s=this;return t="partial_history"==i?this.$days_input.val():"full_history"==i?-1:0,this.$submit.prop("disabled",!0),e.ajax({url:n.getUrl({name:this.url_name,repo_id:this.repo_id}),type:"put",dataType:"json",beforeSend:n.prepareCSRFToken,data:{keep_days:t},success:function(){e.modal.close(),n.feedback(gettext("Successfully set library history."),"success")},error:function(e){var t=n.prepareAjaxErrorMsg(e);s.$error.html(t).show(),n.enableButton(s.$submit)}}),!1}})}),define("app/views/widgets/dropdown",["jquery","underscore","backbone","common"],function(e,t,i,n){"use strict";return e(document).on("click",function(e){var t=app.ui.currentDropdown,i=e.target||event.srcElement;return!t||(t.$(".sf-dropdown-menu").is(i)||t.$(".sf-dropdown-menu").find("*").is(i)||(t.hide(),app.ui.currentHighlightedItem&&app.ui.currentHighlightedItem.rmHighlight()),!0)}),e(document).on("keydown",function(e){if(27==e.keyCode){var t=app.ui.currentDropdown;t&&(t.hide(),app.ui.currentHighlightedItem&&app.ui.currentHighlightedItem.rmHighlight())}}),i.View.extend({defaultOptions:{left:"0px"},initialize:function(e){this.$el.on("click",".sf-dropdown-toggle",t.bind(this.toggleDropdown,this)),this.$el.on("keydown",t.bind(this.handleKeydown,this)),this.options={},t.extend(this.options,this.defaultOptions,e)},hide:function(){app.ui.currentDropdown=null,this.$(".sf-dropdown-menu").addClass("hide").removeAttr("style")},show:function(){var t=this.$(".sf-dropdown-toggle"),i=this.$(".sf-dropdown-menu");app.ui.currentDropdown=this,void 0!=this.options.right?i.css("right",this.options.right):i.css("left",this.options.left),t.offset().top+t.outerHeight(!0)+i.outerHeight(!0)>e(window).scrollTop()+e(window).height()&&i.css({bottom:t.outerHeight(!0)+4}),this.$(".sf-dropdown-menu").removeClass("hide")},toggleDropdown:function(){return app.ui.currentDropdown&&app.ui.currentDropdown!=this&&app.ui.currentDropdown.hide(),this.$(".sf-dropdown-menu").is(":hidden")?this.show():this.hide(),!1},handleKeydown:function(t){if(/(38|40)/.test(t.which)){t.preventDefault(),t.stopPropagation();var i=e.makeArray(this.$el.find("li a"));if(i.length){var n=i.indexOf(t.target);38===t.which&&n>0&&n--,40===t.which&&n<i.length-1&&n++,i[n].focus()}}}})}),define("sysadmin-app/views/repo",["jquery","underscore","backbone","common","moment","simplemodal","select2","sysadmin-app/views/share","app/views/dialogs/repo-history-settings","app/views/widgets/hl-item-view","app/views/widgets/dropdown"],function(e,t,i,n,s,a,r,o,d,l,u){"use strict";return l.extend({tagName:"tr",template:t.template(e("#library-item-tmpl").html()),transferTemplate:t.template(e("#library-transfer-form-tmpl").html()),events:{"click .js-repo-share":"share","click .js-popup-history-setting":"popupHistorySetting","click .repo-delete-btn":"deleteLibrary","click .repo-transfer-btn":"transferLibrary"},share:function(){var e={repo_id:this.model.get("id"),repo_name:this.model.get("name")};return new o(e),this.togglePopup(),!1},popupHistorySetting:function(){var e={repo_name:this.model.get("name"),repo_id:this.model.get("id"),url_name:"admin-library-history-limit"};return this.togglePopup(),new d(e),!1},togglePopup:function(){this.dropdown.hide()},initialize:function(){l.prototype.initialize.call(this),this.listenTo(this.model,"change",this.render)},deleteLibrary:function(){var t=this,i=this.model.get("name"),s=gettext("Delete Library"),a=gettext("Are you sure you want to delete %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-library",repo_id:t.model.get("id")}),type:"DELETE",cache:!1,beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove(),n.feedback(gettext("Successfully deleted."),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},transferLibrary:function(){var t=this,i=this.model.get("name"),s=e(this.transferTemplate({title:gettext("Transfer Library {library_name} To").replace("{library_name}",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>")}));return s.modal({focus:!1}),e("#simplemodal-container").css({width:"auto",height:"auto"}),e('[name="email"]',s).select2(e.extend(n.contactInputOptionsForSelect2(),{width:"300px",maximumSelectionSize:1,placeholder:gettext("Search user or enter email and press Enter"),formatSelectionTooBig:gettext("You cannot select any more choices")})),s.on("submit",function(){var i=e.trim(e('[name="email"]',e(this)).val());if(!i)return!1;if(i==t.model.get("owner"))return!1;var a=n.getUrl({name:"admin-library",repo_id:t.model.get("id")}),r=e('[type="submit"]',e(this));return n.disableButton(r),e.ajax({url:a,type:"put",dataType:"json",beforeSend:n.prepareCSRFToken,data:{owner:i},success:function(){e.modal.close(),t.model.set({owner:i}),n.feedback(gettext("Successfully transferred the library."),"success")},error:function(t){var i=n.prepareAjaxErrorMsg(t);e(".error",s).html(i).show(),n.enableButton(r)}}),!1}),!1},render:function(){var e=this.model.toJSON(),t=n.isHiDPI()?48:24,i=this.model.getIconUrl(t),a=s(e.last_accessed);return e.icon_url=i,e.icon_title=this.model.getIconTitle(),e.enable_sys_admin_view_repo=app.pageOptions.enable_sys_admin_view_repo,e.is_pro=app.pageOptions.is_pro,e.time=a.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(a),this.$el.html(this.template(e)),this.dropdown=new u({el:this.$(".sf-dropdown"),right:0}),this}})}),define("sysadmin-app/models/repo",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({getIconUrl:function(e){var t=this.get("encrypted");return i.getLibIconUrl(t,!1,e)},getIconTitle:function(){var e=this.get("encrypted");return i.getLibIconTitle(e,!1)}})}),define("sysadmin-app/collection/repos",["underscore","backbone.paginator","common","sysadmin-app/models/repo"],function(e,t,i,n){"use strict";return Backbone.PageableCollection.extend({model:n,state:{pageSize:100},parseState:function(e){return e.page_info},parseRecords:function(e){return e.repos},url:function(){return i.getUrl({name:"admin-libraries"})}})}),define("sysadmin-app/views/repos",["jquery","underscore","backbone","common","sysadmin-app/views/repo","sysadmin-app/collection/repos"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"libraries",tabNavTemplate:t.template(e("#libraries-tabnav-tmpl").html()),template:t.template(e("#libraries-tmpl").html()),libraryAddFormtemplate:t.template(e("#library-add-form-tmpl").html()),initialize:function(){this.repoCollection=new a,this.listenTo(this.repoCollection,"add",this.addOne),this.listenTo(this.repoCollection,"reset",this.reset),this.render()},render:function(){var t=e(this.tabNavTemplate({cur_tab:"all"}));this.$el.append(t),this.$el.append(this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next")},events:{"click .js-add-library":"addLibrary","click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},addLibrary:function(){var t=e(this.libraryAddFormtemplate()),i=this.repoCollection;return t.modal(),e("#simplemodal-container").css({height:"auto"}),e('[name="library_owner"]',t).select2(e.extend(n.contactInputOptionsForSelect2(),{width:"268px",containerCss:{"margin-bottom":"5px"},maximumSelectionSize:1,placeholder:gettext("Search user or enter email and press Enter"),formatSelectionTooBig:gettext("You cannot select any more choices")})),t.on("submit",function(){var s=e.trim(e('[name="library_name"]',t).val()),a=e.trim(e('[name="library_owner"]',t).val()),r=e(".error",t),o=e('[type="submit"]',t);return s?(r.hide(),n.disableButton(o),i.create({name:s,owner:a},{prepend:!0,wait:!0,success:function(){1==i.length&&i.reset(i.models),n.closeModal()},error:function(e,t,i){var s=n.prepareAjaxErrorMsg(t);r.html(s).show(),n.enableButton(o)}}),!1):(r.html(gettext("Name is required.")).show(),!1)}),!1},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide(),this.$jsNext.hide(),this.$jsPrevious.hide()},getNextPage:function(){this.initPage();var e=this.repoCollection.state.current_page;return this.repoCollection.state.has_next_page&&this.repoCollection.getPage(e+1,{reset:!0}),!1},getPreviousPage:function(){this.initPage();var e=this.repoCollection.state.current_page;return e>1&&this.repoCollection.getPage(e-1,{reset:!0}),!1},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent()},getContent:function(){this.initPage();var e=this;this.repoCollection.fetch({data:{page:this.option.page},cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){e.$loadingTip.hide()}})},reset:function(){var e=this.repoCollection.state.current_page;app.router.navigate("all-libs/?page="+e),this.$loadingTip.hide(),this.repoCollection.length>0?(this.repoCollection.each(this.addOne,this),this.$table.show(),this.renderPaginator()):this.$emptyTip.show()},renderPaginator:function(){this.repoCollection.state.has_next_page?this.$jsNext.show():this.$jsNext.hide(),this.repoCollection.state.current_page>1?this.$jsPrevious.show():this.$jsPrevious.hide()},addOne:function(e,t,i){var n=new s({model:e});i.prepend?this.$tableBody.prepend(n.render().el):this.$tableBody.append(n.render().el)}})}),define("sysadmin-app/collection/search-repos",["underscore","backbone","common","sysadmin-app/models/repo"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,url:function(){return i.getUrl({name:"admin-libraries"})},parse:function(e){return this.search_name=e.name,this.search_owner=e.owner,e.repos}})}),define("sysadmin-app/views/search-repos",["jquery","underscore","backbone","common","sysadmin-app/views/repo","sysadmin-app/collection/search-repos"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"search-libraries",template:t.template(e("#search-libraries-tmpl").html()),initialize:function(){this.repoCollection=new a,this.listenTo(this.repoCollection,"add",this.addOne),this.listenTo(this.repoCollection,"reset",this.reset),this.render()},render:function(){this.$el.append(this.template()),this.$form=this.$("#search-repo-form"),this.$name=e('[name="name"]',this.$form),this.$owner=e('[name="owner"]',this.$form),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips")},events:{"submit #search-repo-form":"formSubmit"},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent(t)},getContent:function(e){this.initPage();var t=this;this.repoCollection.fetch({data:e,cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){t.$loadingTip.hide()}})},reset:function(){var e=this.repoCollection.search_name,t=this.repoCollection.search_owner;app.router.navigate("#search-libs/?name="+encodeURIComponent(e)+"&owner="+encodeURIComponent(t)),this.$name.val(e),this.$owner.val(t),this.$loadingTip.hide(),this.repoCollection.length>0?(this.repoCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show()},addOne:function(e){var t=new s({model:e});this.$tableBody.append(t.render().el)},formSubmit:function(){var t=e.trim(this.$name.val()),i=e.trim(this.$owner.val());return!(!t&&!i)&&(this.getContent({name:t,owner:i}),!1)}})}),define("sysadmin-app/models/system-repo",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({})}),define("sysadmin-app/views/system-repo",["jquery","underscore","backbone","common","sysadmin-app/models/system-repo"],function(e,t,i,n,s){"use strict";return i.View.extend({id:"system-library",tabNavTemplate:t.template(e("#libraries-tabnav-tmpl").html()),template:t.template(e("#system-library-tmpl").html()),itemTemplate:t.template(e("#system-library-item-tmpl").html()),initialize:function(){this.systemRepo=new s,this.render()},render:function(){var t=e(this.tabNavTemplate({cur_tab:"system"}));this.$el.append(t),this.$el.append(this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$error=this.$(".error")},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$error.hide(),this.$loadingTip.show()},showSystemLibrary:function(){this.initPage();var e=this;this.systemRepo.fetch({url:n.getUrl({name:"admin-system-library"}),cache:!1,success:function(t,i,n){e.reset()},error:function(t,i,n){e.$error.html(gettext("Error")).show()}})},hide:function(){this.$el.detach()},show:function(){e("#right-panel").html(this.$el),this.showSystemLibrary()},reset:function(){this.$loadingTip.hide(),this.$error.hide(),this.$tableBody.html(this.itemTemplate(this.systemRepo.toJSON())),this.$table.show()}})}),define("sysadmin-app/views/trash-repo",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#trash-library-item-tmpl").html()),events:{"click .repo-delete-btn":"deleteTrashLibrary","click .repo-restore-btn":"restoreTrashLibrary"},initialize:function(){a.prototype.initialize.call(this)},deleteTrashLibrary:function(){var t=this,i=this.model.get("name"),s=gettext("Delete Library"),a=gettext("Are you sure you want to delete %s completely?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-trash-library",repo_id:t.model.get("id")}),type:"DELETE",beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove(),n.feedback(gettext("Success"),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},restoreTrashLibrary:function(){var t=this,i=this.model.get("name"),s=gettext("Restore Library"),a=gettext("Are you sure you want to restore %s?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-trash-library",repo_id:t.model.get("id")}),type:"PUT",beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove(),n.feedback(gettext("Success"),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},render:function(){var e=this.model.toJSON(),t=n.isHiDPI()?48:24,i=this.model.getIconUrl(t),a=s(e.delete_time);return e.icon_url=i,e.icon_title=this.model.getIconTitle(),e.time=a.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(a),this.$el.html(this.template(e)),this}})}),define("sysadmin-app/models/trash-repo",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({getIconUrl:function(e){return i.getLibIconUrl(!1,!1,e)},getIconTitle:function(){return gettext("Read-Write library")}})}),define("sysadmin-app/collection/trash-repos",["underscore","backbone.paginator","common","sysadmin-app/models/trash-repo"],function(e,t,i,n){"use strict";return Backbone.PageableCollection.extend({model:n,url:function(){return i.getUrl({name:"admin-trash-libraries"})},state:{pageSize:100},parseState:function(e){return e.page_info},parseRecords:function(e){return e.repos}})}),define("sysadmin-app/views/trash-repos",["jquery","underscore","backbone","common","moment","sysadmin-app/views/trash-repo","sysadmin-app/collection/trash-repos"],function(e,t,i,n,s,a,r){"use strict";return i.View.extend({id:"trash-libraries",tabNavTemplate:t.template(e("#libraries-tabnav-tmpl").html()),template:t.template(e("#trash-libraries-tmpl").html()),initialize:function(){this.trashRepoCollection=new r,this.listenTo(this.trashRepoCollection,"add",this.addOne),this.listenTo(this.trashRepoCollection,"reset",this.reset),this.render()},render:function(){this.$el.html(this.tabNavTemplate({cur_tab:"trash"})+this.template()),this.$tip=this.$(".tip"),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$cleanBtn=this.$(".js-clean"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next")},events:{"click .js-clean":"cleanTrashLibraries","click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},cleanTrashLibraries:function(){var t=this,i=gettext("Clear Trash"),s=gettext("Are you sure you want to clear trash?"),a=function(){e.ajax({url:n.getUrl({name:"admin-trash-libraries"}),type:"DELETE",beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$cleanBtn.hide(),t.$tip.hide(),t.$table.hide(),t.$jsNext.hide(),t.$jsPrevious.hide(),t.$emptyTip.show(),n.feedback(gettext("Success"),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};n.showConfirm(i,s,a)},getNextPage:function(){this.initPage();var e=this.trashRepoCollection.state.current_page;return this.trashRepoCollection.state.has_next_page&&this.trashRepoCollection.getPage(e+1,{reset:!0}),!1},getPreviousPage:function(){this.initPage();var e=this.trashRepoCollection.state.current_page;return e>1&&this.trashRepoCollection.getPage(e-1,{reset:!0}),!1},initPage:function(){this.$tip.hide(),this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide(),this.$cleanBtn.hide(),this.$jsNext.hide(),this.$jsPrevious.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.showTrashLibraries()},showTrashLibraries:function(){this.initPage();this.trashRepoCollection.fetch({data:{page:this.option.page},cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){var e=this.trashRepoCollection.state.current_page;app.router.navigate("trash-libs/?page="+e),this.$loadingTip.hide(),this.trashRepoCollection.length>0?(this.trashRepoCollection.each(this.addOne,this),this.$cleanBtn.show(),this.$tip.show(),this.$table.show(),this.renderPaginator()):(this.$emptyTip.show(),this.$cleanBtn.hide())},renderPaginator:function(){this.trashRepoCollection.state.has_next_page?this.$jsNext.show():this.$jsNext.hide(),this.trashRepoCollection.state.current_page>1?this.$jsPrevious.show():this.$jsPrevious.hide()},addOne:function(e){var t=new a({model:e});this.$tableBody.append(t.render().el)}})}),define("sysadmin-app/collection/search-trash-repos",["underscore","backbone","common","sysadmin-app/models/trash-repo"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,url:function(){return i.getUrl({name:"admin-trash-libraries"})},parse:function(e){return this.search_owner=e.search_owner,e.repos}})}),define("sysadmin-app/views/search-trash-repos",["jquery","underscore","backbone","common","moment","sysadmin-app/views/trash-repo","sysadmin-app/collection/search-trash-repos"],function(e,t,i,n,s,a,r){"use strict";return i.View.extend({id:"trash-libraries",tabNavTemplate:t.template(e("#libraries-tabnav-tmpl").html()),template:t.template(e("#trash-libraries-tmpl").html()),initialize:function(){this.trashRepoCollection=new r,this.listenTo(this.trashRepoCollection,"add",this.addOne),this.listenTo(this.trashRepoCollection,"reset",this.reset),this.render()},render:function(){this.$el.html(this.tabNavTemplate({cur_tab:"trash"})+this.template()),this.$tip=this.$(".tip"),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$cleanBtn=this.$(".js-clean")},events:{"click .js-clean":"cleanTrashLibraries"},cleanTrashLibraries:function(){var t=this,i=this.trashRepoCollection.search_owner,s=gettext("Delete Library By Owner"),a=gettext("Are you sure you want to delete all %s's libraries?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-trash-libraries"}),type:"DELETE",data:{owner:i},beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$cleanBtn.hide(),t.$tip.hide(),t.$table.hide(),t.$emptyTip.show(),n.feedback(gettext("Success"),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};n.showConfirm(s,a,r)},initPage:function(){this.$tip.hide(),this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide(),this.$cleanBtn.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.showTrashLibraries()},showTrashLibraries:function(){this.initPage();var e=this;this.trashRepoCollection.fetch({data:{owner:this.option.owner},cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){e.$loadingTip.hide()}})},reset:function(){var e=this.trashRepoCollection.length;this.$loadingTip.hide(),e>0?(this.trashRepoCollection.each(this.addOne,this),this.$cleanBtn.show(),this.$tip.show(),this.$table.show()):(this.$emptyTip.show(),this.$cleanBtn.hide())},addOne:function(e){var t=new a({model:e});this.$tableBody.append(t.render().el)}})}),function(e){"use strict"
;"function"==typeof define&&define.amd?define("jquery.iframe-transport",["jquery"],e):e("object"==typeof exports?require("jquery"):window.jQuery)}(function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(i){if(i.async){var n,s,a,r=i.initialIframeSrc||"javascript:false;";return{send:function(o,d){n=e('<form style="display:none;"></form>'),n.attr("accept-charset",i.formAcceptCharset),a=/\?/.test(i.url)?"&":"?","DELETE"===i.type?(i.url=i.url+a+"_method=DELETE",i.type="POST"):"PUT"===i.type?(i.url=i.url+a+"_method=PUT",i.type="POST"):"PATCH"===i.type&&(i.url=i.url+a+"_method=PATCH",i.type="POST"),t+=1,s=e('<iframe src="'+r+'" name="iframe-transport-'+t+'"></iframe>').bind("load",function(){var t,a=e.isArray(i.paramName)?i.paramName:[i.paramName];s.unbind("load").bind("load",function(){var t;try{if(t=s.contents(),!t.length||!t[0].firstChild)throw new Error}catch(e){t=void 0}d(200,"success",{iframe:t}),e('<iframe src="'+r+'"></iframe>').appendTo(n),window.setTimeout(function(){n.remove()},0)}),n.prop("target",s.prop("name")).prop("action",i.url).prop("method",i.type),i.formData&&e.each(i.formData,function(t,i){e('<input type="hidden"/>').prop("name",i.name).val(i.value).appendTo(n)}),i.fileInput&&i.fileInput.length&&"POST"===i.type&&(t=i.fileInput.clone(),i.fileInput.after(function(e){return t[e]}),i.paramName&&i.fileInput.each(function(t){e(this).prop("name",a[t]||i.paramName)}),n.append(i.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),i.fileInput.removeAttr("form")),n.submit(),t&&t.length&&i.fileInput.each(function(i,n){var s=e(t[i]);e(n).prop("name",s.prop("name")).attr("form",s.attr("form")),s.replaceWith(n)})}),n.append(s).appendTo(document.body)},abort:function(){s&&s.unbind("load").prop("src",r),n&&n.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe xml":function(t){var i=t&&t[0];return i&&e.isXMLDoc(i)?i:e.parseXML(i.XMLDocument&&i.XMLDocument.xml||e(i.body).html())},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})}),function(e){"use strict";var t=function(e,i){var n=/[^\w\-\.:]/.test(e)?new Function(t.arg+",tmpl","var _e=tmpl.encode"+t.helper+",_s='"+e.replace(t.regexp,t.func)+"';return _s;"):t.cache[e]=t.cache[e]||t(t.load(e));return i?n(i,t):function(e){return n(e,t)}};t.cache={},t.load=function(e){return document.getElementById(e).innerHTML},t.regexp=/([\s'\\])(?![^%]*%\})|(?:\{%(=|#)([\s\S]+?)%\})|(\{%)|(%\})/g,t.func=function(e,t,i,n,s,a){return t?{"\n":"\\n","\r":"\\r","\t":"\\t"," ":" "}[e]||"\\"+e:i?"="===i?"'+_e("+n+")+'":"'+("+n+"||'')+'":s?"';":a?"_s+='":void 0},t.encReg=/[<>&"'\x00]/g,t.encMap={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;"},t.encode=function(e){return String(e||"").replace(t.encReg,function(e){return t.encMap[e]||""})},t.arg="o",t.helper=",print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=tmpl(s,d);}","function"==typeof define&&define.amd?define("tmpl",[],function(){return t}):e.tmpl=t}(this),function(e){"function"==typeof define&&define.amd?define("jquery.ui.widget",["jquery"],e):e(jQuery)}(function(e){var t=0,i=Array.prototype.slice;e.cleanData=function(t){return function(i){var n,s,a;for(a=0;null!=(s=i[a]);a++)try{n=e._data(s,"events"),n&&n.remove&&e(s).triggerHandler("remove")}catch(e){}t(i)}}(e.cleanData),e.widget=function(t,i,n){var s,a,r,o,d={},l=t.split(".")[0];return t=t.split(".")[1],s=l+"-"+t,n||(n=i,i=e.Widget),e.expr[":"][s.toLowerCase()]=function(t){return!!e.data(t,s)},e[l]=e[l]||{},a=e[l][t],r=e[l][t]=function(e,t){if(!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,a,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),o=new i,o.options=e.widget.extend({},o.options),e.each(n,function(t,n){if(!e.isFunction(n))return void(d[t]=n);d[t]=function(){var e=function(){return i.prototype[t].apply(this,arguments)},s=function(e){return i.prototype[t].apply(this,e)};return function(){var t,i=this._super,a=this._superApply;return this._super=e,this._superApply=s,t=n.apply(this,arguments),this._super=i,this._superApply=a,t}}()}),r.prototype=e.widget.extend(o,{widgetEventPrefix:a?o.widgetEventPrefix||t:t},d,{constructor:r,namespace:l,widgetName:t,widgetFullName:s}),a?(e.each(a._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete a._childConstructors):i._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var n,s,a=i.call(arguments,1),r=0,o=a.length;r<o;r++)for(n in a[r])s=a[r][n],a[r].hasOwnProperty(n)&&void 0!==s&&(e.isPlainObject(s)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],s):e.widget.extend({},s):t[n]=s);return t},e.widget.bridge=function(t,n){var s=n.prototype.widgetFullName||t;e.fn[t]=function(a){var r="string"==typeof a,o=i.call(arguments,1),d=this;return a=!r&&o.length?e.widget.extend.apply(null,[a].concat(o)):a,r?this.each(function(){var i,n=e.data(this,s);return"instance"===a?(d=n,!1):n?e.isFunction(n[a])&&"_"!==a.charAt(0)?(i=n[a].apply(n,o),i!==n&&void 0!==i?(d=i&&i.jquery?d.pushStack(i.get()):i,!1):void 0):e.error("no such method '"+a+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+a+"'")}):this.each(function(){var t=e.data(this,s);t?(t.option(a||{}),t._init&&t._init()):e.data(this,s,new n(a,this))}),d}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(i,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=t++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),i),this.bindings=e(),this.hoverable=e(),this.focusable=e(),n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},n=t.split("."),t=n.shift(),n.length){for(s=r[t]=e.widget.extend({},this.options[t]),a=0;a<n.length-1;a++)s[n[a]]=s[n[a]]||{},s=s[n[a]];if(t=n.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(t,i,n){var s,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,function(n,r){function o(){if(t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?a[r]:r).apply(a,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var d=n.match(/^([\w:-]*)\s*(.*)$/),l=d[1]+a.eventNamespace,u=d[2];u?s.delegate(u,l,o):i.bind(l,o)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,i,n){var s,a,r=this.options[t];if(n=n||{},i=e.Event(i),i.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,n),!(e.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,s,a){"string"==typeof s&&(s={effect:s});var r,o=s?!0===s||"number"==typeof s?i:s.effect||i:t;s=s||{},"number"==typeof s&&(s={duration:s}),r=!e.isEmptyObject(s),s.complete=a,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,a):n.queue(function(i){e(this)[t](),a&&a.call(n[0]),i()})}});e.widget}),function(e){"use strict";"function"==typeof define&&define.amd?define("jquery.fileupload",["jquery","jquery.ui.widget"],e):"object"==typeof exports?e(require("jquery"),require("./vendor/jquery.ui.widget")):e(window.jQuery)}(function(e){"use strict";function t(t){var i="dragover"===t;return function(n){n.dataTransfer=n.originalEvent&&n.originalEvent.dataTransfer;var s=n.dataTransfer;s&&-1!==e.inArray("Files",s.types)&&!1!==this._trigger(t,e.Event(t,{delegatedEvent:n}))&&(n.preventDefault(),i&&(s.dropEffect="copy"))}}e.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||e('<input type="file">').prop("disabled")),e.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:void 0,fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,i){return t=this.messages[t]||t.toString(),i&&e.each(i,function(e,i){t=t.replace("{"+e+"}",i)}),t},formData:function(e){return e.serializeArray()},add:function(t,i){if(t.isDefaultPrevented())return!1;(i.autoUpload||!1!==i.autoUpload&&e(this).fileupload("option","autoUpload"))&&i.process().done(function(){i.submit()})},processData:!1,contentType:!1,cache:!1,timeout:0},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:e.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,i){var n=e-this.timestamp;return(!this.bitrate||!i||n>i)&&(this.bitrate=(t-this.loaded)*(1e3/n)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var i;return"function"===e.type(t.formData)?t.formData(t.form):e.isArray(t.formData)?t.formData:"object"===e.type(t.formData)?(i=[],e.each(t.formData,function(e,t){i.push({name:e,value:t})}),i):[]},_getTotal:function(t){var i=0;return e.each(t,function(e,t){i+=t.size||1}),i},_initProgressObject:function(t){var i={loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,i):t._progress=i},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(t,i){if(t.lengthComputable){var n,s=Date.now?Date.now():(new Date).getTime();if(i._time&&i.progressInterval&&s-i._time<i.progressInterval&&t.loaded!==t.total)return;i._time=s,n=Math.floor(t.loaded/t.total*(i.chunkSize||i._progress.total))+(i.uploadedBytes||0),this._progress.loaded+=n-i._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(s,this._progress.loaded,i.bitrateInterval),i._progress.loaded=i.loaded=n,i._progress.bitrate=i.bitrate=i._bitrateTimer.getBitrate(s,n,i.bitrateInterval),this._trigger("progress",e.Event("progress",{delegatedEvent:t}),i),this._trigger("progressall",e.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var i=this,n=t.xhr?t.xhr():e.ajaxSettings.xhr();n.upload&&(e(n.upload).bind("progress",function(e){var n=e.originalEvent;e.lengthComputable=n.lengthComputable,e.loaded=n.loaded,e.total=n.total,i._onProgress(e,t)}),t.xhr=function(){return n})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_initXHRData:function(t){var i,n=this,s=t.files[0],a=t.multipart||!e.support.xhrFileUpload,r="array"===e.type(t.paramName)?t.paramName[0]:t.paramName;t.headers=e.extend({},t.headers),t.contentRange&&(t.headers["Content-Range"]=t.contentRange),a&&!t.blob&&this._isInstanceOf("File",s)||(t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(s.name)+'"'),a?e.support.xhrFormDataFileUpload&&(t.postMessage?(i=this._getFormData(t),t.blob?i.push({name:r,value:t.blob}):e.each(t.files,function(n,s){i.push({name:"array"===e.type(t.paramName)&&t.paramName[n]||r,value:s})})):(n._isInstanceOf("FormData",t.formData)?i=t.formData:(i=new FormData,e.each(this._getFormData(t),function(e,t){i.append(t.name,t.value)})),t.blob?i.append(r,t.blob,s.name):e.each(t.files,function(s,a){(n._isInstanceOf("File",a)||n._isInstanceOf("Blob",a))&&i.append("array"===e.type(t.paramName)&&t.paramName[s]||r,a,a.uploadName||a.name)})),t.data=i):(t.contentType=s.type||"application/octet-stream",t.data=t.blob||s),t.blob=null},_initIframeSettings:function(t){var i=e("<a></a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&i&&i!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(t){var i=e(t.fileInput),n=t.paramName;return n?e.isArray(n)||(n=[n]):(n=[],i.each(function(){for(var t=e(this),i=t.prop("name")||"files[]",s=(t.prop("files")||[1]).length;s;)n.push(i),s-=1}),n.length||(n=[i.prop("name")||"files[]"])),n},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||"string"===e.type(t.form.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&"PATCH"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var i=e.extend({},this.options,t);return this._initFormSettings(i),this._initDataSettings(i),i},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,i,n){var s=e.Deferred(),a=s.promise();return i=i||this.options.context||a,!0===t?s.resolveWith(i,n):!1===t&&s.rejectWith(i,n),a.abort=s.promise,this._enhancePromise(a)},_addConvenienceMethods:function(t,i){var n=this,s=function(t){return e.Deferred().resolveWith(n,t).promise()};i.process=function(t,a){return(t||a)&&(i._processQueue=this._processQueue=(this._processQueue||s([this])).then(function(){return i.errorThrown?e.Deferred().rejectWith(n,[i]).promise():s(arguments)}).then(t,a)),this._processQueue||s([this])},i.submit=function(){return"pending"!==this.state()&&(i.jqXHR=this.jqXHR=!1!==n._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)&&n._onSend(t,this)),this.jqXHR||n._getXHRPromise()},i.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",n._trigger("fail",null,this),n._getXHRPromise(!1))},i.state=function(){return this.jqXHR?n._getDeferredState(this.jqXHR):this._processQueue?n._getDeferredState(this._processQueue):void 0},i.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===n._getDeferredState(this._processQueue)},i.progress=function(){return this._progress},i.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),i=t&&t.split("-"),n=i&&i.length>1&&parseInt(i[1],10);return n&&n+1},_chunkedUpload:function(t,i){t.uploadedBytes=t.uploadedBytes||0;var n,s,a=this,r=t.files[0],o=r.size,d=t.uploadedBytes,l=t.maxChunkSize||o,u=this._blobSlice,c=e.Deferred(),h=c.promise();return!(!(this._isXHRUpload(t)&&u&&(d||l<o))||t.data)&&(!!i||(d>=o?(r.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",r.error])):(s=function(){var i=e.extend({},t),h=i._progress.loaded;i.blob=u.call(r,d,d+l,r.type),i.chunkSize=i.blob.size,i.contentRange="bytes "+d+"-"+(d+i.chunkSize-1)+"/"+o,a._initXHRData(i),a._initProgressListener(i),n=(!1!==a._trigger("chunksend",null,i)&&e.ajax(i)||a._getXHRPromise(!1,i.context)).done(function(n,r,l){d=a._getUploadedBytes(l)||d+i.chunkSize,h+i.chunkSize-i._progress.loaded&&a._onProgress(e.Event("progress",{lengthComputable:!0,loaded:d-i.uploadedBytes,total:d-i.uploadedBytes}),i),t.uploadedBytes=i.uploadedBytes=d,i.result=n,i.textStatus=r,i.jqXHR=l,a._trigger("chunkdone",null,i),a._trigger("chunkalways",null,i),d<o?s():c.resolveWith(i.context,[n,r,l])}).fail(function(e,t,n){i.jqXHR=e,i.textStatus=t,i.errorThrown=n,a._trigger("chunkfail",null,i),a._trigger("chunkalways",null,i),c.rejectWith(i.context,[e,t,n])})},this._enhancePromise(h),h.abort=function(){return n.abort()},s(),h)))},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(t),this._initProgressObject(t),t._progress.loaded=t.loaded=t.uploadedBytes||0,t._progress.total=t.total=this._getTotal(t.files)||1,t._progress.bitrate=t.bitrate=0,this._active+=1,this._progress.loaded+=t.loaded,this._progress.total+=t.total},_onDone:function(t,i,n,s){var a=s._progress.total,r=s._response;s._progress.loaded<a&&this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:a,total:a}),s),r.result=s.result=t,r.textStatus=s.textStatus=i,r.jqXHR=s.jqXHR=n,this._trigger("done",null,s)},_onFail:function(e,t,i,n){var s=n._response;n.recalculateProgress&&(this._progress.loaded-=n._progress.loaded,this._progress.total-=n._progress.total),s.jqXHR=n.jqXHR=e,s.textStatus=n.textStatus=t,s.errorThrown=n.errorThrown=i,this._trigger("fail",null,n)},_onAlways:function(e,t,i,n){this._trigger("always",null,n)},_onSend:function(t,i){i.submit||this._addConvenienceMethods(t,i);var n,s,a,r,o=this,d=o._getAJAXSettings(i),l=function(){return o._sending+=1,d._bitrateTimer=new o._BitrateTimer,n=n||((s||!1===o._trigger("send",e.Event("send",{delegatedEvent:t}),d))&&o._getXHRPromise(!1,d.context,s)||o._chunkedUpload(d)||e.ajax(d)).done(function(e,t,i){o._onDone(e,t,i,d)}).fail(function(e,t,i){o._onFail(e,t,i,d)}).always(function(e,t,i){if(o._onAlways(e,t,i,d),o._sending-=1,o._active-=1,d.limitConcurrentUploads&&d.limitConcurrentUploads>o._sending)for(var n=o._slots.shift();n;){if("pending"===o._getDeferredState(n)){n.resolve();break}n=o._slots.shift()}0===o._active&&o._trigger("stop")})};return this._beforeSend(t,d),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(a=e.Deferred(),this._slots.push(a),r=a.then(l)):(this._sequence=this._sequence.then(l,l),r=this._sequence),r.abort=function(){return s=[void 0,"abort","abort"],n?n.abort():(a&&a.rejectWith(d.context,s),l())},this._enhancePromise(r)):l()},_onAdd:function(t,i){var n,s,a,r,o=this,d=!0,l=e.extend({},this.options,i),u=i.files,c=u.length,h=l.limitMultiFileUploads,p=l.limitMultiFileUploadSize,m=l.limitMultiFileUploadSizeOverhead,_=0,f=this._getParamName(l),g=0;if(!c)return!1;if(p&&void 0===u[0].size&&(p=void 0),(l.singleFileUploads||h||p)&&this._isXHRUpload(l))if(l.singleFileUploads||p||!h)if(!l.singleFileUploads&&p)for(a=[],n=[],r=0;r<c;r+=1)_+=u[r].size+m,(r+1===c||_+u[r+1].size+m>p||h&&r+1-g>=h)&&(a.push(u.slice(g,r+1)),s=f.slice(g,r+1),s.length||(s=f),n.push(s),g=r+1,_=0);else n=f;else for(a=[],n=[],r=0;r<c;r+=h)a.push(u.slice(r,r+h)),s=f.slice(r,r+h),s.length||(s=f),n.push(s);else a=[u],n=[f];return i.originalFiles=u,e.each(a||u,function(s,r){var l=e.extend({},i);return l.files=a?r:[r],l.paramName=n[s],o._initResponseObject(l),o._initProgressObject(l),o._addConvenienceMethods(t,l),d=o._trigger("add",e.Event("add",{delegatedEvent:t}),l)}),d},_replaceFileInput:function(t){var i=t.fileInput,n=i.clone(!0),s=i.is(document.activeElement);t.fileInputClone=n,e("<form></form>").append(n)[0].reset(),i.after(n).detach(),s&&n.focus(),e.cleanData(i.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,t){return t===i[0]?n[0]:t}),i[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(t,i){var n,s=this,a=e.Deferred(),r=function(e){e&&!e.entry&&(e.entry=t),a.resolve([e])},o=function(e){s._handleFileTreeEntries(e,i+t.name+"/").done(function(e){a.resolve(e)}).fail(r)},d=function(){n.readEntries(function(e){e.length?(l=l.concat(e),d()):o(l)},r)},l=[];return i=i||"",t.isFile?t._file?(t._file.relativePath=i,a.resolve(t._file)):t.file(function(e){e.relativePath=i,a.resolve(e)},r):t.isDirectory?(n=t.createReader(),d()):a.resolve([]),a.promise()},_handleFileTreeEntries:function(t,i){var n=this;return e.when.apply(e,e.map(t,function(e){return n._handleFileTreeEntry(e,i)})).then(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var i=t.items;return i&&i.length&&(i[0].webkitGetAsEntry||i[0].getAsEntry)?this._handleFileTreeEntries(e.map(i,function(e){var t;return e.webkitGetAsEntry?(t=e.webkitGetAsEntry(),t&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=e(t);var i,n,s=t.prop("webkitEntries")||t.prop("entries");if(s&&s.length)return this._handleFileTreeEntries(s);if(i=e.makeArray(t.prop("files")),i.length)void 0===i[0].name&&i[0].fileName&&e.each(i,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(!(n=t.prop("value")))return e.Deferred().resolve([]).promise();i=[{name:n.replace(/^.*\\/,"")}]}return e.Deferred().resolve(i).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).then(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var i=this,n={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(n.fileInput).always(function(s){n.files=s,i.options.replaceFileInput&&i._replaceFileInput(n),!1!==i._trigger("change",e.Event("change",{delegatedEvent:t}),n)&&i._onAdd(t,n)})},_onPaste:function(t){var i=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,n={files:[]};i&&i.length&&(e.each(i,function(e,t){var i=t.getAsFile&&t.getAsFile();i&&n.files.push(i)}),!1!==this._trigger("paste",e.Event("paste",{delegatedEvent:t}),n)&&this._onAdd(t,n))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var i=this,n=t.dataTransfer,s={};n&&n.files&&n.files.length&&(t.preventDefault(),this._getDroppedFiles(n).always(function(n){s.files=n,!1!==i._trigger("drop",e.Event("drop",{delegatedEvent:t}),s)&&i._onAdd(t,s)}))},_onDragOver:t("dragover"),_onDragEnter:t("dragenter"),_onDragLeave:t("dragleave"),_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop,dragenter:this._onDragEnter,dragleave:this._onDragLeave}),this._on(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragenter dragleave dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,i){var n=-1!==e.inArray(t,this._specialOptions);n&&this._destroyEventHandlers(),this._super(t,i),n&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_getRegExp:function(e){var t=e.split("/"),i=t.pop();return t.shift(),new RegExp(t.join("/"),i)},_isRegExpOption:function(t,i){return"url"!==t&&"string"===e.type(i)&&/^\/.*\/[igm]{0,3}$/.test(i)},_initDataAttributes:function(){var t=this,i=this.options,n=this.element.data();e.each(this.element[0].attributes,function(e,s){var a,r=s.name.toLowerCase();/^data-/.test(r)&&(r=r.slice(5).replace(/-[a-z]/g,function(e){return e.charAt(1).toUpperCase()}),a=n[r],t._isRegExpOption(r,a)&&(a=t._getRegExp(a)),i[r]=a)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var i=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,i._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var i,n,s=this,a=e.Deferred(),r=a.promise();return r.abort=function(){return n=!0,i?i.abort():(a.reject(null,"abort","abort"),r)},this._getFileInputFiles(t.fileInput).always(function(e){if(!n){if(!e.length)return void a.reject();t.files=e,i=s._onSend(null,t),i.then(function(e,t,i){a.resolve(e,t,i)},function(e,t,i){a.reject(e,t,i)})}}),this._enhancePromise(r)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(e){"use strict";"function"==typeof define&&define.amd?define("jquery.fileupload-process",["jquery","./jquery.fileupload"],e):e("object"==typeof exports?require("jquery"):window.jQuery)}(function(e){"use strict";var t=e.blueimp.fileupload.prototype.options.add;e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{processQueue:[],add:function(i,n){var s=e(this);n.process(function(){return s.fileupload("process",n)}),t.call(this,i,n)}},processActions:{},_processFile:function(t,i){var n=this,s=e.Deferred().resolveWith(n,[t]),a=s.promise();return this._trigger("process",null,t),e.each(t.processQueue,function(t,s){var r=function(t){return i.errorThrown?e.Deferred().rejectWith(n,[i]).promise():n.processActions[s.action].call(n,t,s)};a=a.then(r,s.always&&r)}),a.done(function(){n._trigger("processdone",null,t),n._trigger("processalways",null,t)}).fail(function(){n._trigger("processfail",null,t),n._trigger("processalways",null,t)}),a},_transformProcessQueue:function(t){var i=[];e.each(t.processQueue,function(){var n={},s=this.action,a=!0===this.prefix?s:this.prefix;e.each(this,function(i,s){"string"===e.type(s)&&"@"===s.charAt(0)?n[i]=t[s.slice(1)||(a?a+i.charAt(0).toUpperCase()+i.slice(1):i)]:n[i]=s}),i.push(n)}),t.processQueue=i},processing:function(){return this._processing},process:function(t){var i=this,n=e.extend({},this.options,t);return n.processQueue&&n.processQueue.length&&(this._transformProcessQueue(n),0===this._processing&&this._trigger("processstart"),e.each(t.files,function(s){var a=s?e.extend({},n):n,r=function(){return t.errorThrown?e.Deferred().rejectWith(i,[t]).promise():i._processFile(a,t)};a.index=s,i._processing+=1,i._processingQueue=i._processingQueue.then(r,r).always(function(){i._processing-=1,0===i._processing&&i._trigger("processstop")})})),this._processingQueue},_create:function(){this._super(),this._processing=0,this._processingQueue=e.Deferred().resolveWith(this).promise()}})}),function(e){"use strict";"function"==typeof define&&define.amd?define("jquery.fileupload-validate",["jquery","./jquery.fileupload-process"],e):e("object"==typeof exports?require("jquery"):window.jQuery)}(function(e){"use strict";e.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{getNumberOfFiles:e.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(t,i){if(i.disabled)return t;var n,s=e.Deferred(),a=this.options,r=t.files[t.index];return(i.minFileSize||i.maxFileSize)&&(n=r.size),"number"===e.type(i.maxNumberOfFiles)&&(a.getNumberOfFiles()||0)+t.files.length>i.maxNumberOfFiles?r.error=a.i18n("maxNumberOfFiles"):!i.acceptFileTypes||i.acceptFileTypes.test(r.type)||i.acceptFileTypes.test(r.name)?n>i.maxFileSize?r.error=a.i18n("maxFileSize"):"number"===e.type(n)&&n<i.minFileSize?r.error=a.i18n("minFileSize"):delete r.error:r.error=a.i18n("acceptFileTypes"),r.error||t.files.error?(t.files.error=!0,s.rejectWith(this,[t])):s.resolveWith(this,[t]),s.promise()}}})}),function(e){"use strict";"function"==typeof define&&define.amd?define("jquery.fileupload-ui",["jquery","tmpl","./jquery.fileupload-validate"],e):"object"==typeof exports?e(require("jquery"),require("tmpl")):e(window.jQuery,window.tmpl)}(function(e,t){"use strict";e.blueimp.fileupload.prototype._specialOptions.push("filesContainer","uploadTemplateId","downloadTemplateId"),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{autoUpload:!1,uploadTemplateId:"template-upload",downloadTemplateId:"template-download",filesContainer:void 0,prependFiles:!1,dataType:"json",messages:{unknownError:"Unknown error"},getNumberOfFiles:function(){return this.filesContainer.children().not(".processing").length},getFilesFromResponse:function(t){return t.result&&e.isArray(t.result.files)?t.result.files:[]},add:function(t,i){if(t.isDefaultPrevented())return!1;var n=e(this),s=n.data("blueimp-fileupload")||n.data("fileupload"),a=s.options
;i.context=s._renderUpload(i.files).data("data",i).addClass("processing"),a.filesContainer[a.prependFiles?"prepend":"append"](i.context),s._forceReflow(i.context),s._transition(i.context),i.process(function(){return n.fileupload("process",i)}).always(function(){i.context.each(function(t){e(this).find(".size").text(s._formatFileSize(i.files[t].size))}).removeClass("processing"),s._renderPreviews(i)}).done(function(){i.context.find(".start").prop("disabled",!1),!1!==s._trigger("added",t,i)&&(a.autoUpload||i.autoUpload)&&!1!==i.autoUpload&&i.submit()}).fail(function(){i.files.error&&i.context.each(function(t){var n=i.files[t].error;n&&e(this).find(".error").text(n)})})},send:function(t,i){if(t.isDefaultPrevented())return!1;var n=e(this).data("blueimp-fileupload")||e(this).data("fileupload");return i.context&&i.dataType&&"iframe"===i.dataType.substr(0,6)&&i.context.find(".progress").addClass(!e.support.transition&&"progress-animated").attr("aria-valuenow",100).children().first().css("width","100%"),n._trigger("sent",t,i)},done:function(t,i){if(t.isDefaultPrevented())return!1;var n,s,a=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),r=i.getFilesFromResponse||a.options.getFilesFromResponse,o=r(i);i.context?i.context.each(function(r){var d=o[r]||{error:"Empty file upload result"};s=a._addFinishedDeferreds(),a._transition(e(this)).done(function(){var r=e(this);n=a._renderDownload([d]).replaceAll(r),a._forceReflow(n),a._transition(n).done(function(){i.context=e(this),a._trigger("completed",t,i),a._trigger("finished",t,i),s.resolve()})})}):(n=a._renderDownload(o)[a.options.prependFiles?"prependTo":"appendTo"](a.options.filesContainer),a._forceReflow(n),s=a._addFinishedDeferreds(),a._transition(n).done(function(){i.context=e(this),a._trigger("completed",t,i),a._trigger("finished",t,i),s.resolve()}))},fail:function(t,i){if(t.isDefaultPrevented())return!1;var n,s,a=e(this).data("blueimp-fileupload")||e(this).data("fileupload");i.context?i.context.each(function(r){if("abort"!==i.errorThrown){var o=i.files[r];o.error=o.error||i.errorThrown||i.i18n("unknownError"),s=a._addFinishedDeferreds(),a._transition(e(this)).done(function(){var r=e(this);n=a._renderDownload([o]).replaceAll(r),a._forceReflow(n),a._transition(n).done(function(){i.context=e(this),a._trigger("failed",t,i),a._trigger("finished",t,i),s.resolve()})})}else s=a._addFinishedDeferreds(),a._transition(e(this)).done(function(){e(this).remove(),a._trigger("failed",t,i),a._trigger("finished",t,i),s.resolve()})}):"abort"!==i.errorThrown?(i.context=a._renderUpload(i.files)[a.options.prependFiles?"prependTo":"appendTo"](a.options.filesContainer).data("data",i),a._forceReflow(i.context),s=a._addFinishedDeferreds(),a._transition(i.context).done(function(){i.context=e(this),a._trigger("failed",t,i),a._trigger("finished",t,i),s.resolve()})):(a._trigger("failed",t,i),a._trigger("finished",t,i),a._addFinishedDeferreds().resolve())},progress:function(t,i){if(t.isDefaultPrevented())return!1;var n=Math.floor(i.loaded/i.total*100);i.context&&i.context.each(function(){e(this).find(".progress").attr("aria-valuenow",n).children().first().css("width",n+"%")})},progressall:function(t,i){if(t.isDefaultPrevented())return!1;var n=e(this),s=Math.floor(i.loaded/i.total*100),a=n.find(".fileupload-progress"),r=a.find(".progress-extended");r.length&&r.html((n.data("blueimp-fileupload")||n.data("fileupload"))._renderExtendedProgress(i)),a.find(".progress").attr("aria-valuenow",s).children().first().css("width",s+"%")},start:function(t){if(t.isDefaultPrevented())return!1;var i=e(this).data("blueimp-fileupload")||e(this).data("fileupload");i._resetFinishedDeferreds(),i._transition(e(this).find(".fileupload-progress")).done(function(){i._trigger("started",t)})},stop:function(t){if(t.isDefaultPrevented())return!1;var i=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),n=i._addFinishedDeferreds();e.when.apply(e,i._getFinishedDeferreds()).done(function(){i._trigger("stopped",t)}),i._transition(e(this).find(".fileupload-progress")).done(function(){e(this).find(".progress").attr("aria-valuenow","0").children().first().css("width","0%"),e(this).find(".progress-extended").html("&nbsp;"),n.resolve()})},processstart:function(t){if(t.isDefaultPrevented())return!1;e(this).addClass("fileupload-processing")},processstop:function(t){if(t.isDefaultPrevented())return!1;e(this).removeClass("fileupload-processing")},destroy:function(t,i){if(t.isDefaultPrevented())return!1;var n=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),s=function(){n._transition(i.context).done(function(){e(this).remove(),n._trigger("destroyed",t,i)})};i.url?(i.dataType=i.dataType||n.options.dataType,e.ajax(i).done(s).fail(function(){n._trigger("destroyfailed",t,i)})):s()}},_resetFinishedDeferreds:function(){this._finishedUploads=[]},_addFinishedDeferreds:function(t){return t||(t=e.Deferred()),this._finishedUploads.push(t),t},_getFinishedDeferreds:function(){return this._finishedUploads},_enableDragToDesktop:function(){var t=e(this),i=t.prop("href"),n=t.prop("download");t.bind("dragstart",function(e){try{e.originalEvent.dataTransfer.setData("DownloadURL",["application/octet-stream",n,i].join(":"))}catch(e){}})},_formatFileSize:function(e){return"number"!=typeof e?"":e>=1e9?(e/1e9).toFixed(2)+" GB":e>=1e6?(e/1e6).toFixed(2)+" MB":(e/1e3).toFixed(2)+" KB"},_formatBitrate:function(e){return"number"!=typeof e?"":e>=1e9?(e/1e9).toFixed(2)+" Gbit/s":e>=1e6?(e/1e6).toFixed(2)+" Mbit/s":e>=1e3?(e/1e3).toFixed(2)+" kbit/s":e.toFixed(2)+" bit/s"},_formatTime:function(e){var t=new Date(1e3*e),i=Math.floor(e/86400);return(i=i?i+"d ":"")+("0"+t.getUTCHours()).slice(-2)+":"+("0"+t.getUTCMinutes()).slice(-2)+":"+("0"+t.getUTCSeconds()).slice(-2)},_formatPercentage:function(e){return(100*e).toFixed(2)+" %"},_renderExtendedProgress:function(e){return this._formatBitrate(e.bitrate)+" | "+this._formatTime(8*(e.total-e.loaded)/e.bitrate)+" | "+this._formatPercentage(e.loaded/e.total)+" | "+this._formatFileSize(e.loaded)+" / "+this._formatFileSize(e.total)},_renderTemplate:function(t,i){if(!t)return e();var n=t({files:i,formatFileSize:this._formatFileSize,options:this.options});return n instanceof e?n:e(this.options.templatesContainer).html(n).children()},_renderPreviews:function(t){t.context.find(".preview").each(function(i,n){e(n).append(t.files[i].preview)})},_renderUpload:function(e){return this._renderTemplate(this.options.uploadTemplate,e)},_renderDownload:function(e){return this._renderTemplate(this.options.downloadTemplate,e).find("a[download]").each(this._enableDragToDesktop).end()},_startHandler:function(t){t.preventDefault();var i=e(t.currentTarget),n=i.closest(".template-upload"),s=n.data("data");i.prop("disabled",!0),s&&s.submit&&s.submit()},_cancelHandler:function(t){t.preventDefault();var i=e(t.currentTarget).closest(".template-upload,.template-download"),n=i.data("data")||{};n.context=n.context||i,n.abort?n.abort():(n.errorThrown="abort",this._trigger("fail",t,n))},_deleteHandler:function(t){t.preventDefault();var i=e(t.currentTarget);this._trigger("destroy",t,e.extend({context:i.closest(".template-download"),type:"DELETE"},i.data()))},_forceReflow:function(t){return e.support.transition&&t.length&&t[0].offsetWidth},_transition:function(t){var i=e.Deferred();return e.support.transition&&t.hasClass("fade")&&t.is(":visible")?t.bind(e.support.transition.end,function(n){n.target===t[0]&&(t.unbind(e.support.transition.end),i.resolveWith(t))}).toggleClass("in"):(t.toggleClass("in"),i.resolveWith(t)),i},_initButtonBarEventHandlers:function(){var t=this.element.find(".fileupload-buttonbar"),i=this.options.filesContainer;this._on(t.find(".start"),{click:function(e){e.preventDefault(),i.find(".start").click()}}),this._on(t.find(".cancel"),{click:function(e){e.preventDefault(),i.find(".cancel").click()}}),this._on(t.find(".delete"),{click:function(e){e.preventDefault(),i.find(".toggle:checked").closest(".template-download").find(".delete").click(),t.find(".toggle").prop("checked",!1)}}),this._on(t.find(".toggle"),{change:function(t){i.find(".toggle").prop("checked",e(t.currentTarget).is(":checked"))}})},_destroyButtonBarEventHandlers:function(){this._off(this.element.find(".fileupload-buttonbar").find(".start, .cancel, .delete"),"click"),this._off(this.element.find(".fileupload-buttonbar .toggle"),"change.")},_initEventHandlers:function(){this._super(),this._on(this.options.filesContainer,{"click .start":this._startHandler,"click .cancel":this._cancelHandler,"click .delete":this._deleteHandler}),this._initButtonBarEventHandlers()},_destroyEventHandlers:function(){this._destroyButtonBarEventHandlers(),this._off(this.options.filesContainer,"click"),this._super()},_enableFileInputButton:function(){this.element.find(".fileinput-button input").prop("disabled",!1).parent().removeClass("disabled")},_disableFileInputButton:function(){this.element.find(".fileinput-button input").prop("disabled",!0).parent().addClass("disabled")},_initTemplates:function(){var e=this.options;e.templatesContainer=this.document[0].createElement(e.filesContainer.prop("nodeName")),t&&(e.uploadTemplateId&&(e.uploadTemplate=t(e.uploadTemplateId)),e.downloadTemplateId&&(e.downloadTemplate=t(e.downloadTemplateId)))},_initFilesContainer:function(){var t=this.options;void 0===t.filesContainer?t.filesContainer=this.element.find(".files"):t.filesContainer instanceof e||(t.filesContainer=e(t.filesContainer))},_initSpecialOptions:function(){this._super(),this._initFilesContainer(),this._initTemplates()},_create:function(){this._super(),this._resetFinishedDeferreds(),e.support.fileInput||this._disableFileInputButton()},enable:function(){var e=!1;this.options.disabled&&(e=!0),this._super(),e&&(this.element.find("input, button").prop("disabled",!1),this._enableFileInputButton())},disable:function(){this.options.disabled||(this.element.find("input, button").prop("disabled",!0),this._disableFileInputButton()),this._super()}})}),define("app/views/fileupload",["common","backbone","jquery.iframe-transport","jquery.fileupload-ui"],function(e,t,i){return window.locale={fileupload:{errors:{maxFileSize:gettext("File is too big"),minFileSize:gettext("File is too small"),acceptFileTypes:gettext("Filetype not allowed"),maxNumberOfFiles:gettext("Maximum number of files exceeded"),uploadedBytes:gettext("Uploaded bytes exceed file size"),emptyResult:gettext("Empty file upload result")},error:gettext("Error"),uploaded:gettext("uploaded"),canceled:gettext("canceled"),start:gettext("Start"),cancel:gettext("Cancel"),destroy:gettext("Delete")}},t.View.extend({el:$("#upload-file-dialog"),fileupdateConfirmTemplate:_.template($("#fileupdate-confirm-template").html()),initialize:function(t){var i=this.dirView=t.dirView,n=i.dir,s=this.$el.addClass("fixed-upload-file-dialog");this.popup_height="200px";var a=$(".status",s),r=$(".total-progress",s),o=$(".fileupload-buttonbar .cancel",s),d=$(".sf-close",s),l=$(".saving-tip",s),u={uploading:gettext("File Uploading..."),complete:gettext("File Upload complete"),canceled:gettext("File Upload canceled"),failed:gettext("File Upload failed")},c=[],h=[],p=app.pageOptions.enable_upload_folder,m=app.pageOptions.enable_resumable_fileupload,_=[],f=[],g=function(e){var t;return"number"!=typeof e?"":(t=e/8,t>=1e9?(t/1e9).toFixed(2)+" GB/s":t>=1e6?(t/1e6).toFixed(2)+" MB/s":t>=1e3?(t/1e3).toFixed(2)+" kB/s":t.toFixed(2)+" B/s")},y=this;s.fileupload({paramName:"file",getFilesFromResponse:function(e){if(e.result)return e.result},autoUpload:!0,maxNumberOfFiles:app.pageOptions.max_number_of_files_for_fileupload,sequentialUploads:!0}).bind("fileuploadadd",function(e,t){if(!$("#dir-view").is(":visible"))return!1;if(n.user_perm&&"rw"!=n.user_perm)return!1;s.removeClass("hide"),o.removeClass("hide"),d.addClass("hide"),s.height(parseInt(y.popup_height)),$(".fileupload-buttonbar, table",s).removeClass("hide");var a=n.path;if(s.fileupload("option",{formData:{parent_dir:"/"==a?a:a+"/"},maxChunkSize:void 0,uploadedBytes:void 0}),p){var r=i.$("#upload-menu");r.hasClass("hide")||r.addClass("hide");var l=t.files[0];if("."==l.name)return void t.files.shift();t.fileInput?l.webkitRelativePath&&(l.relative_path=l.webkitRelativePath):l.relativePath&&(l.relative_path=l.relativePath+l.name)}}).bind("fileuploadstart",function(){a.html(u.uploading)}).bind("fileuploadsubmit",function(t,i){if(0==i.files.length)return!1;var a=i.files[0];if(a.error)return!1;var r=function(){var t,r;n.is_system_library?(t=e.getUrl({name:"admin-system-library-upload-link",repo_id:n.repo_id}),r={from:"web",path:n.path}):(t=e.getUrl({name:"repo_upload_link",repo_id:n.repo_id}),r={from:"web",p:n.path}),$.ajax({url:t,data:r,cache:!1,dataType:"json",success:function(t){if(n.is_system_library&&(t=t.upload_link),p&&a.relative_path){var r=a.relative_path,o=r.substring(0,r.lastIndexOf("/")+1),d=s.fileupload("option","formData");d.relative_path=o,s.fileupload("option",{formData:d}),i.url=t,i.jqXHR=s.fileupload("send",i)}else{m&&a.size&&a.size>1048576?(s.fileupload("option","maxChunkSize",1048576),$.ajax({url:e.getUrl({name:"repo_file_uploaded_bytes",repo_id:n.repo_id}),data:{parent_dir:n.path,file_name:a.name},cache:!1,dataType:"json",success:function(e){s.fileupload("option","uploadedBytes",e.uploadedBytes),i.url=t,i.jqXHR=s.fileupload("send",i)}})):(i.url=t,i.jqXHR=s.fileupload("send",i))}},error:function(e){var t;t=e.responseJSON?e.responseJSON.error_msg:gettext("Error"),i.abort(),y.$(".total-error").html(t).show()}})};if(a.relative_path||i.originalFiles.length>1)return r(),!1;var o=function(){$.ajax({url:e.getUrl({name:"repo_update_link",repo_id:n.repo_id}),data:{from:"web",p:n.path},cache:!1,dataType:"json",success:function(e){var t=s.fileupload("option","formData");t.target_file=t.parent_dir+a.name,s.fileupload("option","formData",t),a.to_update=!0,i.url=e,i.jqXHR=s.fileupload("send",i)},error:function(e){var t;t=e.responseJSON?e.responseJSON.error_msg:gettext("Error"),i.abort(),y.$(".total-error").html(t).show()}})},d=n.where({is_file:!0}),l=[];if($(d).each(function(){l.push(this.get("obj_name"))}),n.is_system_library||-1==l.indexOf(a.name))r();else{var u=gettext("Replace file {filename}?").replace("{filename}",'<span class="op-target">'+e.HTMLescape(a.name)+"</span>"),c=$(y.fileupdateConfirmTemplate({title:u}));c.modal({onClose:function(){$.modal.close(),a.choose_to_update?o():a.choose_to_upload?r():(i.jqXHR=s.fileupload("send",i),i.jqXHR.abort())}}),$("#simplemodal-container").css({width:"auto",height:"auto"}),$(".yes",c).on("click",function(){var t=n.findWhere({obj_name:a.name});t.get("is_locked")?t.get("locked_by_me")?(a.choose_to_update=!0,$.modal.close()):($(".error",c).html(gettext("File is locked")).removeClass("hide"),e.disableButton($(this))):(a.choose_to_update=!0,$.modal.close())}),$(".no",c).on("click",function(){a.choose_to_upload=!0,$.modal.close()})}return!1}).bind("fileuploadprogressall",function(e,t){r.html(parseInt(t.loaded/t.total*100,10)+'% <span style="font-size:14px;color:#555;">('+g(t.bitrate)+")</span>").removeClass("hide"),t.loaded>0&&t.loaded==t.total&&l.show()}).bind("fileuploaddone",function(e,t){if("success"==t.textStatus){var i=t.files[0],a=i.relative_path,r=t.result[0];r.uploaded=!0,a&&(r.relative_path=a.substring(0,a.lastIndexOf("/")+1)+r.name);var o=n.path;o="/"==o?o:o+"/";if(s.fileupload("option","formData").parent_dir==o){if(!a)return void(i.to_update?h.push(r):c.push(r));if(p){var d=a.substring(0,a.indexOf("/"));n.where({is_dir:!0,obj_name:d}).length>0?-1==f.indexOf(d)&&f.push(d):-1==_.indexOf(d)&&_.push(d)}}}}).bind("fileuploadstop",function(){o.addClass("hide"),d.removeClass("hide");var t=n.path;if(t="/"==t?t:t+"/",s.fileupload("option","formData").parent_dir==t){var a=parseInt((new Date).getTime()/1e3);c.length>0&&($(c).each(function(t,s){var r=n.add({is_file:!0,is_img:e.imageCheck(s.name),obj_name:s.name,last_modified:a,file_size:e.fileSizeFormat(s.size,1),obj_id:s.id,file_icon:"file.png",perm:"rw",last_update:gettext("Just now"),starred:!1},{silent:!0});i.addNewFile(r)}),c=[]),_.length>0&&($(_).each(function(e,s){var r=n.add({is_dir:!0,obj_name:s,perm:"rw",last_modified:a,last_update:gettext("Just now"),p_dpath:t+s},{silent:!0});i.addNewDir(r)}),_=[]),f.length>0&&($(f).each(function(e,t){n.where({is_dir:!0,obj_name:t})[0].set({last_modified:a,last_update:gettext("Just now")})}),f=[]),h.length>0&&($(h).each(function(t,i){n.where({is_file:!0,obj_name:i.name})[0].set({obj_id:i.id,file_size:e.fileSizeFormat(i.size,1),last_modified:a,last_update:gettext("Just now")})}),h=[])}}).bind("fileuploadfail",function(e,t){var i=t.files[0];!i.error&&t.jqXHR&&(t.jqXHR.responseJSON||(i.error=gettext("Network error")),t.jqXHR.responseJSON&&t.jqXHR.responseJSON.error&&(i.error=t.jqXHR.responseJSON.error))}).bind("fileuploadcompleted",function(){0==$(".files .cancel",s).length&&(l.hide(),r.addClass("hide"),a.html(u.complete))}).bind("fileuploadfailed",function(e,t){0==$(".files .cancel",s).length&&(o.addClass("hide"),d.removeClass("hide"),r.addClass("hide"),l.hide(),"abort"==t.errorThrown?a.html(u.canceled):a.html(u.failed))});var Y=app.pageOptions.max_upload_file_size;Y&&s.fileupload("option","maxFileSize",Y),s.fileupload("option","redirect",location.protocol+"//"+location.host+app.config.mediaUrl+"cors/result.html?%s")},events:{"click .fold-switch":"foldAndUnfoldPopup","click .sf-close":"closePopup"},foldAndUnfoldPopup:function(){var e=this.$el,t=parseInt(this.popup_height),i=$(".fileupload-buttonbar, table",e);e.height()==t?(e.height($(".hd",e).outerHeight(!0)),i.addClass("hide")):(e.height(t),i.removeClass("hide"))},closePopup:function(){var e=this.$el;e.addClass("hide"),$(".files",e).empty()}})}),define("sysadmin-app/views/dirent",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#dirent-item-tmpl").html()),events:{"click .dirent-download-btn":"downloadDirent","click .dirent-delete-btn":"deleteDirent"},initialize:function(e){a.prototype.initialize.call(this),this.dir=e.dirView.dir},downloadDirent:function(){return e.ajax({url:this.model.getDownloadUrl(),dataType:"json",success:function(e){location.href=e.download_url},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)}}),!1},deleteDirent:function(){var t=this;return e.ajax({url:this.model.getDeleteUrl(),type:"DELETE",beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove(),n.feedback(gettext("Success"),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)}}),!1},render:function(){var e=n.isHiDPI()?48:24,t=this.model.toJSON(),i=s(t.last_update);return t.time=i.format("LLLL"),t.time_from_now=n.getRelativeTimeStr(i),t.icon_url=this.model.getIconUrl(e),this.model.get("is_file")?t.download_url=this.model.getDownloadUrl():t.url=this.model.getWebUrl(),t.repo_id=this.dir.repo_id,t.is_system_library=this.dir.is_system_library,this.$el.html(this.template(t)),this}})}),define("sysadmin-app/models/dirent",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({getPath:function(){return i.pathJoin([this.collection.path,this.get("obj_name")])},getWebUrl:function(){var e=this.collection,t=this.getPath();return this.get("is_file")?"":"#libs/"+e.repo_id+i.encodePath(t)},getDownloadUrl:function(){var e=this.collection,t=this.getPath();return app.config.siteRoot+"api/v2.1/admin/libraries/"+e.repo_id+"/dirent/?path="+encodeURIComponent(t)+"&dl=1"},getDeleteUrl:function(){var e=this.collection,t=this.getPath();return app.config.siteRoot+"api/v2.1/admin/libraries/"+e.repo_id+"/dirent/?path="+encodeURIComponent(t)},getIconUrl:function(e){if(this.get("is_file"))return i.getFileIconUrl(this.get("obj_name"),e);var t="r"==this.get("perm");return i.getDirIconUrl(t,e)}})}),define("sysadmin-app/collection/dirents",["underscore","backbone","common","sysadmin-app/models/dirent"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,url:function(){return i.getUrl({name:"admin-library-dirents",repo_id:this.repo_id})},parse:function(e){return this.repo_name=e.repo_name,this.repo_id=e.repo_id,this.is_system_library=e.is_system_library,e.dirent_list},setPath:function(e,t){this.repo_id=e,this.path=t}})}),define("sysadmin-app/views/dir",["jquery","underscore","backbone","common","app/views/fileupload","sysadmin-app/views/dirent","sysadmin-app/collection/dirents"],function(e,t,i,n,s,a,r){"use strict";return i.View.extend({id:"dir-view",template:t.template(e("#dir-view-tmpl").html()),pathBarTemplate:t.template(e("#dir-path-bar-tmpl").html()),dir_op_bar_template:t.template(e("#dir-op-bar-tmpl").html()),newDirTemplate:t.template(e("#add-new-dir-form-template").html()),initialize:function(){this.dir=new r,this.listenTo(this.dir,"add",this.addOne),this.listenTo(this.dir,"reset",this.reset),this.fileUploadView=new s({dirView:this}),this.render()},render:function(){this.$el.html(this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$path_bar=this.$(".path-bar"),this.$dir_op_bar=this.$(".repo-op")},events:{"click .basic-upload-btn":"uploadFile","click #add-new-dir":"newDir"},uploadFile:function(){this.$("#basic-upload-input").trigger("click")},addNewFile:function(t){t.set("last_update",(new Date).getTime());var i=new a({model:t,dirView:this}),n=i.render().el;if(0==e("tr",this.$tableBody).length)this.$tableBody.append(n);else{var s=this.dir.where({is_file:!1});0==s.length?this.$tableBody.prepend(n):e(e("tr",this.$tableBody)[s.length-1]).after(n)}},newDir:function(){var t=e(this.newDirTemplate()),i=t.attr("id"),s=this.dir,a=this;t.modal({appendTo:"#main"}),e("#simplemodal-container").css({height:"auto"}),t.on("submit",function(){var r=e.trim(e('input[name="name"]',t).val());if(!r)return n.showFormError(i,gettext("It is required.")),!1;var o={obj_name:r},d=n.getUrl({name:"admin-library-dirents",repo_id:s.repo_id})+"?parent_dir="+n.encodePath(s.path),l=function(t){var i=s.add(t,{silent:!0});e.modal.close(),a.addNewDir(i)};return n.ajaxPost({form:t,post_url:d,post_data:o,after_op_success:l,form_id:i}),!1})},addNewDir:function(e){var t=this,i=new a({model:e,dirView:t});t.$tableBody.prepend(i.render().el)},hide:function(){this.$el.detach(),this.attached=!1,this.fileUploadView.closePopup()},show:function(t,i){this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.dir.setPath(t,i),this.fetchLibraryDirents()},initPage:function(){this.renderPath(),this.renderDirOpBar(),this.setFileInput(),this.$tableBody.empty(),this.$loadingTip.show()},renderPath:function(){var t=this.dir,i=t.path,s={path:i,repo_name:t.repo_name,is_system_library:t.is_system_library},a=i.substr(1).split("/"),r=n.encodePath(i.substr(1)).split("/");"/"!=i&&e.extend(s,{path_list:a,path_list_encoded:r,repo_id:t.repo_id}),this.$path_bar.html(this.pathBarTemplate(s))},renderDirOpBar:function(){this.dir.is_system_library?this.$dir_op_bar.html(this.dir_op_bar_template()).show():this.$dir_op_bar.empty().hide()},setFileInput:function(){this.fileUploadView.$el.fileupload("option","fileInput",this.$("#basic-upload-input"))},fetchLibraryDirents:function(){var e=this.dir;e.fetch({data:{parent_dir:e.path},cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){this.initPage(),this.$loadingTip.hide(),this.dir.length>0&&(this.dir.each(this.addOne,this),this.$table.show())},addOne:function(e){var t=new a({model:e,dirView:this});this.$tableBody.append(t.render().el)}})}),define("sysadmin-app/views/address-book-group-item",["jquery","underscore","backbone","common","moment","simplemodal","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a,r){"use strict";return r.extend({tagName:"tr",template:t.template(e("#address-book-group-item-tmpl").html()),setQuotaFormTemplate:t.template(e("#address-book-group-quota-set-form-tmpl").html()),events:{"click .group-delete-btn":"deleteGroup","click .quota-edit-icon":"setQuota"},initialize:function(){r.prototype.initialize.call(this),this.listenTo(this.model,"change",this.render)},deleteGroup:function(){var t=this,i=this.model.get("name"),s={group_id:t.model.get("id")};app.pageOptions.org_id?e.extend(s,{name:"org-admin-address-book-group",org_id:app.pageOptions.org_id}):e.extend(s,{name:"admin-address-book-group"});var a=gettext("Delete Department"),r=gettext("Are you sure you want to delete %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),o=function(){e.ajax({url:n.getUrl(s),type:"DELETE",cache:!1,beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove(),n.feedback(gettext("Successfully deleted 1 item."),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(a,r,o),!1},setQuota:function(){var t=this.model,i=e(this.setQuotaFormTemplate());i.modal(),e("#simplemodal-container").css({width:"auto",height:"auto"}),i.on("submit",function(){var s=e(".error",i),a=e('[type="submit"]',i),r=e.trim(e('[name="quota"]',i).val()),o=parseInt(r);if(!r)return s.html(gettext("It is required.")).show(),!1;if(o!=r||!(o>0||-2==o))return s.html(gettext("Invalid quota.")).show(),!1;var d;return d=app.pageOptions.org_id?{name:"org-admin-group",org_id:app.pageOptions.org_id,group_id:t.get("id")}:{name:"admin-group",group_id:t.get("id")},n.disableButton(a),e.ajax({url:n.getUrl(d),type:"PUT",cache:!1,beforeSend:n.prepareCSRFToken,data:{quota:-2==r?-2:1e6*r},dataType:"json",success:function(i){t.set({quota:i.quota}),e.modal.close()},error:function(e){var t=n.prepareAjaxErrorMsg(e);s.html(t).show(),n.enableButton(a)}}),!1})},render:function(){var e=this.model.toJSON(),t=s(e.created_at);switch(e.time=t.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(t),e.quota_error=!1,e.quota){case-2:e.quota_shown="--";break;case-1:e.quota_shown=gettext("Error"),e.quota_error=!0;break;default:e.quota>0?e.quota_shown=n.quotaSizeFormat(e.quota):(e.quota_shown=gettext("Error"),e.quota_error=!0)}return this.$el.html(this.template(e)),this}})}),define("sysadmin-app/collection/address-book-groups",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Collection.extend({url:function(){var e;return e=app.pageOptions.org_id?{name:"org-admin-address-book-groups",org_id:app.pageOptions.org_id}:{name:"admin-address-book-groups"},i.getUrl(e)},parse:function(e){return e.data}})}),define("sysadmin-app/views/address-book",["jquery","underscore","backbone","common","sysadmin-app/views/address-book-group-item","sysadmin-app/collection/address-book-groups"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"address-book",template:t.template(e("#address-book-tmpl").html()),groupAddFormTemplate:t.template(e("#address-book-group-add-form-tmpl").html()),initialize:function(){this.groupCollection=new a,this.listenTo(this.groupCollection,"add",this.addOne),this.listenTo(this.groupCollection,"reset",this.reset),this.render()},render:function(){this.$el.append(this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$error=this.$(".error")},events:{"click .js-add-group":"addGroup"},initPage:function(){this.$loadingTip.show(),this.$table.hide(),this.$tableBody.empty(),this.$emptyTip.hide(),this.$error.hide()},addGroup:function(){var t=e(this.groupAddFormTemplate({title:gettext("New Department")})),i=this.groupCollection;return t.modal(),e("#simplemodal-container").css({height:"auto"}),t.submit(function(){var s=e.trim(e('[name="group_name"]',t).val()),a=e(".error",t),r=e('[type="submit"]',t);return s?(a.hide(),n.disableButton(r),i.create({parent_group:-1,group_name:s,group_owner:"system admin"},{prepend:!0,wait:!0,success:function(){1==i.length&&i.reset(i.models),n.closeModal()},error:function(e,t,i){var s=n.prepareAjaxErrorMsg(t);a.html(s).show(),n.enableButton(r)}}),!1):(a.html(gettext("Name is required.")).show(),!1)}),!1},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent()},getContent:function(){this.initPage();var e=this;this.groupCollection.fetch({cache:!1,reset:!0,error:function(t,i,s){var a=n.prepareCollectionFetchErrorMsg(t,i,s);e.$error.html(a).show()},complete:function(){e.$loadingTip.hide()}})},reset:function(){this.initPage(),this.$loadingTip.hide(),this.groupCollection.length>0?(this.groupCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show()},addOne:function(e,t,i){var n=new s({model:e});i.prepend?this.$tableBody.prepend(n.render().el):this.$tableBody.append(n.render().el)}})}),define("sysadmin-app/views/group-member",["jquery","underscore","backbone","common","app/views/widgets/hl-item-view"],function(e,t,i,n,s){"use strict";return s.extend({tagName:"tr",template:t.template(e("#group-member-item-tmpl").html()),events:{"click .user-role-edit-icon":"showEdit","change .user-role-select":"editRole","click .member-delete-btn":"deleteGroupMember"},initialize:function(){s.prototype.initialize.call(this),this.listenTo(this.model,"change",this.render);var t={group_id:this.model.get("group_id"),email:this.model.get("email")};app.pageOptions.org_id?e.extend(t,{name:"org-admin-group-member",org_id:app.pageOptions.org_id}):e.extend(t,{name:"admin-group-member"}),this.url_options=t;var i=this;e(document).on("click",function(e){var t=e.target||event.srcElement;i.$(".user-role-edit-icon, .user-role-select").is(t)||(i.$(".cur-role, .user-role-edit-icon").show(),i.$(".user-role-select").hide())})},showEdit:function(){this.$(".cur-role, .user-role-edit-icon").hide(),this.$(".user-role-select").show()},editRole:function(){var t=this,i=this.$('[name="role"]').val(),s=1==i;e.ajax({url:n.getUrl(this.url_options),type:"put",dataType:"json",beforeSend:n.prepareCSRFToken,data:{is_admin:s},success:function(e){t.model.set({is_admin:e.is_admin,role:e.role})},error:function(e){var t=n.prepareAjaxErrorMsg(e);n.feedback(t,"error")}})},deleteGroupMember:function(){var t=this,i=this.model.get("email"),s=gettext("Delete Member"),a=gettext("Are you sure you want to delete %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl(t.url_options),type:"DELETE",beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove();var e=gettext("Successfully deleted member {placeholder}").replace("{placeholder}",i);n.feedback(e,"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},render:function(){var t=this.model.toJSON(),i=this.model.get("email"),n=app.config.siteRoot;return app.pageOptions.org_id?n+="org/useradmin/info/"+encodeURIComponent(i):n+="useradmin/info/"+encodeURIComponent(i),e.extend(t,{user_info_url:n}),this.$el.html(this.template(t)),this}})}),define("sysadmin-app/views/address-book-group-library",["jquery","underscore","backbone","common","app/views/widgets/hl-item-view"],function(e,t,i,n,s){"use strict";return s.extend({tagName:"tr",template:t.template(e("#address-book-group-library-item-tmpl").html()),events:{"click .repo-delete-btn":"del"},initialize:function(e){s.prototype.initialize.call(this),this.group_id=e.group_id},del:function(){var t=this,i=this.model.get("repo_name")||this.model.get("name"),s=gettext("Delete Library"),a=gettext("Are you sure you want to delete %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){var s={group_id:t.group_id,repo_id:t.model.get("repo_id")};app.pageOptions.org_id?e.extend(s,{name:"org-admin-group-owned-library",org_id:app.pageOptions.org_id}):e.extend(s,{name:"admin-group-owned-library"}),e.ajax({url:n.getUrl(s),type:"DELETE",
beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove();var e=gettext("Successfully deleted library {placeholder}").replace("{placeholder}",i);n.feedback(e,"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},render:function(){var e=this.model.toJSON(),t=n.isHiDPI()?48:24,i=this.model.getIconUrl(t);return e.icon_url=i,e.icon_title=this.model.getIconTitle(),e.name=e.name||e.repo_name,e.formatted_size=n.fileSizeFormat(e.size,1),e.enable_sys_admin_view_repo=app.pageOptions.enable_sys_admin_view_repo,e.is_pro=app.pageOptions.is_pro,this.$el.html(this.template(e)),this}})}),define("sysadmin-app/collection/address-book-group",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Collection.extend({setOptions:function(e){this.options=e},url:function(){var e;return e=app.pageOptions.org_id?{name:"org-admin-address-book-group",org_id:app.pageOptions.org_id,group_id:this.options.group_id}:{name:"admin-address-book-group",group_id:this.options.group_id},i.getUrl(e)},parse:function(e){return this.data=e,e.groups}})}),define("sysadmin-app/models/group-repo",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({getIconUrl:function(e){var t=this.get("encrypted"),n="r"==this.get("permission");return i.getLibIconUrl(t,n,e)},getIconTitle:function(){var e=this.get("encrypted"),t="r"==this.get("permission");return i.getLibIconTitle(e,t)}})}),define("sysadmin-app/collection/group-repos",["underscore","backbone","common","sysadmin-app/models/group-repo"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,setGroupId:function(e){this.group_id=e},parse:function(e){return this.group_name=e.group_name,e.libraries},url:function(){var e={group_id:this.group_id};return app.pageOptions.org_id?$.extend(e,{name:"org-admin-group-libraries",org_id:app.pageOptions.org_id}):$.extend(e,{name:"admin-group-libraries"}),i.getUrl(e)}})}),define("sysadmin-app/views/address-book-group",["jquery","underscore","backbone","common","select2","sysadmin-app/views/address-book-group-item","sysadmin-app/views/group-member","sysadmin-app/views/address-book-group-library","sysadmin-app/collection/address-book-group","sysadmin-app/collection/group-repos"],function(e,t,i,n,s,a,r,o,d,l){"use strict";return i.View.extend({id:"address-book-group",template:t.template(e("#address-book-group-tmpl").html()),pathTemplate:t.template(e("#address-book-group-path-tmpl").html()),groupAddFormTemplate:t.template(e("#address-book-group-add-form-tmpl").html()),addMemberFormTemplate:t.template(e("#add-group-member-form-tmpl").html()),addLibFormTemplate:t.template(e("#address-book-library-add-form-tmpl").html()),initialize:function(){this.groupCollection=new d,this.listenTo(this.groupCollection,"add",this.addOne),this.listenTo(this.groupCollection,"reset",this.reset),this.memberCollection=new i.Collection,this.listenTo(this.memberCollection,"add",this.addMember),this.groupRepoCollection=new l,this.listenTo(this.groupRepoCollection,"reset",this.resetLibraries),this.listenTo(this.groupRepoCollection,"add",this.addLibrary),this.render()},render:function(){this.$el.append(this.template()),this.$path=this.$(".group-path"),this.$groups=this.$(".groups"),this.$groupsTable=e("table",this.$groups),this.$groupsTableBody=e("tbody",this.$groupsTable),this.$groupsEmptyTip=e(".empty-tip",this.$groups),this.$members=this.$(".members"),this.$membersTable=e("table",this.$members),this.$membersTableBody=e("tbody",this.$membersTable),this.$membersEmptyTip=e(".empty-tip",this.$members),this.$libs=this.$(".libraries"),this.$libsTable=e("table",this.$libs),this.$libsTableBody=e("tbody",this.$libsTable),this.$libsEmptyTip=e(".empty-tip",this.$libs),this.$loadingTip=this.$(".loading-tip"),this.$error=this.$(".error")},events:{"click .js-add-group":"addGroup","click .js-add-member":"newMember","click .js-add-library":"newLibrary"},initPage:function(){this.$loadingTip.show(),this.$path.empty(),this.$groups.hide(),this.$groupsTable.hide(),this.$groupsTableBody.empty(),this.$groupsEmptyTip.hide(),this.$members.hide(),this.$membersTable.hide(),this.$membersTableBody.empty(),this.$membersEmptyTip.hide(),this.$libs.hide(),this.$libsTable.hide(),this.$libsTableBody.empty(),this.$libsEmptyTip.hide(),this.$error.hide()},addGroup:function(){var t=this,i=e(this.groupAddFormTemplate({title:gettext("New Sub-department")}));return i.modal(),e("#simplemodal-container").css({height:"auto"}),i.submit(function(){var s=e.trim(e('[name="group_name"]',i).val()),a=e(".error",i),r=e('[type="submit"]',i);if(!s)return a.html(gettext("Name is required.")).show(),!1;var o;return o=app.pageOptions.org_id?{name:"org-admin-address-book-groups",org_id:app.pageOptions.org_id}:{name:"admin-address-book-groups"},a.hide(),n.disableButton(r),e.ajax({url:n.getUrl(o),type:"POST",cache:!1,data:{parent_group:t.groupCollection.data.id,group_name:s,group_owner:"system admin"},beforeSend:n.prepareCSRFToken,success:function(e){t.groupCollection.add(e,{prepend:!0}),1==t.groupCollection.length&&(t.$groupsEmptyTip.hide(),t.$groupsTable.show()),n.closeModal()},error:function(e){var t=n.prepareAjaxErrorMsg(e);a.html(t).show(),n.enableButton(r)}}),!1}),!1},newMember:function(){var t=this,i=e(this.addMemberFormTemplate());return i.modal(),e("#simplemodal-container").css({height:"auto",width:"auto"}),e('[name="email"]',i).select2(e.extend(n.contactInputOptionsForSelect2(),{width:"275px",containerCss:{"margin-bottom":"5px"},placeholder:gettext("Search users or enter emails and press Enter")})),i.submit(function(){var s=e.trim(e('[name="email"]',i).val()),a=e(".error",i),r=e('[type="submit"]',i);if(!s)return a.html(gettext("It is required.")).show(),!1;var o;return o=app.pageOptions.org_id?{name:"org-admin-group-members",org_id:app.pageOptions.org_id,group_id:t.options.group_id}:{name:"admin-group-members",group_id:t.options.group_id},a.hide(),n.disableButton(r),e.ajax({url:n.getUrl(o),type:"POST",dataType:"json",data:{email:s.split(",")},traditional:!0,beforeSend:n.prepareCSRFToken,success:function(i){i.success.length>0&&(t.memberCollection.add(i.success,{prepend:!0}),t.$membersEmptyTip.hide(),t.$membersTable.show());var s="";i.failed.length>0?(e(i.failed).each(function(e,t){s+=n.HTMLescape(t.email)+": "+n.HTMLescape(t.error_msg)+"<br />"}),a.html(s).show(),n.enableButton(r)):n.closeModal()},error:function(e,t,i){var s=n.prepareAjaxErrorMsg(e);a.html(s).show(),n.enableButton(r)}}),!1}),!1},newLibrary:function(){var t=this,i=e(this.addLibFormTemplate());return i.modal(),e("#simplemodal-container").css({height:"auto",width:"auto"}),i.submit(function(){var s=e.trim(e('[name="library_name"]',i).val()),a=e(".error",i),r=e('[type="submit"]',i);if(!s)return a.html(gettext("It is required.")).show(),!1;a.hide(),n.disableButton(r);var o={group_id:t.options.group_id};return app.pageOptions.org_id?e.extend(o,{name:"org-admin-group-owned-libraries",org_id:app.pageOptions.org_id}):e.extend(o,{name:"admin-group-owned-libraries"}),e.ajax({url:n.getUrl(o),type:"POST",dataType:"json",data:{repo_name:s},traditional:!0,beforeSend:n.prepareCSRFToken,success:function(e){t.groupRepoCollection.add(e,{prepend:!0}),1==t.groupRepoCollection.length&&(t.$libsEmptyTip.hide(),t.$libsTable.show()),n.closeModal()},error:function(e,t,i){var s=n.prepareAjaxErrorMsg(e);a.html(s).show(),n.enableButton(r)}}),!1}),!1},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.options=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent()},getContent:function(){this.initPage();var e=this;this.groupCollection.setOptions(this.options),this.groupCollection.fetch({data:{return_ancestors:!0},cache:!1,reset:!0,success:function(){e.getLibs()},error:function(t,i,s){var a=n.prepareCollectionFetchErrorMsg(t,i,s);e.$error.html(a).show()},complete:function(){e.$loadingTip.hide()}})},getLibs:function(){var e=this;this.groupRepoCollection.setGroupId(this.options.group_id),this.groupRepoCollection.fetch({cache:!1,reset:!0,error:function(t,i,s){var a=n.prepareCollectionFetchErrorMsg(t,i,s);e.$error.html(a).show()}})},resetLibraries:function(){this.groupRepoCollection.length>0?(this.groupRepoCollection.each(this.addLibrary,this),this.$libsTable.show()):this.$libsEmptyTip.show(),this.$libs.show()},addLibrary:function(e,t,i){var n=new o({model:e,group_id:this.options.group_id});i.prepend?this.$libsTableBody.prepend(n.render().el):this.$libsTableBody.append(n.render().el)},renderPath:function(){this.$path.html(this.pathTemplate({ancestor_groups:this.groupCollection.data.ancestor_groups,name:this.groupCollection.data.name}))},reset:function(){this.initPage(),this.$loadingTip.hide(),this.renderPath(),this.groupCollection.length>0?(this.groupCollection.each(this.addOne,this),this.$groupsTable.show()):this.$groupsEmptyTip.show(),this.$groups.show(),this.memberCollection.reset(this.groupCollection.data.members),this.memberCollection.length>0?(this.memberCollection.each(this.addMember,this),this.$membersTable.show()):this.$membersEmptyTip.show(),this.$members.show()},addMember:function(e,t,i){var n=new r({model:e});i.prepend?this.$membersTableBody.prepend(n.render().el):this.$membersTableBody.append(n.render().el)},addOne:function(e,t,i){var n=new a({model:e});i.prepend?this.$groupsTableBody.prepend(n.render().el):this.$groupsTableBody.append(n.render().el)}})}),define("sysadmin-app/views/group",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#group-item-tmpl").html()),transferTemplate:t.template(e("#group-transfer-form-tmpl").html()),events:{"click .group-delete-btn":"deleteGroup","click .group-transfer-btn":"transferGroup"},initialize:function(){a.prototype.initialize.call(this),this.listenTo(this.model,"change",this.render)},deleteGroup:function(){var t=this,i=this.model.get("name"),s=gettext("Delete Group"),a=gettext("Are you sure you want to delete %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-group",group_id:t.model.get("id")}),type:"DELETE",cache:!1,beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove(),n.feedback(gettext("Successfully deleted 1 item."),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},transferGroup:function(){var t=this,i=this.model.get("name"),s=this.model.get("id"),a=this.model.get("owner"),r=e(this.transferTemplate({title:gettext("Transfer Group {group_name} To").replace("{group_name}",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>")}));return r.modal({focus:!1}),e("#simplemodal-container").css({width:"auto",height:"auto"}),e('[name="email"]',r).select2(e.extend(n.contactInputOptionsForSelect2(),{width:"300px",maximumSelectionSize:1,placeholder:gettext("Search user or enter email and press Enter"),formatSelectionTooBig:gettext("You cannot select any more choices")})),r.on("submit",function(){var i=e.trim(e('[name="email"]',e(this)).val()),o=e('[type="submit"]',e(this));return!!i&&(i!=a&&(n.disableButton(o),e.ajax({url:n.getUrl({name:"admin-group",group_id:s}),type:"put",dataType:"json",beforeSend:n.prepareCSRFToken,data:{new_owner:i},success:function(){e.modal.close(),t.model.set({owner:i}),n.feedback(gettext("Successfully transferred the group."),"success")},error:function(t){var i=n.prepareAjaxErrorMsg(t);e(".error",r).html(i).show(),n.enableButton(o)}}),!1))}),!1},render:function(){var e=this.model.toJSON(),t=s(e.created_at);return e.time=t.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(t),this.$el.html(this.template(e)),this}})}),define("sysadmin-app/models/group",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({})}),define("sysadmin-app/collection/groups",["underscore","backbone.paginator","common","sysadmin-app/models/group"],function(e,t,i,n){"use strict";return Backbone.PageableCollection.extend({model:n,state:{pageSize:100},parseState:function(e){return e.page_info},parseRecords:function(e){return e.groups},url:function(){return i.getUrl({name:"admin-groups"})}})}),define("sysadmin-app/views/groups",["jquery","underscore","backbone","common","sysadmin-app/views/group","sysadmin-app/collection/groups"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-groups",template:t.template(e("#groups-tmpl").html()),groupAddFormtemplate:t.template(e("#group-add-form-tmpl").html()),initialize:function(){this.groupCollection=new a,this.listenTo(this.groupCollection,"add",this.addOne),this.listenTo(this.groupCollection,"reset",this.reset),this.render()},render:function(){this.$el.append(this.template()),this.$newGroup=this.$(".js-add-group"),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next"),this.$error=this.$(".error")},events:{"click .js-add-group":"addGroup","click .js-export-excel":"exportExcel","click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},initPage:function(){this.$loadingTip.show(),this.$table.hide(),this.$tableBody.empty(),this.$jsNext.hide(),this.$jsPrevious.hide(),this.$emptyTip.hide(),this.$error.hide()},addGroup:function(){var t=e(this.groupAddFormtemplate()),i=this.groupCollection;return t.modal(),e("#simplemodal-container").css({height:"auto"}),e('[name="group_owner"]',t).select2(e.extend(n.contactInputOptionsForSelect2(),{width:"268px",containerCss:{"margin-bottom":"5px"},maximumSelectionSize:1,placeholder:gettext("Search user or enter email and press Enter"),formatSelectionTooBig:gettext("You cannot select any more choices")})),t.on("submit",function(){var s=e.trim(e('[name="group_name"]',t).val()),a=e.trim(e('[name="group_owner"]',t).val()),r=e(".error",t),o=e('[type="submit"]',t);return s?(r.hide(),n.disableButton(o),i.create({group_name:s,group_owner:a},{prepend:!0,wait:!0,success:function(){1==i.length&&i.reset(i.models),n.closeModal()},error:function(e,t,i){var s=n.prepareAjaxErrorMsg(t);r.html(s).show(),n.enableButton(o)}}),!1):(r.html(gettext("Name is required.")).show(),!1)}),!1},exportExcel:function(){location.href=n.getUrl({name:"sys_group_admin_export_excel"})},getNextPage:function(){this.initPage();var e=this.groupCollection.state.current_page;return this.groupCollection.state.has_next_page&&this.groupCollection.getPage(e+1,{reset:!0}),!1},getPreviousPage:function(){this.initPage();var e=this.groupCollection.state.current_page;return e>1&&this.groupCollection.getPage(e-1,{reset:!0}),!1},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent()},getContent:function(){this.initPage();var e=this;this.groupCollection.fetch({data:{page:this.option.page},cache:!1,reset:!0,error:function(t,i,s){var a=n.prepareCollectionFetchErrorMsg(t,i,s);e.$error.html(a).show()},complete:function(){e.$loadingTip.hide()}})},reset:function(){this.initPage();var e=this.groupCollection.state.current_page;app.router.navigate("groups/?page="+e),this.$loadingTip.hide(),this.groupCollection.length>0?(this.groupCollection.each(this.addOne,this),this.$table.show(),this.renderPaginator()):this.$emptyTip.show()},renderPaginator:function(){this.groupCollection.state.has_next_page?this.$jsNext.show():this.$jsNext.hide(),this.groupCollection.state.current_page>1?this.$jsPrevious.show():this.$jsPrevious.hide()},addOne:function(e,t,i){var n=new s({model:e});i.prepend?this.$tableBody.prepend(n.render().el):this.$tableBody.append(n.render().el)}})}),define("sysadmin-app/collection/search-groups",["underscore","backbone","common","sysadmin-app/models/group"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,url:function(){return i.getUrl({name:"admin-groups"})},parse:function(e){return this.search_name=e.name,e.groups}})}),define("sysadmin-app/views/search-groups",["jquery","underscore","backbone","common","sysadmin-app/views/group","sysadmin-app/collection/search-groups"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"search-groups",template:t.template(e("#search-groups-tmpl").html()),initialize:function(){this.groupCollection=new a,this.listenTo(this.groupCollection,"add",this.addOne),this.listenTo(this.groupCollection,"reset",this.reset),this.render()},render:function(){this.$el.append(this.template()),this.$form=this.$("#search-group-form"),this.$name=e('[name="name"]',this.$form),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips")},events:{"submit #search-group-form":"formSubmit"},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent(t)},getContent:function(e){this.initPage();var t=this;this.groupCollection.fetch({data:e,cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){t.$loadingTip.hide()}})},reset:function(){var e=this.groupCollection.search_name;app.router.navigate("#search-groups/?name="+encodeURIComponent(e)),this.$name.val(e),this.$loadingTip.hide(),this.groupCollection.length>0?(this.groupCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show()},addOne:function(e){var t=new s({model:e});this.$tableBody.append(t.render().el)},formSubmit:function(){var t=e.trim(this.$name.val());return!!t&&(this.getContent({name:t}),!1)}})}),define("sysadmin-app/views/group-repo",["jquery","underscore","backbone","common","app/views/widgets/hl-item-view"],function(e,t,i,n,s){"use strict";return s.extend({tagName:"tr",template:t.template(e("#group-library-item-tmpl").html()),events:{"click .repo-unshare-btn":"unshareGroupLibrary"},initialize:function(){s.prototype.initialize.call(this)},unshareGroupLibrary:function(){var t=this,i=this.model.get("name"),s=gettext("Unshare Library"),a=gettext("Are you sure you want to unshare %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-group-library",group_id:t.model.get("group_id"),repo_id:t.model.get("repo_id")}),type:"DELETE",beforeSend:n.prepareCSRFToken,dataType:"json",success:function(){t.$el.remove();var e=gettext("Successfully unshared library {placeholder}").replace("{placeholder}",i);n.feedback(e,"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},render:function(){var e=this.model.toJSON(),t=n.isHiDPI()?48:24,i=this.model.getIconUrl(t);return e.icon_url=i,e.icon_title=this.model.getIconTitle(),e.formatted_size=n.fileSizeFormat(e.size,1),e.enable_sys_admin_view_repo=app.pageOptions.enable_sys_admin_view_repo,e.is_pro=app.pageOptions.is_pro,this.$el.html(this.template(e)),this}})}),define("sysadmin-app/views/group-repos",["jquery","underscore","backbone","common","sysadmin-app/views/group-repo","sysadmin-app/collection/group-repos"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-groups",tabNavTemplate:t.template(e("#groups-tabnav-tmpl").html()),template:t.template(e("#group-libraries-tmpl").html()),initialize:function(){this.groupRepoCollection=new a,this.listenTo(this.groupRepoCollection,"add",this.addOne),this.listenTo(this.groupRepoCollection,"reset",this.reset)},render:function(){var t=this.groupRepoCollection.group_id;this.$el.html(this.tabNavTemplate({cur_tab:"libs",group_id:t})+this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips")},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.groupRepoCollection.setGroupId(t),this.render(),this.showGroupLibraries()},showGroupLibraries:function(){this.initPage();this.groupRepoCollection.fetch({cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){this.$loadingTip.hide(),this.groupRepoCollection.length>0?(this.groupRepoCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show(),this.$(".path-bar").append(this.groupRepoCollection.group_name)},addOne:function(e){var t=new s({model:e});this.$tableBody.append(t.render().el)}})}),define("sysadmin-app/models/group-member",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({})}),define("sysadmin-app/collection/group-members",["underscore","backbone","common","sysadmin-app/models/group-member"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,setGroupId:function(e){this.group_id=e},parse:function(e){return this.group_name=e.group_name,e.members},url:function(){return i.getUrl({name:"admin-group-members",group_id:this.group_id})}})}),define("sysadmin-app/views/group-members",["jquery","underscore","backbone","common","sysadmin-app/views/group-member","sysadmin-app/collection/group-members"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-groups",tabNavTemplate:t.template(e("#groups-tabnav-tmpl").html()),template:t.template(e("#group-members-tmpl").html()),addMemberFormTemplate:t.template(e("#add-group-member-form-tmpl").html()),initialize:function(){this.groupMemberCollection=new a,this.listenTo(this.groupMemberCollection,"add",this.addOne),this.listenTo(this.groupMemberCollection,"reset",this.reset)},events:{"click #js-add-group-member":"addGroupMember"},addGroupMember:function(){var t=e(this.addMemberFormTemplate()),i=this;return t.modal(),e("#simplemodal-container").css({height:"auto",width:"auto"}),e('[name="email"]',t).select2(e.extend(n.contactInputOptionsForSelect2(),{width:"275px",containerCss:{"margin-bottom":"5px"},placeholder:gettext("Search users or enter emails and press Enter")})),t.on("submit",function(){var s=i.groupMemberCollection.group_id,a=e.trim(e('[name="email"]',t).val()),r=e(".error",t),o=e('[type="submit"]',t);return a?(r.hide(),n.disableButton(o),e.ajax({url:n.getUrl({name:"admin-group-members",group_id:s}),type:"POST",dataType:"json",beforeSend:n.prepareCSRFToken,traditional:!0,data:{email:a.split(",")},success:function(t){t.success.length>0&&i.groupMemberCollection.add(t.success,{prepend:!0});var s="";t.failed.length>0?(e(t.failed).each(function(e,t){s+=n.HTMLescape(t.email)+": "+n.HTMLescape(t.error_msg)+"<br />"}),r.html(s).show(),n.enableButton(o)):n.closeModal()},error:function(e,t,i){var s=n.prepareAjaxErrorMsg(e);r.html(s).show(),n.enableButton(o)}}),!1):(r.html(gettext("It is required.")).show(),!1)}),!1},render:function(){var t=this.groupMemberCollection.group_id;this.$el.html(this.tabNavTemplate({cur_tab:"members",group_id:t})+this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips")},initPage:function(){this.$table.hide(),this.$tableBody.empty(),this.$loadingTip.show(),this.$emptyTip.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.groupMemberCollection.setGroupId(t),this.render(),this.showGroupMembers()},showGroupMembers:function(){this.initPage();this.groupMemberCollection.fetch({cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")}})},reset:function(){this.$loadingTip.hide(),this.groupMemberCollection.length>0?(this.groupMemberCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show(),this.$(".path-bar").append(this.groupMemberCollection.group_name)},addOne:function(e,t,i){var n=new s({model:e});i.prepend?this.$tableBody.prepend(n.render().el):this.$tableBody.append(n.render().el)}})}),define("sysadmin-app/views/admin-operation-log",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#admin-log-item-tmpl").html()),events:{},initialize:function(){a.prototype.initialize.call(this)},render:function(){var e={email:this.model.get("email")},t=s(this.model.get("datetime"));e.time=t.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(t);var i=this.model.get("detail"),a=function(e){return app.config.siteRoot+"useradmin/info/"+encodeURIComponent(e)+"/"};switch(e.admin_user_url=a(e.email),this.model.get("operation")){case"repo_create":e.op_title=gettext("Create Library"),e.op_details=gettext("Created library {library_name} with {owner} as its owner").replace("{owner}",'<a href="'+a(i.owner)+'">'+n.HTMLescape(i.owner)+"</a>"),app.pageOptions.is_pro&&app.pageOptions.enable_sys_admin_view_repo?e.op_details=e.op_details.replace("{library_name}",'<a href="#libs/'+encodeURIComponent(i.id)+'/">'+n.HTMLescape(i.name)+"</a>"):e.op_details=e.op_details.replace("{library_name}",'<span class="bold" title="'+i.id+'">'+n.HTMLescape(i.name)+"</span>");break;case"repo_delete":e.op_title=gettext("Delete Library"),e.op_details=gettext("Deleted library {library_name}").replace("{library_name}",'<span class="bold" title="'+i.id+'">'+n.HTMLescape(i.name)+"</span>");break;case"repo_transfer":e.op_title=gettext("Transfer Library"),e.op_details=gettext("Transferred library {library_name} from {user_from} to {user_to}").replace("{user_from}",'<a href="'+a(i.from)+'">'+n.HTMLescape(i.from)+"</a>").replace("{user_to}",'<a href="'+a(i.to)+'">'+n.HTMLescape(i.to)+"</a>"),app.pageOptions.is_pro&&app.pageOptions.enable_sys_admin_view_repo?e.op_details=e.op_details.replace("{library_name}",'<a href="#libs/'+encodeURIComponent(i.id)+'/">'+n.HTMLescape(i.name)+"</a>"):e.op_details=e.op_details.replace("{library_name}",'<span class="bold" title="'+i.id+'">'+n.HTMLescape(i.name)+"</span>");break;case"group_create":e.op_title=gettext("Create Group"),e.op_details=gettext("Created group {group_name}").replace("{group_name}",'<a href="#groups/'+encodeURIComponent(i.id)+'/">'+n.HTMLescape(i.name)+"</a>");break;case"group_transfer":e.op_title=gettext("Transfer Group"),e.op_details=gettext("Transferred group {group_name} from {user_from} to {user_to}").replace("{group_name}",'<a href="#groups/'+encodeURIComponent(i.id)+'/">'+n.HTMLescape(i.name)+"</a>").replace("{user_from}",'<a href="'+a(i.from)+'">'+n.HTMLescape(i.from)+"</a>").replace("{user_to}",'<a href="'+a(i.to)+'">'+n.HTMLescape(i.to)+"</a>");break;case"group_delete":e.op_title=gettext("Delete Group"),e.op_details=gettext("Deleted group {group_name}").replace("{group_name}",'<span class="bold" title="'+i.id+'">'+n.HTMLescape(i.name)+"</span>");break;case"user_add":e.op_title=gettext("Add User"),e.op_details=gettext("Added user {user}").replace("{user}",'<a href="'+a(i.email)+'">'+n.HTMLescape(i.email)+"</a>");break;case"user_delete":e.op_title=gettext("Delete User"),e.op_details=gettext("Deleted user {user}").replace("{user}",'<span class="bold">'+n.HTMLescape(i.email)+"</span>")}return this.$el.html(this.template(e)),this}})}),define("sysadmin-app/models/admin-operation-log",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({})}),define("sysadmin-app/collection/admin-operation-logs",["underscore","backbone.paginator","common","sysadmin-app/models/admin-operation-log"],function(e,t,i,n){"use strict";return Backbone.PageableCollection.extend({model:n,url:function(){return i.getUrl({name:"admin-operation-logs"})},state:{firstPage:1,pageSize:100},queryParams:{currentPage:"page",pageSize:"per_page",totalPages:null,totalRecords:null},parseState:function(e){return{totalRecords:e.total_count}},parseRecords:function(e){return e.data}})}),define("sysadmin-app/views/admin-operation-logs",["jquery","underscore","backbone","common","sysadmin-app/views/admin-operation-log","sysadmin-app/collection/admin-operation-logs"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-logs",template:t.template(e("#admin-operation-logs-tmpl").html()),initialize:function(){this.adminOperationLogCollection=new a,this.listenTo(this.adminOperationLogCollection,"add",this.addOne),this.listenTo(this.adminOperationLogCollection,"reset",this.reset),this.render()},render:function(){this.$el.html(this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next")},events:{"click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},getNextPage:function(){return this.initPage(),this.adminOperationLogCollection.getNextPage({reset:!0}),!1},getPreviousPage:function(){return this.initPage(),this.adminOperationLogCollection.getPreviousPage({reset:!0}),!1},initPage:function(){this.$loadingTip.show(),this.$table.hide(),this.$tableBody.empty(),this.$emptyTip.hide(),this.$jsNext.hide(),this.$jsPrevious.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent()},renderPaginator:function(){this.adminOperationLogCollection.hasNextPage()?this.$jsNext.show():this.$jsNext.hide(),this.adminOperationLogCollection.hasPreviousPage()?this.$jsPrevious.show():this.$jsPrevious.hide()},getContent:function(){this.initPage();var e=this,t=parseInt(this.option.current_page)||1,i=parseInt(this.adminOperationLogCollection.state.firstPage),s=parseInt(this.adminOperationLogCollection.state.totalPages);i<=t&&t<=s?this.adminOperationLogCollection.getPage(t).done(function(){e.$loadingTip.hide();var t=e.adminOperationLogCollection.state.currentPage;app.router.navigate("admin-operation-logs/?page="+t),e.adminOperationLogCollection.length>0?e.$table.show():e.$emptyTip.show(),e.renderPaginator()}):(e.adminOperationLogCollection.state.currentPage=1,this.adminOperationLogCollection.fetch({cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){e.$loadingTip.hide()}}))},addOne:function(e){var t=new s({model:e});this.$tableBody.append(t.render().el)},reset:function(){this.$loadingTip.hide();var e=this.adminOperationLogCollection.state.currentPage;app.router.navigate("admin-operation-logs/?page="+e),this.adminOperationLogCollection.length>0?(this.adminOperationLogCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show(),this.renderPaginator()}})}),define("sysadmin-app/views/admin-login-log",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#admin-login-log-item-tmpl").html()),events:{},initialize:function(){a.prototype.initialize.call(this)},render:function(){var e={email:this.model.get("email"),login_ip:this.model.get("login_ip"),login_success:this.model.get("login_success")},t=s(this.model.get("login_time"));e.time=t.format("LLLL"),e.time_from_now=n.getRelativeTimeStr(t);return e.admin_user_url=function(e){return app.config.siteRoot+"useradmin/info/"+encodeURIComponent(e)+"/"}(e.email),this.$el.html(this.template(e)),this}})}),define("sysadmin-app/models/admin-login-log",["underscore","backbone","common"],function(e,t,i){
"use strict";return t.Model.extend({})}),define("sysadmin-app/collection/admin-login-logs",["underscore","backbone.paginator","common","sysadmin-app/models/admin-login-log"],function(e,t,i,n){"use strict";return Backbone.PageableCollection.extend({model:n,url:function(){return i.getUrl({name:"admin-login-logs"})},state:{firstPage:1,pageSize:100},queryParams:{currentPage:"page",pageSize:"per_page",totalPages:null,totalRecords:null},parseState:function(e){return{totalRecords:e.total_count}},parseRecords:function(e){return e.data}})}),define("sysadmin-app/views/admin-login-logs",["jquery","underscore","backbone","common","sysadmin-app/views/admin-login-log","sysadmin-app/collection/admin-login-logs"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-login-logs",template:t.template(e("#admin-login-logs-tmpl").html()),initialize:function(){this.adminLoginLogCollection=new a,this.listenTo(this.adminLoginLogCollection,"add",this.addOne),this.listenTo(this.adminLoginLogCollection,"reset",this.reset),this.render()},render:function(){this.$el.html(this.template()),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$jsPrevious=this.$(".js-previous"),this.$jsNext=this.$(".js-next")},events:{"click #paginator .js-next":"getNextPage","click #paginator .js-previous":"getPreviousPage"},getNextPage:function(){return this.initPage(),this.adminLoginLogCollection.getNextPage({reset:!0}),!1},getPreviousPage:function(){return this.initPage(),this.adminLoginLogCollection.getPreviousPage({reset:!0}),!1},initPage:function(){this.$loadingTip.show(),this.$table.hide(),this.$tableBody.empty(),this.$emptyTip.hide(),this.$jsNext.hide(),this.$jsPrevious.hide()},hide:function(){this.$el.detach(),this.attached=!1},show:function(t){this.option=t,this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.getContent()},renderPaginator:function(){this.adminLoginLogCollection.hasNextPage()?this.$jsNext.show():this.$jsNext.hide(),this.adminLoginLogCollection.hasPreviousPage()?this.$jsPrevious.show():this.$jsPrevious.hide()},getContent:function(){this.initPage();var e=this,t=parseInt(this.option.current_page)||1,i=parseInt(this.adminLoginLogCollection.state.firstPage),s=parseInt(this.adminLoginLogCollection.state.totalPages);i<=t&&t<=s?this.adminLoginLogCollection.getPage(t).done(function(){e.$loadingTip.hide();var t=e.adminLoginLogCollection.state.currentPage;app.router.navigate("admin-login-logs/?page="+t),e.adminLoginLogCollection.length>0?e.$table.show():e.$emptyTip.show(),e.renderPaginator()}):(e.adminLoginLogCollection.state.currentPage=1,this.adminLoginLogCollection.fetch({cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){e.$loadingTip.hide()}}))},addOne:function(e){var t=new s({model:e});this.$tableBody.append(t.render().el)},reset:function(){this.$loadingTip.hide();var e=this.adminLoginLogCollection.state.currentPage;app.router.navigate("admin-login-logs/?page="+e),this.adminLoginLogCollection.length>0?(this.adminLoginLogCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show(),this.renderPaginator()}})}),define("sysadmin-app/views/device-trusted-ipaddress",["jquery","underscore","backbone","common","moment","app/views/widgets/hl-item-view"],function(e,t,i,n,s,a){"use strict";return a.extend({tagName:"tr",template:t.template(e("#device-trusted-ipaddress-item-tmpl").html()),events:{"click .trusted-ip-delete-btn":"deleteIP"},initialize:function(){a.prototype.initialize.call(this)},deleteIP:function(){var t=this,i=this.model.get("ip"),s=gettext("Delete"),a=gettext("Are you sure you want to delete %s ?").replace("%s",'<span class="op-target ellipsis ellipsis-op-target" title="'+n.HTMLescape(i)+'">'+n.HTMLescape(i)+"</span>"),r=function(){e.ajax({url:n.getUrl({name:"admin-device-trusted-ip"}),type:"DELETE",cache:!1,data:{ipaddress:i},dataType:"JSON",beforeSend:n.prepareCSRFToken,success:function(e){t.$el.remove(),n.feedback(gettext("Successfully deleted 1 item."),"success")},error:function(e,t,i){n.ajaxErrorHandler(e,t,i)},complete:function(){e.modal.close()}})};return n.showConfirm(s,a,r),!1},render:function(){var e=this.model.toJSON();return this.$el.html(this.template(e)),this}})}),define("sysadmin-app/models/device-trusted-ipaddress",["underscore","backbone","common"],function(e,t,i){"use strict";return t.Model.extend({})}),define("sysadmin-app/collection/device-trusted-ipaddresses",["underscore","backbone","common","sysadmin-app/models/device-trusted-ipaddress"],function(e,t,i,n){"use strict";return t.Collection.extend({model:n,url:function(){return i.getUrl({name:"admin-device-trusted-ip"})}})}),define("sysadmin-app/views/device-trusted-ipaddresses",["jquery","underscore","backbone","common","sysadmin-app/views/device-trusted-ipaddress","sysadmin-app/collection/device-trusted-ipaddresses"],function(e,t,i,n,s,a){"use strict";return i.View.extend({id:"admin-device-trusted-ip",template:t.template(e("#device-trusted-ipaddresses-tmpl").html()),ipAddFormtemplate:t.template(e("#add-trusted-ipaddress-form-tmpl").html()),initialize:function(){this.deviceTrustedIPAddressCollection=new a,this.listenTo(this.deviceTrustedIPAddressCollection,"add",this.addOne),this.listenTo(this.deviceTrustedIPAddressCollection,"reset",this.reset),this.render()},events:{"click #add-trusted-ip-btn":"showAddTrustedIpForm"},showAddTrustedIpForm:function(){var t=e(this.ipAddFormtemplate()),i=this.deviceTrustedIPAddressCollection;return t.modal(),e("#simplemodal-container").css({width:"auto",height:"auto"}),t.on("submit",function(){var s=e("add-ip-form-btn",t),a=e.trim(e("#ipaddress",t).val()),r=e(".error",t);return a?(r.hide(),n.disableButton(s),i.create({ipaddress:a},{prepend:!0,wait:!0,success:function(){1==i.length&&i.reset(i.models),n.closeModal()},error:function(e,t,i){var a=n.prepareAjaxErrorMsg(t);r.html(a).show(),n.enableButton(s)}}),!1):(r.html(gettext("It is required.")).show(),False)}),!1},render:function(){this.$el.html(this.template({cur_tab:"settings",is_pro:app.pageOptions.is_pro})),this.$table=this.$("table"),this.$tableBody=e("tbody",this.$table),this.$loadingTip=this.$(".loading-tip"),this.$emptyTip=this.$(".empty-tips"),this.$error=this.$(".error")},hide:function(){this.$el.detach(),this.attached=!1},show:function(){this.attached||(this.attached=!0,e("#right-panel").html(this.$el)),this.showAdminDeviceTrustedIP()},initPage:function(){this.$loadingTip.show(),this.$table.hide(),this.$tableBody.empty(),this.$error.hide(),this.$emptyTip.hide()},showAdminDeviceTrustedIP:function(){this.initPage();var e=this;this.deviceTrustedIPAddressCollection.fetch({cache:!1,reset:!0,error:function(e,t,i){var s=n.prepareCollectionFetchErrorMsg(e,t,i);n.feedback(s,"error")},complete:function(){e.$loadingTip.hide()}})},reset:function(){this.initPage(),this.$loadingTip.hide(),this.deviceTrustedIPAddressCollection.length>0?(this.deviceTrustedIPAddressCollection.each(this.addOne,this),this.$table.show()):this.$emptyTip.show()},addOne:function(e,t,i){var n=new s({model:e});i.prepend?this.$tableBody.prepend(n.render().el):this.$tableBody.append(n.render().el)}})}),define("app/views/widgets/popover",["jquery","underscore","backbone","common"],function(e,t,i,n){"use strict";return e(document).on("click",function(e){var t=app.ui.currentPopover,i=e.target||event.srcElement;return!t||(t.$el.is(i)||t.$el.find("*").is(i)||t.hide(),!0)}),e(document).on("keydown",function(e){if(27==e.keyCode){var t=app.ui.currentPopover;t&&t.hide()}}),e(window).on("resize",function(){var e=app.ui.currentPopover;if(!e)return!0;e.setConMaxHeight()}),i.View.extend({initialize:function(e){this.$el.on("click",".js-close",t.bind(this.hide,this))},setConMaxHeight:function(){this.$(".sf-popover-con").css({"max-height":e(window).height()-this.$el.offset().top-this.$(".sf-popover-hd").outerHeight(!0)-2})},hide:function(){return app.ui.currentPopover=null,this.$el.detach(),!1},show:function(){app.ui.currentPopover=this,this.showContent(),this.setConMaxHeight()},toggle:function(){return app.ui.currentPopover?app.ui.currentPopover!=this?(app.ui.currentPopover.hide(),this.show()):this.hide():this.show(),!1}})}),define("app/views/account",["jquery","underscore","backbone","common","app/views/widgets/popover"],function(e,t,i,n,s){"use strict";return s.extend({id:"user-info-popup",className:"sf-popover account-popup",template:t.template(e("#user-info-popup-tmpl").html()),initialize:function(t){s.prototype.initialize.call(this),this.render(),this.$loadingTip=this.$(".loading-tip"),this.$error=this.$(".error"),this.$space=this.$("#space-traffic"),this.$account=e("#account");var i=this;e(".account-toggle").on("click",function(){return i.toggle(),!1})},render:function(){return this.$el.html(this.template()),this},showContent:function(){var t=this;this.$error.hide(),this.$loadingTip.show(),this.$space.addClass("hide"),e.ajax({url:n.getUrl({name:"space_and_traffic"}),dataType:"json",cache:!1,success:function(e){t.$loadingTip.hide(),t.$space.html(e.html).removeClass("hide")},error:function(e,i,s){t.$loadingTip.hide();var a=n.prepareAjaxErrorMsg(e);t.$error.html(a).show()}}),this.$account.append(this.$el)}})}),define("sysadmin-app/router",["jquery","backbone","common","sysadmin-app/views/side-nav","sysadmin-app/views/dashboard","sysadmin-app/views/desktop-devices","sysadmin-app/views/mobile-devices","sysadmin-app/views/device-errors","sysadmin-app/views/repos","sysadmin-app/views/search-repos","sysadmin-app/views/system-repo","sysadmin-app/views/trash-repos","sysadmin-app/views/search-trash-repos","sysadmin-app/views/dir","sysadmin-app/views/address-book","sysadmin-app/views/address-book-group","sysadmin-app/views/groups","sysadmin-app/views/search-groups","sysadmin-app/views/group-repos","sysadmin-app/views/group-members","sysadmin-app/views/admin-operation-logs","sysadmin-app/views/admin-login-logs","sysadmin-app/views/device-trusted-ipaddresses","app/views/account"],function(e,t,i,n,s,a,r,o,d,l,u,c,h,p,m,_,f,g,y,Y,L,v,M,b){"use strict";return t.Router.extend({routes:{"":"showDashboard","dashboard/":"showDashboard","desktop-devices/":"showDesktopDevices","mobile-devices/":"showMobileDevices","device-errors/":"showDeviceErrors","device-trusted-ip/":"showDeviceTrustedIP","all-libs/":"showLibraries","search-libs/":"showSearchLibraries","system-lib/":"showSystemLibrary","trash-libs/":"showTrashLibraries","search-trash-libs/":"showSearchTrashLibraries","libs/:repo_id(/*path)":"showLibraryDir","address-book/":"showAddressBook","address-book/groups/:group_id/":"showAddressBookGroup","groups/":"showGroups","search-groups/":"showSearchGroups","groups/:group_id/":"showGroupLibraries","groups/:group_id/libs/":"showGroupLibraries","groups/:group_id/members/":"showGroupMembers","admin-operation-logs/":"showAdminOperationLogs","admin-login-logs/":"showAdminLoginLogs","*actions":"showDashboard"},initialize:function(){e("#initial-loading").hide().next(".row").removeClass("hide"),i.prepareApiCsrf(),i.initLocale(),this.accountView=new b,this.sideNavView=new n,this.dashboardView=new s,this.desktopDevicesView=new a,this.mobileDevicesView=new r,this.deviceErrorsView=new o,this.deviceTrustedIPView=new M,this.reposView=new d,this.searchReposView=new l,this.systemReposView=new u,this.trashReposView=new c,this.searchTrashReposView=new h,this.dirView=new p,this.addressBookView=new m,this.addressBookGroupView=new _,this.groupsView=new f,this.searchGroupsView=new g,this.groupReposView=new y,this.groupMembersView=new Y,this.adminOperationLogsview=new L,this.adminLoginLogsView=new v,app.ui={sideNavView:this.sideNavView,accountView:this.accountView},this.currentView=this.dashboardView,e("#info-bar .close").on("click",i.closeTopNoticeBar)},switchCurrentView:function(e){this.currentView!=e&&(this.currentView.hide(),this.currentView=e)},showDashboard:function(){if(!app.pageOptions.admin_permissions.can_view_system_info)return!1;this.switchCurrentView(this.dashboardView),this.sideNavView.setCurTab("dashboard"),this.dashboardView.show()},showDesktopDevices:function(e){if(!app.pageOptions.is_default_admin)return this.showDashboard(),!1;var t=window.location.href,i=t.match(/.*?page=(\d+)/);if(i)var e=i[1];else var e=null;this.switchCurrentView(this.desktopDevicesView),this.sideNavView.setCurTab("devices"),this.desktopDevicesView.show({current_page:e})},showMobileDevices:function(e){if(!app.pageOptions.is_default_admin)return this.showDashboard(),!1;var t=window.location.href,i=t.match(/.*?page=(\d+)/);e=i?i[1]:null,this.switchCurrentView(this.mobileDevicesView),this.sideNavView.setCurTab("devices"),this.mobileDevicesView.show({current_page:e})},showDeviceErrors:function(){if(!app.pageOptions.is_default_admin)return this.showDashboard(),!1;this.switchCurrentView(this.deviceErrorsView),this.sideNavView.setCurTab("devices"),this.deviceErrorsView.show()},showDeviceTrustedIP:function(){this.switchCurrentView(this.deviceTrustedIPView),this.sideNavView.setCurTab("devices"),this.deviceTrustedIPView.show()},showLibraries:function(){if(!app.pageOptions.admin_permissions.can_manage_library)return this.showDashboard(),!1;var e=location.href.match(/.*?page=(\d+)/),t=e?e[1]:1;this.switchCurrentView(this.reposView),this.sideNavView.setCurTab("libraries",{option:"all"}),this.reposView.show({page:t})},showSearchLibraries:function(){if(!app.pageOptions.admin_permissions.can_manage_library)return this.showDashboard(),!1;var e=location.href.match(/.*?name=(.*)&owner=(.*)/),t=e?e[1]:"",i=e?e[2]:"";this.switchCurrentView(this.searchReposView),this.sideNavView.setCurTab("libraries",{option:"search"}),this.searchReposView.show({name:decodeURIComponent(t),owner:decodeURIComponent(i)})},showLibraryDir:function(e,t){if(!app.pageOptions.admin_permissions.can_manage_library)return this.showDashboard(),!1;t=t?"/"+t:"/",this.switchCurrentView(this.dirView),this.dirView.show(e,t),this.sideNavView.setCurTab("libraries",{option:""})},showSystemLibrary:function(){if(!app.pageOptions.admin_permissions.can_manage_library)return this.showDashboard(),!1;this.switchCurrentView(this.systemReposView),this.sideNavView.setCurTab("libraries",{option:"system"}),this.systemReposView.show()},showTrashLibraries:function(){if(!app.pageOptions.admin_permissions.can_manage_library)return this.showDashboard(),!1;var e=location.href.match(/.*?page=(\d+)/),t=e?e[1]:1;this.switchCurrentView(this.trashReposView),this.sideNavView.setCurTab("libraries",{option:"trash"}),this.trashReposView.show({page:t})},showSearchTrashLibraries:function(){if(!app.pageOptions.admin_permissions.can_manage_library)return this.showDashboard(),!1;var e=location.href.match(/.*?name=(.*)/),t=e?e[1]:"";this.switchCurrentView(this.searchTrashReposView),this.sideNavView.setCurTab("libraries",{option:"trash"}),this.searchTrashReposView.show({owner:decodeURIComponent(t)})},showGroups:function(){if(!app.pageOptions.admin_permissions.can_manage_group)return this.showDashboard(),!1;var e=location.href.match(/.*?page=(\d+)/),t=e?e[1]:1;this.switchCurrentView(this.groupsView),this.sideNavView.setCurTab("groups"),this.groupsView.show({page:t})},showSearchGroups:function(){if(!app.pageOptions.admin_permissions.can_manage_group)return this.showDashboard(),!1;var e=location.href.match(/.*?name=(.*)/),t=e?e[1]:"";this.switchCurrentView(this.searchGroupsView),this.sideNavView.setCurTab("groups",{option:"search"}),this.searchGroupsView.show({name:decodeURIComponent(t)})},showGroupLibraries:function(e){if(!app.pageOptions.admin_permissions.can_manage_group)return this.showDashboard(),!1;this.switchCurrentView(this.groupReposView),this.sideNavView.setCurTab("groups"),this.groupReposView.show(e)},showGroupMembers:function(e){if(!app.pageOptions.admin_permissions.can_manage_group)return this.showDashboard(),!1;this.switchCurrentView(this.groupMembersView),this.sideNavView.setCurTab("groups"),this.groupMembersView.show(e)},showAddressBook:function(){if(!app.pageOptions.is_pro||!app.pageOptions.admin_permissions.can_manage_group)return this.showDashboard(),!1;this.switchCurrentView(this.addressBookView),this.sideNavView.setCurTab("address-book"),this.addressBookView.show()},showAddressBookGroup:function(e){if(!app.pageOptions.is_pro||!app.pageOptions.admin_permissions.can_manage_group)return this.showDashboard(),!1;this.switchCurrentView(this.addressBookGroupView),this.sideNavView.setCurTab("address-book"),this.addressBookGroupView.show({group_id:e})},showAdminOperationLogs:function(){if(!app.pageOptions.admin_permissions.can_view_admin_log)return this.showDashboard(),!1;var e=window.location.href,t=e.match(/.*?page=(\d+)/);if(t)var i=t[1];else var i=null;this.switchCurrentView(this.adminOperationLogsview),this.sideNavView.setCurTab("admin-logs"),this.adminOperationLogsview.show({current_page:i})},showAdminLoginLogs:function(){var e=window.location.href,t=e.match(/.*?page=(\d+)/);if(t)var i=t[1];else var i=null;this.switchCurrentView(this.adminLoginLogsView),this.sideNavView.setCurTab("admin-logs"),this.adminLoginLogsView.show({current_page:i})}})}),define("sysadmin-app/main",["sysadmin-app/router"],function(e){app.router=new e,Backbone.history.start()}),require(["./common"],function(e){require(["sysadmin-app/main"])}),define("sysadmin-main",function(){});