Files
b2b.redline.com.pl/modules/newsletterpro/views/js/app.min.js
2025-06-24 14:14:35 +02:00

487 lines
1.3 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i:i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=248)}([function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function s(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function d(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function p(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function m(e,t,n,i){return Tt(e,t,n,i,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function _(e){if(null==e._isValid){var t=f(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),s=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(s=s&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return s;e._isValid=s}return e._isValid}function g(e){var t=m(NaN);return null!=e?p(f(t),e):f(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var v=s.momentProperties=[],y=!1;function b(e,t){var n,i,s;if(d(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),d(t._i)||(e._i=t._i),d(t._f)||(e._f=t._f),d(t._l)||(e._l=t._l),d(t._strict)||(e._strict=t._strict),d(t._tzm)||(e._tzm=t._tzm),d(t._isUTC)||(e._isUTC=t._isUTC),d(t._offset)||(e._offset=t._offset),d(t._pf)||(e._pf=f(t)),d(t._locale)||(e._locale=t._locale),v.length>0)for(n=0;n<v.length;n++)d(s=t[i=v[n]])||(e[i]=s);return e}function w(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,s.updateOffset(this),y=!1)}function M(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===s.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function L(e,t){var n=!0;return p((function(){if(null!=s.deprecationHandler&&s.deprecationHandler(null,e),n){var i,a,r,l=[];for(a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(r in i+="\n["+a+"] ",arguments[0])o(arguments[0],r)&&(i+=r+": "+arguments[0][r]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var T,S={};function D(e,t){null!=s.deprecationHandler&&s.deprecationHandler(e,t),S[e]||(k(t),S[e]=!0)}function Y(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function x(e,t){var n,i=p({},e);for(n in t)o(t,n)&&(r(e[n])&&r(t[n])?(i[n]={},p(i[n],e[n]),p(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)o(e,n)&&!o(t,n)&&r(e[n])&&(i[n]=p({},i[n]));return i}function P(e){null!=e&&this.set(e)}function C(e,t,n){var i=""+Math.abs(e),s=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+i}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null,T=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,N=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,E={},H={};function I(e,t,n,i){var s=i;"string"==typeof i&&(s=function(){return this[i]()}),e&&(H[e]=s),t&&(H[t[0]]=function(){return C(s.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function A(e,t){return e.isValid()?(t=O(t,e.localeData()),E[t]=E[t]||function(e){var t,n,i,s=e.match(j);for(t=0,n=s.length;t<n;t++)H[s[t]]?s[t]=H[s[t]]:s[t]=(i=s[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,a="";for(i=0;i<n;i++)a+=Y(s[i])?s[i].call(t,e):s[i];return a}}(t),E[t](e)):e.localeData().invalidDate()}function O(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(N.lastIndex=0;n>=0&&N.test(e);)e=e.replace(N,i),N.lastIndex=0,n-=1;return e}var W={};function F(e,t){var n=e.toLowerCase();W[n]=W[n+"s"]=W[t]=e}function z(e){return"string"==typeof e?W[e]||W[e.toLowerCase()]:void 0}function R(e){var t,n,i={};for(n in e)o(e,n)&&(t=z(n))&&(i[t]=e[n]);return i}var B={};function V(e,t){B[e]=t}function q(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function G(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function $(e,t){return function(n){return null!=n?(K(this,e,n),s.updateOffset(this,t),this):J(this,e)}}function J(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=G(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,Q=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,ie=/\d\d?/,se=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,re=/\d{1,3}/,oe=/\d{1,4}/,le=/[+-]?\d{1,6}/,de=/\d+/,ce=/[+-]?\d+/,ue=/Z|[+-]\d\d:?\d\d/gi,he=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[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;function me(e,t,n){X[e]=Y(t)?t:function(e,i){return e&&n?n:t}}function fe(e,t){return o(X,e)?X[e](t._strict,t._locale):new RegExp(_e(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,s){return t||n||i||s}))))}function _e(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ge,ve={};function ye(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=G(e)}),n=0;n<e.length;n++)ve[e[n]]=i}function be(e,t){ye(e,(function(e,n,i,s){i._w=i._w||{},t(e,i._w,i,s)}))}function we(e,t,n){null!=t&&o(ve,e)&&ve[e](t,n._a,n,e)}function Me(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?q(e)?29:28:31-i%7%2}ge=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},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),I("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),F("month","M"),V("month",8),me("M",ie),me("MM",ie,Q),me("MMM",(function(e,t){return t.monthsShortRegex(e)})),me("MMMM",(function(e,t){return t.monthsRegex(e)})),ye(["M","MM"],(function(e,t){t[1]=G(e)-1})),ye(["MMM","MMMM"],(function(e,t,n,i){var s=n._locale.monthsParse(e,i,n._strict);null!=s?t[1]=s:f(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Le="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Te=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Se=pe,De=pe;function Ye(e,t,n){var i,s,a,r=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=m([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(s=ge.call(this._shortMonthsParse,r))?s:null:-1!==(s=ge.call(this._longMonthsParse,r))?s:null:"MMM"===t?-1!==(s=ge.call(this._shortMonthsParse,r))||-1!==(s=ge.call(this._longMonthsParse,r))?s:null:-1!==(s=ge.call(this._longMonthsParse,r))||-1!==(s=ge.call(this._shortMonthsParse,r))?s:null}function xe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=G(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Me(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Pe(e){return null!=e?(xe(this,e),s.updateOffset(this,!0),this):J(this,"Month")}function Ce(){function e(e,t){return t.length-e.length}var t,n,i=[],s=[],a=[];for(t=0;t<12;t++)n=m([2e3,t]),i.push(this.monthsShort(n,"")),s.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(i.sort(e),s.sort(e),a.sort(e),t=0;t<12;t++)i[t]=_e(i[t]),s[t]=_e(s[t]);for(t=0;t<24;t++)a[t]=_e(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function je(e){return q(e)?366:365}I("Y",0,0,(function(){var e=this.year();return e<=9999?C(e,4):"+"+e})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),F("year","y"),V("year",1),me("Y",ce),me("YY",ie,Q),me("YYYY",oe,te),me("YYYYY",le,ne),me("YYYYYY",le,ne),ye(["YYYYY","YYYYYY"],0),ye("YYYY",(function(e,t){t[0]=2===e.length?s.parseTwoDigitYear(e):G(e)})),ye("YY",(function(e,t){t[0]=s.parseTwoDigitYear(e)})),ye("Y",(function(e,t){t[0]=parseInt(e,10)})),s.parseTwoDigitYear=function(e){return G(e)+(G(e)>68?1900:2e3)};var Ne=$("FullYear",!0);function Ee(e,t,n,i,s,a,r){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,i,s,a,r),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,s,a,r),o}function He(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ie(e,t,n){var i=7+t-n;return-(7+He(e,0,i).getUTCDay()-t)%7+i-1}function Ae(e,t,n,i,s){var a,r,o=1+7*(t-1)+(7+n-i)%7+Ie(e,i,s);return o<=0?r=je(a=e-1)+o:o>je(e)?(a=e+1,r=o-je(e)):(a=e,r=o),{year:a,dayOfYear:r}}function Oe(e,t,n){var i,s,a=Ie(e.year(),t,n),r=Math.floor((e.dayOfYear()-a-1)/7)+1;return r<1?i=r+We(s=e.year()-1,t,n):r>We(e.year(),t,n)?(i=r-We(e.year(),t,n),s=e.year()+1):(s=e.year(),i=r),{week:i,year:s}}function We(e,t,n){var i=Ie(e,t,n),s=Ie(e+1,t,n);return(je(e)-i+s)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),F("week","w"),F("isoWeek","W"),V("week",5),V("isoWeek",5),me("w",ie),me("ww",ie,Q),me("W",ie),me("WW",ie,Q),be(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=G(e)})),I("d",0,"do","day"),I("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),I("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),I("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),F("day","d"),F("weekday","e"),F("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),me("d",ie),me("e",ie),me("E",ie),me("dd",(function(e,t){return t.weekdaysMinRegex(e)})),me("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),me("dddd",(function(e,t){return t.weekdaysRegex(e)})),be(["dd","ddd","dddd"],(function(e,t,n,i){var s=n._locale.weekdaysParse(e,i,n._strict);null!=s?t.d=s:f(n).invalidWeekday=e})),be(["d","e","E"],(function(e,t,n,i){t[i]=G(e)}));var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=pe,qe=pe,Ue=pe;function Ge(e,t,n){var i,s,a,r=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=m([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(s=ge.call(this._weekdaysParse,r))?s:null:"ddd"===t?-1!==(s=ge.call(this._shortWeekdaysParse,r))?s:null:-1!==(s=ge.call(this._minWeekdaysParse,r))?s:null:"dddd"===t?-1!==(s=ge.call(this._weekdaysParse,r))||-1!==(s=ge.call(this._shortWeekdaysParse,r))||-1!==(s=ge.call(this._minWeekdaysParse,r))?s:null:"ddd"===t?-1!==(s=ge.call(this._shortWeekdaysParse,r))||-1!==(s=ge.call(this._weekdaysParse,r))||-1!==(s=ge.call(this._minWeekdaysParse,r))?s:null:-1!==(s=ge.call(this._minWeekdaysParse,r))||-1!==(s=ge.call(this._weekdaysParse,r))||-1!==(s=ge.call(this._shortWeekdaysParse,r))?s:null}function $e(){function e(e,t){return t.length-e.length}var t,n,i,s,a,r=[],o=[],l=[],d=[];for(t=0;t<7;t++)n=m([2e3,1]).day(t),i=_e(this.weekdaysMin(n,"")),s=_e(this.weekdaysShort(n,"")),a=_e(this.weekdays(n,"")),r.push(i),o.push(s),l.push(a),d.push(i),d.push(s),d.push(a);r.sort(e),o.sort(e),l.sort(e),d.sort(e),this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function Je(){return this.hours()%12||12}function Ke(e,t){I(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,Je),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+Je.apply(this)+C(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+Je.apply(this)+C(this.minutes(),2)+C(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+C(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+C(this.minutes(),2)+C(this.seconds(),2)})),Ke("a",!0),Ke("A",!1),F("hour","h"),V("hour",13),me("a",Xe),me("A",Xe),me("H",ie),me("h",ie),me("k",ie),me("HH",ie,Q),me("hh",ie,Q),me("kk",ie,Q),me("hmm",se),me("hmmss",ae),me("Hmm",se),me("Hmmss",ae),ye(["H","HH"],3),ye(["k","kk"],(function(e,t,n){var i=G(e);t[3]=24===i?0:i})),ye(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ye(["h","hh"],(function(e,t,n){t[3]=G(e),f(n).bigHour=!0})),ye("hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i)),f(n).bigHour=!0})),ye("hmmss",(function(e,t,n){var i=e.length-4,s=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(s)),f(n).bigHour=!0})),ye("Hmm",(function(e,t,n){var i=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i))})),ye("Hmmss",(function(e,t,n){var i=e.length-4,s=e.length-2;t[3]=G(e.substr(0,i)),t[4]=G(e.substr(i,2)),t[5]=G(e.substr(s))}));var Ze,Qe=$("Hours",!0),et={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Le,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:Be,weekdaysShort:Re,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function st(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var i=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports)try{i=Ze._abbr,n(272)("./"+t),rt(i)}catch(e){tt[t]=null}return tt[t]}function rt(e,t){var n;return e&&((n=d(t)?lt(e):ot(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function ot(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])D("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=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new P(x(i,t)),nt[e]&&nt[e].forEach((function(e){ot(e.name,e.config)})),rt(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,i,s,a=0;a<e.length;){for(t=(s=st(e[a]).split("-")).length,n=(n=st(e[a+1]))?n.split("-"):null;t>0;){if(i=at(s.slice(0,t).join("-")))return i;if(n&&n.length>=t&&it(s,n)>=t-1)break;t--}a++}return Ze}(e)}function dt(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var ct=/^\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)?)?$/,ut=/^\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)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],mt=[["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/]],ft=/^\/?Date\((-?\d+)/i,_t=/^(?:(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}))$/,gt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vt(e){var t,n,i,s,a,r,o=e._i,l=ct.exec(o)||ut.exec(o);if(l){for(f(e).iso=!0,t=0,n=pt.length;t<n;t++)if(pt[t][1].exec(l[1])){s=pt[t][0],i=!1!==pt[t][2];break}if(null==s)return void(e._isValid=!1);if(l[3]){for(t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(l[3])){a=(l[2]||" ")+mt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!ht.exec(l[4]))return void(e._isValid=!1);r="Z"}e._f=s+(a||"")+(r||""),kt(e)}else e._isValid=!1}function yt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function bt(e){var t,n,i,s,a,r,o,l,d=_t.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(n=d[4],i=d[3],s=d[2],a=d[5],r=d[6],o=d[7],l=[yt(n),Le.indexOf(i),parseInt(s,10),parseInt(a,10),parseInt(r,10)],o&&l.push(parseInt(o,10)),t=l,!function(e,t,n){return!e||Re.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(d[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return gt[e];if(t)return 0;var i=parseInt(n,10),s=i%100;return(i-s)/100*60+s}(d[8],d[9],d[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var t,n,i,a,r,o=[];if(!e._d){for(i=function(e){var t=new Date(s.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,s,a,r,o,l,d;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,r=4,n=wt(t.GG,e._a[0],Oe(St(),1,4).year),i=wt(t.W,1),((s=wt(t.E,1))<1||s>7)&&(l=!0)):(a=e._locale._week.dow,r=e._locale._week.doy,d=Oe(St(),a,r),n=wt(t.gg,e._a[0],d.year),i=wt(t.w,d.week),null!=t.d?((s=t.d)<0||s>6)&&(l=!0):null!=t.e?(s=t.e+a,(t.e<0||t.e>6)&&(l=!0)):s=a),i<1||i>We(n,a,r)?f(e)._overflowWeeks=!0:null!=l?f(e)._overflowWeekday=!0:(o=Ae(n,i,s,a,r),e._a[0]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(r=wt(e._a[0],i[0]),(e._dayOfYear>je(r)||0===e._dayOfYear)&&(f(e)._overflowDayOfYear=!0),n=He(r,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?He:Ee).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(f(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],f(e).empty=!0;var t,n,i,a,r,o,l=""+e._i,d=l.length,c=0;for(i=O(e._f,e._locale).match(j)||[],t=0;t<i.length;t++)a=i[t],(n=(l.match(fe(a,e))||[])[0])&&((r=l.substr(0,l.indexOf(n))).length>0&&f(e).unusedInput.push(r),l=l.slice(l.indexOf(n)+n.length),c+=n.length),H[a]?(n?f(e).empty=!1:f(e).unusedTokens.push(a),we(a,n,e)):e._strict&&!n&&f(e).unusedTokens.push(a);f(e).charsLeftOver=d-c,l.length>0&&f(e).unusedInput.push(l),e._a[3]<=12&&!0===f(e).bigHour&&e._a[3]>0&&(f(e).bigHour=void 0),f(e).parsedDateParts=e._a.slice(0),f(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(o=f(e).era)&&(e._a[0]=e._locale.erasConvertYear(o,e._a[0])),Mt(e),dt(e)}else bt(e);else vt(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(dt(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,i,s,a,r,o=!1;if(0===e._f.length)return f(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)a=0,r=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],kt(t),_(t)&&(r=!0),a+=f(t).charsLeftOver,a+=10*f(t).unusedTokens.length,f(t).score=a,o?a<i&&(i=a,n=t):(null==i||a<i||r)&&(i=a,n=t,r&&(o=!0));p(e,n||t)}(e):n?kt(e):function(e){var t=e._i;d(t)?e._d=new Date(s.now()):u(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=ft.exec(e._i);null===t?(vt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:s.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Mt(e)):r(t)?function(e){if(!e._d){var t=R(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Mt(e)}}(e):c(t)?e._d=new Date(t):s.createFromInputFallback(e)}(e),_(e)||(e._d=null),e))}function Tt(e,t,n,i,s){var o,d={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(r(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=s,d._l=n,d._i=e,d._f=t,d._strict=i,(o=new w(dt(Lt(d))))._nextDay&&(o.add(1,"d"),o._nextDay=void 0),o}function St(e,t,n,i){return Tt(e,t,n,i,!1)}s.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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),s.ISO_8601=function(){},s.RFC_2822=function(){};var Dt=L("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Yt=L("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function xt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Pt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ct(e){var t=R(e),n=t.year||0,i=t.quarter||0,s=t.month||0,a=t.week||t.isoWeek||0,r=t.day||0,l=t.hour||0,d=t.minute||0,c=t.second||0,u=t.millisecond||0;this._isValid=function(e){var t,n,i=!1;for(t in e)if(o(e,t)&&(-1===ge.call(Pt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Pt.length;++n)if(e[Pt[n]]){if(i)return!1;parseFloat(e[Pt[n]])!==G(e[Pt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+u+1e3*c+6e4*d+1e3*l*60*60,this._days=+r+7*a,this._months=+s+3*i+12*n,this._data={},this._locale=lt(),this._bubble()}function jt(e){return e instanceof Ct}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Et(e,t){I(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+C(~~(e/60),2)+t+C(~~e%60,2)}))}Et("Z",":"),Et("ZZ",""),me("Z",he),me("ZZ",he),ye(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=It(he,e)}));var Ht=/([\+\-]|\d\d)/gi;function It(e,t){var n,i,s=(t||"").match(e);return null===s?null:0===(i=60*(n=((s[s.length-1]||[])+"").match(Ht)||["-",0,0])[1]+G(n[2]))?0:"+"===n[0]?i:-i}function At(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(M(e)||u(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),s.updateOffset(n,!1),n):St(e).local()}function Ot(e){return-Math.round(e._d.getTimezoneOffset())}function Wt(){return!!this.isValid()&&this._isUTC&&0===this._offset}s.updateOffset=function(){};var Ft=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,zt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Rt(e,t){var n,i,s,a,r,l,d=e,u=null;return jt(e)?d={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(d={},t?d[t]=+e:d.milliseconds=+e):(u=Ft.exec(e))?(n="-"===u[1]?-1:1,d={y:0,d:G(u[2])*n,h:G(u[3])*n,m:G(u[4])*n,s:G(u[5])*n,ms:G(Nt(1e3*u[6]))*n}):(u=zt.exec(e))?(n="-"===u[1]?-1:1,d={y:Bt(u[2],n),M:Bt(u[3],n),w:Bt(u[4],n),d:Bt(u[5],n),h:Bt(u[6],n),m:Bt(u[7],n),s:Bt(u[8],n)}):null==d?d={}:"object"==typeof d&&("from"in d||"to"in d)&&(a=St(d.from),r=St(d.to),s=a.isValid()&&r.isValid()?(r=At(r,a),a.isBefore(r)?l=Vt(a,r):((l=Vt(r,a)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(d={}).ms=s.milliseconds,d.M=s.months),i=new Ct(d),jt(e)&&o(e,"_locale")&&(i._locale=e._locale),jt(e)&&o(e,"_isValid")&&(i._isValid=e._isValid),i}function Bt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function qt(e,t){return function(n,i){var s;return null===i||isNaN(+i)||(D(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."),s=n,n=i,i=s),Ut(this,Rt(n,i),e),this}}function Ut(e,t,n,i){var a=t._milliseconds,r=Nt(t._days),o=Nt(t._months);e.isValid()&&(i=null==i||i,o&&xe(e,J(e,"Month")+o*n),r&&K(e,"Date",J(e,"Date")+r*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&s.updateOffset(e,r||o))}Rt.fn=Ct.prototype,Rt.invalid=function(){return Rt(NaN)};var Gt=qt(1,"add"),$t=qt(-1,"subtract");function Jt(e){return"string"==typeof e||e instanceof String}function Kt(e){return M(e)||u(e)||Jt(e)||c(e)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&Jt(e)})).length),t&&n}(e)||function(e){var t,n,i=r(e)&&!l(e),s=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)n=a[t],s=s||o(e,n);return i&&s}(e)||null==e}function Xt(e){var t,n=r(e)&&!l(e),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)i=i||o(e,s[t]);return n&&i}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.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)}));function tn(){return this._locale}function nn(e,t){return(e%t+t)%t}function sn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function an(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function rn(e,t){return t.erasAbbrRegex(e)}function on(){var e,t,n=[],i=[],s=[],a=[],r=this.eras();for(e=0,t=r.length;e<t;++e)i.push(_e(r[e].name)),n.push(_e(r[e].abbr)),s.push(_e(r[e].narrow)),a.push(_e(r[e].name)),a.push(_e(r[e].abbr)),a.push(_e(r[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function ln(e,t){I(0,[e,e.length],0,t)}function dn(e,t,n,i,s){var a;return null==e?Oe(this,i,s).year:(t>(a=We(e,i,s))&&(t=a),cn.call(this,e,t,n,i,s))}function cn(e,t,n,i,s){var a=Ae(e,t,n,i,s),r=He(a.year,0,a.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),me("N",rn),me("NN",rn),me("NNN",rn),me("NNNN",(function(e,t){return t.erasNameRegex(e)})),me("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ye(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var s=n._locale.erasParse(e,i,n._strict);s?f(n).era=s:f(n).invalidEra=e})),me("y",de),me("yy",de),me("yyy",de),me("yyyy",de),me("yo",(function(e,t){return t._eraYearOrdinalRegex||de})),ye(["y","yy","yyy","yyyy"],0),ye(["yo"],(function(e,t,n,i){var s;n._locale._eraYearOrdinalRegex&&(s=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,s):t[0]=parseInt(e,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),F("weekYear","gg"),F("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),me("G",ce),me("g",ce),me("GG",ie,Q),me("gg",ie,Q),me("GGGG",oe,te),me("gggg",oe,te),me("GGGGG",le,ne),me("ggggg",le,ne),be(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=G(e)})),be(["gg","GG"],(function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)})),I("Q",0,"Qo","quarter"),F("quarter","Q"),V("quarter",7),me("Q",Z),ye("Q",(function(e,t){t[1]=3*(G(e)-1)})),I("D",["DD",2],"Do","date"),F("date","D"),V("date",9),me("D",ie),me("DD",ie,Q),me("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ye(["D","DD"],2),ye("Do",(function(e,t){t[2]=G(e.match(ie)[0])}));var un=$("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),F("dayOfYear","DDD"),V("dayOfYear",4),me("DDD",re),me("DDDD",ee),ye(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=G(e)})),I("m",["mm",2],0,"minute"),F("minute","m"),V("minute",14),me("m",ie),me("mm",ie,Q),ye(["m","mm"],4);var hn=$("Minutes",!1);I("s",["ss",2],0,"second"),F("second","s"),V("second",15),me("s",ie),me("ss",ie,Q),ye(["s","ss"],5);var pn,mn,fn=$("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),F("millisecond","ms"),V("millisecond",16),me("S",re,Z),me("SS",re,Q),me("SSS",re,ee),pn="SSSS";pn.length<=9;pn+="S")me(pn,de);function _n(e,t){t[6]=G(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ye(pn,_n);mn=$("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var gn=w.prototype;function vn(e){return e}gn.add=Gt,gn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Kt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||St(),i=At(n,this).startOf("day"),a=s.calendarFormat(this,i)||"sameElse",r=t&&(Y(t[a])?t[a].call(this,n):t[a]);return this.format(r||this.localeData().calendar(a,this,St(n)))},gn.clone=function(){return new w(this)},gn.diff=function(e,t,n){var i,s,a;if(!this.isValid())return NaN;if(!(i=At(e,this)).isValid())return NaN;switch(s=6e4*(i.utcOffset()-this.utcOffset()),t=z(t)){case"year":a=Zt(this,i)/12;break;case"month":a=Zt(this,i);break;case"quarter":a=Zt(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-s)/864e5;break;case"week":a=(this-i-s)/6048e5;break;default:a=this-i}return n?a:U(a)},gn.endOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:sn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},gn.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=A(this,e);return this.localeData().postformat(t)},gn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||St(e).isValid())?Rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.fromNow=function(e){return this.from(St(),e)},gn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||St(e).isValid())?Rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},gn.toNow=function(e){return this.to(St(),e)},gn.get=function(e){return Y(this[e=z(e)])?this[e]():this},gn.invalidAt=function(){return f(this).overflow},gn.isAfter=function(e,t){var n=M(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},gn.isBefore=function(e,t){var n=M(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},gn.isBetween=function(e,t,n,i){var s=M(e)?e:St(e),a=M(t)?t:St(t);return!!(this.isValid()&&s.isValid()&&a.isValid())&&(("("===(i=i||"()")[0]?this.isAfter(s,n):!this.isBefore(s,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n)))},gn.isSame=function(e,t){var n,i=M(e)?e:St(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=z(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},gn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},gn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},gn.isValid=function(){return _(this)},gn.lang=en,gn.locale=Qt,gn.localeData=tn,gn.max=Yt,gn.min=Dt,gn.parsingFlags=function(){return p({},f(this))},gn.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:B[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=R(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(Y(this[e=z(e)]))return this[e](t);return this},gn.startOf=function(e){var t,n;if(void 0===(e=z(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?an:sn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=nn(t,6e4);break;case"second":t=this._d.valueOf(),t-=nn(t,1e3)}return this._d.setTime(t),s.updateOffset(this,!0),this},gn.subtract=$t,gn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},gn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},gn.toDate=function(){return new Date(this.valueOf())},gn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?A(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Y(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",A(n,"Z")):A(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",s="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=s+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},gn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},gn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},gn.eraYear=function(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-s(a[e].since).year())*n+a[e].offset;return this.year()},gn.year=Ne,gn.isLeapYear=function(){return q(this.year())},gn.weekYear=function(e){return dn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},gn.isoWeekYear=function(e){return dn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},gn.quarter=gn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},gn.month=Pe,gn.daysInMonth=function(){return Me(this.year(),this.month())},gn.week=gn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},gn.isoWeek=gn.isoWeeks=function(e){var t=Oe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},gn.weeksInYear=function(){var e=this.localeData()._week;return We(this.year(),e.dow,e.doy)},gn.weeksInWeekYear=function(){var e=this.localeData()._week;return We(this.weekYear(),e.dow,e.doy)},gn.isoWeeksInYear=function(){return We(this.year(),1,4)},gn.isoWeeksInISOWeekYear=function(){return We(this.isoWeekYear(),1,4)},gn.date=un,gn.day=gn.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},gn.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")},gn.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},gn.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")},gn.hour=gn.hours=Qe,gn.minute=gn.minutes=hn,gn.second=gn.seconds=fn,gn.millisecond=gn.milliseconds=mn,gn.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(he,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Ot(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?Ut(this,Rt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ot(this)},gn.utc=function(e){return this.utcOffset(0,e)},gn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ot(this),"m")),this},gn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(ue,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},gn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},gn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=Wt,gn.isUTC=Wt,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=L("dates accessor is deprecated. Use date instead.",un),gn.months=L("months accessor is deprecated. Use month instead",Pe),gn.years=L("years accessor is deprecated. Use year instead",Ne),gn.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()})),gn.isDSTShifted=L("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!d(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=Lt(t))._a?(e=t._isUTC?m(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(i=0;i<s;i++)(n&&e[i]!==t[i]||!n&&G(e[i])!==G(t[i]))&&r++;return r+a}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var yn=P.prototype;function bn(e,t,n,i){var s=lt(),a=m().set(i,t);return s[n](a,e)}function wn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return bn(e,t,n,"month");var i,s=[];for(i=0;i<12;i++)s[i]=bn(e,i,n,"month");return s}function Mn(e,t,n,i){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var s,a=lt(),r=e?a._week.dow:0,o=[];if(null!=n)return bn(t,(n+r)%7,i,"day");for(s=0;s<7;s++)o[s]=bn(t,(s+r)%7,i,"day");return o}yn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return Y(i)?i.call(t,n):i},yn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},yn.invalidDate=function(){return this._invalidDate},yn.ordinal=function(e){return this._ordinal.replace("%d",e)},yn.preparse=vn,yn.postformat=vn,yn.relativeTime=function(e,t,n,i){var s=this._relativeTime[n];return Y(s)?s(e,t,n,i):s.replace(/%d/i,e)},yn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return Y(n)?n(t):n.replace(/%s/i,t)},yn.set=function(e){var t,n;for(n in e)o(e,n)&&(Y(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},yn.eras=function(e,t){var n,i,a,r=this._eras||lt("en")._eras;for(n=0,i=r.length;n<i;++n){switch(typeof r[n].since){case"string":a=s(r[n].since).startOf("day"),r[n].since=a.valueOf()}switch(typeof r[n].until){case"undefined":r[n].until=1/0;break;case"string":a=s(r[n].until).startOf("day").valueOf(),r[n].until=a.valueOf()}}return r},yn.erasParse=function(e,t,n){var i,s,a,r,o,l=this.eras();for(e=e.toUpperCase(),i=0,s=l.length;i<s;++i)if(a=l[i].name.toUpperCase(),r=l[i].abbr.toUpperCase(),o=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(r===e)return l[i];break;case"NNNN":if(a===e)return l[i];break;case"NNNNN":if(o===e)return l[i]}else if([a,r,o].indexOf(e)>=0)return l[i]},yn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},yn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},yn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},yn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},yn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Te).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},yn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Te.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},yn.monthsParse=function(e,t,n){var i,s,a;if(this._monthsParseExact)return Ye.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=m([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},yn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=De),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},yn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Se),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},yn.week=function(e){return Oe(e,this._week.dow,this._week.doy).week},yn.firstDayOfYear=function(){return this._week.doy},yn.firstDayOfWeek=function(){return this._week.dow},yn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},yn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},yn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},yn.weekdaysParse=function(e,t,n){var i,s,a;if(this._weekdaysParseExact)return Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(s=m([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},yn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},yn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},yn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$e.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},yn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},yn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},rt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],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")}}),s.lang=L("moment.lang is deprecated. Use moment.locale instead.",rt),s.langData=L("moment.langData is deprecated. Use moment.localeData instead.",lt);var kn=Math.abs;function Ln(e,t,n,i){var s=Rt(t,n);return e._milliseconds+=i*s._milliseconds,e._days+=i*s._days,e._months+=i*s._months,e._bubble()}function Tn(e){return e<0?Math.floor(e):Math.ceil(e)}function Sn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Yn(e){return function(){return this.as(e)}}var xn=Yn("ms"),Pn=Yn("s"),Cn=Yn("m"),jn=Yn("h"),Nn=Yn("d"),En=Yn("w"),Hn=Yn("M"),In=Yn("Q"),An=Yn("y");function On(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wn=On("milliseconds"),Fn=On("seconds"),zn=On("minutes"),Rn=On("hours"),Bn=On("days"),Vn=On("months"),qn=On("years"),Un=Math.round,Gn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $n(e,t,n,i,s){return s.relativeTime(t||1,!!n,e,i)}var Jn=Math.abs;function Kn(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,s,a,r,o,l=Jn(this._milliseconds)/1e3,d=Jn(this._days),c=Jn(this._months),u=this.asSeconds();return u?(e=U(l/60),t=U(e/60),l%=60,e%=60,n=U(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",s=u<0?"-":"",a=Kn(this._months)!==Kn(u)?"-":"",r=Kn(this._days)!==Kn(u)?"-":"",o=Kn(this._milliseconds)!==Kn(u)?"-":"",s+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(d?r+d+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+i+"S":"")):"P0D"}var Zn=Ct.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Zn.add=function(e,t){return Ln(this,e,t,1)},Zn.subtract=function(e,t){return Ln(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=z(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Sn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=xn,Zn.asSeconds=Pn,Zn.asMinutes=Cn,Zn.asHours=jn,Zn.asDays=Nn,Zn.asWeeks=En,Zn.asMonths=Hn,Zn.asQuarters=In,Zn.asYears=An,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*G(this._months/12):NaN},Zn._bubble=function(){var e,t,n,i,s,a=this._milliseconds,r=this._days,o=this._months,l=this._data;return a>=0&&r>=0&&o>=0||a<=0&&r<=0&&o<=0||(a+=864e5*Tn(Dn(o)+r),r=0,o=0),l.milliseconds=a%1e3,e=U(a/1e3),l.seconds=e%60,t=U(e/60),l.minutes=t%60,n=U(t/60),l.hours=n%24,r+=U(n/24),s=U(Sn(r)),o+=s,r-=Tn(Dn(s)),i=U(o/12),o%=12,l.days=r,l.months=o,l.years=i,this},Zn.clone=function(){return Rt(this)},Zn.get=function(e){return e=z(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Wn,Zn.seconds=Fn,Zn.minutes=zn,Zn.hours=Rn,Zn.days=Bn,Zn.weeks=function(){return U(this.days()/7)},Zn.months=Vn,Zn.years=qn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,s=!1,a=Gn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(s=e),"object"==typeof t&&(a=Object.assign({},Gn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),i=function(e,t,n,i){var s=Rt(e).abs(),a=Un(s.as("s")),r=Un(s.as("m")),o=Un(s.as("h")),l=Un(s.as("d")),d=Un(s.as("M")),c=Un(s.as("w")),u=Un(s.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||r<=1&&["m"]||r<n.m&&["mm",r]||o<=1&&["h"]||o<n.h&&["hh",o]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||d<=1&&["M"]||d<n.M&&["MM",d]||u<=1&&["y"]||["yy",u])[2]=t,h[3]=+e>0,h[4]=i,$n.apply(null,h)}(this,!s,a,n),s&&(i=n.pastFuture(+this,i)),n.postformat(i)},Zn.toISOString=Xn,Zn.toString=Xn,Zn.toJSON=Xn,Zn.locale=Qt,Zn.localeData=tn,Zn.toIsoString=L("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Zn.lang=en,I("X",0,0,"unix"),I("x",0,0,"valueOf"),me("x",ce),me("X",/[+-]?\d+(\.\d{1,3})?/),ye("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ye("x",(function(e,t,n){n._d=new Date(G(e))})),
//! moment.js
s.version="2.29.1",t=St,s.fn=gn,s.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},s.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},s.now=function(){return Date.now?Date.now():+new Date},s.utc=m,s.unix=function(e){return St(1e3*e)},s.months=function(e,t){return wn(e,t,"months")},s.isDate=u,s.locale=rt,s.invalid=g,s.duration=Rt,s.isMoment=M,s.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},s.parseZone=function(){return St.apply(null,arguments).parseZone()},s.localeData=lt,s.isDuration=jt,s.monthsShort=function(e,t){return wn(e,t,"monthsShort")},s.weekdaysMin=function(e,t,n){return Mn(e,t,n,"weekdaysMin")},s.defineLocale=ot,s.updateLocale=function(e,t){if(null!=t){var n,i,s=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(x(tt[e]._config,t)):(null!=(i=at(e))&&(s=i._config),t=x(s,t),null==i&&(t.abbr=e),(n=new P(t)).parentLocale=tt[e],tt[e]=n),rt(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===rt()&&rt(e)):null!=tt[e]&&delete tt[e]);return tt[e]},s.locales=function(){return T(tt)},s.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},s.normalizeUnits=z,s.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==Gn[e]&&(void 0===t?Gn[e]:(Gn[e]=t,"s"===e&&(Gn.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},s.prototype=gn,s.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:"GGGG-[W]WW",MONTH:"YYYY-MM"},s}()}).call(this,n(24)(e))},function(e,t,n){(function(e,i){var s;//! moment.js
//! version : 2.8.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(a){var r,o,l,d,c=void 0!==e?e:this,u=Math.round,h=Object.prototype.hasOwnProperty,p={},m=[],f=i&&i.exports,_=/^\/?Date\((\-?\d+)/i,g=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,v=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,y=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,b=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,w=/\d\d?/,M=/\d{1,3}/,k=/\d{1,4}/,L=/[+\-]?\d{1,6}/,T=/\d+/,S=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,D=/Z|[\+\-]\d\d:?\d\d/gi,Y=/T/i,x=/[\+\-]?\d+/,P=/[\+\-]?\d+(\.\d{1,3})?/,C=/\d/,j=/\d\d/,N=/\d{3}/,E=/\d{4}/,H=/[+-]?\d{6}/,I=/[+-]?\d+/,A=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,O=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],W=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],F=/([\+\-]|\d\d)/gi,z=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),R={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},B={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},V={},q={s:45,m:45,h:22,d:26,M:11},U="DDD w W M D d".split(" "),G="M D H h m s w W".split(" "),$={M:function(){return this.month()+1},MMM:function(e){return this.localeData().monthsShort(this,e)},MMMM:function(e){return this.localeData().months(this,e)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(e){return this.localeData().weekdaysMin(this,e)},ddd:function(e){return this.localeData().weekdaysShort(this,e)},dddd:function(e){return this.localeData().weekdays(this,e)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return de(this.year()%100,2)},YYYY:function(){return de(this.year(),4)},YYYYY:function(){return de(this.year(),5)},YYYYYY:function(){var e=this.year();return(e>=0?"+":"-")+de(Math.abs(e),6)},gg:function(){return de(this.weekYear()%100,2)},gggg:function(){return de(this.weekYear(),4)},ggggg:function(){return de(this.weekYear(),5)},GG:function(){return de(this.isoWeekYear()%100,2)},GGGG:function(){return de(this.isoWeekYear(),4)},GGGGG:function(){return de(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return ye(this.milliseconds()/100)},SS:function(){return de(ye(this.milliseconds()/10),2)},SSS:function(){return de(this.milliseconds(),3)},SSSS:function(){return de(this.milliseconds(),3)},Z:function(){var e=-this.zone(),t="+";return e<0&&(e=-e,t="-"),t+de(ye(e/60),2)+":"+de(ye(e)%60,2)},ZZ:function(){var e=-this.zone(),t="+";return e<0&&(e=-e,t="-"),t+de(ye(e/60),2)+de(ye(e)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},x:function(){return this.valueOf()},X:function(){return this.unix()},Q:function(){return this.quarter()}},J={},K=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];function X(e,t,n){switch(arguments.length){case 2:return null!=e?e:t;case 3:return null!=e?e:null!=t?t:n;default:throw new Error("Implement me")}}function Z(e,t){return h.call(e,t)}function Q(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function ee(e,t){var n=!0;return re((function(){return n&&(Q(e),n=!1),t.apply(this,arguments)}),t)}function te(e,t){return function(n){return de(e.call(this,n),t)}}function ne(e,t){return function(n){return this.localeData().ordinal(e.call(this,n),t)}}for(;U.length;)l=U.pop(),$[l+"o"]=ne($[l],l);for(;G.length;)l=G.pop(),$[l+l]=te($[l],2);function ie(){}function se(e,t){!1!==t&&Le(e),oe(this,e),this._d=new Date(+e._d)}function ae(e){var t=ge(e),n=t.year||0,i=t.quarter||0,s=t.month||0,a=t.week||0,o=t.day||0,l=t.hour||0,d=t.minute||0,c=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*c+6e4*d+36e5*l,this._days=+o+7*a,this._months=+s+3*i+12*n,this._data={},this._locale=r.localeData(),this._bubble()}function re(e,t){for(var n in t)Z(t,n)&&(e[n]=t[n]);return Z(t,"toString")&&(e.toString=t.toString),Z(t,"valueOf")&&(e.valueOf=t.valueOf),e}function oe(e,t){var n,i,s;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=t._pf),void 0!==t._locale&&(e._locale=t._locale),m.length>0)for(n in m)void 0!==(s=t[i=m[n]])&&(e[i]=s);return e}function le(e){return e<0?Math.ceil(e):Math.floor(e)}function de(e,t,n){for(var i=""+Math.abs(e),s=e>=0;i.length<t;)i="0"+i;return(s?n?"+":"":"-")+i}function ce(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function ue(e,t){return function(n,i){var s;return null===i||isNaN(+i)||(!function(e,t){J[e]||(Q(t),J[e]=!0)}(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),s=n,n=i,i=s),n="string"==typeof n?+n:n,he(this,r.duration(n,i),e),this}}function he(e,t,n,i){var s=t._milliseconds,a=t._days,o=t._months;i=null==i||i,s&&e._d.setTime(+e._d+s*n),a&&Ge(e,"Date",Ue(e,"Date")+a*n),o&&qe(e,Ue(e,"Month")+o*n),i&&r.updateOffset(e,a||o)}function pe(e){return"[object Array]"===Object.prototype.toString.call(e)}function me(e){return"[object Date]"===Object.prototype.toString.call(e)||e instanceof Date}function fe(e,t,n){var i,s=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),r=0;for(i=0;i<s;i++)(n&&e[i]!==t[i]||!n&&ye(e[i])!==ye(t[i]))&&r++;return r+a}function _e(e){if(e){var t=e.toLowerCase().replace(/(.)s$/,"$1");e=R[e]||B[t]||t}return e}function ge(e){var t,n,i={};for(n in e)Z(e,n)&&(t=_e(n))&&(i[t]=e[n]);return i}function ve(e){var t,n;if(0===e.indexOf("week"))t=7,n="day";else{if(0!==e.indexOf("month"))return;t=12,n="month"}r[e]=function(i,s){var o,l,d=r._locale[e],c=[];if("number"==typeof i&&(s=i,i=a),l=function(e){var t=r().utc().set(n,e);return d.call(r._locale,t,i||"")},null!=s)return l(s);for(o=0;o<t;o++)c.push(l(o));return c}}function ye(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=t>=0?Math.floor(t):Math.ceil(t)),n}function be(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function we(e,t,n){return Re(r([e,11,31+t-n]),t,n).week}function Me(e){return ke(e)?366:365}function ke(e){return e%4==0&&e%100!=0||e%400==0}function Le(e){var t;e._a&&-2===e._pf.overflow&&(t=e._a[1]<0||e._a[1]>11?1:e._a[2]<1||e._a[2]>be(e._a[0],e._a[1])?2:e._a[3]<0||e._a[3]>24||24===e._a[3]&&(0!==e._a[4]||0!==e._a[5]||0!==e._a[6])?3:e._a[4]<0||e._a[4]>59?4:e._a[5]<0||e._a[5]>59?5:e._a[6]<0||e._a[6]>999?6:-1,e._pf._overflowDayOfYear&&(t<0||t>2)&&(t=2),e._pf.overflow=t)}function Te(e){return null==e._isValid&&(e._isValid=!isNaN(e._d.getTime())&&e._pf.overflow<0&&!e._pf.empty&&!e._pf.invalidMonth&&!e._pf.nullInput&&!e._pf.invalidFormat&&!e._pf.userInvalidated,e._strict&&(e._isValid=e._isValid&&0===e._pf.charsLeftOver&&0===e._pf.unusedTokens.length&&e._pf.bigHour===a)),e._isValid}function Se(e){return e?e.toLowerCase().replace("_","-"):e}function De(e){var t=null;if(!p[e]&&f)try{t=r.locale(),n(252)("./"+e),r.locale(t)}catch(e){}return p[e]}function Ye(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(r.isMoment(e)||me(e)?+e:+r(e))-+n,n._d.setTime(+n._d+i),r.updateOffset(n,!1),n):r(e).local()}function xe(e,t){return e.isValid()?(t=Pe(t,e.localeData()),V[t]||(V[t]=function(e){var t,n,i,s=e.match(y);for(t=0,n=s.length;t<n;t++)$[s[t]]?s[t]=$[s[t]]:s[t]=(i=s[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(i){var a="";for(t=0;t<n;t++)a+=s[t]instanceof Function?s[t].call(i,e):s[t];return a}}(t)),V[t](e)):e.localeData().invalidDate()}function Pe(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(b.lastIndex=0;n>=0&&b.test(e);)e=e.replace(b,i),b.lastIndex=0,n-=1;return e}function Ce(e,t){var n=t._strict;switch(e){case"Q":return C;case"DDDD":return N;case"YYYY":case"GGGG":case"gggg":return n?E:k;case"Y":case"G":case"g":return I;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?H:L;case"S":if(n)return C;case"SS":if(n)return j;case"SSS":if(n)return N;case"DDD":return M;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return S;case"a":case"A":return t._locale._meridiemParse;case"x":return x;case"X":return P;case"Z":case"ZZ":return D;case"T":return Y;case"SSSS":return T;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?j:w;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return w;case"Do":return n?t._locale._ordinalParse:t._locale._ordinalParseLenient;default:return new RegExp(function(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,s){return t||n||i||s}))))}}function je(e){var t=(e=e||"").match(D)||[],n=((t[t.length-1]||[])+"").match(F)||["-",0,0],i=60*n[1]+ye(n[2]);return"+"===n[0]?-i:i}function Ne(e,t,n){var i,s=n._a;switch(e){case"Q":null!=t&&(s[1]=3*(ye(t)-1));break;case"M":case"MM":null!=t&&(s[1]=ye(t)-1);break;case"MMM":case"MMMM":null!=(i=n._locale.monthsParse(t,e,n._strict))?s[1]=i:n._pf.invalidMonth=t;break;case"D":case"DD":null!=t&&(s[2]=ye(t));break;case"Do":null!=t&&(s[2]=ye(parseInt(t.match(/\d{1,2}/)[0],10)));break;case"DDD":case"DDDD":null!=t&&(n._dayOfYear=ye(t));break;case"YY":s[0]=r.parseTwoDigitYear(t);break;case"YYYY":case"YYYYY":case"YYYYYY":s[0]=ye(t);break;case"a":case"A":n._isPm=n._locale.isPM(t);break;case"h":case"hh":n._pf.bigHour=!0;case"H":case"HH":s[3]=ye(t);break;case"m":case"mm":s[4]=ye(t);break;case"s":case"ss":s[5]=ye(t);break;case"S":case"SS":case"SSS":case"SSSS":s[6]=ye(1e3*("0."+t));break;case"x":n._d=new Date(ye(t));break;case"X":n._d=new Date(1e3*parseFloat(t));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=je(t);break;case"dd":case"ddd":case"dddd":null!=(i=n._locale.weekdaysParse(t))?(n._w=n._w||{},n._w.d=i):n._pf.invalidWeekday=t;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":e=e.substr(0,1);case"gggg":case"GGGG":case"GGGGG":e=e.substr(0,2),t&&(n._w=n._w||{},n._w[e]=ye(t));break;case"gg":case"GG":n._w=n._w||{},n._w[e]=r.parseTwoDigitYear(t)}}function Ee(e){var t,n,i,s,a,o,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=X(t.GG,e._a[0],Re(r(),1,4).year),i=X(t.W,1),s=X(t.E,1)):(a=e._locale._week.dow,o=e._locale._week.doy,n=X(t.gg,e._a[0],Re(r(),a,o).year),i=X(t.w,1),null!=t.d?(s=t.d)<a&&++i:s=null!=t.e?t.e+a:a),l=function(e,t,n,i,s){var a,r=Fe(e,0,1).getUTCDay();return{year:(a=7*(t-1)+((n=null!=n?n:s)-s)+(s-(r=0===r?7:r)+(r>i?7:0)-(r<s?7:0))+1)>0?e:e-1,dayOfYear:a>0?a:Me(e-1)+a}}(n,i,s,o,a),e._a[0]=l.year,e._dayOfYear=l.dayOfYear}function He(e){var t,n,i,s,a=[];if(!e._d){for(i=function(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&Ee(e),e._dayOfYear&&(s=X(e._a[0],i[0]),e._dayOfYear>Me(s)&&(e._pf._overflowDayOfYear=!0),n=Fe(s,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=i[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Fe:We).apply(null,a),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()+e._tzm),e._nextDay&&(e._a[3]=24)}}function Ie(e){if(e._f!==r.ISO_8601){e._a=[],e._pf.empty=!0;var t,n,i,s,o,l=""+e._i,d=l.length,c=0;for(i=Pe(e._f,e._locale).match(y)||[],t=0;t<i.length;t++)s=i[t],(n=(l.match(Ce(s,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&e._pf.unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),c+=n.length),$[s]?(n?e._pf.empty=!1:e._pf.unusedTokens.push(s),Ne(s,n,e)):e._strict&&!n&&e._pf.unusedTokens.push(s);e._pf.charsLeftOver=d-c,l.length>0&&e._pf.unusedInput.push(l),!0===e._pf.bigHour&&e._a[3]<=12&&(e._pf.bigHour=a),e._isPm&&e._a[3]<12&&(e._a[3]+=12),!1===e._isPm&&12===e._a[3]&&(e._a[3]=0),He(e),Le(e)}else Ae(e)}function Ae(e){var t,n,i=e._i,s=A.exec(i);if(s){for(e._pf.iso=!0,t=0,n=O.length;t<n;t++)if(O[t][1].exec(i)){e._f=O[t][0]+(s[6]||" ");break}for(t=0,n=W.length;t<n;t++)if(W[t][1].exec(i)){e._f+=W[t][0];break}i.match(D)&&(e._f+="Z"),Ie(e)}else e._isValid=!1}function Oe(e){var t,n=e._i;n===a?e._d=new Date:me(n)?e._d=new Date(+n):null!==(t=_.exec(n))?e._d=new Date(+t[1]):"string"==typeof n?function(e){Ae(e),!1===e._isValid&&(delete e._isValid,r.createFromInputFallback(e))}(e):pe(n)?(e._a=function(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}(n.slice(0),(function(e){return parseInt(e,10)})),He(e)):"object"==typeof n?function(e){var t;e._d||(t=ge(e._i),e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],He(e))}(e):"number"==typeof n?e._d=new Date(n):r.createFromInputFallback(e)}function We(e,t,n,i,s,a,r){var o=new Date(e,t,n,i,s,a,r);return e<1970&&o.setFullYear(e),o}function Fe(e){var t=new Date(Date.UTC.apply(null,arguments));return e<1970&&t.setUTCFullYear(e),t}function ze(e,t,n,i,s){return s.relativeTime(t||1,!!n,e,i)}function Re(e,t,n){var i,s=n-t,a=n-e.day();return a>s&&(a-=7),a<s-7&&(a+=7),i=r(e).add(a,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function Be(e){var t,n=e._i,i=e._f;return e._locale=e._locale||r.localeData(e._l),null===n||i===a&&""===n?r.invalid({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),r.isMoment(n)?new se(n,!0):(i?pe(i)?function(e){var t,n,i,s,a;if(0===e._f.length)return e._pf.invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)a=0,t=oe({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},t._f=e._f[s],Ie(t),Te(t)&&(a+=t._pf.charsLeftOver,a+=10*t._pf.unusedTokens.length,t._pf.score=a,(null==i||a<i)&&(i=a,n=t));re(e,n||t)}(e):Ie(e):Oe(e),(t=new se(e))._nextDay&&(t.add(1,"d"),t._nextDay=a),t))}function Ve(e,t){var n,i;if(1===t.length&&pe(t[0])&&(t=t[0]),!t.length)return r();for(n=t[0],i=1;i<t.length;++i)t[i][e](n)&&(n=t[i]);return n}for($.DDDD=te($.DDD,3),re(ie.prototype,{set:function(e){var t,n;for(n in e)"function"==typeof(t=e[n])?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(e){return this._months[e.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(e){return this._monthsShort[e.month()]},monthsParse:function(e,t,n){var i,s,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(s=r.utc([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(e){return this._weekdays[e.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(e){return this._weekdaysShort[e.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(e){return this._weekdaysMin[e.day()]},weekdaysParse:function(e){var t,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),t=0;t<7;t++)if(this._weekdaysParse[t]||(n=r([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},_longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(e){var t=this._longDateFormat[e];return!t&&this._longDateFormat[e.toUpperCase()]&&(t=this._longDateFormat[e.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e]=t),t},isPM:function(e){return"p"===(e+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.apply(t,[n]):i},_relativeTime:{future:"in %s",past:"%s ago",s:"a few 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"},relativeTime:function(e,t,n,i){var s=this._relativeTime[n];return"function"==typeof s?s(e,t,n,i):s.replace(/%d/i,e)},pastFuture:function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},ordinal:function(e){return this._ordinal.replace("%d",e)},_ordinal:"%d",_ordinalParse:/\d{1,2}/,preparse:function(e){return e},postformat:function(e){return e},week:function(e){return Re(e,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(r=function(e,t,n,i){var s;return"boolean"==typeof n&&(i=n,n=a),(s={})._isAMomentObject=!0,s._i=e,s._f=t,s._l=n,s._strict=i,s._isUTC=!1,s._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},Be(s)}).suppressDeprecationWarnings=!1,r.createFromInputFallback=ee("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.min=function(){var e=[].slice.call(arguments,0);return Ve("isBefore",e)},r.max=function(){var e=[].slice.call(arguments,0);return Ve("isAfter",e)},r.utc=function(e,t,n,i){var s;return"boolean"==typeof n&&(i=n,n=a),(s={})._isAMomentObject=!0,s._useUTC=!0,s._isUTC=!0,s._l=n,s._i=e,s._f=t,s._strict=i,s._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},Be(s).utc()},r.unix=function(e){return r(1e3*e)},r.duration=function(e,t){var n,i,s,a,o,l,d,c=e,u=null;return r.isDuration(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(c={},t?c[t]=e:c.milliseconds=e):(u=g.exec(e))?(n="-"===u[1]?-1:1,c={y:0,d:ye(u[2])*n,h:ye(u[3])*n,m:ye(u[4])*n,s:ye(u[5])*n,ms:ye(u[6])*n}):(u=v.exec(e))?(n="-"===u[1]?-1:1,c={y:(s=function(e){var t=e&&parseFloat(e.replace(",","."));return(isNaN(t)?0:t)*n})(u[2]),M:s(u[3]),d:s(u[4]),h:s(u[5]),m:s(u[6]),s:s(u[7]),w:s(u[8])}):"object"==typeof c&&("from"in c||"to"in c)&&(o=r(c.from),l=Ye(l=r(c.to),o),o.isBefore(l)?d=ce(o,l):((d=ce(l,o)).milliseconds=-d.milliseconds,d.months=-d.months),(c={}).ms=(a=d).milliseconds,c.M=a.months),i=new ae(c),r.isDuration(e)&&Z(e,"_locale")&&(i._locale=e._locale),i},r.version="2.8.4",r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.ISO_8601=function(){},r.momentProperties=m,r.updateOffset=function(){},r.relativeTimeThreshold=function(e,t){return q[e]!==a&&(t===a?q[e]:(q[e]=t,!0))},r.lang=ee("moment.lang is deprecated. Use moment.locale instead.",(function(e,t){return r.locale(e,t)})),r.locale=function(e,t){var n;return e&&(n=void 0!==t?r.defineLocale(e,t):r.localeData(e))&&(r.duration._locale=r._locale=n),r._locale._abbr},r.defineLocale=function(e,t){return null!==t?(t.abbr=e,p[e]||(p[e]=new ie),p[e].set(t),r.locale(e),p[e]):(delete p[e],null)},r.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",(function(e){return r.localeData(e)})),r.localeData=function(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return r._locale;if(!pe(e)){if(t=De(e))return t;e=[e]}return function(e){for(var t,n,i,s,a=0;a<e.length;){for(t=(s=Se(e[a]).split("-")).length,n=(n=Se(e[a+1]))?n.split("-"):null;t>0;){if(i=De(s.slice(0,t).join("-")))return i;if(n&&n.length>=t&&fe(s,n,!0)>=t-1)break;t--}a++}return null}(e)},r.isMoment=function(e){return e instanceof se||null!=e&&Z(e,"_isAMomentObject")},r.isDuration=function(e){return e instanceof ae},l=K.length-1;l>=0;--l)ve(K[l]);function qe(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))||(n=Math.min(e.date(),be(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)),e}function Ue(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function Ge(e,t,n){return"Month"===t?qe(e,n):e._d["set"+(e._isUTC?"UTC":"")+t](n)}function $e(e,t){return function(n){return null!=n?(Ge(this,e,n),r.updateOffset(this,t),this):Ue(this,e)}}function Je(e){return 400*e/146097}function Ke(e){return 146097*e/400}function Xe(e){r.duration.fn[e]=function(){return this._data[e]}}for(l in r.normalizeUnits=function(e){return _e(e)},r.invalid=function(e){var t=r.utc(NaN);return null!=e?re(t._pf,e):t._pf.userInvalidated=!0,t},r.parseZone=function(){return r.apply(null,arguments).parseZone()},r.parseTwoDigitYear=function(e){return ye(e)+(ye(e)>68?1900:2e3)},re(r.fn=se.prototype,{clone:function(){return r(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var e=r(this).utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():xe(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):xe(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var e=this;return[e.year(),e.month(),e.date(),e.hours(),e.minutes(),e.seconds(),e.milliseconds()]},isValid:function(){return Te(this)},isDSTShifted:function(){return!!this._a&&(this.isValid()&&fe(this._a,(this._isUTC?r.utc(this._a):r(this._a)).toArray())>0)},parsingFlags:function(){return re({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(e){return this.zone(0,e)},local:function(e){return this._isUTC&&(this.zone(0,e),this._isUTC=!1,e&&this.add(this._dateTzOffset(),"m")),this},format:function(e){var t=xe(this,e||r.defaultFormat);return this.localeData().postformat(t)},add:ue(1,"add"),subtract:ue(-1,"subtract"),diff:function(e,t,n){var i,s,a,o=Ye(e,this),l=6e4*(this.zone()-o.zone());return"year"===(t=_e(t))||"month"===t?(i=432e5*(this.daysInMonth()+o.daysInMonth()),s=12*(this.year()-o.year())+(this.month()-o.month()),a=this-r(this).startOf("month")-(o-r(o).startOf("month")),s+=(a-=6e4*(this.zone()-r(this).startOf("month").zone()-(o.zone()-r(o).startOf("month").zone())))/i,"year"===t&&(s/=12)):(i=this-o,s="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-l)/864e5:"week"===t?(i-l)/6048e5:i),n?s:le(s)},from:function(e,t){return r.duration({to:this,from:e}).locale(this.locale()).humanize(!t)},fromNow:function(e){return this.from(r(),e)},calendar:function(e){var t=e||r(),n=Ye(t,this).startOf("day"),i=this.diff(n,"days",!0),s=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(s,this,r(t)))},isLeapYear:function(){return ke(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){if("string"==typeof e)if(isNaN(e)){if("number"!=typeof(e=t.weekdaysParse(e)))return null}else e=parseInt(e,10);return e}(e,this.localeData()),this.add(e-t,"d")):t},month:$e("Month",!0),startOf:function(e){switch(e=_e(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":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},endOf:function(e){return(e=_e(e))===a||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},isAfter:function(e,t){return"millisecond"===(t=_e(void 0!==t?t:"millisecond"))?+this>+(e=r.isMoment(e)?e:r(e)):(r.isMoment(e)?+e:+r(e))<+this.clone().startOf(t)},isBefore:function(e,t){var n;return"millisecond"===(t=_e(void 0!==t?t:"millisecond"))?+this<+(e=r.isMoment(e)?e:r(e)):(n=r.isMoment(e)?+e:+r(e),+this.clone().endOf(t)<n)},isSame:function(e,t){var n;return"millisecond"===(t=_e(t||"millisecond"))?+this==+(e=r.isMoment(e)?e:r(e)):(n=+r(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},min:ee("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",(function(e){return(e=r.apply(null,arguments))<this?this:e})),max:ee("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",(function(e){return(e=r.apply(null,arguments))>this?this:e})),zone:function(e,t){var n,i=this._offset||0;return null==e?this._isUTC?i:this._dateTzOffset():("string"==typeof e&&(e=je(e)),Math.abs(e)<16&&(e*=60),!this._isUTC&&t&&(n=this._dateTzOffset()),this._offset=e,this._isUTC=!0,null!=n&&this.subtract(n,"m"),i!==e&&(!t||this._changeInProgress?he(this,r.duration(i-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(e){return e=e?r(e).zone():0,(this.zone()-e)%60==0},daysInMonth:function(){return be(this.year(),this.month())},dayOfYear:function(e){var t=u((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},quarter:function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},weekYear:function(e){var t=Re(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},isoWeekYear:function(e){var t=Re(this,1,4).year;return null==e?t:this.add(e-t,"y")},week:function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},isoWeek:function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},weekday:function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},isoWeekday:function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},isoWeeksInYear:function(){return we(this.year(),1,4)},weeksInYear:function(){var e=this.localeData()._week;return we(this.year(),e.dow,e.doy)},get:function(e){return this[e=_e(e)]()},set:function(e,t){return"function"==typeof this[e=_e(e)]&&this[e](t),this},locale:function(e){var t;return e===a?this._locale._abbr:(null!=(t=r.localeData(e))&&(this._locale=t),this)},lang:ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return e===a?this.localeData():this.locale(e)})),localeData:function(){return this._locale},_dateTzOffset:function(){return 15*Math.round(this._d.getTimezoneOffset()/15)}}),r.fn.millisecond=r.fn.milliseconds=$e("Milliseconds",!1),r.fn.second=r.fn.seconds=$e("Seconds",!1),r.fn.minute=r.fn.minutes=$e("Minutes",!1),r.fn.hour=r.fn.hours=$e("Hours",!0),r.fn.date=$e("Date",!0),r.fn.dates=ee("dates accessor is deprecated. Use date instead.",$e("Date",!0)),r.fn.year=$e("FullYear",!0),r.fn.years=ee("years accessor is deprecated. Use year instead.",$e("FullYear",!0)),r.fn.days=r.fn.day,r.fn.months=r.fn.month,r.fn.weeks=r.fn.week,r.fn.isoWeeks=r.fn.isoWeek,r.fn.quarters=r.fn.quarter,r.fn.toJSON=r.fn.toISOString,re(r.duration.fn=ae.prototype,{_bubble:function(){var e,t,n,i=this._milliseconds,s=this._days,a=this._months,r=this._data,o=0;r.milliseconds=i%1e3,e=le(i/1e3),r.seconds=e%60,t=le(e/60),r.minutes=t%60,n=le(t/60),r.hours=n%24,s+=le(n/24),o=le(Je(s)),s-=le(Ke(o)),a+=le(s/30),s%=30,o+=le(a/12),a%=12,r.days=s,r.months=a,r.years=o},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return le(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ye(this._months/12)},humanize:function(e){var t,n,i,s,a,o,l,d,c,h,p,m=(t=this,n=!e,i=this.localeData(),s=r.duration(t).abs(),a=u(s.as("s")),o=u(s.as("m")),l=u(s.as("h")),d=u(s.as("d")),c=u(s.as("M")),h=u(s.as("y")),(p=a<q.s&&["s",a]||1===o&&["m"]||o<q.m&&["mm",o]||1===l&&["h"]||l<q.h&&["hh",l]||1===d&&["d"]||d<q.d&&["dd",d]||1===c&&["M"]||c<q.M&&["MM",c]||1===h&&["y"]||["yy",h])[2]=n,p[3]=+t>0,p[4]=i,ze.apply({},p));return e&&(m=this.localeData().pastFuture(+this,m)),this.localeData().postformat(m)},add:function(e,t){var n=r.duration(e,t);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(e,t){var n=r.duration(e,t);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(e){return this[(e=_e(e)).toLowerCase()+"s"]()},as:function(e){var t,n;if("month"===(e=_e(e))||"year"===e)return t=this._days+this._milliseconds/864e5,n=this._months+12*Je(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Ke(this._months/12)),e){case"week":return t/7+this._milliseconds/6048e5;case"day":return t+this._milliseconds/864e5;case"hour":return 24*t+this._milliseconds/36e5;case"minute":return 24*t*60+this._milliseconds/6e4;case"second":return 24*t*60*60+this._milliseconds/1e3;case"millisecond":return Math.floor(24*t*60*60*1e3)+this._milliseconds;default:throw new Error("Unknown unit "+e)}},lang:r.fn.lang,locale:r.fn.locale,toIsoString:ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",(function(){return this.toISOString()})),toISOString:function(){var e=Math.abs(this.years()),t=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),s=Math.abs(this.minutes()),a=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(e?e+"Y":"")+(t?t+"M":"")+(n?n+"D":"")+(i||s||a?"T":"")+(i?i+"H":"")+(s?s+"M":"")+(a?a+"S":""):"P0D"},localeData:function(){return this._locale}}),r.duration.fn.toString=r.duration.fn.toISOString,z)Z(z,l)&&Xe(l.toLowerCase());r.duration.fn.asMilliseconds=function(){return this.as("ms")},r.duration.fn.asSeconds=function(){return this.as("s")},r.duration.fn.asMinutes=function(){return this.as("m")},r.duration.fn.asHours=function(){return this.as("h")},r.duration.fn.asDays=function(){return this.as("d")},r.duration.fn.asWeeks=function(){return this.as("weeks")},r.duration.fn.asMonths=function(){return this.as("M")},r.duration.fn.asYears=function(){return this.as("y")},r.locale("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ye(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),f?i.exports=r:((s=function(e,t,n){return n.config&&n.config()&&!0===n.config().noGlobal&&(c.moment=o),r}.call(t,n,t,i))===a||(i.exports=s),d=!0,"undefined"==typeof ender&&(o=c.moment,c.moment=d?ee("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",r):r))}).call(this)}).call(this,n(251),n(24)(e))},function(e,t,n){var i;
/*!
* jQuery JavaScript Library v3.6.0
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2021-03-02T17:08Z
*/!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,s){"use strict";var a=[],r=Object.getPrototypeOf,o=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},d=a.push,c=a.indexOf,u={},h=u.toString,p=u.hasOwnProperty,m=p.toString,f=m.call(Object),_={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},v=function(e){return null!=e&&e===e.window},y=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,s,a=(n=n||y).createElement("script");if(a.text=e,t)for(i in b)(s=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,s);n.head.appendChild(a).parentNode.removeChild(a)}function M(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[h.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)};function L(e){var t=!!e&&"length"in e&&e.length,n=M(e);return!g(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.6.0",constructor:k,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:a.sort,splice:a.splice},k.extend=k.fn.extend=function(){var e,t,n,i,s,a,r=arguments[0]||{},o=1,l=arguments.length,d=!1;for("boolean"==typeof r&&(d=r,r=arguments[o]||{},o++),"object"==typeof r||g(r)||(r={}),o===l&&(r=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)i=e[t],"__proto__"!==t&&r!==i&&(d&&i&&(k.isPlainObject(i)||(s=Array.isArray(i)))?(n=r[t],a=s&&!Array.isArray(n)?[]:s||k.isPlainObject(n)?n:{},s=!1,r[t]=k.extend(d,a,i)):void 0!==i&&(r[t]=i));return r},k.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=r(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&m.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(L(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(L(Object(e))?k.merge(n,"string"==typeof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,s=e.length;i<n;i++)e[s++]=t[i];return e.length=s,e},grep:function(e,t,n){for(var i=[],s=0,a=e.length,r=!n;s<a;s++)!t(e[s],s)!==r&&i.push(e[s]);return i},map:function(e,t,n){var i,s,a=0,r=[];if(L(e))for(i=e.length;a<i;a++)null!=(s=t(e[a],a,n))&&r.push(s);else for(a in e)null!=(s=t(e[a],a,n))&&r.push(s);return l(r)},guid:1,support:_}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=a[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){u["[object "+t+"]"]=t.toLowerCase()}));var T=
/*!
* Sizzle CSS Selector Engine v2.3.6
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://js.foundation/
*
* Date: 2021-02-16
*/
function(e){var t,n,i,s,a,r,o,l,d,c,u,h,p,m,f,_,g,v,y,b="sizzle"+1*new Date,w=e.document,M=0,k=0,L=le(),T=le(),S=le(),D=le(),Y=function(e,t){return e===t&&(u=!0),0},x={}.hasOwnProperty,P=[],C=P.pop,j=P.push,N=P.push,E=P.slice,H=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",A="[\\x20\\t\\r\\n\\f]",O="(?:\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\["+A+"*("+O+")(?:"+A+"*([*^$|!~]?=)"+A+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+A+"*\\]",F=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",z=new RegExp(A+"+","g"),R=new RegExp("^"+A+"+|((?:^|[^\\\\])(?:\\\\.)*)"+A+"+$","g"),B=new RegExp("^"+A+"*,"+A+"*"),V=new RegExp("^"+A+"*([>+~]|"+A+")"+A+"*"),q=new RegExp(A+"|>"),U=new RegExp(F),G=new RegExp("^"+O+"$"),$={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},J=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+A+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ae=function(){h()},re=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(P=E.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(e){N={apply:P.length?function(e,t){j.apply(e,E.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,i,s){var a,o,d,c,u,m,g,v=t&&t.ownerDocument,w=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return i;if(!s&&(h(t),t=t||p,f)){if(11!==w&&(u=Q.exec(e)))if(a=u[1]){if(9===w){if(!(d=t.getElementById(a)))return i;if(d.id===a)return i.push(d),i}else if(v&&(d=v.getElementById(a))&&y(t,d)&&d.id===a)return i.push(d),i}else{if(u[2])return N.apply(i,t.getElementsByTagName(e)),i;if((a=u[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(a)),i}if(n.qsa&&!D[e+" "]&&(!_||!_.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,v=t,1===w&&(q.test(e)||V.test(e))){for((v=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,se):t.setAttribute("id",c=b)),o=(m=r(e)).length;o--;)m[o]=(c?"#"+c:":scope")+" "+ye(m[o]);g=m.join(",")}try{return N.apply(i,v.querySelectorAll(g)),i}catch(t){D(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return l(e.replace(R,"$1"),t,i,s)}function le(){var e=[];return function t(n,s){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=s}}function de(e){return e[b]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),s=n.length;s--;)i.attrHandle[n[s]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(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&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function _e(e){return de((function(t){return t=+t,de((function(n,i){for(var s,a=e([],n.length,t),r=a.length;r--;)n[s=a[r]]&&(n[s]=!(i[s]=n[s]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=oe.support={},a=oe.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!J.test(t||n&&n.nodeName||"HTML")},h=oe.setDocument=function(e){var t,s,r=e?e.ownerDocument||e:w;return r!=p&&9===r.nodeType&&r.documentElement?(m=(p=r).documentElement,f=!a(p),w!=p&&(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",ae,!1):s.attachEvent&&s.attachEvent("onunload",ae)),n.scope=ce((function(e){return m.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ce((function(e){return m.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,i,s,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(s=t.getElementsByName(e),i=0;a=s[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[s++];)1===n.nodeType&&i.push(n);return i}return a},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},g=[],_=[],(n.qsa=Z.test(p.querySelectorAll))&&(ce((function(e){var t;m.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&_.push("[*^$]="+A+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||_.push("\\["+A+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+b+"-]").length||_.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||_.push("\\["+A+"*name"+A+"*="+A+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||_.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||_.push(".#.+[+~]"),e.querySelectorAll("\\\f"),_.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&_.push("name"+A+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&_.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&_.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),_.push(",.*:")}))),(n.matchesSelector=Z.test(v=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),g.push("!=",F)})),_=_.length&&new RegExp(_.join("|")),g=g.length&&new RegExp(g.join("|")),t=Z.test(m.compareDocumentPosition),y=t||Z.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return u=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==w&&y(w,e)?-1:t==p||t.ownerDocument==w&&y(w,t)?1:c?H(c,e)-H(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,s=e.parentNode,a=t.parentNode,r=[e],o=[t];if(!s||!a)return e==p?-1:t==p?1:s?-1:a?1:c?H(c,e)-H(c,t):0;if(s===a)return he(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;r[i]===o[i];)i++;return i?he(r[i],o[i]):r[i]==w?-1:o[i]==w?1:0},p):p},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&f&&!D[t+" "]&&(!g||!g.test(t))&&(!_||!_.test(t)))try{var i=v.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){D(t,!0)}return oe(t,p,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),y(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var s=i.attrHandle[t.toLowerCase()],a=s&&x.call(i.attrHandle,t.toLowerCase())?s(e,t,!f):void 0;return void 0!==a?a:n.attributes||!f?e.getAttribute(t):(a=e.getAttributeNode(t))&&a.specified?a.value:null},oe.escape=function(e){return(e+"").replace(ie,se)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,i=[],s=0,a=0;if(u=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(Y),u){for(;t=e[a++];)t===e[a]&&(s=i.push(a));for(;s--;)e.splice(i[s],1)}return c=null,e},s=oe.getText=function(e){var t,n="",i=0,a=e.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===a||4===a)return e.nodeValue}else for(;t=e[i++];)n+=s(t);return n},(i=oe.selectors={cacheLength:50,createPseudo:de,match:$,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=r(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=L[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&L(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var s=oe.attr(i,e);return null==s?"!="===t:!t||(s+="","="===t?s===n:"!="===t?s!==n:"^="===t?n&&0===s.indexOf(n):"*="===t?n&&s.indexOf(n)>-1:"$="===t?n&&s.slice(-n.length)===n:"~="===t?(" "+s.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(s===n||s.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,s){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===s?function(e){return!!e.parentNode}:function(t,n,l){var d,c,u,h,p,m,f=a!==r?"nextSibling":"previousSibling",_=t.parentNode,g=o&&t.nodeName.toLowerCase(),v=!l&&!o,y=!1;if(_){if(a){for(;f;){for(h=t;h=h[f];)if(o?h.nodeName.toLowerCase()===g:1===h.nodeType)return!1;m=f="only"===e&&!m&&"nextSibling"}return!0}if(m=[r?_.firstChild:_.lastChild],r&&v){for(y=(p=(d=(c=(u=(h=_)[b]||(h[b]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===M&&d[1])&&d[2],h=p&&_.childNodes[p];h=++p&&h&&h[f]||(y=p=0)||m.pop();)if(1===h.nodeType&&++y&&h===t){c[e]=[M,p,y];break}}else if(v&&(y=p=(d=(c=(u=(h=t)[b]||(h[b]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]||[])[0]===M&&d[1]),!1===y)for(;(h=++p&&h&&h[f]||(y=p=0)||m.pop())&&((o?h.nodeName.toLowerCase()!==g:1!==h.nodeType)||!++y||(v&&((c=(u=h[b]||(h[b]={}))[h.uniqueID]||(u[h.uniqueID]={}))[e]=[M,y]),h!==t)););return(y-=s)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,t){var n,s=i.pseudos[e]||i.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return s[b]?s(t):s.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?de((function(e,n){for(var i,a=s(e,t),r=a.length;r--;)e[i=H(e,a[r])]=!(n[i]=a[r])})):function(e){return s(e,0,n)}):s}},pseudos:{not:de((function(e){var t=[],n=[],i=o(e.replace(R,"$1"));return i[b]?de((function(e,t,n,s){for(var a,r=i(e,null,s,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))})):function(e,s,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:de((function(e){return function(t){return oe(e,t).length>0}})),contains:de((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||s(t)).indexOf(e)>-1}})),lang:de((function(e){return G.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!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!i.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return K.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:_e((function(){return[0]})),last:_e((function(e,t){return[t-1]})),eq:_e((function(e,t,n){return[n<0?n+t:n]})),even:_e((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:_e((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:_e((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:_e((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=me(t);function ve(){}function ye(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function be(e,t,n){var i=t.dir,s=t.next,a=s||i,r=n&&"parentNode"===a,o=k++;return t.first?function(t,n,s){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,s);return!1}:function(t,n,l){var d,c,u,h=[M,o];if(l){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||r)if(c=(u=t[b]||(t[b]={}))[t.uniqueID]||(u[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[i]||t;else{if((d=c[a])&&d[0]===M&&d[1]===o)return h[2]=d[2];if(c[a]=h,h[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,i){for(var s=e.length;s--;)if(!e[s](t,n,i))return!1;return!0}:e[0]}function Me(e,t,n,i,s){for(var a,r=[],o=0,l=e.length,d=null!=t;o<l;o++)(a=e[o])&&(n&&!n(a,i,s)||(r.push(a),d&&t.push(o)));return r}function ke(e,t,n,i,s,a){return i&&!i[b]&&(i=ke(i)),s&&!s[b]&&(s=ke(s,a)),de((function(a,r,o,l){var d,c,u,h=[],p=[],m=r.length,f=a||function(e,t,n){for(var i=0,s=t.length;i<s;i++)oe(e,t[i],n);return n}(t||"*",o.nodeType?[o]:o,[]),_=!e||!a&&t?f:Me(f,h,e,o,l),g=n?s||(a?e:m||i)?[]:r:_;if(n&&n(_,g,o,l),i)for(d=Me(g,p),i(d,[],o,l),c=d.length;c--;)(u=d[c])&&(g[p[c]]=!(_[p[c]]=u));if(a){if(s||e){if(s){for(d=[],c=g.length;c--;)(u=g[c])&&d.push(_[c]=u);s(null,g=[],d,l)}for(c=g.length;c--;)(u=g[c])&&(d=s?H(a,u):h[c])>-1&&(a[d]=!(r[d]=u))}}else g=Me(g===r?g.splice(m,g.length):g),s?s(null,r,g,l):N.apply(r,g)}))}function Le(e){for(var t,n,s,a=e.length,r=i.relative[e[0].type],o=r||i.relative[" "],l=r?1:0,c=be((function(e){return e===t}),o,!0),u=be((function(e){return H(t,e)>-1}),o,!0),h=[function(e,n,i){var s=!r&&(i||n!==d)||((t=n).nodeType?c(e,n,i):u(e,n,i));return t=null,s}];l<a;l++)if(n=i.relative[e[l].type])h=[be(we(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[b]){for(s=++l;s<a&&!i.relative[e[s].type];s++);return ke(l>1&&we(h),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(R,"$1"),n,l<s&&Le(e.slice(l,s)),s<a&&Le(e=e.slice(s)),s<a&&ye(e))}h.push(n)}return we(h)}return ve.prototype=i.filters=i.pseudos,i.setFilters=new ve,r=oe.tokenize=function(e,t){var n,s,a,r,o,l,d,c=T[e+" "];if(c)return t?0:c.slice(0);for(o=e,l=[],d=i.preFilter;o;){for(r in n&&!(s=B.exec(o))||(s&&(o=o.slice(s[0].length)||o),l.push(a=[])),n=!1,(s=V.exec(o))&&(n=s.shift(),a.push({value:n,type:s[0].replace(R," ")}),o=o.slice(n.length)),i.filter)!(s=$[r].exec(o))||d[r]&&!(s=d[r](s))||(n=s.shift(),a.push({value:n,type:r,matches:s}),o=o.slice(n.length));if(!n)break}return t?o.length:o?oe.error(e):T(e,l).slice(0)},o=oe.compile=function(e,t){var n,s=[],a=[],o=S[e+" "];if(!o){for(t||(t=r(e)),n=t.length;n--;)(o=Le(t[n]))[b]?s.push(o):a.push(o);(o=S(e,function(e,t){var n=t.length>0,s=e.length>0,a=function(a,r,o,l,c){var u,m,_,g=0,v="0",y=a&&[],b=[],w=d,k=a||s&&i.find.TAG("*",c),L=M+=null==w?1:Math.random()||.1,T=k.length;for(c&&(d=r==p||r||c);v!==T&&null!=(u=k[v]);v++){if(s&&u){for(m=0,r||u.ownerDocument==p||(h(u),o=!f);_=e[m++];)if(_(u,r||p,o)){l.push(u);break}c&&(M=L)}n&&((u=!_&&u)&&g--,a&&y.push(u))}if(g+=v,n&&v!==g){for(m=0;_=t[m++];)_(y,b,r,o);if(a){if(g>0)for(;v--;)y[v]||b[v]||(b[v]=C.call(l));b=Me(b)}N.apply(l,b),c&&!a&&b.length>0&&g+t.length>1&&oe.uniqueSort(l)}return c&&(M=L,d=w),y};return n?de(a):a}(a,s))).selector=e}return o},l=oe.select=function(e,t,n,s){var a,l,d,c,u,h="function"==typeof e&&e,p=!s&&r(e=h.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(d=l[0]).type&&9===t.nodeType&&f&&i.relative[l[1].type]){if(!(t=(i.find.ID(d.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(a=$.needsContext.test(e)?0:l.length;a--&&(d=l[a],!i.relative[c=d.type]);)if((u=i.find[c])&&(s=u(d.matches[0].replace(te,ne),ee.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(a,1),!(e=s.length&&ye(l)))return N.apply(n,s),n;break}}return(h||o(e,p))(s,t,!f,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=b.split("").sort(Y).join("")===b,n.detectDuplicates=!!u,h(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||ue(I,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),oe}(n);k.find=T,k.expr=T.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=T.uniqueSort,k.text=T.getText,k.isXMLDoc=T.isXML,k.contains=T.contains,k.escapeSelector=T.escape;var S=function(e,t,n){for(var i=[],s=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&k(e).is(n))break;i.push(e)}return i},D=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Y=k.expr.match.needsContext;function x(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function C(e,t,n){return g(t)?k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return c.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,i=this.length,s=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++)if(k.contains(s[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,s[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(C(this,e||[],!1))},not:function(e){return this.pushStack(C(this,e||[],!0))},is:function(e){return!!C(this,"string"==typeof e&&Y.test(e)?k(e):e||[],!1).length}});var j,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),P.test(i[1])&&k.isPlainObject(t))for(i in t)g(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(s=y.getElementById(i[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,j=k(y);var E=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,s=this.length,a=[],r="string"!=typeof e&&k(e);if(!Y.test(e))for(;i<s;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?k.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?c.call(k(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return D((e.parentNode||{}).firstChild,e)},children:function(e){return D(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(x(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,i){var s=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(s=k.filter(i,s)),this.length>1&&(H[e]||k.uniqueSort(s),E.test(e)&&s.reverse()),this.pushStack(s)}}));var A=/[^\x20\t\r\n\f]+/g;function O(e){return e}function W(e){throw e}function F(e,t,n,i){var s;try{e&&g(s=e.promise)?s.call(e).done(t).fail(n):e&&g(s=e.then)?s.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(A)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,i,s,a=[],r=[],o=-1,l=function(){for(s=s||e.once,i=t=!0;r.length;o=-1)for(n=r.shift();++o<a.length;)!1===a[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=a.length,n=!1);e.memory||(n=!1),t=!1,s&&(a=n?[]:"")},d={add:function(){return a&&(n&&!t&&(o=a.length-1,r.push(n)),function t(n){k.each(n,(function(n,i){g(i)?e.unique&&d.has(i)||a.push(i):i&&i.length&&"string"!==M(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,a,n))>-1;)a.splice(n,1),n<=o&&o--})),this},has:function(e){return e?k.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return s=r=[],a=n="",this},disabled:function(){return!a},lock:function(){return s=r=[],n||t||(a=n=""),this},locked:function(){return!!s},fireWith:function(e,n){return s||(n=[e,(n=n||[]).slice?n.slice():n],r.push(n),t||l()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,i){var s=g(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=s&&s.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,s){var a=0;function r(e,t,i,s){return function(){var o=this,l=arguments,d=function(){var n,d;if(!(e<a)){if((n=i.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");d=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(d)?s?d.call(n,r(a,t,O,s),r(a,t,W,s)):(a++,d.call(n,r(a,t,O,s),r(a,t,W,s),r(a,t,O,t.notifyWith))):(i!==O&&(o=void 0,l=[n]),(s||t.resolveWith)(o,l))}},c=s?d:function(){try{d()}catch(n){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(n,c.stackTrace),e+1>=a&&(i!==W&&(o=void 0,l=[n]),t.rejectWith(o,l))}};e?c():(k.Deferred.getStackHook&&(c.stackTrace=k.Deferred.getStackHook()),n.setTimeout(c))}}return k.Deferred((function(n){t[0][3].add(r(0,n,g(s)?s:O,n.notifyWith)),t[1][3].add(r(0,n,g(e)?e:O)),t[2][3].add(r(0,n,g(i)?i:W))})).promise()},promise:function(e){return null!=e?k.extend(e,s):s}},a={};return k.each(t,(function(e,n){var r=n[2],o=n[5];s[n[1]]=r.add,o&&r.add((function(){i=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=r.fireWith})),s.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),s=o.call(arguments),a=k.Deferred(),r=function(e){return function(n){i[e]=this,s[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(i,s)}};if(t<=1&&(F(e,a.done(r(n)).resolve,a.reject,!t),"pending"===a.state()||g(s[n]&&s[n].then)))return a.then();for(;n--;)F(s[n],r(n),a.reject);return a.promise()}});var z=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&z.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){n.setTimeout((function(){throw e}))};var R=k.Deferred();function B(){y.removeEventListener("DOMContentLoaded",B),n.removeEventListener("load",B),k.ready()}k.fn.ready=function(e){return R.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||R.resolveWith(y,[k]))}}),k.ready.then=R.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(k.ready):(y.addEventListener("DOMContentLoaded",B),n.addEventListener("load",B));var V=function(e,t,n,i,s,a,r){var o=0,l=e.length,d=null==n;if("object"===M(n))for(o in s=!0,n)V(e,t,o,n[o],!0,a,r);else if(void 0!==i&&(s=!0,g(i)||(r=!0),d&&(r?(t.call(e,i),t=null):(d=t,t=function(e,t,n){return d.call(k(e),n)})),t))for(;o<l;o++)t(e[o],n,r?i:i.call(e[o],o,t(e[o],n)));return s?e:d?t.call(e):l?t(e[0],n):a},q=/^-ms-/,U=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function $(e){return e.replace(q,"ms-").replace(U,G)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=k.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,s=this.cache(e);if("string"==typeof t)s[$(t)]=n;else for(i in t)s[$(i)]=t[i];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map($):(t=$(t))in i?[t]:t.match(A)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new K,Z=new K,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||X.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,i,s,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(s=Z.get(a),1===a.nodeType&&!X.get(a,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=$(i.slice(5)),te(a,i,s[i]));X.set(a,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each((function(){Z.set(this,e)})):V(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=Z.get(a,e))||void 0!==(n=te(a,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=X.get(e,t),n&&(!i||Array.isArray(n)?i=X.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),i=n.length,s=n.shift(),a=k._queueHooks(e,t);"inprogress"===s&&(s=n.shift(),i--),s&&("fx"===t&&n.unshift("inprogress"),delete a.stop,s.call(e,(function(){k.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:k.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,s=k.Deferred(),a=this,r=this.length,o=function(){--i||s.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=X.get(a[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(o));return o(),s.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),se=["Top","Right","Bottom","Left"],ae=y.documentElement,re=function(e){return k.contains(e.ownerDocument,e)},oe={composed:!0};ae.getRootNode&&(re=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===k.css(e,"display")};function de(e,t,n,i){var s,a,r=20,o=i?function(){return i.cur()}:function(){return k.css(e,t,"")},l=o(),d=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==d&&+l)&&ie.exec(k.css(e,t));if(c&&c[3]!==d){for(l/=2,d=d||c[3],c=+l||1;r--;)k.style(e,t,c+d),(1-a)*(1-(a=o()/l||.5))<=0&&(r=0),c/=a;c*=2,k.style(e,t,c+d),n=n||[]}return n&&(c=+c||+l||0,s=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=d,i.start=c,i.end=s)),s}var ce={};function ue(e){var t,n=e.ownerDocument,i=e.nodeName,s=ce[i];return s||(t=n.body.appendChild(n.createElement(i)),s=k.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),ce[i]=s,s)}function he(e,t){for(var n,i,s=[],a=0,r=e.length;a<r;a++)(i=e[a]).style&&(n=i.style.display,t?("none"===n&&(s[a]=X.get(i,"display")||null,s[a]||(i.style.display="")),""===i.style.display&&le(i)&&(s[a]=ue(i))):"none"!==n&&(s[a]="none",X.set(i,"display",n)));for(a=0;a<r;a++)null!=s[a]&&(e[a].style.display=s[a]);return e}k.fn.extend({show:function(){return he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){le(this)?k(this).show():k(this).hide()}))}});var pe,me,fe=/^(?:checkbox|radio)$/i,_e=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(me=y.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),_.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",_.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",_.option=!!pe.lastChild;var ve={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,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&x(e,t)?k.merge([e],n):n}function be(e,t){for(var n=0,i=e.length;n<i;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,_.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function Me(e,t,n,i,s){for(var a,r,o,l,d,c,u=t.createDocumentFragment(),h=[],p=0,m=e.length;p<m;p++)if((a=e[p])||0===a)if("object"===M(a))k.merge(h,a.nodeType?[a]:a);else if(we.test(a)){for(r=r||u.appendChild(t.createElement("div")),o=(_e.exec(a)||["",""])[1].toLowerCase(),l=ve[o]||ve._default,r.innerHTML=l[1]+k.htmlPrefilter(a)+l[2],c=l[0];c--;)r=r.lastChild;k.merge(h,r.childNodes),(r=u.firstChild).textContent=""}else h.push(t.createTextNode(a));for(u.textContent="",p=0;a=h[p++];)if(i&&k.inArray(a,i)>-1)s&&s.push(a);else if(d=re(a),r=ye(u.appendChild(a),"script"),d&&be(r),n)for(c=0;a=r[c++];)ge.test(a.type||"")&&n.push(a);return u}var ke=/^([^.]*)(?:\.(.+)|)/;function Le(){return!0}function Te(){return!1}function Se(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function De(e,t,n,i,s,a){var r,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)De(e,o,n,i,t[o],a);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=Te;else if(!s)return e;return 1===a&&(r=s,(s=function(e){return k().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=k.guid++)),e.each((function(){k.event.add(this,t,s,i,n)}))}function Ye(e,t,n){n?(X.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,s,a=X.get(this,t);if(1&e.isTrigger&&this[t]){if(a.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(a=o.call(arguments),X.set(this,t,a),i=n(this,t),this[t](),a!==(s=X.get(this,t))||i?X.set(this,t,!1):s={},a!==s)return e.stopImmediatePropagation(),e.preventDefault(),s&&s.value}else a.length&&(X.set(this,t,{value:k.event.trigger(k.extend(a[0],k.Event.prototype),a.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&k.event.add(e,t,Le)}k.event={global:{},add:function(e,t,n,i,s){var a,r,o,l,d,c,u,h,p,m,f,_=X.get(e);if(J(e))for(n.handler&&(n=(a=n).handler,s=a.selector),s&&k.find.matchesSelector(ae,s),n.guid||(n.guid=k.guid++),(l=_.events)||(l=_.events=Object.create(null)),(r=_.handle)||(r=_.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),d=(t=(t||"").match(A)||[""]).length;d--;)p=f=(o=ke.exec(t[d])||[])[1],m=(o[2]||"").split(".").sort(),p&&(u=k.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=k.event.special[p]||{},c=k.extend({type:p,origType:f,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&k.expr.match.needsContext.test(s),namespace:m.join(".")},a),(h=l[p])||((h=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,m,r)||e.addEventListener&&e.addEventListener(p,r)),u.add&&(u.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,c):h.push(c),k.event.global[p]=!0)},remove:function(e,t,n,i,s){var a,r,o,l,d,c,u,h,p,m,f,_=X.hasData(e)&&X.get(e);if(_&&(l=_.events)){for(d=(t=(t||"").match(A)||[""]).length;d--;)if(p=f=(o=ke.exec(t[d])||[])[1],m=(o[2]||"").split(".").sort(),p){for(u=k.event.special[p]||{},h=l[p=(i?u.delegateType:u.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=h.length;a--;)c=h[a],!s&&f!==c.origType||n&&n.guid!==c.guid||o&&!o.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(a,1),c.selector&&h.delegateCount--,u.remove&&u.remove.call(e,c));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,m,_.handle)||k.removeEvent(e,p,_.handle),delete l[p])}else for(p in l)k.event.remove(e,p+t[d],n,i,!0);k.isEmptyObject(l)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,i,s,a,r,o=new Array(arguments.length),l=k.event.fix(e),d=(X.get(this,"events")||Object.create(null))[l.type]||[],c=k.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(r=k.event.handlers.call(this,l,d),t=0;(s=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,n=0;(a=s.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(i=((k.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,s,a,r,o=[],l=t.delegateCount,d=e.target;if(l&&d.nodeType&&!("click"===e.type&&e.button>=1))for(;d!==this;d=d.parentNode||this)if(1===d.nodeType&&("click"!==e.type||!0!==d.disabled)){for(a=[],r={},n=0;n<l;n++)void 0===r[s=(i=t[n]).selector+" "]&&(r[s]=i.needsContext?k(s,this).index(d)>-1:k.find(s,this,null,[d]).length),r[s]&&a.push(i);a.length&&o.push({elem:d,handlers:a})}return d=this,l<t.length&&o.push({elem:d,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(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[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return fe.test(t.type)&&t.click&&x(t,"input")&&Ye(t,"click",Le),!1},trigger:function(e){var t=this||e;return fe.test(t.type)&&t.click&&x(t,"input")&&Ye(t,"click"),!0},_default:function(e){var t=e.target;return fe.test(t.type)&&t.click&&x(t,"input")&&X.get(t,"click")||x(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Le:Te,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&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0},k.Event.prototype={constructor:k.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Le,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Le,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Le,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.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,code:!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:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return Ye(this,e,Se),!1},trigger:function(){return Ye(this,e),!0},_default:function(){return!0},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,s=e.relatedTarget,a=e.handleObj;return s&&(s===i||k.contains(i,s))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,i){return De(this,e,t,n,i)},one:function(e,t,n,i){return De(this,e,t,n,i,1)},off:function(e,t,n){var i,s;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,k(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Te),this.each((function(){k.event.remove(this,e,n,t)}))}});var xe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ce=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return x(e,"table")&&x(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ee(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,s,a,r,o;if(1===t.nodeType){if(X.hasData(e)&&(o=X.get(e).events))for(s in X.remove(t,"handle events"),o)for(n=0,i=o[s].length;n<i;n++)k.event.add(t,s,o[s][n]);Z.hasData(e)&&(a=Z.access(e),r=k.extend({},a),Z.set(t,r))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&fe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ae(e,t,n,i){t=l(t);var s,a,r,o,d,c,u=0,h=e.length,p=h-1,m=t[0],f=g(m);if(f||h>1&&"string"==typeof m&&!_.checkClone&&Pe.test(m))return e.each((function(s){var a=e.eq(s);f&&(t[0]=m.call(this,s,a.html())),Ae(a,t,n,i)}));if(h&&(a=(s=Me(t,e[0].ownerDocument,!1,e,i)).firstChild,1===s.childNodes.length&&(s=a),a||i)){for(o=(r=k.map(ye(s,"script"),Ne)).length;u<h;u++)d=s,u!==p&&(d=k.clone(d,!0,!0),o&&k.merge(r,ye(d,"script"))),n.call(e[u],d,u);if(o)for(c=r[r.length-1].ownerDocument,k.map(r,Ee),u=0;u<o;u++)d=r[u],ge.test(d.type||"")&&!X.access(d,"globalEval")&&k.contains(c,d)&&(d.src&&"module"!==(d.type||"").toLowerCase()?k._evalUrl&&!d.noModule&&k._evalUrl(d.src,{nonce:d.nonce||d.getAttribute("nonce")},c):w(d.textContent.replace(Ce,""),d,c))}return e}function Oe(e,t,n){for(var i,s=t?k.filter(t,e):e,a=0;null!=(i=s[a]);a++)n||1!==i.nodeType||k.cleanData(ye(i)),i.parentNode&&(n&&re(i)&&be(ye(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,s,a,r,o=e.cloneNode(!0),l=re(e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(r=ye(o),i=0,s=(a=ye(e)).length;i<s;i++)Ie(a[i],r[i]);if(t)if(n)for(a=a||ye(e),r=r||ye(o),i=0,s=a.length;i<s;i++)He(a[i],r[i]);else He(e,o);return(r=ye(o,"script")).length>0&&be(r,!l&&ye(e,"script")),o},cleanData:function(e){for(var t,n,i,s=k.event.special,a=0;void 0!==(n=e[a]);a++)if(J(n)){if(t=n[X.expando]){if(t.events)for(i in t.events)s[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Oe(this,e,!0)},remove:function(e){return Oe(this,e)},text:function(e){return V(this,(function(e){return void 0===e?k.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 Ae(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Ae(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ae(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ae(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&&(k.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return V(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!xe.test(e)&&!ve[(_e.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ae(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,i=[],s=k(e),a=s.length-1,r=0;r<=a;r++)n=r===a?this:this.clone(!0),k(s[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}}));var We=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},ze=function(e,t,n){var i,s,a={};for(s in t)a[s]=e.style[s],e.style[s]=t[s];for(s in i=n.call(e),t)e.style[s]=a[s];return i},Re=new RegExp(se.join("|"),"i");function Be(e,t,n){var i,s,a,r,o=e.style;return(n=n||Fe(e))&&(""!==(r=n.getPropertyValue(t)||n[t])||re(e)||(r=k.style(e,t)),!_.pixelBoxStyles()&&We.test(r)&&Re.test(t)&&(i=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=i,o.minWidth=s,o.maxWidth=a)),void 0!==r?r+"":r}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){d.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(d).appendChild(c);var e=n.getComputedStyle(c);i="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",r=36===t(e.right),s=36===t(e.width),c.style.position="absolute",a=12===t(c.offsetWidth/3),ae.removeChild(d),c=null}}function t(e){return Math.round(parseFloat(e))}var i,s,a,r,o,l,d=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",_.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(_,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,t,i,s;return null==o&&(e=y.createElement("table"),t=y.createElement("tr"),i=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",ae.appendChild(e).appendChild(t).appendChild(i),s=n.getComputedStyle(t),o=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),o}}))}();var qe=["Webkit","Moz","ms"],Ue=y.createElement("div").style,Ge={};function $e(e){var t=k.cssProps[e]||Ge[e];return t||(e in Ue?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=qe.length;n--;)if((e=qe[n]+t)in Ue)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Ke=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function Qe(e,t,n){var i=ie.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function et(e,t,n,i,s,a){var r="width"===t?1:0,o=0,l=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(l+=k.css(e,n+se[r],!0,s)),i?("content"===n&&(l-=k.css(e,"padding"+se[r],!0,s)),"margin"!==n&&(l-=k.css(e,"border"+se[r]+"Width",!0,s))):(l+=k.css(e,"padding"+se[r],!0,s),"padding"!==n?l+=k.css(e,"border"+se[r]+"Width",!0,s):o+=k.css(e,"border"+se[r]+"Width",!0,s));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-o-.5))||0),l}function tt(e,t,n){var i=Fe(e),s=(!_.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),a=s,r=Be(e,t,i),o="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(r)){if(!n)return r;r="auto"}return(!_.boxSizingReliable()&&s||!_.reliableTrDimensions()&&x(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(s="border-box"===k.css(e,"boxSizing",!1,i),(a=o in e)&&(r=e[o])),(r=parseFloat(r)||0)+et(e,t,n||(s?"border":"content"),a,i,r)+"px"}function nt(e,t,n,i,s){return new nt.prototype.init(e,t,n,i,s)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Be(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,r,o=$(t),l=Ke.test(t),d=e.style;if(l||(t=$e(o)),r=k.cssHooks[t]||k.cssHooks[o],void 0===n)return r&&"get"in r&&void 0!==(s=r.get(e,!1,i))?s:d[t];"string"===(a=typeof n)&&(s=ie.exec(n))&&s[1]&&(n=de(e,t,s),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=s&&s[3]||(k.cssNumber[o]?"":"px")),_.clearCloneStyle||""!==n||0!==t.indexOf("background")||(d[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(l?d.setProperty(t,n):d[t]=n))}},css:function(e,t,n,i){var s,a,r,o=$(t);return Ke.test(t)||(t=$e(o)),(r=k.cssHooks[t]||k.cssHooks[o])&&"get"in r&&(s=r.get(e,!0,n)),void 0===s&&(s=Be(e,t,i)),"normal"===s&&t in Ze&&(s=Ze[t]),""===n||n?(a=parseFloat(s),!0===n||isFinite(a)?a||0:s):s}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!Je.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,i):ze(e,Xe,(function(){return tt(e,t,i)}))},set:function(e,n,i){var s,a=Fe(e),r=!_.scrollboxSize()&&"absolute"===a.position,o=(r||i)&&"border-box"===k.css(e,"boxSizing",!1,a),l=i?et(e,t,i,o,a):0;return o&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-et(e,t,"border",!1,a)-.5)),l&&(s=ie.exec(n))&&"px"!==(s[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),Qe(0,n,l)}}})),k.cssHooks.marginLeft=Ve(_.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,s={},a="string"==typeof n?n.split(" "):[n];i<4;i++)s[e+se[i]+t]=a[i]||a[i-2]||a[0];return s}},"margin"!==e&&(k.cssHooks[e+t].set=Qe)})),k.fn.extend({css:function(e,t){return V(this,(function(e,t,n){var i,s,a={},r=0;if(Array.isArray(t)){for(i=Fe(e),s=t.length;r<s;r++)a[t[r]]=k.css(e,t[r],!1,i);return a}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,i,s,a){this.elem=e,this.prop=n,this.easing=s||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(k.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=k.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),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.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=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[$e(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=nt.prototype.init,k.fx.step={};var it,st,at=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function ot(){st&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ot):n.setTimeout(ot,k.fx.interval),k.fx.tick())}function lt(){return n.setTimeout((function(){it=void 0})),it=Date.now()}function dt(e,t){var n,i=0,s={height:e};for(t=t?1:0;i<4;i+=2-t)s["margin"+(n=se[i])]=s["padding"+n]=e;return t&&(s.opacity=s.width=e),s}function ct(e,t,n){for(var i,s=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),a=0,r=s.length;a<r;a++)if(i=s[a].call(n,t,e))return i}function ut(e,t,n){var i,s,a=0,r=ut.prefilters.length,o=k.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var t=it||lt(),n=Math.max(0,d.startTime+d.duration-t),i=1-(n/d.duration||0),a=0,r=d.tweens.length;a<r;a++)d.tweens[a].run(i);return o.notifyWith(e,[d,i,n]),i<1&&r?n:(r||o.notifyWith(e,[d,1,0]),o.resolveWith(e,[d]),!1)},d=o.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,d.opts,t,n,d.opts.specialEasing[t]||d.opts.easing);return d.tweens.push(i),i},stop:function(t){var n=0,i=t?d.tweens.length:0;if(s)return this;for(s=!0;n<i;n++)d.tweens[n].run(1);return t?(o.notifyWith(e,[d,1,0]),o.resolveWith(e,[d,t])):o.rejectWith(e,[d,t]),this}}),c=d.props;for(!function(e,t){var n,i,s,a,r;for(n in e)if(s=t[i=$(n)],a=e[n],Array.isArray(a)&&(s=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(r=k.cssHooks[i])&&"expand"in r)for(n in a=r.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=s);else t[i]=s}(c,d.opts.specialEasing);a<r;a++)if(i=ut.prefilters[a].call(d,e,c,d.opts))return g(i.stop)&&(k._queueHooks(d.elem,d.opts.queue).stop=i.stop.bind(i)),i;return k.map(c,ct,d),g(d.opts.start)&&d.opts.start.call(e,d),d.progress(d.opts.progress).done(d.opts.done,d.opts.complete).fail(d.opts.fail).always(d.opts.always),k.fx.timer(k.extend(l,{elem:e,anim:d,queue:d.opts.queue})),d}k.Animation=k.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return de(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(A);for(var n,i=0,s=e.length;i<s;i++)n=e[i],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,s,a,r,o,l,d,c,u="width"in t||"height"in t,h=this,p={},m=e.style,f=e.nodeType&&le(e),_=X.get(e,"fxshow");for(i in n.queue||(null==(r=k._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--,k.queue(e,"fx").length||r.empty.fire()}))}))),t)if(s=t[i],at.test(s)){if(delete t[i],a=a||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!_||void 0===_[i])continue;f=!0}p[i]=_&&_[i]||k.style(e,i)}if((l=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(i in u&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(d=_&&_.display)&&(d=X.get(e,"display")),"none"===(c=k.css(e,"display"))&&(d?c=d:(he([e],!0),d=e.style.display||d,c=k.css(e,"display"),he([e]))),("inline"===c||"inline-block"===c&&null!=d)&&"none"===k.css(e,"float")&&(l||(h.done((function(){m.display=d})),null==d&&(c=m.display,d="none"===c?"":c)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",h.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),l=!1,p)l||(_?"hidden"in _&&(f=_.hidden):_=X.access(e,"fxshow",{display:d}),a&&(_.hidden=!f),f&&he([e],!0),h.done((function(){for(i in f||he([e]),X.remove(e,"fxshow"),p)k.style(e,i,p[i])}))),l=ct(f?_[i]:0,i,h),i in _||(_[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),k.speed=function(e,t,n){var i=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return k.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in k.fx.speeds?i.duration=k.fx.speeds[i.duration]:i.duration=k.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){g(i.old)&&i.old.call(this),i.queue&&k.dequeue(this,i.queue)},i},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(le).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var s=k.isEmptyObject(e),a=k.speed(t,n,i),r=function(){var t=ut(this,k.extend({},e),a);(s||X.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,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",a=k.timers,r=X.get(this);if(s)r[s]&&r[s].stop&&i(r[s]);else for(s in r)r[s]&&r[s].stop&&rt.test(s)&&i(r[s]);for(s=a.length;s--;)a[s].elem!==this||null!=e&&a[s].queue!==e||(a[s].anim.stop(n),t=!1,a.splice(s,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),i=n[e+"queue"],s=n[e+"queueHooks"],a=k.timers,r=i?i.length:0;for(n.finish=!0,k.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++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,s){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,i,s)}})),k.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),it=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){st||(st=!0,ot())},k.fx.stop=function(){st=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var s=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(s)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",_.checkOn=""!==e.value,_.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",_.radioValue="t"===e.value}();var ht,pt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return V(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var i,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?k.prop(e,t,n):(1===a&&k.isXMLDoc(e)||(s=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ht:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:(e.setAttribute(t,n+""),n):s&&"get"in s&&null!==(i=s.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&x(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,s=t&&t.match(A);if(s&&1===e.nodeType)for(;n=s[i++];)e.removeAttribute(n)}}),ht={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=pt[t]||k.find.attr;pt[t]=function(e,t,i){var s,a,r=t.toLowerCase();return i||(a=pt[r],pt[r]=s,s=null!=n(e,t,i)?r:null,pt[r]=a),s}}));var mt=/^(?:input|select|textarea|button)$/i,ft=/^(?:a|area)$/i;function _t(e){return(e.match(A)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function vt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(A)||[]}k.fn.extend({prop:function(e,t){return V(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var i,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&k.isXMLDoc(e)||(t=k.propFix[t]||t,s=k.propHooks[t]),void 0!==n?s&&"set"in s&&void 0!==(i=s.set(e,n,t))?i:e[t]=n:s&&"get"in s&&null!==(i=s.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):mt.test(e.nodeName)||ft.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(k.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)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,i,s,a,r,o,l=0;if(g(e))return this.each((function(t){k(this).addClass(e.call(this,t,gt(this)))}));if((t=vt(e)).length)for(;n=this[l++];)if(s=gt(n),i=1===n.nodeType&&" "+_t(s)+" "){for(r=0;a=t[r++];)i.indexOf(" "+a+" ")<0&&(i+=a+" ");s!==(o=_t(i))&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,i,s,a,r,o,l=0;if(g(e))return this.each((function(t){k(this).removeClass(e.call(this,t,gt(this)))}));if(!arguments.length)return this.attr("class","");if((t=vt(e)).length)for(;n=this[l++];)if(s=gt(n),i=1===n.nodeType&&" "+_t(s)+" "){for(r=0;a=t[r++];)for(;i.indexOf(" "+a+" ")>-1;)i=i.replace(" "+a+" "," ");s!==(o=_t(i))&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,gt(this),t),t)})):this.each((function(){var t,s,a,r;if(i)for(s=0,a=k(this),r=vt(e);t=r[s++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+_t(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var yt=/\r/g;k.fn.extend({val:function(e){var t,n,i,s=this[0];return arguments.length?(i=g(e),this.each((function(n){var s;1===this.nodeType&&(null==(s=i?e.call(this,n,k(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=k.map(s,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=k.valHooks[s.type]||k.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(s,"value"))?n:"string"==typeof(n=s.value)?n.replace(yt,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:_t(k.text(e))}},select:{get:function(e){var t,n,i,s=e.options,a=e.selectedIndex,r="select-one"===e.type,o=r?null:[],l=r?a+1:s.length;for(i=a<0?l:r?a:0;i<l;i++)if(((n=s[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!x(n.parentNode,"optgroup"))){if(t=k(n).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var n,i,s=e.options,a=k.makeArray(t),r=s.length;r--;)((i=s[r]).selected=k.inArray(k.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},_.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),_.focusin="onfocusin"in n;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,i,s){var a,r,o,l,d,c,u,h,m=[i||y],f=p.call(e,"type")?e.type:e,_=p.call(e,"namespace")?e.namespace.split("."):[];if(r=h=o=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!bt.test(f+k.event.triggered)&&(f.indexOf(".")>-1&&(_=f.split("."),f=_.shift(),_.sort()),d=f.indexOf(":")<0&&"on"+f,(e=e[k.expando]?e:new k.Event(f,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=_.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:k.makeArray(t,[e]),u=k.event.special[f]||{},s||!u.trigger||!1!==u.trigger.apply(i,t))){if(!s&&!u.noBubble&&!v(i)){for(l=u.delegateType||f,bt.test(l+f)||(r=r.parentNode);r;r=r.parentNode)m.push(r),o=r;o===(i.ownerDocument||y)&&m.push(o.defaultView||o.parentWindow||n)}for(a=0;(r=m[a++])&&!e.isPropagationStopped();)h=r,e.type=a>1?l:u.bindType||f,(c=(X.get(r,"events")||Object.create(null))[e.type]&&X.get(r,"handle"))&&c.apply(r,t),(c=d&&r[d])&&c.apply&&J(r)&&(e.result=c.apply(r,t),!1===e.result&&e.preventDefault());return e.type=f,s||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(m.pop(),t)||!J(i)||d&&g(i[f])&&!v(i)&&((o=i[d])&&(i[d]=null),k.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,wt),i[f](),e.isPropagationStopped()&&h.removeEventListener(f,wt),k.event.triggered=void 0,o&&(i[d]=o)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),_.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,s=X.access(i,t);s||i.addEventListener(e,n,!0),X.access(i,t,(s||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,s=X.access(i,t)-1;s?X.access(i,t,s):(i.removeEventListener(e,n,!0),X.remove(i,t))}}}));var Mt=n.location,kt={guid:Date.now()},Lt=/\?/;k.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||k.error("Invalid XML: "+(i?k.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Tt=/\[\]$/,St=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Yt=/^(?:input|select|textarea|keygen)/i;function xt(e,t,n,i){var s;if(Array.isArray(t))k.each(t,(function(t,s){n||Tt.test(e)?i(e,s):xt(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,n,i)}));else if(n||"object"!==M(t))i(e,t);else for(s in t)xt(e+"["+s+"]",t[s],n,i)}k.param=function(e,t){var n,i=[],s=function(e,t){var n=g(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){s(this.name,this.value)}));else for(n in e)xt(n,e[n],t,s);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&Yt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!fe.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(St,"\r\n")}})):{name:t.name,value:n.replace(St,"\r\n")}})).get()}});var Pt=/%20/g,Ct=/#.*$/,jt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Et=/^(?:GET|HEAD)$/,Ht=/^\/\//,It={},At={},Ot="*/".concat("*"),Wt=y.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,s=0,a=t.toLowerCase().match(A)||[];if(g(n))for(;i=a[s++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function zt(e,t,n,i){var s={},a=e===At;function r(o){var l;return s[o]=!0,k.each(e[o]||[],(function(e,o){var d=o(t,n,i);return"string"!=typeof d||a||s[d]?a?!(l=d):void 0:(t.dataTypes.unshift(d),r(d),!1)})),l}return r(t.dataTypes[0])||!s["*"]&&r("*")}function Rt(e,t){var n,i,s=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Wt.href=Mt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Mt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ot,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":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Rt(Rt(e,k.ajaxSettings),t):Rt(k.ajaxSettings,e)},ajaxPrefilter:Ft(It),ajaxTransport:Ft(At),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,s,a,r,o,l,d,c,u,h,p=k.ajaxSetup({},t),m=p.context||p,f=p.context&&(m.nodeType||m.jquery)?k(m):k.event,_=k.Deferred(),g=k.Callbacks("once memory"),v=p.statusCode||{},b={},w={},M="canceled",L={readyState:0,getResponseHeader:function(e){var t;if(d){if(!r)for(r={};t=Nt.exec(a);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return d?a:null},setRequestHeader:function(e,t){return null==d&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==d&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(d)L.always(e[L.status]);else for(t in e)v[t]=[v[t],e[t]];return this},abort:function(e){var t=e||M;return i&&i.abort(t),T(0,t),this}};if(_.promise(L),p.url=((e||p.url||Mt.href)+"").replace(Ht,Mt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(A)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=k.param(p.data,p.traditional)),zt(It,p,t,L),d)return L;for(u in(c=k.event&&p.global)&&0==k.active++&&k.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Et.test(p.type),s=p.url.replace(Ct,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(h=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Lt.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(jt,"$1"),h=(Lt.test(s)?"&":"?")+"_="+kt.guid+++h),p.url=s+h),p.ifModified&&(k.lastModified[s]&&L.setRequestHeader("If-Modified-Since",k.lastModified[s]),k.etag[s]&&L.setRequestHeader("If-None-Match",k.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&L.setRequestHeader("Content-Type",p.contentType),L.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ot+"; q=0.01":""):p.accepts["*"]),p.headers)L.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(m,L,p)||d))return L.abort();if(M="abort",g.add(p.complete),L.done(p.success),L.fail(p.error),i=zt(At,p,t,L)){if(L.readyState=1,c&&f.trigger("ajaxSend",[L,p]),d)return L;p.async&&p.timeout>0&&(o=n.setTimeout((function(){L.abort("timeout")}),p.timeout));try{d=!1,i.send(b,T)}catch(e){if(d)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,r,l){var u,h,y,b,w,M=t;d||(d=!0,o&&n.clearTimeout(o),i=void 0,a=l||"",L.readyState=e>0?4:0,u=e>=200&&e<300||304===e,r&&(b=function(e,t,n){for(var i,s,a,r,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(s in o)if(o[s]&&o[s].test(i)){l.unshift(s);break}if(l[0]in n)a=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}r||(r=s)}a=a||r}if(a)return a!==l[0]&&l.unshift(a),n[a]}(p,L,r)),!u&&k.inArray("script",p.dataTypes)>-1&&k.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(e,t,n,i){var s,a,r,o,l,d={},c=e.dataTypes.slice();if(c[1])for(r in e.converters)d[r.toLowerCase()]=e.converters[r];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=d[l+" "+a]||d["* "+a]))for(s in d)if((o=s.split(" "))[1]===a&&(r=d[l+" "+o[0]]||d["* "+o[0]])){!0===r?r=d[s]:!0!==d[s]&&(a=o[0],c.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 "+l+" to "+a}}}return{state:"success",data:t}}(p,b,L,u),u?(p.ifModified&&((w=L.getResponseHeader("Last-Modified"))&&(k.lastModified[s]=w),(w=L.getResponseHeader("etag"))&&(k.etag[s]=w)),204===e||"HEAD"===p.type?M="nocontent":304===e?M="notmodified":(M=b.state,h=b.data,u=!(y=b.error))):(y=M,!e&&M||(M="error",e<0&&(e=0))),L.status=e,L.statusText=(t||M)+"",u?_.resolveWith(m,[h,M,L]):_.rejectWith(m,[L,M,y]),L.statusCode(v),v=void 0,c&&f.trigger(u?"ajaxSuccess":"ajaxError",[L,p,u?h:y]),g.fireWith(m,[L,M]),c&&(f.trigger("ajaxComplete",[L,p]),--k.active||k.event.trigger("ajaxStop")))}return L},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,i,s){return g(n)&&(s=s||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:s,data:n,success:i},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=k(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 g(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Bt={0:200,1223:204},Vt=k.ajaxSettings.xhr();_.cors=!!Vt&&"withCredentials"in Vt,_.ajax=Vt=!!Vt,k.ajaxTransport((function(e){var t,i;if(_.cors||Vt&&!e.crossDomain)return{send:function(s,a){var r,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)o[r]=e.xhrFields[r];for(r in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)o.setRequestHeader(r,s[r]);t=function(e){return function(){t&&(t=i=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(Bt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),i=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=i:o.onreadystatechange=function(){4===o.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.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 k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,s){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var qt,Ut=[],Gt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||k.expando+"_"+kt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,i){var s,a,r,o=!1!==e.jsonp&&(Gt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Gt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(Gt,"$1"+s):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||k.error(s+" was not called"),r[0]},e.dataTypes[0]="json",a=n[s],n[s]=function(){r=arguments},i.always((function(){void 0===a?k(n).removeProp(s):n[s]=a,e[s]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(s)),r&&g(a)&&a(r[0]),r=a=void 0})),"script"})),_.createHTMLDocument=((qt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===qt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(_.createHTMLDocument?((i=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(i)):t=y),a=!n&&[],(s=P.exec(e))?[t.createElement(s[1])]:(s=Me([e],t,a),a&&a.length&&k(a).remove(),k.merge([],s.childNodes)));var i,s,a},k.fn.load=function(e,t,n){var i,s,a,r=this,o=e.indexOf(" ");return o>-1&&(i=_t(e.slice(o)),e=e.slice(0,o)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),r.length>0&&k.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){a=arguments,r.html(i?k("<div>").append(k.parseHTML(e)).find(i):e)})).always(n&&function(e,t){r.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var i,s,a,r,o,l,d=k.css(e,"position"),c=k(e),u={};"static"===d&&(e.style.position="relative"),o=c.offset(),a=k.css(e,"top"),l=k.css(e,"left"),("absolute"===d||"fixed"===d)&&(a+l).indexOf("auto")>-1?(r=(i=c.position()).top,s=i.left):(r=parseFloat(a)||0,s=parseFloat(l)||0),g(t)&&(t=t.call(e,n,k.extend({},o))),null!=t.top&&(u.top=t.top-o.top+r),null!=t.left&&(u.left=t.left-o.left+s),"using"in t?t.using.call(e,u):c.css(u)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],s={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((s=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),s.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-k.css(i,"marginTop",!0),left:t.left-s.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||ae}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return V(this,(function(e,i,s){var a;if(v(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===s)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:s,n?s:a.pageYOffset):e[i]=s}),e,i,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=Ve(_.pixelPosition,(function(e,n){if(n)return n=Be(e,t),We.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(s,a){var r=arguments.length&&(n||"boolean"!=typeof s),o=n||(!0===s||!0===a?"margin":"border");return V(this,(function(t,n,s){var a;return v(t)?0===i.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?k.css(t,n,o):k.style(t,n,s,o)}),t,r?s:void 0,r)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.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){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var $t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,s;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return i=o.call(arguments,2),(s=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||k.guid++,s},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=x,k.isFunction=g,k.isWindow=v,k.camelCase=$,k.type=M,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace($t,"")},void 0===(i=function(){return k}.apply(t,[]))||(e.exports=i);var Jt=n.jQuery,Kt=n.$;return k.noConflict=function(e){return n.$===k&&(n.$=Kt),e&&n.jQuery===k&&(n.jQuery=Jt),k},void 0===s&&(n.jQuery=n.$=k),k}))},function(e,t,n){"use strict";(function(e){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return s}));var s=new(n(10).a);"object"===i(window.NewsletterProAppStorage)&&s.setObject(window.NewsletterProAppStorage),e(document).ready((function(){0===s.length()&&s.setObject(window.NewsletterProAppStorage)}))}).call(this,n(2))},,function(e,t,n){"use strict";(function(e){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return s}));var s=new(n(9).a);"object"===i(window.NewsletterProAppTranslate)&&s.setObject(window.NewsletterProAppTranslate,!0),e(document).ready((function(){0===s.length()&&s.setObject(window.NewsletterProAppTranslate,!0)}))}).call(this,n(2))},function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function a(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return h}));var o=window.MutationObserver||window.WebKitMutationObserver,l=window.addEventListener;var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return function(a,r){if(!a)return e;if(void 0===r&&(r=t),!e)return n?n(r):r;var o=a.split(".");o.length;return function e(t,a){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,l=a.length,d=s(a);try{for(d.s();!(r=d.n()).done;){var c=r.value;if(c in t&&t[c]){if(1===l)return n?n(t[c]):t[c];if(t[c]instanceof Object){var u=i(a);return u.shift(),e(t[c],u,o)}}}}catch(e){d.e(e)}finally{d.f()}return n?n(o):o}(e,o,r)}};function c(e,t){o?new o((function(e,n){(e[0].addedNodes.length||e[0].removedNodes.length)&&t()})).observe(e,{childList:!0,subtree:!0}):l&&(e.addEventListener("DOMNodeInserted",t,!1),e.addEventListener("DOMNodeRemoved",t,!1))}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.serializeArray();for(var i in t)t.hasOwnProperty(i)&&n.push({name:i,value:t[i]});return n}function h(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},function(e,t,n){"use strict";var i,s="object"==typeof Reflect?Reflect:null,a=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function o(){o.init.call(this)}e.exports=o,e.exports.once=function(e,t){return new Promise((function(n,i){function s(n){e.removeListener(t,a),i(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments))}g(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,s,{once:!0})}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var l=10;function d(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?o.defaultMaxListeners:e._maxListeners}function u(e,t,n,i){var s,a,r,o;if(d(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),r=a[t]),void 0===r)r=a[t]=n,++e._eventsCount;else if("function"==typeof r?r=a[t]=i?[n,r]:[r,n]:i?r.unshift(n):r.push(n),(s=c(e))>0&&r.length>s&&!r.warned){r.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=r.length,o=l,console&&console.warn&&console.warn(o)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},s=h.bind(i);return s.listener=n,i.wrapFn=s,s}function m(e,t,n){var i=e._events;if(void 0===i)return[];var s=i[t];return void 0===s?[]:"function"==typeof s?n?[s.listener||s]:[s]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(s):_(s,s.length)}function f(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function _(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}function g(e,t,n,i){if("function"==typeof e.on)i.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function s(a){i.once&&e.removeEventListener(t,s),n(a)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},o.prototype.getMaxListeners=function(){return c(this)},o.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,s=this._events;if(void 0!==s)i=i&&void 0===s.error;else if(!i)return!1;if(i){var r;if(t.length>0&&(r=t[0]),r instanceof Error)throw r;var o=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw o.context=r,o}var l=s[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var d=l.length,c=_(l,d);for(n=0;n<d;++n)a(c[n],this,t)}return!0},o.prototype.addListener=function(e,t){return u(this,e,t,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(e,t){return u(this,e,t,!0)},o.prototype.once=function(e,t){return d(t),this.on(e,p(this,e,t)),this},o.prototype.prependOnceListener=function(e,t){return d(t),this.prependListener(e,p(this,e,t)),this},o.prototype.removeListener=function(e,t){var n,i,s,a,r;if(d(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(s=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){r=n[a].listener,s=a;break}if(s<0)return this;0===s?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,s),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,r||t)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var s,a=Object.keys(n);for(i=0;i<a.length;++i)"removeListener"!==(s=a[i])&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},o.prototype.listeners=function(e){return m(this,e,!0)},o.prototype.rawListeners=function(e){return m(this,e,!1)},o.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},o.prototype.listenerCount=f,o.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var i=n(7);function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,s=function(){};return{s:s,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:s}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=new i.EventEmitter,d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"data",{}),o(this,"cache",{}),o(this,"on",(function(e,t){l.on(e,t)}))}var t,n,i;return t=e,(n=[{key:"setObject",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];this.data[s]=e[s]}t&&l.emit("ready",this)}},{key:"source",value:function(e){var t,n,i=this,a=this.data,r=s(t=e.split("."));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!a.hasOwnProperty(o))return console.error('Invalid translation path "'.concat(t,'" - "').concat(o,'"')),function(e){return e};a=a[o]}}catch(e){r.e(e)}finally{r.f()}return function(e){if(a.hasOwnProperty(e))return a[e].replace(/\&quot;/g,'"');var n="The translation does not exist >>>".concat(e,'<<< in "').concat(t,'"');return void 0===i.cache[n]&&(i.cache[n]=!0,console.log(n)),e}}},{key:"length",value:function(){return Object.keys(this.data).length}},{key:"set",value:function(e,t){var n=this;this.length()>0?e.l=this.source(t):this.on("ready",(function(){e.l=n.source(t)}))}}])&&r(t.prototype,n),i&&r(t,i),e}()},function(e,t,n){"use strict";function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,r=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw r}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.d(t,"a",(function(){return o}));var o=function(){function e(){var t,n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i={},(n="data")in(t=this)?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i}var t,n,s;return t=e,(n=[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0===e)return this.data;var n=e.split(".");return n.length>1?this.getDataCallback(this.data,n,t):this.data.hasOwnProperty(e)?this.data[e]:t}},{key:"delete",value:function(e){if(void 0===e)return!1;var t=e.split(".");return t.length>1?this.deleteDataCallback(this.data,t):!!this.data.hasOwnProperty(e)&&delete this.data[e]}},{key:"getNumber",value:function(e){var t=Number(this.get(e));return isNaN(t)?0:t}},{key:"has",value:function(e){var t=e.split(".");return this.hasDataCallback(t,this.data)}},{key:"add",value:function(e,t){for(var n=e.split("."),i=this.data,s=0;s<n.length;s++)s===n.length-1?i[n[s]]=t:"object"!==a(i[n[s]])&&(i[n[s]]={}),"object"===a(i)&&(i=i[n[s]])}},{key:"set",value:function(e,t){this.add(e,t)}},{key:"setObject",value:function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];this.data[i]=e[i]}}},{key:"append",value:function(e,t){this.data.hasOwnProperty(e)||(this.data[e]=[]),this.data[e].push(t)}},{key:"length",value:function(){return Object.keys(this.data).length}},{key:"getDataCallback",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(1===t.length)return void 0!==e[t[0]]?e[t[0]]:n;var s,a=i(t);try{for(a.s();!(s=a.n()).done;){var r=s.value;return void 0!==e[r]?this.getDataCallback(e[r],t.slice(1),n):n}}catch(e){a.e(e)}finally{a.f()}return n}},{key:"deleteDataCallback",value:function(e,t){if(1===t.length)return void 0!==e[t[0]]&&delete e[t[0]];var n,s=i(t);try{for(s.s();!(n=s.n()).done;){var a=n.value;return void 0!==e[a]&&this.deleteDataCallback(e[a],t.slice(1))}}catch(e){s.e(e)}finally{s.f()}return!1}},{key:"hasDataCallback",value:function(e,t){if(0===e.length)return!1;var n=e.shift();return!(0!==e.length||!t.hasOwnProperty(n))||!!t.hasOwnProperty(n)&&this.hasDataCallback(e,t[n])}}])&&r(t.prototype,n),s&&r(t,s),e}()},,,,,,function(e,t,n){(function(t){function n(e,n,i){return n=n||"json",i=void 0===i||i,t.ajax({url:NewsletterPro.dataStorage.get("ajax_url"),type:"POST",dataType:n,data:e,error:function(e){if("json"==n){if(1==i)"true"===e.getResponseHeader("Login")?alert('The login session has expired. You must refresh the browser and login again. The next time when you are login check the button "Stay logged in".'):alert("Ajax request error, please check your console for more details!");console.warn("error: the returned data must be json, your response text is: "),console.warn(e.responseText)}}}).promise()}function i(e,t){return n({submit:"jsUpdateConfiguration",name:e,value:t}).promise()}function s(e){return Object.keys(e).length}function a(){form=this;for(var e,t=form.serializeArray(),n={},i=0,s=t.length;i<s;i++)n[(e=t[i]).name]=e.value;return n||{}}function r(e,t,n){var i=new Date;i.setDate(i.getDate()+n);var s=escape(t)+(null==n?"":"; expires="+i.toUTCString());document.cookie=e+"="+s}function o(e){var t,n,i,s=document.cookie.split(";");for(t=0;t<s.length;t++)if(n=s[t].substr(0,s[t].indexOf("=")),i=s[t].substr(s[t].indexOf("=")+1),(n=n.replace(/^\s+|\s+$/g,""))==e)return unescape(i)}function l(e){document.cookie=e+"=; expires=Thu, 01-Jan-70 00:00:01 GMT;"}function d(e,n,i){i=void 0===i||i,n=n||"json";this.form=e.form;var s=this.form.serializeArray(),a=!1;window.FormData&&(a=new FormData);for(var r,o=this.form.find('input[type="file"]'),l=0,d=o.length;l<d;l++)for(var c,u=0,h=(r=t(o[l]))[0].files.length;u<h;u++)c=r[0].files[u],a&&a.append(r.attr("name")+"",c);var p,m=0;for(h=s.length;m<h;m++)p=s[m],a&&a.append(p.name,p.value);var f=null;for(var _ in e)if(/^submit_\w+/.test(_)){f=_;break}if(a){if(e.hasOwnProperty("name")){var g=!0;e.hasOwnProperty("value")&&(g=e.value),a.append(e.name,g)}e.hasOwnProperty("submit")?a.append("submit",e.submit):f&&a.append(f,e[f]),e.hasOwnProperty("data")&&t.each(e.data,(function(e,t){a.append(e,t)}))}var v=function(e){"json"==n&&(1==i&&alert("You have an request error, check the console for more details."),console.log("error: the returned data must be json, your response text is: "),console.log(e.responseText))};if(a)return t.ajax({url:NewsletterPro.dataStorage.get("ajax_url"),type:"POST",data:a,processData:!1,contentType:!1,dataType:n,error:v}).promise();var y=this.form.getFormData();return e.hasOwnProperty("submit")?y.submit=e.submit:f&&a.append(f,e[f]),t.ajax({url:NewsletterPro.dataStorage.get("ajax_url"),type:"POST",data:y,dataType:n,error:v}).promise()}function c(){return parseFloat(this.css("padding-left"))+parseFloat(this.css("padding-right"))}function u(e){var n=t(this);if(void 0!==e){var i=0;return i=/%/.test(new RegExp(String(e)))||/px/.test(new RegExp(String(e)))?e:parseInt(e)+"px",n.css("width",i),n}return parseInt(n.css("width"))}function h(){var e=this.get(0);if(window.getComputedStyle){var t=window.getComputedStyle(e,null);return e.offsetWidth+(parseInt(t.getPropertyValue("margin-left"),10)||0)+(parseInt(t.getPropertyValue("margin-right"),10)||0)}return e.offsetWidth+(parseInt(e.currentStyle.marginLeft)||0)+(parseInt(e.currentStyle.marginRight)||0)}e.exports=function(e){for(var t=0;t<e.length;t++){var p=e[t];p.extend({postAjax:n,updateConfiguration:i,objSize:s,setCookie:r,getCookie:o,deleteCookie:l,submitAjax:d}),p.fn.extend({getPaddingWidth:c,widthCSS:u,quickOuterWidth:h,getFormData:a})}}}).call(this,n(2))},function(module,exports,__webpack_require__){(function($){function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}window.NewsletterPro=window.NewsletterPro||{};var NewsletterPro=window.NewsletterPro;$((function(){try{NewsletterPro.modifyTextarea()}catch(e){console.warn(e)}})),NewsletterPro.define={SEND_METHOD_DEFAULT:0,SEND_METHOD_ANTIFLOOD:1,SEND_THROTTLER_TYPE_EMAILS:0,SEND_THROTTLER_TYPE_MB:1},NewsletterPro.prototype={name:"Newsletter Pro",version:"4.0.1"},NewsletterPro.namespace=function(e){var t,n=e.split("."),i=NewsletterPro;for("NewsletterPro"===n[0]&&(n=n.slice(1)),t=0;t<n.length;t++)void 0===i[n[t]]&&(i[n[t]]={}),i=i[n[t]];return i},NewsletterPro.alertErrors=function(e){var t;t=(t="string"==typeof e?e.replace(/\&quot;/g,'"'):String(e.join("\n")).replace(/\&quot;/g,'"')).replace(/\&\#039;/g,'"'),alert(t)},NewsletterPro.displayAlert=function(e,t){return t=t||"\n","object"===_typeof(e)&&(e=e.join(t)),e=(e=(e=(e=e.replace(/\&quot;/g,'"')).replace(/\&\#039;/g,'"')).replace(/\&\gt;/g,">")).replace(/\&\lt;/g,"<")},NewsletterPro.showAjaxLoader=function(e){var t=e.find(".btn-ajax-loader");(t.length>0||(t=e.find(".ajax-loader")).length>0)&&t.show()},NewsletterPro.hideAjaxLoader=function(e){var t=e.find(".btn-ajax-loader");(t.length>0||(t=e.find(".ajax-loader")).length>0)&&t.hide()},NewsletterPro.getUrl=function(e){return NewsletterPro.dataStorage.get("ajax_url")+this.parseUrl(e)},NewsletterPro.parseUrl=function(e,t){void 0===t&&(t=!1);var n="";for(var i in e){n+="&"+i+"="+e[i]}return 1==t?n.substr(1):n},NewsletterPro.extendSubscribeFeature=function(e){e.subscriptionFeature=e.subscriptionFeature||{},e.subscribe=function(t,n,i){e.subscriptionFeature.hasOwnProperty(t)||(e.subscriptionFeature[t]=[]),e.subscriptionFeature[t].push({func:n,instance:i})},e.publish=function(t,n){if(e.subscriptionFeature.hasOwnProperty(t))for(var i=0;i<e.subscriptionFeature[t].length;i++){var s="function"==typeof n?n():n,a=e.subscriptionFeature[t][i].func,r=e.subscriptionFeature[t][i].instance||e;a.call(r,s)}}},NewsletterPro.dataStorage={data:{},init:function(){return NewsletterPro.extendSubscribeFeature(this),this},get:function get(name){if(void 0===name)return this.data;var split=name.split(".");if(split.length>1){var target="NewsletterPro.dataStorage.data."+split.join(".");try{if("undefined"!==eval("typeof "+target))return eval(target)}catch(e){return!1}}else if(this.data.hasOwnProperty(name))return this.data[name];return!1},getNumber:function(e){var t=Number(this.get(e));return isNaN(t)?0:t},has:function has(name){if(void 0===name)return this.data;var split=name.split(".");if(split.length>1){var target="NewsletterPro.dataStorage.data."+split.join(".");try{if("undefined"!==eval("typeof "+target))return!0}catch(e){return!1}}else if(this.data.hasOwnProperty(name))return!0;return!1},add:function(e,t){var n,i=e.split("."),s=this.data;for(n=0;n<i.length;n++)n==i.length-1?s[i[n]]=t:"object"!==_typeof(s[i[n]])&&(s[i[n]]={}),"object"===_typeof(s)&&(s=s[i[n]])},set:function(e,t){this.add(e,t),this.publish("change"+e,t)},addObject:function(e){for(var t in e)this.data[t]=e[t]},append:function(e,t){this.data.hasOwnProperty(e)||(this.data[e]=[]),this.data[e].push(t)},on:function(e,t,n){switch(e){case"change":this.subscribe("change"+t,n)}}}.init(),NewsletterPro.test={dom:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=NewsletterPro.modules;for(var t in e){var n=t,i=e[t];for(var s in dom=i.dom,dom){var a=s;if(0==dom[s].length)throw Error('Error: The element "'+a+'" does not exist in the module "'+n+'"')}}}))},NewsletterPro.onObject={callback:{},setCallback:function(e,t){this.callback[e]=t},run:function(e,t){this.callback.hasOwnProperty(e)&&this.callback[e](t)}},NewsletterPro.uniqueId=function(e){e=e||3;var t="";for(var n=0;n<e;n++)t+=(65536*(1+Math.random())|0).toString(16).substring(1)+"-";return t.replace(/-$/,"")},NewsletterPro.ucfirst=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},NewsletterPro.modifyTextarea=function(){HTMLTextAreaElement.prototype.getCaretPosition=function(){return this.selectionStart},HTMLTextAreaElement.prototype.setCaretPosition=function(e){this.selectionStart=e,this.selectionEnd=e,this.focus()},HTMLTextAreaElement.prototype.hasSelection=function(){return this.selectionStart!=this.selectionEnd},HTMLTextAreaElement.prototype.getSelectedText=function(){return this.value.substring(this.selectionStart,this.selectionEnd)},HTMLTextAreaElement.prototype.setSelection=function(e,t){this.selectionStart=e,this.selectionEnd=t,this.focus()}},NewsletterPro.setBoxSizeing=function(e){for(var t in e)e[t].css({"box-sizing":"content-box"})},NewsletterPro.versionCompare=function(e,t,n){var i=n&&n.lexicographical,s=n&&n.zeroExtend,a=e.split("."),r=t.split(".");function o(e){return(i?/^\d+[A-Za-z]*$/:/^\d+$/).test(e)}if(!a.every(o)||!r.every(o))return NaN;if(s){for(;a.length<r.length;)a.push("0");for(;r.length<a.length;)r.push("0")}i||(a=a.map(Number),r=r.map(Number));for(var l=0;l<a.length;++l){if(r.length==l)return 1;if(a[l]!=r[l])return a[l]>r[l]?1:-1}return a.length!=r.length?-1:0},NewsletterPro.subscription=function(e,t){for(var n=0;n<e.subscription.length;n++){var i=e.subscription[n];i[0].subscribe(i[1],e[i[2]],e)}},NewsletterPro.htmlEncode=function(e){return $("<div/>").text(e).html()},NewsletterPro.htmlDecode=function(e){return $("<div/>").html(e).text()},NewsletterPro.getXHRError=function(e,t){t=t||1e3;var n=e.responseText,i=this.htmlEncode(n.slice(0,1e3));return n.length>1e3&&(i+="..."),i},NewsletterPro.bootstrap=function(e){return e(Number(this.dataStorage.get("bootstrap")))},NewsletterPro.isTinyHigherVersion=function(){return tinyMCE.majorVersion>=4},NewsletterPro.linkAdd=function(e,t,n){if(t=t||"",n=n||"",e){var i=e.indexOf("#");/\?/.test(e)&&t.length>0?e=-1!=i?e.substr(0,i)+"&"+t+e.substr(i):e+"&"+t:t.length>0&&(e=-1!=i?e.substr(0,i)+"?"+t+e.substr(i):e+"?"+t),-1!=i&&n.length>0?e+=n:n.length>0&&(e=e+"#"+n)}return e},NewsletterPro.trimString=function(e,t,n){return n=n||"...",t=parseInt(t),e.length>t+n.length&&(e=e.slice(0,t)+n),e},NewsletterPro.objSize=function(e){var t=0;for(var n in e)t++;return t},NewsletterPro.parseProductHeader=function(e,t){t=void 0===t||t;return function(e){var n=e.match(/<!-- start header -->\s*?<!--([\s\S]*)-->\s*?<!-- end header -->/);t||((n=[])[0]="",n[1]=e);var i,s={};return null!=n&&n.length>0&&(i=n[0],s=function(e){var t=e.split("\n"),n="";if(null!=t&&t.length>0)for(var i=0;i<t.length;i++){var s=t[i].replace(/\s+/g,"");""!=s&&(n+=s,";"!==s[s.length-1]&&(n+=";"))}var a=n.split(";"),r={};if(null!=a&&a.length>0)for(i=0;i<a.length;i++){var o=a[i].replace(/\s+/g,"");if(""!=o){var l=o.split("=");void 0!==l[1]&&(r[l[0]]="false"!==l[1]&&("true"===l[1]||(isNaN(Number(l[1]))?l[1]:Number(l[1]))))}}return r}(n[1]),e=e.replace(i,"")),s}(e)},NewsletterPro.parseObject=function(e,t){var n=Object.keys(e);if(n.length>0)for(var i=0;i<n.length;i++)t(e[n[i]],n[i])},NewsletterPro.mapObject=function(e,t){var n=Object.keys(e),i=[];if(n.length>0)for(var s=0;s<n.length;s++)i.push(t(e[n[s]],n[s]));return i}}).call(this,__webpack_require__(2))},function(e,t,n){"use strict";var i=n(294)();e.exports=function(e){return e!==i&&null!==e}},function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s({format:"YYYY-MM-DD HH:mm:ss",showTodayButton:!0,showClear:!0,showClose:!1,locale:window.NewsletterPro.dataStorage.get("language.locale"),icons:{time:"icon icon-clock-o fa fa-clock-o",date:"icon icon-calendar fa fa-calendar",up:"icon icon-chevron-up fa fa-chevron-up",down:"icon icon-chevron-down fa fa-chevron-down",previous:"icon icon-chevron-left fa fa-chevron-left",next:"icon icon-chevron-right fa fa-chevron-right",today:"icon icon-crosshairs fa fa-crosshairs",clear:"icon icon-trash fa fa-trash",close:"icon icon-remove fa fa-remove"}},e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return a}));var a=function(){function t(e){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"props",null),s(this,"url",null),this.props=e,this.id=e.id,this.name=e.name,this.parent=e.parent||null,this.childrens=null,this.root=void 0!==e.root&&e.root,this.childrensCount=e.childrensCount||0,this.initChildrens=void 0!==e.initChildrens?e.initChildrens:[],this.checkAllNodes=!1,this.tree=e.tree,this.folder={open:"fa fa-folder-open icon icon-folder-open pqcrp-category-tree-folder",close:"fa fa-folder-close icon icon-folder-close pqcrp-category-tree-folder"},this.icons={checkAll:"fa fa-circle icon icon-circle",uncheckAll:"fa fa-circle-o icon icon-circle-o",partialCheck:"fa fa-dot-circle-o icon icon-dot-circle-o"},this.tree.selected.length>0&&this.tree.selected.indexOf(this.id)>-1?this.selected=!0:this.selected=!1,this.isOpen=!1,this.dom=null,this.template=null,this.initTemplate(),this.parent&&this.parent.dom.childrens.append(this.render()),this.initChildrens.length>0&&this.addChildrens(this.initChildrens,!0),this.tree.on("ready",(function(){n.selected&&(n.check("TRIGGER_STAUTS_READY"),n.tree.selectedOpen&&n.openParents())}))}var n,a,r;return n=t,(a=[{key:"initTemplate",value:function(){var t=this,n=e('\n <ul class="'.concat(this.root?"pqcrp-root":"",'">\n <li>\n <div class="pqcrp-category-tree-item ').concat(this.hasChildrens()?"pqcrp-has-childrens":""," ").concat(this.selected?"selected":"",'">\n <input type="checkbox">\n ').concat(this.hasChildrens()?'<span class="pqcrp-category-tree-node-select"><i class="'+this.icons.uncheckAll+'"></i></span>':"","\n ").concat(this.hasChildrens()?'<i class="'+this.folder.close+'"></i>':'<i class="fa fa-circle icon icon-circle pqcrp-tree-dot"></i>','\n <span class="pqcrp-category-tree-name">').concat(this.name,'</span>\n </div>\n <div class="pqcrp-category-tree-childrens"></div>\n </li>\n </ul>\n '));this.dom={item:n.find(".pqcrp-category-tree-item"),input:n.find("input"),childrens:n.find(".pqcrp-category-tree-childrens"),icon:n.find("i.pqcrp-category-tree-folder"),iconNode:n.find("span.pqcrp-category-tree-node-select i")},this.dom.input.on("click",(function(e){e.stopPropagation(),t.checkToggle()})),this.dom.iconNode.length>0&&this.dom.iconNode.on("click",(function(e){if(e.stopPropagation(),t.childrensCount>0&&null==t.childrens){var n=t.tree;n.fullTree?t.checkAllToggle():n.ajaxGetTree((function(e,i){if(i){for(var s=n.getOpened(),a=[],r=t.id,o=0;o<s.length;o++){var l=s[o];a.push(l.id)}var d=n.getSelected(),c=[];for(o=0;o<d.length;o++)l=d[o],c.push(l.id);n.fullTree=!0,n.createTree(e),n.dom.searchTarget.show(),n.parse((function(e,t){c.indexOf(e)>-1&&t.check(),a.indexOf(e)>-1&&t.open(),e==r&&t.checkAllToggle()}))}return!0}))}else t.checkAllToggle()})),this.hasChildrens()&&this.dom.item.on("click",(function(e){e.stopPropagation(),t.click(!0)})),this.template=n}},{key:"ajaxGetChildrens",value:function(e,t,n,i){return this.ajax("getChildrens",{id_category:e},t,n,i).promise()}},{key:"hasChildrens",value:function(){return this.childrensCount>0}},{key:"setupPartialCheck",value:function(){if(this.parent){for(var e=[],t=this.parent.childrens.length-1;t>=0;t--){var n=this.parent.childrens[t].selected;e.push(n)}var i=e.indexOf(!1)>-1,s=e.indexOf(!0)>-1;i&&s?this.parent.dom.iconNode.attr("class",this.icons.partialCheck):i?(this.parent.checkAllNodes=!1,this.parent.dom.iconNode.attr("class",this.icons.uncheckAll)):(this.parent.checkAllNodes=!0,this.parent.dom.iconNode.attr("class",this.icons.checkAll))}}},{key:"checkToggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"TRIGGER_STAUTS_DEFAULT";this.dom.input.is(":checked")?this.check(e):this.uncheck(e)}},{key:"check",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"TRIGGER_STAUTS_DEFAULT";this.selected=!0,this.dom.input.prop("checked",!0),this.dom.item.addClass("selected"),this.parent&&"TRIGGER_STAUTS_ALL"!==e&&this.setupPartialCheck(),"TRIGGER_STAUTS_ALL"!==e&&"TRIGGER_STAUTS_READY"!==e&&this.tree.emit("change",this.tree.getSelected("id"))}},{key:"uncheck",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"TRIGGER_STAUTS_DEFAULT";if(this.selected=!1,this.dom.input.prop("checked",!1),this.dom.item.removeClass("selected"),"TRIGGER_STAUTS_ALL"!==e&&"TRIGGER_STAUTS_READY"!==e&&this.setupPartialCheck(),"TRIGGER_STAUTS_ALL"!==e){var t=this.tree.selected.indexOf(this.id);t>-1&&this.tree.selected.splice(t,1),this.tree.emit("change",this.tree.getSelected("id"))}}},{key:"setOpen",value:function(e){this.isOpen=e,this.hasChildrens()&&(this.isOpen?this.dom.icon.attr("class",this.folder.open):this.dom.icon.attr("class",this.folder.close))}},{key:"openParents",value:function(){this.parent&&(this.parent.open(),this.parent.openParents())}},{key:"open",value:function(e){var t=this;e=void 0!==e&&e;var n=function(){if(e){var n=t.dom.childrens.height();t.dom.childrens.css({display:"block","padding-left":0,opacity:0,height:0}),t.dom.childrens.animate({opacity:1,"padding-left":"20px",height:n+"px"},"fast",(function(){t.dom.childrens.css({height:"auto"})}))}else t.dom.childrens.show(),t.dom.childrens.css({display:"block","padding-left":"20px",opacity:1,height:"auto"})};this.hasChildrens()||(this.childrens=[]),null==this.childrens?this.ajaxGetChildrens(this.id,(function(e,i){return i&&(t.addChildrens(e),t.setOpen(!0),n()),!0})):this.childrens.length>0&&(this.setOpen(!0),n())}},{key:"close",value:function(e){var t=this;e=void 0!==e&&e,this.childrens.length>0&&(this.setOpen(!1),e?this.dom.childrens.animate({"padding-left":0,opacity:0,height:0},"fast",(function(){t.dom.childrens.css({height:"auto"}),t.dom.childrens.hide()})):(this.dom.childrens.hide(),this.dom.childrens.css({height:"auto"})))}},{key:"expand",value:function(){if(this.open(),null!=this.childrens)for(var e=0;e<this.childrens.length;e++)this.childrens[e].expand()}},{key:"collapse",value:function(){if(this.close(),null!=this.childrens)for(var e=this.childrens.length-1;e>=0;e--)this.childrens[e].collapse()}},{key:"checkAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.checkAllNodes=!0,this.check("TRIGGER_STAUTS_ALL"),this.dom.iconNode.attr("class",this.icons.checkAll),null!=this.childrens)for(var t=0;t<this.childrens.length;t++){var n=this.childrens[t];n.checkAll(!0)}e||this.tree.emit("change",this.tree.getSelected("id"))}},{key:"uncheckAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.tree.selected=[],this.checkAllNodes=!1,this.uncheck("TRIGGER_STAUTS_ALL"),this.dom.iconNode.attr("class",this.icons.uncheckAll),null!=this.childrens)for(var t=this.childrens.length-1;t>=0;t--){var n=this.childrens[t];n.uncheckAll(!0)}e||this.tree.emit("change",this.tree.getSelected("id"))}},{key:"checkAllToggle",value:function(){this.checkAllNodes?this.uncheckAll():this.checkAll(),this.setupPartialCheck()}},{key:"click",value:function(e){e=void 0!==e&&e,this.isOpen?this.close(e):this.open(e)}},{key:"getOpened",value:function(){var e=[];if(this.isOpen&&e.push(this),null!=this.childrens)for(var t=0;t<this.childrens.length;t++)for(var n=this.childrens[t].getOpened(),i=0;i<n.length;i++)e.push(n[i]);return e}},{key:"getSelected",value:function(e){var t=[];if(this.selected&&(void 0!==e?t.push(this[e]):t.push(this)),null!=this.childrens)for(var n=0;n<this.childrens.length;n++)for(var i=this.childrens[n].getSelected(e),s=0;s<i.length;s++)t.push(i[s]);return t}},{key:"parse",value:function(e){if(e(this.id,this),null!==this.childrens)for(var t=0;t<this.childrens.length;t++)this.childrens[t].parse(e)}},{key:"addChildrens",value:function(e,n){n=void 0!==n&&n,null==this.childrens&&(this.childrens=[]);for(var i=0;i<e.length;i++){var s,a=e[i],r={id:Number(a.id_category),name:a.name,root:!1,parent:this,tree:this.tree};n?(r.childrensCount=a.childrens.length,r.initChildrens=a.childrens):r.childrensCount=Number(a.childrens),s=new t(r),this.childrens.push(s)}}},{key:"render",value:function(){return this.template}}])&&i(n.prototype,a),r&&i(n,r),t}()}).call(this,n(2))},,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_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("_"),meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,r){var o=i(t),l=s[e][i(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},r=["كانون الثاني يناير","شباط فبراير","آذار مارس","نيسان أبريل","أيار مايو","حزيران يونيو","تموز يوليو","آب أغسطس","أيلول سبتمبر","تشرين الأول أكتوبر","تشرين الثاني نوفمبر","كانون الأول ديسمبر"];return e.defineLocale("ar",{months:r,monthsShort:r,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 LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:6,doy:12}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};return e.defineLocale("ar-sa",{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 LT",LLLL:"dddd D MMMM YYYY LT"},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={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ı"};return 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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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ə",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"},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},ordinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i,s;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,s={mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?s[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?s[1]:s[2])}return e.defineLocale("be",{months:function(e,t){return{nominative:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_"),accusative:"студзеня_лютага_сакавікарасавікараўня_чэрвеня_ліпеня_жніўня_верасня_кастрычнікаістапада_снежня".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"студ_лют_сак_красрав_чэрв_ліп_жнів_вераст_ліст_снеж".split("_"),weekdays:function(e,t){return{nominative:"нядзеля_панядзелак_аўторак_серадаацвер_пятніца_субота".split("_"),accusative:"нядзелю_панядзелак_аўторак_серадуацвер_пятніцу_суботу".split("_")}[/\[ ?[Вв] ?(?:мінулую|наступную)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},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:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},ordinalParse:/\d{1,2}-(і|ы|га)/,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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"янрев_мар_апрай_юни_юли_авг_сеп_окт_ноеек".split("_"),weekdays:"неделя_понеделник_вторник_срядаетвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дни",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};return 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, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কএক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiem:function(e,t,n){return e<4?"রাত":e<10?"শকাল":e<17?"দুপুর":e<20?"বিকেল":"রাত"},week:{dow:0,doy:6}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};return e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),longDateFormat:{LT:"A h:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){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"}[n],e)}return 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("_"),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 LT",LLLL:"dddd, D [a viz] MMMM YYYY LT"},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ù",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},ordinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return 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("_"),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("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("ca",{months:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),monthsShort:"gen._febr._mar._abr._mai._jun._jul._ag._set._oct._nov._des.".split("_"),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("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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:"en %s",past:"fa %s",s:"uns 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"},ordinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function i(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,s){var a=e+" ";switch(n){case"s":return t||s?"pár sekund":"pár sekundami";case"m":return t?"minuta":s?"minutu":"minutou";case"mm":return t||s?a+(i(e)?"minuty":"minut"):a+"minutami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?a+(i(e)?"hodiny":"hodin"):a+"hodinami";case"d":return t||s?"den":"dnem";case"dd":return t||s?a+(i(e)?"dny":"dní"):a+"dny";case"M":return t||s?"měsíc":"měsícem";case"MM":return t||s?a+(i(e)?"měsíce":"měsíců"):a+"měsíci";case"y":return t||s?"rok":"rokem";case"yy":return t||s?a+(i(e)?"roky":"let"):a+"lety"}}return e.defineLocale("cs",{months:t,monthsShort:n,monthsParse:function(e,t){var n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(t,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:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},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:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("cv",{months:"кăрлач_нарăс_пуш_акаай_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),monthsShort:"кăрар_пуш_акаай_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),weekdaysShort:"вырун_ытл_юн_кĕç_эрн_шăм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кç_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",LLL:"YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",LLLL:"dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ĕнер] LT [сехетре]",nextWeek:"[Çитес] dddd LT [сехетре]",lastWeek:"[Иртнĕ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/çул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пĕр-ик çеккунт",m:"пĕр минут",mm:"%d минут",h:"пĕр сехет",hh:"%d сехет",d:"пĕр кун",dd:"%d кун",M:"пĕр уйăх",MM:"%d уйăх",y:"пĕр çул",yy:"%d çул"},ordinalParse:/\d{1,2}-мĕш/,ordinal:"%d-мĕш",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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",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"},ordinalParse:/\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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd [d.] D. MMMM YYYY LT"},calendar:{sameDay:"[I dag kl.] LT",nextDay:"[I morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[I går kl.] LT",lastWeek:"[sidste] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få 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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n,i){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[n][0]:s[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n,i){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[n][0]:s[n][1]}return e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παραβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Παα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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 n=this._calendarEl[e],i=t&&t.hours();return"function"==typeof n&&(n=n.apply(t)),n.replace("{}",i%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},ordinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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 LT",LLLL:"dddd, D MMMM YYYY LT"},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",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"},ordinalParse:/\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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"D MMMM, YYYY",LLL:"D MMMM, YYYY LT",LLLL:"dddd, D MMMM, YYYY LT"},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",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"},ordinalParse:/\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")}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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 LT",LLLL:"dddd, D MMMM YYYY LT"},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",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"},ordinalParse:/\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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"YYYY-MM-DD",LL:"D[-an de] MMMM, YYYY",LLL:"D[-an de] MMMM, YYYY LT",LLLL:"dddd, [la] D[-an de] MMMM, YYYY LT"},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"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:"je %s",past:"antaŭ %s",s:"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"},ordinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_");return e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},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("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},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",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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n,i){var s={s:["mõne sekundi","mõni sekund","paar 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[n][2]?s[n][2]:s[n][1]:i?s[n][0]:s[n][1]}return 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:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] LT",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] LT",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] LT",llll:"ddd, YYYY[ko] MMM D[a] LT"},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",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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};return e.defineLocale("fa",{months:"ژانویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریهارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبههشنبههارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چندین ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},ordinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,s,a){var r="";switch(s){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":r=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return r=function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+r}return 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] LT",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] LT",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] LT",llll:"ddd, Do MMM YYYY, [klo] LT"},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:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D. MMMM, YYYY LT"},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",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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}(er|)/,ordinal:function(e){return e+(1===e?"er":"")}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),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("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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"uns segundos"===e?"nuns segundos":"en "+e},past:"hai %s",s:"uns 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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יוליוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יוליוג׳_ספט׳וק׳וב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישיישי_שבת".split("_"),weekdaysShort:"א׳׳׳׳׳_ו׳׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY LT",LLLL:"dddd, D [ב]MMMM YYYY LT",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",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+" שנים"}}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};return e.defineLocale("hi",{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, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}return e.defineLocale("hr",{months:"sječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_"),monthsShort:"sje._vel._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),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("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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",m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var s=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return s+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return s+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return s+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return s+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return s+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}return 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:"LT:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D., LT",LLLL:"YYYY. MMMM D., dddd LT"},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("hy-am",{months:function(e,t){return{nominative:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_"),accusative:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:function(e,t){return"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_")[e.month()]},weekdays:function(e,t){return"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_")[e.day()]},weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., LT",LLLL:"dddd, D MMMM YYYY թ., LT"},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:"մի քանի վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},ordinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(e,t,n){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",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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e){return e%100==11||e%10!=1}function n(e,n,i,s){var a=e+" ";switch(i){case"s":return n||s?"nokkrar sekúndur":"nokkrum sekúndum";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||s?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||s?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":s?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(s?"daga":"dögum"):n?a+"dagur":a+(s?"dag":"degi");case"M":return n?"mánuður":s?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(s?"mánuði":"mánuðum"):n?a+"mánuður":a+(s?"mánuð":"mánuði");case"y":return n||s?"ár":"ári";case"yy":return t(e)?a+(n||s?"ár":"árum"):a+(n||s?"ár":"ári")}}return 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:"LT:ss",L:"DD/MM/YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd, D. MMMM YYYY [kl.] LT"},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:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"D_L_Ma_Me_G_V_S".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"Ah時m分",LTS:"LTs秒",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日LT",LLLL:"YYYY年M月D日LT dddd"},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:"[来週]dddd LT",lastDay:"[昨日] LT",lastWeek:"[前週]dddd LT",sameElse:"L"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("ka",{months:function(e,t){return{nominative:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),accusative:"იანვარს_თებერვალს_მარტს_აპრილის_მაისს_ივნისს_ივლისს_აგვისტს_სექტემბერს_ოქტომბერს_ნოემბერს_დეკემბერს".split("_")}[/D[oD] *MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:function(e,t){return{nominative:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),accusative:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_")}[/(წინა|შემდეგ)/.test(t)?"accusative":"nominative"][e.day()]},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 LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return/(წამი|წუთი|საათი|წელი)/.test(e)?e.replace(/ი$/,"ში"):e+"ში"},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):void 0},s:"რამდენიმე წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},ordinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("km",{months:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មិនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysMin:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[ថ្ងៃនៈ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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시 m분",LTS:"A h시 m분 s초",L:"YYYY.MM.DD",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 LT",LLLL:"YYYY년 MMMM D일 dddd LT"},meridiem:function(e,t,n){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년"},ordinalParse:/\d{1,2}일/,ordinal:"%d일",meridiemParse:/(오전|오후)/,isPM:function(e){return"오후"===e}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n,i){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[n][0]:s[n][1]}function n(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 n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}return 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("_"),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("_"),longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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 n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={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"},n="sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_");function i(e,t,n,i){return t?a(n)[0]:i?a(n)[1]:a(n)[2]}function s(e){return e%10==0||e>10&&e<20}function a(e){return t[e].split("_")}function r(e,t,n,r){var o=e+" ";return 1===e?o+i(0,t,n[0],r):t?o+(s(e)?a(n)[1]:a(n)[0]):r?o+a(n)[1]:o+(s(e)?a(n)[1]:a(n)[2])}return e.defineLocale("lt",{months:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:function(e,t){var i=-1===t.indexOf("dddd HH:mm"),s=n[e.day()];return i?s:s.substring(0,s.length-2)+"į"},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], LT [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, LT [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], LT [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, LT [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,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},m:i,mm:r,h:i,hh:r,d:i,dd:r,M:i,MM:r,y:i,yy:r},ordinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={mm:"minūti_minūtes_minūte_minūtes",hh:"stundu_stundas_stunda_stundas",dd:"dienu_dienas_diena_dienas",MM:"mēnesi_mēnešus_mēnesis_mēneši",yy:"gadu_gadus_gads_gadi"};function n(e,n,i){return e+" "+function(e,t,n){var i=e.split("_");return n?t%10==1&&11!==t?i[2]:i[3]:t%10==1&&11!==t?i[0]:i[1]}(t[i],e,n)}return 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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, LT",LLLL:"YYYY. [gada] D. MMMM, dddd, LT"},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:"%s vēlāk",past:"%s agrāk",s:"dažas sekundes",m:"minūti",mm:n,h:"stundu",hh:n,d:"dienu",dd:n,M:"mēnesi",MM:n,y:"gadu",yy:n},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апрај_јун_јул_авг_сеп_окт_ноеек".split("_"),weekdays:"недела_понеделник_вторник_средаетврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_среет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_сре_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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:"неколку секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеци",y:"година",yy:"%d години"},ordinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("ml",{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, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};return e.defineLocale("mr",{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, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%s नंतर",past:"%s पूर्वी",s:"सेकंद",m:"एक मिनिट",mm:"%d मिनिटे",h:"एक तास",hh:"%d तास",d:"एक दिवस",dd:"%d दिवस",M:"एक महिना",MM:"%d महिने",y:"एक वर्ष",yy:"%d वर्षे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiem:function(e,t,n){return e<4?"रात्री":e<10?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] LT",LLLL:"dddd, D MMMM YYYY [pukul] LT"},meridiem:function(e,t,n){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",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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","":"0"};return 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 LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("nb",{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:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tirs_ons_tors_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"H.mm",LTS:"LT.ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] LT",LLLL:"dddd D. MMMM YYYY [kl.] LT"},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:"for %s siden",s:"noen 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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};return e.defineLocale("ne",{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, LT",LLLL:"dddd, D MMMM YYYY, LT"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiem:function(e,t,n){return e<3?"राती":e<10?"बिहान":e<15?"दिउँसो":e<18?"बेलुका":e<20?"साँझ":"राती"},calendar:{sameDay:"[आज] LT",nextDay:"[भोली] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडी",s:"केही समय",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_");return e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return/-MMM-/.test(i)?n[e.month()]:t[e.month()]},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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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:"for %s sidan",s:"nokre 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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_");function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function s(e,t,n){var s=e+" ";switch(n){case"m":return t?"minuta":"minutę";case"mm":return s+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return s+(i(e)?"godziny":"godzin");case"MM":return s+(i(e)?"miesiące":"miesięcy");case"yy":return s+(i(e)?"lata":"lat")}}return e.defineLocale("pl",{months:function(e,i){return/D MMMM/.test(i)?n[e.month()]:t[e.month()]},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:"nie_pon_wt_śr_czw_pt_sb".split("_"),weekdaysMin:"N_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:"[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",m:s,mm:s,h:s,hh:s,d:"1 dzień",dd:"%d dni",M:"miesiąc",MM:s,y:"rok",yy:s},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY LT",LLLL:"dddd, D [de] MMMM [de] YYYY LT"},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",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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"dom_2ª_3ª_4ª_5ª_6ª_sáb".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] LT",LLLL:"dddd, D [de] MMMM [de] YYYY [às] LT"},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:"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"},ordinalParse:/\d{1,2}º/,ordinal:"%dº"})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[n]}return 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("_"),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:"LT: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",m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i,s;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,s={mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",MM:"месяц_месяцаесяцев",yy:"год_годает"}[n].split("_"),i%10==1&&i%100!=11?s[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?s[1]:s[2])}return e.defineLocale("ru",{months:function(e,t){return{nominative:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),accusative:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:function(e,t){return{nominative:"янв_фев_март_апрай_июнь_июль_авг_сен_окт_ноя_дек".split("_"),accusative:"янв_фев_мар_апрая_июня_июля_авг_сен_окт_ноя_дек".split("_")}[/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/.test(t)?"accusative":"nominative"][e.month()]},weekdays:function(e,t){return{nominative:"воскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),accusative:"воскресенье_понедельник_вторник_средуетверг_пятницу_субботу".split("_")}[/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?\] ?dddd/.test(t)?"accusative":"nominative"][e.day()]},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[й|я]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., LT",LLLL:"dddd, D MMMM YYYY г., LT"},calendar:{sameDay:"[Сегодня в] LT",nextDay:"[Завтра в] LT",lastDay:"[Вчера в] LT",nextWeek:function(){return 2===this.day()?"[Во] dddd [в] LT":"[В] 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:"несколько секунд",m:t,mm:t,h:"час",hh:t,d:"день",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},ordinalParse:/\d{1,2}-(й|го|я)/,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:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function s(e,t,n,s){var a=e+" ";switch(n){case"s":return t||s?"pár sekúnd":"pár sekundami";case"m":return t?"minúta":s?"minútu":"minútou";case"mm":return t||s?a+(i(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?a+(i(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||s?"deň":"dňom";case"dd":return t||s?a+(i(e)?"dni":"dní"):a+"dňami";case"M":return t||s?"mesiac":"mesiacom";case"MM":return t||s?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||s?"rok":"rokom";case"yy":return t||s?a+(i(e)?"roky":"rokov"):a+"rokmi"}}return e.defineLocale("sk",{months:t,monthsShort:n,monthsParse:function(e,t){var n,i=[];for(n=0;n<12;n++)i[n]=new RegExp("^"+e[n]+"$|^"+t[n]+"$","i");return i}(t,n),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:"LT:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd D. MMMM YYYY LT"},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:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i=e+" ";switch(n){case"m":return t?"ena minuta":"eno minuto";case"mm":return i+=1===e?"minuta":2===e?"minuti":3===e||4===e?"minute":"minut";case"h":return t?"ena ura":"eno uro";case"hh":return i+=1===e?"ura":2===e?"uri":3===e||4===e?"ure":"ur";case"dd":return i+=1===e?"dan":"dni";case"MM":return i+=1===e?"mesec":2===e?"meseca":3===e||4===e?"mesece":"mesecev";case"yy":return i+=1===e?"leto":2===e?"leti":3===e||4===e?"leta":"let"}}return 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("_"),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("_"),longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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:case 3:case 6:return"[prejšnja] dddd [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"%s nazaj",s:"nekaj sekund",m:t,mm:t,h:t,hh:t,d:"en dan",dd:t,M:"en mesec",MM:t,y:"eno leto",yy:t},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={words:{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,n,i){var s=t.words[i];return 1===i.length?n?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};return e.defineLocale("sr",{months:["januar","februar","mart","april","maj","jun","jul","avgust","septembar","oktobar","novembar","decembar"],monthsShort:["jan.","feb.","mar.","apr.","maj","jun","jul","avg.","sep.","okt.","nov.","dec."],weekdays:["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],weekdaysShort:["ned.","pon.","uto.","sre.","čet.","pet.","sub."],weekdaysMin:["ne","po","ut","sr","če","pe","su"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={words:{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,n,i){var s=t.words[i];return 1===i.length?n?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};return e.defineLocale("sr-cyrl",{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],monthsShort:["јан.","феб.","мар.","апр.","мај","јун","јул","авг.","сеп.","окт.","нов.","дец."],weekdays:["недеља","понедељак","уторак","среда","четвртак","петак","субота"],weekdaysShort:["нед.","пон.","уто.","сре.","чет.","пет.","суб."],weekdaysMin:["не","по","ут","ср","че","пе","су"],longDateFormat:{LT:"H:mm",LTS:"LT:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY LT",LLLL:"dddd, D. MMMM YYYY LT"},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:"неколико секунди",m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},ordinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"dddd LT",lastWeek:"[Förra] dddd[en] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några 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"},ordinalParse:/\d{1,2}(e|a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"e":1===t||2===t?"a":"e")},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, LT",LLLL:"dddd, D MMMM YYYY, LT"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},ordinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},meridiem:function(e,t,n){return e>=6&&e<=10?" காலை":e>=10&&e<=14?" நண்பகல்":e>=14&&e<=18?" எற்பாடு":e>=18&&e<=20?" மாலை":e>=20&&e<=24?" இரவு":e>=0&&e<=6?" வைகறை":void 0},week:{dow:0,doy:6}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"มกรา_กุมภา_มีนา_เมษา_พฤษภา_มิถุนา_กรกฎา_สิงหา_กันยา_ตุลา_พฤศจิกา_ธันวา".split("_"),weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),longDateFormat:{LT:"H นาฬิกา m นาที",LTS:"LT s วินาที",L:"YYYY/MM/DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา LT",LLLL:"วันddddที่ D MMMM YYYY เวลา LT"},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM DD, YYYY LT"},calendar:{sameDay:"[Ngayon sa] LT",nextDay:"[Bukas sa] LT",nextWeek:"dddd [sa] LT",lastDay:"[Kahapon sa] LT",lastWeek:"dddd [huling linggo] LT",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang 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"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){var t={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ı"};return 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:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd, D MMMM YYYY LT"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[haftaya] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen hafta] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç 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"},ordinalParse:/\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,ordinal:function(e){if(0===e)return e+"'ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("tzm",{months:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),monthsShort:"ⵉⴰⵢ_ⴱⴰⵢ_ⵎⴰⵚ_ⵉⴱ_ⵎⴰⵢⵢⵓ_ⵢⵓⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⴱⵉ_ⴽⵟⵓⴱ_ⵓⵡⴰⴱⵉ_ⴷⵓⵊⴱⵉ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⴰⵙ_ⴰⵙⵉⴰⵙ_ⴰⴽⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰ",M:"ⴰⵢoⵓ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"dddd D MMMM YYYY LT"},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",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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){function t(e,t,n){var i,s;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,s={mm:"хвилина_хвилини_хвилин",hh:"година_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?s[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?s[1]:s[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}return e.defineLocale("uk",{months:function(e,t){return{nominative:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_"),accusative:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_")}[/D[oD]? *MMMM?/.test(t)?"accusative":"nominative"][e.month()]},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:function(e,t){return{nominative:"неділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:"неділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")}[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., LT",LLLL:"dddd, D MMMM YYYY р., LT"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},ordinalParse:/\d{1,2}-(й|го)/,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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return e.defineLocale("uz",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_мар_апрай_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанбаушанба_Сешанбаоршанбаайшанбаумаанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чорай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Сеоауа".split("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY LT",LLLL:"D MMMM YYYY, dddd LT"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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("_"),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("_"),longDateFormat:{LT:"HH:mm",LTS:"LT:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY LT",LLLL:"dddd, D MMMM [năm] YYYY LT",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY LT",llll:"ddd, D MMM YYYY LT"},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",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"},ordinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"Ah点mm",LTS:"Ah点m分s秒",L:"YYYY-MM-DD",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY-MM-DD",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:function(){return 0===this.minutes()?"[今天]Ah[点整]":"[今天]LT"},nextDay:function(){return 0===this.minutes()?"[明天]Ah[点整]":"[明天]LT"},lastDay:function(){return 0===this.minutes()?"[昨天]Ah[点整]":"[昨天]LT"},nextWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()-t.unix()>=604800?"[下]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},lastWeek:function(){var t,n;return t=e().startOf("week"),n=this.unix()<t.unix()?"[上]":"[本]",0===this.minutes()?n+"dddAh点整":n+"dddAh点mm"},sameElse:"LL"},ordinalParse:/\d{1,2}(日|月|周)/,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:"几秒",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}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){var i,s,a;s=[n(1)],void 0===(a="function"==typeof(i=function(e){return 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:"Ah點mm",LTS:"Ah點m分s秒",L:"YYYY年MMMD日",LL:"YYYY年MMMD日",LLL:"YYYY年MMMD日LT",LLLL:"YYYY年MMMD日ddddLT",l:"YYYY年MMMD日",ll:"YYYY年MMMD日",lll:"YYYY年MMMD日LT",llll:"YYYY年MMMD日ddddLT"},meridiem:function(e,t,n){var i=100*e+t;return i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},ordinalParse:/\d{1,2}(日|月|週)/,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:"幾秒",m:"一分鐘",mm:"%d分鐘",h:"一小時",hh:"%d小時",d:"一天",dd:"%d天",M:"一個月",MM:"%d個月",y:"一年",yy:"%d年"}})})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){return e<12?n?"vm":"VM":n?"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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},s={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,r){var o=i(t),l=s[e][i(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:r,monthsShort:r,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:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(i,s,a,r){var o=t(i),l=n[e][t(i)];return 2===o&&(l=l[s?0:1]),l.replace(/%d/i,i)}},s=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:s,monthsShort:s,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:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},s=function(e){return function(t,s,a,r){var o=n(t),l=i[e][n(t)];return 2===o&&(l=l[s?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,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:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:s("s"),ss:s("s"),m:s("m"),mm:s("m"),h:s("h"),hh:s("h"),d:s("d"),dd:s("d"),M:s("M"),MM:s("M"),y:s("y"),yy:s("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"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:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){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(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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:"bir neçə saniyə",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ə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i,s;return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,s={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?s[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?s[1]:s[2])}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавікарасавікараўня_чэрвеня_ліпеня_жніўня_верасня_кастрычнікаістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_красрав_чэрв_ліп_жнів_вераст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_серадуацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серадаацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?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:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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 дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"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(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"১",2:"২",3:"৩",4:"",5:"৫",6:"৬",7:"",8:"৮",9:"৯",0:""},n={"১":"1","২":"2","৩":"3","":"4","৫":"5","৬":"6","":"7","৮":"8","৯":"9","":"0"};e.defineLocale("bn-bd",{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(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,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:"[བདུན་ཕྲག་རྗེས་མ], 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(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){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"}[n],e)}var n=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,s=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];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("_"),weekdaysParse:s,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:s,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},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:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(function e(t){return t>9?e(t%10):t}(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],s=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function r(e,t,n,i){var s=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?s+(a(e)?"sekundy":"sekund"):s+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?s+(a(e)?"minuty":"minut"):s+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?s+(a(e)?"hodiny":"hodin"):s+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?s+(a(e)?"dny":"dní"):s+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?s+(a(e)?"měsíce":"měsíců"):s+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?s+(a(e)?"roky":"let"):s+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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+(/сехет$/i.exec(e)?"рен":/ҫул$/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}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[n][0]:s[n][1]}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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[n][0]:s[n][1]}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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var s={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?s[n][0]:s[n][1]}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:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,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:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){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(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/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 n,i=this._calendarEl[e],s=t&&t.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",s%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}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:0,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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")}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-il",{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")}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-in",{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:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("en-sg",{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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_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:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(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,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,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:i,longMonthsParse:i,shortMonthsParse:i,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(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,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,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:i,longMonthsParse:i,shortMonthsParse:i,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(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-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,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:i,longMonthsParse:i,shortMonthsParse:i,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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],s=/^(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-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,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:i,longMonthsParse:i,shortMonthsParse:i,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:"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",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){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[n][2]?s[n][2]:s[n][1]:i?s[n][0]:s[n][1]}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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"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:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){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(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,s,a){var r="";switch(s){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":r=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":r=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":r=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":r=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":r=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":r=a?"vuoden":"vuotta"}return r=function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+r}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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("fil",{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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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 minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];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("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,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:"[Aujourdhui à] 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",w:"une semaine",ww:"%d semaines",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:"[Aujourdhui à] 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")}}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:"[Aujourdhui à] 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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="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,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","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:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var s={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return i?s[n][0]:s[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},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, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM 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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){switch(t){case"D":return e+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return e}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var s={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?s[n][0]:s[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_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 Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},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:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:""},n={"૧":"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(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,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,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"},i=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".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 बजे"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,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(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,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,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi";case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta";case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati";case"dd":return i+=1===e?"dan":"dana";case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci";case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina"}}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:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do 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:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [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:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var s=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return s+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return s+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return s+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return s+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return s+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return s+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}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("_"),monthsParseExact:!0,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,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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_Agt_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,n){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:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e){return e%100==11||e%10!=1}function n(e,n,i,s){var a=e+" ";switch(i){case"s":return n||s?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||s?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||s?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||s?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":s?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(s?"daga":"dögum"):n?a+"dagur":a+(s?"dag":"degi");case"M":return n?"mánuður":s?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(s?"mánuði":"mánuðum"):n?a+"mánuður":a+(s?"mánuð":"mánuði");case"y":return n||s?"ár":"ári";case"yy":return t(e)?a+(n||s?"ár":"árum"):a+(n||s?"ár":"ári")}}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:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",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",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("it-ch",{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}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},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日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";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年"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},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:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{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:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){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 ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:""},n={"೧":"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(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,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,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}(일|월|주)/,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:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:i,monthsShort:i,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:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){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(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){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[n][0]:s[n][1]}function n(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 n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}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 n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){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:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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"};function n(e,t,n,i){return t?s(n)[0]:i?s(n)[1]:s(n)[2]}function i(e){return e%10==0||e>10&&e<20}function s(e){return t[e].split("_")}function a(e,t,a,r){var o=e+" ";return 1===e?o+n(0,t,a[0],r):t?o+(i(e)?s(a)[1]:s(a)[0]):r?o+s(a)[1]:o+(i(e)?s(a)[1]:s(a)[2])}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,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,s){return e+" "+n(t[s],e,i)}function s(e,i,s){return n(t[s],e,i)}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:i,m:s,mm:i,h:s,hh:i,d:s,dd:i,M:s,MM:i,y:s,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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,n,i){var s=t.words[i];return 1===i.length?n?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){switch(n){case"s":return t?"хэдхэн секунд":"хэдхэн секундын";case"ss":return e+(t?" секунд":" секундын");case"m":case"mm":return e+(t?" минут":" минутын");case"h":case"hh":return e+(t?" цаг":" цагийн");case"d":case"dd":return e+(t?" өдөр":" өдрийн");case"M":case"MM":return e+(t?" сар":" сарын");case"y":case"yy":return e+(t?" жил":" жилийн");default:return e}}e.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар саруравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар саролдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмархагваүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мягхаүраа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лхүа_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(e){return"ҮХ"===e},meridiem:function(e,t,n){return e<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" өдөр";default:return e}}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","":"0"};function i(e,t,n,i){var s="";if(t)switch(n){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(n){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)}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:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:""},n={"၁":"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(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._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",w:"en uke",ww:"%d uker",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:""},n={"१":"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(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,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,n){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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],s=/^(januari|februari|maart|april|mei|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,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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",w:"één week",ww:"%d weken",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^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],s=/^(januari|februari|maart|april|mei|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,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,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",w:"ei veke",ww:"%d veker",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_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] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"",2:"੨",3:"੩",4:"",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:""},n={"":"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(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,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,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function s(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var i=e+" ";switch(n){case"ss":return i+(s(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(s(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(s(e)?"godziny":"godzin");case"ww":return i+(s(e)?"tygodnie":"tygodni");case"MM":return i+(s(e)?"miesiące":"miesięcy");case"yy":return i+(s(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,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:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:"há %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}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._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:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i,s;return"m"===n?t?"минута":"минуту":e+" "+(i=+e,s={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"часасаасов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяцаесяцев",yy:"год_годает"}[n].split("_"),i%10==1&&i%100!=11?s[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?s[1]:s[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_средаетверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_средуетверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/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:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){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(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function s(e,t,n,s){var a=e+" ";switch(n){case"s":return t||s?"pár sekúnd":"pár sekundami";case"ss":return t||s?a+(i(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":s?"minútu":"minútou";case"mm":return t||s?a+(i(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":s?"hodinu":"hodinou";case"hh":return t||s?a+(i(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||s?"deň":"dňom";case"dd":return t||s?a+(i(e)?"dni":"dní"):a+"dňami";case"M":return t||s?"mesiac":"mesiacom";case"MM":return t||s?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||s?"rok":"rokom";case"yy":return t||s?a+(i(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,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:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){var s=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return s+=1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund";case"m":return t?"ena minuta":"eno minuto";case"mm":return s+=1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami";case"h":return t?"ena ura":"eno uro";case"hh":return s+=1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami";case"d":return t||i?"en dan":"enim dnem";case"dd":return s+=1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi";case"M":return t||i?"en mesec":"enim mesecem";case"MM":return s+=1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci";case"y":return t||i?"eno leto":"enim letom";case"yy":return s+=1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti"}}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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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,n,i){var s=t.words[i];return 1===i.length?n?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};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:"D. M. 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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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,n,i){var s=t.words[i];return 1===i.length?n?s[0]:s[1]:e+" "+t.correctGrammaticalCase(e,s)}};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:"D. M. 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:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"дан",dd:t.translate,M:"месец",MM:t.translate,y:"годину",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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,n){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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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 A",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:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:""},n={"௧":"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}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){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||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,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,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_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:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{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:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){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 วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".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 sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t="pagh_wa_cha_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,s){var a=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),s=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),s>0&&(a+=(""!==a?" ":"")+t[s]),""===a?"pagh":a}(e);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}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 wamaH_tera jar wamaH wa_tera jar wamaH cha".split("_"),monthsShort:"jar wa_jar cha_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wamaH_jar wamaH wa_jar wamaH 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:"[waleS] LT",nextWeek:"LLL",lastDay:"[waHu] 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:n,m:"wa tup",mm:n,h:"wa rep",hh:n,d:"wa jaj",dd:n,M:"wa jar",MM:n,y:"wa DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t={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("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},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",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n,i){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 i||t?s[n][0]:s[n][1]}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,n){return e>11?n?"d'o":"D'O":n?"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:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".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:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,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,n){var i=100*e+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},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}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
function t(e,t,n){var i,s;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,s={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяціісяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?s[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?s[1]:s[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_веровт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середаетвер_пятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середуетвер_пятницю_суботу".split("_"),genitive:"неділі_понеділкаівторка_середи_четверга_пятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.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:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,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:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){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(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".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,n){return e<12?n?"sa":"SA":n?"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 trước 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",w:"một tuần",ww:"%d tuần",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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_À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:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/凌晨|早上|上午|中午|下午|晚上/,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,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,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 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/凌晨|早上|上午|中午|下午|晚上/,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,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,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 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
e.defineLocale("zh-mo",{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:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,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,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,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 年"}})}(n(0))},function(e,t,n){!function(e){"use strict";
//! moment.js locale configuration
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:/凌晨|早上|上午|中午|下午|晚上/,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,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,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 年"}})}(n(0))},function(e,t,n){"use strict";e.exports=function(e){return null!=e}},,function(e,t,n){(function(t){function i(e){var t=r([["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/],["Search Bot",/(nuhk)|(Googlebot)|(Yammybot)|(Openbot)|(Slurp)|(MSNBot)|(Ask Jeeves\/Teoma)|(ia_archiver)/]]).filter((function(t){return t.rule&&t.rule.test(e)}))[0];return t?t.name:null}function s(){return"undefined"==typeof navigator&&void 0!==t?{name:"node",version:t.version.slice(1),os:n(281).type().toLowerCase()}:null}function a(e){var t=r([["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["vivaldi",/Vivaldi\/([0-9\.]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)$/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\ ([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/]]);if(!e)return null;var n=t.map((function(t){var n=t.rule.exec(e),i=n&&n[1].split(/[._]/).slice(0,3);return i&&i.length<3&&(i=i.concat(1==i.length?[0,0]:[0])),n&&{name:t.name,version:i.join(".")}})).filter(Boolean)[0]||null;return n&&(n.os=i(e)),/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/i.test(e)&&((n=n||{}).bot=!0),n}function r(e){return e.map((function(e){return{name:e[0],rule:e[1]}}))}e.exports={detect:function(){var e=s();return e||("undefined"!=typeof navigator?a(navigator.userAgent):null)},detectOS:i,getNodeVersion:s,parseUserAgent:a}}).call(this,n(280))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n(242),s=n.n(i),a=n(5),r=n(243),o=n(20);function l(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c=function(){function t(e){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,"app",null),d(this,"l",null),d(this,"dom",{}),d(this,"selectedOpen",null),d(this,"fullTree",null),d(this,"selected",null),d(this,"template",null),s()(t.prototype);var i=e.app;this.l=a.a.source("CategoryTree"),this.props=e,this.app=e.app,this.dom=e.dom,this.transport=e.transport||{},this.selectedOpen=void 0===e.selectedOpen||e.selectedOpen,this.fullTree=void 0===e.fullTree||e.fullTree,this.selected=e.selected||[],this.hasTransport("selectedData")&&(this.selected=this.transport.selectedData),this.search=new r.a({app:e.app,tree:this}),this.hasTransport("selected")&&(this.ajaxSelected=function(e,t){var s=n.transport.selected.data||{};i.ajax.post("app",n.transport.selected.action,s,e,(function(e){if(!e.success)return i.notification.push(e.errors,"danger");t(e.data,e.success)}))}),this.hasTransport("readData")&&(this.readData=this.transport.readData),this.icons={expand:"fa fa-plus-square-o icon icon-plus-square-o",collapse:"fa fa-minus-square-o icon icon-minus-square-o"},this.expanded=!1,this.dom=null,this.template=null,this.initTemplate();var l=function(e){n.createTree(e),n.hasTransport("selected")&&n.ajaxSelected({},(function(e,t){return t&&(n.select(e),n.emit("selectedReady")),!0})),n.emit("ready")};this.readData?l(this.readData):this.fullTree?this.ajaxGetTree((function(e,t){return t&&l(e),!0})):this.ajaxGetRoot((function(e,t){return t&&(n.root=new o.a({id:Number(e.id_category),name:e.name,root:!0,childrensCount:Number(e.childrens),tree:n}),n.dom.tree.html(n.root.render()),n.emit("ready")),!0}))}var n,i,c;return n=t,(i=[{key:"initTemplate",value:function(){var t=this,n=e('\n\t\t\t<div class="pqcrp-category-tree">\n\t\t\t\t<div class="pqcrp-category-tree-controller">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<div class="form-group pqcrp-category-tree-search-target"></div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class="form-inline">\n\t\t\t\t\t\t<div class="form-group">\n\t\t\t\t\t\t\t<a href="javascript:{}" class="btn btn-default pqcrp-category-tree-expand">\n\t\t\t\t\t\t\t\t<i class="'.concat(this.icons.expand,'"></i>\n\t\t\t\t\t\t\t\t<span>').concat(this.l("Expand All"),'</span>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group pqcrp-category-tree-check-all-box">\n\t\t\t\t\t\t\t<a href="javascript:{}" class="btn btn-default pqcrp-category-tree-check-all">\n\t\t\t\t\t\t\t\t<i class="fa fa-check-square icon icon-check-square"></i>\n\t\t\t\t\t\t\t\t').concat(this.l("Check All"),'\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class="form-group pqcrp-category-tree-uncheck-all-box">\n\t\t\t\t\t\t\t<a href="javascript:{}" class="btn btn-default pqcrp-category-tree-uncheck-all">\n\t\t\t\t\t\t\t\t<i class="fa fa-square-o icon icon-square-o"></i>\n\t\t\t\t\t\t\t\t').concat(this.l("Uncheck All"),'\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div class="pqcrp-category-tree-list">\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t'));this.dom={tree:n.find(".pqcrp-category-tree-list"),searchTarget:n.find(".pqcrp-category-tree-search-target"),expand:n.find(".pqcrp-category-tree-expand"),expandIcon:n.find(".pqcrp-category-tree-expand i"),expandText:n.find(".pqcrp-category-tree-expand span"),checkAll:n.find(".pqcrp-category-tree-check-all"),uncheckAll:n.find(".pqcrp-category-tree-uncheck-all"),checkAllBox:n.find(".pqcrp-category-tree-check-all-box"),uncheckAllBox:n.find(".pqcrp-category-tree-uncheck-all-box")};var i=[];void 0!==this.props.settings&&void 0!==this.props.settings.view&&void 0!==this.props.settings.view.hide&&(i=this.props.settings.view.hide),i.includes("check-all")&&this.dom.checkAllBox.hide(),this.fullTree||this.dom.searchTarget.hide(),this.dom.expand.on("click",(function(){t.expandToggle()})),this.dom.checkAll.on("click",(function(){t.checkAll()})),this.dom.uncheckAll.on("click",(function(){t.uncheckAll()})),this.dom.searchTarget.html(this.search.render()),this.template=n}},{key:"hasTransport",value:function(e){return this.transport.hasOwnProperty(e)}},{key:"select",value:function(e){var t=this;this.parse((function(n,i){e.indexOf(n)>-1&&(i.check(),t.selectedOpen&&i.openParents())}))}},{key:"expandToggle",value:function(){this.expanded?this.collapse():this.expand()}},{key:"expand",value:function(){var e=this;this.expanded=!0,this.fullTree?this.root.expand():this.ajaxGetTree((function(t,n){if(n){for(var i=e.getSelected(),s=[],a=0;a<i.length;a++){var r=i[a];s.push(r.id)}e.fullTree=!0,e.createTree(t),e.dom.searchTarget.show(),e.root.expand(),e.parse((function(e,t){s.indexOf(e)>-1&&t.check()}))}return!0})),this.dom.expandIcon.attr("class",this.icons.collapse),this.dom.expandText.html(this.l("Collapse All"))}},{key:"collapse",value:function(){this.expanded=!1,this.root.collapse(),this.dom.expandIcon.attr("class",this.icons.expand),this.dom.expandText.html(this.l("Expand All"))}},{key:"checkAll",value:function(){var e=this;this.fullTree?this.root.checkAll():this.ajaxGetTree((function(t,n){if(n){for(var i=e.getOpened(),s=[],a=0;a<i.length;a++){var r=i[a];s.push(r.id)}e.fullTree=!0,e.createTree(t),e.dom.searchTarget.show(),e.root.checkAll(),e.parse((function(e,t){s.indexOf(e)>-1&&t.open()}))}return!0}))}},{key:"uncheckAll",value:function(){this.root.uncheckAll()}},{key:"ajaxGetRoot",value:function(e,t,n){var i=this.app;return i.ajax.post("app","getCategoryRoot",{},{},(function(t){if(!t.success)return i.notification.push(t.errors,"danger");e(t.data,t.success)}))}},{key:"ajaxGetTree",value:function(e,t,n){var i=this.app;return void 0===i.ajax?console.warn("app.ajax is not defined."):i.ajax.post("app","getCategoryTree",{},{},(function(t){if(!t.success)return i.notification.push(t.errors,"danger");e(t.data,t.success)}))}},{key:"createTree",value:function(e){this.root=new o.a({id:Number(e.id_category),name:e.name,root:!0,tree:this,childrensCount:e.childrens.length,initChildrens:e.childrens}),this.dom.tree.html(this.root.render()),this.selected=[]}},{key:"getOpened",value:function(){return this.root.getOpened()}},{key:"getSelected",value:function(e){return this.root.getSelected(e)}},{key:"parse",value:function(e){return this.root.parse(e)}},{key:"render",value:function(){return this.template}}])&&l(n.prototype,i),c&&l(n,c),t}()}).call(this,n(2))},function(e,t,n){"use strict";var i,s,a,r,o,l,d,c=n(283),u=n(300),h=Function.prototype.apply,p=Function.prototype.call,m=Object.create,f=Object.defineProperty,_=Object.defineProperties,g=Object.prototype.hasOwnProperty,v={configurable:!0,enumerable:!1,writable:!0};s=function(e,t){var n,s;return u(t),s=this,i.call(this,e,n=function(){a.call(s,e,n),h.call(t,this,arguments)}),n.__eeOnceListener__=t,this},o={on:i=function(e,t){var n;return u(t),g.call(this,"__ee__")?n=this.__ee__:(n=v.value=m(null),f(this,"__ee__",v),v.value=null),n[e]?"object"==typeof n[e]?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:s,off:a=function(e,t){var n,i,s,a;if(u(t),!g.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==typeof(i=n[e]))for(a=0;s=i[a];++a)s!==t&&s.__eeOnceListener__!==t||(2===i.length?n[e]=i[a?0:1]:i.splice(a,1));else i!==t&&i.__eeOnceListener__!==t||delete n[e];return this},emit:r=function(e){var t,n,i,s,a;if(g.call(this,"__ee__")&&(s=this.__ee__[e]))if("object"==typeof s){for(n=arguments.length,a=new Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];for(s=s.slice(),t=0;i=s[t];++t)h.call(i,this,a)}else switch(arguments.length){case 1:p.call(s,this);break;case 2:p.call(s,this,arguments[1]);break;case 3:p.call(s,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,a=new Array(n-1),t=1;t<n;++t)a[t-1]=arguments[t];h.call(s,this,a)}}},l={on:c(i),once:c(s),off:c(a),emit:c(r)},d=_({},l),e.exports=t=function(e){return null==e?m(d):_(Object(e),l)},t.methods=o},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return l}));var i=n(244),s=n(6),a=n(5);function r(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"app",null),o(this,"props",null),o(this,"tree",null),o(this,"dom",null),o(this,"template",null),o(this,"items",[]),o(this,"selected",null),this.l=a.a.source("CategoryTreeSearch"),this.props=e,this.app=e.app,this.tree=e.tree,this.items=[],this.selected=null,this.dom=null,this.template=null,this.initTemplate()}var n,l,d;return n=t,(l=[{key:"initTemplate",value:function(){var t=this,n=null,i=e('\n <div class="pqcrp-category-tree-search-box">\n <div class="input-group">\n <input type="text" class="form-control pqcrp-category-tree-search" placeholder="'.concat(this.l("search..."),'">\n <div class="input-group-addon pqcrp-category-tree-search-icon">\n <span class="pqcrp-category-tree-search-icon-s">\n <i class="fa fa-search icon icon-search"></i>\n </span>\n <span class="pqcrp-category-tree-search-icon-r">\n <i class="fa fa-remove icon icon-remove"></i>\n </span>\n </div>\n </div>\n <ul class="pqcrp-category-tree-search-list">\n </ul>\n </div>\n '));this.dom={search:i.find(".pqcrp-category-tree-search"),searchIcon:i.find(".pqcrp-category-tree-search-icon-s"),removeIcon:i.find(".pqcrp-category-tree-search-icon-r"),searchList:i.find(".pqcrp-category-tree-search-list")},this.dom.removeIcon.on("click",(function(){t.search("")})),this.dom.search.on("keyup",(function(i){if(40==i.keyCode)t.next();else if(38==i.keyCode)t.prev();else if(13==i.keyCode)null!=t.selected&&t.selected.click();else{var s=e.trim(t.dom.search.val());null!=n&&clearTimeout(n),n=setTimeout((function(){t.search(s)}),100)}})),this.dom.search.on("blur",(function(){setTimeout((function(){t.dom.searchList.hide()}),150)})),this.template=i}},{key:"render",value:function(){return this.template}},{key:"next",value:function(){var e=this.items,t=this.selected;if(e.length>0&&null!=t){var n=e.indexOf(t);void 0!==e[n+1]?e[n+1].select():e[0].select()}}},{key:"prev",value:function(){var e=this.items,t=this.selected;if(e.length>0&&null!=t){var n=e.indexOf(t);void 0!==e[n-1]?e[n-1].select():e[e.length-1].select()}}},{key:"renderItems",value:function(){if(this.tree,this.items.length>0){this.dom.searchList.show();for(var e=0;e<this.items.length;e++){var t=this.items[e];this.dom.searchList.append(t.render())}}else this.dom.searchList.hide()}},{key:"search",value:function(e){var t=this,n=this.tree,a=0;if(this.dom.searchList.empty(),this.items=[],e.length>0){this.dom.removeIcon.show(),this.dom.searchIcon.hide();var r=new RegExp(Object(s.a)(e),"ig");n.parse((function(e,n){if(r.test(n.name)&&++a<=20){var s=new i.a({parent:t,item:n,value:n.name.replace(r,'<span class="pqcrp-search-item-match">$&</span>')});t.items.push(s)}})),this.items.length>0?this.items[0].select():this.selected=null,this.renderItems()}else this.dom.removeIcon.hide(),this.dom.searchIcon.show(),this.dom.search.val(""),this.items=[],this.selected=null,this.dom.searchList.empty().hide()}}])&&r(n.prototype,l),d&&r(n,d),t}()}).call(this,n(2))},function(e,t,n){"use strict";(function(e){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return a}));var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,"props",null),s(this,"parent",null),s(this,"item",null),s(this,"dom",null),s(this,"template",null),s(this,"value",""),this.props=e,this.parent=e.parent,this.item=e.item,this.dom=null,this.template=null,this.value=e.value,this.initTemplate()}var n,a,r;return n=t,(a=[{key:"initTemplate",value:function(){var t=this,n=this.item,i=this.value,s=e('\n <li data-pqcrp-tree-search-item-id="'.concat(n.id,'">').concat(i,"</li>\n "));this.dom={template:s},this.dom.template.on("click",(function(){t.click()})),this.template=s}},{key:"render",value:function(){return this.template}},{key:"click",value:function(){this.parent.dom.search.val(this.item.name),this.parent.items=[],this.parent.selected=null,this.parent.dom.searchList.empty().hide(),this.item.openParents(),this.item.check()}},{key:"select",value:function(){null!=this.parent.selected&&this.parent.selected.dom.template.removeClass("selected"),this.parent.selected=this,this.dom.template.addClass("selected")}}])&&i(n.prototype,a),r&&i(n,r),t}()}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(3),s=n(5);var a=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storage=i.a,this.translate=s.a,this.box=window.NewsletterPro}},,,function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"app",(function(){return s}));n(326),n(249),n(331),n(333),n(335),n(17),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(282),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311);var i=n(245);n(250)(e),n(16)([e,window.$]),n(253)([e,window.$]);var s=window.NewsletterProApp=new i.a}.call(this,n(2))},function(e,t,n){var i,s,a;function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
/*! jQuery UI - v1.12.1 - 2018-05-25
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */s=[n(2)],void 0===(a="function"==typeof(i=function(e){e.ui=e.ui||{},e.ui.version="1.12.1";var t,n,i=0,s=Array.prototype.slice;
/*!
* jQuery UI Widget 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/e.cleanData=(t=e.cleanData,function(n){var i,s,a;for(a=0;null!=(s=n[a]);a++)try{(i=e._data(s,"events"))&&i.remove&&e(s).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var s,a,r,o={},l=t.split(".")[0],d=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][d.toLowerCase()]=function(t){return!!e.data(t,d)},e[l]=e[l]||{},s=e[l][t],a=e[l][t]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,s,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(r=new n).options=e.widget.extend({},r.options),e.each(i,(function(t,i){e.isFunction(i)?o[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function s(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,a=this._superApply;return this._super=e,this._superApply=s,t=i.apply(this,arguments),this._super=n,this._superApply=a,t}}():o[t]=i})),a.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},o,{constructor:a,namespace:l,widgetName:t,widgetFullName:d}),s?(e.each(s._childConstructors,(function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,a,n._proto)})),delete s._childConstructors):n._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var n,i,a=s.call(arguments,1),r=0,o=a.length;r<o;r++)for(n in a[r])i=a[r][n],a[r].hasOwnProperty(n)&&void 0!==i&&(e.isPlainObject(i)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],i):e.widget.extend({},i):t[n]=i);return t},e.widget.bridge=function(t,n){var i=n.prototype.widgetFullName||t;e.fn[t]=function(a){var r="string"==typeof a,o=s.call(arguments,1),l=this;return r?this.length||"instance"!==a?this.each((function(){var n,s=e.data(this,i);return"instance"===a?(l=s,!1):s?e.isFunction(s[a])&&"_"!==a.charAt(0)?(n=s[a].apply(s,o))!==s&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!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+"'")})):l=void 0:(o.length&&(a=e.widget.extend.apply(null,[a].concat(o))),this.each((function(){var t=e.data(this,i);t?(t.option(a||{}),t._init&&t._init()):e.data(this,i,new n(a,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},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.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,n){t._removeClass(n,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,n){var i,s,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},i=t.split("."),t=i.shift(),i.length){for(s=r[t]=e.widget.extend({},this.options[t]),a=0;a<i.length-1;a++)s[i[a]]=s[i[a]]||{},s=s[i[a]];if(t=i.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=n}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 n,i,s;for(n in t)s=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&s&&s.length&&(i=e(s.get()),this._removeClass(s,n),i.addClass(this._classes({element:i,keys:n,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){var n=[],i=this;function s(s,a){var r,o;for(o=0;o<s.length;o++)r=i.classesElementLookup[s[o]]||e(),r=t.add?e(e.unique(r.get().concat(t.element.get()))):e(r.not(t.element).get()),i.classesElementLookup[s[o]]=r,n.push(s[o]),a&&t.classes[s[o]]&&n.push(t.classes[s[o]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&s(t.keys.match(/\S+/g)||[],!0),t.extra&&s(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,(function(i,s){-1!==e.inArray(t.target,s)&&(n.classesElementLookup[i]=e(s.not(t.target).get()))}))},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var s="string"==typeof e||null===e,a={extra:s?t:n,keys:s?e:t,element:s?this.element:e,add:i};return a.element.toggleClass(this._classes(a),i),this},_on:function(t,n,i){var s,a=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=s=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,s=this.widget()),e.each(i,(function(i,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 l=i.match(/^([\w:-]*)\s*(.*)$/),d=l[1]+a.eventNamespace,c=l[2];c?s.on(d,c,o):n.on(d,o)}))},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),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){var n=this;return setTimeout((function(){return("string"==typeof e?n[e]:e).apply(n,arguments)}),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,n,i){var s,a,r=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],a=n.originalEvent)for(s in a)s in n||(n[s]=a[s]);return this.element.trigger(n,i),!(e.isFunction(r)&&!1===r.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,n){e.Widget.prototype["_"+t]=function(i,s,a){var r;"string"==typeof s&&(s={effect:s});var o=s?!0===s||"number"==typeof s?n:s.effect||n:t;"number"==typeof(s=s||{})&&(s={duration:s}),r=!e.isEmptyObject(s),s.complete=a,s.delay&&i.delay(s.delay),r&&e.effects&&e.effects.effect[o]?i[t](s):o!==t&&i[o]?i[o](s.duration,s.easing,a):i.queue((function(n){e(this)[t](),a&&a.call(i[0]),n()}))}})),e.widget,
/*!
* jQuery UI Position 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/position/
*/
function(){var t,n=Math.max,i=Math.abs,s=/left|center|right/,a=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,o=/^\w+/,l=/%$/,d=e.fn.position;function c(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function u(t,n){return parseInt(e.css(t,n),10)||0}function h(t){var n=t[0];return 9===n.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(n)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,i,s=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),a=s.children()[0];return e("body").append(s),n=a.offsetWidth,s.css("overflow","scroll"),n===(i=a.offsetWidth)&&(i=s[0].clientWidth),s.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),s="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:s?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=e.isWindow(n[0]),s=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:s,offset:i||s?{left:0,top:0}:e(t).offset(),scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return d.apply(this,arguments);t=e.extend({},t);var l,p,m,f,_,g,v=e(t.of),y=e.position.getWithinInfo(t.within),b=e.position.getScrollInfo(y),w=(t.collision||"flip").split(" "),M={};return g=h(v),v[0].preventDefault&&(t.at="left top"),p=g.width,m=g.height,f=g.offset,_=e.extend({},f),e.each(["my","at"],(function(){var e,n,i=(t[this]||"").split(" ");1===i.length&&(i=s.test(i[0])?i.concat(["center"]):a.test(i[0])?["center"].concat(i):["center","center"]),i[0]=s.test(i[0])?i[0]:"center",i[1]=a.test(i[1])?i[1]:"center",e=r.exec(i[0]),n=r.exec(i[1]),M[this]=[e?e[0]:0,n?n[0]:0],t[this]=[o.exec(i[0])[0],o.exec(i[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?_.left+=p:"center"===t.at[0]&&(_.left+=p/2),"bottom"===t.at[1]?_.top+=m:"center"===t.at[1]&&(_.top+=m/2),l=c(M.at,p,m),_.left+=l[0],_.top+=l[1],this.each((function(){var s,a,r=e(this),o=r.outerWidth(),d=r.outerHeight(),h=u(this,"marginLeft"),g=u(this,"marginTop"),k=o+h+u(this,"marginRight")+b.width,L=d+g+u(this,"marginBottom")+b.height,T=e.extend({},_),S=c(M.my,r.outerWidth(),r.outerHeight());"right"===t.my[0]?T.left-=o:"center"===t.my[0]&&(T.left-=o/2),"bottom"===t.my[1]?T.top-=d:"center"===t.my[1]&&(T.top-=d/2),T.left+=S[0],T.top+=S[1],s={marginLeft:h,marginTop:g},e.each(["left","top"],(function(n,i){e.ui.position[w[n]]&&e.ui.position[w[n]][i](T,{targetWidth:p,targetHeight:m,elemWidth:o,elemHeight:d,collisionPosition:s,collisionWidth:k,collisionHeight:L,offset:[l[0]+S[0],l[1]+S[1]],my:t.my,at:t.at,within:y,elem:r})})),t.using&&(a=function(e){var s=f.left-T.left,a=s+p-o,l=f.top-T.top,c=l+m-d,u={target:{element:v,left:f.left,top:f.top,width:p,height:m},element:{element:r,left:T.left,top:T.top,width:o,height:d},horizontal:a<0?"left":s>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};p<o&&i(s+a)<p&&(u.horizontal="center"),m<d&&i(l+c)<m&&(u.vertical="middle"),n(i(s),i(a))>n(i(l),i(c))?u.important="horizontal":u.important="vertical",t.using.call(this,e,u)}),r.offset(e.extend(T,{using:a}))}))},e.ui.position={fit:{left:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollLeft:s.offset.left,r=s.width,o=e.left-t.collisionPosition.marginLeft,l=a-o,d=o+t.collisionWidth-r-a;t.collisionWidth>r?l>0&&d<=0?(i=e.left+l+t.collisionWidth-r-a,e.left+=l-i):e.left=d>0&&l<=0?a:l>d?a+r-t.collisionWidth:a:l>0?e.left+=l:d>0?e.left-=d:e.left=n(e.left-o,e.left)},top:function(e,t){var i,s=t.within,a=s.isWindow?s.scrollTop:s.offset.top,r=t.within.height,o=e.top-t.collisionPosition.marginTop,l=a-o,d=o+t.collisionHeight-r-a;t.collisionHeight>r?l>0&&d<=0?(i=e.top+l+t.collisionHeight-r-a,e.top+=l-i):e.top=d>0&&l<=0?a:l>d?a+r-t.collisionHeight:a:l>0?e.top+=l:d>0?e.top-=d:e.top=n(e.top-o,e.top)}},flip:{left:function(e,t){var n,s,a=t.within,r=a.offset.left+a.scrollLeft,o=a.width,l=a.isWindow?a.scrollLeft:a.offset.left,d=e.left-t.collisionPosition.marginLeft,c=d-l,u=d+t.collisionWidth-o-l,h="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,m=-2*t.offset[0];c<0?((n=e.left+h+p+m+t.collisionWidth-o-r)<0||n<i(c))&&(e.left+=h+p+m):u>0&&((s=e.left-t.collisionPosition.marginLeft+h+p+m-l)>0||i(s)<u)&&(e.left+=h+p+m)},top:function(e,t){var n,s,a=t.within,r=a.offset.top+a.scrollTop,o=a.height,l=a.isWindow?a.scrollTop:a.offset.top,d=e.top-t.collisionPosition.marginTop,c=d-l,u=d+t.collisionHeight-o-l,h="top"===t.my[1],p=h?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,m="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];c<0?((s=e.top+p+m+f+t.collisionHeight-o-r)<0||s<i(c))&&(e.top+=p+m+f):u>0&&((n=e.top-t.collisionPosition.marginTop+p+m+f-l)>0||i(n)<u)&&(e.top+=p+m+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position,e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(n){return!!e.data(n,t)}})):function(t,n,i){return!!e.data(t,i[3])}}),e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}}),
/*!
* jQuery UI Focusable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.ui.focusable=function(t,n){var i,s,a,r,o,l=t.nodeName.toLowerCase();return"area"===l?(s=(i=t.parentNode).name,!(!t.href||!s||"map"!==i.nodeName.toLowerCase())&&(a=e("img[usemap='#"+s+"']")).length>0&&a.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(r=!o.disabled):r="a"===l&&t.href||n,r&&e(t).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"hidden"!==t}(e(t)))},e.extend(e.expr[":"],{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable,e.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var n=t.data("ui-form-reset-instances");e.each(n,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},
/*!
* jQuery UI Support for jQuery core 1.7.x 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
"1.7"===e.fn.jquery.substring(0,3)&&(e.each(["Width","Height"],(function(t,n){var i="Width"===n?["Left","Right"]:["Top","Bottom"],s=n.toLowerCase(),a={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};function r(t,n,s,a){return e.each(i,(function(){n-=parseFloat(e.css(t,"padding"+this))||0,s&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),a&&(n-=parseFloat(e.css(t,"margin"+this))||0)})),n}e.fn["inner"+n]=function(t){return void 0===t?a["inner"+n].call(this):this.each((function(){e(this).css(s,r(this,t)+"px")}))},e.fn["outer"+n]=function(t,i){return"number"!=typeof t?a["outer"+n].call(this,t):this.each((function(){e(this).css(s,r(this,t,!0,i)+"px")}))}})),e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),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.ui.escapeSelector=(o=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(e){return e.replace(o,"\\$1")}),e.fn.labels=function(){var t,n,i,s,a;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(i=this.attr("id"))&&(a=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),n="label[for='"+e.ui.escapeSelector(i)+"']",s=s.add(a.find(n).addBack(n))),this.pushStack(s))},e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter((function(){var t=e(this);return(!i||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==n&&a.length?a:e(this[0].ownerDocument||document)},e.extend(e.expr[":"],{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||n>=0)&&e.ui.focusable(t,i)}}),e.fn.extend({uniqueId:(a=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++a)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}}),e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());
/*!
* jQuery UI Keycode 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
var a,o,l=!1;e(document).on("mouseup",(function(){l=!1})),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){if(!l){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var n=this,i=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(i&&!s&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),l=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,l=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,n,i){var s,a=e.ui[t].prototype;for(s in i)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([n,i[s]])},call:function(e,t,n,i){var s,a=e.plugins[t];if(a&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<a.length;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,n)}},e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},
/*!
* jQuery UI Draggable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==n._trigger("stop",t)&&n._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),s=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,s=this.options,a=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(i=(n=e(s.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=s.containment:this.containment=[0,0,e(a).width()-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,d=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(d=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(d=n[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((d-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,d=n?s-this.offset.click.top>=n[1]||s-this.offset.click.top>n[3]?s:s-this.offset.click.top>=n[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=n?a-this.offset.click.left>=n[0]||a-this.offset.click.left>n[2]?a:a-this.offset.click.left>=n[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(d=this.originalPageY)),{top:d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var s=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each((function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,s))}))},stop:function(t,n,i){var s=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,(function(){this.isOver?(this.isOver=0,i.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,s))}))},drag:function(t,n,i){e.each(i.sortables,(function(){var s=!1,a=this;a.positionAbs=i.positionAbs,a.helperProportions=i.helperProportions,a.offset.click=i.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,e.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.contains(a.element[0],this.element[0])&&(s=!1),s}))),s?(a.isOver||(a.isOver=1,i._parent=n.helper.parent(),a.currentItem=n.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return n.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=i.offset.click.top,a.offset.click.left=i.offset.click.left,a.offset.parent.left-=i.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=i.offset.parent.top-a.offset.parent.top,i._trigger("toSortable",t),i.dropped=a.element,e.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,a.fromOutside=i),a.currentItem&&(a._mouseDrag(t),n.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var s=e("body"),a=i.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(t,n,i){var s=i.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var s=e(n.helper),a=i.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(t,n,i){var s=i.options;s._opacity&&e(n.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var s=i.options,a=!1,r=i.scrollParentNotHidden[0],o=i.document[0];r!==o&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(i.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=a=r.scrollTop+s.scrollSpeed:t.pageY-i.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(i.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+s.scrollSpeed:t.pageX-i.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(o).scrollTop()<s.scrollSensitivity?a=e(o).scrollTop(e(o).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<s.scrollSensitivity&&(a=e(o).scrollTop(e(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(o).scrollLeft()<s.scrollSensitivity?a=e(o).scrollLeft(e(o).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<s.scrollSensitivity&&(a=e(o).scrollLeft(e(o).scrollLeft()+s.scrollSpeed)))),!1!==a&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var s=i.options;i.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each((function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})}))},drag:function(t,n,i){var s,a,r,o,l,d,c,u,h,p,m=i.options,f=m.snapTolerance,_=n.offset.left,g=_+i.helperProportions.width,v=n.offset.top,y=v+i.helperProportions.height;for(h=i.snapElements.length-1;h>=0;h--)d=(l=i.snapElements[h].left-i.margins.left)+i.snapElements[h].width,u=(c=i.snapElements[h].top-i.margins.top)+i.snapElements[h].height,g<l-f||_>d+f||y<c-f||v>u+f||!e.contains(i.snapElements[h].item.ownerDocument,i.snapElements[h].item)?(i.snapElements[h].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=!1):("inner"!==m.snapMode&&(s=Math.abs(c-y)<=f,a=Math.abs(u-v)<=f,r=Math.abs(l-g)<=f,o=Math.abs(d-_)<=f,s&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),a&&(n.position.top=i._convertPositionTo("relative",{top:u,left:0}).top),r&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),o&&(n.position.left=i._convertPositionTo("relative",{top:0,left:d}).left)),p=s||a||r||o,"outer"!==m.snapMode&&(s=Math.abs(c-v)<=f,a=Math.abs(u-y)<=f,r=Math.abs(l-_)<=f,o=Math.abs(d-g)<=f,s&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),a&&(n.position.top=i._convertPositionTo("relative",{top:u-i.helperProportions.height,left:0}).top),r&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),o&&(n.position.left=i._convertPositionTo("relative",{top:0,left:d-i.helperProportions.width}).left)),!i.snapElements[h].snapping&&(s||a||r||o||p)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[h].item})),i.snapElements[h].snapping=s||a||r||o||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var s,a=i.options,r=e.makeArray(e(a.stack)).sort((function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)}));r.length&&(s=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each((function(t){e(this).css("zIndex",s+t)})),this.css("zIndex",s+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var s=e(n.helper),a=i.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(t,n,i){var s=i.options;s._zIndex&&e(n.helper).css("zIndex",s._zIndex)}}),e.ui.draggable,
/*!
* jQuery UI Droppable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,n=this.options,i=n.accept;this.isover=!1,this.isout=!0,this.accept=e.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return t||(t={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});t=arguments[0]},this._addToManager(n.scope),n.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,n){if("accept"===t)this.accept=e.isFunction(n)?n:function(e){return e.is(n)};else if("scope"===t){var i=e.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(n)}this._super(t,n)},_activate:function(t){var n=e.ui.ddmanager.current;this._addActiveClass(),n&&this._trigger("activate",t,this.ui(n))},_deactivate:function(t){var n=e.ui.ddmanager.current;this._removeActiveClass(),n&&this._trigger("deactivate",t,this.ui(n))},_over:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(n)))},_out:function(t){var n=e.ui.ddmanager.current;n&&(n.currentItem||n.element)[0]!==this.element[0]&&this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(n)))},_drop:function(t,n){var i=n||e.ui.ddmanager.current,s=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var n=e(this).droppable("instance");if(n.options.greedy&&!n.options.disabled&&n.options.scope===i.options.scope&&n.accept.call(n.element[0],i.currentItem||i.element)&&d(i,e.extend(n,{offset:n.element.offset()}),n.options.tolerance,t))return s=!0,!1})),!s&&!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(i)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var d=e.ui.intersect=function(){function e(e,t,n){return e>=t&&e<t+n}return function(t,n,i,s){if(!n.offset)return!1;var a=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,o=a+t.helperProportions.width,l=r+t.helperProportions.height,d=n.offset.left,c=n.offset.top,u=d+n.proportions().width,h=c+n.proportions().height;switch(i){case"fit":return d<=a&&o<=u&&c<=r&&l<=h;case"intersect":return d<a+t.helperProportions.width/2&&o-t.helperProportions.width/2<u&&c<r+t.helperProportions.height/2&&l-t.helperProportions.height/2<h;case"pointer":return e(s.pageY,c,n.proportions().height)&&e(s.pageX,d,n.proportions().width);case"touch":return(r>=c&&r<=h||l>=c&&l<=h||r<c&&l>h)&&(a>=d&&a<=u||o>=d&&o<=u||a<d&&o>u);default:return!1}}}();e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,n){var i,s,a=e.ui.ddmanager.droppables[t.options.scope]||[],r=n?n.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(i=0;i<a.length;i++)if(!(a[i].options.disabled||t&&!a[i].accept.call(a[i].element[0],t.currentItem||t.element))){for(s=0;s<o.length;s++)if(o[s]===a[i].element[0]){a[i].proportions().height=0;continue e}a[i].visible="none"!==a[i].element.css("display"),a[i].visible&&("mousedown"===r&&a[i]._activate.call(a[i],n),a[i].offset=a[i].element.offset(),a[i].proportions({width:a[i].element[0].offsetWidth,height:a[i].element[0].offsetHeight}))}},drop:function(t,n){var i=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&d(t,this,this.options.tolerance,n)&&(i=this._drop.call(this,n)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,n)))})),i},dragStart:function(t,n){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}))},drag:function(t,n){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,n),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var i,s,a,r=d(t,this,this.options.tolerance,n),o=!r&&this.isover?"isout":r&&!this.isover?"isover":null;o&&(this.options.greedy&&(s=this.options.scope,(a=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===s}))).length&&((i=e(a[0]).droppable("instance")).greedyChild="isover"===o)),i&&"isover"===o&&(i.isover=!1,i.isout=!0,i._out.call(i,n)),this[o]=!0,this["isout"===o?"isover":"isout"]=!1,this["isover"===o?"_over":"_out"].call(this,n),i&&"isout"===o&&(i.isout=!1,i.isover=!0,i._over.call(i,n)))}}))},dragStop:function(t,n){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,n)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable,
/*!
* jQuery UI Resizable 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.resizable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,n){if("hidden"===e(t).css("overflow"))return!1;var i,s=n&&"left"===n?"scrollLeft":"scrollTop";return t[s]>0||(t[s]=1,i=t[s]>0,t[s]=0,i)},_create:function(){var t,n=this.options,i=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!n.aspectRatio,aspectRatio:n.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:n.helper||n.ghost||n.animate?n.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),n.autoHide&&e(this.element).on("mouseenter",(function(){n.disabled||(i._removeClass("ui-resizable-autohide"),i._handles.show())})).on("mouseleave",(function(){n.disabled||i.resizing||(i._addClass("ui-resizable-autohide"),i._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var t,n=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(n(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),n(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles()}},_setupHandles:function(){var t,n,i,s,a,r=this.options,o=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),i=this.handles.split(","),this.handles={},n=0;n<i.length;n++)s="ui-resizable-"+(t=e.trim(i[n])),a=e("<div>"),this._addClass(a,"ui-resizable-handle "+s),a.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.append(a);this._renderAxis=function(t){var n,i,s,a;for(n in t=t||this.element,this.handles)this.handles[n].constructor===String?this.handles[n]=this.element.children(this.handles[n]).first().show():(this.handles[n].jquery||this.handles[n].nodeType)&&(this.handles[n]=e(this.handles[n]),this._on(this.handles[n],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=e(this.handles[n],this.element),a=/sw|ne|nw|se|n|s/.test(n)?i.outerHeight():i.outerWidth(),s=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join(""),t.css(s,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[n])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){o.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=a&&a[1]?a[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(t){var n,i,s=!1;for(n in this.handles)((i=e(this.handles[n])[0])===t.target||e.contains(i,t.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var n,i,s,a=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),n=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),a.containment&&(n+=e(a.containment).scrollLeft()||0,i+=e(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:n,top:i},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var n,i,s=this.originalMousePosition,a=this.axis,r=t.pageX-s.left||0,o=t.pageY-s.top||0,l=this._change[a];return this._updatePrevProperties(),!!l&&(n=l.apply(this,[t,r,o]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(n=this._updateRatio(n,t)),n=this._respectSize(n,t),this._updateCache(n),this._propagate("resize",t),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var n,i,s,a,r,o,l,d=this.options;return this._helper&&(s=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:this.sizeDiff.height,a=i?0:this.sizeDiff.width,r={width:this.helper.width()-a,height:this.helper.height()-s},o=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,l=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,d.animate||this.element.css(e.extend(r,{top:l,left:o})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!d.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,n,i,s,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=a.minHeight*this.aspectRatio,i=a.minWidth/this.aspectRatio,n=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,t>a.minWidth&&(a.minWidth=t),i>a.minHeight&&(a.minHeight=i),n<a.maxWidth&&(a.maxWidth=n),s<a.maxHeight&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,n=this.size,i=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===i&&(e.left=t.left+(n.width-e.width),e.top=null),"nw"===i&&(e.top=t.top+(n.height-e.height),e.left=t.left+(n.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,n=this.axis,i=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,d=/sw|nw|w/.test(n),c=/nw|ne|n/.test(n);return a&&(e.width=t.minWidth),r&&(e.height=t.minHeight),i&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),a&&d&&(e.left=o-t.minWidth),i&&d&&(e.left=o-t.maxWidth),r&&c&&(e.top=l-t.minHeight),s&&c&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,n=[],i=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)n[t]=parseFloat(i[t])||0,n[t]+=parseFloat(s[t])||0;return{height:n[0]+n[2],width:n[1]+n[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,n=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:n.height()-this.outerDimensions.height||0,width:n.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,n=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++n.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var n=this.originalSize;return{left:this.originalPosition.left+t,width:n.width-t}},n:function(e,t,n){var i=this.originalSize;return{top:this.originalPosition.top+n,height:i.height-n}},s:function(e,t,n){return{height:this.originalSize.height+n}},se:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},sw:function(t,n,i){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,n,i]))},ne:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,n,i]))},nw:function(t,n,i){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,n,i]))}},_propagate:function(t,n){e.ui.plugin.call(this,t,[n,this.ui()]),"resize"!==t&&this._trigger(t,n,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var n=e(this).resizable("instance"),i=n.options,s=n._proportionallyResizeElements,a=s.length&&/textarea/i.test(s[0].nodeName),r=a&&n._hasScroll(s[0],"left")?0:n.sizeDiff.height,o=a?0:n.sizeDiff.width,l={width:n.size.width-o,height:n.size.height-r},d=parseFloat(n.element.css("left"))+(n.position.left-n.originalPosition.left)||null,c=parseFloat(n.element.css("top"))+(n.position.top-n.originalPosition.top)||null;n.element.animate(e.extend(l,c&&d?{top:c,left:d}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var i={width:parseFloat(n.element.css("width")),height:parseFloat(n.element.css("height")),top:parseFloat(n.element.css("top")),left:parseFloat(n.element.css("left"))};s&&s.length&&e(s[0]).css({width:i.width,height:i.height}),n._updateCache(i),n._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,n,i,s,a,r,o,l=e(this).resizable("instance"),d=l.options,c=l.element,u=d.containment,h=u instanceof e?u.get(0):/parent/.test(u)?c.parent().get(0):u;h&&(l.containerElement=e(h),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(h),n=[],e(["Top","Right","Left","Bottom"]).each((function(e,i){n[e]=l._num(t.css("padding"+i))})),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-n[3],width:t.innerWidth()-n[1]},i=l.containerOffset,s=l.containerSize.height,a=l.containerSize.width,r=l._hasScroll(h,"left")?h.scrollWidth:a,o=l._hasScroll(h)?h.scrollHeight:s,l.parentData={element:h,left:i.left,top:i.top,width:r,height:o}))},resize:function(t){var n,i,s,a,r=e(this).resizable("instance"),o=r.options,l=r.containerOffset,d=r.position,c=r._aspectRatio||t.shiftKey,u={top:0,left:0},h=r.containerElement,p=!0;h[0]!==document&&/static/.test(h.css("position"))&&(u=l),d.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-u.left),c&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=o.helper?l.left:0),d.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),c&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),a=/relative|absolute/.test(r.containerElement.css("position")),s&&a?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),n=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-u.left:r.offset.left-l.left)),i=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-u.top:r.offset.top-l.top)),n+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-n,c&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),i+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-i,c&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),n=t.options,i=t.containerOffset,s=t.containerPosition,a=t.containerElement,r=e(t.helper),o=r.offset(),l=r.outerWidth()-t.sizeDiff.width,d=r.outerHeight()-t.sizeDiff.height;t._helper&&!n.animate&&/relative/.test(a.css("position"))&&e(this).css({left:o.left-s.left-i.left,width:l,height:d}),t._helper&&!n.animate&&/static/.test(a.css("position"))&&e(this).css({left:o.left-s.left-i.left,width:l,height:d})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,n){var i=e(this).resizable("instance"),s=i.options,a=i.originalSize,r=i.originalPosition,o={height:i.size.height-a.height||0,width:i.size.width-a.width||0,top:i.position.top-r.top||0,left:i.position.left-r.left||0};e(s.alsoResize).each((function(){var t=e(this),i=e(this).data("ui-resizable-alsoresize"),s={},a=t.parents(n.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(a,(function(e,t){var n=(i[t]||0)+(o[t]||0);n&&n>=0&&(s[t]=n||null)})),t.css(s)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),n=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,n=e(this).resizable("instance"),i=n.options,s=n.size,a=n.originalSize,r=n.originalPosition,o=n.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,d=l[0]||1,c=l[1]||1,u=Math.round((s.width-a.width)/d)*d,h=Math.round((s.height-a.height)/c)*c,p=a.width+u,m=a.height+h,f=i.maxWidth&&i.maxWidth<p,_=i.maxHeight&&i.maxHeight<m,g=i.minWidth&&i.minWidth>p,v=i.minHeight&&i.minHeight>m;i.grid=l,g&&(p+=d),v&&(m+=c),f&&(p-=d),_&&(m-=c),/^(se|s|e)$/.test(o)?(n.size.width=p,n.size.height=m):/^(ne)$/.test(o)?(n.size.width=p,n.size.height=m,n.position.top=r.top-h):/^(sw)$/.test(o)?(n.size.width=p,n.size.height=m,n.position.left=r.left-u):((m-c<=0||p-d<=0)&&(t=n._getPaddingPlusBorderDimensions(this)),m-c>0?(n.size.height=m,n.position.top=r.top-h):(m=c-t.height,n.size.height=m,n.position.top=r.top+a.height-m),p-d>0?(n.size.width=p,n.position.left=r.left-u):(p=d-t.width,n.size.width=p,n.position.left=r.left+a.width-p))}}),e.ui.resizable,e.widget("ui.selectable",e.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each((function(){var n=e(this),i=n.offset(),s={left:i.left-t.elementPos.left,top:i.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:n,left:s.left,top:s.top,right:s.left+n.outerWidth(),bottom:s.top+n.outerHeight(),startselected:!1,selected:n.hasClass("ui-selected"),selecting:n.hasClass("ui-selecting"),unselecting:n.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var n=this,i=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(i.filter,this.element[0]),this._trigger("start",t),e(i.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),i.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var i=e.data(this,"selectable-item");i.startselected=!0,t.metaKey||t.ctrlKey||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",t,{unselecting:i.element}))})),e(t.target).parents().addBack().each((function(){var i,s=e.data(this,"selectable-item");if(s)return i=!t.metaKey&&!t.ctrlKey||!s.$element.hasClass("ui-selected"),n._removeClass(s.$element,i?"ui-unselecting":"ui-selected")._addClass(s.$element,i?"ui-selecting":"ui-unselecting"),s.unselecting=!i,s.selecting=i,s.selected=i,i?n._trigger("selecting",t,{selecting:s.element}):n._trigger("unselecting",t,{unselecting:s.element}),!1})))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var n,i=this,s=this.options,a=this.opos[0],r=this.opos[1],o=t.pageX,l=t.pageY;return a>o&&(n=o,o=a,a=n),r>l&&(n=l,l=r,r=n),this.helper.css({left:a,top:r,width:o-a,height:l-r}),this.selectees.each((function(){var n=e.data(this,"selectable-item"),d=!1,c={};n&&n.element!==i.element[0]&&(c.left=n.left+i.elementPos.left,c.right=n.right+i.elementPos.left,c.top=n.top+i.elementPos.top,c.bottom=n.bottom+i.elementPos.top,"touch"===s.tolerance?d=!(c.left>o||c.right<a||c.top>l||c.bottom<r):"fit"===s.tolerance&&(d=c.left>a&&c.right<o&&c.top>r&&c.bottom<l),d?(n.selected&&(i._removeClass(n.$element,"ui-selected"),n.selected=!1),n.unselecting&&(i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1),n.selecting||(i._addClass(n.$element,"ui-selecting"),n.selecting=!0,i._trigger("selecting",t,{selecting:n.element}))):(n.selecting&&((t.metaKey||t.ctrlKey)&&n.startselected?(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,i._addClass(n.$element,"ui-selected"),n.selected=!0):(i._removeClass(n.$element,"ui-selecting"),n.selecting=!1,n.startselected&&(i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0),i._trigger("unselecting",t,{unselecting:n.element}))),n.selected&&(t.metaKey||t.ctrlKey||n.startselected||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element})))))})),!1}},_mouseStop:function(t){var n=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each((function(){var i=e.data(this,"selectable-item");n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1,i.startselected=!1,n._trigger("unselected",t,{unselected:i.element})})),e(".ui-selecting",this.element[0]).each((function(){var i=e.data(this,"selectable-item");n._removeClass(i.$element,"ui-selecting")._addClass(i.$element,"ui-selected"),i.selecting=!1,i.selected=!0,i.startselected=!0,n._trigger("selected",t,{selected:i.element})})),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,n){return e>=t&&e<t+n},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,n){var i=null,s=!1,a=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,a.widgetName+"-item")===a)return i=e(this),!1})),e.data(t.target,a.widgetName+"-item")===a&&(i=e(t.target)),!i||this.options.handle&&!n&&(e(this.options.handle,i).find("*").addBack().each((function(){this===t.target&&(s=!0)})),!s)||(this.currentItem=i,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,n,i){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(t),!0},_mouseDrag:function(t){var n,i,s,a,r=this.options,o=!1;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+r.scrollSpeed:t.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+r.scrollSpeed:t.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(t.pageY-this.document.scrollTop()<r.scrollSensitivity?o=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<r.scrollSensitivity&&(o=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),t.pageX-this.document.scrollLeft()<r.scrollSensitivity?o=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(o=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==o&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),n=this.items.length-1;n>=0;n--)if(s=(i=this.items[n]).item[0],(a=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(t,i),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,n){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var i=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){i._clear(t)}))}else this._clear(t,n);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},e(n).each((function(){var n=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);n&&i.push((t.key||n[1]+"[]")+"="+(t.key&&t.expression?n[1]:n[2]))})),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(t){var n=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},n.each((function(){i.push(e(t.item||this).attr(t.attribute||"id")||"")})),i},_intersectsWith:function(e){var t=this.positionAbs.left,n=t+this.helperProportions.width,i=this.positionAbs.top,s=i+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.height,d=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||i+d>o&&i+d<l,h="y"===this.options.axis||t+c>a&&t+c<r,p=u&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:a<t+this.helperProportions.width/2&&n-this.helperProportions.width/2<r&&o<i+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,n,i="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!i||!s)&&(t=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection(),this.floating?"right"===n||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),n=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),i=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&n||"left"===s&&!n:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var n,i,s,a,r=[],o=[],l=this._connectWith();if(l&&t)for(n=l.length-1;n>=0;n--)for(i=(s=e(l[n],this.document[0])).length-1;i>=0;i--)(a=e.data(s[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push([e.isFunction(a.options.items)?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function d(){r.push(this)}for(o.push([e.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=o.length-1;n>=0;n--)o[n][0].each(d);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var n=0;n<t.length;n++)if(t[n]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var n,i,s,a,r,o,l,d,c=this.items,u=[[e.isFunction(this.options.items)?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(n=h.length-1;n>=0;n--)for(i=(s=e(h[n],this.document[0])).length-1;i>=0;i--)(a=e.data(s[i],this.widgetFullName))&&a!==this&&!a.options.disabled&&(u.push([e.isFunction(a.options.items)?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(n=u.length-1;n>=0;n--)for(r=u[n][1],i=0,d=(o=u[n][0]).length;i<d;i++)(l=e(o[i])).data(this.widgetName+"-item",r),c.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(t){var n,i,s,a;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),n=this.items.length-1;n>=0;n--)(i=this.items[n]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=s.outerWidth(),i.height=s.outerHeight()),a=s.offset(),i.left=a.left,i.top=a.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(n=this.containers.length-1;n>=0;n--)a=this.containers[n].element.offset(),this.containers[n].containerCache.left=a.left,this.containers[n].containerCache.top=a.top,this.containers[n].containerCache.width=this.containers[n].element.outerWidth(),this.containers[n].containerCache.height=this.containers[n].element.outerHeight();return this},_createPlaceholder:function(t){var n,i=(t=t||this).options;i.placeholder&&i.placeholder.constructor!==String||(n=i.placeholder,i.placeholder={element:function(){var i=t.currentItem[0].nodeName.toLowerCase(),s=e("<"+i+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",n||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===i?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===i?t._createTrPlaceholder(t.currentItem,s):"img"===i&&s.attr("src",t.currentItem.attr("src")),n||s.css("visibility","hidden"),s},update:function(e,s){n&&!i.forcePlaceholderSize||(s.height()||s.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(i.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),i.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,n){var i=this;t.children().each((function(){e("<td>&#160;</td>",i.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(n)}))},_contactContainers:function(t){var n,i,s,a,r,o,l,d,c,u,h=null,p=null;for(n=this.containers.length-1;n>=0;n--)if(!e.contains(this.currentItem[0],this.containers[n].element[0]))if(this._intersectsWith(this.containers[n].containerCache)){if(h&&e.contains(this.containers[n].element[0],h.element[0]))continue;h=this.containers[n],p=n}else this.containers[n].containerCache.over&&(this.containers[n]._trigger("out",t,this._uiHash(this)),this.containers[n].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,r=(c=h.floating||this._isFloating(this.currentItem))?"left":"top",o=c?"width":"height",u=c?"pageX":"pageY",i=this.items.length-1;i>=0;i--)e.contains(this.containers[p].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(l=this.items[i].item.offset()[r],d=!1,t[u]-l>this.items[i][o]/2&&(d=!0),Math.abs(t[u]-l)<s&&(s=Math.abs(t[u]-l),a=this.items[i],this.direction=d?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper)?e(n.helper.apply(this.element[0],[t,this.currentItem])):"clone"===n.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||e("parent"!==n.appendTo?n.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),i[0].style.width&&!n.forceHelperSize||i.width(this.currentItem.width()),i[0].style.height&&!n.forceHelperSize||i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=e(s.containment)[0],n=e(s.containment).offset(),i="hidden"!==e(t).css("overflow"),this.containment=[n.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,n.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,n.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,n.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,n){n||(n=this.position);var i="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:n.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*i,left:n.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*i}},_generatePosition:function(t){var n,i,s=this.options,a=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(n=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?n-this.offset.click.top>=this.containment[1]&&n-this.offset.click.top<=this.containment[3]?n:n-this.offset.click.top>=this.containment[1]?n-s.grid[1]:n+s.grid[1]:n,i=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-s.grid[0]:i+s.grid[0]:i)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,n,i){n?n[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!i)}))},_clear:function(e,t){this.reverting=!1;var n,i=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,t,n){return function(i){n._trigger(e,i,t._uiHash(t))}}for(this.fromOutside&&!t&&i.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||i.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(i.push((function(e){this._trigger("remove",e,this._uiHash())})),i.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),i.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||i.push(s("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(i.push(s("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<i.length;n++)i[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var n=t||this;return{helper:n.helper,placeholder:n.placeholder||e([]),position:n.position,originalPosition:n.originalPosition,offset:n.positionAbs,item:n.currentItem,sender:t?t.element:null}}}),e.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t,n,i=this.options.icons;i&&(t=e("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+i.header),t.prependTo(this.headers),n=this.active.children(".ui-accordion-header-icon"),this._removeClass(n,i.header)._addClass(n,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var n=e.ui.keyCode,i=this.headers.length,s=this.headers.index(t.target),a=!1;switch(t.keyCode){case n.RIGHT:case n.DOWN:a=this.headers[(s+1)%i];break;case n.LEFT:case n.UP:a=this.headers[(s-1+i)%i];break;case n.SPACE:case n.ENTER:this._eventHandler(t);break;case n.HOME:a=this.headers[0];break;case n.END:a=this.headers[i-1]}a&&(e(t.target).attr("tabIndex",-1),e(a).attr("tabIndex",0),e(a).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=e()):!1===t.active?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,n=this.options,i=n.heightStyle,s=this.element.parent();this.active=this._findActive(n.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var t=e(this),n=t.uniqueId().attr("id"),i=t.next(),s=i.uniqueId().attr("id");t.attr("aria-controls",s),i.attr("aria-labelledby",n)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===i?(t=s.height(),this.element.siblings(":visible").each((function(){var n=e(this),i=n.css("position");"absolute"!==i&&"fixed"!==i&&(t-=n.outerHeight(!0))})),this.headers.each((function(){t-=e(this).outerHeight(!0)})),this.headers.next().each((function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===i&&(t=0,this.headers.next().each((function(){var n=e(this).is(":visible");n||e(this).show(),t=Math.max(t,e(this).css("height","").height()),n||e(this).hide()})).height(t))},_activate:function(t){var n=this._findActive(t)[0];n!==this.active[0]&&(n=n||this.active[0],this._eventHandler({target:n,currentTarget:n,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var n={keydown:"_keydown"};t&&e.each(t.split(" "),(function(e,t){n[t]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,n),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var n,i,s=this.options,a=this.active,r=e(t.currentTarget),o=r[0]===a[0],l=o&&s.collapsible,d=l?e():r.next(),c=a.next(),u={oldHeader:a,oldPanel:c,newHeader:l?e():r,newPanel:d};t.preventDefault(),o&&!s.collapsible||!1===this._trigger("beforeActivate",t,u)||(s.active=!l&&this.headers.index(r),this.active=o?e():r,this._toggle(u),this._removeClass(a,"ui-accordion-header-active","ui-state-active"),s.icons&&(n=a.children(".ui-accordion-header-icon"),this._removeClass(n,null,s.icons.activeHeader)._addClass(n,null,s.icons.header)),o||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=r.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.header)._addClass(i,null,s.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var n=t.newPanel,i=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=n,this.prevHide=i,this.options.animate?this._animate(n,i,t):(i.hide(),n.show(),this._toggleComplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):n.length&&this.headers.filter((function(){return 0===parseInt(e(this).attr("tabIndex"),10)})).attr("tabIndex",-1),n.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,n){var i,s,a,r=this,o=0,l=e.css("box-sizing"),d=e.length&&(!t.length||e.index()<t.index()),c=this.options.animate||{},u=d&&c.down||c,h=function(){r._toggleComplete(n)};return"number"==typeof u&&(a=u),"string"==typeof u&&(s=u),s=s||u.easing||c.easing,a=a||u.duration||c.duration,t.length?e.length?(i=e.show().outerHeight(),t.animate(this.hideProps,{duration:a,easing:s,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:a,easing:s,complete:h,step:function(e,n){n.now=Math.round(e),"height"!==n.prop?"content-box"===l&&(o+=n.now):"content"!==r.options.heightStyle&&(n.now=Math.round(i-t.outerHeight()-o),o=0)}})):t.animate(this.hideProps,a,s,h):e.animate(this.showProps,a,s,h)},_toggleComplete:function(e){var t=e.oldPanel,n=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(n,"ui-accordion-header-active")._addClass(n,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var n=e(t.target),i=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(!this.previousFilter){var n=e(t.target).closest(".ui-menu-item"),i=e(t.currentTarget);n[0]===i[0]&&(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,n)},blur:function(t){this._delay((function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each((function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()}))},_keydown:function(t){var n,i,s,a,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,i=this.previousFilter||"",a=!1,s=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),s===i?a=!0:s=i+s,n=this._filterMenuItems(s),(n=a&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(s=String.fromCharCode(t.keyCode),n=this._filterMenuItems(s)),n.length?(this.focus(t,n),this.previousFilter=s,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,i,s,a=this,r=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),n=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var t=e(this),n=t.prev(),i=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(i,"ui-menu-icon","ui-icon "+r),n.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",n.attr("id"))})),this._addClass(n,"ui-menu","ui-widget ui-widget-content ui-front"),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")})),s=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,i,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(n=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,i,s,a,r,o;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,s=t.offset().top-this.activeMenu.offset().top-n-i,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=t.outerHeight(),s<0?this.activeMenu.scrollTop(a+s):s+o>r&&this.activeMenu.scrollTop(a+s-r+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay((function(){var i=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));i.length||(i=this.element),this._close(i),this.blur(t),this._removeClass(i.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=i}),this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var i;this.active&&(i="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),i&&i.length&&this.active||(i=this.activeMenu.find(this.options.items)[t]()),this.focus(n,i)},nextPage:function(t){var n,i,s;this.active?this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.nextAll(".ui-menu-item").each((function(){return(n=e(this)).offset().top-i-s<0})),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var n,i,s;this.active?this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,s=this.element.height(),this.active.prevAll(".ui-menu-item").each((function(){return(n=e(this)).offset().top-i+s>0})),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return i.test(e.trim(e(this).children(".ui-menu-item-wrapper").text()))}))}}),
/*!
* jQuery UI Autocomplete 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,i,s=this.element[0].nodeName.toLowerCase(),a="textarea"===s,r="input"===s;this.isMultiLine=a||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[a||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return t=!0,i=!0,void(n=!0);t=!1,i=!1,n=!1;var a=e.ui.keyCode;switch(s.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",s);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",s);break;case a.UP:t=!0,this._keyEvent("previous",s);break;case a.DOWN:t=!0,this._keyEvent("next",s);break;case a.ENTER:this.menu.active&&(t=!0,s.preventDefault(),this.menu.select(s));break;case a.TAB:this.menu.active&&this.menu.select(s);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:n=!0,this._searchTimeout(s)}},keypress:function(i){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||i.preventDefault());if(!n){var s=e.ui.keyCode;switch(i.keyCode){case s.PAGE_UP:this._move("previousPage",i);break;case s.PAGE_DOWN:this._move("nextPage",i);break;case s.UP:this._keyEvent("previous",i);break;case s.DOWN:this._keyEvent("next",i)}}},input:function(e){if(i)return i=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,this.element[0]!==e.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")}))},menufocus:function(t,n){var i,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));s=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=n.item.attr("aria-label")||s.value)&&e.trim(i).length&&(this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))},menuselect:function(t,n){var i=n.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay((function(){this.previous=s,this.selectedItem=i}))),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,i=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,i){i(e.ui.autocomplete.filter(t,n.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(t,s){i.xhr&&i.xhr.abort(),i.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){s(e)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),i=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||n||i)||(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy((function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}),this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})}))},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var i=this;e.each(n,(function(e,n){i._renderItemData(t,n)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var i=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,(function(e){return i.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments),this.options.disabled||this.cancelSearch||(n=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion))}}),e.ui.autocomplete;var c,u,h=/ui-corner-([a-z]){2,6}/g;
/*!
* jQuery UI Controlgroup 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/function p(){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=m(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function m(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,(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",n,f)}function f(){e.datepicker._isDisabledDatepicker(c.inline?c.dpDiv.parent()[0]:c.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 _(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}
/*!
* jQuery UI Spinner 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
function g(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,n=[];e.each(this.options.items,(function(i,s){var a,r={};if(s)return"controlgroupLabel"===i?((a=t.element.find(s)).each((function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),t._addClass(a,null,"ui-widget ui-widget-content ui-state-default"),void(n=n.concat(a.get()))):void(e.fn[i]&&(r=t["_"+i+"Options"]?t["_"+i+"Options"]("middle"):{classes:{}},t.element.find(s).each((function(){var s=e(this),a=s[i]("instance"),o=e.widget.extend({},r);if("button"!==i||!s.parent(".ui-spinner").length){a||(a=s[i]()[i]("instance")),a&&(o.classes=t._resolveClassesValues(o.classes,a)),s[i](o);var l=s[i]("widget");e.data(l[0],"ui-controlgroup-data",a||s[i]("instance")),n.push(l[0])}}))))})),this.childWidgets=e(e.unique(n)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each((function(){var n=e(this).data("ui-controlgroup-data");n&&n[t]&&n[t]()}))},_updateCornerClass:function(e,t){var n=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,n)},_buildSimpleOptions:function(e,t){var n="vertical"===this.options.direction,i={classes:{}};return i.classes[t]={middle:"",first:"ui-corner-"+(n?"top":"left"),last:"ui-corner-"+(n?"bottom":"right"),only:"ui-corner-all"}[e],i},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,n){var i={};return e.each(t,(function(s){var a=n.options.classes[s]||"";a=e.trim(a.replace(h,"")),i[s]=(a+" "+t[s]).replace(/\s+/g," ")})),i},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,n=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],(function(e,i){var s=t[i]().data("ui-controlgroup-data");if(s&&n["_"+s.widgetName+"Options"]){var a=n["_"+s.widgetName+"Options"](1===t.length?"only":i);a.classes=n._resolveClassesValues(a.classes,s),s.element[s.widgetName](a)}else n._updateCornerClass(t[i](),i)})),this._callChildMethod("refresh"))}}),
/*!
* jQuery UI Checkboxradio 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,n,i=this,s=this._super()||{};return this._readType(),n=this.element.labels(),this.label=e(n[n.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){i.originalLabel+=3===this.nodeType?e(this).text():this.outerHTML})),this.originalLabel&&(s.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(s.disabled=t),s},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,n="input[name='"+e.ui.escapeSelector(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(n):e(n).filter((function(){return 0===e(this).form().length}))).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each((function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var n="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(n+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):n+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",n),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),e.ui.checkboxradio,
/*!
* jQuery UI Button 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,n){var i="iconPosition"!==t,s=i?this.options.iconPosition:n,a="top"===s||"bottom"===s;this.icon?i&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),i&&this._addClass(this.icon,null,n),this._attachIcon(s),a?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,n=void 0===e.icon?this.options.icon:e.icon;t||n||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.blur())},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=function(t){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?t.apply(this,arguments):(e.ui.checkboxradio||e.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(e.fn.button),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"===r(arguments[0])&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button,
/*!
* jQuery UI Datepicker 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.extend(e.ui,{datepicker:{version:"1.12.1"}}),e.extend(p.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return _(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,s,a;s="div"===(i=t.nodeName.toLowerCase())||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),s)).settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,n){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:n,dpDiv:n?m(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,s,a,r=this._get(n,"appendText"),o=this._get(n,"isRTL");n.append&&n.append.remove(),r&&(n.append=e("<span class='"+this._appendClass+"'>"+r+"</span>"),t[o?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(s=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"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"](n.trigger),n.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,n,i,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(n=0,i=0,s=0;s<e.length;s++)e[s].length>n&&(n=e[s].length,i=s);return i},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,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,s,a){var r,o,l,d,c,u=this._dialogInst;return u||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",u)),_(u.settings,s||{}),n=n&&n.constructor===Date?this._formatDate(u,n):n,this._dialogInput.val(n),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(o=document.documentElement.clientWidth,l=document.documentElement.clientHeight,d=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+d,l/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=i,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",u),this},_destroyDatepicker:function(t){var n,i=e(t),s=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(s.append.remove(),s.trigger.remove(),i.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||i.removeClass(this.markerClassName).empty(),c===s&&(c=null))},_enableDatepicker:function(t){var n,i,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.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 n,i,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.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;t<this._disabledInputs.length;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,n,i){var s,a,r,o,l=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):l?"all"===n?e.extend({},l.settings):this._get(l,n):null;s=n||{},"string"==typeof n&&((s={})[n]=i),l&&(this._curInst===l&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(l,"min"),o=this._getMinMaxDate(l,"max"),_(l.settings,s),null!==r&&void 0!==s.dateFormat&&void 0===s.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==o&&void 0!==s.dateFormat&&void 0===s.maxDate&&(l.settings.maxDate=this._formatDate(l,o)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,a),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,i,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))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),(n=e.datepicker._get(a,"onSelect"))?(i=e.datepicker._formatDate(a),n.apply(a.input?a.input[0]:null,[i,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 n,i,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!n||n.indexOf(i)>-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var n,i,s,a,r,o,l;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(n=e.datepicker._getInst(t),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])),!1!==(s=(i=e.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(_(n.settings,s),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),a=!1,e(t).parents().each((function(){return!(a|="fixed"===e(this).css("position"))})),r={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),r=e.datepicker._checkOffset(n,r,a),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":a?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),n.inline||(o=e.datepicker._get(n,"showAnim"),l=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[o]?n.dpDiv.show(o,e.datepicker._get(n,"showOptions"),l):n.dpDiv[o||"show"](o?l:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,c=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,i=this._getNumberOfMonths(t),s=i[1],a=t.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&f.apply(a.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==i[0]||1!==i[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&&(n=t.yearshtml,setTimeout((function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year:first").replaceWith(t.yearshtml),n=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,n,i){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),d=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?s-r:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+o?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+s>l&&l>s?Math.abs(n.left+s-l):0),n.top-=Math.min(n.top,n.top+a>d&&d>a?Math.abs(a+o):0),n},_findPos:function(t){for(var n,i=this._getInst(t),s=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,s,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(r,"showAnim"),i=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[n]||e.effects[n])?r.dpDiv.hide(n,e.datepicker._get(r,"showOptions"),i,s):r.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,s),n||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&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 n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===i)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,n+("M"===i?this._get(a,"showCurrentAtPos"):0),i),this._updateDatepicker(a))},_gotoToday:function(t){var n,i=e(t),s=this._getInst(i[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(n=new Date,s.selectedDay=n.getDate(),s.drawMonth=s.selectedMonth=n.getMonth(),s.drawYear=s.selectedYear=n.getFullYear()),this._notifyChange(s),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===i?"Month":"Year")]=a["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,n,i,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=e("a",s).html(),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=i,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,s=e(t),a=this._getInst(s[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(a),(i=this._get(a,"onSelect"))?i.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!==r(a.input[0])&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,s,a=this._get(t,"altField");a&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),s=this.formatDate(n,i,this._getFormatConfig(t)),e(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"===r(n)?n.toString():n+""))return null;var s,a,o,l,d=0,c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,p=(i?i.dayNames:null)||this._defaults.dayNames,m=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,f=(i?i.monthNames:null)||this._defaults.monthNames,_=-1,g=-1,v=-1,y=-1,b=!1,w=function(e){var n=s+1<t.length&&t.charAt(s+1)===e;return n&&s++,n},M=function(e){var t=w(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=new RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),a=n.substring(d).match(s);if(!a)throw"Missing number at position "+d;return d+=a[0].length,parseInt(a[0],10)},k=function(t,i,s){var a=-1,r=e.map(w(t)?s:i,(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 i=t[1];if(n.substr(d,i.length).toLowerCase()===i.toLowerCase())return a=t[0],d+=i.length,!1})),-1!==a)return a+1;throw"Unknown name at position "+d},L=function(){if(n.charAt(d)!==t.charAt(s))throw"Unexpected literal at position "+d;d++};for(s=0;s<t.length;s++)if(b)"'"!==t.charAt(s)||w("'")?L():b=!1;else switch(t.charAt(s)){case"d":v=M("d");break;case"D":k("D",h,p);break;case"o":y=M("o");break;case"m":g=M("m");break;case"M":g=k("M",m,f);break;case"y":_=M("y");break;case"@":_=(l=new Date(M("@"))).getFullYear(),g=l.getMonth()+1,v=l.getDate();break;case"!":_=(l=new Date((M("!")-this._ticksTo1970)/1e4)).getFullYear(),g=l.getMonth()+1,v=l.getDate();break;case"'":w("'")?L():b=!0;break;default:L()}if(d<n.length&&(o=n.substr(d),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===_?_=(new Date).getFullYear():_<100&&(_+=(new Date).getFullYear()-(new Date).getFullYear()%100+(_<=u?0:-100)),y>-1)for(g=1,v=y;!(v<=(a=this._getDaysInMonth(_,g-1)));)g++,v-=a;if((l=this._daylightSavingAdjust(new Date(_,g-1,v))).getFullYear()!==_||l.getMonth()+1!==g||l.getDate()!==v)throw"Invalid date";return l},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var i,s=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,r=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,o=(n?n.monthNames:null)||this._defaults.monthNames,l=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},d=function(e,t,n){var i=""+t;if(l(e))for(;i.length<n;)i="0"+i;return i},c=function(e,t,n,i){return l(e)?i[t]:n[t]},u="",h=!1;if(t)for(i=0;i<e.length;i++)if(h)"'"!==e.charAt(i)||l("'")?u+=e.charAt(i):h=!1;else switch(e.charAt(i)){case"d":u+=d("d",t.getDate(),2);break;case"D":u+=c("D",t.getDay(),s,a);break;case"o":u+=d("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=d("m",t.getMonth()+1,2);break;case"M":u+=c("M",t.getMonth(),r,o);break;case"y":u+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":h=!0;break;default:u+=e.charAt(i)}return u},_possibleChars:function(e){var t,n="",i=!1,s=function(n){var i=t+1<e.length&&e.charAt(t+1)===n;return i&&t++,i};for(t=0;t<e.length;t++)if(i)"'"!==e.charAt(t)||s("'")?n+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":s("'")?n+="'":i=!0;break;default:n+=e.charAt(t)}return n},_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 n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(n,i,r)||s}catch(e){i=t?"":i}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=i?a.getDate():0,e.currentMonth=i?a.getMonth():0,e.currentYear=i?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,n,i){var s=null==n||""===n?i:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=i.getFullYear(),a=i.getMonth(),r=i.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(n);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}l=o.exec(n)}return new Date(s,a,r)}(n):"number"==typeof n?isNaN(n)?i:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(n):new Date(n.getTime());return(s=s&&"Invalid Date"===s.toString()?i: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,n){var i=!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||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":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 n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var t,n,i,s,a,r,o,l,d,c,u,h,p,m,f,_,g,v,y,b,w,M,k,L,T,S,D,Y,x,P,C,j,N,E,H,I,A,O,W,F=new Date,z=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),R=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),V=this._get(e,"hideIfNoPrevNext"),q=this._get(e,"navigationAsDateFormat"),U=this._getNumberOfMonths(e),G=this._get(e,"showCurrentAtPos"),$=this._get(e,"stepMonths"),J=1!==U[0]||1!==U[1],K=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),Q=e.drawMonth-G,ee=e.drawYear;if(Q<0&&(Q+=12,ee--),Z)for(t=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-U[0]*U[1]+1,Z.getDate())),t=X&&t<X?X:t;this._daylightSavingAdjust(new Date(ee,Q,1))>t;)--Q<0&&(Q=11,ee--);for(e.drawMonth=Q,e.drawYear=ee,n=this._get(e,"prevText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,Q-$,1)),this._getFormatConfig(e)):n,i=this._canAdjustMonth(e,-1,ee,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+n+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"e":"w")+"'>"+n+"</span></a>",s=this._get(e,"nextText"),s=q?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,Q+$,1)),this._getFormatConfig(e)):s,a=this._canAdjustMonth(e,1,ee,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+s+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(R?"w":"e")+"'>"+s+"</span></a>",r=this._get(e,"currentText"),o=this._get(e,"gotoCurrent")&&e.currentDay?K:z,r=q?this.formatDate(r,o,this._getFormatConfig(e)):r,l=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>",d=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(R?l:"")+(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>":"")+(R?"":l)+"</div>":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(e,"showWeek"),h=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),f=this._get(e,"monthNamesShort"),_=this._get(e,"beforeShowDay"),g=this._get(e,"showOtherMonths"),v=this._get(e,"selectOtherMonths"),y=this._getDefaultDate(e),b="",M=0;M<U[0];M++){for(k="",this.maxRows=4,L=0;L<U[1];L++){if(T=this._daylightSavingAdjust(new Date(ee,Q,e.selectedDay)),S=" ui-corner-all",D="",J){if(D+="<div class='ui-datepicker-group",U[1]>1)switch(L){case 0:D+=" ui-datepicker-group-first",S=" ui-corner-"+(R?"right":"left");break;case U[1]-1:D+=" ui-datepicker-group-last",S=" ui-corner-"+(R?"left":"right");break;default:D+=" ui-datepicker-group-middle",S=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===M?R?a:i:"")+(/all|right/.test(S)&&0===M?R?i:a:"")+this._generateMonthYearHeader(e,Q,ee,X,Z,M>0||L>0,m,f)+"</div><table class='ui-datepicker-calendar'><thead><tr>",Y=u?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",w=0;w<7;w++)Y+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[x=(w+c)%7]+"'>"+p[x]+"</span></th>";for(D+=Y+"</tr></thead><tbody>",P=this._getDaysInMonth(ee,Q),ee===e.selectedYear&&Q===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,P)),C=(this._getFirstDayOfMonth(ee,Q)-c+7)%7,j=Math.ceil((C+P)/7),N=J&&this.maxRows>j?this.maxRows:j,this.maxRows=N,E=this._daylightSavingAdjust(new Date(ee,Q,1-C)),H=0;H<N;H++){for(D+="<tr>",I=u?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(E)+"</td>":"",w=0;w<7;w++)A=_?_.apply(e.input?e.input[0]:null,[E]):[!0,""],W=(O=E.getMonth()!==Q)&&!v||!A[0]||X&&E<X||Z&&E>Z,I+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(O?" ui-datepicker-other-month":"")+(E.getTime()===T.getTime()&&Q===e.selectedMonth&&e._keyEvent||y.getTime()===E.getTime()&&y.getTime()===T.getTime()?" "+this._dayOverClass:"")+(W?" "+this._unselectableClass+" ui-state-disabled":"")+(O&&!g?"":" "+A[1]+(E.getTime()===K.getTime()?" "+this._currentClass:"")+(E.getTime()===z.getTime()?" ui-datepicker-today":""))+"'"+(O&&!g||!A[2]?"":" title='"+A[2].replace(/'/g,"&#39;")+"'")+(W?"":" data-handler='selectDay' data-event='click' data-month='"+E.getMonth()+"' data-year='"+E.getFullYear()+"'")+">"+(O&&!g?"&#xa0;":W?"<span class='ui-state-default'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===z.getTime()?" ui-state-highlight":"")+(E.getTime()===K.getTime()?" ui-state-active":"")+(O?" ui-priority-secondary":"")+"' href='#'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);D+=I+"</tr>"}++Q>11&&(Q=0,ee++),k+=D+="</tbody></table>"+(J?"</div>"+(U[0]>0&&L===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=k}return b+=d,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,n,i,s,a,r,o){var l,d,c,u,h,p,m,f,_=this._get(e,"changeMonth"),g=this._get(e,"changeYear"),v=this._get(e,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(a||!_)b+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=i&&i.getFullYear()===n,d=s&&s.getFullYear()===n,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=i.getMonth())&&(!d||c<=s.getMonth())&&(b+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+o[c]+"</option>");b+="</select>"}if(v||(y+=b+(!a&&_&&g?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!g)y+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(u=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),m=(p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t})(u[0]),f=Math.max(m,p(u[1]||"")),m=i?Math.max(m,i.getFullYear()):m,f=s?Math.min(f,s.getFullYear()):f,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m<=f;m++)e.yearshtml+="<option value='"+m+"'"+(m===n?" selected='selected'":"")+">"+m+"</option>";e.yearshtml+="</select>",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),v&&(y+=(!a&&_&&g?"":"&#xa0;")+b),y+="</div>"},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),s=e.selectedMonth+("M"===n?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(i,s))+("D"===n?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),s=n&&t<n?n:t;return i&&s>i?i: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,n,i){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(n,i+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var n,i,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),i=(new Date).getFullYear(),r=parseInt(n[0],10),o=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(r+=i),n[1].match(/[+\-].*/)&&(o+=i)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"===r(t)?t:this._daylightSavingAdjust(new Date(i,n,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 n=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(n)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new p,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1",e.datepicker,
/*!
* jQuery UI Dialog 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var n=e(this).css(t).offset().top;n<0&&e(this).css("top",t.top-n)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var n=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){n._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,n){var i=!1,s=this.uiDialog.siblings(".ui-front:visible").map((function(){return+e(this).css("z-index")})).get(),a=Math.max.apply(null,s);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),i=!0),i&&!n&&this._trigger("focus",t),i},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_keepFocus:function(t){function n(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()}t.preventDefault(),n.call(this),this._delay(n)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var n=this.uiDialog.find(":tabbable"),i=n.filter(":first"),s=n.filter(":last");t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==i[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay((function(){s.trigger("focus")})),t.preventDefault()):(this._delay((function(){i.trigger("focus")})),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,n=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(n)||e.isArray(n)&&!n.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(n,(function(n,i){var s,a;i=e.isFunction(i)?{click:i,text:n}:i,i=e.extend({type:"button"},i),s=i.click,a={icon:i.icon,iconPosition:i.iconPosition,showLabel:i.showLabel,icons:i.icons,text:i.text},delete i.click,delete i.icon,delete i.iconPosition,delete i.showLabel,delete i.icons,"boolean"==typeof i.text&&delete i.text,e("<button></button>",i).button(a).appendTo(t.uiButtonSet).on("click",(function(){s.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,n=this.options;function i(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){t._addClass(e(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",n,i(s))},drag:function(e,n){t._trigger("drag",e,i(n))},stop:function(s,a){var r=a.offset.left-t.document.scrollLeft(),o=a.offset.top-t.document.scrollTop();n.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(o>=0?"+":"")+o,of:t.window},t._removeClass(e(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,i(a))}})},_makeResizable:function(){var t=this,n=this.options,i=n.resizable,s=this.uiDialog.css("position"),a="string"==typeof i?i:"n,e,s,w,se,sw,ne,nw";function r(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:a,start:function(n,i){t._addClass(e(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",n,r(i))},resize:function(e,n){t._trigger("resize",e,r(n))},stop:function(i,s){var a=t.uiDialog.offset(),o=a.left-t.document.scrollLeft(),l=a.top-t.document.scrollTop();n.height=t.uiDialog.height(),n.width=t.uiDialog.width(),n.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(e(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",i,r(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),n=e.inArray(this,t);-1!==n&&t.splice(n,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var n=this,i=!1,s={};e.each(t,(function(e,t){n._setOption(e,t),e in n.sizeRelatedOptions&&(i=!0),e in n.resizableRelatedOptions&&(s[e]=t)})),i&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,n){var i,s,a=this.uiDialog;"disabled"!==t&&(this._super(t,n),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((i=a.is(":data(ui-draggable)"))&&!n&&a.draggable("destroy"),!i&&n&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=a.is(":data(ui-resizable)"))&&!n&&a.resizable("destroy"),s&&"string"==typeof n&&a.resizable("option","handles",n),s||!1===n||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,n,i=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),i.minWidth>i.width&&(i.width=i.minWidth),e=this.uiDialog.css({height:"auto",width:i.width}).outerHeight(),t=Math.max(0,i.minHeight-e),n="number"==typeof i.maxHeight?Math.max(0,i.maxHeight-e):"none","auto"===i.height?this.element.css({minHeight:t,maxHeight:n,height:"auto"}):this.element.height(Math.max(0,i.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay((function(){t=!1})),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),e.ui.dialog,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){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),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,n=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(n.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.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,n=this,i=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(i).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){n._rendered||n._refreshMenu()}))},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,n){e.preventDefault(),t._setSelection(),t._select(n.item.data("ui-selectmenu-item"),e)},focus:function(e,n){var i=n.item.data("ui-selectmenu-item");null!=t.focusIndex&&i.index!==t.focusIndex&&(t._trigger("focus",e,{item:i}),t.isOpen||t._select(i,e)),t.focusIndex=i.index,t.button.attr("aria-activedescendant",t.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var n=e("<span>");return this._setText(n,t.label),this._addClass(n,"ui-selectmenu-text"),n},_renderMenu:function(t,n){var i=this,s="";e.each(n,(function(n,a){var r;a.optgroup!==s&&(r=e("<li>",{text:a.optgroup}),i._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(t),s=a.optgroup),i._renderItemData(t,a)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,n){var i=e("<li>"),s=e("<div>",{title:n.element.attr("title")});return n.disabled&&this._addClass(i,null,"ui-state-disabled"),this._setText(s,n.label),i.append(s).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var n,i,s=".ui-menu-item";this.isOpen?n=this.menuItems.eq(this.focusIndex).parent("li"):(n=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(i="first"===e||"last"===e?n["first"===e?"prevAll":"nextAll"](s).eq(-1):n[e+"All"](s).eq(0)).length&&this.menuInstance.focus(t,i)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+e.ui.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var n=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),n=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),n=!1}n&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var n=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==n&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var n=this.button.find("span.ui-icon");this._removeClass(n,null,this.options.icons.button)._addClass(n,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1!==e?(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var n=this,i=[];t.each((function(t,s){i.push(n._parseOption(e(s),t))})),this.items=i},_parseOption:function(e,t){var n=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),e.widget("ui.slider",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,n,i=this.options,s=this.element.find(".ui-slider-handle"),a=[];for(n=i.values&&i.values.length||1,s.length>n&&(s.slice(n).remove(),s=s.slice(0,n)),t=s.length;t<n;t++)a.push("<span tabindex='0'></span>");this.handles=s.add(e(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:e.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var n,i,s,a,r,o,l,d=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),n={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(n),s=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var n=Math.abs(i-d.values(t));(s>n||s===n&&(t===d._lastChangedValue||d.values(t)===c.min))&&(s=n,a=e(this),r=t)})),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),o=a.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-o.left-a.width()/2,top:t.pageY-o.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,i),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,n),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,n,i,s,a;return"horizontal"===this.orientation?(t=this.elementSize.width,n=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,n=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(i=n/t)>1&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),s=this._valueMax()-this._valueMin(),a=this._valueMin()+i*s,this._trimAlignValue(a)},_uiHash:function(e,t,n){var i={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(i.value=void 0!==t?t:this.values(e),i.values=n||this.values()),i},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,n){var i,s=this.value(),a=this.values();this._hasMultipleValues()&&(i=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(n=0===t?Math.min(i,n):Math.max(i,n)),a[t]=n),n!==s&&!1!==this._trigger("slide",e,this._uiHash(t,n,a))&&(this._hasMultipleValues()?this.values(t,n):this.value(n))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,n){var i,s,a;if(arguments.length>1)return this.options.values[t]=this._trimAlignValue(n),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!e.isArray(arguments[0]))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,s=arguments[0],a=0;a<i.length;a+=1)i[a]=this._trimAlignValue(s[a]),this._change(null,a);this._refreshValue()},_setOption:function(t,n){var i,s=0;switch("range"===t&&!0===this.options.range&&("min"===n?(this.options.value=this._values(0),this.options.values=null):"max"===n&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),e.isArray(this.options.values)&&(s=this.options.values.length),this._super(t,n),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(n),this.handles.css("horizontal"===n?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,n,i;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(n=this.options.values.slice(),i=0;i<n.length;i+=1)n[i]=this._trimAlignValue(n[i]);return n}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,n=(e-this._valueMin())%t,i=e-n;return 2*Math.abs(n)>=t&&(i+=n>0?t:-t),parseFloat(i.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),n=this.options.step;(e=Math.round((e-t)/n)*n+t)>this.options.max&&(e-=n),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,n,i,s,a,r=this.options.range,o=this.options,l=this,d=!this._animateOff&&o.animate,c={};this._hasMultipleValues()?this.handles.each((function(i){n=(l.values(i)-l._valueMin())/(l._valueMax()-l._valueMin())*100,c["horizontal"===l.orientation?"left":"bottom"]=n+"%",e(this).stop(1,1)[d?"animate":"css"](c,o.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===i&&l.range.stop(1,1)[d?"animate":"css"]({left:n+"%"},o.animate),1===i&&l.range[d?"animate":"css"]({width:n-t+"%"},{queue:!1,duration:o.animate})):(0===i&&l.range.stop(1,1)[d?"animate":"css"]({bottom:n+"%"},o.animate),1===i&&l.range[d?"animate":"css"]({height:n-t+"%"},{queue:!1,duration:o.animate}))),t=n})):(i=this.value(),s=this._valueMin(),a=this._valueMax(),n=a!==s?(i-s)/(a-s)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=n+"%",this.handle.stop(1,1)[d?"animate":"css"](c,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({width:n+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({width:100-n+"%"},o.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({height:n+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[d?"animate":"css"]({height:100-n+"%"},o.animate))},_handleEvents:{keydown:function(t){var n,i,s,a=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,a)))return}switch(s=this.options.step,n=i=this._hasMultipleValues()?this.values(a):this.value(),t.keyCode){case e.ui.keyCode.HOME:i=this._valueMin();break;case e.ui.keyCode.END:i=this._valueMax();break;case e.ui.keyCode.PAGE_UP:i=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(n===this._valueMax())return;i=this._trimAlignValue(n+s);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(n===this._valueMin())return;i=this._trimAlignValue(n-s)}this._slide(t,a,i)},keyup:function(t){var n=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,n),this._change(t,n),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),n=this.element;return e.each(["min","max","step"],(function(e,i){var s=n.attr(i);null!=s&&s.length&&(t[i]=s)})),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((t>0?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(e)}),100),e.preventDefault()}},"mousedown .ui-spinner-button":function(t){var n;function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n})))}n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var n=this.options,i=e.ui.keyCode;switch(t.keyCode){case i.UP:return this._repeat(null,1,t),!0;case i.DOWN:return this._repeat(null,-1,t),!0;case i.PAGE_UP:return this._repeat(null,n.page,t),!0;case i.PAGE_DOWN:return this._repeat(null,-n.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(e,t,n){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,n)}),e),this._spin(t*this.options.step,n)},_spin:function(e,t){var n=this.value()||0;this.counter||(this.counter=1),n=this._adjustValue(n+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:n})||(this._value(n),this.counter++)},_increment:function(t){var n=this.options.incremental;return n?e.isFunction(n)?n(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),n=t.indexOf(".");return-1===n?0:t.length-n-1},_adjustValue:function(e){var t,n,i=this.options;return n=e-(t=null!==i.min?i.min:0),e=t+(n=Math.round(n/i.step)*i.step),e=parseFloat(e.toFixed(this._precision())),null!==i.max&&e>i.max?i.max:null!==i.min&&e<i.min?i.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var n,i,s;if("culture"===e||"numberFormat"===e)return n=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(n));"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,t.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:g((function(e){this._super(e)})),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var n;""!==e&&null!==(n=this._parse(e))&&(t||(n=this._adjustValue(n)),e=this._format(n)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:g((function(e){this._stepUp(e)})),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:g((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:g((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:g((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){if(!arguments.length)return this._parse(this.element.val());g(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),e.ui.spinner,
/*!
* jQuery UI Tabs 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
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:(u=/#.*$/,function(e){var t,n;t=e.href.replace(u,""),n=location.href.replace(u,"");try{t=decodeURIComponent(t)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return e.hash.length>1&&t===n}),_create:function(){var t=this,n=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,n.collapsible),this._processTabs(),n.active=this._initialActive(),e.isArray(n.disabled)&&(n.disabled=e.unique(n.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),(function(e){return t.tabs.index(e)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(n.active):this.active=e(),this._refresh(),this.active.length&&this.load(n.active)},_initialActive:function(){var t=this.options.active,n=this.options.collapsible,i=location.hash.substring(1);return null===t&&(i&&this.tabs.each((function(n,s){if(e(s).attr("aria-controls")===i)return t=n,!1})),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=!n&&0),!n&&!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 n=e(e.ui.safeActiveElement(this.document[0])).closest("li"),i=this.tabs.index(n),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:i++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:s=!1,i--;break;case e.ui.keyCode.END:i=this.anchors.length-1;break;case e.ui.keyCode.HOME:i=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}t.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,s),t.ctrlKey||t.metaKey||(n.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",i)}),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,n){for(var i=this.tabs.length-1;-1!==e.inArray((t>i&&(t=0),t<0&&(t=i),t),this.options.disabled);)t=n?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){"active"!==e?(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),"heightStyle"===e&&this._setupHeightStyle(t)):this._activate(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,n=this.tablist.children(":has(a[href])");t.disabled=e.map(n.filter(".ui-state-disabled"),(function(e){return n.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,n=this.tabs,i=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(n,i){var s,a,r,o=e(i).uniqueId().attr("id"),l=e(i).closest("li"),d=l.attr("aria-controls");t._isLocal(i)?(r=(s=i.hash).substring(1),a=t.element.find(t._sanitizeSelector(s))):(s="#"+(r=l.attr("aria-controls")||e({}).uniqueId()[0].id),(a=t.element.find(s)).length||(a=t._createPanel(r)).insertAfter(t.panels[n-1]||t.tablist),a.attr("aria-live","polite")),a.length&&(t.panels=t.panels.add(a)),d&&l.data("ui-tabs-aria-controls",d),l.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"),n&&(this._off(n.not(this.tabs)),this._off(i.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 n,i,s;for(e.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;i=this.tabs[s];s++)n=e(i),!0===t||-1!==e.inArray(s,t)?(n.attr("aria-disabled","true"),this._addClass(n,null,"ui-state-disabled")):(n.removeAttr("aria-disabled"),this._removeClass(n,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var n={};t&&e.each(t.split(" "),(function(e,t){n[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,n),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var n,i=this.element.parent();"fill"===t?(n=i.height(),n-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var t=e(this),i=t.css("position");"absolute"!==i&&"fixed"!==i&&(n-=t.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){n-=e(this).outerHeight(!0)})),this.panels.each((function(){e(this).height(Math.max(0,n-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===t&&(n=0,this.panels.each((function(){n=Math.max(n,e(this).height("").height())})).height(n))},_eventHandler:function(t){var n=this.options,i=this.active,s=e(t.currentTarget).closest("li"),a=s[0]===i[0],r=a&&n.collapsible,o=r?e():this._getPanelForTab(s),l=i.length?this._getPanelForTab(i):e(),d={oldTab:i,oldPanel:l,newTab:r?e():s,newPanel:o};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||a&&!n.collapsible||!1===this._trigger("beforeActivate",t,d)||(n.active=!r&&this.tabs.index(s),this.active=a?e():s,this.xhr&&this.xhr.abort(),l.length||o.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(s),t),this._toggle(t,d))},_toggle:function(t,n){var i=this,s=n.newPanel,a=n.oldPanel;function r(){i.running=!1,i._trigger("activate",t,n)}function o(){i._addClass(n.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&i.options.show?i._show(s,i.options.show,r):(s.show(),r())}this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,(function(){i._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o()})):(this._removeClass(n.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a.hide(),o()),a.attr("aria-hidden","true"),n.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&a.length?n.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter((function(){return 0===e(this).attr("tabIndex")})).attr("tabIndex",-1),s.attr("aria-hidden","false"),n.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var n,i=this._findActive(t);i[0]!==this.active[0]&&(i.length||(i=this.active),n=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:n,currentTarget:n,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),n=t.data("ui-tabs-aria-controls");n?t.attr("aria-controls",n).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var n=this.options.disabled;!1!==n&&(void 0===t?n=!1:(t=this._getIndex(t),n=e.isArray(n)?e.map(n,(function(e){return e!==t?e:null})):e.map(this.tabs,(function(e,n){return n!==t?n:null}))),this._setOptionDisabled(n))},disable:function(t){var n=this.options.disabled;if(!0!==n){if(void 0===t)n=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,n))return;n=e.isArray(n)?e.merge([t],n).sort():[t]}this._setOptionDisabled(n)}},load:function(t,n){t=this._getIndex(t);var i=this,s=this.tabs.eq(t),a=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),o={tab:s,panel:r},l=function(e,t){"abort"===t&&i.panels.stop(!1,!0),i._removeClass(s,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===i.xhr&&delete i.xhr};this._isLocal(a[0])||(this.xhr=e.ajax(this._ajaxSettings(a,n,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),i._trigger("load",n,o),l(s,t)}),1)})).fail((function(e,t){setTimeout((function(){l(e,t)}),1)}))))},_ajaxSettings:function(t,n,i){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,a){return s._trigger("beforeLoad",n,e.extend({jqXHR:t,ajaxSettings:a},i))}}},_getPanelForTab:function(t){var n=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+n))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs,
/*!
* jQuery UI Tooltip 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
e.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,n){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(n),t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(i.join(" ")))},_removeDescribedBy:function(t){var n=t.data("ui-tooltip-id"),i=(t.attr("aria-describedby")||"").split(/\s+/),s=e.inArray(n,i);-1!==s&&i.splice(s,1),t.removeData("ui-tooltip-id"),(i=e.trim(i.join(" ")))?t.attr("aria-describedby",i):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,n){var i=this;this._super(t,n),"content"===t&&e.each(this.tooltips,(function(e,t){i._updateContent(t.element)}))},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,(function(n,i){var s=e.Event("blur");s.target=s.currentTarget=i.element[0],t.close(s,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})),this.disabledTitles=e([])},open:function(t){var n=this,i=e(t?t.target:this.element).closest(this.options.items);i.length&&!i.data("ui-tooltip-id")&&(i.attr("title")&&i.data("ui-tooltip-title",i.attr("title")),i.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&i.parents().each((function(){var t,i=e(this);i.data("ui-tooltip-open")&&((t=e.Event("blur")).target=t.currentTarget=this,n.close(t,!0)),i.attr("title")&&(i.uniqueId(),n.parents[this.id]={element:this,title:i.attr("title")},i.attr("title",""))})),this._registerCloseHandlers(t,i),this._updateContent(i,t))},_updateContent:function(e,t){var n,i=this.options.content,s=this,a=t?t.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(t,e,i);(n=i.call(e[0],(function(n){s._delay((function(){e.data("ui-tooltip-open")&&(t&&(t.type=a),this._open(t,e,n))}))})))&&this._open(t,e,n)},_open:function(t,n,i){var s,a,r,o,l=e.extend({},this.options.position);function d(e){l.of=e,a.is(":hidden")||a.position(l)}i&&((s=this._find(n))?s.tooltip.find(".ui-tooltip-content").html(i):(n.is("[title]")&&(t&&"mouseover"===t.type?n.attr("title",""):n.removeAttr("title")),s=this._tooltip(n),a=s.tooltip,this._addDescribedBy(n,a.attr("id")),a.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),(o=e("<div>").html(a.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),o.removeAttr("id").find("[id]").removeAttr("id"),o.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:d}),d(t)):a.position(e.extend({of:n},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval((function(){a.is(":visible")&&(d(l.of),clearInterval(r))}),e.fx.interval)),this._trigger("open",t,{tooltip:a})))},_registerCloseHandlers:function(t,n){var i={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var i=e.Event(t);i.currentTarget=n[0],this.close(i,!0)}}};n[0]!==this.element[0]&&(i.remove=function(){this._removeTooltip(this._find(n).tooltip)}),t&&"mouseover"!==t.type||(i.mouseleave="close"),t&&"focusin"!==t.type||(i.focusout="close"),this._on(!0,n,i)},close:function(t){var n,i=this,s=e(t?t.currentTarget:this.element),a=this._find(s);a?(n=a.tooltip,a.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),a.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,(function(){i._removeTooltip(e(this))})),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,(function(t,n){e(n.element).attr("title",n.title),delete i.parents[t]})),a.closing=!0,this._trigger("close",t,{tooltip:n}),a.hiding||(a.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(t){var n=e("<div>").attr("role","tooltip"),i=e("<div>").appendTo(n),s=n.uniqueId().attr("id");return this._addClass(i,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:n}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,(function(n,i){var s=e.Event("blur"),a=i.element;s.target=s.currentTarget=a[0],t.close(s,!0),e("#"+n).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip;var v,y=e;
/*!
* jQuery UI Effects 1.12.1
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/e.effects={effect:{}},
/*!
* jQuery Color Animations v2.1.2
* https://github.com/jquery/jquery-color
*
* Copyright 2014 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* Date: Wed Jan 16 08:47:09 2013 -0600
*/
function(e,t){var n,i=/^([\-+])=\s*(\d+\.?\d*)/,s=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],a=e.Color=function(t,n,i,s){return new e.Color.fn.parse(t,n,i,s)},r={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},o={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},l=a.support={},d=e("<p>")[0],c=e.each;function u(e,t,n){var i=o[t.type]||{};return null==e?n||!t.def?null:t.def:(e=i.floor?~~e:parseFloat(e),isNaN(e)?t.def:i.mod?(e+i.mod)%i.mod:0>e?0:i.max<e?i.max:e)}function h(t){var i=a(),o=i._rgba=[];return t=t.toLowerCase(),c(s,(function(e,n){var s,a=n.re.exec(t),l=a&&n.parse(a),d=n.space||"rgba";if(l)return s=i[d](l),i[r[d].cache]=s[r[d].cache],o=i._rgba=s._rgba,!1})),o.length?("0,0,0,0"===o.join()&&e.extend(o,n.transparent),i):n[t]}function p(e,t,n){return 6*(n=(n+1)%1)<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}d.style.cssText="background-color:rgba(1,1,1,.5)",l.rgba=d.style.backgroundColor.indexOf("rgba")>-1,c(r,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),a.fn=e.extend(a.prototype,{parse:function(t,i,s,o){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=e(t).css(i),i=void 0);var l=this,d=e.type(t),p=this._rgba=[];return void 0!==i&&(t=[t,i,s,o],d="array"),"string"===d?this.parse(h(t)||n._default):"array"===d?(c(r.rgba.props,(function(e,n){p[n.idx]=u(t[n.idx],n)})),this):"object"===d?(c(r,t instanceof a?function(e,n){t[n.cache]&&(l[n.cache]=t[n.cache].slice())}:function(n,i){var s=i.cache;c(i.props,(function(e,n){if(!l[s]&&i.to){if("alpha"===e||null==t[e])return;l[s]=i.to(l._rgba)}l[s][n.idx]=u(t[e],n,!0)})),l[s]&&e.inArray(null,l[s].slice(0,3))<0&&(l[s][3]=1,i.from&&(l._rgba=i.from(l[s])))}),this):void 0},is:function(e){var t=a(e),n=!0,i=this;return c(r,(function(e,s){var a,r=t[s.cache];return r&&(a=i[s.cache]||s.to&&s.to(i._rgba)||[],c(s.props,(function(e,t){if(null!=r[t.idx])return n=r[t.idx]===a[t.idx]}))),n})),n},_space:function(){var e=[],t=this;return c(r,(function(n,i){t[i.cache]&&e.push(n)})),e.pop()},transition:function(e,t){var n=a(e),i=n._space(),s=r[i],l=0===this.alpha()?a("transparent"):this,d=l[s.cache]||s.to(l._rgba),h=d.slice();return n=n[s.cache],c(s.props,(function(e,i){var s=i.idx,a=d[s],r=n[s],l=o[i.type]||{};null!==r&&(null===a?h[s]=r:(l.mod&&(r-a>l.mod/2?a+=l.mod:a-r>l.mod/2&&(a-=l.mod)),h[s]=u((r-a)*t+a,i)))})),this[i](h)},blend:function(t){if(1===this._rgba[3])return this;var n=this._rgba.slice(),i=n.pop(),s=a(t)._rgba;return a(e.map(n,(function(e,t){return(1-i)*s[t]+i*e})))},toRgbaString:function(){var t="rgba(",n=e.map(this._rgba,(function(e,t){return null==e?t>2?1:0:e}));return 1===n[3]&&(n.pop(),t="rgb("),t+n.join()+")"},toHslaString:function(){var t="hsla(",n=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===n[3]&&(n.pop(),t="hsl("),t+n.join()+")"},toHexString:function(t){var n=this._rgba.slice(),i=n.pop();return t&&n.push(~~(255*i)),"#"+e.map(n,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),a.fn.parse.prototype=a.fn,r.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,n,i=e[0]/255,s=e[1]/255,a=e[2]/255,r=e[3],o=Math.max(i,s,a),l=Math.min(i,s,a),d=o-l,c=o+l,u=.5*c;return t=l===o?0:i===o?60*(s-a)/d+360:s===o?60*(a-i)/d+120:60*(i-s)/d+240,n=0===d?0:u<=.5?d/c:d/(2-c),[Math.round(t)%360,n,u,null==r?1:r]},r.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,n=e[1],i=e[2],s=e[3],a=i<=.5?i*(1+n):i+n-i*n,r=2*i-a;return[Math.round(255*p(r,a,t+1/3)),Math.round(255*p(r,a,t)),Math.round(255*p(r,a,t-1/3)),s]},c(r,(function(t,n){var s=n.props,r=n.cache,o=n.to,l=n.from;a.fn[t]=function(t){if(o&&!this[r]&&(this[r]=o(this._rgba)),void 0===t)return this[r].slice();var n,i=e.type(t),d="array"===i||"object"===i?t:arguments,h=this[r].slice();return c(s,(function(e,t){var n=d["object"===i?e:t.idx];null==n&&(n=h[t.idx]),h[t.idx]=u(n,t)})),l?((n=a(l(h)))[r]=h,n):a(h)},c(s,(function(n,s){a.fn[n]||(a.fn[n]=function(a){var r,o=e.type(a),l="alpha"===n?this._hsla?"hsla":"rgba":t,d=this[l](),c=d[s.idx];return"undefined"===o?c:("function"===o&&(a=a.call(this,c),o=e.type(a)),null==a&&s.empty?this:("string"===o&&(r=i.exec(a))&&(a=c+parseFloat(r[2])*("+"===r[1]?1:-1)),d[s.idx]=a,this[l](d)))})}))})),a.hook=function(t){var n=t.split(" ");c(n,(function(t,n){e.cssHooks[n]={set:function(t,i){var s,r,o="";if("transparent"!==i&&("string"!==e.type(i)||(s=h(i)))){if(i=a(s||i),!l.rgba&&1!==i._rgba[3]){for(r="backgroundColor"===n?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;)try{o=e.css(r,"backgroundColor"),r=r.parentNode}catch(e){}i=i.blend(o&&"transparent"!==o?o:"_default")}i=i.toRgbaString()}try{t.style[n]=i}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=a(t.elem,n),t.end=a(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},a.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),e.cssHooks.borderColor={expand:function(e){var t={};return c(["Top","Right","Bottom","Left"],(function(n,i){t["border"+i+"Color"]=e})),t}},n=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(y),function(){var t=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function i(t){var n,i,s=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[n=s[i]]&&(a[e.camelCase(n)]=s[n]);else for(n in s)"string"==typeof s[n]&&(a[n]=s[n]);return a}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,n){e.fx.step[n]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(y.style(e.elem,n,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(s,a,r,o){var l=e.speed(a,r,o);return this.queue((function(){var a,r=e(this),o=r.attr("class")||"",d=l.children?r.find("*").addBack():r;d=d.map((function(){return{el:e(this),start:i(this)}})),(a=function(){e.each(t,(function(e,t){s[t]&&r[t+"Class"](s[t])}))})(),d=d.map((function(){return this.end=i(this.el[0]),this.diff=function(t,i){var s,a,r={};for(s in i)a=i[s],t[s]!==a&&(n[s]||!e.fx.step[s]&&isNaN(parseFloat(a))||(r[s]=a));return r}(this.start,this.end),this})),r.attr("class",o),d=d.map((function(){var t=this,n=e.Deferred(),i=e.extend({},l,{queue:!1,complete:function(){n.resolve(t)}});return this.el.animate(this.diff,i),n.promise()})),e.when.apply(e,d.get()).done((function(){a(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(r[0])}))}))},e.fn.extend({addClass:function(t){return function(n,i,s,a){return i?e.effects.animateClass.call(this,{add:n},i,s,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(n,i,s,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:n},i,s,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(n,i,s,a,r){return"boolean"==typeof i||void 0===i?s?e.effects.animateClass.call(this,i?{add:n}:{remove:n},s,a,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:n},i,s,a)}}(e.fn.toggleClass),switchClass:function(t,n,i,s,a){return e.effects.animateClass.call(this,{add:n,remove:t},i,s,a)}})}(),function(){function t(t,n,i,s){return e.isPlainObject(t)&&(n=t,t=t.effect),t={effect:t},null==n&&(n={}),e.isFunction(n)&&(s=n,i=null,n={}),("number"==typeof n||e.fx.speeds[n])&&(s=i,i=n,n={}),e.isFunction(i)&&(s=i,i=null),n&&e.extend(t,n),i=i||n.duration,t.duration=e.fx.off?0:"number"==typeof i?i:i in e.fx.speeds?e.fx.speeds[i]:e.fx.speeds._default,t.complete=s||n.complete,t}function n(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||!!e.isFunction(t)||"object"===r(t)&&!t.effect}function i(e,t){var n=t.outerWidth(),i=t.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,n,i,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?n:parseFloat(s[2]),bottom:"auto"===s[3]?i:parseFloat(s[3]),left:parseFloat(s[4])||0}}e.expr&&e.expr.filters&&e.expr.filters.animated&&(e.expr.filters.animated=function(t){return function(n){return!!e(n).data("ui-effects-animated")||t(n)}}(e.expr.filters.animated)),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var n=0,i=t.length;n<i;n++)null!==t[n]&&e.data("ui-effects-"+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,i=0,s=t.length;i<s;i++)null!==t[i]&&(n=e.data("ui-effects-"+t[i]),e.css(t[i],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var n={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},i=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(e){a=document.body}return t.wrap(i),(t[0]===a||e.contains(t[0],a))&&e(a).trigger("focus"),i=t.parent(),"static"===t.css("position")?(i.css({position:"relative"}),t.css({position:"relative"})):(e.extend(n,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,i){n[i]=t.css(i),isNaN(parseInt(n[i],10))&&(n[i]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(s),i.css(n).show()},removeWrapper:function(t){var n=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===n||e.contains(t[0],n))&&e(n).trigger("focus")),t}}),e.extend(e.effects,{version:"1.12.1",define:function(t,n,i){return i||(i=n,n="effect"),e.effects.effect[t]=i,e.effects.effect[t].mode=n,i},scaledDimensions:function(e,t,n){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var i="horizontal"!==n?(t||100)/100:1,s="vertical"!==n?(t||100)/100:1;return{height:e.height()*s,width:e.width()*i,outerHeight:e.outerHeight()*s,outerWidth:e.outerWidth()*i}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,n){var i=e.queue();t>1&&i.splice.apply(i,[1,0].concat(i.splice(t,n))),e.dequeue()},saveStyle:function(e){e.data("ui-effects-style",e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data("ui-effects-style")||"",e.removeData("ui-effects-style")},mode:function(e,t){var n=e.is(":hidden");return"toggle"===t&&(t=n?"show":"hide"),(n?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var n,i;switch(e[0]){case"top":n=0;break;case"middle":n=.5;break;case"bottom":n=1;break;default:n=e[0]/t.height}switch(e[1]){case"left":i=0;break;case"center":i=.5;break;case"right":i=1;break;default:i=e[1]/t.width}return{x:i,y:n}},createPlaceholder:function(t){var n,i=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(i)&&(i="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data("ui-effects-placeholder",n)),t.css({position:i,left:s.left,top:s.top}),n},removePlaceholder:function(e){var t="ui-effects-placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,n,i,s){return s=s||{},e.each(n,(function(e,n){var a=t.cssUnit(n);a[0]>0&&(s[n]=a[0]*i+a[1])})),s}}),e.fn.extend({effect:function(){var n=t.apply(this,arguments),i=e.effects.effect[n.effect],s=i.mode,a=n.queue,r=a||"fx",o=n.complete,l=n.mode,d=[],c=function(t){var n=e(this),i=e.effects.mode(n,l)||s;n.data("ui-effects-animated",!0),d.push(i),s&&("show"===i||i===s&&"hide"===i)&&n.show(),s&&"none"===i||e.effects.saveStyle(n),e.isFunction(t)&&t()};if(e.fx.off||!i)return l?this[l](n.duration,o):this.each((function(){o&&o.call(this)}));function u(t){var a=e(this);function r(){e.isFunction(o)&&o.call(a[0]),e.isFunction(t)&&t()}n.mode=d.shift(),!1===e.uiBackCompat||s?"none"===n.mode?(a[l](),r()):i.call(a[0],n,(function(){a.removeData("ui-effects-animated"),e.effects.cleanUp(a),"hide"===n.mode&&a.hide(),r()})):(a.is(":hidden")?"hide"===l:"show"===l)?(a[l](),r()):i.call(a[0],n,r)}return!1===a?this.each(c).each(u):this.queue(r,c).queue(r,u)},show:function(e){return function(i){if(n(i))return e.apply(this,arguments);var s=t.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}}(e.fn.show),hide:function(e){return function(i){if(n(i))return e.apply(this,arguments);var s=t.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}}(e.fn.hide),toggle:function(e){return function(i){if(n(i)||"boolean"==typeof i)return e.apply(this,arguments);var s=t.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}}(e.fn.toggle),cssUnit:function(t){var n=this.css(t),i=[];return e.each(["em","px","%","pt"],(function(e,t){n.indexOf(t)>0&&(i=[parseFloat(n),t])})),i},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):i(this.css("clip"),this)},transfer:function(t,n){var i=e(this),s=e(t.to),a="fixed"===s.css("position"),r=e("body"),o=a?r.scrollTop():0,l=a?r.scrollLeft():0,d=s.offset(),c={top:d.top-o,left:d.left-l,height:s.innerHeight(),width:s.innerWidth()},u=i.offset(),h=e("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(t.className).css({top:u.top-o,left:u.left-l,height:i.innerHeight(),width:i.innerWidth(),position:a?"fixed":"absolute"}).animate(c,t.duration,t.easing,(function(){h.remove(),e.isFunction(n)&&n()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=i(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),v={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,t){v[t]=function(t){return Math.pow(t,e+2)}})),e.extend(v,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,n=4;e<((t=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(v,(function(t,n){e.easing["easeIn"+t]=n,e.easing["easeOut"+t]=function(e){return 1-n(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?n(2*e)/2:1-n(-2*e+2)/2}})),e.effects,e.effects.define("blind","hide",(function(t,n){var i={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=e(this),a=t.direction||"up",r=s.cssClip(),o={clip:e.extend({},r)},l=e.effects.createPlaceholder(s);o.clip[i[a][0]]=o.clip[i[a][1]],"show"===t.mode&&(s.cssClip(o.clip),l&&l.css(e.effects.clipToBox(o)),o.clip=r),l&&l.animate(e.effects.clipToBox(o),t.duration,t.easing),s.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),e.effects.define("bounce",(function(t,n){var i,s,a,r=e(this),o=t.mode,l="hide"===o,d="show"===o,c=t.direction||"up",u=t.distance,h=t.times||5,p=2*h+(d||l?1:0),m=t.duration/p,f=t.easing,_="up"===c||"down"===c?"top":"left",g="up"===c||"left"===c,v=0,y=r.queue().length;for(e.effects.createPlaceholder(r),a=r.css(_),u||(u=r["top"===_?"outerHeight":"outerWidth"]()/3),d&&((s={opacity:1})[_]=a,r.css("opacity",0).css(_,g?2*-u:2*u).animate(s,m,f)),l&&(u/=Math.pow(2,h-1)),(s={})[_]=a;v<h;v++)(i={})[_]=(g?"-=":"+=")+u,r.animate(i,m,f).animate(s,m,f),u=l?2*u:u/2;l&&((i={opacity:0})[_]=(g?"-=":"+=")+u,r.animate(i,m,f)),r.queue(n),e.effects.unshift(r,y,p+1)})),e.effects.define("clip","hide",(function(t,n){var i,s={},a=e(this),r=t.direction||"vertical",o="both"===r,l=o||"horizontal"===r,d=o||"vertical"===r;i=a.cssClip(),s.clip={top:d?(i.bottom-i.top)/2:i.top,right:l?(i.right-i.left)/2:i.right,bottom:d?(i.bottom-i.top)/2:i.bottom,left:l?(i.right-i.left)/2:i.left},e.effects.createPlaceholder(a),"show"===t.mode&&(a.cssClip(s.clip),s.clip=i),a.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),e.effects.define("drop","hide",(function(t,n){var i,s=e(this),a="show"===t.mode,r=t.direction||"left",o="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",d="+="===l?"-=":"+=",c={opacity:0};e.effects.createPlaceholder(s),i=t.distance||s["top"===o?"outerHeight":"outerWidth"](!0)/2,c[o]=l+i,a&&(s.css(c),c[o]=d+i,c.opacity=1),s.animate(c,{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),e.effects.define("explode","hide",(function(t,n){var i,s,a,r,o,l,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,u=e(this),h="show"===t.mode,p=u.show().css("visibility","hidden").offset(),m=Math.ceil(u.outerWidth()/c),f=Math.ceil(u.outerHeight()/d),_=[];function g(){_.push(this),_.length===d*c&&(u.css({visibility:"visible"}),e(_).remove(),n())}for(i=0;i<d;i++)for(r=p.top+i*f,l=i-(d-1)/2,s=0;s<c;s++)a=p.left+s*m,o=s-(c-1)/2,u.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*m,top:-i*f}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m,height:f,left:a+(h?o*m:0),top:r+(h?l*f:0),opacity:h?0:1}).animate({left:a+(h?0:o*m),top:r+(h?0:l*f),opacity:h?1:0},t.duration||500,t.easing,g)})),e.effects.define("fade","toggle",(function(t,n){var i="show"===t.mode;e(this).css("opacity",i?0:1).animate({opacity:i?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),e.effects.define("fold","hide",(function(t,n){var i=e(this),s=t.mode,a="show"===s,r="hide"===s,o=t.size||15,l=/([0-9]+)%/.exec(o),d=t.horizFirst?["right","bottom"]:["bottom","right"],c=t.duration/2,u=e.effects.createPlaceholder(i),h=i.cssClip(),p={clip:e.extend({},h)},m={clip:e.extend({},h)},f=[h[d[0]],h[d[1]]],_=i.queue().length;l&&(o=parseInt(l[1],10)/100*f[r?0:1]),p.clip[d[0]]=o,m.clip[d[0]]=o,m.clip[d[1]]=0,a&&(i.cssClip(m.clip),u&&u.css(e.effects.clipToBox(m)),m.clip=h),i.queue((function(n){u&&u.animate(e.effects.clipToBox(p),c,t.easing).animate(e.effects.clipToBox(m),c,t.easing),n()})).animate(p,c,t.easing).animate(m,c,t.easing).queue(n),e.effects.unshift(i,_,4)})),e.effects.define("highlight","show",(function(t,n){var i=e(this),s={backgroundColor:i.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),e.effects.saveStyle(i),i.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),e.effects.define("size",(function(t,n){var i,s,a,r=e(this),o=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=t.mode,u="effect"!==c,h=t.scale||"both",p=t.origin||["middle","center"],m=r.css("position"),f=r.position(),_=e.effects.scaledDimensions(r),g=t.from||_,v=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===c&&(a=g,g=v,v=a),s={from:{y:g.height/_.height,x:g.width/_.width},to:{y:v.height/_.height,x:v.width/_.width}},"box"!==h&&"both"!==h||(s.from.y!==s.to.y&&(g=e.effects.setTransition(r,l,s.from.y,g),v=e.effects.setTransition(r,l,s.to.y,v)),s.from.x!==s.to.x&&(g=e.effects.setTransition(r,d,s.from.x,g),v=e.effects.setTransition(r,d,s.to.x,v))),"content"!==h&&"both"!==h||s.from.y!==s.to.y&&(g=e.effects.setTransition(r,o,s.from.y,g),v=e.effects.setTransition(r,o,s.to.y,v)),p&&(i=e.effects.getBaseline(p,_),g.top=(_.outerHeight-g.outerHeight)*i.y+f.top,g.left=(_.outerWidth-g.outerWidth)*i.x+f.left,v.top=(_.outerHeight-v.outerHeight)*i.y+f.top,v.left=(_.outerWidth-v.outerWidth)*i.x+f.left),r.css(g),"content"!==h&&"both"!==h||(l=l.concat(["marginTop","marginBottom"]).concat(o),d=d.concat(["marginLeft","marginRight"]),r.find("*[width]").each((function(){var n=e(this),i=e.effects.scaledDimensions(n),a={height:i.height*s.from.y,width:i.width*s.from.x,outerHeight:i.outerHeight*s.from.y,outerWidth:i.outerWidth*s.from.x},r={height:i.height*s.to.y,width:i.width*s.to.x,outerHeight:i.height*s.to.y,outerWidth:i.width*s.to.x};s.from.y!==s.to.y&&(a=e.effects.setTransition(n,l,s.from.y,a),r=e.effects.setTransition(n,l,s.to.y,r)),s.from.x!==s.to.x&&(a=e.effects.setTransition(n,d,s.from.x,a),r=e.effects.setTransition(n,d,s.to.x,r)),u&&e.effects.saveStyle(n),n.css(a),n.animate(r,t.duration,t.easing,(function(){u&&e.effects.restoreStyle(n)}))}))),r.animate(v,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===v.opacity&&r.css("opacity",g.opacity),u||(r.css("position","static"===m?"relative":m).offset(t),e.effects.saveStyle(r)),n()}})})),e.effects.define("scale",(function(t,n){var i=e(this),s=t.mode,a=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(i),to:e.effects.scaledDimensions(i,a,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,n)})),e.effects.define("puff","hide",(function(t,n){var i=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,i,n)})),e.effects.define("pulsate","show",(function(t,n){var i=e(this),s=t.mode,a="show"===s,r=a||"hide"===s,o=2*(t.times||5)+(r?1:0),l=t.duration/o,d=0,c=1,u=i.queue().length;for(!a&&i.is(":visible")||(i.css("opacity",0).show(),d=1);c<o;c++)i.animate({opacity:d},l,t.easing),d=1-d;i.animate({opacity:d},l,t.easing),i.queue(n),e.effects.unshift(i,u,o+1)})),e.effects.define("shake",(function(t,n){var i=1,s=e(this),a=t.direction||"left",r=t.distance||20,o=t.times||3,l=2*o+1,d=Math.round(t.duration/l),c="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,h={},p={},m={},f=s.queue().length;for(e.effects.createPlaceholder(s),h[c]=(u?"-=":"+=")+r,p[c]=(u?"+=":"-=")+2*r,m[c]=(u?"-=":"+=")+2*r,s.animate(h,d,t.easing);i<o;i++)s.animate(p,d,t.easing).animate(m,d,t.easing);s.animate(p,d,t.easing).animate(h,d/2,t.easing).queue(n),e.effects.unshift(s,f,l+1)})),e.effects.define("slide","show",(function(t,n){var i,s,a=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},o=t.mode,l=t.direction||"left",d="up"===l||"down"===l?"top":"left",c="up"===l||"left"===l,u=t.distance||a["top"===d?"outerHeight":"outerWidth"](!0),h={};e.effects.createPlaceholder(a),i=a.cssClip(),s=a.position()[d],h[d]=(c?-1:1)*u+s,h.clip=a.cssClip(),h.clip[r[l][1]]=h.clip[r[l][0]],"show"===o&&(a.cssClip(h.clip),a.css(d,h[d]),h.clip=i,h[d]=s),a.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:n})})),!1!==e.uiBackCompat&&e.effects.define("transfer",(function(t,n){e(this).transfer(t,n)}))})?i.apply(t,s):i)||(e.exports=a)},function(e,t,n){
/*! version : 4.17.37
=========================================================
bootstrap-datetimejs
https://github.com/Eonasdan/bootstrap-datetimepicker
Copyright (c) 2015 Jonathan Peterson
=========================================================
*/
e.exports=function(e){"use strict";var t=n(1),i=function(n,i){var s,a,r,o,l,d,c,u,h,p={},m=!0,f=!1,_=!1,g=0,v=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],y=["days","months","years","decades"],b=["top","bottom","auto"],w=["left","right","auto"],M=["default","top","bottom"],k={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},L={},T=function(e){var n,s,a,r,o=!1;return void 0!==t.tz&&void 0!==i.timeZone&&null!==i.timeZone&&""!==i.timeZone&&(o=!0),null==e?n=o?t().tz(i.timeZone).startOf("d"):t().startOf("d"):o?(s=t().tz(i.timeZone).utcOffset(),t(e,d,i.useStrict).utcOffset()!==s?(a=t().tz(i.timeZone).format("Z"),r=t(e,d,i.useStrict).format("YYYY-MM-DD[T]HH:mm:ss")+a,n=t(r,d,i.useStrict).tz(i.timeZone)):n=t(e,d,i.useStrict).tz(i.timeZone)):n=t(e,d,i.useStrict),n},S=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==l.indexOf("Y");case"M":return-1!==l.indexOf("M");case"d":return-1!==l.toLowerCase().indexOf("d");case"h":case"H":return-1!==l.toLowerCase().indexOf("h");case"m":return-1!==l.indexOf("m");case"s":return-1!==l.indexOf("s");default:return!1}},D=function(){return S("h")||S("m")||S("s")},Y=function(){return S("y")||S("M")||S("d")},x=function(){var t,n,s,a,r,l,d,c,u,h,p=e("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),m=e("<div>").addClass("datepicker").append((u=e("<thead>").append(e("<tr>").append(e("<th>").addClass("prev").attr("data-action","previous").append(e("<span>").addClass(i.icons.previous))).append(e("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(e("<th>").addClass("next").attr("data-action","next").append(e("<span>").addClass(i.icons.next)))),h=e("<tbody>").append(e("<tr>").append(e("<td>").attr("colspan",i.calendarWeeks?"8":"7"))),[e("<div>").addClass("datepicker-days").append(e("<table>").addClass("table-condensed").append(u).append(e("<tbody>"))),e("<div>").addClass("datepicker-months").append(e("<table>").addClass("table-condensed").append(u.clone()).append(h.clone())),e("<div>").addClass("datepicker-years").append(e("<table>").addClass("table-condensed").append(u.clone()).append(h.clone())),e("<div>").addClass("datepicker-decades").append(e("<table>").addClass("table-condensed").append(u.clone()).append(h.clone()))])),f=e("<div>").addClass("timepicker").append((r=e("<div>").addClass("timepicker-hours").append(e("<table>").addClass("table-condensed")),l=e("<div>").addClass("timepicker-minutes").append(e("<table>").addClass("table-condensed")),d=e("<div>").addClass("timepicker-seconds").append(e("<table>").addClass("table-condensed")),c=[(n=e("<tr>"),s=e("<tr>"),a=e("<tr>"),S("h")&&(n.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(e("<span>").addClass(i.icons.up)))),s.append(e("<td>").append(e("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:i.tooltips.pickHour}).attr("data-action","showHours"))),a.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(e("<span>").addClass(i.icons.down))))),S("m")&&(S("h")&&(n.append(e("<td>").addClass("separator")),s.append(e("<td>").addClass("separator").html(":")),a.append(e("<td>").addClass("separator"))),n.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(e("<span>").addClass(i.icons.up)))),s.append(e("<td>").append(e("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:i.tooltips.pickMinute}).attr("data-action","showMinutes"))),a.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(e("<span>").addClass(i.icons.down))))),S("s")&&(S("m")&&(n.append(e("<td>").addClass("separator")),s.append(e("<td>").addClass("separator").html(":")),a.append(e("<td>").addClass("separator"))),n.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(e("<span>").addClass(i.icons.up)))),s.append(e("<td>").append(e("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:i.tooltips.pickSecond}).attr("data-action","showSeconds"))),a.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(e("<span>").addClass(i.icons.down))))),o||(n.append(e("<td>").addClass("separator")),s.append(e("<td>").append(e("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:i.tooltips.togglePeriod}))),a.append(e("<td>").addClass("separator"))),e("<div>").addClass("timepicker-picker").append(e("<table>").addClass("table-condensed").append([n,s,a])))],S("h")&&c.push(r),S("m")&&c.push(l),S("s")&&c.push(d),c)),_=e("<ul>").addClass("list-unstyled"),g=e("<li>").addClass("picker-switch"+(i.collapse?" accordion-toggle":"")).append((t=[],i.showTodayButton&&t.push(e("<td>").append(e("<a>").attr({"data-action":"today",title:i.tooltips.today}).append(e("<span>").addClass(i.icons.today)))),!i.sideBySide&&Y()&&D()&&t.push(e("<td>").append(e("<a>").attr({"data-action":"togglePicker",title:i.tooltips.selectTime}).append(e("<span>").addClass(i.icons.time)))),i.showClear&&t.push(e("<td>").append(e("<a>").attr({"data-action":"clear",title:i.tooltips.clear}).append(e("<span>").addClass(i.icons.clear)))),i.showClose&&t.push(e("<td>").append(e("<a>").attr({"data-action":"close",title:i.tooltips.close}).append(e("<span>").addClass(i.icons.close)))),e("<table>").addClass("table-condensed").append(e("<tbody>").append(e("<tr>").append(t)))));return i.inline&&p.removeClass("dropdown-menu"),o&&p.addClass("usetwentyfour"),S("s")&&!o&&p.addClass("wider"),i.sideBySide&&Y()&&D()?(p.addClass("timepicker-sbs"),"top"===i.toolbarPlacement&&p.append(g),p.append(e("<div>").addClass("row").append(m.addClass("col-md-6")).append(f.addClass("col-md-6"))),"bottom"===i.toolbarPlacement&&p.append(g),p):("top"===i.toolbarPlacement&&_.append(g),Y()&&_.append(e("<li>").addClass(i.collapse&&D()?"collapse in":"").append(m)),"default"===i.toolbarPlacement&&_.append(g),D()&&_.append(e("<li>").addClass(i.collapse&&Y()?"collapse":"").append(f)),"bottom"===i.toolbarPlacement&&_.append(g),p.append(_))},P=function(){var t,s=(f||n).position(),a=(f||n).offset(),r=i.widgetPositioning.vertical,o=i.widgetPositioning.horizontal;if(i.widgetParent)t=i.widgetParent.append(_);else if(n.is("input"))t=n.after(_).parent();else{if(i.inline)return void(t=n.append(_));t=n,n.children().first().after(_)}if("auto"===r&&(r=a.top+1.5*_.height()>=e(window).height()+e(window).scrollTop()&&_.height()+n.outerHeight()<a.top?"top":"bottom"),"auto"===o&&(o=t.width()<a.left+_.outerWidth()/2&&a.left+_.outerWidth()>e(window).width()?"right":"left"),"top"===r?_.addClass("top").removeClass("bottom"):_.addClass("bottom").removeClass("top"),"right"===o?_.addClass("pull-right"):_.removeClass("pull-right"),"relative"!==t.css("position")&&(t=t.parents().filter((function(){return"relative"===e(this).css("position")})).first()),0===t.length)throw new Error("datetimepicker component should be placed within a relative positioned container");_.css({top:"top"===r?"auto":s.top+n.outerHeight(),bottom:"top"===r?s.top+n.outerHeight():"auto",left:"left"===o?t===n?0:s.left:"auto",right:"left"===o?"auto":t.outerWidth()-n.outerWidth()-(t===n?0:s.left)})},C=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||n.trigger(e)},j=function(e){"y"===e&&(e="YYYY"),C({type:"dp.update",change:e,viewDate:a.clone()})},N=function(e){_&&(e&&(c=Math.max(g,Math.min(3,c+e))),_.find(".datepicker > div").hide().filter(".datepicker-"+v[c].clsName).show())},E=function(t,n){if(!t.isValid())return!1;if(i.disabledDates&&"d"===n&&(s=t,!0===i.disabledDates[s.format("YYYY-MM-DD")]))return!1;var s;if(i.enabledDates&&"d"===n&&!function(e){return!0===i.enabledDates[e.format("YYYY-MM-DD")]}(t))return!1;if(i.minDate&&t.isBefore(i.minDate,n))return!1;if(i.maxDate&&t.isAfter(i.maxDate,n))return!1;if(i.daysOfWeekDisabled&&"d"===n&&-1!==i.daysOfWeekDisabled.indexOf(t.day()))return!1;if(i.disabledHours&&("h"===n||"m"===n||"s"===n)&&function(e){return!0===i.disabledHours[e.format("H")]}(t))return!1;if(i.enabledHours&&("h"===n||"m"===n||"s"===n)&&!function(e){return!0===i.enabledHours[e.format("H")]}(t))return!1;if(i.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var a=!1;if(e.each(i.disabledTimeIntervals,(function(){if(t.isBetween(this[0],this[1]))return a=!0,!1})),a)return!1}return!0},H=function(){var n,r,o,l,d=_.find(".datepicker-days"),c=d.find("th"),u=[];if(Y()){for(c.eq(0).find("span").attr("title",i.tooltips.prevMonth),c.eq(1).attr("title",i.tooltips.selectMonth),c.eq(2).find("span").attr("title",i.tooltips.nextMonth),d.find(".disabled").removeClass("disabled"),c.eq(1).text(a.format(i.dayViewHeaderFormat)),E(a.clone().subtract(1,"M"),"M")||c.eq(0).addClass("disabled"),E(a.clone().add(1,"M"),"M")||c.eq(2).addClass("disabled"),n=a.clone().startOf("M").startOf("w").startOf("d"),l=0;l<42;l++)0===n.weekday()&&(r=e("<tr>"),i.calendarWeeks&&r.append('<td class="cw">'+n.week()+"</td>"),u.push(r)),o="",n.isBefore(a,"M")&&(o+=" old"),n.isAfter(a,"M")&&(o+=" new"),n.isSame(s,"d")&&!m&&(o+=" active"),E(n,"d")||(o+=" disabled"),n.isSame(T(),"d")&&(o+=" today"),0!==n.day()&&6!==n.day()||(o+=" weekend"),r.append('<td data-action="selectDay" data-day="'+n.format("L")+'" class="day'+o+'">'+n.date()+"</td>"),n.add(1,"d");var h,p,f;d.find("tbody").empty().append(u),h=_.find(".datepicker-months"),p=h.find("th"),f=h.find("tbody").find("span"),p.eq(0).find("span").attr("title",i.tooltips.prevYear),p.eq(1).attr("title",i.tooltips.selectYear),p.eq(2).find("span").attr("title",i.tooltips.nextYear),h.find(".disabled").removeClass("disabled"),E(a.clone().subtract(1,"y"),"y")||p.eq(0).addClass("disabled"),p.eq(1).text(a.year()),E(a.clone().add(1,"y"),"y")||p.eq(2).addClass("disabled"),f.removeClass("active"),s.isSame(a,"y")&&!m&&f.eq(s.month()).addClass("active"),f.each((function(t){E(a.clone().month(t),"M")||e(this).addClass("disabled")})),function(){var e=_.find(".datepicker-years"),t=e.find("th"),n=a.clone().subtract(5,"y"),r=a.clone().add(6,"y"),o="";for(t.eq(0).find("span").attr("title",i.tooltips.prevDecade),t.eq(1).attr("title",i.tooltips.selectDecade),t.eq(2).find("span").attr("title",i.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),i.minDate&&i.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+r.year()),i.maxDate&&i.maxDate.isBefore(r,"y")&&t.eq(2).addClass("disabled");!n.isAfter(r,"y");)o+='<span data-action="selectYear" class="year'+(n.isSame(s,"y")&&!m?" active":"")+(E(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");e.find("td").html(o)}(),function(){var e=_.find(".datepicker-decades"),n=e.find("th"),r=t({y:a.year()-a.year()%100-1}),o=r.clone().add(100,"y"),l=r.clone(),d="";for(n.eq(0).find("span").attr("title",i.tooltips.prevCentury),n.eq(2).find("span").attr("title",i.tooltips.nextCentury),e.find(".disabled").removeClass("disabled"),(r.isSame(t({y:1900}))||i.minDate&&i.minDate.isAfter(r,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(r.year()+"-"+o.year()),(r.isSame(t({y:2e3}))||i.maxDate&&i.maxDate.isBefore(o,"y"))&&n.eq(2).addClass("disabled");!r.isAfter(o,"y");)d+='<span data-action="selectDecade" class="decade'+(r.isSame(s,"y")?" active":"")+(E(r,"y")?"":" disabled")+'" data-selection="'+(r.year()+6)+'">'+(r.year()+1)+" - "+(r.year()+12)+"</span>",r.add(12,"y");d+="<span></span><span></span><span></span>",e.find("td").html(d),n.eq(1).text(l.year()+1+"-"+r.year())}()}},I=function(){var t,n,r=_.find(".timepicker span[data-time-component]");o||(t=_.find(".timepicker [data-action=togglePeriod]"),n=s.clone().add(s.hours()>=12?-12:12,"h"),t.text(s.format("A")),E(n,"h")?t.removeClass("disabled"):t.addClass("disabled")),r.filter("[data-time-component=hours]").text(s.format(o?"HH":"hh")),r.filter("[data-time-component=minutes]").text(s.format("mm")),r.filter("[data-time-component=seconds]").text(s.format("ss")),function(){var t=_.find(".timepicker-hours table"),n=a.clone().startOf("d"),i=[],s=e("<tr>");for(a.hour()>11&&!o&&n.hour(12);n.isSame(a,"d")&&(o||a.hour()<12&&n.hour()<12||a.hour()>11);)n.hour()%4==0&&(s=e("<tr>"),i.push(s)),s.append('<td data-action="selectHour" class="hour'+(E(n,"h")?"":" disabled")+'">'+n.format(o?"HH":"hh")+"</td>"),n.add(1,"h");t.empty().append(i)}(),function(){for(var t=_.find(".timepicker-minutes table"),n=a.clone().startOf("h"),s=[],r=e("<tr>"),o=1===i.stepping?5:i.stepping;a.isSame(n,"h");)n.minute()%(4*o)==0&&(r=e("<tr>"),s.push(r)),r.append('<td data-action="selectMinute" class="minute'+(E(n,"m")?"":" disabled")+'">'+n.format("mm")+"</td>"),n.add(o,"m");t.empty().append(s)}(),function(){for(var t=_.find(".timepicker-seconds table"),n=a.clone().startOf("m"),i=[],s=e("<tr>");a.isSame(n,"m");)n.second()%20==0&&(s=e("<tr>"),i.push(s)),s.append('<td data-action="selectSecond" class="second'+(E(n,"s")?"":" disabled")+'">'+n.format("ss")+"</td>"),n.add(5,"s");t.empty().append(i)}()},A=function(){_&&(H(),I())},O=function(e){var t=m?null:s;if(!e)return m=!0,r.val(""),n.data("date",""),C({type:"dp.change",date:!1,oldDate:t}),void A();e=e.clone().locale(i.locale),1!==i.stepping&&e.minutes(Math.round(e.minutes()/i.stepping)*i.stepping%60).seconds(0),E(e)?(a=(s=e).clone(),r.val(s.format(l)),n.data("date",s.format(l)),m=!1,A(),C({type:"dp.change",date:s.clone(),oldDate:t})):(i.keepInvalid||r.val(m?"":s.format(l)),C({type:"dp.error",date:e}))},W=function(){var t=!1;return _?(_.find(".collapse").each((function(){var n=e(this).data("collapse");return!n||!n.transitioning||(t=!0,!1)})),t||(f&&f.hasClass("btn")&&f.toggleClass("active"),_.hide(),e(window).off("resize",P),_.off("click","[data-action]"),_.off("mousedown",!1),_.remove(),_=!1,C({type:"dp.hide",date:s.clone()}),r.blur()),p):p},F=function(){O(null)},z={next:function(){var e=v[c].navFnc;a.add(v[c].navStep,e),H(),j(e)},previous:function(){var e=v[c].navFnc;a.subtract(v[c].navStep,e),H(),j(e)},pickerSwitch:function(){N(1)},selectMonth:function(t){var n=e(t.target).closest("tbody").find("span").index(e(t.target));a.month(n),c===g?(O(s.clone().year(a.year()).month(a.month())),i.inline||W()):(N(-1),H()),j("M")},selectYear:function(t){var n=parseInt(e(t.target).text(),10)||0;a.year(n),c===g?(O(s.clone().year(a.year())),i.inline||W()):(N(-1),H()),j("YYYY")},selectDecade:function(t){var n=parseInt(e(t.target).data("selection"),10)||0;a.year(n),c===g?(O(s.clone().year(a.year())),i.inline||W()):(N(-1),H()),j("YYYY")},selectDay:function(t){var n=a.clone();e(t.target).is(".old")&&n.subtract(1,"M"),e(t.target).is(".new")&&n.add(1,"M"),O(n.date(parseInt(e(t.target).text(),10))),D()||i.keepOpen||i.inline||W()},incrementHours:function(){var e=s.clone().add(1,"h");E(e,"h")&&O(e)},incrementMinutes:function(){var e=s.clone().add(i.stepping,"m");E(e,"m")&&O(e)},incrementSeconds:function(){var e=s.clone().add(1,"s");E(e,"s")&&O(e)},decrementHours:function(){var e=s.clone().subtract(1,"h");E(e,"h")&&O(e)},decrementMinutes:function(){var e=s.clone().subtract(i.stepping,"m");E(e,"m")&&O(e)},decrementSeconds:function(){var e=s.clone().subtract(1,"s");E(e,"s")&&O(e)},togglePeriod:function(){O(s.clone().add(s.hours()>=12?-12:12,"h"))},togglePicker:function(t){var n,s=e(t.target),a=s.closest("ul"),r=a.find(".in"),o=a.find(".collapse:not(.in)");if(r&&r.length){if((n=r.data("collapse"))&&n.transitioning)return;r.collapse?(r.collapse("hide"),o.collapse("show")):(r.removeClass("in"),o.addClass("in")),s.is("span")?s.toggleClass(i.icons.time+" "+i.icons.date):s.find("span").toggleClass(i.icons.time+" "+i.icons.date)}},showPicker:function(){_.find(".timepicker > div:not(.timepicker-picker)").hide(),_.find(".timepicker .timepicker-picker").show()},showHours:function(){_.find(".timepicker .timepicker-picker").hide(),_.find(".timepicker .timepicker-hours").show()},showMinutes:function(){_.find(".timepicker .timepicker-picker").hide(),_.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){_.find(".timepicker .timepicker-picker").hide(),_.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var n=parseInt(e(t.target).text(),10);o||(s.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),O(s.clone().hours(n)),z.showPicker.call(p)},selectMinute:function(t){O(s.clone().minutes(parseInt(e(t.target).text(),10))),z.showPicker.call(p)},selectSecond:function(t){O(s.clone().seconds(parseInt(e(t.target).text(),10))),z.showPicker.call(p)},clear:F,today:function(){var e=T();E(e,"d")&&O(e)},close:W},R=function(t){return e(t.currentTarget).is(".disabled")||z[e(t.currentTarget).data("action")].apply(p,arguments),!1},B=function(){var t;return r.prop("disabled")||!i.ignoreReadonly&&r.prop("readonly")||_||(void 0!==r.val()&&0!==r.val().trim().length?O(q(r.val().trim())):i.useCurrent&&m&&(r.is("input")&&0===r.val().trim().length||i.inline)&&(t=T(),"string"==typeof i.useCurrent&&(t={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}}[i.useCurrent](t)),O(t)),_=x(),function(){var t=e("<tr>"),n=a.clone().startOf("w").startOf("d");for(!0===i.calendarWeeks&&t.append(e("<th>").addClass("cw").text("#"));n.isBefore(a.clone().endOf("w"));)t.append(e("<th>").addClass("dow").text(n.format("dd"))),n.add(1,"d");_.find(".datepicker-days thead").append(t)}(),function(){for(var t=[],n=a.clone().startOf("y").startOf("d");n.isSame(a,"y");)t.push(e("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");_.find(".datepicker-months td").empty().append(t)}(),_.find(".timepicker-hours").hide(),_.find(".timepicker-minutes").hide(),_.find(".timepicker-seconds").hide(),A(),N(),e(window).on("resize",P),_.on("click","[data-action]",R),_.on("mousedown",!1),f&&f.hasClass("btn")&&f.toggleClass("active"),_.show(),P(),i.focusOnShow&&!r.is(":focus")&&r.focus(),C({type:"dp.show"})),p},V=function(){return _?W():B()},q=function(e){return(e=void 0===i.parseInputDate?t.isMoment(e)||e instanceof Date?t(e):T(e):i.parseInputDate(e)).locale(i.locale),e},U=function(e){var t,n,s,a,r=null,o=[],l={},d=e.which;for(t in L[d]="p",L)L.hasOwnProperty(t)&&"p"===L[t]&&(o.push(t),parseInt(t,10)!==d&&(l[t]=!0));for(t in i.keyBinds)if(i.keyBinds.hasOwnProperty(t)&&"function"==typeof i.keyBinds[t]&&(s=t.split(" ")).length===o.length&&k[d]===s[s.length-1]){for(a=!0,n=s.length-2;n>=0;n--)if(!(k[s[n]]in l)){a=!1;break}if(a){r=i.keyBinds[t];break}}r&&(r.call(p,_),e.stopPropagation(),e.preventDefault())},G=function(e){L[e.which]="r",e.stopPropagation(),e.preventDefault()},$=function(t){var n=e(t.target).val().trim(),i=n?q(n):null;return O(i),t.stopImmediatePropagation(),!1},J=function(t){var n={};return e.each(t,(function(){var e=q(this);e.isValid()&&(n[e.format("YYYY-MM-DD")]=!0)})),!!Object.keys(n).length&&n},K=function(t){var n={};return e.each(t,(function(){n[this]=!0})),!!Object.keys(n).length&&n},X=function(){var e=i.format||"L LT";l=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,(function(e){return(s.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,(function(e){return s.localeData().longDateFormat(e)||e}))})),(d=i.extraFormats?i.extraFormats.slice():[]).indexOf(e)<0&&d.indexOf(l)<0&&d.push(l),o=l.toLowerCase().indexOf("a")<1&&l.replace(/\[.*?\]/g,"").indexOf("h")<1,S("y")&&(g=2),S("M")&&(g=1),S("d")&&(g=0),c=Math.max(g,c),m||O(s)};if(p.destroy=function(){W(),r.off({change:$,blur:blur,keydown:U,keyup:G,focus:i.allowInputToggle?W:""}),n.is("input")?r.off({focus:B}):f&&(f.off("click",V),f.off("mousedown",!1)),n.removeData("DateTimePicker"),n.removeData("date")},p.toggle=V,p.show=B,p.hide=W,p.disable=function(){return W(),f&&f.hasClass("btn")&&f.addClass("disabled"),r.prop("disabled",!0),p},p.enable=function(){return f&&f.hasClass("btn")&&f.removeClass("disabled"),r.prop("disabled",!1),p},p.ignoreReadonly=function(e){if(0===arguments.length)return i.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return i.ignoreReadonly=e,p},p.options=function(t){if(0===arguments.length)return e.extend(!0,{},i);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return e.extend(!0,i,t),e.each(i,(function(e,t){if(void 0===p[e])throw new TypeError("option "+e+" is not recognized!");p[e](t)})),p},p.date=function(e){if(0===arguments.length)return m?null:s.clone();if(!(null===e||"string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return O(null===e?null:q(e)),p},p.format=function(e){if(0===arguments.length)return i.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a sting or boolean:false parameter "+e);return i.format=e,l&&X(),p},p.timeZone=function(e){return 0===arguments.length?i.timeZone:(i.timeZone=e,p)},p.dayViewHeaderFormat=function(e){if(0===arguments.length)return i.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return i.dayViewHeaderFormat=e,p},p.extraFormats=function(e){if(0===arguments.length)return i.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return i.extraFormats=e,d&&X(),p},p.disabledDates=function(t){if(0===arguments.length)return i.disabledDates?e.extend({},i.disabledDates):i.disabledDates;if(!t)return i.disabledDates=!1,A(),p;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return i.disabledDates=J(t),i.enabledDates=!1,A(),p},p.enabledDates=function(t){if(0===arguments.length)return i.enabledDates?e.extend({},i.enabledDates):i.enabledDates;if(!t)return i.enabledDates=!1,A(),p;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return i.enabledDates=J(t),i.disabledDates=!1,A(),p},p.daysOfWeekDisabled=function(e){if(0===arguments.length)return i.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return i.daysOfWeekDisabled=!1,A(),p;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(i.daysOfWeekDisabled=e.reduce((function(e,t){return(t=parseInt(t,10))>6||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e}),[]).sort(),i.useCurrent&&!i.keepInvalid){for(var t=0;!E(s,"d");){if(s.add(1,"d"),7===t)throw"Tried 7 times to find a valid date";t++}O(s)}return A(),p},p.maxDate=function(e){if(0===arguments.length)return i.maxDate?i.maxDate.clone():i.maxDate;if("boolean"==typeof e&&!1===e)return i.maxDate=!1,A(),p;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=T()));var t=q(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(i.minDate&&t.isBefore(i.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(l));return i.maxDate=t,i.useCurrent&&!i.keepInvalid&&s.isAfter(e)&&O(i.maxDate),a.isAfter(t)&&(a=t.clone().subtract(i.stepping,"m")),A(),p},p.minDate=function(e){if(0===arguments.length)return i.minDate?i.minDate.clone():i.minDate;if("boolean"==typeof e&&!1===e)return i.minDate=!1,A(),p;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=T()));var t=q(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(i.maxDate&&t.isAfter(i.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(l));return i.minDate=t,i.useCurrent&&!i.keepInvalid&&s.isBefore(e)&&O(i.minDate),a.isBefore(t)&&(a=t.clone().add(i.stepping,"m")),A(),p},p.defaultDate=function(e){if(0===arguments.length)return i.defaultDate?i.defaultDate.clone():i.defaultDate;if(!e)return i.defaultDate=!1,p;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=T()));var t=q(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!E(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return i.defaultDate=t,(i.defaultDate&&i.inline||""===r.val().trim())&&O(i.defaultDate),p},p.locale=function(e){if(0===arguments.length)return i.locale;if(!t.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return i.locale=e,s.locale(i.locale),a.locale(i.locale),l&&X(),_&&(W(),B()),p},p.stepping=function(e){return 0===arguments.length?i.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),i.stepping=e,p)},p.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return i.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return i.useCurrent=e,p},p.collapse=function(e){if(0===arguments.length)return i.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return i.collapse===e||(i.collapse=e,_&&(W(),B())),p},p.icons=function(t){if(0===arguments.length)return e.extend({},i.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return e.extend(i.icons,t),_&&(W(),B()),p},p.tooltips=function(t){if(0===arguments.length)return e.extend({},i.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return e.extend(i.tooltips,t),_&&(W(),B()),p},p.useStrict=function(e){if(0===arguments.length)return i.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return i.useStrict=e,p},p.sideBySide=function(e){if(0===arguments.length)return i.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return i.sideBySide=e,_&&(W(),B()),p},p.viewMode=function(e){if(0===arguments.length)return i.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===y.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+y.join(", ")+") value");return i.viewMode=e,c=Math.max(y.indexOf(e),g),N(),p},p.toolbarPlacement=function(e){if(0===arguments.length)return i.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===M.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+M.join(", ")+") value");return i.toolbarPlacement=e,_&&(W(),B()),p},p.widgetPositioning=function(t){if(0===arguments.length)return e.extend({},i.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===w.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+w.join(", ")+")");i.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===b.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+b.join(", ")+")");i.widgetPositioning.vertical=t.vertical}return A(),p},p.calendarWeeks=function(e){if(0===arguments.length)return i.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return i.calendarWeeks=e,A(),p},p.showTodayButton=function(e){if(0===arguments.length)return i.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return i.showTodayButton=e,_&&(W(),B()),p},p.showClear=function(e){if(0===arguments.length)return i.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return i.showClear=e,_&&(W(),B()),p},p.widgetParent=function(t){if(0===arguments.length)return i.widgetParent;if("string"==typeof t&&(t=e(t)),null!==t&&"string"!=typeof t&&!(t instanceof e))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return i.widgetParent=t,_&&(W(),B()),p},p.keepOpen=function(e){if(0===arguments.length)return i.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return i.keepOpen=e,p},p.focusOnShow=function(e){if(0===arguments.length)return i.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return i.focusOnShow=e,p},p.inline=function(e){if(0===arguments.length)return i.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return i.inline=e,p},p.clear=function(){return F(),p},p.keyBinds=function(e){return i.keyBinds=e,p},p.getMoment=function(e){return T(e)},p.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return i.debug=e,p},p.allowInputToggle=function(e){if(0===arguments.length)return i.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return i.allowInputToggle=e,p},p.showClose=function(e){if(0===arguments.length)return i.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return i.showClose=e,p},p.keepInvalid=function(e){if(0===arguments.length)return i.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return i.keepInvalid=e,p},p.datepickerInput=function(e){if(0===arguments.length)return i.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return i.datepickerInput=e,p},p.parseInputDate=function(e){if(0===arguments.length)return i.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return i.parseInputDate=e,p},p.disabledTimeIntervals=function(t){if(0===arguments.length)return i.disabledTimeIntervals?e.extend({},i.disabledTimeIntervals):i.disabledTimeIntervals;if(!t)return i.disabledTimeIntervals=!1,A(),p;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return i.disabledTimeIntervals=t,A(),p},p.disabledHours=function(t){if(0===arguments.length)return i.disabledHours?e.extend({},i.disabledHours):i.disabledHours;if(!t)return i.disabledHours=!1,A(),p;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(i.disabledHours=K(t),i.enabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!E(s,"h");){if(s.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}O(s)}return A(),p},p.enabledHours=function(t){if(0===arguments.length)return i.enabledHours?e.extend({},i.enabledHours):i.enabledHours;if(!t)return i.enabledHours=!1,A(),p;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(i.enabledHours=K(t),i.disabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!E(s,"h");){if(s.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}O(s)}return A(),p},p.viewDate=function(e){if(0===arguments.length)return a.clone();if(!e)return a=s.clone(),p;if(!("string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return a=q(e),j(),p},n.is("input"))r=n;else if(0===(r=n.find(i.datepickerInput)).size())r=n.find("input");else if(!r.is("input"))throw new Error('CSS class "'+i.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(f=0===n.find(".datepickerbutton").size()?n.find(".input-group-addon"):n.find(".datepickerbutton")),!i.inline&&!r.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return s=T(),a=s.clone(),e.extend(!0,i,(h={},(u=n.is("input")||i.inline?n.data():n.find("input").data()).dateOptions&&u.dateOptions instanceof Object&&(h=e.extend(!0,h,u.dateOptions)),e.each(i,(function(e){var t="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==u[t]&&(h[e]=u[t])})),h)),p.options(i),X(),r.on({change:$,blur:i.debug?"":W,keydown:U,keyup:G,focus:i.allowInputToggle?B:""}),n.is("input")?r.on({focus:B}):f&&(f.on("click",V),f.on("mousedown",!1)),r.prop("disabled")&&p.disable(),r.is("input")&&0!==r.val().trim().length?O(q(r.val().trim())):i.defaultDate&&void 0===r.attr("placeholder")&&O(i.defaultDate),i.inline&&B(),p};e.fn.datetimepicker=function(t){return this.each((function(){var n=e(this);n.data("DateTimePicker")||(t=e.extend(!0,{},e.fn.datetimepicker.defaults,t),n.data("DateTimePicker",i(n,t)))}))},e.fn.datetimepicker.defaults={timeZone:"Etc/UTC",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))}else this.show()},"control up":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var i={"./af":25,"./af.js":25,"./ar":26,"./ar-ma":27,"./ar-ma.js":27,"./ar-sa":28,"./ar-sa.js":28,"./ar.js":26,"./az":29,"./az.js":29,"./be":30,"./be.js":30,"./bg":31,"./bg.js":31,"./bn":32,"./bn.js":32,"./bo":33,"./bo.js":33,"./br":34,"./br.js":34,"./bs":35,"./bs.js":35,"./ca":36,"./ca.js":36,"./cs":37,"./cs.js":37,"./cv":38,"./cv.js":38,"./cy":39,"./cy.js":39,"./da":40,"./da.js":40,"./de":41,"./de-at":42,"./de-at.js":42,"./de.js":41,"./el":43,"./el.js":43,"./en-au":44,"./en-au.js":44,"./en-ca":45,"./en-ca.js":45,"./en-gb":46,"./en-gb.js":46,"./eo":47,"./eo.js":47,"./es":48,"./es.js":48,"./et":49,"./et.js":49,"./eu":50,"./eu.js":50,"./fa":51,"./fa.js":51,"./fi":52,"./fi.js":52,"./fo":53,"./fo.js":53,"./fr":54,"./fr-ca":55,"./fr-ca.js":55,"./fr.js":54,"./gl":56,"./gl.js":56,"./he":57,"./he.js":57,"./hi":58,"./hi.js":58,"./hr":59,"./hr.js":59,"./hu":60,"./hu.js":60,"./hy-am":61,"./hy-am.js":61,"./id":62,"./id.js":62,"./is":63,"./is.js":63,"./it":64,"./it.js":64,"./ja":65,"./ja.js":65,"./ka":66,"./ka.js":66,"./km":67,"./km.js":67,"./ko":68,"./ko.js":68,"./lb":69,"./lb.js":69,"./lt":70,"./lt.js":70,"./lv":71,"./lv.js":71,"./mk":72,"./mk.js":72,"./ml":73,"./ml.js":73,"./mr":74,"./mr.js":74,"./ms-my":75,"./ms-my.js":75,"./my":76,"./my.js":76,"./nb":77,"./nb.js":77,"./ne":78,"./ne.js":78,"./nl":79,"./nl.js":79,"./nn":80,"./nn.js":80,"./pl":81,"./pl.js":81,"./pt":82,"./pt-br":83,"./pt-br.js":83,"./pt.js":82,"./ro":84,"./ro.js":84,"./ru":85,"./ru.js":85,"./sk":86,"./sk.js":86,"./sl":87,"./sl.js":87,"./sq":88,"./sq.js":88,"./sr":89,"./sr-cyrl":90,"./sr-cyrl.js":90,"./sr.js":89,"./sv":91,"./sv.js":91,"./ta":92,"./ta.js":92,"./th":93,"./th.js":93,"./tl-ph":94,"./tl-ph.js":94,"./tr":95,"./tr.js":95,"./tzm":96,"./tzm-latn":97,"./tzm-latn.js":97,"./tzm.js":96,"./uk":98,"./uk.js":98,"./uz":99,"./uz.js":99,"./vi":100,"./vi.js":100,"./zh-cn":101,"./zh-cn.js":101,"./zh-tw":102,"./zh-tw.js":102};function s(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=a,e.exports=s,s.id=252},function(module,exports,__webpack_require__){(function($){function gkGrid(e){var t=this;"undefined"==typeof id_grid&&(id_grid=0),id_grid++,t.addClass("gk-data-grid"),t.pageable="undefined"==$.type(e.pageable)||e.pageable,t.currentPage=e.currentPage||1,t.template=e.template||null,t.events=e.events||null,t.selectable=e.selectable||!1,t.checkable=e.checkable||!1,t.footer=null,t.countChecked=0,this.defineSelected=e.defineSelected||null,$.isFunction(e.start)&&e.start();var n=function(){var n=[],i=[],s=t.find("tr");$.each(s.find("th"),(function(e,s){$(s).addClass("gk-header-datagrid");var a=$(s).attr("class").split(" ");a=void 0!==a[0]?a[0]:"";var r="undefined"!=$.type($(s).attr("class"))?$.trim(a):null,o=$(s).text();if("undefined"!=$.type($(s).data("field"))){var l="undefined"!=$.type($(s).data("template"))?$(s).data("template"):null!=t.template&&"function"==$.type(t.template[$(s).data("field")])?$(s).data("field"):null,d={field:$(s).data("field"),name:o,className:r,template:l};n.push(d),i.push(d)}else{l="undefined"!=$.type($(s).data("template"))?$(s).data("template"):null;i.push({field:"gk_"+e,name:o,className:r,template:l})}})),e.dataSource.schema.model.fields=n,e.dataSource.schema.model.columns=i},i=function(){if(t.pageable){var n={instance:null,eFirst:null,ePrev:null,eInput:null,eNext:null,eLast:null,ePageTotal:null,eItemsInfo:null,init:function(){var i=e.dataSource.schema.model.columns,s="";s+='<div class="gk-pagination form-inline">',s+='<a class="btn btn-default gk-page-first" href="javascript:{}">\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-step-backward gk-icon gk-icon-first"></i>\t\t\t\t\t\t\t\t\t\t\t</a>',s+='<a class="btn btn-default gk-page-prev" href="javascript:{}">\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-chevron-left gk-icon gk-icon-prev"></i>\t\t\t\t\t\t\t\t\t\t\t</a>',s+="<span>"+l("page")+" </span>",s+='<input class="form-control text-center gk-page-input" type="text" value="'+t.currentPage+'">',s+='<span class="gk-page-total"></span>',s+='<a class="btn btn-default gk-page-next" href="javascript:{}">\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-chevron-right gk-icon gk-icon-next"></i>\t\t\t\t\t\t\t\t\t\t\t</a>',s+='<a class="btn btn-default gk-page-last" href="javascript:{}">\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-step-forward gk-icon gk-icon-last"></i>\t\t\t\t\t\t\t\t\t\t\t</a>',s+="</div>",s+='<div class="gk-checked" '+(t.checkable?"":'style="display: none;"')+'><span>( <span class="gk-checked-count">0</span> ) '+l("selected")+"</span></div>",s+='<div class="gk-pagination-info">',s+='<span class="gk-items-info"></span>',s+="</div>";var a="";return a+="<tfoot>",a+="<tr>",a+='<td class="gk-footer" colspan="'+i.length+'">'+s+"</td>",a+="</tr>",a=$(a+="</tfoot>"),n.instance=a,t.append(a),n.setComponents(),t.footer=n,t.page},setComponents:function(){n.eFirst=t.find(".gk-page-first"),n.ePrev=t.find(".gk-page-prev"),n.eInput=t.find(".gk-page-input"),n.eNext=t.find(".gk-page-next"),n.eLast=t.find(".gk-page-last"),n.ePageTotal=t.find(".gk-page-total"),n.eItemsInfo=t.find(".gk-items-info"),n.eChecked=t.find(".gk-checked"),n.eCheckedCount=t.find(".gk-checked-count"),n.eFirst.on("click",n.first),n.ePrev.on("click",n.prev),n.eInput.on("keyup",n.input),n.eNext.on("click",n.next),n.eLast.on("click",n.last)},first:function(e){n.goToPage(1)},prev:function(e){n.setCurrentPage(--t.currentPage),n.goToPage(t.currentPage)},input:function(e){if(13==e.keyCode){var t=$(e.currentTarget).val();if(0==/^-?[\d]+$/.test(t))return!1;t=parseInt(t),n.goToPage(t)}},next:function(e){n.setCurrentPage(++t.currentPage),n.goToPage(t.currentPage)},last:function(t){n.goToPage(e.dataSource.getPageInfo().lastPage())},goToPage:function(i){n.setCurrentPage(i),e.dataSource.setView(t.currentPage)},setCurrentPage:function(e){t.currentPage=e,n.eInput.val(t.currentPage)},writePageTotal:function(){return!!t.pageable&&(n.ePageTotal.html(l("of")+" "+e.dataSource.getPageInfo().lastPage()),!0)},writeItemsInfo:function(){if(t.pageable){var i=e.dataSource.getPageInfo().countIntems(),s="<span>"+e.dataSource.getPageInfo().start()+" - "+e.dataSource.getPageInfo().end()+" "+l("of")+" "+i+" "+l("items")+" <span>";n.eItemsInfo.html(s)}},writeCheckedInfo:function(e){t.checkable?(n.eChecked.show(),t.countChecked=t.countChecked+e,t.countChecked<0&&(t.countChecked=0),n.eCheckedCount.html(t.countChecked)):n.eChecked.hide()},setCheckedInfo:function(e){t.checkable?(n.eChecked.show(),t.countChecked=e,n.eCheckedCount.html(t.countChecked)):n.eChecked.hide()}};n.init()}};return t.updateFooter=function(){null!=t.footer&&(t.footer.writePageTotal(),t.footer.writeItemsInfo())},t.addFooter=function(n,i){i=i||"append";var s=e.dataSource.schema.model.columns.length,a=n.call(this,s);return t.find("tfoot")[i](a),a},t.addHeader=function(n,i){i=i||"append";var s=n(e.dataSource.schema.model.columns.length);return t.first()[i](s),s},t.makeRow=function(t,n){var i,s;return n=n||e.dataSource.schema.model.columns.length,i=$("<tr></tr>"),s=$('<td class="gk-footer" colspan="'+n+'"></td>'),$.each(t,(function(e,t){s.append(t)})),i.html(s),i},n(),i(),e.dataSource.dataGrid=t,e.dataSource.sync().done((function(t){"function"==typeof e.done&&e.done.call(t,t)})),t}function gkButton(e){var t=$.extend(!0,{vars:{title:e.title||null,name:e.name||"",className:e.className||null,item:e.item||null,command:e.command||null,css:e.css||null,attr:e.attr||null,icon:e.icon||null},setup:function(){var e=t.fn.getSelector(),n=t.fn.getId();0==t.length&&((t=$('<a href="javascript:{}" style="display: inline-block;"></a>')).vars=this.vars,t.fn=this.fn,t.obj=this.obj),"id"==e.type?t.attr("id",e.name+n):"class"==e.type&&t.attr("class",e.name+n);t.vars.item;var i=$("<span></span>");return t.addClass("btn"),t.addClass("btn-default"),null!=t.vars.className&&t.addClass(t.vars.className),null!=t.vars.icon&&i.append(t.vars.icon),null!=t.vars.title&&i.append("<span>"+t.vars.title+"</span>"),null!=i&&t.html(i),null!=t.vars.css&&t.css(t.vars.css),null!=t.vars.attr&&t.attr(t.vars.attr),t.disable=function(){t.off(),t.addClass("gk-button-disabled"),t.removeClass("gk-button")},t.enable=function(){t.fn.addEvents(),t.addClass("gk-button"),t.removeClass("gk-button-disabled")},t.changeTitle=function(e){t.html(e)},t.fn.addEvents(),t},obj:{},fn:{addEvents:function(){var n=t.vars.item,i=$.trim(t.vars.command);t.on("click",(function(t){if(t.preventDefault(),t.stopPropagation(),("function"!=$.type(e.click)||!1!==e.click.call(this,t))&&null!=i)switch(i){case"delete":"function"===$.type(e.confirm)?e.confirm.call(this,t)&&n.destroy():n.destroy()}}))},getSelector:function(){var e=t.selector,n=!1;return/^\#/.test(e)?(n="id",e=e.slice(1,e.length)):/^\./.test(e)&&(n="class",e=e.slice(1,e.length)),{name:e,type:n}},getId:function(){return null!=t.vars.item?"_"+t.vars.item.data.id:"_"+gk.fn.uniqueId()}}},this);return t.setup()}var gk=window.gk={template:function(e,t){return this.fn.replaceCallback(e,t)},fn:{ajax:function(e){return $.ajax({url:e.url||"",type:e.type||"POST",dataType:e.dataType||"json",data:e.data||null,success:function(t){"function"==$.type(e.success)&&e.success(t,e.data)},error:function(t,n,i){i.hasOwnProperty("message")&&"string"==typeof i.message&&console.error(i.message+" when creating the dataGrid. Please check the ajax request!");var s={xhr:t,ajaxOptions:n,thrownError:i};"function"==$.type(e.error)&&e.error(s,e.data)},complete:function(t){"function"==$.type(e.complete)&&e.complete(t,e.data)}}).promise()},replaceCallback:function(e,t){return t=t||{},$.each(t,(function(t,n){e=e.replace(new RegExp("\\#=\\s?"+t+"\\s?\\#","g"),n)})),e},uniqueId:function(){return Math.random().toString(36).substr(2,9)}},data:{DataSource:function DataSource(cfg){if(!(this instanceof DataSource))return new DataSource(cfg);var readyDfd=$.Deferred(),self=this;this.selected=null,this.pageSize=cfg.pageSize||0,this.view=[],this.items=[],this.searchItems=[],this.searchActive=!1,this.itemsIndex={},this.errors=cfg.errors||{},this.trySteps=cfg.trySteps||1,this.trySetpsCount=0,this.schema=cfg.schema,this.transport=cfg.transport||{},this.ready=function(){return readyDfd.promise()},this.read=function(){return gk.fn.ajax(cfg.transport.read).promise()},this.getData=function(){return cfg.transport.data},this.setData=function(e){cfg.transport.data=e},this.addSyncStep=function(){self.trySetpsCount++},this.syncStepAvailable=function(){return self.trySetpsCount<this.trySteps},this.syncStepAvailableAdd=function(e,t){e=e||0;var n=self.syncStepAvailable();self.addSyncStep(),setTimeout((function(){n&&t()}),e)},this.create=function(e){var t=$.extend(!0,{},cfg.transport.create);return t.url=t.url,t.data=e||{},gk.fn.ajax(t).promise()},this.update=function(e){var t=$.extend(!0,{},cfg.transport.update);return t.url=t.url+"="+e.id,t.data=e||{},gk.fn.ajax(t).promise()},this.destroy=function(e){var t=$.extend(!0,{},cfg.transport.destroy);return t.url=t.url+"="+e.id,t.data=e||{},gk.fn.ajax(t).promise()},this.search=function(e,t){var n=$.extend(!0,{},cfg.transport.search);return n.url=n.url+"="+e,n.data=t||{},gk.fn.ajax(n).promise()},this.filter=function(e){var t=$.extend(!0,{},cfg.transport.filter);return t.url=t.url,t.data=e||{},gk.fn.ajax(t).promise()},this.checkAll=function(){var e=self.searchActive?self.searchItems:self.items;$.each(e,(function(e,t){t.check()}))},this.uncheckAll=function(){var e=self.searchActive?self.searchItems:self.items;$.each(e,(function(e,t){t.uncheck()}))},this.setSelected=function(e){fn.setSelected(e)},this.getItemByValue=function(name,value){for(var usedItems=self.searchActive?self.searchItems:self.items,i=0;i<usedItems.length;i++){var item=usedItems[i],path="item."+name;if(void 0!==eval(path)&&eval(path)===value)return item}return!1},this.parse=function(e){for(var t=0;t<self.items.length;t++)e(self.items[t])},this.getItems=function(){return self.items},this.getSelection=function(){var e=[];return self.parse((function(t){1==t.checked&&e.push(t)})),e},this.grep=function(func,value){var selection=[];return self.parse((function(item){if(void 0!==value){var variable=eval("item."+value);1==func(item)&&void 0!==variable&&selection.push(variable)}else 1==func(item)&&selection.push(item)})),selection},this.getSelectedEmails=function(e,t){for(var n=[],i=0;i<self.items.length;i++){var s=self.items[i];s.checked&&n.push(s.data.email)}return n},this.getSelectedIds=function(e){e=void 0!==e&&e;for(var t=[],n=0;n<self.items.length;n++){var i=self.items[n];i.checked&&t.push(Number(i.data.id))}if(t.sort((function(e,t){return e-t})),e){for(var s=[],a=[],r=(n=0,t.length);n<r;n++){var o=t[n];if(t[n+1]&&t[n+1]==o+1)a.push(o);else if(a.length>0){var l=String(a[0])+"-"+String(a[a.length-1]+1);s.push(l),a=[]}else s.push(String(o))}if(a.length>0){l=String(a[0])+"-"+String(a[a.length-1]+1);s.push(l),a=[]}return s}return t},this.count=function(){return self.items.length};var obj={item:{data:{},checked:!1,instance:null,init:function(e){var t=$.extend(!0,{},this);return t.instance=$("<tr></tr>"),t.data=e,"undefined"!=$.type(e[self.schema.model.id])&&(t.data.id=e[self.schema.model.id]),t},destroy:function(e){var t=this,n=!1,i=self.searchActive?self.searchItems:self.items,s=i.indexOf(t);if(s>-1){t.instance.remove(),i.splice(s,1);var a=self.view.indexOf(t);return a>-1&&self.view.splice(a,1),self.destroy(t.data).done((function(r){if("string"==typeof e&&void 0!==r[e]&&(r=r[e]),r){if(self.searchActive){var o=t.data.id;void 0!==self.items[self.itemsIndex[o]]&&self.itemsIndex.hasOwnProperty(o)&&(self.items[self.itemsIndex[o]].instance.remove(),self.items.splice(self.itemsIndex[o],1))}n=!0}else i.splice(s,0,t),a>-1&&self.view.splice(a,0,t),self.refreshView()})),self.refreshView(),fn.runEvent.call(this,"destroy",t),n}return n},update:function(e){var t=void 0!==e?e:this.data;return self.update(t).promise()},select:function(e){fn.setSelected(e.data.current),fn.runEvent.call(this,"select",self.selected)},checkToggle:function(e){var t=e.data.current;t.isChecked()?t.uncheck():t.check(),fn.runEvent.call(t,"checkToggle",t,t.isChecked())},check:function(){var e=this.data.id;(self.searchActive&&void 0!==self.items[self.itemsIndex[e]]&&self.itemsIndex.hasOwnProperty(e)&&(self.items[self.itemsIndex[e]].checked=!0),this.checked||self.dataGrid.footer.writeCheckedInfo(1),this.checked=!0,fn.itemInView(this)&&self.dataGrid.checkable)&&this.instance.find('input[type="checkbox"]').prop("checked",!0);fn.runEvent.call(this,"check",this,!0)},uncheck:function(){var e=this.data.id;(self.searchActive&&self.itemsIndex.hasOwnProperty(e)&&(self.items[self.itemsIndex[e]].checked=!1),this.checked&&self.dataGrid.footer.writeCheckedInfo(-1),this.checked=!1,fn.itemInView(this)&&self.dataGrid.checkable)&&this.instance.find('input[type="checkbox"]').prop("checked",!1);fn.runEvent.call(this,"check",this,!1)},isChecked:function(){return this.checked},render:function(){var e=this,t=e.data,n=fn.getItemFields(t);self.dataGrid.selectable&&e.instance.on("click",{current:e},e.select),self.dataGrid.checkable&&e.instance.on("click",{current:e},e.checkToggle),e.instance.empty(),$.each(n,(function(n,i){var s,a=' class="'+(null!=i.className?i.className:"")+'" ';if(t.hasOwnProperty(i.field))e.data[n]=null!=t[i.field]?t[i.field]:"",r=e.data[n],"function"==$.type(self.dataGrid.template[i.template])&&(r=self.dataGrid.template[i.template](e,r)),s=$("<td "+a+"></td>").html(r);else{var r="";"function"==$.type(self.dataGrid.template[i.template])&&(r=self.dataGrid.template[i.template](e,r)),s=$("<td "+a+"></td>").html(r)}e.instance.append(s)}));var i=e.instance.prev();i.length>0?i.after(e.instance):(self.dataGrid.append(e.instance),e.addOddAndEven())},addOddAndEven:function(){self.hasOwnProperty("lastClass")?self.lastClass="odd"==self.lastClass?"even":"odd":self.lastClass="odd",this.instance.removeClass("even odd"),this.instance.addClass(self.lastClass)},removeFromView:function(){var e=self.view.indexOf(this);e>-1&&(this.instance.remove(),self.view.splice(e,1))},removeFromScreen:function(){var e=self.view.indexOf(this),t=self.items.indexOf(this);t>-1&&self.items.splice(t,1),e>-1&&(this.instance.remove(),self.view.splice(e,1)),self.refreshView()},hide:function(){this.instance.hide()},show:function(){this.instance.show()}}},fn={setSelected:function(e){self.selected=e,self.hasOwnProperty("prevItemSelected")?(self.prevItemSelected.instance.removeClass("selected"),self.prevItemSelected=self.selected):self.prevItemSelected=self.selected,self.selected.instance.addClass("selected")},getItemFields:function(e){if("undefined"==$.type(self.itemFieldsDefined)){var t={},n=self.schema.model.getColumns();$.each(e,(function(e,i){$.each(n,(function(e,n){"null"!==$.type(i)&&$.type("undefined"!==i.field)&&"undefined"===$.type(t[n.field])&&(t[n.field]=n)}))})),self.itemFieldsDefined=t}return self.itemFieldsDefined},runEvent:function(e){var t=Array.prototype.slice.call(arguments,1);null!=self.dataGrid.events&&"function"==$.type(self.dataGrid.events[e])&&self.dataGrid.events[e].apply(this,t)},initItems:function(e){self.dataGrid.footer.setCheckedInfo(0),e.length>0&&$.each(e,(function(e,t){fn.initItem({key:e,data:t})}))},initItem:function(e){var t=e.key,n=e.data,i=obj.item.init(n),s=(self.searchActive?self.searchItems:self.items).push(i)-1;self.searchActive||(self.itemsIndex[i.data.id]=s),"function"==typeof self.dataGrid.defineSelected&&self.dataGrid.defineSelected(i)&&fn.setSelected(i),self.itemsIndex.hasOwnProperty(i.data.id)&&(void 0!==self.items[self.itemsIndex[i.data.id]]&&self.items[self.itemsIndex[i.data.id]].checked?i.checked=!0:i.checked=!1);var a=(self.dataGrid.currentPage-1)*self.pageSize;(0==self.dataGrid.pageable||0==self.pageSize||self.view.length<self.pageSize&&t>=a)&&self.view.push(i)},displayItems:function(e){$.each(self.view,(function(e,t){t.render()})),self.dataGrid.updateFooter(),self.dfdDone.resolve(self)},clearView:function(){for(var e=self.view.length;e--;)self.view[e].removeFromView(),self.view.splice(e,1)},setView:function(e){fn.clearView(),delete self.lastClass,e<1?e=1:e>self.getPageInfo().lastPage()&&(e=self.getPageInfo().lastPage());var t=(e-1)*self.pageSize,n=t+self.pageSize,i=self.searchActive?self.searchItems:self.items;self.view=i.filter((function(e,i){if(i>=t&&i<n)return e.render(),!0})),self.dataGrid.footer.setCurrentPage(e),self.dataGrid.updateFooter()},getItemById:function(e){var t=self.searchActive?self.searchItems:self.items,n=$.grep(t,(function(t,n){return t.data.id==e}));return n.length>0&&n[0]},itemInView:function(e){return self.view.indexOf(e)>-1}};return self.dfdDone=new $.Deferred,this.sync=function(e){if(cfg.transport.hasOwnProperty("read"))self.read().done((function(t){0==self.items.length?(fn.initItems(t),fn.displayItems()):(self.items=[],this.itemsIndex={},fn.clearView(),self.lastClass=null,fn.initItems(t),fn.displayItems()),"function"==typeof e&&e.call(self,self),readyDfd.resolve()})).fail((function(e,t,n){"function"==typeof self.errors.read&&self.errors.read(e,t,n)}));else{var t=self.getData();0==self.items.length?(fn.initItems(t),fn.displayItems()):(self.items=[],this.itemsIndex={},fn.clearView(),self.lastClass=null,fn.initItems(t),fn.displayItems()),"function"==typeof e&&e.call(self,self),readyDfd.resolve()}return self.dfdDone.promise()},this.applySearch=function(e){self.searchItems=[],self.searchActive=!0,self.dataGrid.currentPage=1,fn.clearView(),self.lastClass=null,fn.initItems(e),fn.displayItems()},this.clearSearch=function(){self.searchItems=[],self.searchActive=!1,self.setView(1)},this.syncDataById=function(e,t){t.id=e;var n=fn.getItemById(e);n&&(n.data=t,fn.itemInView(n)&&n.render())},this.getItemById=function(e){return fn.getItemById(e)},this.refreshView=function(){fn.setView(self.dataGrid.currentPage)},this.setView=function(e){fn.setView(e)},this.getPageInfo=function(){return{lastPage:function(){if(0==self.pageSize)return 1;var e=self.searchActive?self.searchItems:self.items;return Math.ceil(e.length/self.pageSize)},countIntems:function(){return(self.searchActive?self.searchItems:self.items).length},start:function(){var e=(self.dataGrid.currentPage-1)*self.pageSize+1;return e<0&&(e=0),e},end:function(){var e=this.start()+self.pageSize;return e>=this.countIntems()?this.countIntems():e}}},this},Model:function(e){var t=this;return this.id=e.id||null,this.fields=e.fields||[],this.columns=[],$.each(e,(function(e,n){t.fields[e]=n})),this.getFields=function(){return t.fields},this.getColumns=function(){return t.columns},this}}};$.fn.gkDropDownMenu=function(e){var t=$.extend(!0,{vars:{title:e.title||null,name:e.name||"",className:e.className||null,css:e.css||null,attr:e.attr||null,data:e.data||[],checkall:e.checkall||!0,change:e.change||null},setup:function(){var n,i,s=t.fn.getSelector(),a=t.fn.getId();if(0==t.length){var r=function(n){var i={instance:null,data:n,init:function(){return this.instance=this.getTemplate(n),this.instance.checkbox=this.instance.find('input[type="checkbox"].item-checkbox'),this.addEvents(),this},getTemplate:function(t){var n="";void 0!==e.activeClass&&t.hasOwnProperty("active")&&(n=1==parseInt(t.active)?e.activeClass.enable:e.activeClass.disable);var i="";return i+="<tr>",i+='<td class="gk-m-checkbox"><input type="checkbox" value="'+t.value+'" class="item-checkbox"/></td>',i+='<td class="gk-m-value"><a href="javascript:{}" class="'+n+'">'+t.title+"</a></td>",i=$(i+="</tr>")},addEvents:function(){var e=this.instance,n=this.instance.checkbox;e.on("click",(function(e){n.is(":checked")?n.prop("checked",!1):n.prop("checked",!0),t.fn.change()})),n.on("click",(function(e){e.stopPropagation(),t.fn.change()}))}}.init();return t.items=t.items||[],t.items.push(i),i.instance};t="",t+='<div class="gk-dropdown-menu-div" tabindex="-1" style="outline: none;">',t+='<a href="javascript:{}" class="btn btn-default gk-dropdown-menu-button" style="display:block;"><input type="checkbox" class="menu-checkall">'+this.vars.title+'<i class="icon icon-caret-down down-arrorw"></i></a>',t+='<div class="gk-dropdown-menu-table-div" style="display: none;">',t+='<table class="gk-dropdown-menu-table">',t+="</table>",t+="</div>",t+='<div class="clear">&nbsp;</div>',(t=$(t+="</div>")).vars=this.vars,t.fn=this.fn,t.obj=this.obj,t.button=t.find(".gk-dropdown-menu-button"),t.menu=t.find(".gk-dropdown-menu-table-div"),t.table=t.find(".gk-dropdown-menu-table"),t.checkall=t.find('input[type="checkbox"].menu-checkall'),t.items=[],n=this.vars.data,i=t.table,n.length&&$.each(n,(function(e,t){i.append(r(t))})),t.hitTest=!1}return"id"==s.type?t.attr("id",s.name+a):"class"==s.type&&t.attr("class",s.name+a),t.addClass("gk-dropdown-menu"),null!=t.vars.className&&t.addClass(t.vars.className),null!=t.vars.css&&t.css(t.vars.css),null!=t.vars.attr&&t.attr(t.vars.attr),t.toggleMenu=function(){t.menu.is(":visible")?t.menu.hide():t.menu.show()},t.showMenu=function(){t.menu.show()},t.hideMenu=function(){t.menu.hide()},t.getSelected=function(){return t.fn.getSelected()},t.select=function(e){return t.fn.select(e)},t.mark=function(e){return t.fn.mark.call(this,e)},t.uncheckAll=function(){return t.fn.uncheckAll()},t.fn.addEvents(),t},obj:{},fn:{addEvents:function(){t.button.on("click",(function(e){e.preventDefault(),e.stopPropagation(),t.focus(),t.toggleMenu()})),t.on("focusout",(function(e){0==t.hitTest&&t.hideMenu()})),t.on("mouseleave",(function(){t.hitTest=!1})),t.on("mouseenter",(function(){t.hitTest=!0})),t.checkall.on("click",(function(e){e.stopPropagation()})),t.checkall.on("change",(function(){$.each(t.items,(function(e,n){t.checkall.is(":checked")?n.instance.checkbox.prop("checked",!0):n.instance.checkbox.prop("checked",!1)})),t.fn.change()}))},change:function(){if(null!=t.vars.change){var e=t.fn.getSelected();0==e.length?t.checkall.prop("checked",!1):t.checkall.prop("checked",!0),t.vars.change(e)}},getSelected:function(){var e=[];return $.each(t.items,(function(t,n){var i=n.instance.checkbox;i.is(":checked")&&e.push(i.val())})),e},select:function(e){for(var n=[],i=0;i<e.length;i++)n.push(Number(e[i]));$.each(t.items,(function(e,t){var i=t.instance.checkbox;-1==n.indexOf(Number(t.data.value))||i.is(":checked")||t.instance.click()}))},mark:function(e){var t=this,n=!1,i=[];if(idsStrimg=[],e.length>0){isNaN(Number(e[0]));n=!0}if(n)for(var s=0;s<e.length;s++)idsStrimg.push(e[s]);else for(s=0;s<e.length;s++)i.push(Number(e[s]));$.each(t.items,(function(e,s){var a=s.instance.checkbox;n?-1==idsStrimg.indexOf(s.data.value)||a.is(":checked")||(s.instance.checkbox.prop("checked",!0),t.checkall.prop("checked",!0)):-1==i.indexOf(Number(s.data.value))||a.is(":checked")||(s.instance.checkbox.prop("checked",!0),t.checkall.prop("checked",!0))}))},uncheckAll:function(){t.checkall.prop("checked",!1),$.each(t.items,(function(e,t){t.instance.checkbox.prop("checked",!1)}))},getSelector:function(){var e=t.selector,n=!1;return/^\#/.test(e)?(n="id",e=e.slice(1,e.length)):/^\./.test(e)&&(n="class",e=e.slice(1,e.length)),{name:e,type:n}},getId:function(){return null!=t.vars.item?"_"+t.vars.item.data.id:"_"+gk.fn.uniqueId()}}},this);return t.setup()},window.gkWindow=function e(t){if(!(this instanceof e))return new e(t);var n=this;return task=NewsletterPro.modules.task,l=NewsletterPro.translations.l(NewsletterPro.translations.modules.task),this.template=function(){var e=t.title||"",i=$('<div class="gk-background"></div>'),s=$('<div><div class="gk-header"><span class="gk-title"></span><a href="javascript:{}" class="gk-close"><i class="icon icon-remove"></i></a></div><div class="bootstrap gk-content"></div></div>'),a=$("body"),r=t.width||0,o=t.height||0;i.css({width:"100%",height:"100%",top:0,left:0,position:"fixed",display:"none","z-index":"9999"}),i.appendTo(a),s.css({width:t.width||"auto",height:t.height||"auto",position:"fixed",left:0!=r?a.width()/2-r/2:a.width()/2,top:0!=o?$(window).height()/2-o/2:$(window).height()/2,display:"none","z-index":"99999"}),s.header=s.find(".gk-header"),s.title=s.find(".gk-title"),e&&s.title.html(e),s.content=s.find(".gk-content");var l="function"==typeof t.content?t.content(n,s.content):"";return l&&s.content.html(l),s.close=s.find(".gk-close"),s.background=i,s.addClass("gk-task-window"),s.addClass(t.className),i.addClass(t.className+"-background"),s.appendTo(a),function(e,i){e.close.on("click",(function(e){n.hide(),"function"==typeof t.close&&t.close(n)})),i.on("click",(function(){e.close.trigger("click")})),$(window).resize((function(e){n.resetPosition()}))}(s,i),"function"==typeof t.getTemplate&&t.getTemplate(s),void 0!==t.setScrollContent&&s.content.css({height:t.setScrollContent+"px","overflow-y":"scroll","overflow-x":"hidden"}),s}(),this.resetPosition=function(){n.template.css({left:$("body").width()/2-n.template.width()/2,top:$(window).height()/2-n.template.height()/2})},this.setHeader=function(e){this.template.header.find(".gk-title").html(e)},this.getHeader=function(){return this.template.header.find(".gk-title").html()},this.setContent=function(e){this.template.content.html(e)},this.getContent=function(){return this.template.content},this.hide=function(){return this.template.fadeOut(200),this.template.background.fadeOut(200).promise()},this.show=function(e){return this.resetPosition(),this.template.fadeIn(200),"function"==typeof t.show&&t.show(n),void 0!==e&&this.setContent(e),this.template.background.fadeIn(200).promise()},this},module.exports=function(e){for(var t=0;t<e.length;t++){e[t].fn.extend({gkGrid:gkGrid,gkButton:gkButton})}}}).call(this,__webpack_require__(2))},function(e,t,n){(function(e){window.gkSlider=function t(n){if(!(this instanceof t))return new t(n);var i,s,a,r,o=this,l=null,d=null,c=null,u=null,h=null,p=!1,m=null,f=null,_=null,g=[],v={},y=0,b=-1,w="",M={};function k(){M.rulesBar.empty(),function(e){var t=[],i=S(),s=H();for(var a in e){var r=e[a];r<d?r=d:r>c&&(r=c);var o=(s-i)/(c-d)*(r-d)+i/2,l=o/s*100,u=(void 0!==n.corectPosition?o+n.corectPosition:o)/s*100,h=['<div class="rule-line-'+r+'">','<span class="rule" style="left: '+l+'%;"></span>','<span class="rule-value" style="left: '+u+'%;">'+O(r)+"</span>","</div>"];t.push(h.join(""))}M.rulesBar.html(t.join(""))}(g)}function L(e,t){"[object Array]"===Object.prototype.toString.call(t)?M[e]=t[0].find(t[1]):M[e]=t}function T(t){(u=t)<0?u=0:u>H()&&(u=H()),h=Math.round(function(e){return P()*e/H()+d}(u)),x(),l&&y<5&&e.each(g,(function(e,t){A()>t-l&&A()<t+l&&function(e){h=e,u=C(),x()}(t)}))}function S(){return M.sliderController.width()}function D(){return u*((H()-S())/H())}function Y(){return D()-M.sliderInfo.width()/2+S()/2-1}function x(){M.sliderController.css({left:D()/H()*100+"%"}),M.sliderInfo.css({left:Y()/M.sliderBar.width()*100+"%"}),function(e){M.sliderInfoInput.text(e+w)}(A())}function P(){return c-d}function C(){return(null===d||isNaN(d))&&(d=n.min),j(h)-j(d)}function j(e){return H()*e/P()}function N(e){h=e,T(C()),n.hasOwnProperty("onSetValue")&&n.onSetValue(h,o)}function E(){T(C()),k()}function H(){return M.sliderBar.width()}function I(){p=!1,e(window).unbind("mousemove"),null!=_&&_(o)}function A(){return(null===h||isNaN(h))&&(h=n.value),h}function O(e){return v.hasOwnProperty(e)?v[e]:e}return L("target",n.target),L("instance",(a=n.id||"",r=void 0===n.className?"":"array"==typeof n.className?n.className.join(" "):n.className,s='<div id="'+a+'" class="slider style-dark '+r+'">',s+='<div class="slider-bar">',s+='<a href="javascript:{}" class="slider-controller">&nbsp;</a>',s+="</div>",s+='<div class="rules-bar">&nbsp;</div>',(s=e(s+="</div>")).css({"margin-top":"28px","margin-bottom":"34px"}),s)),L("sliderController",[M.instance,".slider-controller"]),L("sliderBar",[M.instance,".slider-bar"]),L("rulesBar",[M.instance,".rules-bar"]),L("sliderInfo",function(){null===h&&(h=n.value);var t='<span class="slider-value-container" style="left:'+C()+'">';return t+='<span class="slider-value">'+(h+w)+"</span>",e(t+="</span>")}()),L("sliderInfoInput",[M.sliderInfo,".slider-value"]),M.sliderBar.prepend(M.sliderInfo),M.target.empty(),M.target.append(M.instance),l=n.snap||!1,d=parseInt(n.min)||0,c=n.max||parseInt(M.sliderBar.width()),parseInt(n.step)||1,h=n.value||0,w=n.prefix||"",g=n.values||[],v=n.remplaceValues||{},m=n.move,f=n.start,_=n.done,M.rulesBar.css("width",H()/M.sliderBar.parent().width()*100+"%"),M.sliderInfo.css({position:"absolute"}),M.instance.css({position:"relative"}),M.sliderController.css({position:"absolute"}),M.sliderBar.css({position:"absolute"}),M.rulesBar.css({position:"relative"}),M.sliderController.on("mousedown",(function(t){var n;return p=!0,n=function(e){T(-M.sliderBar.offset().left+e.pageX),null!=m&&m(o),b>-1&&(y=Math.abs(e.pageX-b)),b=e.pageX},e(window).on("mousemove",(function(e){n(e)})),null!=f&&f(o),!1})),M.sliderController.on("mouseup",(function(e){return I(),!1})),i=function(e){return 1==p&&I(),!1},e(window).on("mouseup",(function(e){i(e)})),E(),o.dom=M,o.getValue=function(){return A()},o.setValue=function(e){N(e)},o.refresh=function(){return E()},o.show=function(){return M.target.parent().show(),M.instance.show(),void E()},o.hide=function(){M.target.parent().hide()},this}}).call(this,n(2))},function(e,t,n){(function(e){window.gkSliderRange=function t(n){if(!(this instanceof t))return new t(n);var i,s,a,r,o=this,l=null,d=null,c=null,u=null,h=null,p=null,m=null,f=!1,_=null,g=null,v=null,y=[],b={},w=0,M=-1,k="",L=void 0!==n.editable&&n.editable,T={};function S(){l=n.snap||!1,d=parseInt(n.min)||0,c=n.max||parseInt(T.sliderBar.width()),parseInt(n.step)||1,p=n.valueMin||0,m=n.valueMax||0,k=n.prefix||"",y=n.values||[],b=n.remplaceValues||{},_=n.move,g=n.start,v=n.done}function D(){T.rulesBar.empty(),e.each(y,(function(t,n){!function(t){t<d?t=d:t>c&&(t=c);var n=(te()-N())/(c-d)*(t-d)+N()/2;n=n/te()*100;var i='<div class="rule-line-'+t+'">';i+='<span class="rule" style="left: '+n+'%;"></span>',i+='<span class="rule-value" style="left: '+n+'%;">'+function(e){return b.hasOwnProperty(e)?b[e]:e}(t)+"</span>";var s=(i=e(i+="</div>")).find(".rule-value");T.rulesBar.append(i),s.css({left:n-s.width()/2/te()*100+"%"})}(parseInt(n))}))}function Y(e,t){"[object Array]"===Object.prototype.toString.call(t)?T[e]=t[0].find(t[1]):T[e]=t}function x(t){t=t||"min";var n=$(),i=J();isNaN(n)&&(n=0),isNaN(i)&&(i=0);var s="";switch(t){case"min":s+='<span class="slider-value-container" style="left:'+n+'">',s+=L?'<input type="text" class="slider-value np-slider-range-input-text" value="'+V()+'">':'<span class="slider-value">'+V()+"</span>",s+="</span>";break;case"max":s+='<span class="slider-value-container-max" style="left:'+i+'">',s+=L?'<input type="text" class="slider-value-max np-slider-range-input-text" value="'+q()+'">':'<span class="slider-value-max">'+q()+"</span>",s+="</span>"}var a=e(s);return L&&(a.find("input.slider-value").on("change",(function(){var t=e(this).val();X(t),"function"==typeof o.cfg.onChangeMin&&o.cfg.onChangeMin(t),"function"==typeof o.cfg.onChange&&o.cfg.onChange(t)})),a.find("input.slider-value-max").on("change",(function(){var t=e(this).val();Z(t),"function"==typeof o.cfg.onChangeMax&&o.cfg.onChangeMax(t),"function"==typeof o.cfg.onChange&&o.cfg.onChange(t)}))),a}function P(t){(u=t)<0?u=0:u>te()&&!j()?u=te():j()&&(u=h),p=Math.round(G(u)),R(),l&&w<5&&e.each(y,(function(e,t){se()>t-l&&se()<t+l&&function(e){p=e,u=$(),R()}(t)}))}function C(t){(h=t)<0&&!j()?h=0:h>te()?h=te():j()&&(h=u),m=Math.round(G(h)),B(),l&&w<5&&e.each(y,(function(e,t){ae()>t-l&&ae()<t+l&&function(e){m=e,h=J(),B()}(t)}))}function j(){return m<=p&&h<=u}function N(){return T.sliderController.width()}function E(){return I()/te()*100}function H(){return A()/te()*100}function I(){return u*((te()-N())/te())}function A(){return h*((te()-N())/te())}function O(){return T.sliderInfo.width()}function W(){return(I()-O()/2+N()/2-1)/T.sliderBar.width()*100}function F(){return(A()-O()/2+N()/2-1)/T.sliderBar.width()*100}function z(){return H()-E()}function R(){var e;T.sliderController.css({left:E()+"%"}),T.sliderInfo.css({left:W()+"%"}),T.sliderRange.css({left:E()+"%"}),T.sliderRange.css({width:z()+"%"}),e=se(),L?T.sliderInfo.find("input").val(e):T.sliderInfo.text(e+k)}function B(){var e;T.sliderControllerMax.css({left:H()+"%"}),T.sliderInfoMax.css({left:F()+"%"}),T.sliderRange.css({left:E()+"%"}),T.sliderRange.css({width:z()+"%"}),e=ae(),L?T.sliderInfoMax.find("input").val(e):T.sliderInfoMax.text(e+k)}function V(){return p||(p=0),L?p:p+k}function q(){return m||(m=0),L?m:m+k}function U(){return c-d}function G(e){return U()*e/te()+d}function $(){return(null===d||isNaN(d))&&(d=n.min),K(p)-K(d)}function J(){return(null===d||isNaN(d))&&(d=n.min),K(m)-K(d)}function K(e){return te()*e/U()}function X(e){p=e,P($())}function Z(e){m=e,C(J())}function Q(){P($()),C(J()),D()}function ee(){return T.sliderBar.offset().left}function te(){return T.sliderBar.width()}function ne(t){t=t||"min",f=!0,function(t){e(window).on("mousemove",(function(e){t(e)}))}((function(e){switch(t){case"min":P(-ee()+e.pageX);break;case"max":C(-ee()+e.pageX)}null!=_&&_(o),M>-1&&(w=Math.abs(e.pageX-M)),M=e.pageX})),null!=g&&g(o)}function ie(){f=!1,e(window).unbind("mousemove"),null!=v&&v(o)}function se(){return(null===p||isNaN(p))&&(p=n.valueMin),p}function ae(){return(null===m||isNaN(m))&&(m=n.valueMax),m}return this.cfg=n,Y("target",n.target),Y("instance",(a=n.id||"",r=void 0===n.className?"":"array"==typeof n.className?n.className.join(" "):n.className,s='<div id="'+a+'" class="slider style-dark '+r+'">',s+='<div class="slider-bar">',s+='<a href="javascript:{}" class="slider-controller">&nbsp;</a>',s+='<a href="javascript:{}" class="slider-controller-max">&nbsp;</a>',s+="</div>",s+='<div class="rules-bar">&nbsp;</div>',(s=e(s+="</div>")).css({"margin-top":"28px","margin-bottom":"34px"}),s)),Y("sliderController",[T.instance,".slider-controller"]),Y("sliderControllerMax",[T.instance,".slider-controller-max"]),Y("sliderBar",[T.instance,".slider-bar"]),Y("rulesBar",[T.instance,".rules-bar"]),Y("sliderInfo",x()),Y("sliderInfoMax",x("max")),Y("sliderInfoInput",[T.sliderInfo,".slider-value"]),Y("sliderInfoInputMax",[T.sliderInfoMax,".slider-value-max"]),Y("sliderRange",e('<div class="slider-range"></div>')),T.sliderBar.prepend(T.sliderInfo),T.sliderBar.prepend(T.sliderInfoMax),T.sliderBar.prepend(T.sliderRange),T.target.append(T.instance),S(),T.rulesBar.css("width",te()/T.sliderBar.parent().width()*100+"%"),T.sliderInfo.css({position:"absolute"}),T.sliderInfoMax.css({position:"absolute"}),T.instance.css({position:"relative"}),T.sliderController.css({position:"absolute"}),T.sliderControllerMax.css({position:"absolute"}),T.sliderBar.css({position:"absolute"}),T.rulesBar.css({position:"relative"}),T.sliderRange.css({position:"absolute"}),T.sliderController.on("mousedown",(function(e){return{controller:T.sliderController,info:T.sliderInfo,infoInput:T.sliderInfoInput,value:p,position:u},ne("min"),!1})),T.sliderController.on("mouseup",(function(e){return ie(),!1})),T.sliderControllerMax.on("mousedown",(function(e){return{controller:T.sliderControllerMax,info:T.sliderInfoMax,infoInput:T.sliderInfoInputMax,value:p,position:h},ne("max"),!1})),T.sliderControllerMax.on("mouseup",(function(e){return ie(),!1})),i=function(e){return 1==f&&ie(),!1},e(window).on("mouseup",(function(e){i(e)})),Q(),o.dom=T,o.getValueMin=function(){return se()},o.getValueMax=function(){return ae()},o.setValueMin=function(e){X(e)},o.setValueMax=function(e){Z(e)},o.refresh=function(){return Q()},o.reset=function(t){return function(t){t=t||{},e.each(t,(function(e,t){n[e]=t})),S(),Q()}(t)},o.show=function(){return T.instance.show(),void Q()},o.resetPositionMin=function(){P(-ee())},o.resetPositionMax=function(){C(-ee()+te())},this}}).call(this,n(2))},function(e,t,n){(function(e){window.gkSearch=function t(n){if(!(this instanceof t))return new t(n);var i=null,s=n.minLength||4,a=n.element.val(),r=n.read,o=n.result,l=n.reset,d={};function c(e){d.element.val(e)}function u(e){return d.element.val()}function h(){return""==u()?(d.element.hasClass("empty")||d.element.addClass("empty"),!0):(d.element.hasClass("empty")&&d.element.removeClass("empty"),!1)}return function(){if(void 0===r)throw"The search read is undefined!"}(),d.element=n.element,d.ajaxLoader=n.ajaxLoader,d.element.on("keyup",(function(t){u().length>=s?(u(),null!=i&&clearTimeout(i),d.ajaxLoader.show(),i=setTimeout((function(){r.query=u(),e.postAjax(r).done((function(t){d.ajaxLoader.hide(),e.isFunction(o)&&o(t)}))}),200)):h()&&e.isFunction(l)&&l()})),d.element.on("focus",(function(e){1!=h()&&u()!=a||c("")})),d.element.on("focusout",(function(e){1!=h()&&u()!=a||c(a)})),this.clearVal=function(){c(""),d.element.trigger("focusout")},this}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.createCustomField"),NewsletterPro.modules.createCustomField={dom:null,box:null,init:function(t){var n=this;this.box=t,this.ready((function(i){var s,a,r,o,d=[];for(var c in t.dataStorage.get("custom_field.types_editable"))d.push(Number(c));var u=function(e,t){void 0!==o&&(o.transport.read.data={id:e,id_lang:t},o.sync())};n.l=l=t.translations.l(t.translations.modules.createCustomField),n.win=win=new gkWindow({width:800,height:600,setScrollContent:540,title:l("Create Custom Fields"),className:"np-costum-fields-win",show:function(e){},close:function(e){},content:function(c){var h=n.tempalte();return i.btnAddNewVariable.on("click",(function(){var t=e(this);Number(t.data("active"))?(t.data("active",0),t.html('<i class="icon icon-plus-square"></i> '+n.l("Add New Variable")),i.fiedAdd.slideUp()):(t.data("active",1),t.html('<i class="icon icon-minus-square"></i> '+n.l("Add New Variable")),i.fiedAdd.slideDown())})),i.btnSaveVariable.on("click",(function(){var n=e(this),s=i.inputVariableName.val(),r=i.inputVariableType.val(),o=Number(e('[name="np_custom_field_required"]:checked').val());t.showAjaxLoader(n),e.postAjax({submit_custom_field:"addField",variable_name:s,type:r,required:o}).done((function(e){e.success?void 0!==a&&a.sync():t.alertErrors(e.errors)})).always((function(){t.hideAjaxLoader(n)}))})),s=new gk.data.Model({id:"id_newsletter_pro_subscribers_custom_field"}),a=new gk.data.DataSource({pageSize:6,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit_custom_field=getFieldsList",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit_custom_field=deleteField&id",type:"POST",dateType:"json",success:function(e,n){e.success||t.alertErrors(e.errors)},error:function(e,n){t.alertErrors(l("An error occurred."))},complete:function(e,t){}}},schema:{model:s},trySteps:2,errors:{read:function(e,t,n){a.syncStepAvailableAdd(3e3,(function(){a.sync()}))}}}),i.variablesList.gkGrid({dataSource:a,selectable:!1,currentPage:1,pageable:!0,template:{variable_name:function(e,t){return"{"+t+"}"},type_name:function(e){return e.data.type_name},required:function(n,i){var s=e("<div>"),a=(i=Number(i),e('\t\t\t\t\t\t\t\t\t\t<a class="list-action-enable action-enabled" data-enabled="1" href="javascript:{}" title="Enabled">\t\t\t\t\t\t\t\t\t\t\t<i class="icon-check"></i>\t\t\t\t\t\t\t\t\t\t\t<i class="icon-remove hidden"></i>\t\t\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t\t\t')),r=e('\t\t\t\t\t\t\t\t\t\t<a class="list-action-enable action-disabled" data-enabled="0" href="javascript:{}" title="Disabled">\t\t\t\t\t\t\t\t\t\t\t<i class="icon-check hidden"></i>\t\t\t\t\t\t\t\t\t\t\t<i class="icon-remove"></i>\t\t\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t\t\t');i?s.html(a):s.html(r);var o=function i(o){var l=e(this),d=Number(l.data("enabled")),c=n.data.id_newsletter_pro_subscribers_custom_field,u=d?0:1;e.postAjax({submit_custom_field:"changeFieldRequired",id:c,value:u}).done((function(e){e.success?(d?s.html(r):s.html(a),a.on("click",i),r.on("click",i)):t.alertErrors(e.errors)}))};return a.on("click",o),r.on("click",o),s},actions:function(s){var a=e("<div>"),r=e("#np-delete-custom-field-variables-list").gkButton({title:n.l("delete"),name:"np-delete-custom-field-variables-list",className:"btn btn-default btn-margin pull-right",click:function(e){if(!confirm(n.l("Are you sure you want to do this action? You will lose all the data collected with this field.")))return!1;s.destroy("success")},icon:'<i class="icon icon-trash-o"></i> '});if(a.append(r),-1!=d.indexOf(Number(s.data.type))){var o=e("#np-edit-custom-field-variables-list").gkButton({title:n.l("Edit"),name:"np-edit-custom-field-variables-list",className:"btn btn-default btn-margin pull-right",click:function(e){t.dataStorage.set("custom_field.current_field_id",Number(s.data.id_newsletter_pro_subscribers_custom_field)),i.spanEditVariableName.html("{"+s.data.variable_name+"}")},icon:'<i class="icon icon-edit"></i> '});a.append(o)}return a}}}),t.dataStorage.on("change","custom_field.current_field_id",(function(s){var a=t.dataStorage.getNumber("id_selected_lang");void 0===r&&(i.fiedEdit.show(),r=new gk.data.Model({id:"key"}),o=new gk.data.DataSource({pageSize:6,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit_custom_field=getValuesList",dataType:"json",data:{id:s,id_lang:a}}},schema:{model:r},trySteps:2,errors:{read:function(e,t,n){o.syncStepAvailableAdd(3e3,(function(){o.sync()}))}}}),i.valuesList.gkGrid({dataSource:o,selectable:!1,currentPage:1,pageable:!0,template:{value:function(e,t){return t},actions:function(s,a){var r=e("<div>"),l=e("#np-delete-custom-field-value").gkButton({title:n.l("delete"),name:"np-delete-custom-field-value",className:"btn btn-default btn-margin pull-right",click:function(n){var i=t.dataStorage.getNumber("custom_field.current_field_id"),a=s.data.key;e.postAjax({submit_custom_field:"removeValueByKey",id:i,key:a}).done((function(e){e.success?o.sync():t.alertErrors(e.errors)}))},icon:'<i class="icon icon-trash-o btn-margin"></i> '});r.append(l);var d=e("#np-edit-custom-field-value").gkButton({title:n.l("Edit"),name:"np-edit-custom-field-value",className:"btn btn-default btn-margin pull-right",click:function(a){i.btnFieldAdd.html('<i class="icon icon-save"></i> '+n.l("Update")),i.btnFieldAdd.data("edit",1),i.btnFieldAdd.data("editKey",s.data.key);var r=t.dataStorage.getNumber("custom_field.current_field_id"),o=s.data.key;e.postAjax({submit_custom_field:"getValueByKey",id:r,key:o}).done((function(n){if(n.success){var s=n.value;e.each(i.customFieldVariable,(function(t,n){var i=e(n),a=i.data("lang");s.hasOwnProperty(a)&&i.val(s[a])}))}else t.alertErrors(n.errors)}))},icon:'<i class="icon icon icon-edit btn-margin"></i> '});return r.append(d),r}}}),i.langSelect.on("click",(function(){a=t.dataStorage.getNumber("id_selected_lang"),s=t.dataStorage.getNumber("custom_field.current_field_id"),u(s,a)})),i.btnFieldAdd.on("click",(function(){var s=e(this),r=s.data("edit"),o=(s.data("editkey"),t.dataStorage.getNumber("custom_field.current_field_id"));if(r){var l=n.getInputsVal(i.customFieldVariable),d=i.btnFieldAdd.data("editKey");e.postAjax({submit_custom_field:"updateValue",id:o,key:d,value:l}).done((function(s){s.success?(i.btnFieldAdd.html('<i class="icon icon-plus-square"></i> '+n.l("Add")),i.btnFieldAdd.data("edit",0),i.btnFieldAdd.data("editKey",0),e.each(i.customFieldVariable,(function(t,n){e(n).val("")})),a=t.dataStorage.getNumber("id_selected_lang"),u(o,a)):t.alertErrors(s.errors)}))}else{l=n.getInputsVal(i.customFieldVariable);e.postAjax({submit_custom_field:"addValue",id:o,value:l}).done((function(e){e.success?(a=t.dataStorage.getNumber("id_selected_lang"),u(o,a)):t.alertErrors(e.errors)}))}}))),u(s,a)})),h}}),i.btnOpenWindow.on("click",(function(){win.show()})),i.btnDisplayNewColumns.on("click",(function(){win.hide(),t.modules.sendNewsletters.vars.winDisplayCustomColumns.show()}))}))},getInputsVal:function(t){var n={};return e.each(t,(function(t,i){var s=e(i).attr("name").match(/\d+$/),a=null!==s?s[0]:0;n[a]=e(i).val()})),n},tempalte:function(){var t=this.l,n=this.box,i=n.dataStorage.get("custom_field.types"),s=n.dataStorage.get("all_active_languages"),a="",r="";for(var o in i)a+='<option value="'+o+'">'+i[o]+"</option>";for(var o in s){var l=s[o];r+='<input data-lang="'+l.id_lang+'" name="np_custom_field_variable_input_'+l.id_lang+'" type="text" class="form-control fixed-width-xxl pull-left" style="'+(l.selected?"display: block;":"display: none;")+'">'}var d=e('\t\t\t<div id="np-create-custom-field-content" class="np-create-custom-field-content">\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t<a href="javascript:{}" id="np-add-new-variable" class="btn btn-default pull-right" date-active="0">\t\t\t\t\t\t<i class="icon icon-plus-square"></i> '+this.l("Add New Variable")+'\t\t\t\t\t</a>\t\t\t\t</div>\t\t\t\t<div id="np-custom-field-add" class="clearfix" style="display: none">\t\t\t\t\t<hr style="margin-top: 0">\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<label class="control-label col-sm-3"><span class="label-tooltip">'+this.l("Variable Name")+'</span></label>\t\t\t\t\t\t<div class="form-group col-sm-9">\t\t\t\t\t\t\t<input id="np-create-custom-field-variable-name" type="text" class="form-control fixed-width-xxl pull-left">\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<label class="control-label col-sm-3"><span class="label-tooltip">'+this.l("Type")+'</span></label>\t\t\t\t\t\t<div class="form-group col-sm-9">\t\t\t\t\t\t\t<select class="form-control fixed-width-xxl pull-left" id="np-create-custom-field-variable-type">\t\t\t\t\t\t\t\t<option value="0">- '+this.l("none")+" -</option>\t\t\t\t\t\t\t\t"+a+'\t\t\t\t\t\t\t</select>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<label class="control-label col-sm-3"><span class="label-tooltip">'+t("Required")+'</span></label>\t\t\t\t\t\t<div class="col-sm-9">\t\t\t\t\t\t\t<div class="fixed-width-l clearfix">\t\t\t\t\t\t\t\t<div class="col-sm-3">\t\t\t\t\t\t\t\t\t<div class="row">\t\t\t\t\t\t\t\t\t\t<span class="switch prestashop-switch">\t\t\t\t\t\t\t\t\t\t\t<input id="np_custom_field_required_yes" type="radio" name="np_custom_field_required" value="1">\t\t\t\t\t\t\t\t\t\t\t<label for="np_custom_field_required_yes">\t\t\t\t\t\t\t\t\t\t\t\t'+t("Yes")+'\t\t\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t\t\t\t<input id="np_custom_field_required_no" type="radio" name="np_custom_field_required" value="0" checked="checked">\t\t\t\t\t\t\t\t\t\t\t<label for="np_custom_field_required_no">\t\t\t\t\t\t\t\t\t\t\t\t'+t("No")+'\t\t\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t\t\t\t<a class="slide-button btn"></a>\t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<div class="col-sm-offset-3 com-sm-9">\t\t\t\t\t\t\t<a id="np-create-custom-field-save-variable" href="javascript:{}" class="btn btn-success pull-left">\t\t\t\t\t\t\t\t<span class="btn-ajax-loader"></span>\t\t\t\t\t\t\t\t<i class="icon icon-save"></i>\t\t\t\t\t\t\t\t'+this.l("Save Variable")+'\t\t\t\t\t\t\t</a>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<hr style="margin-top: 0">\t\t\t\t</div>\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t<table id="np-custom-field-variables-list" class="table table-bordered np-custom-field-variables-list">\t\t\t\t\t\t<thead>\t\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t<th class="variable-name" data-field="variable_name">'+t("Variable Name")+'</th>\t\t\t\t\t\t\t\t<th class="type-name" data-template="type_name">'+t("Type")+'</th>\t\t\t\t\t\t\t\t<th class="required" data-field="required">'+t("Required")+'</th>\t\t\t\t\t\t\t\t<th class="np-actions" data-template="actions">'+t("Actions")+'</th>\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t</thead>\t\t\t\t\t</table>\t\t\t\t</div>\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t<label class="control-label col-sm-3"><span class="label-tooltip">'+this.l("List Columns")+'</span></label>\t\t\t\t\t<div class="col-sm-9">\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t<a href="javascript:{}" id="np-display-new-columns-custom-field" class="btn btn-default pull-left"><i class="icon icon-eye"></i> '+this.l("Display Custom Columns")+'</a>\t\t\t\t\t\t</div>\t\t\t\t\t\t<p class="help-block">'+this.l("Display a new column for the created fields on the list Visitors Subscribed (at the Newsletter Pro module).")+'</p>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t\t<div id="np-custom-field-edit" class="form-group clearfix" style="display: none">\t\t\t\t\t<h4 class="np-win-h4">'+t("Edit Variable")+' <span id="np-custom-field-edit-variable-name"></span></h4>\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<label class="control-label col-sm-3"><span class="label-tooltip">'+t("Value")+'</span></label>\t\t\t\t\t\t<div class="col-sm-9" style="padding-right: 0">\t\t\t\t\t\t\t<div class="form-inline">\t\t\t\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\t\t'+r+'\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="form-group">\t\t\t\t\t\t\t\t\t<div id="np-custom-field-value-lang" class="pull-right np-custom-field-value-lang gk_lang_select pull-left"></div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="form-group pull-right">\t\t\t\t\t\t\t\t\t<a id="np-btn-custom-field-add" data-edit="0" data-editkey="0" href="javascript:{}" class="btn btn-default">\t\t\t\t\t\t\t\t\t\t<i class="icon icon-plus-square"></i>\t\t\t\t\t\t\t\t\t\t'+t("Add")+'\t\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t</div>\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<table id="np-custom-field-values-list" class="table table-bordered np-custom-field-values-list">\t\t\t\t\t\t\t<thead>\t\t\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t\t<th class="np-value" data-field="value">'+t("Value")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-actions" data-template="actions">'+t("Actions")+"</th>\t\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t</thead>\t\t\t\t\t\t</table>\t\t\t\t\t</div>\t\t\t\t</div>\t\t\t</div>\t\t");return e.extend(this.dom,{winTemplate:d,btnAddNewVariable:d.find("#np-add-new-variable"),fiedAdd:d.find("#np-custom-field-add"),fiedEdit:d.find("#np-custom-field-edit"),valuesList:d.find("#np-custom-field-values-list"),variablesList:d.find("#np-custom-field-variables-list"),inputVariableName:d.find("#np-create-custom-field-variable-name"),inputVariableType:d.find("#np-create-custom-field-variable-type"),btnSaveVariable:d.find("#np-create-custom-field-save-variable"),spanEditVariableName:d.find("#np-custom-field-edit-variable-name"),langSelect:d.find("#np-custom-field-value-lang"),btnFieldAdd:d.find("#np-btn-custom-field-add"),customFieldVariable:d.find('[name^="np_custom_field_variable_input_"]'),btnDisplayNewColumns:d.find("#np-display-new-columns-custom-field")}),d},ready:function(t){var n=this;e(document).ready((function(){n.dom={btnOpenWindow:e("#np-create-custom-field")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.ProductSelection"),NewsletterPro.components.ProductSelection=function t(n){if(!(this instanceof t))return new t(n);var i=this,s=NewsletterPro;s.extendSubscribeFeature(this),this.dom={},this.winEdit=null,this.l=null,this.ready((function(t){i.l=s.translations.l(s.translations.components.ProductSelection),NewsletterPro.components.CurrencySelect.getInstanceById("#products-currency-change").on("change","#products-currency-change",(function(e){i.render(s.dataStorage.get("id_selected_lang"),Number(e))})),t.btnSort.on("change",(function(){i.sort()})),t.sortOrder.on("change",(function(){i.sort()})),i.winEdit=new gkWindow({width:800,height:600,setScrollContent:540,title:i.l("Edit")+" : %s",className:"np-product-attribute-edit-win",show:function(e){},close:function(e){},content:function(t){var n=e('\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t<table id="np-edit-product-attibutes" class="table table-bordered np-edit-product-attibutes">\t\t\t\t\t\t\t<thead>\t\t\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t\t<th class="np-attribute-id" data-field="id">'+i.l("ID")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-attribute-image" data-template="image">'+i.l("Image")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-attribute-attribute-name" data-field="attribute_name">'+i.l("Name")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-attribute-value" data-template="value">'+i.l("Color")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-attribute-reference" data-field="reference">'+i.l("Reference")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-attribute-price" data-field="price">'+i.l("Price")+'</th>\t\t\t\t\t\t\t\t\t<th class="np-attribute-available-date" data-field="available_date">'+i.l("Availalbe Date")+"</th>\t\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t</thead>\t\t\t\t\t\t</table>\t\t\t\t\t</div>\t\t\t\t");return t.dataModel=new gk.data.Model({id:"id"}),t.dataSource=new gk.data.DataSource({pageSize:9,transport:{data:[]},schema:{model:t.dataModel}}),t.dataGrid=n.find("#np-edit-product-attibutes").gkGrid({dataSource:t.dataSource,selectable:!0,currentPage:1,pageable:!0,template:{image:function(e,t){return'<img src="'+e.data.image+'" style="width: 40px; height: 40px;">'},value:function(e,t){t="";return Number(e.data.is_color_group)&&(t='<div style="width: 15px; height: 15px; border: solid 1px #CCCCCC; background-color: '+e.data.attribute_color+';"></div>'),t},available_date:function(e){return"0000-00-00"!==e?e:""}},events:{select:function(e){var n=e.data,i=s.components.Product.getInstanceById(n.id_product);i.viewInfo[n.id_lang].id_product_attribute=n.id_product_attribute,i.render(null,null,i.viewInfo[n.id_lang].id_product_attribute),t.hide()}},defineSelected:function(e){return e.data.selected}}),t.dataGrid}})}))},NewsletterPro.components.ProductSelection.prototype.sort=function(){var e=NewsletterPro,t=this.dom,n=t.btnSort.val();"0"!==n?e.components.Product.sortProducts(n,Number(t.sortOrder.val())):e.components.Product.sortProducts("position",Number(t.sortOrder.val()))},NewsletterPro.components.ProductSelection.prototype.add=function(t){var n=this,i=NewsletterPro,s=n.dom,a=i.dataStorage.get("product_template");this.publish("beforeAdd",{template:a,idProduct:t,product:null,ids:i.components.Product.getProductsId()}),e.postAjax({submit_product_selection:"addProduct",id_product:t}).done((function(e){if(e.success){var r=e.product,o=new i.components.Product({data:r,template:a,view:s.containerLang});n.render(),n.sort(),n.publish("add",{template:a,idProduct:t,product:o,ids:i.components.Product.getProductsId()})}else i.alertErrors(e.errors)}))},NewsletterPro.components.ProductSelection.prototype.remove=function(e){NewsletterPro.components.Product.removeProduct(Number(e))},NewsletterPro.components.ProductSelection.prototype.render=function(e,t,n){NewsletterPro.components.Product.render(e,t,n)},NewsletterPro.components.ProductSelection.prototype.ready=function(t){var n=this,i=NewsletterPro;e(document).ready((function(){n.dom={container:e("#selected-products"),containerLang:{},btnSort:e("#np-selected-products-sort"),sortOrder:e("#np-selected-products-sort-order"),languageSelect:e("#np-change-view-template-lang")};for(var s=i.dataStorage.get("all_languages"),a=i.dataStorage.getNumber("id_selected_lang"),r=0;r<s.length;r++){var o=Number(s[r].id_lang),l=e('<div id="selected-products-'+o+'" class="clearfix '+(o!=a?"np-lang-visible-hide":"")+'" data-lang="'+o+'" data-visible="1" style="padding 0; margin: 0 auto; display: block;"></div>');n.dom.containerLang[o]=l,n.dom.containerLang[o].sortable(),n.dom.container.append(n.dom.containerLang[o])}t(n.dom)}))}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.ProductRender"),NewsletterPro.components.ProductRender=function t(n,i){if(!(this instanceof t))return new t(n,i);var s;function a(e,t){n=n.replace(new RegExp("{"+e+"}","g"),t)}function r(e){return null==e?"":e}function o(e){var t=e.variable,n=e.value,i=e.getIf(),s=e.match;switch(e.type){case 1:d(e.variable)?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 2:d(t)&&c(t)<n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 3:d(t)&&c(t)<=n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 4:d(t)&&c(t)==n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 5:d(t)&&c(t)>=n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 6:d(t)&&c(t)>n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 7:d(t)&&c(t)===n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 8:d(t)&&c(t)!=n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"");break;case 9:d(t)&&c(t)!==n?l(s,i):e.hasElse()?l(s,e.getElse()):l(s,"")}}function l(e,t){s=s.replace(e,t)}function d(e){return!!i.hasOwnProperty(e)}function c(e){if(d(e))return i[e]}function u(e){var t;switch(!0){case/isset/.test(e):t=1;break;case h("<").test(e):t=2;break;case h("<=").test(e):t=3;break;case h("==").test(e):t=4;break;case h(">=").test(e):t=5;break;case h(">").test(e):t=6;break;case h("===").test(e):t=7;break;case h("!=").test(e):t=8;break;case h("!==").test(e):t=9}return t}function h(e){var t="(\\s|\\w+|\"')";return new RegExp(t+e+t)}function p(e){var t;switch(e){case 1:t="isset";break;case 2:t="<";break;case 3:t="<=";break;case 4:t="==";break;case 5:t=">=";break;case 6:t=">";break;case 7:t="===";break;case 8:t="!=";break;case 9:t="!=="}return t}function m(t){var n=u(t);if(1!=n)return e.trim(t.match(/\w+/)[0]);var i=new RegExp(p(n)+"\\((\\w+)\\)").exec(t);return void 0!==i[1]?i[1]:void 0}function f(t){var n=/[=<>]+([^}]+)/.exec(t);if(null!==n)return function(t){if((t=e.trim(t)).length>0){var n=t[0];t[t.length-1];if("'"==n||'"'==n)return t.substr(1,t.length-2)}return t}(n[1])}n=(n=n.replace(/\&gt;/g,">")).replace(/\&lt;/g,"<"),this.render=function(){for(var e in i)a(e,r(i[e]));s=n;try{!function(e){if(e.length>0)for(var t in e){o(e[t])}}(function(){var e=/\{if\s(?:\s+)?([^}]+)\}([\s\S]+?)(?:\{\/if\})/g,t=n.match(e),i=[];if(null!=t){var s=t.length;if(s>0)for(var a=0;a<s;a++){var r=u((t=e.exec(n))[1]),o=t[1];i.push({match:t[0],condition:o,content:t[2],type:r,variable:m(o),value:f(o),sign:p(r),hasElse:function(){return/\{else\}/.test(this.match)},getElse:function(){if(this.hasElse()){var e=/\{else\}([\s\S]+)/.exec(this.content);if(null!=e)return e[1]}return""},getIf:function(){if(this.hasElse()){var e=/([\s\S]+?)\{else\}/.exec(this.content);if(null!=e)return e[1]}return this.content}})}}return i}())}catch(e){console.error(e.message)}return s}}}).call(this,n(2))},function(e,t){NewsletterPro.namespace("components.ProductTemplate"),NewsletterPro.components.ProductTemplate=function e(t){if(!(this instanceof e))return new e(t);var n,i=NewsletterPro,s=0;this.cfg=t,this.header=this.cfg.header,(n=this.cfg.template.match(/\<\!--\s+?\{columns=(\d+)\}\s+?--\>/))&&n.length>1&&(s=Number(n[1]),isNaN(s)&&(s=0)),this.columns=s,this.template=this.cfg.template.replace(/\{columns=\d+\}|<!--\s+\{columns=\d+\}\s+-->|<!-- start header -->[\s\S]*?<!-- end header -->/g,""),this.isTemplate()?this.tree=i.components.ProductTemplateTree(this.template):this.tree=i.components.ProductTemplateTree(this.template,!1)},NewsletterPro.components.ProductTemplate.prototype={html:function(){return this.tree.get("np-product")},isTemplate:function(){return"template"===this.getHeader("content")},hasHeader:function(e){return!!this.header.hasOwnProperty(e)},getHeader:function(e){if(this.hasHeader(e))return this.header[e]}},NewsletterPro.namespace("components.ProductTemplateTree"),NewsletterPro.components.ProductTemplateTree=function e(t,n){if(!(this instanceof e))return new e(t,n);n=void 0===n,this.string=t,this.storage={},n?this.init(this.string):this.storage["np-product"]=t},NewsletterPro.components.ProductTemplateTree.prototype={init:function(e){var t,n,i,s,a,r=e.length,o=0,l=0,d=0;for(t=0;t<r;t++)n=e[t],i=e[t+1],e[t-1],"{"===n&&"{"===i?(s=e.substr(l,t-l).replace(/\s+|\:/g,""),0==o&&(rootName=s),d=l=t+2,o++):"}"===n&&"}"===i&&","===e[t+2]?(l=t+3,a=e.substr(d,t-d).trim(),o>1&&this.add(s,a),o--):"}"===n&&"}"===i&&o--},parse:function(e){for(var t=Object.keys(this.storage),n=0,i=t.length;n<i;n++)e(t[n],this.storage[t[n]])},add:function(e,t){this.storage[e]=t},get:function(e){if(this.has(e))return this.storage[e]},getRender:function(e,t){if(this.has(e)){t=t||{};var n=NewsletterPro,i=this.get(e);return new n.components.ProductRender(i,t).render()}},has:function(e){return this.storage.hasOwnProperty(e)}}},function(e,t,n){(function(e){NewsletterPro.namespace("components.Product"),NewsletterPro.components.Product=function e(t){if(!(this instanceof e))return new e(t);var n=NewsletterPro.components.Product,i=NewsletterPro;this.still=n,this.data=t.data,this.templateHeader={},this.setTemplate(t.template),this.view=t.view,this.viewInstance={},this.viewInfo={},this.inView=[],this.edit={},this.id=Number(this.data.variables.id_product),this.still.products.push(this),this.still.lastPosition++,this.position=this.still.lastPosition,this.still.view=this.view,n.imageType||(n.imageType=i.dataStorage.get("configuration.IMAGE_TYPE"))},NewsletterPro.components.Product.prototype.setTemplate=function(e){var t=NewsletterPro,n=NewsletterPro.components.Product,i=t.modules.selectProducts.vars.sliderImageSize;this.templateHeader=this.getHeader(e),t.objSize(this.templateHeader)?this.templateHeader.hasOwnProperty("loadImageSize")&&n.setImageSize(Number(this.templateHeader.loadImageSize)):n.imageWidth=i.getValue(),this.template=t.components.ProductTemplate({header:this.templateHeader,template:e})},NewsletterPro.components.Product.prototype.getHeader=function(e){return NewsletterPro.parseProductHeader(e)},NewsletterPro.components.Product.prototype.addToView=function(){var t=NewsletterPro.components.Product;if(this.isInView())return!1;for(var n in this.inView.push(this.id),this.view){null==t.layout||t.layout.hasOwnProperty(n)||(t.layout[n]=e('\t\t\t\t<table class="np-newsletter-layout-'+n+'" style="margin: 0 auto; padding; 0; border-collapse: collapse; border-spacing: 0;">\t\t\t\t</table>\t\t\t'));var i=this.view[n],s=e("<div>");if(this.viewInstance[n]=s,null!=t.layout){var a=t.layout[n].find('[class^="np-newsletter-row-"]:last');if(a.length>0){var r=a.find('[class^="np-newsletter-column-product-id-"]').length;if((d=e('<td class="np-newsletter-column-product-id-'+this.id+'"></td>')).append(s),r%t.columns==0){var o=a.attr("class"),l=Number(o.match(/np-newsletter-row-(\d+)/)[1])+1;(c=e('<tr class="np-newsletter-row-'+l+'"></tr>')).append(d),c.insertAfter(a)}else a.append(d)}else{var d,c=e('<tr class="np-newsletter-row-1"></tr>');(d=e('<td class="np-newsletter-column-product-id-'+this.id+'"></td>')).append(s),c.append(d),t.layout[n].append(c),this.view[n].sortable("disable"),this.view[n].empty(),this.view[n].append(t.layout[n])}}else if(this.template.isTemplate()){var u=this.getVars(n),h=Number(this.template.tree.get("np-columns")),p=e('<table class="np-responsive-table-container" border="0" cellpadding="0" cellspacing="0"></table>'),m=e(this.template.tree.getRender("np-row",u)),f=e(this.template.tree.getRender("np-row-separator",u)),_=e(this.template.tree.getRender("np-product-separator",u));0==i.find(".np-responsive-table-container").length?i.append(p):p=i.find(".np-responsive-table-container:last"),0==p.find(".np-row-products-target:last").length&&p.append(m);var g=t.products.length-1;g%h==0?(p.append(m),p.append(f),currentRowTarget=p.find(".np-row-products-target:last"),currentRowTarget.append(s),h>1&&currentRowTarget.append(_)):(currentRowTarget=p.find(".np-row-products-target:last"),currentRowTarget.append(s),g%h<h-1&&currentRowTarget.append(_))}else i.append(s)}return!0},NewsletterPro.components.Product.prototype.isInView=function(){return-1!=this.inView.indexOf(this.id)},NewsletterPro.components.Product.prototype.render=function(t,n,i){var s=this,a=NewsletterPro.components.Product;NewsletterPro;this.isInView()||this.addToView();var r=function(t){var r=e(s.renderWithOptions(t,n,i));a.productWidth>0?r.width(a.productWidth):0==a.productWidth&&r.width("auto"),s.viewInstance[t].replaceWith(r),s.viewInstance[t]=r,a.productWidth>0&&a.productWidth<r.width()&&(a.productWidth=r.width());var o=r.find(".np-edit-product-menu");if(!o.length){o=e('\t\t\t\t<div data-id="'+s.id+'" style="position: absolute;" class="np-edit-product-menu">\t\t\t\t\t<a data-id="'+s.id+'" data-on-lang="'+t+'" href="javascript:{}" class="np-edit-product-menu-btn-move np-edit-product-menu-btn pull-left">\t\t\t\t\t\t<i class="icon icon-move"></i>\t\t\t\t\t</a>\t\t\t\t\t<a data-id="'+s.id+'" data-on-lang="'+t+'" href="javascript:{}" onclick="NewsletterPro.components.Product.editProduct('+s.id+", "+t+');" class="np-edit-product-menu-btn-edit np-edit-product-menu-btn pull-left">\t\t\t\t\t\t<i class="icon icon-edit"></i>\t\t\t\t\t</a>\t\t\t\t\t<a data-id="'+s.id+'" data-on-lang="'+t+'" href="javascript:{}" onclick="NewsletterPro.components.Product.removeProduct('+s.id+", "+t+');" class="np-edit-product-menu-btn-remove np-edit-product-menu-btn pull-right">\t\t\t\t\t\t<i class="icon icon-remove"></i>\t\t\t\t\t</a>\t\t\t\t</div>\t\t\t');var l=r.find("td"),d=o.find(".np-edit-product-menu-btn-move");l.length||(l=r.find("div")),l.first().css("position","relative").prepend(o),d.length&&(null==a.layout?d.show():d.hide(),s.template.isTemplate()&&d.hide())}};null!=t?r(t):this.parseViewInstances((function(e,t){r(e)})),a.fixHeightAndWidthAndSliders()},NewsletterPro.components.Product.prototype.getViewInfo=function(e,t,n){var i=NewsletterPro;return null==t&&(t=this.viewInfo.hasOwnProperty(e)?this.viewInfo[e].currency:i.dataStorage.getNumber("configuration.CURRENCY")),null==n&&(n=this.viewInfo.hasOwnProperty(e)?this.viewInfo[e].id_product_attribute:0),{currency:t,id_product_attribute:n}},NewsletterPro.components.Product.prototype.setViewInfo=function(e,t,n){this.viewInfo[e]={currency:t,id_product_attribute:n}},NewsletterPro.components.Product.prototype.renderWithOptions=function(e,t,n){var i=NewsletterPro,s=(i.components.Product,this.getVars(e,t,n)),a=this.template.html();return new i.components.ProductRender(a,s).render()},NewsletterPro.components.Product.prototype.getVars=function(t,n,i){var s=NewsletterPro,a=NewsletterPro.components.Product,r=this.getViewInfo(t,n,i);n=r.currency,i=r.id_product_attribute,this.setViewInfo(t,n,i);var o,l,d,c,u=this.data,h=u.variables,p=u.variables_lang,m=!!u.prices.hasOwnProperty(n)&&u.prices[n],f=u.images,_=a.imageType,g=f.cover_images[t][_],v=u.attributes_groups.attributes_groups,y=!(!v.hasOwnProperty(t)||!e.isArray(v[t]))&&v[t],b=!(!u.attributes_groups.combination_images.hasOwnProperty(t)||!u.attributes_groups.combination_images[t].hasOwnProperty(i))&&u.attributes_groups.combination_images[t][i],w=!(!u.prices_attributes.hasOwnProperty(i)||!u.prices_attributes[i].hasOwnProperty(n))&&u.prices_attributes[i][n],M=u.attributes_combinations.attribute_anchor_separator,k=function(e,t){var n=Number(e),i=Number(t),s=i/n;return a.imageWidth>0&&(n=a.imageWidth,i=Math.round(n*s)),{width:Number(n),height:Number(i)}};for(var L in(o={}).attribute_name="",h)o[L]=h[L];if(y&&Number(i)>0){for(var T={},S=0;S<y.length;S++){var D=y[S],Y=D.id_product_attribute;T.hasOwnProperty(Y)||(T[Y]=[]),T[Y].push(D)}if(T.hasOwnProperty(i)){var x=T[i],P="";for(S=0;S<x.length;S++){var C=x[S];P+=C.public_group_name+" "+M+" "+C.attribute_name+", ",Number(C.is_color_group)&&(is_color_group=1,attribute_color=C.attribute_color),0==S&&(available_date=C.available_date,e.trim(C.reference).length>0?reference=C.reference:reference=h.reference)}if(o.attribute_name=P.replace(/, $/,""),e.trim(x[0].reference).length>0&&(o.reference=x[0].reference),d="",s.dataStorage.get("isPS16"))for(S=0;S<x.length;S++)d+="/"+String(x[S].id_attribute+M+x[S].group_name+M+x[S].attribute_name).toLowerCase();else for(S=0;S<x.length;S++)d+="/"+String(x[S].group_type+M+x[S].attribute_name).toLowerCase()}}for(var L in p)p[L].hasOwnProperty(t)&&(o[L]=p[L][t]);if(o.link=s.linkAdd(o.link,"SubmitCurrency=yes&id_currency="+n),d&&d.length>0&&(o.link=s.linkAdd(o.link,"",d)),-1!=a.productNameLength&&(o.name=s.trimString(o.name,a.productNameLength)),-1!=a.productShortDescriptionLength&&(o.description_short=s.trimString(o.description_short,a.productShortDescriptionLength)),-1!=a.productDescriptionLength&&(o.description=s.trimString(o.description,a.productDescriptionLength)),w&&(m=w),m)for(var L in m)o[L]=m[L];if(b&&e.isArray(b)&&b.length>0){var j=b[0].images;j.hasOwnProperty(_)&&(l=j[_])}return l?(c=k(l.width,l.height),o.image_path=l.link,o.image_width=c.width,o.image_height=c.height):(c=k(g.width,g.height),o.image_path=g.link,o.image_width=c.width,o.image_height=c.height),o},NewsletterPro.components.Product.prototype.parseViewInstances=function(e){for(var t in this.viewInstance)e(t,this.viewInstance[t])},NewsletterPro.components.Product.prototype.remove=function(){var e=NewsletterPro,t=NewsletterPro.components.Product;if(index=this.still.products.indexOf(this),-1!==index){for(var n in this.still.products.splice(index,1),this.viewInstance){var i=this.viewInstance[n];Number(i.data("id"))==Number(this.id)&&i.remove()}return e.modules.selectProducts.productSelection.publish("remove",{idProduct:this.id,ids:t.getProductsId()}),t.setLayout(),!0}return!1},NewsletterPro.components.Product.prototype.getEditData=function(t){var n=this.data,i=[],s=n.variables,a=(n.variables_lang.name[t],n.images),r=!(!n.attributes_groups.attributes_groups||!n.attributes_groups.attributes_groups.hasOwnProperty(t))&&n.attributes_groups.attributes_groups[t],o=n.attributes_combinations.attribute_anchor_separator,l=this.viewInfo[t].currency,d=this.viewInfo[t].id_product_attribute,c=n.prices[l].price_display,u=n.prices_attributes,h=!Number(d);if(i.push({id:0,id_product:this.id,id_lang:t,id_product_attribute:0,is_color_group:0,attribute_color:"",image:a.cover_images[t][n.images.image_type_small].link,attribute_name:"Default",reference:s.reference,price:c,available_date:"",selected:h}),r){for(var p,m={},f=0;f<r.length;f++){var _=(D=r[f]).id_product_attribute;m.hasOwnProperty(_)||(m[_]=[]),m[_].push(D)}for(var g in m){var v,y,b,w=m[g=Number(g)],M="",k=0,L="",T=!(!u.hasOwnProperty(g)||!u[g].hasOwnProperty(l))&&u[g][l].price_display;for(f=0;f<w.length;f++){var S=w[f];M+=S.public_group_name+" "+o+" "+S.attribute_name+", ",Number(S.is_color_group)&&(k=1,L=S.attribute_color),0==f&&(y=S.available_date,b=e.trim(S.reference).length>0?S.reference:s.reference)}M=M.replace(/, $/,""),v=(p=!!(n.attributes_groups.combination_images&&n.attributes_groups.combination_images.hasOwnProperty(t)&&n.attributes_groups.combination_images[t].hasOwnProperty(g))&&n.attributes_groups.combination_images[t][g])?p[0].images[n.images.image_type_small].link:a.cover_images[t][n.images.image_type_small].link,T&&(c=T);var D={id:g,id_product:this.id,id_lang:t,id_product_attribute:g,is_color_group:k,attribute_color:L,image:v,attribute_name:M,reference:b,price:c,available_date:y,selected:Number(d)==Number(g)};i.push(D)}}return i},NewsletterPro.components.Product.products=[],NewsletterPro.components.Product.view={},NewsletterPro.components.Product.lastPosition=0,NewsletterPro.components.Product.imageType=null,NewsletterPro.components.Product.imageWidth=0,NewsletterPro.components.Product.productWidth=-1,NewsletterPro.components.Product.productNameLength=-1,NewsletterPro.components.Product.productShortDescriptionLength=-1,NewsletterPro.components.Product.productDescriptionLength=-1,NewsletterPro.components.Product.layout=null,NewsletterPro.components.Product.editProduct=function(e,t){var n=NewsletterPro,i=NewsletterPro.components.Product.getInstanceById(e),s=n.modules.selectProducts.productSelection.winEdit;if(i&&s){var a=i.data,r=(a.variables,a.variables_lang.name[t]),o=i.getEditData(t),l=s.getHeader().replace(/%s/,r);s.setHeader(l),s.dataSource.setData(o),s.dataSource.sync(),s.show()}},NewsletterPro.components.Product.removeProduct=function(e,t){var n=NewsletterPro.components.Product.getInstanceById(e);n&&n.remove()},NewsletterPro.components.Product.removeAllProducts=function(){for(var e=this.products.length-1;e>=0;e--){this.products[e].remove()}},NewsletterPro.components.Product.getInstanceById=function(e){return this.parseProducts((function(t,n){if(e==t)return n}))},NewsletterPro.components.Product.getProductsId=function(){var e=[];return this.parseProducts((function(t,n){e.push(Number(t))})),e},NewsletterPro.components.Product.parseProducts=function(e){for(var t=0;t<this.products.length;t++){var n=e(this.products[t].id,this.products[t]);if(void 0!==n)return n}},NewsletterPro.components.Product.count=function(){return this.products.length},NewsletterPro.components.Product.first=function(){return this.products.length>0&&this.products[0]},NewsletterPro.components.Product.setImageSize=function(e){var t=NewsletterPro;this.imageWidth=Number(e),this.imageType=this.getImageTypeByWidthValue(this.imageWidth),this.render(),t.modules.selectProducts.displayProductsWidth()},NewsletterPro.components.Product.setNameLenght=function(e){var t=NewsletterPro;this.productNameLength=Number(e),this.render(),t.modules.selectProducts.displayProductsWidth()},NewsletterPro.components.Product.setWidth=function(e){var t=NewsletterPro;this.productWidth=Number(e),this.render(),t.modules.selectProducts.displayProductsWidth()},NewsletterPro.components.Product.setShortDescriptionLenght=function(e){var t=NewsletterPro;this.productShortDescriptionLength=Number(e),this.render(),t.modules.selectProducts.displayProductsWidth()},NewsletterPro.components.Product.setDescriptionLength=function(e){var t=NewsletterPro;this.productDescriptionLength=Number(e),this.render(),t.modules.selectProducts.displayProductsWidth()},NewsletterPro.components.Product.render=function(e,t,n){this.parseProducts((function(i,s){s.render(e,t,n)}))},NewsletterPro.components.Product.columns=0,NewsletterPro.components.Product.setLayout=function(t,n){var i=NewsletterPro.components.Product.first();if(i&&i.template.isTemplate()){var s=this.getViewProducts(n);for(var a in this.view){this.view[a].sortable("disable"),this.view[a].empty();var r=this.view[a];if(s.hasOwnProperty(a))for(var o=0;o<s[a].length;o++){var l=(y=(g=s[a][o]).viewInstance[a]).find(".np-edit-product-menu .np-edit-product-menu-btn-move"),d=g.getVars(a);l.length>0&&l.hide();var c=y,u=(t=Number(i.template.tree.get("np-columns")),e('<table class="np-responsive-table-container" border="0" cellpadding="0" cellspacing="0"></table>')),h=e(i.template.tree.getRender("np-row",d)),p=e(i.template.tree.getRender("np-row-separator",d)),m=e(i.template.tree.getRender("np-product-separator",d));0==r.find(".np-responsive-table-container").length?r.append(u):u=r.find(".np-responsive-table-container:last"),0==u.find(".np-row-products-target:last").length&&u.append(h),o%t==0?(u.append(h),u.append(p),currentRowTarget=u.find(".np-row-products-target:last"),currentRowTarget.append(c),t>1&&currentRowTarget.append(m)):(currentRowTarget=u.find(".np-row-products-target:last"),currentRowTarget.append(c),o%t<t-1&&currentRowTarget.append(m))}}return!1}s=this.getViewProducts(n);if(null!=t?this.columns=t:t=this.columns,0==t){for(var a in this.layout=null,this.view)if(this.view[a].sortable("enable"),this.view[a].empty(),s.hasOwnProperty(a))for(o=0;o<s[a].length;o++){(l=(y=(g=s[a][o]).viewInstance[a]).find(".np-edit-product-menu .np-edit-product-menu-btn-move")).length>0&&l.show(),this.view[a].append(y)}}else for(var a in this.layout={},this.view){var f=e('\t\t\t\t\t<table class="np-newsletter-layout-'+a+'" style="margin: 0 auto; padding; 0; border-collapse: collapse; border-spacing: 0;">\t\t\t\t\t</table>\t\t\t\t'),_=0;if(this.view[a].sortable("disable"),this.view[a].empty(),this.view[a].append(f),s.hasOwnProperty(a))for(o=0;o<s[a].length;o++){var g,v,y=(g=s[a][o]).viewInstance[a],b=e('<td class="np-newsletter-column-product-id-'+g.id+'"></td>');o%t==0&&(_++,v=e('<tr class="np-newsletter-row-'+_+'"></tr>'),f.append(v)),(l=y.find(".np-edit-product-menu .np-edit-product-menu-btn-move")).length>0&&l.hide(),b.html(y),v.append(b)}this.layout[a]=f}},NewsletterPro.components.Product.getViewProducts=function(t){var n=NewsletterPro;if(!(t=t||[]).length){var i=n.dataStorage.get("id_selected_lang");if(this.view.hasOwnProperty(i)){var s=this.view[i].find(".newsletter-pro-product");s.length>0&&e.each(s,(function(n,i){t.push(e(i).data("id"))}))}}var a={};return this.parseProducts((function(e,n){n.parseViewInstances((function(i,s){a.hasOwnProperty(i)||(a[i]=[]),t.length>0?a[i][t.indexOf(Number(e))]=n:a[i].push(n)}))})),a},NewsletterPro.components.Product.fixWidthAndSlidersTimeout=null,NewsletterPro.components.Product.fixHeightAndWidthAndSliders=function(){var e=NewsletterPro,t=this,n=e.dataStorage.get("id_selected_lang"),i={},s=e.modules.selectProducts.vars.sliderImageSize,a=(e.modules.selectProducts.vars.sliderProductsWidth,{}),r={};0==t.imageWidth&&(t.imageWidth=s.getValue()),null!=t.fixWidthAndSlidersTimeout&&clearTimeout(t.fixWidthAndSlidersTimeout),t.fixWidthAndSlidersTimeout=setTimeout((function(){t.parseProducts((function(e,t){if(t.viewInstance.hasOwnProperty(n)){var s=t.viewInstance[n],o=s.find(".newsletter-pro-image");if(o.length>0){var l=o.width(),d=o.height(),c=s.width();i[e]={width:c,imageWidth:l,imageHeight:d,imageRatio:d/l,diff:c-l}}}t.parseViewInstances((function(t,n){var i=n.height();a.hasOwnProperty(t)||(a[t]=0),r.hasOwnProperty(t)||(r[t]={}),r[t][e]=i,i>a[t]&&(a[t]=i)}))})),t.parseProducts((function(e,t){!t.template.isTemplate()&&t.template.columns>1&&t.parseViewInstances((function(t,n){if(i.hasOwnProperty(e))i[e];if(a[t]>0&&r[t][e]<a[t]){var s=n.find("td:first");if(s.length>0){var o=r[t][e],l=a[t]-o+parseInt(s.css("padding-bottom"));s.css("padding-bottom",l+"px")}else n.css("min-height",a+"px")}}))}))}),100)},NewsletterPro.components.Product.getImageTypeByWidthValue=function(e){var t=NewsletterPro.dataStorage.get("images_size"),n="";t.sort((function(e,t){return parseInt(e.width)<parseInt(t.width)?-1:parseInt(e.width)>parseInt(t.width)?1:0}));for(var i=0;i<t.length;i++){var s=t[i];e>Number(s.width)&&void 0!==t[i+1]&&(n=t[i+1].name)}return t.length&&!n.length&&(n=t[0].name),n},NewsletterPro.components.Product.changeTemplate=function(e){this.parseProducts((function(t,n){n.setTemplate(e)})),this.render()},NewsletterPro.components.Product.sortProducts=function(t,n){var i=this;void 0===n&&(n=!0);i=NewsletterPro.components.Product;var s={};i.parseProducts((function(e,t){t.parseViewInstances((function(e,n){var i=t.getVars(e),a=isNaN(Number(i.price))?0:Number(i.price),r=isNaN(Number(i.reduction))?0:Number(i.reduction),o=isNaN(parseFloat(i.discount_decimals))?0:parseFloat(i.discount_decimals);s.hasOwnProperty(e)||(s[e]=[]),s[e].push({position:t.position,price:a,name:i.name,reduction:r,discount:o,item:n,id:t.id,product:t,vars:i})}))}));var r=function(t){for(var r in s){var o=s[r],l=[],d=o.sort((function(e,i){if(a=e[t],b=i[t],n){if(a<b)return-1;if(a>b)return 1}else{if(null==b)return-1;if(a<b)return 1}return 0}));if(null!=i.layout){for(var c=0;c<o.length;c++)l.push(Number(o[c].id));i.setLayout(null,l)}else{var u=i.first();if(u)if(u.template.isTemplate()){var h=i.view[r];h.empty();var p=0;e.each(d,(function(t,n){var i=n.item,s=Number(u.template.tree.get("np-columns")),a=e('<table class="np-responsive-table-container" border="0" cellpadding="0" cellspacing="0"></table>'),r=e(u.template.tree.getRender("np-row",n.vars)),o=e(u.template.tree.getRender("np-row-separator",n.vars)),l=e(u.template.tree.getRender("np-product-separator",n.vars));0==h.find(".np-responsive-table-container").length?h.append(a):a=h.find(".np-responsive-table-container:last"),0==a.find(".np-row-products-target:last").length&&a.append(r),p%s==0?(a.append(r),a.append(o),currentRowTarget=a.find(".np-row-products-target:last"),currentRowTarget.append(i),s>1&&currentRowTarget.append(l)):(currentRowTarget=a.find(".np-row-products-target:last"),currentRowTarget.append(i),p%s<s-1&&currentRowTarget.append(l)),p++}))}else e.each(d,(function(e,t){i.view[r].append(t.item)}))}}};switch(t){case"price":r("price");break;case"name":r("name");break;case"reduction":r("reduction");break;case"discount":r("discount");break;case"position":default:r("position")}}}).call(this,n(2))},function(e,t){NewsletterPro.namespace("components.FilterSelection"),NewsletterPro.components.FilterSelection=function e(t){if(!(this instanceof e))return new e(t);this.customers=t.customers,this.visitors=t.visitors,this.visitors_np=t.visitors_np,this.added=t.added,this.customers_apply_callback=t.customers_apply_callback,this.visitor_apply_callback=t.visitor_apply_callback,this.visitor_np_apply_callback=t.visitor_np_apply_callback,this.added_apply_callback=t.added_apply_callback,this.clearfilters=function(){this.customers.clear.trigger("click"),void 0!==this.visitors&&this.visitors.clear.trigger("click"),void 0!==this.visitors_np&&this.visitors_np.clear.trigger("click"),this.added.clear.trigger("click")},this.parseFilters=function(e,t,n){for(var i in e){var s=e[i];for(var a in t){n(i,s,a,t[a])}}},this.applyFilters=function(e){for(var t in e){var n=e[t];switch(t){case"customers":this.parseFilters(this.customers,n,(function(e,t,n,i){switch(e){case"groups":case"languages":case"shops":case"gender":case"subscribed":e===n&&t.mark(i)}})),this.customers_apply_callback();break;case"visitors":void 0!==this.visitors&&(this.parseFilters(this.visitors,n,(function(e,t,n,i){switch(e){case"shops":case"subscribed":e===n&&t.mark(i)}})),this.visitor_apply_callback());break;case"visitors_np":void 0!==this.visitors_np&&(this.parseFilters(this.visitors_np,n,(function(e,t,n,i){switch(e){case"languages":case"shops":case"gender":case"subscribed":case"filter_by_interest":e===n&&t.mark(i)}})),this.visitor_np_apply_callback());break;case"added":this.parseFilters(this.added,n,(function(e,t,n,i){switch(e){case"languages":case"shops":case"csv_name":case"subscribed":e===n&&t.mark(i)}})),this.added_apply_callback()}}},this.getFilters=function(){var e={};return e.customers=this.getCustomersFilter(),void 0!==this.visitors&&(e.visitors=this.getVisitorsFilter()),void 0!==this.visitors_np&&(e.visitors_np=this.getVisitorNpFilter()),e.added=this.getAddedFilter(),e},this.getCustomersFilter=function(){var e={};for(var t in this.customers){var n=this.customers[t];switch(t){case"groups":case"languages":case"shops":case"gender":case"subscribed":e[t]=n.getSelected()}}return e},this.getVisitorsFilter=function(){var e={};for(var t in this.visitors){var n=this.visitors[t];switch(t){case"shops":case"subscribed":e[t]=n.getSelected()}}return e},this.getVisitorNpFilter=function(){var e={};for(var t in this.visitors_np){var n=this.visitors_np[t];switch(t){case"languages":case"shops":case"gender":case"subscribed":case"filter_by_interest":e[t]=n.getSelected()}}return e},this.getAddedFilter=function(){var e={};for(var t in this.added){var n=this.added[t];switch(t){case"languages":case"shops":case"csv_name":case"subscribed":e[t]=n.getSelected()}}return e}}},function(e,t,n){(function(e){NewsletterPro.namespace("components.LanguageSelect"),NewsletterPro.components.LanguageSelect=function t(n){if(!(this instanceof t))return new t(n);var i=NewsletterPro,s=NewsletterPro.components.LanguageSelect,a=this,r=n.selector,o=n.languages,l=function(t){var n=e('<button class="gk-lang-header btn btn-default dropdown-toggle" tabindex="-1"> </button>'),s=e('<span style="margin-right: 5px; display: inline-block;"></span>'),r=e('<i class="icon icon-caret-down"> </i> '),l=e('<ul id="lang_menu_'+i.uniqueId()+'" class="gk-lang-menu dropdown-menu" style="display: none;"></ul>'),d=[];return t.css({position:"relative"}),n.append(s),n.append(r),t.append(n),t.append(l),function(e){for(var t in o)e(o[t],t)}((function(t,n){var r=e('<li id="lang_item_'+i.uniqueId()+'"><a href="javascript:{}" style="width: 100%;">'+t.name+"</a></li>");1==t.selected&&s.html(t.iso_code),r.on("click",(function(e){a.click(t,n)})),l.append(r),d.push(r)})),{header:n,headerText:s,headerIcon:r,dropDown:l,rows:d,selector:t}}(r),d=r.attr("id");function c(){var t=l.header.innerWidth(),n=l.dropDown.innerWidth();l.dropDown.offset().left,e(window).width();l.dropDown.css({left:-n+t})}return s.addInstance(d,a),i.extendSubscribeFeature(this),c(),this.setHeader=function(e){l.headerText.html(e)},this.getCfg=function(){return n},this.fixDropDownPosition=function(){c()},this.headerClick=function(){a.toggle()},this.click=function(t,r){a.publish("change",{lang:t,key:r}),e.each(e("[data-lang]"),(function(n,i){var s="1"==(i=e(i)).data("visible");Number(i.data("lang"))==Number(t.id_lang)?s?(i.removeClass("np-lang-visible-hide"),i.show()):i.show():s?i.addClass("np-lang-visible-hide"):i.hide()})),e.each(s.getInstances(),(function(e,n){n.setHeader(t.iso_code)})),l.headerText.html(t.iso_code),a.close(),"function"==typeof n.click&&n.click(t,r),"function"==typeof s.clickEvent&&s.clickEvent(t,r),i.dataStorage.set("id_selected_lang",parseInt(t.id_lang))},this.open=function(){this.fixDropDownPosition(),l.dropDown.show(),setTimeout((function(){l.dropDown.focus()}),1)},this.close=function(){l.dropDown.hide()},this.toggle=function(){l.dropDown.is(":visible")?a.close():a.open()},l.dropDown.focusout((function(){a.close()})),l.header.on("click",(function(e){a.headerClick.call(header)})),this},NewsletterPro.components.LanguageSelect.instances={},NewsletterPro.components.LanguageSelect.addInstance=function(e,t){e=null==e?NewsletterPro.uniqueId():"#"+e,NewsletterPro.components.LanguageSelect.instances[e]=t},NewsletterPro.components.LanguageSelect.getInstanceById=function(e){var t=NewsletterPro.components.LanguageSelect.instances;return!!t.hasOwnProperty(e)&&t[e]},NewsletterPro.components.LanguageSelect.getInstances=function(){return NewsletterPro.components.LanguageSelect.instances},NewsletterPro.components.LanguageSelect.parseInstances=function(e){var t=NewsletterPro.components.LanguageSelect.getInstances();for(var n in t)e(t[n],n)},NewsletterPro.components.LanguageSelect.initBySelection=function(t){var n=NewsletterPro;e.each(t,(function(t,i){i=e(i),new n.components.LanguageSelect({selector:i,languages:n.dataStorage.get("all_languages")})}))},NewsletterPro.components.LanguageSelect.updateLanguages=function(){var t=NewsletterPro.dataStorage.getNumber("id_selected_lang");t>0&&e.each(e("[data-lang]"),(function(n,i){var s="1"==(i=e(i)).data("visible");Number(i.data("lang"))==t?s?(i.removeClass("np-lang-visible-hide"),i.show()):i.show():s?i.addClass("np-lang-visible-hide"):i.hide()}))},NewsletterPro.components.LanguageSelect.fixDropDownPosition=function(){this.parseInstances((function(e){e.fixDropDownPosition()}))}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.CurrencySelect"),NewsletterPro.components.CurrencySelect=function e(t){if(!(this instanceof e))return new e(t);var n=NewsletterPro,i=n.components.CurrencySelect,s=this;n.extendSubscribeFeature(this),this.cfg=t,this.currency_id=0,this.selector=t.selector,this.currencies=t.currencies,this.dom=this.buildTemplate(this.selector),this.id="#"+this.selector.attr("id"),this.fixDropDownPosition(),this.dom.dropDown.focusout((function(){s.close()})),this.dom.header.on("click",(function(e){s.headerClick.call(s,header)})),i.addInstance(this.id,this)},NewsletterPro.components.CurrencySelect.prototype.on=function(e,t,n){this.subscribe("change"+t,n)},NewsletterPro.components.CurrencySelect.prototype.setHeader=function(e){this.dom.headerText.html(e)},NewsletterPro.components.CurrencySelect.prototype.getCfg=function(){return this.cfg},NewsletterPro.components.CurrencySelect.prototype.headerClick=function(){this.toggle()},NewsletterPro.components.CurrencySelect.prototype.click=function(e,t){this.dom.headerText.html(e.iso_code),this.close(),"function"==typeof this.cfg.click&&this.cfg.click(e,t),this.currency_id=Number(e.id_currency),this.publish("change"+this.id,this.currency_id)},NewsletterPro.components.CurrencySelect.prototype.val=function(){return this.currency_id},NewsletterPro.components.CurrencySelect.prototype.open=function(){var e=this.dom;e.dropDown.show(),setTimeout((function(){e.dropDown.focus()}),1)},NewsletterPro.components.CurrencySelect.prototype.close=function(){this.dom.dropDown.hide()},NewsletterPro.components.CurrencySelect.prototype.toggle=function(){this.dom.dropDown.is(":visible")?this.close():this.open()},NewsletterPro.components.CurrencySelect.prototype.fixDropDownPosition=function(){var t=this.dom,n=t.header.innerWidth(),i=t.dropDown.innerWidth();t.dropDown.offset().left,e(window).width();t.dropDown.css({left:-i+n})},NewsletterPro.components.CurrencySelect.prototype.buildTemplate=function(t){var n=NewsletterPro,i=this,s=e('<button class="np-currency-header btn btn-default dropdown-toggle" tabindex="-1"> </button>'),a=e('<span style="margin-right: 5px; display: inline-block;"></span>'),r=e('<i class="icon icon-caret-down"> </i> '),o=e('<ul id="currency_menu_'+n.uniqueId()+'" class="np-currency-menu dropdown-menu" style="display: none;"></ul>'),l=[];return t.css({position:"relative"}),s.append(a),s.append(r),t.append(s),t.append(o),this.parseCurrencyes((function(t,s){var r=e('<li id="currency_item_'+n.uniqueId()+'"><a href="javascript:{}" style="width: 100%;">'+t.name+"</a></li>");1==t.selected&&(a.html(t.iso_code),i.currency_id=Number(t.id_currency)),r.on("click",(function(e){i.click(t,s)})),o.append(r),l.push(r)})),{header:s,headerText:a,headerIcon:r,dropDown:o,rows:l,selector:t}},NewsletterPro.components.CurrencySelect.prototype.parseCurrencyes=function(e){for(var t in this.currencies)e(this.currencies[t],t)},NewsletterPro.components.CurrencySelect.instances={},NewsletterPro.components.CurrencySelect.addInstance=function(e,t){e=""==e?NewsletterPro.uniqueId():e,NewsletterPro.components.CurrencySelect.instances[e]=t},NewsletterPro.components.CurrencySelect.getInstanceById=function(e){var t=NewsletterPro.components.CurrencySelect.instances;return!!t.hasOwnProperty(e)&&t[e]},NewsletterPro.components.CurrencySelect.getInstances=function(){return NewsletterPro.components.CurrencySelect.instances},NewsletterPro.components.CurrencySelect.parseInstances=function(e){var t=NewsletterPro.components.CurrencySelect.getInstances();for(var n in t)e(t[n],n)},NewsletterPro.components.CurrencySelect.initBySelection=function(t){var n=NewsletterPro;e.each(t,(function(t,i){i=e(i),new n.components.CurrencySelect({selector:i,currencies:n.dataStorage.get("currencies")})}))}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.SyncNewsletters"),NewsletterPro.components.SyncNewsletters=function e(t){if(!(this instanceof e))return new e(t);if(void 0===t.connection)throw new Error("You must setup the connection.");var n=NewsletterPro;this.l=n.translations.l(n.translations.components.SyncNewsletters),this.cfg=t,this.connection=t.connection,this.limit=t.connection.limit||2500,this.url=t.connection.url,this.data=t.data||{},this.syncErrorsLimit=t.syncErrorsLimit||1e3,this.selectors=t.selectors||{},this.refreshRate=t.refreshRate||5e3,this.data.limit=this.limit,this.subscription={},this.syncErrorsCount=0,this.readyLength=0,this.sendId=0,this.syncInterval=null,this.syncStart=!1},NewsletterPro.components.SyncNewsletters.prototype.init=function(){this.sync()},NewsletterPro.components.SyncNewsletters.prototype.sync=function(){if(this.isSyncInProgress())return!1;var t=this,n=NewsletterPro.modules.sendManager,i=n.define;function s(e,t){return t=t||!1,{errors:e.emails_error,success:e.emails_success,emailsCount:e.emails_count,done:i.STATE_DONE==e.state,completed:t}}function a(e,t){return t=t||!1,{remaining:e.remaining,emailsToSend:e.emails_to_send,completed:t}}function r(e,t){return t=t||!1,{success:e.emails_success,errors:e.emails_error,emailsSent:e.emails_sent,completed:t}}function o(e,n,i){t.syncErrorsCount++;var s,a="true"===e.getResponseHeader("Login");alertErrors=!1,display=!1,a?(s=t.l('The login session has expired. You must refresh the browser and login again. The next time when you are login check the button "Stay logged in".'),alertErrors=!0,t.clearSync()):(s=t.l("Error ocurred at newsletter synchronisation")+" : "+NewsletterPro.getXHRError(e),t.syncErrorsCount>=t.syncErrorsLimit?(alertErrors=!0,t.clearSync()):display=!0),t.publish("syncError",{message:s,alertErrors:alertErrors,display:display,jqXHR:e,textStatus:n,errorThrown:i})}return t.publish("beforeRequest"),this.syncInterval=setInterval((function(){t.getEmails((function(l,d,c){t.sendId=l.id>0?l.id:t.sendId,t.publish("emailsToSend",a(l,!1)),t.publish("emailsSent",r(l,!1)),t.publish("progressbar",s(l,!1)),t.publish("syncSuccess",{response:l,textStatus:d,jqXHR:c}),t.syncStart||(t.syncStart=!0,t.publish("syncStart",{active:l.active,state:l.state})),l.active&&i.STATE_PAUSE==l.state?(t.publish("syncPause",{active:l.active,state:l.state}),t.clearSync()):l.active&&i.STATE_DONE!=l.state?l.active&&i.STATE_DEFAULT==l.state&&(t.publish("syncContinue",{active:l.active,state:l.state}),n.startSendNewsletters()):(t.sendId&&e.postAjax({submit:"syncNewsletters",id:t.sendId,limit:t.limit},"json",!1).done((function(e){t.sendId=0,t.publish("emailsToSend",a(e,!0)),t.publish("emailsSent",r(e,!1)),t.publish("progressbar",s(e,!0)),t.publish("syncEnd",{active:e.active,state:e.state})})).fail((function(e,t,n){o(e,t,n)})),t.publish("syncDone",{active:l.active,state:l.state}),t.clearSync())}),(function(e,t,n){o(e,t,n)}))}),this.refreshRate),!0},NewsletterPro.components.SyncNewsletters.prototype.clearSync=function(){return!!this.isSyncInProgress()&&(clearInterval(this.syncInterval),this.syncInterval=null,this.syncStart=!1,!0)},NewsletterPro.components.SyncNewsletters.prototype.isSyncInProgress=function(){return null!=this.syncInterval},NewsletterPro.components.SyncNewsletters.prototype.getEmails=function(t,n,i){return e.ajax({url:this.url,type:"POST",dataType:"json",data:this.data,success:function(e,n,i){"function"==typeof t&&t(e,n,i)},error:function(e,t,i){"function"==typeof n&&n(e,t,i)},complete:function(e,t){"function"==typeof i&&i(e,t)}}).promise()},NewsletterPro.components.SyncNewsletters.prototype.setData=function(e,t){this.data[e]=t},NewsletterPro.components.SyncNewsletters.prototype.subscribe=function(e,t,n){this.subscription.hasOwnProperty(e)||(this.subscription[e]=[]),this.subscription[e].push({func:t,instance:n}),this.cfg.hasOwnProperty("subscription")&&this.cfg.subscription.hasOwnProperty("ready")&&(-1!=this.cfg.subscription.ready.indexOf(e)&&this.readyLength++,this.readyLength==this.cfg.subscription.ready.length&&this.init())},NewsletterPro.components.SyncNewsletters.prototype.publish=function(e,t){if(this.subscription.hasOwnProperty(e))for(var n=0;n<this.subscription[e].length;n++){var i="function"==typeof t?t():t,s=this.subscription[e][n].func,a=this.subscription[e][n].instance||this;s.call(a,i)}}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.EmailsToSend"),NewsletterPro.components.EmailsToSend=function e(t){if(!(this instanceof e))return new e(t);if(void 0===t.selector)throw new Error("You must define a selector.");var n=NewsletterPro;if(self=this,this.l=n.translations.l(n.translations.components.EmailsToSend),this.selector=t.selector,this.fastPerformance=void 0===t.fastPerformance||t.fastPerformance,this.emails=[],this.remainingEmails=0,void 0===t.subscription)throw new Error("You must set the subscription value.");this.subscription=t.subscription,this.dom=this.initDom(),this.items=[],n.extendSubscribeFeature(this),n.subscription(this,this.subscription)},NewsletterPro.components.EmailsToSend.prototype.sync=function(e){var t=e.remaining,n=e.emailsToSend;e.completed;this.fastPerformance?this.clearOptimized(n):(this.clear(),this.createItems(n)),this.writeRemainingEmails(t)},NewsletterPro.components.EmailsToSend.prototype.clear=function(){this.writeRemainingEmails(0),this.emails=[],this.items=[],this.dom.list.empty()},NewsletterPro.components.EmailsToSend.prototype.writeRemainingEmails=function(e){this.remainingEmails=parseInt(e),this.dom.remainingEmails.html(this.remainingEmails)},NewsletterPro.components.EmailsToSend.prototype.initDom=function(){return this.selector.html(this.getTemplate()),{selector:this.selector,remainingEmails:this.selector.find(".emails-to-send-count"),list:this.selector.find(".userlist")}},NewsletterPro.components.EmailsToSend.prototype.createItems=function(e){this.emails=e;for(var t=0;t<this.emails.length;t++)this.createItem(this.emails[t])},NewsletterPro.components.EmailsToSend.prototype.createItemsOptimised=function(t){for(var n=new e.Deferred,i=0;i<t.length;i++)this.emails.push(t[i]),this.createItem(t[i],"append"),0==i&&this.publish("firstItemCreated",this.getItemByEmail(t[i])),i==t.length-1&&(this.publish("lastItemCreated",this.getItemByEmail(t[i])),n.resolve());return n.promise()},NewsletterPro.components.EmailsToSend.prototype.createItem=function(t,n){n=n||"append";return{template:null,parent:null,className:this.getNextClassName(n),email:t,creationMethod:n,init:function(e){this.parent=e,this.template=this.getItemTemplate(),this.add(),"append"===n?e.items.push(this):e.items.unshift(this)},add:function(){this.parent.dom.list[this.creationMethod](this.template)},render:function(){this.parent.dom.list.find('[data-email="'+this.email+'"]')||this.add()},remove:function(){this.template.remove();var e=this.parent.emails.indexOf(this.email);return-1!=e&&(this.parent.emails.splice(e,1),this.parent.items.splice(e,1),!0)},getItemTemplate:function(){return e('\t\t\t\t<li class="'+this.className+'" data-email="'+this.email+'">\t\t\t\t\t<span class="email_text">'+this.email+"</span>\t\t\t\t\t<span>&nbsp;</span>\t\t\t\t</li>\t\t\t")},getClassName:function(){return this.className}}.init(this)},NewsletterPro.components.EmailsToSend.prototype.clearOptimized=function(e){for(var t=this,n=[],i=[],s=t.emails,a=0;a<e.length;a++)-1==s.indexOf(e[a])&&n.push(e[a]);for(a=0;a<s.length;a++)-1==e.indexOf(s[a])&&i.push(s[a]);t.removeEmails(i).done((function(){t.createItemsOptimised(n)}))},NewsletterPro.components.EmailsToSend.prototype.removeEmails=function(t){for(var n=new e.Deferred,i=[],s=0;s<t.length;s++){var a=this.emails.indexOf(t[s]);-1!=a&&i.push(a)}if(i.sort(),i.length)for(s=i.length-1;s>=0;s--){var r=this.items[i[s]];void 0!==r&&r.remove(),0==s&&n.resolve()}else n.resolve();return n.promise()},NewsletterPro.components.EmailsToSend.prototype.getNextClassName=function(e){var t=this.items.length;e=e||"append";return"odd"==(t?"append"==e?this.items[t-1].getClassName():this.items[0].getClassName():"even")?"even":"odd"},NewsletterPro.components.EmailsToSend.prototype.getTemplate=function(){return e('\t\t<label class="control-label">'+this.l("Emails to send:")+' <span class="emails-to-send-count">0</span> '+this.l("remaining")+'</label>\t\t<div class="clear">&nbsp;</div>\t\t<ul class="userlist"></ul>\t\t<div class="clear">&nbsp;</div>\t')},NewsletterPro.components.EmailsToSend.prototype.getIndex=function(e){return this.emails.indexOf(e)},NewsletterPro.components.EmailsToSend.prototype.getItemByEmail=function(e){var t=this.getIndex(e);return-1!=t&&this.items[t]},NewsletterPro.components.EmailsToSend.prototype.removeItemByEmail=function(e){var t=this.getItemByEmail(e);return!!t&&t.remove()}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.EmailsSent"),NewsletterPro.components.EmailsSent=function e(t){if(!(this instanceof e))return new e(t);if(void 0===t.selector)throw new Error("You must define a selector.");var n=NewsletterPro;if(self=this,this.l=n.translations.l(n.translations.components.EmailsSent),this.selector=t.selector,this.fastPerformance=void 0===t.fastPerformance||t.fastPerformance,this.emailsData=[],this.emails=[],this.sentSuccess=0,this.sentErrors=0,void 0===t.subscription)throw new Error("You must set the subscription value.");this.subscription=t.subscription,this.dom=this.initDom(),this.items=[],n.extendSubscribeFeature(this),n.subscription(this,this.subscription),this.windowErrors=new gkWindow({width:640,height:400,setScrollContent:340,title:this.l("Sent errors"),className:"np-emails-sent-window-error",show:function(e){},close:function(e){},content:function(e){return""}})},NewsletterPro.components.EmailsSent.prototype.sync=function(e){var t=e.success,n=e.errors,i=e.emailsSent;e.completed;this.fastPerformance?this.clearOptimized(i):(this.clear(),this.createItems(i)),this.writeSentSuccess(t),this.writeSentErrors(n)},NewsletterPro.components.EmailsSent.prototype.clear=function(){this.writeSentSuccess(0),this.writeSentErrors(0),this.emailsData=[],this.emails=[],this.items=[],this.dom.list.empty()},NewsletterPro.components.EmailsSent.prototype.clearOptimized=function(e){for(var t=this,n=[],i=[],s=[],a=t.emails,r=0;r<e.length;r++)s.push(e[r].email),-1==a.indexOf(e[r].email)&&n.push(e[r]);for(r=0;r<a.length;r++)-1==s.indexOf(a[r])&&i.push(a[r]);s.length>0&&t.removeItems(i).done((function(){t.createItemsOptimised(n)}))},NewsletterPro.components.EmailsSent.prototype.writeSentSuccess=function(e){this.sentSuccess=parseInt(e),this.dom.sentSuccess.html(this.sentSuccess)},NewsletterPro.components.EmailsSent.prototype.writeSentErrors=function(e){this.sentErrors=parseInt(e),this.dom.sentErrors.html(this.sentErrors)},NewsletterPro.components.EmailsSent.prototype.initDom=function(){return this.selector.html(this.getTemplate()),{selector:this.selector,sentSuccess:this.selector.find(".emails-sent-count-succ"),sentErrors:this.selector.find(".emails-sent-count-err"),list:this.selector.find(".userlist")}},NewsletterPro.components.EmailsSent.prototype.removeItems=function(t){for(var n=new e.Deferred,i=[],s=0;s<t.length;s++){var a=this.emails.indexOf(t[s]);-1!=a&&i.push(a)}if(i.sort(),i.length)for(s=i.length-1;s>=0;s--){var r=this.items[i[s]];void 0!==r&&r.remove(),0==s&&n.resolve()}else n.resolve();return n.promise()},NewsletterPro.components.EmailsSent.prototype.createItems=function(e){this.emailsData=e;for(var t=0;t<this.emailsData.length;t++){var n=this.emailsData[t];this.emails.push(n.email),this.createItem(n),0==t&&this.publish("firstItemCreated",this.getItemByEmail(this.emailsData[t].email)),t==this.emailsData.length-1&&this.publish("lastItemCreated",this.getItemByEmail(this.emailsData[t].email))}},NewsletterPro.components.EmailsSent.prototype.createItemsOptimised=function(t){for(var n=new e.Deferred,i=t.length-1;i>=0;i--)this.emails.unshift(t[i].email),this.emailsData.unshift(t[i]),this.createItem(t[i],"prepend"),i==t.length-1&&this.publish("firstItemCreated",this.getItemByEmail(t[i].email)),0==i&&(this.publish("lastItemCreated",this.getItemByEmail(t[i].email)),n.resolve());return n.promise()},NewsletterPro.components.EmailsSent.prototype.createItem=function(t,n){n=n||"append";return{template:null,parent:null,className:this.getNextClassName(n),email:t.email,status:t.status,fwd:t.fwd,errors:t.errors,creationMethod:n,init:function(e){var t=this;this.parent=e,this.template=this.getItemTemplate(),this.btnErrors=this.template.find(".np-emails-sent-error"),this.btnErrors.on("click",(function(){if(t.errors.length){var e="";e+='<span style="font-weight: bold;">'+t.email+"</span> <br>",e+="<br>"+t.errors.join("<br>"),t.parent.windowErrors.setContent(e),t.parent.windowErrors.show()}})),this.add(),"append"===n?e.items.push(this):e.items.unshift(this)},add:function(){this.parent.dom.list[this.creationMethod](this.template)},render:function(){this.parent.dom.list.find('[data-email="'+this.email+'"]')||this.add()},remove:function(){this.template.remove();var e=this.parent.emails.indexOf(this.email);return-1!=e&&(this.parent.emails.splice(e,1),this.parent.items.splice(e,1),this.parent.emailsData.splice(e,1),!0)},getItemTemplate:function(){return e('\t\t\t\t<li class="'+this.className+'" data-email="'+this.email+'">\t\t\t\t\t<span class="np-emails-sent-email">'+this.email+'</span>\t\t\t\t\t<span class="status np-emails-sent-status">\t\t\t\t\t'+(this.status?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')+'\t\t\t\t\t</span>\t\t\t\t\t<a href="javascript:{}" class="np-emails-sent-error" style="'+(this.errors.length>0?"display: inline-block;":"display: none;")+'"></a>\t\t\t\t\t<span class="np-emails-sent-fwd" style="'+(this.fwd>0?"display: inline-block;":"display: none;")+'"> + '+this.fwd+" "+this.parent.l("forwarders")+'</span>\t\t\t\t\t<div class="clear" style="clear: both;"></div>\t\t\t\t</li>\t\t\t')},getClassName:function(){return this.className}}.init(this)},NewsletterPro.components.EmailsSent.prototype.getNextClassName=function(e){var t=this.items.length;e=e||"append";return"odd"==(t?"append"==e?this.items[t-1].getClassName():this.items[0].getClassName():"even")?"even":"odd"},NewsletterPro.components.EmailsSent.prototype.getTemplate=function(){return e('\t\t<label class="control-label">'+this.l("Emails sent:")+' <span class="emails-sent-count-succ" style="color: green;">0</span> '+this.l("sent")+', <span class="emails-sent-count-err" style="color: red;">0</span> '+this.l("errors")+'</label>\t\t<div class="clear">&nbsp;</div>\t\t<ul class="userlist"></ul>\t\t<div class="clear">&nbsp;</div>\t')},NewsletterPro.components.EmailsSent.prototype.getIndex=function(e){return this.emails.indexOf(e)},NewsletterPro.components.EmailsSent.prototype.getItemByEmail=function(e){var t=this.getIndex(e);return-1!=t&&this.items[t]},NewsletterPro.components.EmailsSent.prototype.removeItemByEmail=function(e){var t=this.getItemByEmail(e);return!!t&&t.remove()}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("components.SendProgressbar"),NewsletterPro.components.SendProgressbar=function t(n){if(!(this instanceof t))return new t(n);var i=NewsletterPro,s=this,a=null;if(!n.hasOwnProperty("selector"))throw new Error("You must define the selector.");if(this.selector=n.selector,!n.hasOwnProperty("subscription"))throw new Error("You must set the subscription value.");this.subscription=n.subscription,this.percent=0,this.sent=0,this.total=0,this.sentErrors=0,this.sentSuccess=0,this.pause=!1,i.subscription(this,this.subscription),this.selector.html(e('\t\t<div class="np-send-progressbar-bg"></div>\t\t<div class="np-send-progressbar-bar"></div>\t\t<div class="np-send-progressbar-percent"></div>\t\t<div class="np-send-progressbar-total-box">\t\t\t<span><span class="np-send-progressbar-total-left">0</span> <span>/</span> <span class="np-send-progressbar-total-right">0</span></span>\t\t</div>\t\t<div class="np-send-progressbar-err-succ-box">\t\t\t<div class="np-send-progressbar-error">0</div>\t\t\t<div class="np-send-progressbar-success">0</div>\t\t\t<div class="clear" style="clear: both;"></div>\t\t</div>\t')),this.dom={selector:this.selector,bg:this.selector.find(".np-send-progressbar-bg"),bar:this.selector.find(".np-send-progressbar-bar"),percent:this.selector.find(".np-send-progressbar-percent"),totalBox:this.selector.find(".np-send-progressbar-total-box"),totalLeft:this.selector.find(".np-send-progressbar-total-left"),totalRight:this.selector.find(".np-send-progressbar-total-right"),errors:this.selector.find(".np-send-progressbar-error"),success:this.selector.find(".np-send-progressbar-success"),errSuccBox:this.selector.find(".np-send-progressbar-err-succ-box")},this.selector.addClass("np-send-progressbar"),e(window).resize((function(){null!==a&&clearTimeout(a),a=setTimeout((function(){s.refresh()}),500)}))},NewsletterPro.components.SendProgressbar.prototype.clear=function(){this.setPercent(0),this.setTotal(0),this.setSent(0),this.setSentErrors(0),this.setSentSuccess(0)},NewsletterPro.components.SendProgressbar.prototype.sync=function(e){var t=Number(e.errors),n=Number(e.success),i=Number(e.emailsCount);done=e.done,completed=e.completed,total=Number(t+n),done&&!completed||this.set(total,i,t,n)},NewsletterPro.components.SendProgressbar.prototype.set=function(e,t,n,i){e>t&&(e=t);var s=100*Number(e/t);this.setPercent(s),this.setTotal(t),this.setSent(e),this.setSentErrors(n),this.setSentSuccess(i)},NewsletterPro.components.SendProgressbar.prototype.setPause=function(e){this.pause=Boolean(e),this.isPause()?this.dom.bar.addClass("np-send-progressbar-bar-pause"):this.dom.bar.removeClass("np-send-progressbar-bar-pause")},NewsletterPro.components.SendProgressbar.prototype.isPause=function(){return this.pause},NewsletterPro.components.SendProgressbar.prototype.get=function(){return this.percent},NewsletterPro.components.SendProgressbar.prototype.refresh=function(){this.setPercent(this.percent)},NewsletterPro.components.SendProgressbar.prototype.setPercent=function(e){var t=this;this.percent=e,this.dom.percent.html(parseFloat(e).toFixed(2)+"%");var n=t.selector.width(),i=t.dom.percent.width(),s=e-(i+10)/n*100;t.dom.percent.animate({left:s+"%"},{progress:function(){o()},complete:function(){o()},queue:!1});var a=10/n*100,r=i<=5?5:0;function o(){s>0?t.dom.percent.css({opacity:1}):t.dom.percent.css({opacity:0})}function l(){var e=t.dom.errSuccBox.position().left,n=t.dom.errSuccBox.width(),i=t.dom.totalBox.position().left+t.dom.totalBox.width(),s=t.selector.width(),a=s-t.dom.bar.width();if(i>=e?t.dom.totalBox.css({opacity:0}):t.dom.totalBox.css({opacity:1}),a<=n){var r=(t.dom.percent.position().left-(n=t.dom.errSuccBox.width())-10)/s*100;t.dom.errSuccBox.css({right:"initial",left:r+"%"})}else t.dom.errSuccBox.css({right:"5px",left:"initial"})}t.dom.totalBox.animate({left:e+a+"%","margin-left":r+"px"},{queue:!1}),this.dom.bar.animate({width:e+"%"},{progress:function(){l()},complete:function(){l()},queue:!1})},NewsletterPro.components.SendProgressbar.prototype.setTotal=function(e){this.total=e,this.dom.totalRight.html(e)},NewsletterPro.components.SendProgressbar.prototype.setSent=function(e){this.sent=e,this.dom.totalLeft.html(e)},NewsletterPro.components.SendProgressbar.prototype.setSentErrors=function(e){this.sentErrors=e,this.dom.errors.html(e)},NewsletterPro.components.SendProgressbar.prototype.setSentSuccess=function(e){this.sentSuccess=e,this.dom.success.html(e)}}).call(this,n(2))},function(e,t,n){(function(e){window.gkProductList=function t(n){if(!(this instanceof t))return new t(n);var i=[],s=null,a=n.l||function(e){return e},r=n.inList||function(){return!0},o=n.add;function l(){i=[],[],null,s=null,dom.element.empty()}return removeCallback=n.remove,dom={},this.createItems=function(t){!function(t){l(),e.each(t,(function(t,n){n.thumb={path:n.thumb_path,width:n.thumb_width,height:n.thumb_height},function(e){i.push(e)}(function(t,n){var i=(t=t).find("a.add-product"),s=i.find("span"),r=i.find("img"),l=i.data("value"),d=i.data("id");return{init:function(){return this.instance=t,this.button=i,this.value=l,this.data=n,this.text=s,this.img=r,this.id=d,this.initEvents(),this},initEvents:function(){var e=this;this.button.on("click",(function(t){e.toggleValue(),t.stopPropagation()}))},click:function(){return this.button.trigger("click"),this.val()},val:function(){return this.value},toggleValue:function(){"1"==this.val()?this.remove():this.add()},remove:function(){this.value="-1",this.text.html(a("add")),this.img.attr("src",NewsletterPro.dataStorage.get("module_img_path")+"add.gif"),e.isFunction(removeCallback)&&removeCallback(this.data,this)},add:function(){this.value="1",this.text.html(a("remove")),this.img.attr("src",NewsletterPro.dataStorage.get("module_img_path")+"remove.gif"),e.isFunction(o)&&o(this.data,this)}}.init()}(function(t){var n='<td class="options">\t\t\t\t\t\t\t\t<a class="btn btn-default add-product" href="javascript:{}" data-id="'+t.id_product+'" data-value="-1" >\t\t\t\t\t\t\t\t\t<i class="icon icon-plus-circle"></i> <span>'+a("add")+"</span>\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t</td>",i='<td class="options">\t\t\t\t\t\t\t\t<a class="btn btn-default add-product" href="javascript:{}" data-id="'+t.id_product+'" data-value="1">\t\t\t\t\t\t\t\t\t<i class="icon icon-minus-circle"></i> <span>'+a("remove")+"</span>\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t</td>";function o(){return!!parseInt(t.active)}function l(){return!!parseInt(t.quantity)}var d='<tr class="'+(s=null==s?"even":"even"==s?"odd":"even")+'">';return d+=1==NewsletterPro.dataStorage.getNumber("configuration.DISPLAY_PRODUCT_IMAGE")?'<td class="image"><img src="'+t.thumb.path+'" alt="" height="'+t.thumb.height+'" width="'+t.thumb.width+'"></td>':"",d+='<td class="name '+(o()?"":"inactive")+'">'+t.name+"</td>",d+='<td class="reference '+(o()?"":"inactive")+'">'+(null!=t.reference?t.reference:"")+"</td>",d+='<td class="search-price '+(o()?"":"inactive")+'">'+(null!=t.price_display?t.price_display:"")+"</td>",d+='<td class="search-active">'+(o()?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')+"</td>",d+='<td class="search-stock '+(l()?"":"inactive")+'">'+(null!=t.quantity?t.quantity:'<span style="color: red;">0</span>')+"</td>",d+=r(t)?n:i,function(e){dom.element.append(e)}(d=e(d+="</tr>")),d}(n),n))}))}(t)},this.removeItems=function(){return l()},this.getItems=function(t){return function(t){return 1==t?e.grep(i,(function(e){return"-1"==e.val()})):0==t?e.grep(i,(function(e){return"1"==e.val()})):i}(t)},dom.element=n.element,this}}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.settings"),NewsletterPro.modules.settings={dom:null,box:null,init:function(t){var n,i,s=this;return s.box=t,s.ready((function(a){s.dom=a,n=s.l=NewsletterPro.translations.l(NewsletterPro.translations.modules.settings),i={"np-menu-top-bg":a.npMenuTopBg,"np-menu-top":a.newsletterproTab,"np-menu-top-content":a.newsletterproTabContent};var r=t.dataStorage;function o(){return r.data.isPS16}function l(){return parseInt(t.dataStorage.get("left_menu_active"))}function d(){setTimeout((function(){!function(){if(void 0!==window.NewsletterProComponents.objs.tabItems&&null!=window.NewsletterProComponents.objs.tabItems){var e=window.NewsletterProComponents.objs.tabItems.lastItem.attr("id");"tab_newsletter_5"===e?NewsletterPro.modules.sendNewsletters.resetButtons():"tab_newsletter_3"===e?NewsletterPro.modules.selectProducts.refreshSliders():"tab_newsletter_4"===e&&(void 0!==NewsletterPro.modules.createTemplate.dom.tinyNewsletter&&NewsletterPro.modules.createTemplate.updateBoth(),NewsletterPro.modules.createTemplate.refreshSliders())}}()}),100)}function c(){l()?(!function(){a.npLeftSize.removeClass("col-sm-2"),a.npRightSize.removeClass("col-sm-10"),a.npLeftSize.addClass("col-sm-12"),a.npRightSize.addClass("col-sm-12"),t.dataStorage.set("left_menu_active",0);var e=a.menuToggle.find(".toggle-menu-text");for(var s in e.length&&e.html(n("Left Menu")),i){var r=i[s];r.hasClass(s)||r.addClass(s)}}(),a.moduleVersionDisplay.hide()):(!function(){a.npLeftSize.removeClass("col-sm-12"),a.npRightSize.removeClass("col-sm-12"),a.npLeftSize.addClass("col-sm-2"),a.npRightSize.addClass("col-sm-10"),t.dataStorage.set("left_menu_active",1);var e=a.menuToggle.find(".toggle-menu-text");for(var s in e.length&&e.html(n("Top Menu")),i){var r=i[s];r.hasClass(s)&&r.removeClass(s)}}(),a.moduleVersionDisplay.show())}o()&&(a.menuCollapse.on("click",(function(e){d()})),e(window).resize((function(){d()})),d()),a.moduleCreateBackupButton.on("click",(function(){var i=prompt(n("backup name"));if(!e.trim(i))return!1;var a=this;t.showAjaxLoader(e(this)),e.postAjax({submit:"ajaxCreateBackup",name:i}).done((function(e){e.status?(t.alertErrors(e.msg),void 0!==s.loadBackupDataSource&&s.loadBackupDataSource.sync()):t.alertErrors(e.errors.join("\n"))})).always((function(){t.hideAjaxLoader(e(a))}))})),a.moduleLoadBackupButton.on("click",(function(){s.showLoadBackup()})),l()?a.moduleVersionDisplay.show():a.moduleVersionDisplay.hide(),o()&&a.menuToggle.on("click",(function(){c(),d(),e.postAjax({submit:"leftMenuActive",leftMenuActive:parseInt(t.dataStorage.get("left_menu_active"))}).done((function(e){e.status||t.alertErrors(e.errors)}))})),a.topShortcuts.on("change",(function(n){var i=e(n.currentTarget),s=i.val(),a=Number(i.is(":checked"));e.postAjax({submit:"updateTopShortcuts",name:s,value:a}).done((function(n){n.status?a?location.reload():e("[id^=page-header-desc-configuration-"+s.toLowerCase()+"]").hide():t.alertErrors(n.errors)}))}));var u=new gkWindow({width:800,height:500,setScrollContent:438,title:n("Log")});a.openLogFIle.on("click",(function(n){n.preventDefault();var i=e(this),s=i.attr("href");t.showAjaxLoader(i),e.postAjax({submit:"openLogFIle",filename:s}).done((function(e){e.success?u.show('<pre class="np-log-display">'+e.content+"</pre>"):t.alertErrors(e.errors)})).always((function(){t.hideAjaxLoader(i)}))}));var h=t.dataStorage.get("subscription_controller_templates");s.updateSubscriptionTemplatesSelect(h),a.subscriptionSelectTemplate.on("change",(function(n){var i=e(this).val();e.postAjax({submit:"changeSubscriptionControllerTemplate",templateId:i}).done((function(e){e.status||t.alertErrors(e.errors)}))}))})),this},updateSubscriptionTemplatesSelect:function(e){var t=NewsletterPro,n=this.dom;n.subscriptionSelectTemplate.empty(),n.subscriptionSelectTemplate.append('<option value="0">- '+this.l("none")+"- </option>");for(var i=0;i<e.length;i++){var s=e[i],a=s.id_newsletter_pro_subscription_tpl,r=t.ucfirst(s.name).replace(/_/g," "),o=1==Boolean(Number(s.selected))?" selected":"";n.subscriptionSelectTemplate.append('<option value="'+a+'"'+o+">"+r+"</option>")}},updateSubscriptionTemplates:function(){var t=NewsletterPro,n=this;e.postAjax({submit:"getSubscriptionControllerTemplates"}).done((function(e){e.status?n.updateSubscriptionTemplatesSelect(e.data.templates):t.alertErrors(e.errors)}))},newsletterproSubscriptionOption:function(t){var n=this.dom,i=parseInt(t.val()),s=[n.npSubscribeOptions];e.each(s,(function(e,t){i?t.stop().slideDown():t.stop().slideUp()}))},newsletterproSubscriptionActive:function(){var t=NewsletterPro,n=e('input[name="newsletterproSubscriptionActive"]:checked').val(),i=e('input[name^="hook_"]'),s=[],a=e('input[name^="popup_type_hook_"]'),r={};i.length>0&&(s=e.map(i,(function(t,n){if((t=e(t)).is(":checked"))return t.val()}))),a.length>0&&e.each(a,(function(t,n){var i=(n=e(n)).attr("name").replace(/^popup_type_hook_/,"");r[i]=n.is(":checked")?1:0})),e.postAjax({submit:"newsletterproSubscriptionActive",newsletterproSubscriptionActive:n,hooks:s,popupTypes:r}).done((function(e){e.status?location.reload():t.alertErrors(e.errors)}))},subscriptionSecureSubscribe:function(t){e.postAjax({submit:"subscriptionSecureSubscribe",subscriptionSecureSubscribe:t.val()}).done((function(e){e.status&&location.reload()}))},subscriptionControllerEnabled:function(t){var n=this.dom,i=t.val();e.postAjax({submit:"subscriptionControllerEnabled",value:i}).done((function(e){e.status?1==Number(i)?n.subscriptionSelectTemplateBox.slideDown("fast"):n.subscriptionSelectTemplateBox.slideUp("fast"):box.alertErrors(e.errors)}))},importEmailsFromBlockNewsletter:function(t){var n=NewsletterPro;n.showAjaxLoader(t),e.postAjax({submit:"importEmailsFromBlockNewsletter"}).done((function(e){e.status?alert(n.displayAlert(e.msg)):n.alertErrors(e.errors)})).always((function(){n.hideAjaxLoader(t)}))},clearSubscribersTemp:function(t){var n=NewsletterPro;n.showAjaxLoader(t),e.postAjax({submit:"clearSubscribersTemp"}).done((function(e){e.status?alert(n.displayAlert(e.msg)):n.alertErrors(e.errors)})).always((function(){n.hideAjaxLoader(t)}))},clearLogFiles:function(t){var n=NewsletterPro;n.showAjaxLoader(t),e.postAjax({submit:"clearLogFiles"}).done((function(e){e.status?alert(n.displayAlert(e.msg)):n.alertErrors(e.errors)})).always((function(){n.hideAjaxLoader(t)}))},showLoadBackup:function(){var t,n,i,s,a=this,r=a.l,o=NewsletterPro;void 0===a.loadBackupWindow?(a.loadBackupWindow=new gkWindow({width:800,height:500,title:r("load backup"),content:function(l){e.postAjax({submit:"showLoadBackup"},"html").done((function(d){l.setContent(d),(t=l.getContent()).css({padding:0}),s=t.find("#load-global-templates"),n=new gk.data.Model({id:"id"}),i=a.loadBackupDataSource=new gk.data.DataSource({pageSize:9,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=ajaxGetBackup",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=ajaxDeleteBackup&id",type:"POST",dateType:"json",success:function(e,t){e.status||alert(e.errors.join("\n"))},error:function(e,t){alert(r("delete record error"))},complete:function(e,t){}}},schema:{model:n},trySteps:2,errors:{read:function(e,t,n){i.syncStepAvailableAdd(3e3,(function(){i.sync()}))}}}),s.gkGrid({dataSource:i,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(t){var n=e('<div style="text-align: center;"></div>'),i=e("#delete-backup-global").gkButton({name:"delete",title:r("delete"),className:"btn btn-default btn-margin pull-right ",click:function(e){if(!confirm(r("delete record confirm")))return!1;t.destroy("status")},icon:'<i class="icon icon-trash-o"></i> '}),s=e("#load-backup-global").gkButton({name:"load",title:r("load"),className:"btn btn-default btn-margin pull-right ",click:function(n){var i=confirm(r("load backup confirm"));if(!i||""==i)return!1;o.showAjaxLoader(s),e.postAjax({submit:"ajaxLoadBackup",name:t.data.name}).done((function(e){e.status?(o.alertErrors(e.msg),window.location.reload()):o.alertErrors(e.errors.join("\n"))})).always((function(){o.hideAjaxLoader(s)}))},icon:'<span class="btn-ajax-loader" style="margin-top: 4px;"></span> <i class="icon icon-upload"></i> '});return n.append(s),n.append(i),n}}})}))}}),a.loadBackupWindow.show()):a.loadBackupWindow.show();void 0!==a.loadBackupDataSource&&a.loadBackupDataSource.sync()},ready:function(t){var n=this;e(document).ready((function(){var i=e("#nav-sidebar");n.dom={newsletterpro:e("#newsletterpro"),npLeftSize:e("#np-left-side"),npRightSize:e("#np-right-side"),navSlider:i,menuCollapse:i.find(".menu-collapse"),alertDanger:e(".alert.alert-danger"),noBootstrap:e("#content.nobootstrap"),npMenuTopBg:e("#np-menu-top-bg"),newsletterproTab:e("#tab.newsletter"),newsletterproTabContent:e("#tab_content.newsletter"),menuToggle:e("#menu-toggle"),pageHead:e(".page-head"),npSubscribeSettings:e("#newsletter-pro-subscribe-settings"),bnSubscribeSettings:e("#block-newsletter-subscribe-settings"),npSubscribeOptions:e("#newsletter-pro-subscribe-options"),moduleCreateBackupButton:e("#module-create-backup-button"),moduleLoadBackupButton:e("#module-load-backup-button"),topShortcuts:e("#np-top-shortcuts input"),openLogFIle:e(".np-btn-open-log-file"),subscriptionSelectTemplateBox:e(".pqnp-subscription-select-template-box"),subscriptionSelectTemplate:e("#pqnp-subscription-selecte-template"),moduleVersionDisplay:e(".pqnp-module-version")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var t=n(19),i=n(0),s=n.n(i);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}NewsletterPro.namespace("modules.syncTask"),NewsletterPro.modules.syncTask={speed:{slow:60,normal:45,fast:15},dom:null,box:null,interval:null,progressIds:[],init:function(t){var n=this;return n.box=t,n.ready((function(t){var i,s,r=n.progressIds||[],o=[];function l(e,t){i=i||NewsletterPro.modules.task.ui.components.taskList,s=s||NewsletterPro.modules.task.ui.components.taskHistory;var n=r.indexOf(e),a=o.indexOf(e);-1==n&&-1==a&&r.push(e),void 0!==i&&i.syncDataById(e,t)}n.updateRow=function(e,t){l(e,t)},n.syncAjax=function(){i=i||NewsletterPro.modules.task.ui.components.taskList,s=s||NewsletterPro.modules.task.ui.components.taskHistory,e.postAjax({submit:"getTasksInProgress",getTasksInProgress:!0,progressIds:r},"json",!1).done((function(t){"object"===a(t)?(function(t){t.length>0?(n.runInterval(n.speed.fast),e.each(t,(function(e,t){l(t.id_newsletter_pro_task,t)}))):n.runInterval(n.speed.normal)}(t.result),function(t){t.length>0&&(e.each(t,(function(e,t){var n=t.id_newsletter_pro_task;!parseInt(t.done)||i.getItemById(n)&&(i.sync(),s.sync())})),i.refreshView())}(t.result_look)):t>0&&t!==i.items.length&&(i.sync(),s.sync())}))},n.runInterval(n.speed.normal)})),n},runInterval:function(e){var t=this;null!=t.interval&&clearInterval(t.interval),t.interval=setInterval((function(){t.syncAjax()}),1e3*e)},ready:function(t){var n=this;e(document).ready((function(){n.dom={},t(n.dom)}))}}.init(NewsletterPro),NewsletterPro.namespace("modules.task"),NewsletterPro.modules.task={storage:null,dom:null,box:null,init:function(n){var i=this,r=NewsletterPro.modules.syncTask;return i.box=n,i.ready((function(o){var l=NewsletterPro.translations.l(NewsletterPro.translations.modules.task);function d(t){return t=e.extend(!0,{},t),e.map(t,(function(e){var t={name:e.name,value:e.id_newsletter_pro_smtp,data:e};return e.hasOwnProperty("selected")&&(delete e.selected,t.selected=!0),t}))}i.initStorage(),o.taskButton.on("click",(function(){i.taskClick.call(o.taskButton,i)})),o.taskTemplateSelect.on("click",(function(t){i.setStorage("template",e(this).val())}));var c=d(NewsletterPro.dataStorage.get("all_smtp")),u=NewsletterPro.modules.smtp,h=u.ui.SelectOption({name:"taskSmptSelect",template:o.taskSmptSelect,className:"gk-smtp-select",options:c,onChange:function(){var e=h.getSelected();if(null!=e){var t=e.data,n=NewsletterPro.dataStorage.get("configuration.PS_SHOP_EMAIL"),s=t.name,a=t.id_newsletter_pro_smtp;o.taskEmailTest.val(n),i.setStorage("smtp",s),i.setStorage("id_newsletter_pro_smtp",a)}}}),p=h.getSelected();null!=p&&i.setStorage("smtp",p.data.name);var m=o.taskTemplate,f=o.datepicker,_=i.ui,g=_.TaskWindow({width:425,className:"gk-task-window",show:function(e){o.emailsCount.text(i.getEmails().length);var t=d(u.ui.components.smptSelect.getData());h.refresh(t)}});g.setHeader(l("new task"));var v=s()().subtract(1,"days");f.datetimepicker(t.a({minDate:v})),f.on("dp.change",(function(e){e.date||n.alertErrors(l("The date is not valid.")),i.setStorage("mysql_date",e.date.format("YYYY-MM-DD HH:mm:ss"))})),g.setContent(m);var y=parseInt(o.taskSleep.val());o.taskSleep.on("change",(function(t){var n=e(this),s=parseInt(n.val());s<0?s=y:y=s,n.val(s),i.setStorage("sleep",s)})),o.taskSmtpTest.on("click",(function(t){var s=h.getSelected();i.storage.template=o.taskTemplateSelect.val();var a=o.taskEmailTest.val(),r=null!=s?s.data.id_newsletter_pro_smtp:0,d=o.taskSmtpTestMessage,c=i.storage.template,u=i.storage.send_method,p=i.storage.id_lang?i.storage.id_lang:n.dataStorage.get("id_selected_lang");n.showAjaxLoader(o.taskSmtpTest),e.postAjax({submit:"sendTestEmail",sendTestEmail:a,smtpId:r,templateName:c,sendMethod:u,idLang:p}).done((function(e){e.status?d.empty().show().append('<div class="alert alert-success">'+l("email sent")+"</div>"):d.empty().show().append('<div class="alert alert-danger">'+e.msg+"</div>"),setTimeout((function(){d.hide()}),15e3)})).always((function(){n.hideAjaxLoader(o.taskSmtpTest)}))})),o.btnTaskLangSelectTest=e("#task-test-email-lang-select");new n.components.LanguageSelect({selector:o.btnTaskLangSelectTest,languages:n.dataStorage.get("all_languages"),click:function(e,t){var n=Number(e.id_lang);i.storage.id_lang=n}});o.addTask.on("click",(function(t){var n=o.taskSmtpTestMessage,s=JSON.stringify(i.storage.emails);i.storage.emails=[],i.storage.template=o.taskTemplateSelect.val(),e.postAjax({submit:"addTask",addTask:i.storage,emails:s}).done((function(e){if(e.errors.length>0)n.empty().show().append('<div class="alert alert-danger">'+e.errors.join("<br />")+"</div>");else{var t=t||NewsletterPro.modules.task.ui.components.taskList;g.hide().done((function(){t.sync()}))}setTimeout((function(){n.hide()}),15e3)}))}));var b=new gk.data.Model({id:"id_newsletter_pro_task"}),w=new gk.data.DataSource({pageSize:10,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getTasks",dataType:"json"},update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=updateTask&updateTask",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteTask&deleteTask",type:"POST",dateType:"json",success:function(e,t){e||alert(l("delete task"))},error:function(e,t){alert(l("delete task"))},complete:function(e,t){}}},schema:{model:b},trySteps:2,errors:{read:function(e,t,n){w.syncStepAvailableAdd(3e3,(function(){w.sync()}))}}});o.mailMethod.on("change",(function(){o.mailMethod.is(":checked")&&(i.setStorage("send_method","mail"),o.smtpSelectContainer.slideUp())})),o.smtpMethod.on("change",(function(){o.smtpMethod.is(":checked")&&(i.setStorage("send_method","smtp"),o.smtpSelectContainer.slideDown())})),o.taskList.gkGrid({dataSource:w,selectable:!1,currentPage:1,pageable:!0,template:{template:function(t,i){var s=e("<div></div>"),a=t.data,r=function(){var t=n.dataStorage.get("templates"),s=[];for(var a in t){var r=t[a],o={name:r.name,value:r.filename,selected:!1};e.trim(o.value)===e.trim(i)&&(o.selected=!0),s.push(o)}return s}(),o=e('<select id="template-select-list" class="template-select-list gk-select"></select>');function d(t){var n=t.name,i=t.value,s=t.selected,a=e('<option value="'+i+'" '+(s?'selected="selected"':"")+">"+n+"</option>");o.append(a)}for(var c in r){d(r[c])}return o.on("change",(function(e){var n=o.val();n&&(t.data.template=n,t.update().done((function(e){e||alert(l("template not found"))})))})),1==parseInt(a.status)&&0==parseInt(a.done)&&0==parseInt(a.pause)?s.append(e('<span class="task-text-p">'+i+"</span>")):s.append(o),s},actions:function(t,i){var s=t.data,a=e("#task-delete").gkButton({name:"delete",title:l("delete"),className:"btn btn-default btn-margin task-delete",item:t,css:{display:"inline-block"},command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(l("delete record"))})),icon:'<i class="icon icon-trash-o"></i> '}),o=e("<div></div>"),d=e("#task-send").gkButton({name:"send-task",title:l("send"),className:"btn btn-default btn-margin send-task",css:{display:"inline-block"},click:function(t){r.runInterval(r.speed.fast);var i=s.id_newsletter_pro_task;d.hide(),u.show(),e.postAjax({submit:"sendTaskAjax",sendTaskAjax:i}).done((function(e){e.status?(d.disable(),r.syncAjax()):n.alertErrors(e.errors)}))},icon:'<i class="icon icon-send"></i> '});d.hide();var c=e("#continue-send").gkButton({name:"continue-task",title:l("continue"),className:"btn btn-default btn-margin continue-task",css:{display:"inline-block"},click:function(t){r.runInterval(r.speed.fast);var n=s.id_newsletter_pro_task;h(),e.postAjax({submit:"continueTaskAjax",id:n}).done((function(e){r.syncAjax()}))},icon:'<i class="icon icon-refresh"></i> '});c.hide();var u=e("#pause-task").gkButton({name:"pause-task",title:l("pause"),className:"btn btn-default btn-margin pause-task",css:{display:"inline-block"},click:function(t){r.runInterval(r.speed.fast);var n=s.id_newsletter_pro_task;h(),e.postAjax({submit:"pauseTask",id:n}).done((function(e){r.syncAjax()}))},icon:'<i class="icon icon-pause"></i> '});function h(){c.is(":visible")?(c.hide(),u.css({display:"inline-block"})):(c.css({display:"inline-block"}),u.hide()),d.hide()}return u.hide(),o.append(c),o.append(u),o.append(d),1==parseInt(s.status)&&0==parseInt(s.done)?parseInt(s.pause)?c.css({display:"inline-block"}):u.css({display:"inline-block"}):d.css({display:"inline-block"}),o.append(a),o},smtp:function(t,n){var i=d(NewsletterPro.dataStorage.get("all_smtp")),s=e('<select id="smtp-select-list" class="gk-select" style="min-width: 160px !important; width: auto;"></select>'),a=function(e,t){var n,i=t.key,s=t.value,a=!1;for(n in e){var r=e[n];r.data.hasOwnProperty(i)&&r.data[i]===s?(r.selected=!0,a=!0):r.hasOwnProperty("selected")&&delete r.selected}return!a&&e.length>0&&(e[0].selected=!0),e}(i,{key:"id_newsletter_pro_smtp",value:t.data.id_newsletter_pro_smtp}),r=u.ui.SelectOption({name:"taskSmptSelectList",template:s,className:"gk-smtp-select",options:a,onChange:function(){var e=r.getSelected();if(null!=e){var n=e.data.id_newsletter_pro_smtp;t.data.id_newsletter_pro_smtp=n,t.update().done((function(e){e||alert(l("smtp not update"))}))}}});function o(){return"mail"==t.data.send_method}o()&&r.template.hide();var c=e('<select id="send-method-select" class="send-method-select gk-select" autocomplete="off"><option value="smtp">SMTP</option><option value="mail" '+(o()?'selected="selected"':"")+">mail()</option></select>");c.on("change",(function(){var e=c.val();if("mail"===e)r.template.hide(),t.data.id_newsletter_pro_smtp=0;else{var n=r.getSelected();if(null!=n){var i=n.data.id_newsletter_pro_smtp;t.data.id_newsletter_pro_smtp=i}r.template.show()}t.data.send_method=e,t.update().done((function(e){e||alert(l("send method not update"))}))}));var h=e("<div></div>"),p=e('<span class="send-test-list-message" style="margin-top: 4px; display: inline-block;"></span>'),m=e("#send-test-list").gkButton({name:"send-test-list",className:"btn btn-default task-smtp-test-list",title:l("test"),click:function(){var n=r.getSelected(),i=null!=n?n.data.id_newsletter_pro_smtp:0,s=NewsletterPro.dataStorage.get("configuration.PS_SHOP_EMAIL"),a=t.data.template,o=t.data.send_method;p.empty().show().append('<span class="ajax-loader">&nbsp;</span>'),e.postAjax({submit:"sendTestEmail",sendTestEmail:s,smtpId:i,templateName:a,sendMethod:o}).done((function(e){e.status?p.empty().show().append('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):(p.empty().show().append('<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>'),NewsletterPro.alertErrors(e.msg)),setTimeout((function(){p.hide()}),1e4)}))},icon:'<i class="icon icon-envelope"></i> '}),f={float:"left"};return s.css(f),m.css(f),p.css(f),1==parseInt(t.data.status)&&0==parseInt(t.data.done)&&0==parseInt(t.data.pause)?h.append('<span class="task-text-p">'+("mail"===c.val()?"mail()":"SMTP")+"</span>"):(h.append(c),h.append(s),h.append(m),h.append(p)),h},active:function(t,n){t.data.id_newsletter_pro_task;function i(){return"0"!==String(t.data.active)}var s=e('<a class="status-button" href="javascript:{}"></a>'),a='<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>',r='<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>';return i()?s.html(a):s.html(r),s.toggleActive=function(){var e=s;t.data.active=i()?0:1,i()?e.html(a):e.html(r)},s.on("click",(function(){var e=s;e.toggleActive(),t.update().done((function(t){t||e.toggleActive()}))})),s},date_start:function(i,a){var r,o=new Date,d=o.getFullYear(),c=o.getMonth(),u=o.getDate(),h=i.data,p=new Date(i.data.date_start),m=(new Date(d,c,u,0,0,0),n.dataStorage.get("jquery_date_format"));return 1==parseInt(h.status)&&0==parseInt(h.done)&&0==parseInt(h.pause)?r=e("<span>"+e.datepicker.formatDate(m,p)+"</span>"):(r=e('<input type="text" class="task-list-date-input gk-input" style="position: relative; z-index: 100000;">').datetimepicker(t.a({defaultDate:s()(i.data.date_start)}))).on("dp.change",(function(e){e.date&&(i.data.date_start=e.date.format("YYYY-MM-DD HH:mm:ss"),i.update().done((function(e){e||alert(l("date not changed"))})))})),r},status:function(t,n){var i,a=s()(t.data.date_start),o=s()(new Date),d=e("<div></div>"),c=s.a.duration(a.diff(o)).humanize(!0),u=t.data,h=e('<span class="task-emails-status"> ( '+parseInt(u.emails_count)+" ) "+c+" </span>"),p=e('<span class="task-emails-count"> ( <span class="count">'+parseInt(u.emails_count)+"</span> ) emails </span>"),m=e('<span class="task-emails-error"> ( <span class="count">'+parseInt(u.emails_error)+"</span> ) </span>"),f=e('<span class="task-emails-success"> ( <span class="count">'+parseInt(u.emails_success)+"</span> ) </span>"),g=e('<a href="javascript:{}" class="task-error-msg" style="display:none;"></a>'),v=function(e){var t=[];for(var n in e)t.push(e[n]);return t.length>0&&t.join("<br />")}(t.data.error_msg);if(v&&(g.show(),g.on("click",(function(){var e=_.TaskWindow({width:425,className:"gk-task-window",show:function(e){}});e.setHeader(l("errors")),e.setContent('<span class="error-msg" style="float: none;">'+v.replace(/\\'/g,'"')+"</span>"),e.show()}))),1===parseInt(u.status)){d.append(p),d.append(f),d.append(m),i=u.id_newsletter_pro_task,-1==r.progressIds.indexOf(i)&&r.progressIds.push(i)}else d.append(h);return d.append(g),d}}});var M=new gk.data.Model({id:"id_newsletter_pro_send"}),k=new gk.data.DataSource({pageSize:10,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getSendHistory",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteSendHistory&deleteSendHistory",dateType:"json",success:function(e,t){e||alert(l("delete send history"))},error:function(e,t){alert(l("delete send history"))},complete:function(e,t){}}},schema:{model:M},trySteps:2,errors:{read:function(e,t,n){k.syncStepAvailableAdd(3e3,(function(){k.sync()}))}}});o.sendHistory.gkGrid({dataSource:k,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(t,i){t.data;var s,a,r=e("<div></div>"),o=void 0!==t.data.steps&&t.data.steps?t.data.steps.split(","):null,d=e('<div class="detail-content"></div>'),c=parseInt(t.data.id_newsletter_pro_tpl_history);function u(t,n,i){var s=e('\t\t\t\t\t\t\t\t\t<form id="'+NewsletterPro.uniqueId()+'" method="POST" action="'+NewsletterPro.dataStorage.get("ajax_url")+'#history">\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="export_send_history" value="1">\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="id_history" value="'+t+'">\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="export_emails_to_send" value="'+n+'">\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="export_emails_sent" value="'+i+'">\t\t\t\t\t\t\t\t\t\t<input type="hidden" name="csv_separator" value=";">\t\t\t\t\t\t\t\t\t</form>\t\t\t\t\t\t\t\t'),a=prompt(l("CSV Separator"),";");null!=a&&(";"==(a=e.trim(a))||","==a?(e(document.body).append(s),s.find('input[name="csv_separator"]').val(a),s.submit(),s.remove()):alert(l("Invalid CSV separator.")))}function h(t){e.postAjax({submit:"getSendHistoryDetail",getSendHistoryDetail:t},"html").done((function(t){d.html(t);var i={btnResend:d.find("#np-btn-resend-send"),checkboxResendLeft:d.find("#resend-left-list-send"),checkboxResendUndelivered:d.find("#resend-undelivered-list-send"),exportSend:d.find("#np-btn-export-send-history"),exportSendRem:d.find("#np-btn-export-send-history-rem")};i.exportSendRem.on("click",(function(e){u(c,1,0)})),i.exportSend.on("click",(function(e){u(c,0,1)})),i.btnResend.on("click",(function(t){var s;s=function(t){t||(n.showAjaxLoader(i.btnResend),e.postAjax({submit:"resendSendHistory",id:c,resendLeft:Number(i.checkboxResendLeft.is(":checked")),resendUndelivered:Number(i.checkboxResendUndelivered.is(":checked"))}).done((function(t){t.success?(void 0!==a&&a.hide(),window.NewsletterProComponents.objs.tabItems.trigger("tab_newsletter_5"),e("html, body").animate({scrollTop:parseInt(e("#emails-to-send").offset().top)-120},1e3),NewsletterProControllers.SendController.prepareEmails(t.emails)):n.alertErrors(t.errors)})).always((function(){n.hideAjaxLoader(i.btnResend)})))},e.postAjax({submit:"isSendNewsletterInProgress"}).done((function(e){return e?confirm("The newsletter is in progress. Do you want to stop the sending process before to proceed?")?void NewsletterProControllers.SendController.stopNewsletters().done((function(){return s(!1)})):s(!0):s(!1)}))}))}))}function p(t){return{id:null,instance:null,init:function(t){var n,i=this,a=t.step,r=t.count;function o(t){if(null!=s){var n=s.find("a.selected");e.each(n,(function(t,n){e(n).removeClass("selected")}))}this.addClass("selected"),h(t.id)}return i.id=a,i.instance=e('<a href="javascript:{}" class="history-details-steps" data-id="'+a+'">'+l("step")+" "+r+"</a>"),1==r&&(h(i.id),i.instance.addClass("selected")),(n=i.instance).on("click",(function(e){o.call(n,i,e)})),i},getInstance:function(){return this.instance}}.init(t)}var m=e("#task-history-delete").gkButton({name:"delete",title:l("delete"),className:"btn btn-default btn-margin task-delete",item:t,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(l("delete record"))})),icon:'<i class="icon icon-trash-o"></i> '}),f=e("#send-history-details").gkButton({name:"send-history-details",title:l("details"),className:"btn-margin send-history-details",click:function(t){var n,i,r=e("<div></div>");n=0,i=e('<div class="detail-buttons"></div>'),e.each(o,(function(e,t){var s=p({step:t,count:++n});i.append(s.getInstance())})),s=i,(a=_.TaskWindow({width:1024,height:800,className:"gk-task-window-details",show:function(e){}})).setHeader(l("details")),o.length>1&&r.append(s),r.append(d),a.setContent(r),a.show()},icon:'<i class="icon icon-info-circle"></i> '}),g=e("#send-history-view").gkButton({name:"send-history-view",title:l("view"),className:"btn btn-default btn-margin task-history-view",click:function(t){var n,i,s,a=e("<div></div>"),r=gkWindow({width:1024,height:800,className:"gk-task-window-view",show:function(e){}}),o=e("<span></span>");i=l("view template"),n=e('<a href="javascript:{}" target="_blank" class="history-details-steps view-template-in-br-button">'+l("veiw in a new window")+"</a>"),o.append(i),o.append(n),r.setHeader(o),s=e('<div class="view-template-in-br"></div>'),e.postAjax({submit:"renderTemplateHistory",renderTemplateHistory:c}).done((function(t){n.attr("href",t.url);var i=e('\n <div class="pqnp-new-template-history-box">\n <div class="pqnp-template-actions">\n <a href="'.concat(t.downloadUri,'" class="btn btn-default" download>\n <i class="icon icon-download fa fa-download"></i>\n ').concat(l("Download"),'\n </a>\n </div>\n <iframe style="display: block; vertical-align: top; height: 766px;" scrolling="yes" src="').concat(t.url,'"> </iframe>\n <div>\n '));s.html(i);var r=s.find("table").first();r.length&&a.parent().length&&a.parent().css({"background-color":r.css("background-color")})})),a.append(s),r.setContent(a),r.show()},icon:'<i class="icon icon-eye"></i> '});return c>0&&r.append(g),r.append(f),r.append(m),r},emails_count:function(e,t){return'<span style="padding: 0; margin: 0; font-weight: bold; float: none;">'+(parseInt(t)?t:"0")+"</span>"},emails_success:function(e,t){return'<span class="success-msg" style="padding: 0; margin: 0; float: none;">'+(parseInt(t)?t:"0")+"</span>"},emails_error:function(e,t){return'<span class="error-msg" style="padding: 0; margin: 0; float: none;">'+(parseInt(t)?t:"0")+"</span>"},unsubscribed:function(t,n){var i=e('<a href="javascript:{}" class="btn btn-default task-error-msg-text" style="display:none;"><span class="icon"></span><span style="font-weight: bold; color: #F00;">'+n+"</span></a>");if(parseInt(n)<=0)return n;var s=e("<div></div>");return i.css({display:"inline-block"}),i.on("click",(function(){var n;n=t.data.id_newsletter_pro_tpl_history,e.postAjax({submit:"getUnsubscribedDetails",id_newsletter:n},"html").done((function(e){s.html(e)}));var i=e("<div></div>"),a=_.TaskWindow({width:1024,height:800,className:"gk-task-window-details",show:function(e){}});a.setHeader(l("unsubscribed")),i.append(s),a.setContent(i),a.show()})),i},fwd_unsubscribed:function(t,n){var i=e('<a href="javascript:{}" class="btn btn-default task-error-msg-text" style="display:none;"><span class="icon"></span><span style="font-weight: bold; color: #F00;">'+n+"</span></a>");if(parseInt(n)<=0)return n;var s=e("<div></div>");return i.css({display:"inline-block"}),i.on("click",(function(){var n;n=t.data.id_newsletter_pro_tpl_history,e.postAjax({submit:"getTaskFwdUnsubscribedDetails",id_newsletter:n},"html").done((function(e){s.html(e)}));var i=e("<div></div>"),a=_.TaskWindow({width:1024,height:800,className:"gk-task-window-details",show:function(e){}});a.setHeader(l("unsubscribed")),i.append(s),a.setContent(i),a.show()})),i},error_msg:function(t,n){var i=e('<a href="javascript:{}" class="btn btn-default task-error-msg-text" style="display:none;"><span class="icon"></span>'+l("View")+"</a>"),s=function(e){if("object"===a(n)){var t=[];for(var i in e)t.push(e[i]);if(t.length>0)return t.join("<br />")}else if("string"==typeof n)return n;return!1}(n);return s&&(i.css({display:"inline-block"}),i.show(),i.on("click",(function(){var e=_.TaskWindow({width:425,className:"gk-task-window",show:function(e){}});e.setHeader(l("errors")),e.setContent('<span class="error-msg" style="float: none;">'+s.replace(/\\'/g,'"')+"</span>"),e.show()}))),i}}});var L=new gk.data.Model({id:"id_newsletter_pro_task"}),T=new gk.data.DataSource({pageSize:10,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getTasksHistory",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteTask&deleteTask",type:"DELETE",dateType:"json",success:function(e,t){e||alert(l("delete task"))},error:function(e,t){alert(l("delete task"))},complete:function(e,t){}}},schema:{model:L},trySteps:2,errors:{read:function(e,t,n){T.syncStepAvailableAdd(3e3,(function(){T.sync()}))}}});o.taskHistory.gkGrid({dataSource:T,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(t,n){t.data;var i,s=e("<div></div>"),a=void 0!==t.data.steps?t.data.steps.split(","):null,r=e('<div class="detail-content"></div>'),o=parseInt(t.data.id_newsletter_pro_tpl_history);function d(t){e.postAjax({submit:"getTasksHistoryDetail",getTasksHistoryDetail:t},"html").done((function(e){r.html(e)}))}function c(t){return{id:null,instance:null,init:function(t){var n,s=this,a=t.step,r=t.count;function o(t){if(null!=i){var n=i.find("a.selected");e.each(n,(function(t,n){e(n).removeClass("selected")}))}this.addClass("selected"),d(t.id)}return s.id=a,s.instance=e('<a href="javascript:{}" class="history-details-steps" data-id="'+a+'">'+l("step")+" "+r+"</a>"),1==r&&(d(s.id),s.instance.addClass("selected")),(n=s.instance).on("click",(function(e){o.call(n,s,e)})),s},getInstance:function(){return this.instance}}.init(t)}var u=e("#task-history-delete").gkButton({name:"delete",title:l("delete"),className:"btn btn-default btn-margin task-delete",item:t,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(l("delete record"))})),icon:'<i class="icon icon-trash-o"></i> '}),h=e("#task-history-details").gkButton({name:"history-details",title:l("details"),className:"btn-margin task-history-details",click:function(t){var n,s,o=e("<div></div>");n=0,s=e('<div class="detail-buttons"></div>'),e.each(a,(function(e,t){var i=c({step:t,count:++n});s.append(i.getInstance())})),i=s;var d=_.TaskWindow({width:1024,height:800,className:"gk-task-window-details",show:function(e){}});d.setHeader(l("details")),a.length>1&&o.append(i),o.append(r),d.setContent(o),d.show()},icon:'<i class="icon icon-info-circle"></i> '}),p=e("#task-history-view").gkButton({name:"history-view",title:l("view"),className:"btn btn-default btn-margin task-history-view",click:function(t){var n,i=e("<div></div>"),s=gkWindow({width:1024,height:800,className:"gk-task-window-view",show:function(e){}}),a=e("<span></span>"),r=l("view template"),d=e('<a href="javascript:{}" target="_blank" class="history-details-steps view-template-in-br-button">'+l("veiw in a new window")+"</a>");a.append(r),a.append(d),s.setHeader(a),n=e('<div class="view-template-in-br"></div>'),e.postAjax({submit:"renderTemplateHistory",renderTemplateHistory:o}).done((function(t){d.attr("href",t.url);var s=e('\n <div class="pqnp-new-template-history-box">\n <div class="pqnp-template-actions">\n <a href="'.concat(t.downloadUri,'" class="btn btn-default" download>\n <i class="icon icon-download fa fa-download"></i>\n ').concat(l("Download"),'\n </a>\n </div>\n <iframe style="display: block; vertical-align: top; height: 766px;" scrolling="yes" src="').concat(t.url,'"> </iframe>\n <div>\n '));n.html(s);var a=n.find("table").first();a.length&&i.parent().length&&i.parent().css({"background-color":a.css("background-color")})})),i.append(n),s.setContent(i),s.show()},icon:'<i class="icon icon-eye"></i> '});return o>0&&s.append(p),s.append(h),s.append(u),s},emails_count:function(e,t){return'<span style="padding: 0; margin: 0; font-weight: bold; float: none;">'+(parseInt(t)?t:"0")+"</span>"},emails_success:function(e,t){return'<span class="success-msg" style="padding: 0; margin: 0; float: none;">'+(parseInt(t)?t:"0")+"</span>"},emails_error:function(e,t){return'<span class="error-msg" style="padding: 0; margin: 0; float: none;">'+(parseInt(t)?t:"0")+"</span>"},unsubscribed:function(t,n){var i=e('<a href="javascript:{}" class="btn btn-default task-error-msg-text" style="display:none;"><span class="icon"></span><span style="font-weight: bold; color: #F00;">'+n+"</span></a>");if(parseInt(n)<=0)return n;var s=e("<div></div>");return i.css({display:"inline-block"}),i.on("click",(function(){var n;n=t.data.id_newsletter_pro_tpl_history,e.postAjax({submit:"getTaskUnsubscribedDetails",id_newsletter:n},"html").done((function(e){s.html(e)}));var i=e("<div></div>"),a=_.TaskWindow({width:1024,height:800,className:"gk-task-window-details",show:function(e){}});a.setHeader(l("unsubscribed")),i.append(s),a.setContent(i),a.show()})),i},fwd_unsubscribed:function(t,n){var i=e('<a href="javascript:{}" class="btn btn-default task-error-msg-text" style="display:none;"><span class="icon"></span><span style="font-weight: bold; color: #F00;">'+n+"</span></a>");if(parseInt(n)<=0)return n;var s=e("<div></div>");return i.css({display:"inline-block"}),i.on("click",(function(){var n;n=t.data.id_newsletter_pro_tpl_history,e.postAjax({submit:"getTaskFwdUnsubscribedDetails",id_newsletter:n},"html").done((function(e){s.html(e)}));var i=e("<div></div>"),a=_.TaskWindow({width:1024,height:800,className:"gk-task-window-details",show:function(e){}});a.setHeader(l("unsubscribed")),i.append(s),a.setContent(i),a.show()})),i},error_msg:function(t,n){var i=e('<a href="javascript:{}" class="btn btn-default task-error-msg-text" style="display:none;"><span class="icon"></span>'+l("View")+"</a>"),s=function(e){if("object"===a(n)){var t=[];for(var i in e)t.push(e[i]);if(t.length>0)return t.join("<br />")}else if("string"==typeof n)return n;return!1}(n);return s&&(i.css({display:"inline-block"}),i.show(),i.on("click",(function(){var e=_.TaskWindow({width:425,className:"gk-task-window",show:function(e){}});e.setHeader("Errors"),e.setContent('<span class="error-msg" style="float: none;">'+s.replace(/\\'/g,'"')+"</span>"),e.show()}))),i}}}),o.clearTaskHistory.on("click",(function(){e.postAjax({submit:"clearTaskHistory",clearTaskHistory:!0}).done((function(e){e.status?(T||NewsletterPro.modules.task.ui.components.taskHistory).sync():alert(e.msg)}))})),o.clearSendHistory.on("click",(function(){e.postAjax({submit:"clearSendHistory",clearSendHistory:!0}).done((function(e){e.status?(k||NewsletterPro.modules.task.ui.components.sendHistory).sync():alert(e.msg)}))})),o.clearSendDetails.on("click",(function(){n.showAjaxLoader(o.clearSendDetails),e.postAjax({submit:"clearSendHistoryDetails"}).done((function(e){e.status||n.alertErrors(e.errors)})).always((function(){n.hideAjaxLoader(o.clearSendDetails)}))})),o.clearTaskDetails.on("click",(function(){n.showAjaxLoader(o.clearTaskDetails),e.postAjax({submit:"clearTaskHistoryDetails"}).done((function(e){e.status||n.alertErrors(e.errors)})).always((function(){n.hideAjaxLoader(o.clearTaskDetails)}))})),o.taskMoreInfoButton.on("click",(function(t){o.taskMoreInfo.toggle(),o.taskMoreInfo.is(":visible")?e(this).text(l("less info")):e(this).text(l("more info"))})),_.add("taskList",w),_.add("taskHistory",T),_.add("sendHistory",k),_.add("taskWindow",g)})),i},initStorage:function(){NewsletterPro;this.storage={template:this.dom.taskTemplateSelect.val(),emails:[],mysql_date:"",smtp:"",id_lang:null,id_newsletter_pro_smtp:0,sleep:parseInt(this.dom.taskSleep.val())||5,send_method:"mail"}},setStorage:function(e,t){this.storage[e]=t},ready:function(t){var n=this;e(document).ready((function(){var i=e("#task-template"),s=e(e.trim(i.html()));void 0!==s[1]&&(s=e(s[1])),n.dom={chooseNewsletterTemplate:e("#change-newsletter-template"),taskButton:e("#new-task"),testEmailInput:e("#test-email-input"),taskList:e("#task-list"),taskHistory:e("#task-history"),clearTaskHistory:e("#clear-task-history"),clearTaskDetails:e("#clear-task-details"),clearSendHistory:e("#clear-send-history"),clearSendDetails:e("#clear-send-details"),sendHistory:e("#send-history"),taskMoreInfo:e("#task-more-info"),taskMoreInfoButton:e("#task-more-info-button"),taskTemplate:s,datepicker:s.find("#task-datepicker"),emailsCount:s.find("#selected_emails_count"),taskSmptSelect:s.find("#task-smtp-select"),taskTemplateSelect:s.find("#task-select-template"),taskSmtpTest:s.find("#task-smtp-test"),taskSmtpTestMessage:s.find("#task-smtp-test-message"),taskEmailTest:s.find("#task-email-test"),addTask:s.find("#add-task"),taskSleep:s.find("#task-sleep"),btnTaskLangSelectTest:e("#task-test-email-lang-select"),mailMethod:s.find("#task-mail-method"),smtpMethod:s.find("#task-smtp-method"),smtpSelectContainer:s.find("#div-task-smtp-select")},t(n.dom)}))},getStorage:function(){return this.storage},taskClick:function(t){var n=t.dom,i=t.getEmails();if(0==i.length)return alert(this.data("trans-noemail")),!1;t.setStorage("emails",i),t.ui.components.taskWindow.show(),e.postAjax({submit_template_controller:"getNewsletterTemplates"}).done((function(e){if(e.length){n.taskTemplateSelect.empty();for(var t=0;t<e.length;t++){var i=e[t],s='<option value="'+i.filename+'" '+(i.selected?'selected="selected"':"")+">"+i.name+"</option>";n.taskTemplateSelect.append(s)}}}));var s=NewsletterPro.modules.smtp.ui.components.taskSmptSelect.getSelected();null!=s&&t.setStorage("id_newsletter_pro_smtp",s.data.id_newsletter_pro_smtp)},getEmails:function(){return NewsletterProControllers.SendController.getSelectedEmails()},ui:{components:{},init:function(){return this},add:function(e,t){this.components[e]=t},TaskWindow:function t(n){if(!(this instanceof t))return new t(n);var i=this;return task=NewsletterPro.modules.task,l=NewsletterPro.translations.l(NewsletterPro.translations.modules.task),this.template=function(){var t=e('<div class="gk-background"></div>'),s=e('<div><div class="gk-header"><span class="gk-title"></span><a href="javascript:{}" class="gk-close"><i class="icon icon-remove"></i></a></div><div class="bootstrap gk-content"></div></div>'),a=e("body"),r=n.width||0,o=n.height||0;return t.css({width:"100%",height:"100%",top:0,left:0,position:"fixed",display:"none","z-index":"99999"}),t.appendTo(a),s.css({width:n.width||"auto",height:n.height||"auto",position:"fixed",left:0!=r?a.width()/2-r/2:a.width()/2,top:0!=o?e(window).height()/2-o/2:e(window).height()/2,display:"none","z-index":"999999"}),s.header=s.find(".gk-header"),s.content=s.find(".gk-content"),s.close=s.find(".gk-close"),s.background=t,s.addClass("gk-task-window"),s.addClass(n.className),t.addClass(n.className+"-background"),s.appendTo(a),function(t,n){t.close.on("click",(function(e){i.hide()})),n.on("click",(function(){t.close.trigger("click")})),e(window).resize((function(e){i.resetPosition()}))}(s,t),s}(),this.resetPosition=function(){i.template.css({left:e("body").width()/2-i.template.width()/2,top:e(window).height()/2-i.template.height()/2})},this.setHeader=function(e){this.template.header.find(".gk-title").html(e)},this.setContent=function(e){this.template.content.html(e)},this.hide=function(){return this.template.fadeOut(200),this.template.background.fadeOut(200).promise()},this.show=function(){return this.resetPosition(),this.template.fadeIn(200),"function"==typeof n.show&&n.show(i),this.template.background.fadeIn(200).promise()},this}}.init()}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){var i={"./af":103,"./af.js":103,"./ar":104,"./ar-dz":105,"./ar-dz.js":105,"./ar-kw":106,"./ar-kw.js":106,"./ar-ly":107,"./ar-ly.js":107,"./ar-ma":108,"./ar-ma.js":108,"./ar-sa":109,"./ar-sa.js":109,"./ar-tn":110,"./ar-tn.js":110,"./ar.js":104,"./az":111,"./az.js":111,"./be":112,"./be.js":112,"./bg":113,"./bg.js":113,"./bm":114,"./bm.js":114,"./bn":115,"./bn-bd":116,"./bn-bd.js":116,"./bn.js":115,"./bo":117,"./bo.js":117,"./br":118,"./br.js":118,"./bs":119,"./bs.js":119,"./ca":120,"./ca.js":120,"./cs":121,"./cs.js":121,"./cv":122,"./cv.js":122,"./cy":123,"./cy.js":123,"./da":124,"./da.js":124,"./de":125,"./de-at":126,"./de-at.js":126,"./de-ch":127,"./de-ch.js":127,"./de.js":125,"./dv":128,"./dv.js":128,"./el":129,"./el.js":129,"./en-au":130,"./en-au.js":130,"./en-ca":131,"./en-ca.js":131,"./en-gb":132,"./en-gb.js":132,"./en-ie":133,"./en-ie.js":133,"./en-il":134,"./en-il.js":134,"./en-in":135,"./en-in.js":135,"./en-nz":136,"./en-nz.js":136,"./en-sg":137,"./en-sg.js":137,"./eo":138,"./eo.js":138,"./es":139,"./es-do":140,"./es-do.js":140,"./es-mx":141,"./es-mx.js":141,"./es-us":142,"./es-us.js":142,"./es.js":139,"./et":143,"./et.js":143,"./eu":144,"./eu.js":144,"./fa":145,"./fa.js":145,"./fi":146,"./fi.js":146,"./fil":147,"./fil.js":147,"./fo":148,"./fo.js":148,"./fr":149,"./fr-ca":150,"./fr-ca.js":150,"./fr-ch":151,"./fr-ch.js":151,"./fr.js":149,"./fy":152,"./fy.js":152,"./ga":153,"./ga.js":153,"./gd":154,"./gd.js":154,"./gl":155,"./gl.js":155,"./gom-deva":156,"./gom-deva.js":156,"./gom-latn":157,"./gom-latn.js":157,"./gu":158,"./gu.js":158,"./he":159,"./he.js":159,"./hi":160,"./hi.js":160,"./hr":161,"./hr.js":161,"./hu":162,"./hu.js":162,"./hy-am":163,"./hy-am.js":163,"./id":164,"./id.js":164,"./is":165,"./is.js":165,"./it":166,"./it-ch":167,"./it-ch.js":167,"./it.js":166,"./ja":168,"./ja.js":168,"./jv":169,"./jv.js":169,"./ka":170,"./ka.js":170,"./kk":171,"./kk.js":171,"./km":172,"./km.js":172,"./kn":173,"./kn.js":173,"./ko":174,"./ko.js":174,"./ku":175,"./ku.js":175,"./ky":176,"./ky.js":176,"./lb":177,"./lb.js":177,"./lo":178,"./lo.js":178,"./lt":179,"./lt.js":179,"./lv":180,"./lv.js":180,"./me":181,"./me.js":181,"./mi":182,"./mi.js":182,"./mk":183,"./mk.js":183,"./ml":184,"./ml.js":184,"./mn":185,"./mn.js":185,"./mr":186,"./mr.js":186,"./ms":187,"./ms-my":188,"./ms-my.js":188,"./ms.js":187,"./mt":189,"./mt.js":189,"./my":190,"./my.js":190,"./nb":191,"./nb.js":191,"./ne":192,"./ne.js":192,"./nl":193,"./nl-be":194,"./nl-be.js":194,"./nl.js":193,"./nn":195,"./nn.js":195,"./oc-lnc":196,"./oc-lnc.js":196,"./pa-in":197,"./pa-in.js":197,"./pl":198,"./pl.js":198,"./pt":199,"./pt-br":200,"./pt-br.js":200,"./pt.js":199,"./ro":201,"./ro.js":201,"./ru":202,"./ru.js":202,"./sd":203,"./sd.js":203,"./se":204,"./se.js":204,"./si":205,"./si.js":205,"./sk":206,"./sk.js":206,"./sl":207,"./sl.js":207,"./sq":208,"./sq.js":208,"./sr":209,"./sr-cyrl":210,"./sr-cyrl.js":210,"./sr.js":209,"./ss":211,"./ss.js":211,"./sv":212,"./sv.js":212,"./sw":213,"./sw.js":213,"./ta":214,"./ta.js":214,"./te":215,"./te.js":215,"./tet":216,"./tet.js":216,"./tg":217,"./tg.js":217,"./th":218,"./th.js":218,"./tk":219,"./tk.js":219,"./tl-ph":220,"./tl-ph.js":220,"./tlh":221,"./tlh.js":221,"./tr":222,"./tr.js":222,"./tzl":223,"./tzl.js":223,"./tzm":224,"./tzm-latn":225,"./tzm-latn.js":225,"./tzm.js":224,"./ug-cn":226,"./ug-cn.js":226,"./uk":227,"./uk.js":227,"./ur":228,"./ur.js":228,"./uz":229,"./uz-latn":230,"./uz-latn.js":230,"./uz.js":229,"./vi":231,"./vi.js":231,"./x-pseudo":232,"./x-pseudo.js":232,"./yo":233,"./yo.js":233,"./zh-cn":234,"./zh-cn.js":234,"./zh-hk":235,"./zh-hk.js":235,"./zh-mo":236,"./zh-mo.js":236,"./zh-tw":237,"./zh-tw.js":237};function s(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}s.keys=function(){return Object.keys(i)},s.resolve=a,e.exports=s,s.id=272},function(e,t,n){(function(e){NewsletterPro.namespace("modules.forward"),NewsletterPro.modules.forward={dom:null,box:null,init:function(t){return this.box=t,this.ready((function(t){var n=NewsletterPro.translations.l(NewsletterPro.translations.modules.forward),i=new gk.data.Model({id:"id_newsletter_pro_forward"}),s=new gk.data.DataSource({pageSize:10,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getForwardList",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteForwardFromEmail&id",dateType:"json",success:function(e,t){e||alert(n("delete record"))},error:function(e,t){alert(n("delete record"))},complete:function(e,t){}},search:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=searchForwarder&value",dataType:"json"}},schema:{model:i},trySteps:2,errors:{read:function(e,t,n){s.syncStepAvailableAdd(3e3,(function(){s.sync()}))}}});t.forwardList.gkGrid({dataSource:s,selectable:!1,currentPage:1,pageable:!0,template:{count:function(e,t){return'<span style="font-weight: bold;">'+e.data.count+"</span>"},actions:function(t,i){t.data;var s,a=e("<div></div>");s=e("#forwarder-delete").gkButton({name:"delete",title:n("delete"),className:"btn btn-default btn-margin pull-right forwarder-delete",item:t,command:"delete",icon:'<i class="icon icon-trash-o"></i> ',confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(n("delete added confirm"))}))});var r=e("<div></div>");function o(e){a.append(e)}return o(e("#forwarder-details").gkButton({name:"forwarder-details",title:n("details"),className:"btn btn-default btn-margin pull-right forwarder-details",icon:'<i class="icon icon-info-circle"></i> ',click:function(i){var s;s=t.data.from,e.postAjax({submit:"getForwarderDetails",email:s},"html").done((function(e){r.html(e)}));var a=e("<div></div>"),o=gkWindow({width:800,height:500,className:"gk-task-window-details",show:function(e){}});o.setHeader(n("forward to emails")),a.append(r),o.setContent(a),o.show()}})),o(s),a}}}),t.forwardList.addHeader((function(t){var i,a,r,o,l=null;r=e('<div class="customers-search-div"></div>'),search=e('<input class="gk-input customers-search" type="text">'),searchLoading=e('<span class="customers-search-loading" style="display: none;"></span>'),search.on("keyup",(function(t){var n=e.trim(search.val());if(n.length<3)return s.clearSearch(),!0;searchLoading.show(),null!=l&&clearTimeout(l),l=setTimeout((function(){s.search(n).done((function(e){s.applySearch(e),searchLoading.hide()}))}),300)})),o=e("<span>"+n("search")+":</span>"),r.append(search),r.append(searchLoading);var d,c=e("#clear-filters").gkButton({name:"clear-filters",title:n("clear filters"),className:"clear-filters",css:{"padding-left":"10px","padding-right":"10px","margin-left":"0","margin-right":"0",float:"right"},attr:{"data-checked":0},click:function(e){search.val(""),s.clearSearch()},icon:'<i class="icon icon-times"></i> '});return d=[o,r,c],i=e("<tr></tr>"),a=e('<th class="gk-header-datagrid customers-header" colspan="'+t+'"></th>'),e.each(d,(function(e,t){a.append(t)})),i.html(a),i}),"prepend"),t.clearForwarders.on("click",(function(){e.postAjax({submit:"clearForwarders"},"html").done((function(e){parseInt(e)?s.sync():alert(n("delete forwards records error"))}))}))})),this},ready:function(t){var n=this;e(document).ready((function(){n.dom={forwardList:e("#forward-list"),clearForwarders:e("#clear-forwarders")},t(n.dom)}))},deleteForwardToEmail:function(t){var n=NewsletterPro.translations.l(NewsletterPro.translations.modules.forward);e.postAjax({submit:"deleteForwardToEmail",email:t.data("email")},"html").done((function(e){parseInt(e)?t.parent().parent().parent().remove():alert(n("delete record"))}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.statistics"),NewsletterPro.modules.statistics={domSave:null,dom:null,box:null,vars:{},events:{},init:function(t){var n;return this.box=t,this.ready((function(t){var i=new gk.data.Model({id:"id_product"});n=new gk.data.DataSource({pageSize:15,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getStatistics",dataType:"json"}},schema:{model:i},trySteps:2,errors:{read:function(e,t,i){n.syncStepAvailableAdd(3e3,(function(){n.sync()}))}}}),t.statisticsTable.gkGrid({dataSource:n,selectable:!1,currentPage:1,pageable:!0,template:{image:function(e,t){return'<img src="'+e.data.thumb_path+'">'},name:function(e,t){return'<a href="'+e.data.link+'" target="_blank" style="color: #00aff0;">'+(i=i||200,((n=t).length>i?n.slice(0,i)+"...":n)+"</a>");var n,i}}}),t.clearStatistics.on("click",(function(){e.postAjax({submit:"clearStatistics"}).done((function(e){e.status?n.sync():alert(e.errors.join("\n"))}))}))})),this},ready:function(t){var n=this;e(document).ready((function(){n.dom={statisticsTable:e("#statistics-table"),clearStatistics:e("#clear-statistics")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.filters"),NewsletterPro.modules.filters={dom:null,box:null,init:function(e){this.box=e,this.ready((function(e){}))},ready:function(t){var n=this;e(document).ready((function(){n.dom={},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.selectProducts"),NewsletterPro.modules.selectProducts={dom:null,box:null,timer:null,productSelection:null,vars:{},init:function(t){var n=this;function i(){var e,t=NewsletterPro,i=0,s=t.dataStorage.get("id_selected_lang"),a=t.components.Product.view[s];if(null==a)return!1;i=(e=a.find('[class="np-newsletter-layout-'+s+'"]')).length>0?e.width():a.width(),n.dom.spWidth.html(i)}function s(e,t){null!=n.timer&&clearTimeout(n.timer),n.timer=setTimeout((function(){e()}),t)}function a(e,t,n){var i=n*(e.data.image_height/e.data.image_width);t.width(n),t.height(i),t.attr({width:n,height:i})}function r(e,t){return parseInt(e.width)<parseInt(t.width)?-1:parseInt(e.width)>parseInt(t.width)?1:0}function o(e){var t=NewsletterPro.dataStorage.data.images_size,n="";t.sort(r);for(var i=0;i<t.length;i++){var s=t[i];e>Number(s.width)&&void 0!==t[i+1]&&(n=t[i+1].name)}return t.length&&!n.length&&(n=t[0].name),n}function l(t){var n=NewsletterProComponents.objs.selectedProducts.getItemsIds(),i=o(t),s=new e.Deferred;return e.postAjax({submit:"getImagesOfProducts",ids:n,image_type:i}).done((function(e){e.status?s.resolve(e.products):alert(e.errors.join("\n"))})),s.promise()}function d(e){var t=NewsletterProComponents.objs.selectedProducts;l(e).done((function(n){t.parseProducts((function(t,i,s){c(n,t),a(t,t.dom.image,e)}))}))}function c(e,t){var n=parseInt(t.id);e.hasOwnProperty(n)&&(t.data.image_path=e[n].src,t.data.image_width=e[n].width,t.data.image_height=e[n].height,t.dom.image.attr({src:e[n].src,width:e[n].width,height:e[n].height}))}function u(){NewsletterProComponents.objs.selectedProducts.renderImages=!0}function h(){var e=NewsletterProComponents.objs.categoryList,t=NewsletterProComponents.objs.selectedProducts;null!==e.currentItem&&(e.categoryListCallback(e.currentItem.id),t.resetItems())}return n.box=t,n.vars.lastImageWidth=0,n.updateProductTemplateView=function(e,i){if(e){var s=t.parseProductHeader(e,i);s.hasOwnProperty("content")&&"template"==s.content?t.dataStorage.set("is_product_template",!0):t.dataStorage.set("is_product_template",!1)}var a=n.dom;t.dataStorage.get("is_product_template")?(a.productTemplateContentTextarea.show(),a.productTemplateContent.hide()):(a.productTemplateContentTextarea.hide(),a.productTemplateContent.show())},n.trimString=function(e,t,n){return trimString(e,t,n)},n.setImageSizeByWidth=function(e,t,n){return a(e,t,n)},n.setImagesOfProducts=function(e){return d(e)},n.getImagesOfProducts=function(e){return l(e)},n.setImageOfProduct=function(e,t){return c(e,t)},n.refreshProducts=function(){return h()},n.getImageTypeByWidthValue=function(e){return o(e)},n.isDynamicVar=function(t){return function(t){var n=e.trim(t.html());return!!/\{\$\w+/.test(n)}(t)},n.updateProductsWidth=function(){!function(){var e=n.dom,t=e.selectedProducts.width();e.spWidth.html(t)}()},n.displayProductsWidth=function(){return i()},n.ready((function(a){try{a.productTemplateContentTextarea.on("keydown",(function(e){var t=e.keyCode,n=a.productTemplateContentTextarea.get(0);if(9==t)try{return i=n.getCaretPosition()+" ".length,n.value=n.value.substring(0,n.getCaretPosition())+" "+n.value.substring(n.getCaretPosition(),n.value.length),n.setCaretPosition(i),!1}catch(e){console.warn(e)}if(8==t)try{var i;if(" "==n.value.substring(n.getCaretPosition()-4,n.getCaretPosition()))i=n.getCaretPosition()-3,n.value=n.value.substring(0,n.getCaretPosition()-3)+n.value.substring(n.getCaretPosition(),n.value.length),n.setCaretPosition(i)}catch(e){console.warn(e)}}))}catch(e){console.warn(e)}e(window).resize((function(){n.refreshSliders()}));var r,o,l,c,p,m,f,_,g,v,y=NewsletterPro.translations.l(NewsletterPro.translations.modules.selectProducts),b=a.templateGrid,w=t.dataStorage;n.productSelection=new t.components.ProductSelection({}),n.updateProductTemplateView(t.dataStorage.get("product_tpl_header"),!1);var M=function(){if(t.components.Product.count()){var e=t.components.Product.first(),n=t.dataStorage.getNumber("id_selected_lang"),i=!!e.viewInstance.hasOwnProperty(n)&&e.viewInstance[n],s=i?i.find(".newsletter-pro-name"):[],a=i?i.find(".newsletter-pro-description_short"):[],r=i?i.find(".newsletter-pro-description"):[];c.show(),p.show(),i&&i.find(".newsletter-pro-image").length>0?l.show():l.hide(),s.length>0?s.html().match(/\{\$name/i)?T.hide():T.show():T.hide(),a.length>0?a.html().match(/\{\$description_short/i)?D.hide():D.show():D.hide(),r.length>0?r.html().match(/\{\$description/i)?S.hide():S.show():S.hide(),t.objSize(e.templateHeader)&&(e.templateHeader.hasOwnProperty("displayColumns")&&(e.templateHeader.displayColumns?c.show():c.hide()),e.templateHeader.hasOwnProperty("displayImageSize")&&(e.templateHeader.displayImageSize?l.show():l.hide()),e.templateHeader.hasOwnProperty("displayProductWidth")&&(e.templateHeader.displayProductWidth?p.show():p.hide()))}else l.hide(),p.hide(),T.hide(),D.hide(),S.hide(),c.show()};function k(i){var s=a.tinyProduct,r=a.viewProductTemplate;NewsletterProComponents.objs.selectedProducts;e.each(o.items,(function(e,t){t.data.selected=!1})),i.data.selected=!0,e.postAjax({submit:"getProductTemplateContent",readcontent:1,data:i.data}).done((function(e){if(e.status){void 0===n.lastItemChangedName?(n.lastItemChangedName=i.data.filename,m.val(e.columns)):(n.lastItemChangedName!==i.data.filename?m.val(e.columns):m.val(w.data.product_tpl_nr),n.lastItemChangedName=i.data.filename),a.productTemplateContentTextarea.val(e.render),s.setContent(e.render),t.modules.selectProducts.updateProductTemplateView(e.render),setTimeout((function(){s.setContent(s.getContent())}),250);try{r.html(e.render)}catch(e){}t.dataStorage.set("product_template",e.content),t.components.Product.changeTemplate(e.content),M(),c.setValue(parseInt(m.val())),w.add("product_tpl_nr",parseInt(m.val()))}else alert(e.errors.join("\n"))}))}function L(t){var n=e.grep(w.data.images_size,(function(e){return e.name===t}));return!!n.length&&parseInt(n[0].width)}n.productSelection.subscribe("add",(function(e){i(),M()})),n.productSelection.subscribe("remove",(function(e){var t=NewsletterProComponents.objs.productList;i(),M(),t.parseItems((function(t,n){if(Number(t)==Number(e.idProduct))return n.setToAdd(),!0}))})),r=new gk.data.Model({id:"id"}),o=new gk.data.DataSource({pageSize:6,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getProductTemplates",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteProductTemplate&id",type:"POST",dateType:"json",success:function(e,t){e.status||alert(e.errors.join("\n"))},error:function(e,t){alert(y("delete template error"))},complete:function(e,t){}}},schema:{model:r},trySteps:2,errors:{read:function(e,t,n){o.syncStepAvailableAdd(3e3,(function(){o.sync()}))}}}),b.gkGrid({dataSource:o,selectable:!0,currentPage:1,pageable:!0,template:{info:function(e){var t=e.data.info;return t.hasOwnProperty("color")?'\t\t\t\t\t\t\t\t<div style="background-color: '+t.color+"; padding: 5px 10px; color: "+t.display_text_color+'">'+t.for_template_name+"</div>\t\t\t\t\t\t\t":""},actions:function(t){var n,i,s=t.data.name.toLowerCase(),a=(t.data.filename,"");return"default"!==s&&(a=e("#delete-product-template").gkButton({title:y("delete template"),name:"delete-product-template",click:function(e){var n=t.data.selected;if(!confirm(y("confirm delete template")))return!1;if(t.destroy("status"),n){var i=o.getItemByValue("data.filename","default.html");o.setSelected(i),k(i)}},icon:'<i class="icon icon-trash-o"></i> '})),n=[a],i=e("<div></div>"),e.each(n,(function(e,t){i.append(t)})),i}},events:{select:function(e){k(e)}},defineSelected:function(e){return e.data.selected},done:function(){M()}}),b.addFooter((function(t){var i,s,a,r,d,p,b,M;function T(t,n,i,s){var a=e('<select class="gk-select"></select>');return e.each(t,(function(t,r){var o=e("<option "+("function"==typeof s?s(r):"")+' value="'+r[n]+'" '+function(e){return!!e.hasOwnProperty("selected")&&(e.selected?' selected="selected" ':"")}(r)+">"+i(r)+"</option>");a.append(o)})),a.css({width:"auto","margin-left":"6px","margin-right":"6px"}),a}return g=e("<span>"+y("image size")+"</span>"),(v=T(w.data.images_size,"name",(function(e){return e.width+"x"+e.height+" ( "+e.name+" )"}),(function(e){return' data-width="'+e.width+'" data-height="'+e.height+'" '}))).on("change",(function(t){var i=e(this);val=i.val(),width=L(val),width&&(l.setValue(width),n.addVar("lastImageWidth",width)),e.postAjax({submit:"changeProductImageSize",value:val}).done((function(e){var t;e.length?alert(e.join("\n")):(null!=(t=o.selected)&&k(t),h())}))})),a=e("<span>"+y("language")+"</span>"),(r=T(w.data.languages,"id_lang",(function(e){return e.name}))).on("change",(function(t){var n=e(this);val=n.val(),u(),e.postAjax({submit:"changeProductLanguage",value:val}).done((function(e){e.length?alert(e.join("\n")):h()})).always((function(){}))})),d=e("<span>"+y("currency")+"</span>"),(p=T(w.data.currencies,"id_currency",(function(e){return e.sign+" ( "+e.name+" ) "}))).on("change",(function(t){var n=e(this);val=n.val(),u(),e.postAjax({submit:"changeProductCurrency",value:val}).done((function(e){e.length?alert(e.join("\n")):h()})).always((function(){}))})),f=e("<span>"+y("products per row")+"</span>"),(m=e('<input class="form-control text-center" type="text" value="'+w.data.product_tpl_nr+'">')).css({width:"40px","margin-right":"6px","margin-left":"6px"}),_=e("<span></span>"),m.on("change",(function(t){var n=e(this),i=parseInt(n.val());u(),i=/^\d{1}$/.test(i)?parseInt(i):3,n.val(i),e.postAjax({submit:"saveProductNumberPerRow",number:i}).done((function(e){e.status||(alert(e.errors.join("\n")),i=3,n.val(i)),w.add("product_tpl_nr",parseInt(i)),c.setValue(i),h()}))})),b=e('<a href="'+w.data.new_image_size_link+'" class="btn btn-default pull-right" target="_blank"><i class="icon icon-plus-square"> </i> '+y("add image size")+"</a>"),M=[g,v,a,r,d,p,f,m,_,b],i=e("<tr></tr>"),s=e('<td class="form-inline gk-footer" colspan="'+t+'"></td>'),e.each(M,(function(e,t){s.append(t)})),i.html(s),i}),"append");var T=gkSlider({target:a.sliderName,min:0,max:250,value:250,values:[0,250],corectPosition:-5,move:function(e){s((function(){t.components.Product.setNameLenght(e.getValue())}),100)},done:function(e){}}),S=gkSlider({target:a.sliderDescription,min:0,max:500,value:500,values:[0,500],corectPosition:-5,move:function(e){s((function(){t.components.Product.setDescriptionLength(e.getValue())}),100)},done:function(e){}}),D=gkSlider({target:a.sliderDescriptionShort,min:0,max:250,value:250,values:[0,250],corectPosition:-5,move:function(e){s((function(){t.components.Product.setShortDescriptionLenght(e.getValue())}),100)},done:function(e){}});t.components.Product.setLayout(parseInt(w.data.product_tpl_nr)),c=gkSlider({target:a.sliderProductsPerRow,min:0,max:9,value:parseInt(w.data.product_tpl_nr),values:[0,1,9],corectPosition:-2,remplaceValues:{0:y("auto")},move:function(e){},start:function(e){},done:function(e){t.components.Product.setLayout(e.getValue()),i()},onSetValue:function(e,n){t.components.Product.setLayout(n.getValue()),i()}});var Y=0,x=e.map(w.data.images_size,(function(e){return e.selected&&(Y=parseInt(e.width)),parseInt(e.width)}));l=gkSlider({target:a.sliderImageSize,snap:6,min:x.length?x[0]:0,max:x.length?x[x.length-1]:0,value:Y,values:x,prefix:"px",corectPosition:-10,move:function(e){s((function(){var n=e.getValue();t.components.Product.setImageSize(n)}),100)},done:function(e){d(e.getValue()),n.addVar("lastImageWidth",e.getValue())}});var P=x.length?x[0]:0,C=x.length?x[x.length-1]:0,j=860;j=C>=j-100?C+200:j;p=gkSlider({target:a.sliderProductsWidth,snap:6,min:0,max:j,value:0,values:[0,P,C,j],remplaceValues:{0:"auto"},prefix:"px",corectPosition:-10,move:function(e){s((function(){t.components.Product.setWidth(e.getValue())}),100)},done:function(e){}}),n.addVar("sliderName",T),n.addVar("sliderDescription",S),n.addVar("sliderDescriptionShort",D),n.addVar("sliderProductsPerRow",c),n.addVar("sliderImageSize",l),n.addVar("sliderProductsWidth",p),n.addVar("nbProducts",m),n.addVar("templateDataSource",o)})),this},refreshSliders:function(){this.vars.sliderName.refresh(),this.vars.sliderDescription.refresh(),this.vars.sliderDescriptionShort.refresh(),this.vars.sliderProductsPerRow.refresh(),this.vars.sliderImageSize.refresh(),this.vars.sliderProductsWidth.refresh()},ready:function(t){var n=this;e(document).ready((function(){n.dom={templateGrid:e("#product-template-list"),viewProductTemplate:e("#view-product-template-content"),productsAdjustments:e("#products-adjustments"),sliderName:e("#slider-name"),sliderDescription:e("#slider-description"),sliderDescriptionShort:e("#slider-description-short"),sliderProductsPerRow:e("#slider-products-per-row"),sliderImageSize:e("#slider-image-size"),sliderProductsWidth:e("#slider-product-width"),sliderPprLoading:e("#slider-ppr-loading"),selectedProducts:e("#selected-products"),spWidth:e("#sp-width"),viewProductsBox:e("#np-view-products-box"),productTemplateContentTextarea:e("#product-template-content-textarea"),productTemplateContent:e("#product-content-box")},NewsletterPro.onObject.setCallback("tinyProduct",(function(e){n.dom.tinyProduct=e})),t(n.dom)}))},addVar:function(e,t){this.vars=this.vars||{},this.vars[e]=t}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.manageImages"),NewsletterPro.modules.manageImages={dom:null,box:null,init:function(t){var n,i=this;i.box=t,i.ready((function(s){var a=s.imagesGrid,r=NewsletterPro.translations.l(NewsletterPro.translations.modules.manageImages),o=new gk.data.Model({id:"id"});n=new gk.data.DataSource({pageSize:15,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getImages",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteImage&id",type:"POST",dateType:"json",success:function(e,t){e.status||alert(e.errors.join("\n"))},error:function(e,t){alert(r("delete image error"))},complete:function(e,t){}}},schema:{model:o},trySteps:2,errors:{read:function(e,t,i){n.syncStepAvailableAdd(3e3,(function(){n.sync()}))}}}),a.gkGrid({dataSource:n,selectable:!1,currentPage:1,pageable:!0,template:{preview:function(t){var n=t.data;return e('<img src="'+n.thumb_link+'" style="width: 50px; height: 50px;">')},size:function(e,t){return t=parseInt(t),String(Math.round(t/1024))+"kb"},dimensions:function(e){var t=e.data;return t.width+"x"+t.height},actions:function(t){var n=t.data.link,i=e("<div></div>"),s=e('<a href="'+n+'" target="_blank" class="btn btn-default btn-margin pull-right"><i class="icon icon-eye"></i> <span>'+r("view image")+"</span></a>"),a=e('<a href="javascript:{}" class="btn btn-default btn-margin pull-right"><i class="icon icon-trash-o"></i> <span>'+r("delete image")+"</span></a>");return a.on("click",(function(){t.destroy("status")})),i.append(s),i.append(a),i}}}),s.btnUpload.on("click",(function(){!function(){var s,a=i.dom.form;e.submitAjax({submit:"uploadImage",name:"uploadImage",form:a,data:{width:(s=e.trim(i.dom.imageWidth.val()),/^\d+$/.test(s)?parseInt(s):(i.dom.imageWidth.val(""),0))}}).done((function(e){e.status?n.sync():t.alertErrors(e.errors)}))}()}))}))},ready:function(t){var n=this;e(document).ready((function(){n.dom={imagesGrid:e("#images-list"),imagesGridBox:e("#images-grid-box"),form:e("#upload-image-form"),btnUpload:e("#upload-image"),imageWidth:e("#upload-image-width")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.createTemplate"),NewsletterPro.modules.createTemplate={tinyWasInit:!1,dom:null,box:null,vars:{},tabName:"tab_newsletter_4",newsletterTemplate:null,tinySetupArray:[],initTinyCallback:function(e,t){this.tinySetupArray.push(e)},isTinyInit:function(){return this.tinyWasInit},initTiny:function(){var t=this;return this.tinyInitDfd=e.Deferred(),this.tinyWasInit=!0,setTimeout((function(){var e="Deffered was never resolved.";"function"==typeof t.tinyInitDfd.state?"resolved"!==t.tinyInitDfd.state()&&(t.tinyInitDfd.resolve(),console.warn(e)):"function"==typeof t.tinyInitDfd.isResolved&&(t.tinyInitDfd.isResolved()||(t.tinyInitDfd.resolve(),console.warn(e)))}),1e4),this.tinySetupArray.length>0&&e.each(this.tinySetupArray,(function(e,t){tinySetup(t)})),this.tinyInitDfd.promise()},init:function(t){var n,i=this;i.vars,new Array("0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f");function s(e,t,n,s){i.newsletterTemplate.setStyle(e,t,n,s)}function a(e){var t=i.newsletterTemplate.template.products;for(idLang in t)if(t[idLang].length>0)for(var n=0;n<t[idLang].length;n++)e(idLang,t[idLang][n])}function r(e){var t=i.newsletterTemplate.view.products;if(t.length>0)for(var n=0;n<t.length;n++)e(t[n])}function o(i){var s=i.data.filename;e.each(n.items,(function(e,t){t.data.selected=!1})),i.data.selected=!0,t.dataStorage.set("configuration.NEWSLETTER_TEMPLATE",s),e.postAjax({submit_template_controller:"changeTemplate",name:s}).done((function(e){if(e.success){var n=e.html;if(t.modules.createTemplate.newsletterTemplate.setTemplate(n),e.hasOwnProperty("headers")){for(var i=e.headers,s=Object.keys(i),a=!1,r=0;r<s.length;r++){var o=i[s[r]];Array.isArray(o)||o.hasOwnProperty("unsubscribe")&&"true"===o.unsubscribe&&(a=!0)}a&&alert(l("This is not a standard template. This template will unsubscribe your email addresses when you will send the newsletter."))}}else t.alertErrors(e.errors)}))}return i.box=t,i.varExists=function(e){return i.vars.hasOwnProperty(e)},i.changeTemplate=function(e){return o(e)},i.ready((function(t){e(window).resize((function(){i.refreshSliders()}));var l,d,c=NewsletterPro.translations.l(NewsletterPro.translations.modules.createTemplate),u=t.templateGrid;function h(){return i.newsletterTemplate.isLoadTemplate()}function p(){return i.newsletterTemplate.isViewActive()}l=new gk.data.Model({id:"id"}),n=new gk.data.DataSource({pageSize:6,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit_template_controller=getNewsletterTemplates",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit_template_controller=deleteTemplate&id",type:"POST",dateType:"json",success:function(e,t){e.status||alert(e.errors.join("\n"))},error:function(e,t){alert(c("delete template error"))},complete:function(e,t){}}},schema:{model:l},trySteps:2,errors:{read:function(e,t,i){n.syncStepAvailableAdd(3e3,(function(){n.sync()}))}}}),u.gkGrid({dataSource:n,selectable:!0,currentPage:1,pageable:!0,template:{attachment:function(e){var t=e.data.attachments.length;return t>0?'<span style="font-weight: bold;">'+t+"</span>":""},actions:function(t){var i,s,a=t.data.name.toLowerCase(),r=(t.data.filename,"");return"default"!==a&&(r=e("#delete-newsletter-template").gkButton({title:c("delete template"),name:"delete-newsletter-template",click:function(e){if(!confirm(c("confirm delete template")))return!1;var i=t.data.selected;if(t.destroy("status"),i){var s=n.getItemByValue("data.filename","default.html");n.setSelected(s),o(s)}},icon:'<i class="icon icon-trash-o"></i> '})),i=[r],s=e("<div></div>"),e.each(i,(function(e,t){s.append(t)})),s}},events:{select:function(e){o(e)}},defineSelected:function(e){return e.data.selected}}),d=gkSlider({target:t.templateWidthSlider,snap:6,min:400,max:1080,value:400,values:[400,600,640,700,760,800,860,900,1080],corectPosition:-10,remplaceValues:{400:"auto",1080:"100%"},move:function(e){var t=parseInt(e.getValue()),n=i.newsletterTemplate.template.content;if(h()&&s(n,"width",t<=400?"auto":t>=1080?"100%":t),p()){var a=i.newsletterTemplate.view;t<=400?a.content.width("auto"):t>=1080?a.content.width("100%"):a.content.width(t)}},done:function(e){}}),t.templateContainerColor.on("change",(function(){var t,n,a=e(this).val();h()&&(s(i.newsletterTemplate.template.container,"background-color","#"+a),t=i.newsletterTemplate.template.tinyBody,n={"background-color":"#"+a},i.newsletterTemplate.setStyleObject(t,n)),p()&&i.newsletterTemplate.view.container.css({"background-color":"#"+a})})),t.templateContentColor.on("change",(function(){var t=e(this).val();h()&&s(i.newsletterTemplate.template.content,"background-color","#"+t),p()&&i.newsletterTemplate.view.content.css({"background-color":"#"+t})})),t.productsBgColor.on("change",(function(){var t=e(this).val();h()&&a((function(e,n){n.product.length>0&&s(n.product,"background-color","#"+t,e)})),p()&&r((function(e){e.product.length>0&&e.product.css({"background-color":"#"+t})}))})),t.productsBorderColor.on("change",(function(){var t=e(this).val();h()&&a((function(e,n){n.product.length>0&&s(n.product,"border-color","#"+t,e)})),p()&&r((function(e){e.product.length>0&&e.product.css({"border-color":"#"+t})}))})),t.productsNameColor.on("change",(function(){var t=e(this).val();h()&&a((function(e,n){n.name.length>0&&s(n.name,"color","#"+t,e)})),p()&&r((function(e){e.name.length>0&&e.name.css({color:"#"+t})}))})),t.productsSDescriptionColor.on("change",(function(){var t=e(this).val();h()&&a((function(e,n){n.description_short.length>0&&s(n.description_short,"color","#"+t,e)})),p()&&r((function(e){e.description_short.length>0&&e.description_short.css({color:"#"+t})}))})),t.productsDescriptionColor.on("change",(function(){var t=e(this).val();h()&&a((function(e,n){n.description.length>0&&s(n.description,"color","#"+t,e)})),p()&&r((function(e){e.description.length}))})),t.productsPriceColor.on("change",(function(){var t=e(this).val();h()&&a((function(e,n){n.price.length>0&&s(n.price,"color","#"+t,e)})),p()&&r((function(e){e.price.length>0&&e.price.css({color:"#"+t})}))})),t.linksColor.on("change",(function(){var t=e(this).val();h()&&function(t){var n=i.newsletterTemplate.template.links;for(idLang in n)if(n[idLang].length>0)for(var s=0;s<n[idLang].length;s++){var a=e(n[idLang][s]);t(idLang,a)}}((function(e,n){s(n,"color","#"+t)})),p()&&function(t){var n=i.newsletterTemplate.view.links;if(n.length>0)for(var s=0;s<n.length;s++){t(e(n[s]))}}((function(e){e.css({color:"#"+t})}))})),i.addVar("templateWidthSlider",d),i.addVar("templateDataSource",n)})),this},addVar:function(e,t){this.vars[e]=t},ready:function(t){var n=this;e(document).ready((function(){n.dom={templateGrid:e("#newsletter-template-list"),templateWidthSlider:e("#template-width-slider"),templateContainerColor:e("#template-container-color"),templateContentColor:e("#template-content-color"),sliderContainer:e("#slider-container"),tabGlobalCss:e(".tab-global-css"),productsBgColor:e("#products-bg-color"),productsNameColor:e("#products-name-color"),productsSDescriptionColor:e("#products-s-description-color"),productsDescriptionColor:e("#products-description-color"),productsPriceColor:e("#products-price-color"),linksColor:e("#links-color"),productsBorderColor:e("#products-border-color"),template:{container:null,content:null,products:[]}},n.newsletterTemplate=new NewsletterPro.components.NewsletterTemplate,t(n.dom)}))},refreshSliders:function(){this.vars.templateWidthSlider.refresh()}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){"use strict";(function(e){var t=n(240),i=Object(t.detect)();NewsletterPro.namespace("components.NewsletterTemplate"),NewsletterPro.components.NewsletterTemplate=function t(n){if(!(this instanceof t))return new t(n);var i=this,s=NewsletterPro,a=s.dataStorage.get("all_languages").length;s.extendSubscribeFeature(this),this.l=NewsletterPro.translations.l(s.translations.components.NewsletterTemplate),this.cfg=n,this.createTemplate=s.modules.createTemplate,this.dom={},this.tiny=[],this.tinyLangIndex=[],this.viewTabActive=!1,this.view={},this.view.products=[],this.template={container:null,content:null,products:{}},this.triggerTitleChange=!0,s.onObject.setCallback("tinyNewsletter",(function(t){i.add(t),i.tiny.length==a&&e(document).ready((function(){i.createTemplate.tinyInitDfd.resolve(),i.dom={viewNewsletterTemplate:e("#view-newsletter-template-content"),saveTemplate:e("#save-newsletter-template"),saveAsTemplate:e("#save-as-newsletter-template"),exportHTML:e("#export-html"),inputImportHTML:e("#inputImportHTML"),inputImportHTMLForm:e("#inputImportHTMLForm"),templateStyle:e("#template-css-style"),templateGlobalStyle:e("#template-css"),templateTitle:e('[id^="page-title-"]'),templateHeader:e('[id^="template-header-"]'),templateFooter:e('[id^="template-footer-"]'),saveMessage:e("#save-newsletter-template-message"),langSelect:e("#newsletter-template-lang-select"),pageTitleMessage:e("#page-title-message"),vewInBrowser:e("#np-view-newsletter-template-in-browser"),color:{templateContainerColorObj:new jscolor.color(document.getElementById("template-container-color")),templateContentColorObj:new jscolor.color(document.getElementById("template-content-color")),productsBgColorObj:new jscolor.color(document.getElementById("products-bg-color")),productsNameColorObj:new jscolor.color(document.getElementById("products-name-color")),productsSDescriptionColorObj:new jscolor.color(document.getElementById("products-s-description-color")),productsDescriptionColorObj:new jscolor.color(document.getElementById("products-description-color")),productsPriceColorObj:new jscolor.color(document.getElementById("products-price-color")),linksColorObj:new jscolor.color(document.getElementById("links-color")),productsBorderColorObj:new jscolor.color(document.getElementById("products-border-color"))}},i.ready(i.dom)}))}))},NewsletterPro.components.NewsletterTemplate.prototype.add=function(e){var t=parseInt(e.id.match(/\d+$/));this.tiny.push({id:e.id,idLang:t,ed:e}),this.tinyLangIndex.push(t)},NewsletterPro.components.NewsletterTemplate.prototype.ready=function(t){var n=this,i=NewsletterPro,s=i.components.LanguageSelect.getInstanceById("#newsletter-template-lang-select");try{n.updateTemplate()}catch(e){}n.parseTiny((function(e,t,s){i.isTinyHigherVersion()?s.on("change",(function(e,t){n.updateBoth()})):s.onChange.add((function(e,t){n.updateBoth()}))}));try{var a=[t.templateStyle,t.templateGlobalStyle,t.templateHeader,t.templateFooter];e.each(a,(function(e,t){t.on("keydown",(function(e){var n=e.keyCode,i=t.get(0);if(9==n)try{return s=i.getCaretPosition()+" ".length,i.value=i.value.substring(0,i.getCaretPosition())+" "+i.value.substring(i.getCaretPosition(),i.value.length),i.setCaretPosition(s),!1}catch(e){console.warn(e)}if(8==n)try{var s;if(" "==i.value.substring(i.getCaretPosition()-4,i.getCaretPosition()))s=i.getCaretPosition()-3,i.value=i.value.substring(0,i.getCaretPosition()-3)+i.value.substring(i.getCaretPosition(),i.value.length),i.setCaretPosition(s)}catch(e){console.warn(e)}}))}))}catch(e){console.warn(e)}i.components.LanguageSelect.updateLanguages(),this.subscribe("save",(function(e){})),this.subscribe("afterSave",(function(e){}));t.vewInBrowser.on("click",(function(){event.preventDefault(),e(this).attr("href",function(e){return e=e||NewsletterPro.dataStorage.get("id_selected_lang"),i.getUrl({submit_template_controller:"viewTemplate",name:i.dataStorage.get("configuration.NEWSLETTER_TEMPLATE"),id_lang:e})}()),window.open(e(this).attr("href"),"_blank")})),s.subscribe("change",(function(e){setTimeout((function(){n.parseTiny((function(t,n,i){Number(n)===Number(e.lang.id_lang)&&i.setContent(i.getContent())}))}),250)})),window.NewsletterProComponents.objs.tabNewsletterTemplate.subscribe("change",(function(e){var t=e.attr("id");"tab_newsletter-template_1"===t?(n.viewTabActive=!0,n.saveWriteView()):"tab_newsletter-template_0"===t&&n.tinyRefresh(),"tab_newsletter-template_5"===t||"tab_newsletter-template_2"===t?n.dom.langSelect.hide():n.dom.langSelect.show(),"tab_newsletter-template_1"!==t&&(n.viewTabActive=!1)})),i.dataStorage.on("change","id_selected_lang",(function(e){n.viewTabActive&&n.render()})),t.saveTemplate.on("click",(function(){var t=e(this);i.showAjaxLoader(t),n.saveTemplate().always((function(){i.hideAjaxLoader(t)}))})),t.saveAsTemplate.on("click",(function(){var t=prompt(n.l("Enter the template name."));if(""==t||null==t)return!1;var s=e(this);i.showAjaxLoader(s),n.saveTemplate(t).always((function(){e.postAjax({submit_template_controller:"getNewsletterTemplates"}).done((function(e){i.dataStorage.set("templates",e)})),i.hideAjaxLoader(s)}))})),t.templateTitle.on("change",(function(t){var i=e(t.currentTarget),s=i.val(),a=Number(i.data("lang")),r=n.getHeaderByIdLang(a),o=r.val().replace(/<\s*?(title)\s*?.*?>(.*?)<\s*?\/\s*?\1\s*?>/,"<title>"+s+"</title>");r.val(o)})),t.templateTitle.on("blur",(function(){if(!n.triggerTitleChange)return!1;var s=e(this),a=s.val(),r=Number(s.data("lang"));e.postAjax({submit_template_controller:"saveNewsletterPageTitle",saveNewsletterPageTitle:a,id_lang:r}).done((function(e){e.success?t.pageTitleMessage.empty().show().append('\t\t\t\t\t<span class="list-action-enable action-enabled">\t\t\t\t\t\t<i class="icon-check"></i>\t\t\t\t\t</span>\t\t\t\t'):i.alertErrors(e.errors),setTimeout((function(){t.pageTitleMessage.hide()}),5e3)}))})),t.templateHeader.on("blur",(function(){n.saveTemplate().done((function(e){n.setTitle(e.html),n.refreshStyle()}))})),t.templateFooter.on("blur",(function(){n.saveTemplate().done((function(e){}))})),t.templateStyle.on("blur",(function(){n.saveTemplate().done((function(e){n.refreshStyle()}))})),t.templateGlobalStyle.on("blur",(function(){n.saveTemplate().done((function(e){n.refreshStyle()}))})),t.exportHTML.on("click",(function(){event.preventDefault();var t=e(this),i=t.attr("href");confirm(n.l("Do you want to render the template variables?"))&&(i=i.replace(/exportHTML(=\w+)?/,"exportHTML&renderView"),t.attr("href",i)),n.saveTemplate().done((function(e){window.location.href=i}))})),t.inputImportHTML.on("change",(function(){""!=e.trim(t.inputImportHTML.val())&&e.submitAjax({submit_template_controller:"inputImportHTML",form:t.inputImportHTMLForm}).done((function(e){e.success?n.createTemplate.vars.templateDataSource.sync((function(t){var i=t.getItemByValue("data.filename",e.name);i&&(t.setSelected(i),n.createTemplate.changeTemplate(i))})):i.alertErrors(e.errors)}))}))},NewsletterPro.components.NewsletterTemplate.prototype.refreshStyle=function(e){this.parseTiny((function(e,t,n){n.refreshStyle()}))},NewsletterPro.components.NewsletterTemplate.prototype.setTitle=function(e){for(var t in e){this.triggerTitleChange=!1,this.getTitleByIdLang(t).val(e[t].title),this.triggerTitleChange=!0}},NewsletterPro.components.NewsletterTemplate.prototype.setTinyContent=function(e){for(var t in e){var n=this.getTinyByIdLang(t);n&&n.setContent(e[t].body)}},NewsletterPro.components.NewsletterTemplate.prototype.saveTemplate=function(t){var n,i,s=this,a=NewsletterPro,r=this.dom,o=s.stripComments(r.templateStyle.val()),l=s.stripComments(r.templateGlobalStyle.val());void 0!==t?(i="saveAsNewsletterTemplate",n=t):(i="saveNewsletterTemplate",n=a.dataStorage.get("configuration.NEWSLETTER_TEMPLATE"));var d=s.buildContent();return this.publish("save",{saveAs:"saveAsNewsletterTemplate"==i,action:i,templateName:n,content:d,css:o,cssGlobal:l}),e.postAjax({submit_template_controller:i,name:n,content:d,css:o,css_global:l}).done((function(e){e.success?("saveAsNewsletterTemplate"===i&&s.createTemplate.vars.templateDataSource.sync((function(t){var n=t.getItemByValue("data.filename",e.template_name);t.setSelected(n),s.createTemplate.changeTemplate(n)})),r.saveMessage.show().html('<p class="np-success-message">'+e.message+"</p>"),setTimeout((function(){r.saveMessage.hide()}),5e3)):a.alertErrors(e.errors),s.publish("afterSave",{status:!0,response:e})})).fail((function(e){s.publish("afterSave",{status:!1,response:e})})).promise()},NewsletterPro.components.NewsletterTemplate.prototype.buildContent=function(){var e=this,t=(NewsletterPro,this.dom,{});return this.parseTiny((function(n,i,s){var a=s.getContent();t[i]={title:e.getTitleByIdLang(i).val(),body:a,header:e.stripComments(e.getHeaderByIdLang(i).val()),footer:e.getFooterByIdLang(i).val()}})),t},NewsletterPro.components.NewsletterTemplate.prototype.setTemplate=function(e){var t=NewsletterPro,n=this.dom,i=e.title,s=e.header,a=e.body,r=e.footer,o=e.css_file,l=e.css_global_file,d=e.css_link,c=t.dataStorage.getNumber("id_selected_lang");this.parseTiny((function(e,t,n){a.hasOwnProperty(t)&&(n.setContent(a[t]),d.hasOwnProperty(t)&&n.refreshStyle(d[t]))})),this.parseTitle((function(e,t,n){i.hasOwnProperty(t)&&n.val(i[t])})),this.parseHeader((function(e,t,n){s.hasOwnProperty(t)&&n.val(s[t])})),this.parseFooter((function(e,t,n){r.hasOwnProperty(t)&&n.val(r[t])})),o.hasOwnProperty(c)&&n.templateStyle.val(o[c]),l.hasOwnProperty(c)&&n.templateGlobalStyle.val(l[c]),this.isViewActive&&this.render(),this.updateBoth()},NewsletterPro.components.NewsletterTemplate.prototype.getTitleByIdLang=function(t){return e(this.dom.templateTitle.filter((function(n,i){return Number(e(i).data("lang"))==Number(t)}))[0])},NewsletterPro.components.NewsletterTemplate.prototype.getHeaderByIdLang=function(t){return e(this.dom.templateHeader.filter((function(n,i){return Number(e(i).data("lang"))==Number(t)}))[0])},NewsletterPro.components.NewsletterTemplate.prototype.getFooterByIdLang=function(t){return e(this.dom.templateFooter.filter((function(n,i){return Number(e(i).data("lang"))==Number(t)}))[0])},NewsletterPro.components.NewsletterTemplate.prototype.parseTitle=function(t){e.each(this.dom.templateTitle,(function(n,i){i=e(i);var s=Number(i.data("lang"));t(n,s,i)}))},NewsletterPro.components.NewsletterTemplate.prototype.parseHeader=function(t){e.each(this.dom.templateHeader,(function(n,i){i=e(i);var s=Number(i.data("lang"));t(n,s,i)}))},NewsletterPro.components.NewsletterTemplate.prototype.parseFooter=function(t){e.each(this.dom.templateFooter,(function(n,i){i=e(i);var s=Number(i.data("lang"));t(n,s,i)}))},NewsletterPro.components.NewsletterTemplate.prototype.parseTiny=function(e){for(var t=0;t<this.tiny.length;t++){var n=this.tiny[t],i=n.ed,s=e(n.id,Number(n.idLang),i);if(void 0!==s)return s}},NewsletterPro.components.NewsletterTemplate.prototype.getTinyByIdLang=function(e){var t=this.tinyLangIndex.indexOf(Number(e));if(-1!=t)return this.tiny[t].ed},NewsletterPro.components.NewsletterTemplate.prototype.stripComments=function(e){return e.replace(/\/\*[\s\S]*?\*\//,"")},NewsletterPro.components.NewsletterTemplate.prototype.tinyRefresh=function(){this.parseTiny((function(e,t,n){"firefox"===i.name&&n.setContent(n.getContent())}))},NewsletterPro.components.NewsletterTemplate.prototype.saveWriteView=function(){var e=this;this.saveTemplate().done((function(t){t.success&&e.render()}))},NewsletterPro.components.NewsletterTemplate.prototype.render=function(){var t=NewsletterPro,n=this,i=t.dataStorage.getNumber("id_selected_lang"),s=t.dataStorage.get("configuration.NEWSLETTER_TEMPLATE");e.postAjax({submit_template_controller:"renderTemplate",name:s,id_lang:i}).done((function(e){e.success?n.writeView(e.render):(t.displayAlert(e.errors),n.writeView(""))})).promise()},NewsletterPro.components.NewsletterTemplate.prototype.writeView=function(e){var t=this;this.getView().length>0&&(this.getView().get(0).innerHTML=e,setTimeout((function(){t.resizeView(),t.updateBoth()}),50))},NewsletterPro.components.NewsletterTemplate.prototype.resizeView=function(){if(this.getView().length>0&&this.getView().find("body").length>0){var e=this.dom.viewNewsletterTemplate.get(0);e.height="",e.height=e.contentWindow.document.body.scrollHeight+"px"}},NewsletterPro.components.NewsletterTemplate.prototype.getView=function(){return this.dom.viewNewsletterTemplate.contents().find("html")},NewsletterPro.components.NewsletterTemplate.prototype.updateBoth=function(){this.updateView(),this.updateTemplate()},NewsletterPro.components.NewsletterTemplate.prototype.updateView=function(){NewsletterPro;var t=this.view;t.container=this.getView().find(".newsletter-pro-container"),t.content=t.container.find(".newsletter-pro-content"),t.links=t.container.find("a");var n=t.container.find(".newsletter-pro-product");if(t.products=[],n.length>0)for(var i=0;i<n.length;i++){var s=e(n[i]),a=s.find(".newsletter-pro-name"),r=s.find(".newsletter-pro-description"),o=s.find(".newsletter-pro-description_short"),l=s.find(".newsletter-pro-price"),d={product:s,name:a,description:r,description_short:o,price:l};t.products.push(d)}},NewsletterPro.components.NewsletterTemplate.prototype.updateTemplate=function(){var t=NewsletterPro,n=this.template,i=t.dataStorage.getNumber("id_selected_lang"),s=this.createTemplate,a=this.createTemplate.vars,r=this.createTemplate.dom,o=this.dom,l=window.NewsletterProComponents.objs.tabNewsletterTemplate;n.tinyBody=this.tinySelect("body"),n.container=this.tinySelect(".newsletter-pro-container"),n.content=this.tinySelect(".newsletter-pro-content"),n.links=this.tinySelect("a");var d=this.tinySelect(".newsletter-pro-product");for(var c in n.products={},d)if(d[c].length>0){for(var u=[],h=0;h<d[c].length;h++){var p=(w=e(d[c][h])).find(".newsletter-pro-name"),m=w.find(".newsletter-pro-description"),f=w.find(".newsletter-pro-description_short"),_=w.find(".newsletter-pro-price"),g={product:w,name:p,description:m,description_short:f,price:_};u.push(g)}n.products[c]=u}if(s.varExists("templateWidthSlider")){var v=n.content[i].innerWidth();a.templateWidthSlider.setValue(v)}var y=n.container[i].css("background-color");/rgb/i.test(y)&&(y=this.rgb2hex(y)),r.templateContainerColor.val(y),this.setStyleObject(n.tinyBody,{"background-color":"#"+y}),n.container[i].length>0?(o.color.templateContainerColorObj.importColor(),r.templateContainerColor.parent().show()):r.templateContainerColor.parent().hide();var b=n.content[i].css("background-color");if(/rgb/i.test(b)&&(b=this.rgb2hex(b)),r.templateContentColor.val(b),n.content[i].length>0?(o.color.templateContentColorObj.importColor(),r.templateContentColor.parent().show(),r.sliderContainer.show(),r.tabGlobalCss.show()):(r.tabGlobalCss.hide(),null!==l.lastItem&&void 0!==l.lastItem&&"tab_newsletter-template_2"===l.lastItem.attr("id")&&l.buttons[0].click(),r.sliderContainer.hide(),r.templateContentColor.parent().hide()),(d=n.products).hasOwnProperty(i)&&d[i].length>0){var w;if((w=d[i][0].product).length>0){var M=w.css("background-color");/rgb/i.test(M)&&(M=this.rgb2hex(M)),r.productsBgColor.val(M),r.productsBgColor.parent().show();var k=w.css("border-width");if(/^[1-9]+/.test(k)){M=w.css("border-color");/rgb/i.test(M)&&(M=this.rgb2hex(M)),r.productsBorderColor.parent().show(),r.productsBorderColor.val(M)}else r.productsBorderColor.parent().hide()}else r.productsBgColor.parent().hide(),r.productsBorderColor.parent().hide();if((p=d[i][0].name).length>0){M=p.css("color");/rgb/i.test(M)&&(M=this.rgb2hex(M)),r.productsNameColor.val(M),r.productsNameColor.parent().show()}else r.productsNameColor.parent().hide();if((f=d[i][0].description_short).length>0){M=f.css("color");/rgb/i.test(M)&&(M=this.rgb2hex(M)),r.productsSDescriptionColor.val(M),r.productsSDescriptionColor.parent().show()}else r.productsSDescriptionColor.parent().hide();if((m=d[i][0].description).length>0){M=m.css("color");/rgb/i.test(M)&&(M=this.rgb2hex(M)),r.productsDescriptionColor.val(M),r.productsDescriptionColor.parent().show()}else r.productsDescriptionColor.parent().hide();if((_=d[i][0].price).length>0){M=_.css("color");/rgb/i.test(M)&&(M=this.rgb2hex(M)),r.productsPriceColor.val(M),r.productsPriceColor.parent().show()}else r.productsPriceColor.parent().hide()}else r.productsBgColor.val("FFFFFF"),r.productsBgColor.parent().hide(),r.productsBorderColor.val("FFFFFF"),r.productsBorderColor.parent().hide(),r.productsNameColor.val("FFFFFF"),r.productsNameColor.parent().hide(),r.productsSDescriptionColor.val("FFFFFF"),r.productsSDescriptionColor.parent().hide(),r.productsDescriptionColor.val("FFFFFF"),r.productsDescriptionColor.parent().hide(),r.productsPriceColor.val("FFFFFF"),r.productsPriceColor.parent().hide();o.color.productsBgColorObj.importColor(),o.color.productsBorderColorObj.importColor(),o.color.productsNameColorObj.importColor(),o.color.productsSDescriptionColorObj.importColor(),o.color.productsDescriptionColorObj.importColor(),o.color.productsPriceColorObj.importColor(),r.linksColor.val("FFFFFF"),n.links[i].length>0?r.linksColor.parent().show():r.linksColor.parent().hide(),o.color.linksColorObj.importColor(),s.refreshSliders()},NewsletterPro.components.NewsletterTemplate.prototype.tinySelect=function(t,n){var i=!1;if(void 0===n)i={},this.parseTiny((function(n,s,a){i[s]=e(a.dom.select(t))}));else{var s=this.getTinyByIdLang(n);i=e(s.dom.select(t))}return i},NewsletterPro.components.NewsletterTemplate.prototype.setStyle=function(e,t,n,i){if(void 0!==i)(a=this.getTinyByIdLang(i))&&a.dom.setStyle(e,t,n);else for(var s in e){var a;(a=this.getTinyByIdLang(s))&&a.dom.setStyle(e[s],t,n)}},NewsletterPro.components.NewsletterTemplate.prototype.setStyleObject=function(e,t){for(var n in e)e[n].css(t)},NewsletterPro.components.NewsletterTemplate.prototype.isViewActive=function(){return this.view.hasOwnProperty("container")},NewsletterPro.components.NewsletterTemplate.prototype.isLoadTemplate=function(){return void 0!==this.template.container&&null!==this.template.container},NewsletterPro.components.NewsletterTemplate.prototype.rgb2hex=function(e){if(null!=(e=e.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/)))return("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2)}}).call(this,n(2))},function(e,t){var n,i,s=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(e){i=r}}();var l,d=[],c=!1,u=-1;function h(){c&&l&&(c=!1,l.length?d=l.concat(d):u=-1,d.length&&p())}function p(){if(!c){var e=o(h);c=!0;for(var t=d.length;t;){for(l=d,d=[];++u<t;)l&&l[u].run();u=-1,t=d.length}l=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}s.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];d.push(new m(e,t)),1!==d.length||c||o(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,s.listeners=function(e){return[]},s.binding=function(e){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(e){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},function(e,t,n){"use strict";(function(e,t){var i=n(241);NewsletterPro.namespace("modules.sendNewsletters"),NewsletterPro.modules.sendNewsletters={domSave:null,dom:null,box:null,vars:{},events:{},init:function(t){var n=this;return n.box=t,n.initCustomersGrid(),n.initVisitorsGrid(),n.initVisitorsGridNewsletterPro(),n.initAddedGrid(),this.ready((function(i){var s,a,r,o,l,d,c,u,h,p,m=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters);function f(){var e=Number(t.dataStorage.get("count_send_connections"));return isNaN(e)||0==e?1:e}function _(){var e,n=t.dataStorage,s=t.define,a=f(),r="",o=n.getNumber("configuration.SEND_ANTIFLOOD_EMAILS"),l=n.getNumber("configuration.SEND_ANTIFLOOD_SLEEP"),d=n.getNumber("configuration.SEND_THROTTLER_LIMIT");if(void 0!==p&&p){var c=p.find("#np-send-antiflood-info"),u=p.find("#np-send-throttler-info");if(n.getNumber("count_send_connections")>0){var h=m("With #s connections send #s emails, and pause #s seconds.").replace(/#s/,a).replace(/#s/,o*a).replace(/#s/,l),_=m("With #s connections limit #s emails per minute.").replace(/#s/,a).replace(/#s/,d*a);c.show().find("span").html(h),u.show().find("span").html(_)}else c.hide(),u.hide()}if(n.getNumber("configuration.SEND_METHOD")==s.SEND_METHOD_DEFAULT)r=m("Send one newsletter at #s seconds - (for all connections).").replace(/#s/,n.getNumber("configuration.SLEEP"));else{var g=m("(Antiflood) Send #s emails, and pause #s seconds.").replace(/#s/,o*a).replace(/#s/,l),v=(n.getNumber("configuration.SEND_THROTTLER_TYPE")==s.SEND_THROTTLER_TYPE_EMAILS?m("(Speed limits) Limit #s emails per minute."):m("(Speed limits) Limit #s MB per minute.")).replace(/#s/,d*a);r=n.getNumber("configuration.SEND_ANTIFLOOD_ACTIVE")&&n.getNumber("configuration.SEND_THROTTLER_ACTIVE")?g+" / "+v:n.getNumber("configuration.SEND_ANTIFLOOD_ACTIVE")?g:n.getNumber("configuration.SEND_THROTTLER_ACTIVE")?v:m("No send method was selected.")}return e='<label class="control-label">'+r+'</label>\t\t\t\t\t\t\t<span style="display: block; font-style: italic;">('+m("#s connections").replace(/#s/,a)+")</span>",i.sendMethodDisplay.html(e),r}function g(e,t){void 0!==e&&(e.uncheckAll(),t.data("checked",!1),t.changeTitle(m("check all")))}t.dataStorage.on("change","count_send_connections",(function(e){_()})),s=new gkWindow({width:640,height:540,title:m("exclusion emails"),className:"exclusion-window",show:function(e){void 0!==r&&r.sync()},close:function(e){},content:function(s){var o=e('\t\t\t\t\t\t<div id="exclusion-email-box">\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t<div class="col-sm-4">\t\t\t\t\t\t\t\t\t<label for="input-exclude-emails" class="control-label"><span class="label-tooltip">'+m("import from csv file")+'</span></label>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="col-sm-8">\t\t\t\t\t\t\t\t\t<form id="form-exclusion-emails" method="post" enctype="multipart/form-data">\t\t\t\t\t\t\t\t\t\t<div class="input-group">\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">'+m("File")+'</span>\t\t\t\t\t\t\t\t\t\t\t<input type="file" name="exclusion_emails_emails" class="form-control">\t\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">'+m("Separator")+'</span>\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="exclusion_emails_csv_separator" class="form-control text-center" value=";" style="width: 35px;">\t\t\t\t\t\t\t\t\t\t\t<div class="clear"></div>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</form>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="col-sm-8 col-sm-offset-4">\t\t\t\t\t\t\t\t\t<a id="btn-add-exclusion-csv" class="btn btn-default pull-left" href="javascript:{}"><span class="btn-ajax-loader"></span><i class="icon icon-plus-square"></i> '+m("add to exclusion")+'</a>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div style="margin-top: 10px;">\t\t\t\t\t\t\t\t<h4>'+m("select emails from history")+'</h4>\t\t\t\t\t\t\t\t<table id="exclusion-email-send-history" class="table table-bordered exclusion-email-send-history">\t\t\t\t\t\t\t\t\t<thead>\t\t\t\t\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t\t\t\t<th class="np-checkbox" data-template="checkbox">&nbsp;</th>\t\t\t\t\t\t\t\t\t\t\t<th class="template" data-field="template">'+m("template name")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="date" data-field="date">'+m("template date")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="emails-count" data-field="emails_count">'+m("total emails")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="emails-success" data-field="emails_success">'+m("sent success")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="emails-error" data-field="emails_error">'+m("sent errors")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="type" data-template="type">'+m("type")+"</th>\t\t\t\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\t\t\t</thead>\t\t\t\t\t\t\t\t</table>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t<div>\t\t\t\t\t"),l=o.find("#exclusion-email-send-history");l.length&&(a=new gk.data.Model({id:"id_newsletter_pro_tpl_history"}),r=new gk.data.DataSource({pageSize:7,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getHistoryExclusion",dataType:"json"}},schema:{model:a},trySteps:2,errors:{read:function(e,t,n){r.syncStepAvailableAdd(3e3,(function(){r.sync()}))}}}),l.gkGrid({dataSource:r,checkable:!0,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(e,t){},checkbox:function(t,n){return e('<input type="checkbox" value="'+n+'" '+(t.isChecked()?'checked="checked"':"")+"> ")},emails_count:function(e,t){return'<span style="font-weight: bold;">'+t+"</span>"},emails_success:function(e,t){return'<span style="color: green; font-weight: bold;">'+t+"</span>"},emails_error:function(e,t){return'<span style="color: red; font-weight: bold;">'+t+"</span>"},type:function(e,t){return e.data.type}}}),l.addFooter((function(s){var a=n.createCheckToggle("btn-exclusion-checkall",r);a.addClass("pull-left");var o=e('\t\t\t\t\t\t\t\t<div class="clearfix pull-left" style="margin-left: 4px;">\t\t\t\t\t\t\t\t\t<input id="exclusion-remaingin-emails" class="valign-middle pull-left" type="checkbox" style="margin-left: 8px; margin-top: 9px; margin-right: 5px;">\t\t\t\t\t\t\t\t\t<label for="exclusion-remaingin-emails" class="control-label valign-middle pull-left">'+m("remaining email")+'</label>\t\t\t\t\t\t\t\t\t<input id="exclusion-sent-emails" class="align-middle pull-left" type="checkbox" checked="checked" style="margin-left: 8px; margin-top: 9px; margin-right: 5px;">\t\t\t\t\t\t\t\t\t<label for="exclusion-sent-emails" class="control-label valign-middle pull-left">'+m("sent email")+"</label>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t"),d=e('<a href="javascript:{}" class="btn btn-default pull-right"><span class="btn-ajax-loader"></span><i class="icon icon-plus-square"></i> '+m("add to exclusion")+"</a>");return d.on("click",(function(){var n=r.getSelection(),s=[];if(n.length>0)for(var a in n){var o=n[a].data,l=o.type,c=Object.prototype.hasOwnProperty.call(o,"id_newsletter_pro_send")?o.id_newsletter_pro_send:o.id_newsletter_pro_task;s.push({id:c,type:l})}var u=e("#exclusion-remaingin-emails").is(":checked")?1:0,h=e("#exclusion-sent-emails").is(":checked")?1:0;t.showAjaxLoader(d),e.postAjax({submit:"addHistoryEmailsToExclusion",data:s,remainingEmails:u,sentEmails:h}).done((function(e){t.hideAjaxLoader(d),e.success?(i.exclusionEmailsCount.html(e.count),alert(t.displayAlert(e.msg))):t.alertErrors(e.errors)})).always((function(){t.hideAjaxLoader(d)}))})),l.makeRow([a,o,d])}),"prepend"));var d=o.find("#btn-add-exclusion-csv");return d.on("click",(function(){t.showAjaxLoader(d),e.submitAjax({submit:"addCsvEmailsToExclusion",name:"addCsvEmailsToExclusion",form:e("#form-exclusion-emails")}).done((function(e){t.hideAjaxLoader(d),e.success?(i.exclusionEmailsCount.html(e.count),alert(t.displayAlert(e.msg))):t.alertErrors(e.errors)})).always((function(){t.hideAjaxLoader(d)}))})),o}}),o=new gkWindow({width:640,height:475,title:m("Performances & Limits"),className:"performances-window",setScrollContent:415,show:function(e){void 0!==d&&d.sync((function(){t.dataStorage.set("count_send_connections",this.count())}));var i=t.modules.smtp.ui.components.smptSelect;if(void 0!==i&&void 0!==u){var s=i.getData(),a=n.getSelectOptions(s);u.refresh(a)}},close:function(e){},content:function(i){var s=t.dataStorage,a=function(e){return(e=e||s.getNumber("configuration.SEND_THROTTLER_TYPE"))==t.define.SEND_THROTTLER_TYPE_EMAILS?m("emails"):"MB"},r=function(e){return"("+((e=e||s.getNumber("configuration.SEND_THROTTLER_TYPE"))==t.define.SEND_THROTTLER_TYPE_EMAILS?m("change limit to MB"):m("change limit to emails"))+")"},o=p=e('\t\t\t\t\t\t<div id="np-performances-window-content" class="np-performances-window-content">\t\t\t\t\t\t\t<h4>'+m("Define the sending performances and limits.")+'</h4>\t\t\t\t\t\t\t<div class="np-send-method-sleep">\t\t\t\t\t\t\t\t<input id="np-radio-send-method-sleep" name="SEND_METHOD" value="'+t.define.SEND_METHOD_DEFAULT+'" type="radio" '+(s.getNumber("configuration.SEND_METHOD")==t.define.SEND_METHOD_DEFAULT?' checked="checked" ':"")+'>\t\t\t\t\t\t\t\t<span data-for="np-radio-send-method-sleep">'+m("Send one newsletter at")+'</span> \t\t\t\t\t\t\t\t<input id="np-send-method-sleep-input" class="gk-input" type="number" min="0" max="60" value="'+s.get("configuration.SLEEP")+'"> \t\t\t\t\t\t\t\t<span data-for="np-radio-send-method-sleep">'+m("seconds")+'</span>\t\t\t\t\t\t\t\t<span style="display: inline-block; margin-bottom: 5px; font-style: italic;">('+m("for all connections")+')</span>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div class="np-send-method-antiflod">\t\t\t\t\t\t\t\t<input id="np-radio-send-method-antiflood" class="np-radio-send-method-antiflood" name="SEND_METHOD" value="'+t.define.SEND_METHOD_ANTIFLOOD+'" type="radio" '+(s.getNumber("configuration.SEND_METHOD")==t.define.SEND_METHOD_ANTIFLOOD?' checked="checked" ':"")+'> \t\t\t\t\t\t\t\t<span data-for="np-radio-send-method-antiflood">'+m("Antiflood & Speed limits")+'</span>\t\t\t\t\t\t\t\t<span style="display: inline-block; margin-bottom: 5px; font-style: italic;">('+m("for each connection")+')</span>\t\t\t\t\t\t\t\t<div class="np-send-method-antiflod-settings">\t\t\t\t\t\t\t\t\t<div class="np-send-method-antiflod-row">\t\t\t\t\t\t\t\t\t\t<input id="np-send-antifllod-active" name="SEND_ANTIFLOOD_ACTIVE" type="checkbox" '+(s.getNumber("configuration.SEND_ANTIFLOOD_ACTIVE")?' checked="checked" ':"")+'> \t\t\t\t\t\t\t\t\t\t<span data-for="np-send-antifllod-active">'+m("Reconnect after")+'</span> \t\t\t\t\t\t\t\t\t\t<input id="np-send-antiflood-emails"class="gk-input" type="number" min="1" max="100" value="'+s.get("configuration.SEND_ANTIFLOOD_EMAILS")+'"> \t\t\t\t\t\t\t\t\t\t<span data-for="np-send-antifllod-active">'+m("emails sent, and pause")+'</span> \t\t\t\t\t\t\t\t\t\t<input id="np-send-antiflood-sleep" class="gk-input" type="number" min="0" max="60" value="'+s.get("configuration.SEND_ANTIFLOOD_SLEEP")+'"> \t\t\t\t\t\t\t\t\t\t<span>'+m("seconds")+'</span>\t\t\t\t\t\t\t\t\t\t<div id="np-send-antiflood-info" style="display: none; margin-left: 22px; margin-bottom: 5px;">\t\t\t\t\t\t\t\t\t\t\t<br>\t\t\t\t\t\t\t\t\t\t\t<span style="display: inline-block; font-style: italic;"></span>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div class="np-send-method-antiflod-row">\t\t\t\t\t\t\t\t\t\t<input id="np-send-throttler-active" name="SEND_THROTTLER_ACTIVE" type="checkbox" '+(s.getNumber("configuration.SEND_THROTTLER_ACTIVE")?' checked="checked" ':"")+'> \t\t\t\t\t\t\t\t\t\t<span data-for="np-send-throttler-active">'+m("Limit")+'</span> \t\t\t\t\t\t\t\t\t\t<input id="np-send-throttler-limit" class="gk-input" type="number" min="1" max="5000" value="'+s.getNumber("configuration.SEND_THROTTLER_LIMIT")+'"> \t\t\t\t\t\t\t\t\t\t<span id="np-send-throttler-type-text" data-for="np-send-throttler-active">'+a()+'</span> \t\t\t\t\t\t\t\t\t\t<span data-for="np-send-throttler-active">'+m("per minute")+'</span> \t\t\t\t\t\t\t\t\t\t<a id="np-send-throttler-changetype" class="np-send-throttler-changetype" href="javascript:{}">'+r()+'</a>\t\t\t\t\t\t\t\t\t\t<div id="np-send-throttler-info" style="display:none; margin-left: 22px; margin-bottom: 5px;">\t\t\t\t\t\t\t\t\t\t\t<br>\t\t\t\t\t\t\t\t\t\t\t<span style="display: inline-block; font-style: italic;"></span>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div style="margin-top: 20px;">\t\t\t\t\t\t\t\t<h4 for="input-exclude-emails" class="label-spacing" style="margin-bottom: 0;">'+m("Add or remove connections")+'</h4>\t\t\t\t\t\t\t\t<span style="color: red; font-style: italic;">'+m("Don't add to many connections from the same server. You will risk to be banned.")+'</span>\t\t\t\t\t\t\t\t<span style="display: inline-block; margin-bottom: 5px; font-style: italic;">'+m("Leave the table empty if you want to have a single connection with the default configuration")+'</span>\t\t\t\t\t\t\t\t<table id="np-send-connection" class="table table-bordered np-send-connection">\t\t\t\t\t\t\t\t\t<thead>\t\t\t\t\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t\t\t\t<th class="name" data-field="name">'+m("Connection Name")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="connection-type" data-field="connection_type">'+m("Connection Type")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="connection-test" data-template="connection_test">'+m("Test Connection")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="actions" data-template="actions">'+m("Actions")+'</th>\t\t\t\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\t\t</thead>\t\t\t\t\t\t\t\t</table>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div class="form-group clearfix" style="margin-top: 10px;">\t\t\t\t\t\t\t\t<label class="control-label col-sm-3"><span class="label-tooltip">'+m("Backend limit")+'</span></label>\t\t\t\t\t\t\t\t<div class="col-sm-9">\t\t\t\t\t\t\t\t\t<input id="np-send-backend-limit" type="number" class="form-control fixed-width-xs" value="'+t.dataStorage.get("configuration.SEND_LIMIT_END_SCRIPT")+'" min="3" max="100">\t\t\t\t\t\t\t\t<div>\t\t\t\t\t\t\t\t<p class="help-block">'+m("Decrease this number if the newsletter stops from the sending process, and it's not continue.")+"</p>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t"),h=o.find("[data-for]");h.css("cursor","default"),h.on("click",(function(t){var n=e(t.currentTarget).data("for"),i=e("#"+n);i.length&&i.trigger("click")}));var g=/^\d+$/;o.find("#np-send-backend-limit").on("change",(function(){var n=Number(e(this).val());isNaN(n)&&(n=t.dataStorage.getNumber("configuration.SEND_LIMIT_END_SCRIPT")),n>=100?n=100:n<=3&&(n=3),e(this).val(n),t.dataStorage.set("configuration.SEND_LIMIT_END_SCRIPT",n),e.updateConfiguration("SEND_LIMIT_END_SCRIPT",n).done((function(e){e.success||t.alertErrors(e.errors)}))})),o.find("#np-send-throttler-changetype").on("click",(function(){var n=s.getNumber("configuration.SEND_THROTTLER_TYPE")?0:1,i=e(this);o.find("#np-send-throttler-type-text").html(a(n)),i.html(r(n)),e.updateConfiguration("SEND_THROTTLER_TYPE",n).done((function(e){e.success?s.set("configuration.SEND_THROTTLER_TYPE",n):t.alertErrors(e.errors)})).always((function(){o.find("#np-send-throttler-type-text").html(a()),i.html(r()),_()}))})),o.find('[name="SEND_METHOD"]').on("change",(function(){var n=e(this).val();e.updateConfiguration("SEND_METHOD",n).done((function(e){e.success?s.set("configuration.SEND_METHOD",n):t.alertErrors(e.errors)})).always((function(){_()}))})),o.find("#np-send-method-sleep-input").on("blur",(function(){var n=e(this),i=n.val();null===String(i).match(g)||i<0||i>100?n.val(s.get("configuration.SLEEP")):e.updateConfiguration("SLEEP",i).done((function(e){e.success?s.set("configuration.SLEEP",i):t.alertErrors(e.errors)})).always((function(){_()}))})),o.find("#np-send-throttler-limit").on("blur",(function(){var n=e(this),i=n.val();null===String(i).match(g)||i<1||i>5e3?n.val(s.get("configuration.SEND_THROTTLER_LIMIT")):e.updateConfiguration("SEND_THROTTLER_LIMIT",i).done((function(e){e.success?s.set("configuration.SEND_THROTTLER_LIMIT",i):t.alertErrors(e.errors)})).always((function(){_()}))}));var v=m("At least one antiflood option needs to be activated. If you want to activate the other antiflood option select it first.");return o.find("#np-send-throttler-active").on("change",(function(){if(!e(this).is(":checked")&&!o.find("#np-send-antifllod-active").is(":checked"))return e(this).prop("checked",!0),void t.alertErrors([v]);var n=e(this),i=Number(n.is(":checked"));e.updateConfiguration("SEND_THROTTLER_ACTIVE",i).done((function(e){e.success?s.set("configuration.SEND_THROTTLER_ACTIVE",i):t.alertErrors(e.errors)})).always((function(){_()}))})),o.find("#np-send-antifllod-active").on("change",(function(){if(!e(this).is(":checked")&&!o.find("#np-send-throttler-active").is(":checked"))return e(this).prop("checked",!0),void t.alertErrors([v]);var n=e(this),i=Number(n.is(":checked"));e.updateConfiguration("SEND_ANTIFLOOD_ACTIVE",i).done((function(e){e.success?s.set("configuration.SEND_ANTIFLOOD_ACTIVE",i):t.alertErrors(e.errors)})).always((function(){_()}))})),o.find("#np-send-antiflood-emails").on("blur",(function(){var n=e(this),i=n.val();null===String(i).match(g)||i<1||i>100?n.val(s.get("configuration.SEND_ANTIFLOOD_EMAILS")):e.updateConfiguration("SEND_ANTIFLOOD_EMAILS",i).done((function(e){e.success?s.set("configuration.SEND_ANTIFLOOD_EMAILS",i):t.alertErrors(e.errors)})).always((function(){_()}))})),o.find("#np-send-antiflood-sleep").on("blur",(function(){var n=e(this),i=n.val();null===String(i).match(g)||i<0||i>60?n.val(s.get("configuration.SEND_ANTIFLOOD_SLEEP")):e.updateConfiguration("SEND_ANTIFLOOD_SLEEP",i).done((function(e){e.success?s.set("configuration.SEND_ANTIFLOOD_SLEEP",i):t.alertErrors(e.errors)})).always((function(){_()}))})),l=new gk.data.Model({id:"id_newsletter_pro_send_connection"}),d=new gk.data.DataSource({pageSize:7,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=ajaxGetConnections",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=ajaxDeleteConnection&id",type:"POST",dateType:"json",success:function(e,n){if(e.success){var i=f();i>2?t.dataStorage.set("count_send_connections",--i):t.dataStorage.set("count_send_connections",1)}else d.sync((function(){t.dataStorage.set("count_send_connections",this.count())})),t.alertErrors(e.errors)},error:function(e,n){d.sync((function(){t.dataStorage.set("count_send_connections",this.count())})),alert(m("The connection cannot be deleted."))},complete:function(e,t){}}},schema:{model:l},trySteps:2,errors:{read:function(e,n,i){d.syncStepAvailableAdd(3e3,(function(){d.sync((function(){t.dataStorage.set("count_send_connections",this.count())}))}))}},done:function(){t.dataStorage.set("count_send_connections",this.count())}}),(c=o.find("#np-send-connection")).gkGrid({dataSource:d,checkable:!1,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(t,n){return e("#delete-connection").gkButton({name:"delete",title:m("delete"),className:"connection-delete",item:t,command:"delete",icon:'<i class="icon icon-trash-o"></i> '})},connection_test:function(n){var i=e('<a href="javascript:{}" class="btn btn-default" style="float: right;">\t\t\t\t\t\t\t\t\t\t\t\t<span class="btn-ajax-loader" style="margin-top: 4px;"></span>\t\t\t\t\t\t\t\t\t\t\t\t<span class="pull-left np-connection-status" style="display: none;"></span>\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-envelope"></i> \t\t\t\t\t\t\t\t\t\t\t\t'+m("Test")+"\t\t\t\t\t\t\t\t\t\t\t</a>"),s=i.find(".np-connection-status");return i.on("click",(function(){var a=isNaN(Number(n.data.id_newsletter_pro_smtp))?0:Number(n.data.id_newsletter_pro_smtp);s.hide(),t.showAjaxLoader(i),e.postAjax({submit:"sendMailTest",sendMailTest:t.dataStorage.get("configuration.PS_SHOP_EMAIL"),id_smtp:a}).done((function(e){e.success?s.show().html('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):(s.show().html('<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>'),t.alertErrors(e.errors))})).always((function(){t.hideAjaxLoader(i)}))})),i}}}),c.addFooter((function(i){var s=t.modules.smtp,a=e('<select id="connection-smtp-select" class="fixed-width-xxl"></select>');u=s.ui.SelectOption({name:"connectionSmptSelect",template:a,className:"gk-smtp-select",options:n.getSelectOptions(NewsletterPro.dataStorage.get("all_smtp"))});var r=e('<a href="javascript:{}" class="btn btn-default" style="float: right;">\t\t\t\t\t\t\t\t\t\t<span class="btn-ajax-loader"></span>\t\t\t\t\t\t\t\t\t\t<i class="icon icon-plus-square"></i> '+m("Add Connection")+"\t\t\t\t\t\t\t\t\t</a>");return r.on("click",(function(){var n=u.getSelected();null!=n?confirm(m("Are you sure you want to add a new connection? If you don't setup the connections properly you risk to be banned."))&&(t.showAjaxLoader(r),e.postAjax({submit:"ajaxAddConnection",id_smtp:n.data.id_newsletter_pro_smtp}).done((function(e){t.hideAjaxLoader(r),e.success?d.sync((function(){t.dataStorage.set("count_send_connections",this.count())})):t.alertErrors(e.errors)})).always((function(){t.hideAjaxLoader(r)}))):alert(t.displayAlert(m("You smtp value has been selected.")))})),this.makeRow([a,r])}),"prepend"),o}}),_(),i.btnAddExclusion.on("click",(function(){s.show()})),i.btnClearExclusion.on("click",(function(){t.showAjaxLoader(i.btnClearExclusion),e.postAjax({submit:"clearExclusionEmails"}).done((function(e){e.success?(t.hideAjaxLoader(i.btnClearExclusion),i.exclusionEmailsCount.html(0),alert(t.displayAlert(e.msg))):t.alertErrors(e.errors)})).always((function(){t.hideAjaxLoader(i.btnClearExclusion)}))})),i.btnPerformances.on("click",(function(){o.show()})),h=new t.components.FilterSelection({customers:n.vars.filterCustomers,visitors:n.vars.filterVisitor,visitors_np:n.vars.filterVisitorNP,added:n.vars.filterAdded,customers_apply_callback:n.vars.applyFilerCustomersCallback,visitor_apply_callback:n.vars.applyFilerVisitorCallback,visitor_np_apply_callback:n.vars.applyFilerVisitorNpCallback,added_apply_callback:n.vars.applyFilerAddedCallback}),i.addFilterSelection.on("click",(function(){var n=h.getFilters(),s=i.nameFilterSelection.val();e.postAjax({submit:"addFilterSelection",name:s,filters:n}).done((function(n){if(n.success){i.deleteFilterSelection.show(),i.nameFilterSelection.val(""),i.filterSelection.empty(),i.filterSelection.append('<option value="0">- '+m("none")+" -</option>");for(var a=0;a<n.filters.length;a++){var r=n.filters[a],o='<option value="'+r.id_newsletter_pro_filters_selection+'" '+(e.trim(s)===e.trim(r.name)?'selected="selected"':"")+">"+r.name+"</option>";i.filterSelection.append(o)}}else t.alertErrors(n.errors)}))})),i.addFilterSelection.on("change",(function(){Number(i.filterSelection.val())>0?i.deleteFilterSelection.show():i.deleteFilterSelection.hide()})),i.deleteFilterSelection.on("click",(function(){var n=Number(i.filterSelection.val());if(0==n)return!1;e.postAjax({submit:"deleteFilterSelection",id:n}).done((function(s){s.success?(e(i.filterSelection.selector+' option[value="'+n+'"]').remove(),h.clearfilters(),i.filterSelection.children().length<=1&&i.deleteFilterSelection.hide()):t.alertErrors(s.errors)}))})),i.filterSelection.on("change",(function(){var s=Number(i.filterSelection.val());if(0==s)return i.deleteFilterSelection.hide(),h.clearfilters(),!1;i.deleteFilterSelection.show(),g(n.vars.customers,n.vars.customersCheckAll),g(n.vars.visitors,n.vars.visitorsCheckAll),g(n.vars.visitorsNP,n.vars.visitorsNPCheckAll),g(n.vars.added,n.vars.addedCheckAll),e.postAjax({submit:"getFilterSelectionById",id:s}).done((function(e){e.success?Object.prototype.hasOwnProperty.call(e,"value")?(h.clearfilters(),h.applyFilters(e.value)):t.alertErrors([m("An error occured.")]):t.alertErrors(e.errors)}))}))})),n},addEvent:function(e,t){this.events[e]=t},triggerEvent:function(e){Object.prototype.hasOwnProperty.call(this.events,e)&&"function"==typeof this.events[e]&&this.events[e]()},addVar:function(e,t){this.vars=this.vars||{},this.vars[e]=t},ready:function(t){var n=this;e(document).ready((function(){n.domSave=n.domSave||{template:e(e.trim(e("#add-new-email-template").html()))},void 0!==n.domSave.template[1]&&(n.domSave.template=e(n.domSave.template[1]));var i=n.domSave.template;e(e("#list-of-interest-template").html());n.dom=n.dom||{customersGrid:e("#customers-list"),visitorsGrid:e("#visitors-list"),visitorsNPGrid:e("#visitors-np-list"),addedGrid:e("#added-list"),customersCount:e("#customers-count"),visitorsCount:e("#visitors-count"),visitorsNPCount:e("#visitors-np-count"),addedCount:e("#added-count"),addNewEmailTemplate:i,addNewEmail:i.find("#add-new-email-action"),addNewEmailForm:i.find("#add-new-email-from"),addNewEmailError:i.find("#add-new-email-error"),btnAddExclusion:e("#btn-add-exclusion"),btnClearExclusion:e("#btn-clear-exclusion"),exclusionEmailsCount:e("#exclusion-emails-count"),usersAjaxLoader:e("#users-ajax-loader"),visitorsAjaxLoader:e("#visitors-ajax-loader"),visitorsNPAjaxLoader:e("#visitors-np-ajax-loader"),addedAjaxLoader:e("#added-ajax-loader"),btnBouncedEmails:e("#btn-bounced-emails"),btnPerformances:e("#np-btn-performances"),sendMethodDisplay:e("#np-send-method-display"),addFilterSelection:e("#np-add-filter-selection"),deleteFilterSelection:e("#np-delete-filter-selection"),nameFilterSelection:e("#np-name-filter-selection"),filterSelection:e("#np-filter-selection")},t(n.dom)}))},createCheckToggle:function(t,n){var i=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters),s=e("#"+t).gkButton({name:t,title:i("check all"),className:t,css:{"padding-left":"10px","padding-right":"10px","margin-left":"0",display:"inline-block"},attr:{"data-checked":0},click:function(e){var t,a;t=i("uncheck all"),a=i("check all"),(s.data("checked")?(s.data("checked",!1),s.changeTitle(a),0):(s.data("checked",!0),s.changeTitle(t),1))?n.checkAll():n.uncheckAll()}});return s},getGenderImageById:function(e){var t="";switch(parseInt(e)){case 1:t='<img src="../modules/newsletterpro/views/img/gender_1.png" style="margin-left: 7px;">';break;case 2:t='<img src="../modules/newsletterpro/views/img/gender_2.png" style="margin-left: 7px;">'}return t},isNewsletterProSubscriptionActive:function(){return NewsletterPro.dataStorage.getNumber("configuration.SUBSCRIPTION_ACTIVE")},getAjaxLoader:function(){return e('<span class="ajax-loader" style="display: block;"></span>')},getRangeSelectionContent:function(t){e.postAjax({submit:"getRangeSelectionContent"},"html").done((function(n){t(e(n))}))},resetButtons:function(){},isPS16:function(){return this.box.dataStorage.data.isPS16},resetCustomersButton:function(){},resetVisitorsButton:function(){},resetVisitorsNPButton:function(){},resetAddedButton:function(){},buildExportToCSVData:function(t,n){var i=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters),s=e('\t\t\t\t<form style="display: none;" id="'+NewsletterPro.uniqueId()+'" method="POST" action="'+NewsletterPro.dataStorage.get("ajax_url")+'#sendNewsletters">\t\t\t\t\t<input type="hidden" name="export_all_columns" value="1">\t\t\t\t\t<input type="hidden" name="export_email_addresses" value="1">\t\t\t\t\t<input type="hidden" name="csv_separator" value=";">\t\t\t\t\t<input type="hidden" name="list_ref" value="'+n+'">\t\t\t\t\t<div id="np-export-csv-range-box">\t\t\t\t\t</div>\t\t\t\t</form>\t\t\t'),a=s.find('input[name="csv_separator"]'),r=s.find("#np-export-csv-range-box");e(document.body).append(s);var o=e('\t\t\t<a id="'+NewsletterPro.uniqueId()+'" href="javascript:{}" class="btn btn-default pull-right">\t\t\t\t<i class="icon icon-download"></i>\t\t\t\t'+i("Export Selection")+"\t\t\t</a>");return o.on("click",(function(){var n=t.getSelectedIds(!0),o=prompt(i("CSV Separator"),";");if(n.length){if(null!=o)if(";"==(o=e.trim(o))||","==o){r.empty();for(var l=0,d=n.length;l<d;l++)r.append('<input type="hidden" name="export_range[]" value="'+n[l]+'">');a.val(o),s.submit()}else alert(i("Invalid CSV separator."))}else alert(i("You must select at least an email address."))})),o},initCustomersGrid:function(){var t=this;t.ready((function(n){var s,a,r,o,l,d,c,u,h,p,m,f=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters),_=n.customersGrid,g=0;s=new gk.data.Model({id:"id_customer"}),a=new gk.data.DataSource({pageSize:10,trySteps:2,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getCustomers",dataType:"json"},update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=updateCustomer&id",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteCustomer&id",type:"POST",dateType:"json",success:function(e,t){e||alert(f("delete customer"))},error:function(e,t){alert(f("delete customer"))},complete:function(e,t){}},search:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=searchCustomer&value",dataType:"json"},filter:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=filterCustomer",dataType:"json"}},schema:{model:s},errors:{read:function(e,t,n){a.syncStepAvailableAdd(3e3,(function(){a.sync()}))}}}),_.gkGrid({dataSource:a,selectable:!1,checkable:!0,currentPage:1,pageable:!0,start:function(){n.usersAjaxLoader.show()},done:function(e){n.customersCount.html(e.items.length),n.usersAjaxLoader.hide()},template:{img_path:function(n,i){var s=e("<div></div>"),a='<img src="'+i+'">',r=t.getGenderImageById(n.data.id_gender);return s.append(a),s.append(r),s.width("38"),s},newsletter:function(t,n){var i=e('<a href="javascript:{}"></a>'),s=t.data;function a(){return!!parseInt(t.data.newsletter)}function r(){a()?i.html('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):i.html('<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')}return r(),i.on("click",(function(e){e.stopPropagation(),s.newsletter=a()?0:1,t.update().done((function(e){e?NewsletterPro.dataStorage.getNumber("configuration.VIEW_ACTIVE_ONLY")?t.removeFromScreen():r():alert("error on subscribe or unsubscribe")}))})),i},chackbox:function(t,n){return e('<input type="checkbox" value="'+n+'" '+(t.isChecked()?'checked="checked"':"")+"> ")},actions:function(t){return e("#delete-customer").gkButton({name:"delete",title:f("delete"),className:"customer-delete",item:t,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(f("delete customer confirm"))})),icon:'<i class="icon icon-trash-o"></i> '})}}});_.addFooter((function(n){var i,s;function r(t){var n=e("#"+t).gkButton({name:t,title:f("check all"),className:t,css:{"padding-left":"10px","padding-right":"10px","margin-left":"0",display:"inline-block"},attr:{"data-checked":0},click:function(e){var t,i;t=f("uncheck all"),i=f("check all"),(n.data("checked")?(n.data("checked",!1),n.changeTitle(i),0):(n.data("checked",!0),n.changeTitle(t),1))?a.checkAll():a.uncheckAll()}});return n}u=r("check-toggle"),(h=r("check-toggle-search")).addClass("gk-onfilter"),h.hide(),t.addVar("customersCheckAll",u);var o,l=t.buildExportToCSVData(a,NewsletterPro.dataStorage.get("csv_export_list_ref.LIST_CUSTOMERS"));return o=[u,h,l],i=e("<tr></tr>"),s=e('<td class="form-inline gk-footer" colspan="'+n+'"></td>'),e.each(o,(function(e,t){s.append(t)})),i.html(s),i}),"prepend");function v(e){N.from=e}function y(e){N.to=e}function b(){void 0!==k&&(k.val(""),v("")),void 0!==L&&(L.val(""),y(""))}var w,M,k,L,T,S,D,Y,x,P,C,j,N={from:"",to:""};function E(){return a.items.length}function H(e,t,n){if("range"!==e&&void 0!==w){var i={min:t,max:n,valueMin:t,valueMax:n,values:[t,n]};n<=0&&(i.snap=0,i.min=0,i.max=1),w.reset(i),w.resetPositionMin(),w.resetPositionMax()}}function I(){!function(e,t){if(void 0!==M){var n={min:e,max:t,valueMin:e,valueMax:t,values:[e,t]};M.reset(n),M.resetPositionMin(),M.resetPositionMax()}}(0,g)}function A(){void 0!==o&&(d.val(""),o.clearSearch(),o.uncheckAll())}var O={startDate:"",endDate:""};_.addHeader((function(n){var s,p;var _=e("#gk-filter-groups").gkDropDownMenu({title:f("groups"),name:"gk-filter-groups",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_groups,change:function(e){oe("groups")}}),I=NewsletterPro.dataStorage.data.filter_languages;e.each(I,(function(e,t){I[e].title='<img src="'+t.img_path+'" width="16" height="11"><span style="margin-left: 10px;">'+t.title+"</span>"}));var W=e("#gk-filter-languages").gkDropDownMenu({title:f("languages"),name:"gk-filter-languages",css:{float:"left","margin-right":"10px"},data:I,change:function(e){oe("languages")}}),F=e("#gk-filter-shops").gkDropDownMenu({title:f("shops"),name:"gk-filter-shops",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_shops,change:function(e){oe("shops")}}),z=e("#gk-filter-gender").gkDropDownMenu({title:f("gender"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.get("filter_genders"),change:function(e){oe("gender")}}),R=e("#gk-filter-subscribed").gkDropDownMenu({title:f("subscribed"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:[{title:f("yes"),value:1},{title:f("no"),value:0}],change:function(e){oe("subscribed")}});NewsletterPro.dataStorage.get("view_active_only")&&R.hide(),c=new i.a({app:NewsletterPro,transport:{selectedData:[],readData:NewsletterProApp.storage.get("categories")}});var B=new gkWindow({width:640,height:540,title:f("category filter title"),className:"category-filters",show:function(e){},close:function(e){},content:function(t){var n=e('<div style="padding: 10px;"></div>');return n.html(c.render()),n}}),V=e("#filter-categories").gkButton({name:"filter-categories",title:f("categories"),className:"filter-categories",css:{"padding-left":"10px","padding-right":"10px",float:"left","margin-right":"10px",position:"relative"},attr:{"data-checked":0},click:function(e){B.show()}});function q(e,t){for(var n=0;n<e.length;n++){if(e[n].id_product==t)return n}return-1}c.on("change",(function(e){oe("categories")}));var U=e("#gk-customer-filter-by-interest-np").gkDropDownMenu({title:f("by list of interest"),name:"gk-filter-loi",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.get("filter_list_of_interest"),activeClass:{enable:"",disable:"btn-filter-list-of-interst-inactive"},change:function(e){oe()}}),G=new gkWindow({width:640,height:540,title:f("filter by purchase"),className:"filter-by-purchase-window",show:function(e){},close:function(e){},content:function(n,i){var s;return s=function(i){n.setContent(i),x=i.find("#pqnp-fbp-order-start-date"),C=i.find("#pqnp-fbp-order-end-date"),j=i.find("#pqnp-fbp-clear-date"),(P=i.find("#pqnp-filer-without-purchase")).on("change",(function(e){Boolean(Number(e.currentTarget.value)),oe("purchase")})),x.datepicker({dateFormat:t.box.dataStorage.get("jquery_date_format"),onSelect:function(e,t){O.startDate=J(t),oe("purchase")},beforeShow:function(e,t){}}),C.datepicker({dateFormat:t.box.dataStorage.get("jquery_date_format"),onSelect:function(e,t){O.endDate=J(t),oe("purchase")},beforeShow:function(e,t){}}),j.on("click",(function(){x.val(""),C.val(""),O.startDate="",O.endDate="",oe("purchase")})),S=new gkSearch({read:{submit:"searchByPurchase"},element:i.find("#filter-poduct-search"),ajaxLoader:i.find(".product-search-span"),result:function(e){var t=e.products;D.createItems(t)},reset:function(){D.removeItems()}}),D=new gkProductList({element:i.find("#filter-product-list"),inList:function(e){var t=e.id_product;return!(q(Y.dataSource.getData(),t)>-1)},add:function(e,t){var n=Y.dataSource.getData(),i=e.id_product;Y.dataSource.getItemByValue("data.id_product",i)||n.push(e),Y.dataSource.setData(n),Y.dataSource.sync().done((function(){oe("purchase")}))},remove:function(e,t){var n=e.id_product,i=Y.dataSource.getItemByValue("data.id_product",n),s=Y.dataSource.getData();if(i){i.removeFromScreen();var a=q(s,n);a>-1&&s.splice(a,1)}oe("purchase")}}),Y=function(t,n){n=n||[];var i=new gk.data.Model({id:"id_product"}),s=new gk.data.DataSource({pageSize:7,transport:{data:n},schema:{model:i}});return t.gkGrid({dataSource:s,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(t){var n=e('<a href="javascript:{}" class="btn btn-default"><i class="icon icon-times" style="margin-right: 7px;"></i> '+f("remove")+"</a>");return n.on("click",(function(){var e=t.data.id_product,n=Y.dataSource.getItemByValue("data.id_product",e),i=Y.dataSource.getData();if(n){n.removeFromScreen();var s=q(i,e);s>-1&&i.splice(s,1)}var a=D.getItems(!1),r=a.length;if(r>0)for(var o,l=0;l<r;l++)if((o=a[l]).data.id==e){o.remove();break}})),n},price_display:function(e,t){return'<span style="font-weight: bold;">'+t+"</span>"},reference:function(e,t){return'<span style="font-weight: bold;">'+t+"</span>"},image:function(e){return'<img src="'+e.data.thumb_path+'" style="width: 40px; height: 40px;">'}}}),{dataSource:s,dataModel:i,dataGrid:t}}(i.find("#fbp-grid"))},e.postAjax({submit:"getFilterByPurchaseContent"},"html").done((function(t){s(e(t))})),'<span class="ajax-loader" style="margin-left: 312px; margin-top: 224px;"></span>'}}),$=e("#by-purchase-filters").gkButton({name:"by-purchase-filters",title:f("by purchase"),className:"by-purchase-filters",css:{"padding-left":"10px","padding-right":"10px",float:"left","margin-right":"10px"},attr:{"data-checked":0},click:function(e){G.show()}});function J(e){return e.selectedYear+"-"+(Number(e.selectedMonth)<9?"0"+String(e.selectedMonth+1):String(e.selectedMonth+1))+"-"+(1==String(e.selectedDay).length?"0"+String(e.selectedDay):String(e.selectedDay))}var K=new gkWindow({width:640,height:320,title:f("filter by birthday"),className:"filter-by-birthday-window",show:function(e){},close:function(e){},content:function(n,i){var s;return s=function(i){n.setContent(i),k=i.find("#fbb-from-customers"),L=i.find("#fbb-to-customers"),T=i.find("#fbb-clear-customers"),k.datepicker({dateFormat:t.box.dataStorage.get("jquery_date_birthday"),onSelect:function(e,t){v(J(t)),oe("birthday")},beforeShow:function(e,t){t.dpDiv.hasClass("date-birthday")||t.dpDiv.addClass("date-birthday")}}),L.datepicker({dateFormat:t.box.dataStorage.get("jquery_date_birthday"),onSelect:function(e,t){y(J(t)),oe("birthday")},beforeShow:function(e,t){t.dpDiv.hasClass("date-birthday")||t.dpDiv.addClass("date-birthday")}}),k.on("change",(function(){""==e.trim(e(this).val())&&(v(""),oe("birthday"))})),L.on("change",(function(){""==e.trim(e(this).val())&&(y(""),oe("birthday"))})),T.on("click",(function(){b(),oe("birthday")}))},e.postAjax({submit:"getFilterByBirthdayContent",fbb_class:"customers"},"html").done((function(t){s(e(t))})),'<span class="ajax-loader" style="margin-left: 310px; margin-top: 119px;"></span>'}}),X=e("#by-birthday-filters").gkButton({name:"by-birthday-filters",title:f("by birthday"),className:"by-birthday-filters",css:{"padding-left":"10px","padding-right":"10px","margin-right":"10px",float:"left"},attr:{"data-checked":0},click:function(e){K.show()}});var Z,Q,ee=new gkWindow({width:640,height:150,title:f("range selection"),className:"range-selection-window",show:function(e){void 0!==w&&w.refresh()},close:function(e){},content:function(e,n){return a.ready().done((function(){t.getRangeSelectionContent((function(t){e.setContent(t),w=gkSliderRange({target:t.find("#slider-range-selection"),min:1,max:E(),valueMin:1,valueMax:E(),editable:!0,values:[1,E()],move:function(e){},done:function(e){oe("range")},onChange:function(e){oe("range")}})}))})),'<span class="ajax-loader" style="margin-left: 310px; margin-top: 36px;"></span>'}}),te=e("#range-selection").gkButton({name:"range-selection",title:f("range selection"),className:"range-selection",css:{"padding-left":"10px","padding-right":"10px","margin-right":"10px",float:"left"},attr:{"data-checked":0},click:function(e){ee.show()}}),ne=new gkWindow({width:640,height:150,title:f("Total spent filter"),className:"win-filter-total-spent",show:function(t){void 0===M?e.postAjax({submit:"getMaxTotalSpent"}).done((function(e){g=Number(e),M=gkSliderRange({target:Z,min:0,max:g,prefix:" "+NewsletterPro.dataStorage.get("currency_default.sign"),valueMin:0,valueMax:g,values:[0,g],move:function(e){},done:function(e){oe("total_spent")},onChange:function(e){oe("total_spent")}})})):M.refresh()},close:function(e){},content:function(t,n){return Z=e('\t\t\t\t\t\t\t<div id="slider-filter-total-spent" class="slider-filter-total-spent">\t\t\t\t\t\t\t\t<div class="slider-container">\t\t\t\t\t\t\t\t\t<label>'+f("Total spent")+'</label>\t\t\t\t\t\t\t\t\t<div id="slider-range-selection"></div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t')}}),ie=e("#filter-total-spent").gkButton({name:"",icon:'<i class="icon icon-usd"></i>',title:"",className:"filter-total-spent",css:{"padding-left":"10px","padding-right":"10px","margin-right":"10px",float:"left"},attr:{"data-checked":0},click:function(e){ne.show()}}),se=new gkWindow({width:640,height:475,setScrollContent:415,title:f("Filter customers by country"),className:"win-filter-total-spent",show:function(t){void 0===o&&(r=new gk.data.Model({id:"id_country"}),o=new gk.data.DataSource({pageSize:10,trySteps:2,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getCountries",dataType:"json"},search:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=searchCountries&value",dataType:"json"}},schema:{model:r},errors:{read:function(e,t,n){o.syncStepAvailableAdd(3e3,(function(){o.sync()}))}}}),(l=Q.find("#filter-by-country-list")).gkGrid({dataSource:o,selectable:!1,checkable:!0,currentPage:1,pageable:!0,start:function(){},done:function(e){},template:{active:function(e,t){var n=Number(t);return n?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>'},chackbox:function(t,n){return e('<input type="checkbox" value="'+n+'" '+(t.isChecked()?'checked="checked"':"")+"> ")}}}),l.addHeader((function(t){var n=null,i=e('\t\t\t\t\t\t\t\t\t\t<div class="clearfix">\t\t\t\t\t\t\t\t\t\t\t<span>'+f("Search")+':</span>\t\t\t\t\t\t\t\t\t\t\t<div class="fixed-width-xxl filter-by-country-search-box">\t\t\t\t\t\t\t\t\t\t\t\t<input id="filter-by-country-search" class="form-control filter-by-country-search" type="text">\t\t\t\t\t\t\t\t\t\t\t\t<span id="filter-by-country-search-loading" class="filter-by-country-search-loading" style="display: none;"></span>\t\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t<a id="filter-by-country-clear-selection" href="javascript:{}" class="btn btn-default pull-right">\t\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-remove"></i>\t\t\t\t\t\t\t\t\t\t\t\t'+f("Clear Selection")+"\t\t\t\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t"),s=i.find("#filter-by-country-search-loading"),a=i.find("#filter-by-country-clear-selection");return(d=i.find("#filter-by-country-search")).on("keyup",(function(t){var i=e.trim(d.val());if(i.length<3)return o.clearSearch(),!0;s.show(),null!=n&&clearTimeout(n),n=setTimeout((function(){o.search(i).done((function(e){o.applySearch(e),s.hide()}))}),300)})),a.on("click",(function(e){A()})),l.makeRow([i])})))},close:function(e){oe("filter_by_country")},content:function(t,n){return Q=e('\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t<table id="filter-by-country-list" class="table table-bordered filter-by-country-list">\t\t\t\t\t\t\t\t\t<thead>\t\t\t\t\t\t\t\t\t\t<tr>\t\t\t\t\t\t\t\t\t\t\t<th class="chackbox" data-template="chackbox">&nbsp;</th>\t\t\t\t\t\t\t\t\t\t\t<th class="np-fc-country-name" data-field="name">'+f("Country Name")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="np-fc-iso-code" data-field="iso_code">'+f("ISO Code")+'</th>\t\t\t\t\t\t\t\t\t\t\t<th class="np-fc-active" data-field="active">'+f("Active")+"</th>\t\t\t\t\t\t\t\t\t\t</tr>\t\t\t\t\t\t\t\t\t</thead>\t\t\t\t\t\t\t\t</table>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t")}}),ae=e("#filter-by-country").gkButton({name:"",icon:'<i class="icon icon-globe"></i>',title:"",className:"filter-by-country",css:{"padding-left":"10px","padding-right":"10px","margin-right":"10px",float:"left"},attr:{"data-checked":0},click:function(e){se.show()}}),re=function(){var e,t=[];if(void 0!==o){e=o.getSelection();for(var n=0;n<e.length;n++)t.push(e[n].data.iso_code)}return t};function oe(t){var n,i={groups:_.getSelected(),shops:F.getSelected(),gender:z.getSelected(),subscribed:R.getSelected(),languages:W.getSelected(),categories:c.getSelected("id"),by_interest:U.getSelected(),purchased_product:(n=[],Y.dataSource.parse((function(e){n.push(e.data.id)})),{ids:n,withoutPurchase:Boolean(Number(P.val())),startDate:O.startDate,endDate:O.endDate}),by_birthday:N,total_spent:{from:void 0===M||isNaN(M.getValueMin())?0:M.getValueMin(),to:void 0===M||isNaN(M.getValueMax())?0:M.getValueMax()},filter_by_country:re()},s=!1;e.each(i,(function(e,t){"purchased_product"===e?(t.ids.length>0||1==Boolean(Number(i.purchased_product.withoutPurchase)))&&(s=!0):t.length&&(s=!0)})),0==i.purchased_product.ids.length&&0==Boolean(Number(i.purchased_product.withoutPurchase))&&delete i.purchased_product,""==e.trim(i.by_birthday.from)||""==e.trim(i.by_birthday.to)?delete i.by_birthday:s=!0,"range"==t&&(i.range_selection={min:void 0===w||isNaN(w.getValueMin())?0:w.getValueMin(),max:void 0===w||isNaN(w.getValueMax())?0:w.getValueMax()},0==e.trim(i.range_selection.min)||0==e.trim(i.range_selection.max)?delete i.range_selection:s=!0),0==i.total_spent.from&&0==i.total_spent.to||0==i.total_spent.from&&i.total_spent.to==g?delete i.total_spent:s=!0,0==i.filter_by_country.length?delete i.filter_by_country:s=!0,s?(m.val(""),u.hide(),h.css({display:"inline-block"}),a.filter(i).done((function(e){a.applySearch(e),H(t,1,e.length)}))):(H(t,1,E()),u.show(),h.hide(),a.clearSearch())}var le,de=e('<span style="margin-left: 0px; margin-right: 10px; float: left; line-height: 28px;">'+f("filters")+"</span>");return t.reset=t.reset||{},t.reset.customer=t.reset.customer||{},t.reset.customer.filterGroups=_,t.reset.customer.filterLanguages=W,t.reset.customer.filterShops=F,t.reset.customer.filterGender=z,t.reset.customer.filterSubscribed=R,t.reset.customer.filterCategories=V,t.reset.customer.filterByInterest=U,t.reset.customer.filterByPurchase=$,t.reset.customer.filterByBirthday=X,t.reset.customer.filterTotalSpent=ie,t.reset.customer.filterByCountry=ae,t.reset.customer.rangeSelection=te,t.addVar("filterCustomers",{groups:_,languages:W,shops:F,gender:z,subscribed:R,by_category:V,by_interest:U,by_purchase:$,by_birthday:X,total_spent:ie,filter_by_country:ae,range:te}),t.addVar("applyFilerCustomersCallback",oe),t.addVar("customers",a),le=[de,_,W,F,z,R,ie,ae,V,U,$,X,te],s=e("<tr></tr>"),p=e('<th class="gk-header-datagrid customers-header" colspan="'+n+'"></th>'),e.each(le,(function(e,t){p.append(t)})),s.html(p),s}),"prepend"),_.addHeader((function(n){var i,s,r,o,l=null;r=e('<div class="customers-search-div"></div>'),m=e('<input class="form-control customers-search" type="text">'),p=e('<span class="customers-search-loading" style="display: none;"></span>'),m.on("keyup",(function(t){var n=e.trim(m.val());if(n.length<3)return u.show(),h.hide(),a.clearSearch(),!0;u.hide(),h.css({display:"inline-block"}),p.show(),null!=l&&clearTimeout(l),l=setTimeout((function(){a.search(n).done((function(e){a.applySearch(e),p.hide()}))}),300)})),o=e("<span>"+f("search")+":</span>"),r.append(m),r.append(p);var d,_=e("#clear-filters").gkButton({name:"clear-filters",title:f("clear filters"),className:"clear-filters",css:{"padding-left":"10px","padding-right":"10px","margin-left":"0","margin-right":"0",position:"absolute",right:"5px"},attr:{"data-checked":0},click:function(e){m.val(""),t.reset.customer.filterGroups.uncheckAll(),t.reset.customer.filterShops.uncheckAll(),t.reset.customer.filterLanguages.uncheckAll(),t.reset.customer.filterGender.uncheckAll(),t.reset.customer.filterSubscribed.uncheckAll(),c.uncheckAll(),S.clearVal(),D.removeItems(),Y.dataSource.parse((function(e){e.removeFromScreen()})),Y.dataSource.setData([]),Y.dataSource.sync(),P&&P.val("0"),O.startDate="",O.endDate="",x&&x.length>0&&x.val(""),C&&C.length>0&&C.val(""),b(),H("clear",1,E()),I(),A(),u.show(),h.hide(),a.clearSearch()},icon:'<i class="icon icon-times"></i> '});return t.reset=t.reset||{},t.reset.customer=t.reset.customer||{},t.reset.customer.clearFilters=_,t.vars.filterCustomers.clear=_,d=[o,r,_],i=e("<tr></tr>"),s=e('<th class="gk-header-datagrid customers-header" colspan="'+n+'"></th>'),e.each(d,(function(e,t){s.append(t)})),i.html(s),i}),"prepend");t.resetCustomersButton();var W=NewsletterPro,F=new gkWindow({width:640,title:f("bounced emails"),className:"bounced-emails-window",show:function(e){},close:function(e){},content:function(t,n){var i=e('\t\t\t\t\t\t<form id="form-bounced-emails" method="post" enctype="multipart/form-data">\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t<label class="control-label col-sm-4"><span class="label-tooltip">'+f("select the csv file")+'</span></label>\t\t\t\t\t\t\t\t<div class="col-sm-8 clearfix">\t\t\t\t\t\t\t\t\t<div class="input-group">\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">'+f("File")+'</span>\t\t\t\t\t\t\t\t\t\t<input type="file" name="bounced_emails" class="form-control" style="float: left; margin-right: 10px;">\t\t\t\t\t\t\t\t\t\t<span class="input-group-addon">'+f("Separator")+'</span>\t\t\t\t\t\t\t\t\t\t<input type="text" name="bounced_csv_separator" class="form-control" value=";" style="width: 30px; text-align: center; float: left;">\t\t\t\t\t\t\t\t\t\t<div class="clear"></div>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="clear"></div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div class="clear"></div>\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t<label class="control-label padding-top col-sm-4">'+f("bounced emails method")+'</label>\t\t\t\t\t\t\t\t<div class="col-sm-8 clearfix">\t\t\t\t\t\t\t\t\t<div class="radio">\t\t\t\t\t\t\t\t\t\t<label for="bounced-method-delete" class="in-win">\t\t\t\t\t\t\t\t\t\t\t<input id="bounced-method-delete" type="radio" name="bounced_method" value="-1" checked>'+f("delete bounced emails")+'\t\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<div class="radio">\t\t\t\t\t\t\t\t\t\t<label for="bounced-method-unsubscribe" class="in-win">\t\t\t\t\t\t\t\t\t\t\t<input id="bounced-method-unsubscribe" type="radio" name="bounced_method" value="0"> '+f("unsubscribe bounced emails")+'\t\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t<p class="help-block">'+f("bounced emails info")+'</p>\t\t\t\t\t\t\t\t\t<div class="clear"></div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<label class="control-label padding-top col-sm-4">'+f("apply on the lists")+'</label>\t\t\t\t\t\t\t<div class="col-sm-8 clearfix">\t\t\t\t\t\t\t\t<div class="checkbox">\t\t\t\t\t\t\t\t\t<label for="bounced-customers" class="in-win">\t\t\t\t\t\t\t\t\t\t<input id="bounced-customers" type="checkbox" name="bounced_customers_list" value="1">'+f("customers list")+'\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="checkbox">\t\t\t\t\t\t\t\t\t<label for="bounced-visitors" class="in-win">\t\t\t\t\t\t\t\t\t\t<input id="bounced-visitors" type="checkbox" name="bounced_visitors_list" value="1">'+f("visitors subscribed at module block newsletter")+'\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="checkbox">\t\t\t\t\t\t\t\t\t<label for="bounced-visitors-np" class="in-win">\t\t\t\t\t\t\t\t\t\t<input id="bounced-visitors-np" type="checkbox" name="bounced_visitors_np_list" value="1">'+f("visitors subscribed at module newsletter pro")+'\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="checkbox">\t\t\t\t\t\t\t\t\t<label for="bounced-added" class="in-win">\t\t\t\t\t\t\t\t\t\t<input id="bounced-added" type="checkbox" name="bounced_added_list" value="1">'+f("added list")+'\t\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t<div class="col-sm-8 col-sm-offset-4">\t\t\t\t\t\t\t\t\t<a id="submit-bounced-emails" href="javascript:{}" class="btn btn-default"><span class="btn-ajax-loader"></span> <i class="icon icon-eraser"></i> '+f("remove bounced")+'</a>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t<div style="display: block; height: auto; background-position: 5px; padding-top: 10px; padding-bottom: 10px;" class="hint clear">\t\t\t\t\t\t\t\t\t<p style="margin-top: 0; word-break: break-word;" class="cron-link"><span style="color: black;">'+f("webhook url")+'</span> <span class="icon icon-cron-link"></span>'+W.dataStorage.get("bounce_link")+'</p>\t\t\t\t\t\t\t\t\t<p style="margin-bottom: 0;">'+f("webhook info")+'</p>\t\t\t\t\t\t\t\t\t<div class="clear"></div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</form>\t\t\t\t\t'),s=i.find("#submit-bounced-emails");return s.on("click",(function(t){confirm(f("confirm delete bounced"))&&(W.showAjaxLoader(s),e.submitAjax({submit:"deleteBouncedEmails",name:"deleteBouncedEmails",form:i}).done((function(e){if(W.hideAjaxLoader(s),e.success){var t=W.modules.sendNewsletters.vars;-1!=e.lists.indexOf("customers")&&Object.prototype.hasOwnProperty.call(t,"customers")&&t.customers.sync(),-1!=e.lists.indexOf("visitors")&&Object.prototype.hasOwnProperty.call(t,"visitors")&&t.visitors.sync(),-1!=e.lists.indexOf("visitors_np")&&Object.prototype.hasOwnProperty.call(t,"visitorsNP")&&t.visitorsNP.sync(),-1!=e.lists.indexOf("added")&&Object.prototype.hasOwnProperty.call(t,"added")&&t.added.sync(),alert(W.displayAlert(e.msg))}else W.alertErrors(e.errors)})))})),i}});n.btnBouncedEmails.on("click",(function(e){F.show()}))}))},initVisitorsGrid:function(){var t=this;t.ready((function(n){if(!t.isNewsletterProSubscriptionActive()){var i,s,a,r,o,l,d,c=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters),u=n.visitorsGrid;i=new gk.data.Model({id:"id"}),s=new gk.data.DataSource({pageSize:5,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getVisitors",dataType:"json"},update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=updateVisitor&id",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteVisitor&id",type:"POST",dateType:"json",success:function(e,t){e||alert(c("delete visitor"))},error:function(e,t){alert(c("delete visitor"))},complete:function(e,t){}},search:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=searchVisitor&value",dataType:"json"},filter:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=filterVisitor",dataType:"json"}},schema:{model:i},trySteps:2,errors:{read:function(e,t,n){s.syncStepAvailableAdd(3e3,(function(){s.sync()}))}}}),u.gkGrid({dataSource:s,selectable:!1,checkable:!0,currentPage:1,pageable:!0,start:function(){n.visitorsAjaxLoader.show()},done:function(e){n.visitorsCount.html(e.items.length),n.visitorsAjaxLoader.hide()},template:{chackbox:function(t,n){return e('<input type="checkbox" value="'+n+'" '+(t.isChecked()?'checked="checked"':"")+"> ")},img_path:function(e,t){return'<img src="'+t+'">'},active:function(t,n){var i=e('<a href="javascript:{}"></a>'),s=t.data;function a(){return!!parseInt(t.data.active)}function r(){a()?i.html('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):i.html('<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')}return r(),i.on("click",(function(e){e.stopPropagation(),s.active=a()?0:1,t.update().done((function(e){e?NewsletterPro.dataStorage.getNumber("configuration.VIEW_ACTIVE_ONLY")?t.removeFromScreen():r():alert("error on subscribe or unsubscribe")}))})),i},actions:function(t){return e("#delete-visitor").gkButton({name:"delete",title:c("delete"),className:"visitor-delete",item:t,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(c("delete visitor confirm"))})),icon:'<i class="icon icon-trash-o"></i> '})}}});u.addFooter((function(n){var i,o;function l(t){var n=e("#"+t).gkButton({name:t,title:c("check all"),className:t,css:{"padding-left":"10px","padding-right":"10px","margin-left":"0"},attr:{"data-checked":0},click:function(e){var t,i;t=c("uncheck all"),i=c("check all"),(n.data("checked")?(n.data("checked",!1),n.changeTitle(i),0):(n.data("checked",!0),n.changeTitle(t),1))?s.checkAll():s.uncheckAll()}});return n}a=l("check-toggle"),(r=l("check-toggle-search")).addClass("gk-onfilter"),r.hide(),t.addVar("visitorsCheckAll",a);var d,u=t.buildExportToCSVData(s,NewsletterPro.dataStorage.get("csv_export_list_ref.LIST_VISITORS"));return d=[a,r,u],i=e("<tr></tr>"),o=e('<td class="gk-footer" colspan="'+n+'"></td>'),e.each(d,(function(e,t){o.append(t)})),i.html(o),i}),"prepend"),u.addHeader((function(n){var i,u,m,f,_=null;m=e('<div class="visitors-search-div" style="float: left; margin-right: 10px;"></div>'),l=e('<input class="gk-input visitors-search" type="text">'),o=e('<span class="visitors-search-loading" style="display: none;"></span>'),l.on("keyup",(function(t){var n=e.trim(l.val());if(n.length<3)return a.show(),r.hide(),s.clearSearch(),!0;a.hide(),r.css({display:"inline-block"}),o.show(),null!=_&&clearTimeout(_),_=setTimeout((function(){s.search(n).done((function(e){s.applySearch(e),o.hide()}))}),300)})),f=e('<span style="float: left; margin-right: 10px;">'+c("search")+":</span>"),m.append(l),m.append(o);var g=e("#gk-filter-shops").gkDropDownMenu({title:c("shops"),name:"gk-filter-shops",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_shops,change:function(e){w("shops")}}),v=e("#gk-filter-subscribed-visitors").gkDropDownMenu({title:c("subscribed"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:[{title:c("yes"),value:1},{title:c("no"),value:0}],change:function(e){w("subscribed")}});NewsletterPro.dataStorage.get("view_active_only")&&v.hide();var y=new gkWindow({width:640,height:150,title:c("range selection"),className:"range-selection-window",show:function(e){void 0!==d&&d.refresh()},close:function(e){},content:function(e,n){return s.ready().done((function(){t.getRangeSelectionContent((function(t){e.setContent(t),d=gkSliderRange({target:t.find("#slider-range-selection"),min:1,max:p(),valueMin:1,valueMax:p(),editable:!0,values:[1,p()],move:function(e){},done:function(e){w("range")},onChange:function(e){w("range")}})}))})),'<span class="ajax-loader" style="margin-left: 310px; margin-top: 36px;"></span>'}}),b=e("#range-selection-visitors").gkButton({name:"range-selection-visitors",title:c("range selection"),className:"range-selection",css:{"padding-left":"10px","padding-right":"10px",float:"left","margin-right":"10px",position:"relative"},attr:{"data-checked":0},click:function(e){y.show()}});function w(t){var n={shops:g.getSelected(),subscribed:v.getSelected()},i=!1;e.each(n,(function(e,t){t.length&&(i=!0)})),"range"==t&&(n.range_selection={min:void 0!==d?d.getValueMin():0,max:void 0!==d?d.getValueMax():0},0==e.trim(n.range_selection.min)||0==e.trim(n.range_selection.max)?delete n.range_selection:i=!0),i?(l.val(""),a.hide(),r.css({display:"inline-block"}),s.filter(n).done((function(e){s.applySearch(e),h(t,1,e.length)}))):(h(t,1,p()),a.show(),r.hide(),s.clearSearch())}var M,k=e('<span style="margin-left: 20px; margin-right: 10px; float: left; line-height: 28px;">'+c("filters")+"</span>"),L=e("#clear-filters-visitors").gkButton({name:"clear-filters-visitors",title:c("clear filters"),className:"clear-filters",css:{"padding-left":"10px","padding-right":"10px","margin-left":"0","margin-right":"0",position:"absolute",right:"5px"},attr:{"data-checked":0},click:function(e){l.val(""),g.uncheckAll(),v.uncheckAll(),h("clear",1,p()),a.show(),r.hide(),s.clearSearch()},icon:'<i class="icon icon-times"></i> '});return t.reset=t.reset||{},t.reset.visitor={filterShops:g,filterSubscribed:v,rangeSelection:b,clearFilters:L},t.addVar("filterVisitor",{shops:g,subscribed:v,range:b,clear:L}),t.addVar("applyFilerVisitorCallback",w),t.addVar("visitors",s),M=[f,m,k,g,v,b,L],i=e("<tr></tr>"),u=e('<th class="gk-header-datagrid visitors-header" colspan="'+n+'"></th>'),e.each(M,(function(e,t){u.append(t)})),i.html(u),i}),"prepend");t.resetVisitorsButton()}function h(e,t,n){if("range"!==e&&void 0!==d){var i={min:t,max:n,valueMin:t,valueMax:n,values:[t,n]};n<=0&&(i.snap=0,i.min=0,i.max=1),d.reset(i),d.resetPositionMin(),d.resetPositionMax()}}function p(){return s.items.length}}))},initVisitorsGridNewsletterPro:function(){var n=this,i=this.box;n.ready((function(s){if(n.isNewsletterProSubscriptionActive()){var a,r,o,l=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters),d=s.visitorsNPGrid;a=new gk.data.Model({id:"id_newsletter_pro_subscribers"}),r=new gk.data.DataSource({pageSize:5,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getVisitorsNP",dataType:"json"},update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=updateVisitorNP&id",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteVisitorNP&id",type:"POST",dateType:"json",success:function(e,t){e||alert(l("delete visitor"))},error:function(e,t){alert(l("delete visitor"))},complete:function(e,t){}},search:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=searchVisitorNP&value",dataType:"json"},filter:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=filterVisitorNP",dataType:"json"}},schema:{model:a},trySteps:2,errors:{read:function(e,t,n){r.syncStepAvailableAdd(3e3,(function(){r.sync()}))}}});var c={img_path:function(t,i){var s=e("<div></div>"),a='<img src="'+i+'">',r=n.getGenderImageById(t.data.id_gender);return s.append(a),s.append(r),s.width("38"),s},active:function(t,n){var i=e('<a href="javascript:{}"></a>'),s=t.data;function a(){return!!parseInt(t.data.active)}function r(){a()?i.html('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):i.html('<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')}return r(),i.on("click",(function(e){e.stopPropagation(),s.active=a()?0:1,t.update().done((function(e){e?NewsletterPro.dataStorage.getNumber("configuration.VIEW_ACTIVE_ONLY")?t.removeFromScreen():r():alert("error on subscribe or unsubscribe")}))})),i},chackbox:function(t,n){return e('<input type="checkbox" value="'+n+'" '+(t.isChecked()?'checked="checked"':"")+"> ")},actions:function(t){return e("#delete-visitor-np").gkButton({name:"delete",title:l("delete"),className:"added-delete",item:t,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(l("delete added confirm"))})),icon:'<i class="icon icon-trash-o"></i> '})}},u=i.dataStorage.get("configuration.SHOW_CUSTOM_COLUMNS"),h=i.dataStorage.get("custom_field.variables_types"),p=i.dataStorage.get("custom_field.types_cost"),m=new gkWindow({width:600,height:400,setScrollContent:340,title:l("Details"),className:"np-costum-fields-win",show:function(e){},close:function(e){},content:function(e){}}),f=[];if(h.length>0){for(var _=0;_<h.length;_++){var g=h[_];-1!=u.indexOf(g.variable_name)&&f.push(g)}for(_=0;_<f.length;_++){var v=f[_];Number(v.type)==Number(p.TYPE_CHECKBOX)?c[v.variable_name]=function(n,i){var s=e('<a href="javascript:{}">...</a>'),a=i,r=i;try{a=t.parseJSON(i).join(", ")}catch(e){}if(a.length<=25)r=a;else{r=a;var o=a.slice(0,25);(a=e("<span>")).append(o),a.append(s)}return s.on("click",(function(e){e.stopPropagation(),m.show(r)})),a}:c[v.variable_name]=function(t,n){var i=e('<a href="javascript:{}">...</a>'),s=n;if(s.length<=25);else{var a=s.slice(0,25);(s=e("<span>")).append(a),s.append(i)}return i.on("click",(function(e){e.stopPropagation(),m.show(n)})),s}}}d.gkGrid({dataSource:r,selectable:!1,checkable:!0,currentPage:1,pageable:!0,start:function(){s.visitorsNPAjaxLoader.show()},done:function(e){s.visitorsNPCount.html(e.items.length),s.visitorsNPAjaxLoader.hide()},template:c});var y,b,w,M,k,L,T,S,D,Y,x,P,C,j,N,E,H,I={from:"",to:""},A=i.dataStorage.get("search_conditions.conditions"),O=i.dataStorage.get("search_conditions.conditions_const"),W=i.dataStorage.get("search_conditions.visitors_np_columns"),F=Number(O.SEARCH_CONDITION_CONTAINS);d.addFooter((function(t){var s,a;var o=function(){for(var t=i.dataStorage.get("custom_field.variables"),n=i.dataStorage.get("configuration.SHOW_CUSTOM_COLUMNS"),s="",a=0;a<t.length;a++){var r,o=t[a],d="",c=-1!=n.indexOf(o);r=o.split("_");for(var u=1;u<r.length;u++)d+=r[u][0].toUpperCase()+r[u].slice(1);s+='\t\t\t\t\t\t\t<div class="checkbox">\t\t\t\t\t\t\t\t<label class="control-label in-win">\t\t\t\t\t\t\t\t\t<input type="checkbox" name="np_show_custom_colums_'+a+'" value="'+o+'" '+(c?'checked="checked"':"")+">\t\t\t\t\t\t\t\t\t"+d+"\t\t\t\t\t\t\t\t</label>\t\t\t\t\t\t\t</div>"}var h=e('\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t<label class="control-label col-sm-3" style="padding-top: 13px;">'+l("Show Columns")+'</label>\t\t\t\t\t\t\t<div class="col-sm-9">\t\t\t\t\t\t\t\t'+s+'\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t<div class="col-sm-9 col-sm-offset-3">\t\t\t\t\t\t\t\t<a href="javascript:{}" id="np-save-show-columns" class="btn btn-success pull-left"><i class="icon icon-save"></i> '+l("Save")+"</a>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t");return h.find("#np-save-show-columns").on("click",(function(){var t=[];e.each(h.find('[name^="np_show_custom_colums"]:checked'),(function(n,i){t.push(e(i).val())})),e.postAjax({submit_custom_field:"saveShowColumns",columns:t}).done((function(e){e.success?location.reload():i.alertErrors(e.errors)}))})),h},d=new gkWindow({width:600,height:400,setScrollContent:340,title:l("Display Custom Columns"),className:"np-costum-fields-win",show:function(t){e.postAjax({submit_custom_field:"getCustomColumns"}).done((function(e){e.success&&(i.dataStorage.set("custom_field.variables",e.variables),t.setContent(o()))}))},close:function(e){},content:function(e){return o()}});n.addVar("winDisplayCustomColumns",d);var c=e('<a href="javascript:{}" class="btn btn-default pull-right"><i class="icon icon-eye"></i> '+l("Display Custom Columns")+"</a>");function u(t){var n=e("#"+t).gkButton({name:t,title:l("check all"),className:t,css:{"padding-left":"10px","padding-right":"10px","margin-left":"0"},attr:{"data-checked":0},click:function(e){var t,i;t=l("uncheck all"),i=l("check all"),(n.data("checked")?(n.data("checked",!1),n.changeTitle(i),0):(n.data("checked",!0),n.changeTitle(t),1))?r.checkAll():r.uncheckAll()}});return n}c.on("click",(function(){d.show()})),y=u("check-toggle"),(b=u("check-toggle-search")).addClass("gk-onfilter"),b.hide(),n.addVar("visitorsNPCheckAll",y);var h,p=n.buildExportToCSVData(r,NewsletterPro.dataStorage.get("csv_export_list_ref.LIST_VISITORS_NP"));return p.css({"margin-right":"3px"}),h=[y,b,c,p],s=e("<tr></tr>"),a=e('<td class="gk-footer" colspan="'+t+'"></td>'),e.each(h,(function(e,t){a.append(t)})),s.html(a),s}),"prepend"),d.addHeader((function(t){var s,a;function o(e){return e.selectedYear+"-"+(1==String(e.selectedMonth).length?"0"+String(e.selectedMonth+1):String(e.selectedMonth+1))+"-"+(1==String(e.selectedDay).length?"0"+String(e.selectedDay):String(e.selectedDay))}x=e("#gk-filter-languages").gkDropDownMenu({title:l("languages"),name:"gk-filter-languages",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_languages,change:function(e){u()}}),P=e("#gk-filter-shops").gkDropDownMenu({title:l("shops"),name:"gk-filter-shops",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_shops,change:function(e){u()}}),C=e("#gk-filter-gender-np").gkDropDownMenu({title:l("gender"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.get("filter_genders"),change:function(e){u()}}),j=e("#gk-filter-subscribed-np").gkDropDownMenu({title:l("subscribed"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:[{title:l("yes"),value:1},{title:l("no"),value:0}],change:function(e){u("subscribed")}}),NewsletterPro.dataStorage.get("view_active_only")&&j.hide(),N=e("#gk-filter-by-interest-np").gkDropDownMenu({title:l("by list of interest"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.get("filter_list_of_interest"),activeClass:{enable:"",disable:"btn-filter-list-of-interst-inactive"},change:function(e){u()}});var d=new gkWindow({width:640,height:320,title:l("filter by birthday"),className:"filter-by-birthday-window",show:function(e){},close:function(e){},content:function(t,i){var s;return s=function(i){t.setContent(i),S=i.find("#fbb-from-visitorsNP"),D=i.find("#fbb-to-visitorsNP"),Y=i.find("#fbb-clear-visitorsNP"),S.datepicker({dateFormat:n.box.dataStorage.get("jquery_date_birthday"),onSelect:function(e,t){z(o(t)),u("birthday")},beforeShow:function(e,t){t.dpDiv.hasClass("date-birthday")||t.dpDiv.addClass("date-birthday")}}),D.datepicker({dateFormat:n.box.dataStorage.get("jquery_date_birthday"),onSelect:function(e,t){R(o(t)),u("birthday")},beforeShow:function(e,t){t.dpDiv.hasClass("date-birthday")||t.dpDiv.addClass("date-birthday")}}),S.on("change",(function(){""==e.trim(e(this).val())&&(z(""),u("birthday"))})),D.on("change",(function(){""==e.trim(e(this).val())&&(R(""),u("birthday"))})),Y.on("click",(function(){B(),u("birthday")}))},e.postAjax({submit:"getFilterByBirthdayContent",fbb_class:"visitorsNP"},"html").done((function(t){s(e(t))})),'<span class="ajax-loader" style="margin-left: 310px; margin-top: 119px;"></span>'}});E=e("#by-birthday-filters").gkButton({name:"by-birthday-filters",title:l("by birthday"),className:"by-birthday-filters",css:{"padding-left":"10px","padding-right":"10px",float:"left","margin-right":"10px",position:"relative"},attr:{"data-checked":0},click:function(e){d.show()}});var c=new gkWindow({width:640,height:150,title:l("range selection"),className:"range-selection-window",show:function(e){void 0!==T&&T.refresh()},close:function(e){},content:function(e,t){return r.ready().done((function(){n.getRangeSelectionContent((function(t){e.setContent(t),T=gkSliderRange({target:t.find("#slider-range-selection"),min:1,max:V(),valueMin:1,valueMax:V(),editable:!0,values:[1,V()],move:function(e){},done:function(e){u("range")},onChange:function(e){u("range")}})}))})),'<span class="ajax-loader" style="margin-left: 310px; margin-top: 36px;"></span>'}});function u(t){var n={shops:P.getSelected(),languages:x.getSelected(),gender:C.getSelected(),subscribed:j.getSelected(),by_interest:N.getSelected(),by_birthday:I},s=!1;e.each(n,(function(e,t){t.length&&(s=!0)})),""==e.trim(n.by_birthday.from)||""==e.trim(n.by_birthday.to)?delete n.by_birthday:s=!0,"range"==t&&(n.range_selection={min:void 0!==T?T.getValueMin():0,max:void 0!==T?T.getValueMax():0},0==e.trim(n.range_selection.min)||0==e.trim(n.range_selection.max)?delete n.range_selection:s=!0),s?(M.val(""),void 0!==k&&(k.val(F),L.val(0),i.dataStorage.set("search_conditions.selected_condition",F),i.dataStorage.set("search_conditions.selected_field",0)),y.hide(),b.css({display:"inline-block"}),r.filter(n).done((function(e){r.applySearch(e),q(t,1,e.length)}))):(q(t,1,V()),y.show(),b.hide(),r.clearSearch())}H=e("#range-selection-added").gkButton({name:"range-selection-added",title:l("range selection"),className:"range-selection",css:{"padding-left":"10px","padding-right":"10px",float:"left","margin-right":"10px",position:"relative"},attr:{"data-checked":0},click:function(e){c.show()}});var h,p=e('<span style="margin-left: 0px; margin-right: 10px; float: left; line-height: 28px;">'+l("filters")+"</span>");return n.reset=n.reset||{},n.reset.visitorsNP=n.reset.visitorsNP||{},n.reset.visitorsNP.filterLanguages=x,n.reset.visitorsNP.filterShops=P,n.reset.visitorsNP.filterGender=C,n.reset.visitorsNP.filterSubscribed=j,n.reset.visitorsNP.filterByInterest=N,n.reset.visitorsNP.filterByBirthday=E,n.reset.visitorsNP.rangeSelection=H,n.addVar("filterVisitorNP",{languages:x,shops:P,gender:C,subscribed:j,filter_by_interest:N,by_birthday:E,range:H}),n.addVar("applyFilerVisitorNpCallback",u),h=[p,x,P,C,j,N,E,H],s=e("<tr></tr>"),a=e('<th class="gk-header-datagrid visitors-np-header" colspan="'+t+'"></th>'),e.each(h,(function(e,t){a.append(t)})),s.html(a),s}),"prepend"),d.addHeader((function(t){var s,a,d,c,u,h=null;i.dataStorage.set("search_conditions.selected_condition",F),i.dataStorage.set("search_conditions.selected_field",0),d=e('<div class="visitors-np-search-div"></div>'),M=e('<input class="gk-input visitors-np-search" type="text">'),w=e('<span class="visitors-np-search-loading" style="display: none;"></span>'),M.on("keyup",(function(t){var n=e.trim(M.val());if(n.length<=0)return y.show(),b.hide(),r.clearSearch(),!0;y.hide(),b.css({display:"inline-block"}),w.show(),null!=h&&clearTimeout(h),h=setTimeout((function(){var e={};void 0!==k&&(e={selected_condition:Number(k.val()),selected_field:L.val()}),r.search(n,{conditions:e}).done((function(e){r.applySearch(e),w.hide()}))}),300)})),c=e("<span>"+l("search")+":</span>"),d.append(M),d.append(w),o=e("#clear-filters").gkButton({name:"clear-filters",title:l("clear filters"),className:"clear-filters",css:{"padding-left":"10px","padding-right":"10px","margin-left":"0","margin-right":"0",position:"absolute",right:"5px"},attr:{"data-checked":0},click:function(e){M.val(""),void 0!==k&&(k.val(F),L.val(0),i.dataStorage.set("search_conditions.selected_condition",F),i.dataStorage.set("search_conditions.selected_field",0)),P.uncheckAll(),C.uncheckAll(),j.uncheckAll(),N.uncheckAll(),x.uncheckAll(),q("clear",1,V()),B(),y.show(),b.hide(),r.clearSearch()},icon:'<i class="icon icon-times"></i> '});var p="";for(var m in A)p+='<option value="'+m+'" '+(Number(m)==F?'selected="selected"':"")+">"+A[m]+"</option>";for(var f,_="",g=0;g<W.length;g++){for(var v=W[g],T=v.replace(/^np_/,"").split("_"),S=0;S<T.length;S++)T[S]=T[S][0].toUpperCase()+T[S].slice(1);_+='<option value="'+v+'">'+T.join(" ")+"</option>"}return u=e('\t\t\t\t\t<div class="np-visitors-np-search-filter-condition-div">\t\t\t\t\t\t<select id="np-visitors-np-select-search-filter-condition-div" class="form-control fixed-width-l">\t\t\t\t\t\t\t'+p+'\t\t\t\t\t\t</select>\t\t\t\t\t</div>\t\t\t\t\t<div class="np-visitors-np-search-filter-columns-div">\t\t\t\t\t\t<select id="np-visitors-np-select-search-filter-columns-div" class="form-control fixed-width-l">\t\t\t\t\t\t\t<option value="0" selected="selected">'+l("all fields")+"</option>\t\t\t\t\t\t\t"+_+"\t\t\t\t\t\t</select>\t\t\t\t\t</div>\t\t\t\t"),k=u.find("#np-visitors-np-select-search-filter-condition-div"),L=u.find("#np-visitors-np-select-search-filter-columns-div"),k.on("change",(function(){i.dataStorage.set("search_conditions.selected_condition",Number(e(this).val())),M.trigger("keyup")})),L.on("change",(function(){i.dataStorage.set("search_conditions.selected_field",e(this).val()),M.trigger("keyup")})),n.reset=n.reset||{},n.reset.visitorsNP=n.reset.visitorsNP||{},n.reset.visitorsNP.clearFilters=o,n.vars.filterVisitorNP.clear=o,n.addVar("visitorsNP",r),f=[c,d,u,o],s=e("<tr></tr>"),a=e('<th class="gk-header-datagrid visitors-np-header" colspan="'+t+'"></th>'),e.each(f,(function(e,t){a.append(t)})),s.html(a),s}),"prepend");n.resetVisitorsNPButton()}function z(e){I.from=e}function R(e){I.to=e}function B(){void 0!==S&&(S.val(""),z("")),void 0!==D&&(D.val(""),R(""))}function V(){return r.items.length}function q(e,t,n){if("range"!==e&&void 0!==T){var i={min:t,max:n,valueMin:t,valueMax:n,values:[t,n]};n<=0&&(i.snap=0,i.min=0,i.max=1),T.reset(i),T.resetPositionMin(),T.resetPositionMax()}}}))},initAddedGrid:function(){var t=this;t.ready((function(n){var i,s,a,r,o,l,d,c=NewsletterPro.translations.l(NewsletterPro.translations.modules.sendNewsletters),u=n.addedGrid;function h(){return s.items.length}function p(e,t,n){if("range"!==e&&void 0!==d){var i={min:t,max:n,valueMin:t,valueMax:n,values:[t,n]};n<=0&&(i.snap=0,i.min=0,i.max=1),d.reset(i),d.resetPositionMin(),d.resetPositionMax()}}i=new gk.data.Model({id:"id_newsletter_pro_email"}),s=new gk.data.DataSource({pageSize:10,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=getAdded",dataType:"json"},create:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=createAdded",dataType:"json"},update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=updateAdded&id",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=deleteAdded&id",type:"POST",dateType:"json",success:function(e,t){e||alert(c("delete record"))},error:function(e,t){alert(c("delete record"))},complete:function(e,t){}},search:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=searchAdded&value",dataType:"json"},filter:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submit=filterAdded",dataType:"json"}},schema:{model:i},trySteps:2,errors:{read:function(e,t,n){s.syncStepAvailableAdd(3e3,(function(){s.sync()}))}}}),u.gkGrid({dataSource:s,selectable:!1,checkable:!0,currentPage:1,pageable:!0,start:function(){n.addedAjaxLoader.show()},done:function(e){n.addedCount.html(e.items.length),n.addedAjaxLoader.hide()},template:{img_path:function(e,t){return'<img src="'+t+'">'},active:function(t,n){var i=e('<a href="javascript:{}"></a>'),s=t.data;function a(){return!!parseInt(t.data.active)}function r(){a()?i.html('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):i.html('<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')}return r(),i.on("click",(function(e){e.stopPropagation(),s.active=a()?0:1,t.update().done((function(e){e?NewsletterPro.dataStorage.getNumber("configuration.VIEW_ACTIVE_ONLY")?t.removeFromScreen():r():alert("error on subscribe or unsubscribe")}))})),i},chackbox:function(t,n){return e('<input type="checkbox" value="'+n+'" '+(t.isChecked()?'checked="checked"':"")+"> ")},actions:function(t){return e("#delete-added").gkButton({name:"delete",title:c("delete"),className:"added-delete",item:t,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(c("delete added confirm"))})),icon:'<i class="icon icon-trash-o"></i> '})}}});u.addFooter((function(i){var o,l,d,u;function h(t){var n=e("#"+t).gkButton({name:t,title:c("check all"),className:t,css:{"padding-left":"10px","padding-right":"10px","margin-left":"0"},attr:{"data-checked":0},click:function(e){var t,i;t=c("uncheck all"),i=c("check all"),(n.data("checked")?(n.data("checked",!1),n.changeTitle(i),0):(n.data("checked",!0),n.changeTitle(t),1))?s.checkAll():s.uncheckAll()}});return n}function p(){var t=n.addNewEmailTemplate.find('input[name="firstname"], input[name="lastname"], input[name="email"], input[name="filter_name"]');t.length&&e.each(t,(function(t,n){e(n).val("")})),n.addNewEmailError.html("")}a=h("check-toggle"),(r=h("check-toggle-search")).addClass("gk-onfilter"),r.hide(),t.addVar("addedCheckAll",a),d=e("#add-new-email").gkButton({title:c("add"),name:"add-new-email",className:"add-new-email btn-margin",css:{"margin-right":"0"},click:function(e){u.show()},icon:'<i class="icon icon-plus-square"></i> '}),u=new gkWindow({width:400,title:c("add title"),className:"add-new-email-window",show:function(e){},close:function(e){p()},content:function(e){var t=n.addNewEmail,i=n.addNewEmailForm,a=n.addNewEmailError;return t.on("click",(function(t){s.create(i.getFormData()).done((function(t){t.status?(s.sync(),s.dataGrid.footer.setCheckedInfo(0),p(),e.hide()):t.errors.length&&a.html(t.errors[0])}))})),n.addNewEmailTemplate}});var m=e("#added-empty").gkButton({title:c("empty list"),name:"added-empty",className:"added-empty btn-margin",css:{"padding-left":"10px","padding-right":"10px"},click:function(t){confirm(c("empty list confirm"))&&e.postAjax({submit:"emptyAddedEmails"}).done((function(e){e.status?s.sync():alert(c("empty list error"))}))},icon:'<i class="icon icon-trash-o"></i> '}),f=e("<div></div>");f.css({display:"inline-block",float:"right"}),f.append(m),f.append(d);var _,g=t.buildExportToCSVData(s,NewsletterPro.dataStorage.get("csv_export_list_ref.LIST_ADDED"));return g.css({"margin-right":"2px"}),_=[a,r,f,g],o=e("<tr></tr>"),l=e('<td class="gk-footer" colspan="'+i+'"></td>'),e.each(_,(function(e,t){l.append(t)})),o.html(l),o}),"prepend"),u.addHeader((function(n){var i,u,m,f,_=null;m=e('<div class="added-search-div" style="margin-right: 10px; float: left;"></div>'),l=e('<input class="gk-input added-search" type="text">'),o=e('<span class="added-search-loading" style="display: none;"></span>'),l.on("keyup",(function(t){var n=e.trim(l.val());if(n.length<3)return a.show(),r.hide(),s.clearSearch(),!0;a.hide(),r.css({display:"inline-block"}),o.show(),null!=_&&clearTimeout(_),_=setTimeout((function(){s.search(n).done((function(e){s.applySearch(e),o.hide()}))}),300)})),f=e('<span style="margin-right: 10px; float: left;">'+c("search")+":</span>"),m.append(l),m.append(o);var g=e("#gk-filter-languages").gkDropDownMenu({title:c("languages"),name:"gk-filter-languages",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_languages,change:function(e){k()}}),v=e("#gk-filter-shops").gkDropDownMenu({title:c("shops"),name:"gk-filter-shops",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.data.filter_shops,change:function(e){k()}}),y=e("#gk-filter-csv-name").gkDropDownMenu({title:c("CSV Name"),name:"gk-filter-csv-name",css:{float:"left","margin-right":"10px"},data:NewsletterPro.dataStorage.get("csv_name"),change:function(e){k()}}),b=e("#gk-filter-subscribed-add").gkDropDownMenu({title:c("subscribed"),name:"gk-filter-gender",css:{float:"left","margin-right":"10px"},data:[{title:c("yes"),value:1},{title:c("no"),value:0}],change:function(e){k("subscribed")}});NewsletterPro.dataStorage.get("view_active_only")&&b.hide();var w=new gkWindow({width:640,height:150,title:c("range selection"),className:"range-selection-window",show:function(e){void 0!==d&&d.refresh()},close:function(e){},content:function(e,n){return s.ready().done((function(){t.getRangeSelectionContent((function(t){e.setContent(t),d=gkSliderRange({target:t.find("#slider-range-selection"),min:1,max:h(),valueMin:1,valueMax:h(),editable:!0,values:[1,h()],move:function(e){},done:function(e){k("range")},onChange:function(e){k("range")}})}))})),'<span class="ajax-loader" style="margin-left: 310px; margin-top: 36px;"></span>'}}),M=e("#range-selection-added").gkButton({name:"range-selection-added",title:c("range selection"),className:"range-selection",css:{"padding-left":"10px","padding-right":"10px",float:"left","margin-right":"10px",position:"relative"},attr:{"data-checked":0},click:function(e){w.show()}});function k(t){var n={shops:v.getSelected(),subscribed:b.getSelected(),languages:g.getSelected(),csv_name:y.getSelected()},i=!1;e.each(n,(function(e,t){t.length&&(i=!0)})),"range"==t&&(n.range_selection={min:void 0!==d?d.getValueMin():0,max:void 0!==d?d.getValueMax():0},0==e.trim(n.range_selection.min)||0==e.trim(n.range_selection.max)?delete n.range_selection:i=!0),i?(l.val(""),a.hide(),r.css({display:"inline-block"}),s.filter(n).done((function(e){s.applySearch(e),p(t,1,e.length)}))):(p(t,1,h()),a.show(),r.hide(),s.clearSearch())}var L,T=e('<span style="margin-left: 20px; margin-right: 10px; float: left; line-height: 28px;">'+c("filters")+"</span>"),S=e("#clear-filters").gkButton({name:"clear-filters",title:c("clear filters"),className:"clear-filters",css:{"padding-left":"10px","padding-right":"10px","margin-left":"0","margin-right":"0",position:"absolute",right:"5px"},attr:{"data-checked":0},click:function(e){l.val(""),v.uncheckAll(),y.uncheckAll(),b.uncheckAll(),g.uncheckAll(),p("clear",1,h()),a.show(),r.hide(),s.clearSearch()},icon:'<i class="icon icon-times"></i> '});return t.reset=t.reset||{},t.reset.added={filterLanguages:g,filterShops:v,filterCSVName:y,filterSubscribed:b,rangeSelection:M,clearFilters:S},t.addVar("filterAdded",{languages:g,shops:v,csv_name:y,subscribed:b,range:M,clear:S}),t.addVar("applyFilerAddedCallback",k),t.addVar("added",s),L=[f,m,T,g,v,y,b,M,S],i=e("<tr></tr>"),u=e('<th class="gk-header-datagrid added-header" colspan="'+n+'"></th>'),e.each(L,(function(e,t){u.append(t)})),i.html(u),i}),"prepend");t.resetAddedButton()}))},getSelectOptions:function(t){return t=e.extend(!0,{},t),e.map(t,(function(e){var t={name:e.name,value:e.id_newsletter_pro_smtp,data:e};return e.hasOwnProperty("selected")&&(delete e.selected,t.selected=!0),t}))}}.init(NewsletterPro)}).call(this,n(2),n(2))},function(e,t,n){"use strict";var i=n(238),s=n(284),a=n(288),r=n(296),o=n(297);(e.exports=function(e,t){var n,s,l,d,c;return arguments.length<2||"string"!=typeof e?(d=t,t=e,e=null):d=arguments[2],i(e)?(n=o.call(e,"c"),s=o.call(e,"e"),l=o.call(e,"w")):(n=l=!0,s=!1),c={value:t,configurable:n,enumerable:s,writable:l},d?a(r(d),c):c}).gs=function(e,t,n){var l,d,c,u;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],i(t)?s(t)?i(n)?s(n)||(c=n,n=void 0):n=void 0:(c=t,t=n=void 0):t=void 0,i(e)?(l=o.call(e,"c"),d=o.call(e,"e")):(l=!0,d=!1),u={get:t,set:n,configurable:l,enumerable:d},c?a(r(c),u):u}},function(e,t,n){"use strict";var i=n(285),s=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(e){return!!i(e)&&!s.test(a.call(e))}},function(e,t,n){"use strict";var i=n(286);e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!i(e)}},function(e,t,n){"use strict";var i=n(287);e.exports=function(e){if(!i(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},function(e,t,n){"use strict";var i=n(238),s={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!i(e)&&hasOwnProperty.call(s,typeof e)}},function(e,t,n){"use strict";e.exports=n(289)()?Object.assign:n(290)},function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){"use strict";var i=n(291),s=n(295),a=Math.max;e.exports=function(e,t){var n,r,o,l=a(arguments.length,2);for(e=Object(s(e)),o=function(i){try{e[i]=t[i]}catch(e){n||(n=e)}},r=1;r<l;++r)i(t=arguments[r]).forEach(o);if(void 0!==n)throw n;return e}},function(e,t,n){"use strict";e.exports=n(292)()?Object.keys:n(293)},function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){"use strict";var i=n(18),s=Object.keys;e.exports=function(e){return s(i(e)?Object(e):e)}},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";var i=n(18);e.exports=function(e){if(!i(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){"use strict";var i=n(18),s=Array.prototype.forEach,a=Object.create,r=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=a(null);return s.call(arguments,(function(e){i(e)&&r(Object(e),t)})),t}},function(e,t,n){"use strict";e.exports=n(298)()?String.prototype.contains:n(299)},function(e,t,n){"use strict";var i="razdwatrzy";e.exports=function(){return"function"==typeof i.contains&&(!0===i.contains("dwa")&&!1===i.contains("foo"))}},function(e,t,n){"use strict";var i=String.prototype.indexOf;e.exports=function(e){return i.call(this,e,arguments[1])>-1}},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){(function(e){NewsletterPro.namespace("modules.sendManager"),NewsletterPro.modules.sendManager={define:{STATE_DEFAULT:0,STATE_PAUSE:1,STATE_IN_PROGRESS:2,STATE_DONE:3},inProgress:!1,dom:null,box:null,vars:{},events:{},showErrorTimer:null,init:function(t){var n,i,s,a,r,o=this,l=!1,d=!1;return this.ready((function(c){var u=1e3*Number(t.dataStorage.get("email_sleep")),h=u>3e3?u:3e3;function p(){s.clear(),a.clear(),r.clear(),o.hideError(),o.step3(!1)}function m(){r.setPause(!1),c.pauseSendNewsletters.show(),c.stopSendNewsletters.show(),c.continueSendNewsletters.hide(),c.startSendNewsletters.hide(),c.newTask.hide(),c.prevStep.hide(),o.step3(!0)}function f(){r.setPause(!0),c.continueSendNewsletters.show(),c.stopSendNewsletters.show(),c.pauseSendNewsletters.hide(),c.startSendNewsletters.hide(),c.newTask.hide(),c.prevStep.hide(),o.step3(!1)}function _(){r.setPause(!1),c.startSendNewsletters.show(),c.newTask.show(),c.prevStep.show(),c.stopSendNewsletters.hide(),c.pauseSendNewsletters.hide(),c.continueSendNewsletters.hide(),o.step3(!1)}function g(){return{startSendNewsletters:c.startSendNewsletters.is(":visible"),stopSendNewsletters:c.stopSendNewsletters.is(":visible"),pauseSendNewsletters:c.pauseSendNewsletters.is(":visible"),continueSendNewsletters:c.continueSendNewsletters.is(":visible"),prevStep:c.prevStep.is(":visible"),newTask:c.newTask.is(":visible")}}function v(e){for(var t in e){e[t]?c[t].show():c[t].hide()}}o.l=t.translations.l(t.translations.modules.sendManager),n=NewsletterProControllers,i=new t.components.SyncNewsletters({syncErrorsLimit:250,connection:{url:t.getUrl({submit:"syncNewsletters"}),limit:250,data:{},refreshRate:h},subscription:{ready:["emailsToSend","emailsSent","progressbar"]}}),o.addVar("syncNewsletters",i),s=new t.components.EmailsToSend({selector:c.emailsToSend,fastPerformance:!0,subscription:[[i,"emailsToSend","sync"]]}),o.addVar("emailsToSend",s),a=new t.components.EmailsSent({selector:c.emailsSent,fastPerformance:!0,subscription:[[i,"emailsSent","sync"]]}),o.addVar("emailsSent",a),r=new t.components.SendProgressbar({selector:e("#send-progressbar"),subscription:[[i,"progressbar","sync"]]}),o.addVar("sendProgressbar",r),i.subscribe("syncStart",(function(e){m()})),i.subscribe("syncPause",(function(e){f()})),i.subscribe("syncDone",(function(e){_(),t.modules.task.ui.components.sendHistory.sync()})),i.subscribe("syncContinue",(function(e){})),i.subscribe("syncSuccess",(function(e){})),i.subscribe("syncError",(function(e){var n=e.message,i=e.alertErrors;e.display?o.showError(n,1e4):i&&(o.showError(n,0),t.alertErrors(n))})),i.subscribe("syncEnd",(function(e){l&&(l=!1,p())})),i.subscribe("beforeRequest",(function(){d?(i.setData("getLastId",!0),d=!1):i.setData("getLastId",!1)})),a.subscribe("lastItemCreated",(function(e){})),a.subscribe("firstItemCreated",(function(e){e&&e.errors.length&&o.showError(e.errors,7e3)})),c.startSendNewsletters.on("click",(function(){p();var e=n.SendController.prepareEmails();if(void 0!==e){var t=g();m(),e.done((function(e){e.status?d=!0:v(t)})).fail((function(){v(t)}))}})),c.pauseSendNewsletters.on("click",(function(){var e=g();f(),o.pauseSendNewsletters().done((function(t){t.success||v(e)})).fail((function(){v(e)}))})),c.stopSendNewsletters.on("click",(function(){var e=g();_(),o.stopSendNewsletters().done((function(n){n.success?(l=!0,p(),t.modules.task.ui.components.sendHistory.sync()):v(e)})).fail((function(){v(e)}))})),c.continueSendNewsletters.on("click",(function(){var e=g();m(),o.continueSendNewsletters(!0).done((function(t){t.success||v(e)})).fail((function(){v(e)}))}))})),o},requireConnection:function(e){var t=this;return!(!e.hasOwnProperty("require_connection")||!e.require_connection)&&(setTimeout((function(){t.continueSendNewsletters()}),2500),!0)},step3:function(e){NewsletterPro;e?this.dom.step3.html('<i class="icon icon-refresh icon-spin"></i>'):this.dom.step3.html("3")},connectionAvailable:function(t){e.postAjax({submit:"connectionAvailable"},"json",!1).done((function(e){t(e)}))},startSendNewsletters:function(t){var n=NewsletterPro,i=this;return t=void 0===t?0:Number(t),i.vars.syncNewsletters.sync(),e.postAjax({submit:"startSendNewsletters",trigger:t},"json",!1).done((function(e){i.inProgress=!0,null!=e&&(e.success||i.showError(e.errors),i.requireConnection(e))})).fail((function(e,t,s){i.showError(i.l("Error")+" : "+n.getXHRError(e))})).promise()},continueSendNewsletters:function(t){var n=NewsletterPro,i=this;i.define;return t=void 0===t?0:Number(t),i.vars.syncNewsletters.sync(),e.postAjax({submit:"continueSendNewsletters",trigger:t},"json",!1).done((function(e){i.inProgress=!0,null!=e&&(e.success||i.showError(e.errors),i.requireConnection(e))})).fail((function(e,t,s){i.showError(i.l("Error")+" : "+n.getXHRError(e))})).promise()},pauseSendNewsletters:function(){var t=NewsletterPro;return e.postAjax({submit:"pauseSendNewsletters"}).done((function(e){e.success||t.alertErrors(e.errors)})).promise()},stopSendNewsletters:function(){var t=NewsletterPro;return e.postAjax({submit:"stopSendNewsletters"}).done((function(e){e.success||t.alertErrors(e.errors)})).promise()},showError:function(e,t){var n=this,i=n.dom;if("string"!=typeof e&&(e=e.join("<br>")),i.lastSendErrorDiv.show(),i.lastSendError.show().html(e),void 0!==t){if(null!=n.showErrorTimer&&clearTimeout(n.showErrorTimer),0===t)return;n.showErrorTimer=setTimeout((function(){n.hideError()}),t)}},hideError:function(){var e=this.dom;e.lastSendErrorDiv.hide(),e.lastSendError.hide().html("")},addEvent:function(e,t){this.events[e]=t},triggerEvent:function(e){this.events.hasOwnProperty(e)&&"function"==typeof this.events[e]&&this.events[e]()},addVar:function(e,t){this.vars=this.vars||{},this.vars[e]=t},ready:function(t){var n=this;e(document).ready((function(){n.dom=n.dom||{startSendNewsletters:e("#send-newsletters"),stopSendNewsletters:e("#stop-send-newsletters"),pauseSendNewsletters:e("#pause-send-newsletters"),continueSendNewsletters:e("#continue-send-newsletters"),prevStep:e("#previous-send-newsletters"),newTask:e("#new-task"),emailsToSend:e("#emails-to-send"),emailsSent:e("#emails-sent"),lastSendErrorDiv:e("#last-send-error-div"),lastSendError:e("#last-send-error"),step3:e("#np-step-3")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.smtp"),NewsletterPro.modules.smtp={dom:null,init:function(t){var n=this;return n.ready((function(i){var s,a;function r(){i.smptConfigBox.is(":visible")&&i.smptConfigBox.slideUp("slow")}function o(){i.smptConfigBox.is(":visible")||i.smptConfigBox.slideDown("slow")}function l(t){t?(i.listUnsubscribeEmailBox.show(),e('input[name="list_unsubscribe_active"][value="1"]').prop("checked",!0),e('input[name="list_unsubscribe_active"][value="0"]').prop("checked",!1)):(i.listUnsubscribeEmailBox.hide(),e('input[name="list_unsubscribe_active"][value="0"]').prop("checked",!0),e('input[name="list_unsubscribe_active"][value="1"]').prop("checked",!1))}function d(t){l(Number(t.list_unsubscribe_active)?1:0),i.listUnsubscribeEmail.val(t.list_unsubscribe_email),e("#smtpForm [name=method]").prop("checked",!1),1==t.method?i.smtpMethodMail.prop("checked",!0):i.smtpMethodSmtp.prop("checked",!0),m(t.method),i.smptId.val(t.id_newsletter_pro_smtp),i.smtpName.val(t.name),i.smtpFromName.val(t.from_name),i.smtpFromEmail.val(t.from_email),i.smtpFromReplyTo.val(t.reply_to),i.smtpDomain.val(t.domain),i.smtpServer.val(t.server),i.smtpUser.val(t.user),i.smtpPasswd.val(t.passwd),i.smtpEncryption.val(t.encryption),i.smtpPort.val(t.port)}function c(){l(0),i.listUnsubscribeEmail.val(""),i.smptId.val("0"),i.smtpName.val(""),i.smtpFromName.val(""),i.smtpFromEmail.val(""),i.smtpFromReplyTo.val(""),i.smtpDomain.val(""),i.smtpServer.val(""),i.smtpUser.val(""),i.smtpPasswd.val(""),i.smtpEncryption.val(""),i.smtpPort.val("")}Boolean(t.dataStorage.data.smtp_active)?o():r(),e('input[name="list_unsubscribe_active"]').on("change",(function(){Number(e(this).val())?i.listUnsubscribeEmailBox.slideDown():i.listUnsubscribeEmailBox.slideUp()}));var u=e.map(NewsletterPro.dataStorage.get("all_smtp"),(function(t){var n={name:t.name,value:t.id_newsletter_pro_smtp,data:t};if(t.hasOwnProperty("selected")&&(delete t.selected,n.selected=!0,i.smtpActive.is(":checked"))){var s=e.extend(!0,{},t);s.passwd="",d(s)}return n}));u.length>0?(i.saveSmtp.show(),i.deleteSmtp.show()):(i.saveSmtp.hide(),i.deleteSmtp.hide());var h=n.ui,p=h.SelectOption({name:"smptSelect",template:i.selectSmtp,className:"gk-smtp-select",options:u,onChange:function(t){var n=t.getSelected();if(null!=n){var s=n.data,a=Number(n.data.id_newsletter_pro_smtp),r=e.extend(!0,{},s);m(s.method),r.passwd="",d(r),e.postAjax({submit:"changeSMTP",changeSMTP:a}).done((function(e){e.status||i.smtpMessage.empty().show().append('<div class="alert alert-danger">'+e.msg+"</div>"),setTimeout((function(){i.smtpMessage.hide()}),5e3)}))}}});h.Button({name:"saveSmtp",template:i.saveSmtp,click:function(){i.saveSmtpMessage.hide(),e.submitAjax({submit:"saveSMTP",name:"saveSMTP",form:i.smtpForm}).done((function(t){if(s=s||NewsletterPro.modules.task.ui.components.taskList,a=a||NewsletterPro.dataStorage,t.status){var n=t.obj;p.updateOption(n),i.saveSmtpSuccess.empty().show().append('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>')}else t.errors.length>0?i.saveSmtpMessage.empty().show().append(t.errors.join("<br />")):i.saveSmtpSuccess.empty().show().append('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>');e.postAjax({submit:"getAllSMTPJson",getAllSMTPJson:!0}).done((function(e){a.add("all_smtp",e),s.sync()})),setTimeout((function(){i.saveSmtpSuccess.hide()}),5e3),setTimeout((function(){i.saveSmtpMessage.hide()}),5e3)}))}}),h.Button({name:"addSmtp",template:i.addSmtp,click:function(){e.submitAjax({submit:"addSMTP",name:"addSMTP",form:i.smtpForm}).done((function(t){if(s=s||NewsletterPro.modules.task.ui.components.taskList,a=a||NewsletterPro.dataStorage,t.status){var n=t.obj;p.addOption({name:n.name,value:n.name,data:n,selected:!0}),i.smptId.val(n.id_newsletter_pro_smtp),i.saveSmtpSuccess.empty().show().append('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'),p.getOptions().length>0&&(i.saveSmtp.show(),i.deleteSmtp.show())}else i.saveSmtpMessage.empty().show().append(t.errors.join("<br />"));e.postAjax({submit:"getAllSMTPJson",getAllSMTPJson:!0}).done((function(e){a.add("all_smtp",e),s.sync()})),setTimeout((function(){i.saveSmtpSuccess.hide()}),5e3),setTimeout((function(){i.saveSmtpMessage.hide()}),15e3)}))}}),h.Button({name:"deleteSmtp",template:i.deleteSmtp,click:function(){var n=p.getSelected();if(null!=n){var r=n.data.id_newsletter_pro_smtp;e.postAjax({submit:"deleteSMTP",deleteSMTP:r}).done((function(r){if(r.hasOwnProperty("demo_mode")&&1==r.demo_mode&&r.errors.length>0)NewsletterPro.alertErrors(r.errors);else{if(s=s||NewsletterPro.modules.task.ui.components.taskList,a=a||NewsletterPro.dataStorage,r.status){n.destroy();var o=p.getSelected();if(null!=o){var l=e.extend(!0,{},o.data),u=l.id_newsletter_pro_smtp;l.passwd="",i.smptId.val(l.id_newsletter_pro_smtp),e.postAjax({submit:"changeSMTP",changeSMTP:u}).done((function(e){e.status||i.smtpMessage.empty().show().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){i.smtpMessage.hide()}),5e3)})),d(l)}else c(),i.saveSmtp.hide(),i.deleteSmtp.hide()}else t.alertErrors(r.errors);e.postAjax({submit:"getAllSMTPJson",getAllSMTPJson:!0}).done((function(e){a.add("all_smtp",e),s.sync()}))}}))}}});i.smtpActive.on("change",(function(){e(this).is(":checked")?e.postAjax({submit:"smtpActive",smtpActive:!0}).done((function(t){if(1==t.status){p.enable();var n=p.getSelected();if(null!=n){var i=n.data,s=e.extend(!0,{},i);s.passwd="",d(s)}o()}})):e.postAjax({submit:"smtpActive",smtpActive:!1}).done((function(e){1==e.status&&(p.disable(),c(),r())}))})),i.smtpTestInput.on("blur",(function(){t.dataStorage.set("configuration.PS_SHOP_EMAIL",e(this).val())}));h.Button({name:"smtpTestButton",template:i.smtpTestButton,click:function(){var n=i.smtpTestMessage,s=i.smtpTestSuccess,a=i.smtpTestInput.val(),r=e(this);s.hide(),n.hide(),t.showAjaxLoader(r),e.postAjax({submit:"sendMailTest",sendMailTest:a}).done((function(e){e.status?s.empty().show().append('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):n.empty().show().append('<div class="alert alert-danger">'+e.msg+"</div>"),setTimeout((function(){s.hide(),n.hide()}),1e4)})).always((function(){t.hideAjaxLoader(r)}))}});function m(e){switch(e){case"1":i.smtpOnly.slideUp();break;case"2":i.smtpOnly.slideDown()}}e('#smtpForm [name="method"]').on("change",(function(){m(e(this).val())}))})),n},ready:function(t){var n=this;e(document).ready((function(){n.dom={smtpOnly:e("#smtp-only"),selectSmtp:e("#select-smtp"),smtpActive:e("#smtp-active"),smtpFromName:e("#smtp-from-name"),smtpFromEmail:e("#smtp-from-email"),smtpFromReplyTo:e("#smtp-reply-to"),smtpMethodSmtp:e("#method-smtp"),smtpMethodMail:e("#method-mail"),smtpName:e("#smtp-name"),smtpDomain:e("#smtp-domain"),smtpServer:e("#smtp-server"),smtpUser:e("#smtp-user"),smtpPasswd:e("#smtp-passwd"),smtpEncryption:e("#smtp-encryption"),smtpPort:e("#smtp-port"),saveSmtp:e("#save-smtp"),addSmtp:e("#add-smtp"),deleteSmtp:e("#delete-smtp"),smtpMessage:e("#change-smtp-message"),saveSmtpMessage:e("#save-smtp-message"),saveSmtpSuccess:e("#save-smtp-success"),smtpForm:e("#smtpForm"),smtpTestInput:e("#smtp-test-email"),smtpTestMessage:e("#smtp-test-email-message"),smtpTestSuccess:e("#smtp-test-email-success"),smtpTestButton:e("#smtp-test-email-button"),listUnsubscribeEmailBox:e("#smtp-list-unsubscribe-email-box"),listUnsubscribeEmail:e("#smtp-list-unsubscribe-email"),smptId:e("#smpt-id"),smptConfigBox:e("#smpt-config-box")},t(n.dom)}))},each:function(e,t){for(var n in e)t(e[n],n)},ui:{components:{},init:function(){return this},add:function(e,t){this.components[e]=t},SelectOption:function t(n){if(!(this instanceof t))return new t(n);var i,s=NewsletterPro.modules.smtp,a=NewsletterPro.modules.smtp.ui,r=this,o=n.name,l=n.template,d=n.className||"",c=n.options||[],u=n.onChange||null;n.sameAs;function h(t){r.template.show();var n=e('<option value="'+t.value+'">'+t.name+"</option>"),i=t.data||{};t.hasOwnProperty("selected")&&t.selected&&(n.prop("selected",!0),r.selected=n),n.data=i,n.dataInit=t,r.template.options.push(n),r.template.append(n),n.destroy=function(){var e=r.template.options.indexOf(this);e>-1&&r.template.options.splice(e,1),this.remove();var t=r.getOptions();t.length>0?r.setSelected(t[0]):(r.hide(),r.selected=null)}}return r.name=o,a.add(o,r),function(t){t=e(t),r.template=t,t.attr({autocomplete:"off"}),t.addClass("gk-select"),t.addClass(d),t.options=[],s.each(c,(function(e){h(e)})),function(e){e.on("change",(function(t){r.onChange.call(e,r)}))}(t)}(l),r.addOption=function(e){h(e)},r.updateOption=function(e){var t=r.getSelected();null!=t&&(t.data=e,t.text(e.name),t.val(e.name))},r.getData=function(){var e=[];return s.each(r.template.options,(function(t){e.push(t.data)})),e},r.getOptions=function(){var e=[];return s.each(r.template.options,(function(t){e.push(t)})),e},r.getSelected=function(){return r.selected},r.setSelected=function(e){e.selected=!0,e.prop("selected",!0),r.selected=e},r.onChange=function(){var t=r.getOptions(),n=this.val(),i=e.grep(t,(function(e){return e.dataInit.value===n})),s=r.getSelected();null!=s&&delete s.data.selected,i.length>0&&r.setSelected(i[0]),"function"==typeof u&&u.call(this,r)},r.disable=function(){r.template.prop("disabled",!0)},r.enable=function(){r.template.prop("disabled",!1)},r.hide=function(){r.template.hide()},r.show=function(){r.template.show()},r.refresh=function(e){var t=r.getOptions();i=!1,s.each(e,(function(e){e.hasOwnProperty("selected")&&1==e.selected&&(i=!0)})),s.each(t,(function(e){e.destroy()})),s.each(e,(function(e){i||(e.selected=!0,i=!1),h(e)}))},r},Button:function t(n){if(!(this instanceof t))return new t(n);NewsletterPro.modules.smtp;var i=NewsletterPro.modules.smtp.ui,s=this,a=n.template,r=n.name;return function(t){(function(e){e.on("click",(function(){s.click.call(e,s)}))})(t=e(t)),s.template=t}(a),s.click=function(){"function"==typeof n.click&&n.click.call(this,s)},i.add(r,s),s}}.init()}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.csv"),NewsletterPro.modules.csv={dom:null,init:function(t){var n=this;function i(e){for(var t=e.split("_"),n=0;n<t.length;n++){var i=t[n][0],s=t[n].slice(1);t[n]=i.toUpperCase()+s}return t.join(" ")}return n.ready((function(s){s.nextStep.on("click",(function(){var a=Number(e('[name="exportEmailAddresses"]:checked').val());e.postAjax({submit:"getExportOptions",value:a}).done((function(e){e.success?(!function(e){n.dom.exportOptions.empty();for(var t="",s=0;s<e.length;s++){var a=e[s];t+='\t\t\t\t\t<div class="checkbox">\t\t\t\t\t\t<label class="control-label in-win">\t\t\t\t\t\t\t<input type="checkbox" name="export_csv_selected_columns[]" value="'+a+'">\t\t\t\t\t\t\t'+i(a)+"\t\t\t\t\t\t</label>\t\t\t\t\t</div>"}n.dom.exportOptions.html(t)}(e.columns),s.listRef.val(a),n.dom.container.hide(),n.dom.exportDetails.show()):t.alertErrors(e.errors)}))})),s.btnBack.on("click",(function(){n.dom.container.show(),n.dom.exportDetails.hide()})),s.btnExport.on("click",(function(){s.form.submit()})),s.checkAll.on("click",(function(){e.each(e('[name="export_csv_selected_columns[]"]'),(function(t,n){e(n).prop("checked",!0)}))}))})),n},ready:function(t){var n=this;e(document).ready((function(){n.dom={btnBack:e("#np-export-email-addresses-back"),nextStep:e("#btn-export-email-addresses"),container:e("#import-export-container"),exportDetails:e("#export-details"),exportOptions:e("#np-export-email-options"),btnExport:e("#btn-export-csv"),form:e("#export-csv-form"),listRef:e("#export-csv-list-ref"),checkAll:e("#btn-export-csv-checkall")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.DevMode"),NewsletterPro.modules.DevMode={dom:null,box:null,init:function(t){var n={index:-1,data:[],set:function(e){this.data[this.data.length]=e,this.index=this.data.length-1},up:function(){return 0==this.data.length?"":0==this.index?this.data[0]:this.data[this.index--]},down:function(){return this.index==this.data.length-1?this.data[this.data.length]:this.data[++this.index]}};return this.ready((function(i){var s=function(){return i.input.val()},a=function(){setTimeout((function(){i.input.val("")}),50)},r=function(t,n){n=void 0!==n,t=t.replace(/(\&amp;|\&)quot;/g,'"'),n&&(t=e.trim(t)),i.output.append(t+"\n"),i.outputBox.scrollTop(i.outputBox.get(0).scrollHeight)},o=function(){var o=s();0==o.length?a():o.length>0&&"\\"!=e.trim(o[o.length-1])&&(a(),n.set(o),i.loading.show(),function(t,n,i,s,a,r,o){n=n||{};for(var l={submit_dev_mode_controller:t},d=Object.keys(n),c=0;c<d.length;c++){var u=d[c];l[u]=n[u]}e.postAjax(l,r,o).done(i).fail(a).always(s)}("execute",{command:o},(function(e){r('<span style="color: #ffffff">'.concat("> "+e.command,"</span>"));var n=e.actions;if(e.success){if(e.output.length>0&&r(e.output.join("\n")),n.hasOwnProperty("clear_output")&&1==e.actions.clear_output&&i.output.text(""),n.hasOwnProperty("view_template")&&window.open(n.view_template,"_blank"),n.hasOwnProperty("set_template")&&t.modules.createTemplate.selectTemplateByName(n.set_template.fullname),n.hasOwnProperty("set_connection")&&t.modules.smtp.smtpSelect&&t.modules.smtp.smtpSelect.selectByValue(n.set_connection.id_smtp),n.hasOwnProperty("enable_disable_connection")){var s=Boolean(n.enable_disable_connection.value);t.modules.smtp.smtpActive(s)}}else e.errors.length>0&&r(e.errors.join("\n"))}),(function(){i.loading.hide()})))},l=!1,d=!1;i.input.on("keydown",(function(e){38!=e.keyCode||1!=d&&""!=s()?40!=e.keyCode||1!=d&&""!=s()||i.input.val(n.down()):i.input.val(n.up()),16==e.keyCode&&(l=!0),91==e.keyCode&&(d=!0),13==e.keyCode&&0==l&&o()})),i.input.on("keyup",(function(e){16==e.keyCode&&(l=!1),91==e.keyCode&&(d=!1)})),i.btnExecute.on("click",(function(){o()}))})),this},ready:function(t){var n=this;e(document).ready((function(){n.dom={btnExecute:e("#np-dev-submit"),input:e("#np-dev-input"),output:e("#np-dev-output"),outputBox:e("#np-dev-output-box"),loading:e(".np-console-loading")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.privacy"),NewsletterPro.modules.ourModules={dom:null,init:function(t){return this.ready((function(n){var i,s,a=NewsletterPro.translations.l(NewsletterPro.translations.modules.privacy),r=n.privacyDatagrid,o=null,l=new gkWindow({width:900,height:650,title:a("Subscription Consent History"),className:"subscriptio-consent-window",show:function(e){},close:function(){},content:function(e){return""}}),d=function(e){return 0==e.length?0:e.map((function(e,t){return Number(e.count)})).reduce((function(e,t){return e+t}))},c=function(e){return 0==e.length?0:e.map((function(e,t){return Number(e.errors.length)})).reduce((function(e,t){return e+t}))},u=function(t,i){if(0==Number(t.info.is_email))return' <div class="pqnp-card-row clearfix"> <div class="pqnp-card"> <div class="pqnp-card-content"> <div class="pqnp-card-title"> <strong style="line-height: 30px;">'+i+'</strong> </div> <div class="pqnp-card-body"> '+a("The email address is not valid.")+" </div> </div> </div> </div> ";var s=d(t.tables),r=d(t.logs),o=d(t.csv),l=e(' <div class="pqnp-card-row clearfix"> <div class="pqnp-card"> <div class="pqnp-card-content"> <div class="pqnp-card-title"> <div class="row"> <div class="col-sm-7"> <strong style="line-height: 30px;">'+i+'</strong> </div> <div class="col-lg-5 text-right"> <a href="javascript:{}" class="btn btn-default pqnp-close-erase-pangel"><i class="icon icon-remove fa fa-remove"></i>&nbsp;'+a("Close Panel")+'</a> </div> </div> </div> <div class="pqnp-card-body"> <div class="form-group"> <h4>'+a("Database")+"</h4> "+(t.tables.length>0&&(s>0||c(t.tables)>0)?' <table class="table"> <thead> <tr> <th>'+a("Table Name")+"</th> <th>&nbsp;</th> <th>"+a("Rows Erased")+"</th> </tr> </thead> <tbody> "+t.tables.map((function(e,n){return"customer"===e.name?" <tr> <td>"+t.info.db_prefix+e.name+"</td> <td>("+a("has been unsubscribed")+') <span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-success":"label-warning")+'">'+e.count+"</span></td> </tr> ":0==Number(e.count)&&0==e.errors.length?"":" <tr> <td>"+t.info.db_prefix+e.name+'</td> <td><span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-success":"label-warning")+'">'+e.count+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ":' <span style="padding-left: 7px;">'+a("The records have been erased.")+"</span> ")+' </div> <div class="form-group"> <h4>'+a("Logs Files")+"</h4> "+(t.logs.length>0&&(r>0||c(t.logs)>0)?' <table class="table"> <thead> <tr> <th>'+a("Filename")+"</th> <th>&nbsp;</th> <th>"+a("Lines Erased")+"</th> </tr> </thead> <tbody> "+t.logs.map((function(e,t){return 0==Number(e.count)&&0==e.errors.length?"":" <tr> <td>"+e.name+'</td> <td><span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-success":"label-warning")+'">'+e.count+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ":' <span style="padding-left: 7px;">'+a("The records have been erased.")+"</span> ")+' </div> <div class="form-group"> <h4>'+a("CSV Files")+"</h4> "+(t.csv.length>0&&(o>0||c(t.csv)>0)?' <table class="table"> <thead> <tr> <th>'+a("Filename")+"</th> <th>&nbsp;</th> <th>"+a("Lines Erased")+"</th> </tr> </thead> <tbody> "+t.csv.map((function(e,t){return 0==Number(e.count)&&0==e.errors.length?"":" <tr> <td>"+e.name+'</td> <td><span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-success":"label-warning")+'">'+e.count+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ":' <span style="padding-left: 7px;">'+a("The records have been erased.")+"</span> ")+" </div> </div> </div> </div> </div> "),u=l.find(".pqnp-close-erase-pangel");return u.length>0&&u.on("click",(function(){n.deleteEmailSearch.val(""),n.deleteEmailSearchLoading.hide(),n.deleteEmailSearchIcon.show(),n.deleteEmailContent.empty().hide()})),l};i=new gk.data.Model({id:"id_newsletter_pro_subscription_consent"}),s=new gk.data.DataSource({pageSize:10,trySteps:2,transport:{read:{url:t.dataStorage.get("ajax_url")+"&submit=getSubscriptionConsent",dataType:"json"},search:{url:t.dataStorage.get("ajax_url")+"&submit=searchSubscriptionConsent&value",dataType:"json"}},schema:{model:i},errors:{read:function(e,t,n){s.syncStepAvailableAdd(3e3,(function(){s.sync()}))}}}),r.gkGrid({dataSource:s,selectable:!1,checkable:!1,currentPage:1,pageable:!0,start:function(){},done:function(e){},template:{subscribed:function(e,t){return Number(t)?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>'},actions:function(n){var i=e('<a href="javascript:{}" class="btn btn-default"><span class="btn-ajax-loader" style="display: none;"></span><i class="icon icon-eye"></i>&nbsp;'+a("Details")+"</a>"),r=e('<a href="javascript:{}" class="btn btn-default"><i class="icon icon-remove"></i>&nbsp;'+a("Delete")+"</a>");return i.on("click",(function(){t.showAjaxLoader(i),e.postAjax({submit:"getSubscriptionConsentDetails",email:n.data.email}).done((function(n){if(!n.success)return t.alertErrors(n.errors);!function(t){var n=' <table class="table"> <thead> <tr> <th>'+a("Consent Date")+"</th> <th>"+a("Email")+"</th> <th>"+a("Subscribed")+"</th> <th>"+a("IP")+"</th> <th>"+a("Date Add")+"</th> </tr> </thead> <tbody> "+t.map((function(t){return" <tr> <td>"+t.consent_date+"</td> <td>"+t.email+"</td> <td>"+(Number(t.subscribed)?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')+"</td> <td>"+t.ip_address+"</td> <td>"+t.date_add+'</td> </tr> <tr> <td colspan="5"><span style="color: #00aff0;">'+e("<div></div>").html(t.url).text()+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ";l.show(n)}(n.data)})).always((function(){t.hideAjaxLoader(i)}))})),r.on("click",(function(){confirm(a("Are you sure you want to delete the email subscription consent hisotry?"))&&(t.showAjaxLoader(r),e.postAjax({submit:"deleteSubscriptionConsent",email:n.data.email}).done((function(e){if(!e.success)return t.alertErrors(e.errors);s.sync()})).always((function(){t.hideAjaxLoader(r)})))})),[i,"<span>&nbsp;&nbsp;</span>",r]}}}),n.privacyDatagridSerach.on("keyup",(function(t){var i=e.trim(e(this).val());if(i.length<3)return s.clearSearch(),!0;n.privacyDatagridSerachLoading.show(),n.privacyDatagridSerachIcon.hide(),null!=o&&clearTimeout(o),o=setTimeout((function(){s.search(i).done((function(e){s.applySearch(e),n.privacyDatagridSerachLoading.hide(),n.privacyDatagridSerachIcon.show()}))}),300)})),n.deleteEmailSearchButton.on("click",(function(i){var r=e.trim(n.deleteEmailSearch.val());r.length>0?(n.deleteEmailSearchLoading.show(),n.deleteEmailSearchIcon.hide(),e.postAjax({submit:"searchPrivacyData",email:r}).done((function(i){if(!i.success)return t.alertErrors(i.errors);n.deleteEmailContent.empty().show().html(function(i,r){var o=d(i.tables)+d(i.logs)+d(i.csv)>0;if(0==Number(i.info.is_email))return' <div class="pqnp-card-row clearfix"> <div class="pqnp-card"> <div class="pqnp-card-content"> <div class="pqnp-card-title"> <div class="row"> <div class="col-sm-7"> <strong style="line-height: 30px;">'+r+'</strong> </div> <div class="col-lg-5 text-right"> <a href="javascript:{}" class="btn btn-default pqnp-close-erase-pangel"><i class="icon icon-remove fa fa-remove"></i>&nbsp;'+a("Close Panel")+'</a> </div> </div> </div> <div class="pqnp-card-body"> '+a("The email address is not valid.")+" </div> </div> </div> </div> ";if(!o)return' <div class="pqnp-card-row clearfix"> <div class="pqnp-card"> <div class="pqnp-card-content"> <div class="pqnp-card-title"> <div class="row"> <div class="col-sm-7"> <strong style="line-height: 30px;">'+r+'</strong> </div> <div class="col-lg-5 text-right"> <a href="javascript:{}" class="btn btn-default pqnp-close-erase-pangel"><i class="icon icon-remove fa fa-remove"></i>&nbsp;'+a("Close Panel")+'</a> </div> </div> </div> <div class="pqnp-card-body"> '+a("Nothing found.")+" </div> </div> </div> </div> ";var l=e(' <div class="pqnp-card-row clearfix"> <div class="pqnp-card"> <div class="pqnp-card-content"> <div class="pqnp-card-title"> <div class="row"> <div class="col-sm-7"> <strong style="line-height: 30px;">'+r+'</strong> </div> <div class="col-lg-5 text-right"> '+(o?'<a href="javascript:{}" class="btn btn-danger pqnp-erase-data-button"><i class="icon icon-trash fa fa-trash"></i>&nbsp;'+a("Erase Data")+"</a>&nbsp;":"")+' <a href="javascript:{}" class="btn btn-default pqnp-close-erase-pangel"><i class="icon icon-remove fa fa-remove"></i>&nbsp;'+a("Close Panel")+'</a> </div> </div> </div> <div class="pqnp-card-body"> <div class="form-group"> <h4>'+a("Database")+"</h4> "+(i.tables.length>0?' <table class="table"> <thead> <tr> <th>'+a("Table Name")+"</th> <th>&nbsp;</th> <th>"+a("Rows Found")+"</th> </tr> </thead> <tbody> "+i.tables.map((function(e,t){return" <tr> <td>"+i.info.db_prefix+e.name+'</td> <td><span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-warning":"label-success")+'">'+e.count+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ":' <span style="padding-left: 7px;">'+a("No records found.")+"</span> ")+' </div> <div class="form-group"> <h4>'+a("Logs Files")+"</h4> "+(i.logs.length>0?' <table class="table"> <thead> <tr> <th>'+a("Filename")+"</th> <th>&nbsp;</th> <th>"+a("Lines Found")+"</th> </tr> </thead> <tbody> "+i.logs.map((function(e,t){return" <tr> <td>"+e.name+'</td> <td><span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-warning":"label-success")+'">'+e.count+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ":' <span style="padding-left: 7px;">'+a("No records found.")+"</span> ")+' </div> <div class="form-group"> <h4>'+a("CSV Files")+"</h4> "+(i.csv.length>0?' <table class="table"> <thead> <tr> <th>'+a("Filename")+"</th> <th>&nbsp;</th> <th>"+a("Lines Found")+"</th> </tr> </thead> <tbody> "+i.csv.map((function(e,t){return" <tr> <td>"+e.name+'</td> <td><span class="pqnp-error-text">'+(e.errors.length>0?e.errors.join("<br>"):"")+'</span></td> <td><span class="label '+(Number(e.count)>0?"label-warning":"label-success")+'">'+e.count+"</span></td> </tr> "})).join("\n")+" </tbody> </table> ":' <span style="padding-left: 7px;">'+a("No records found.")+"</span> ")+" </div> </div> </div> </div> </div> "),c=l.find(".pqnp-erase-data-button");c.length>0&&c.on("click",(function(){if(confirm(a("Are you sure you want to erase the data associated with this email address? This action is irreversible."))){var i=c.find("i"),o=i.attr("class");i.attr("class","icon icon-refresh icon-spin"),e.postAjax({submit:"clearPrivacyData",email:r}).done((function(e){if(!e.success)return t.alertErrors(e.errors);s.sync(),n.deleteEmailContent.empty().show().html(u(e.data,r))})).always((function(){i.attr("class",o)}))}}));var h=l.find(".pqnp-close-erase-pangel");return h.length>0&&h.on("click",(function(){n.deleteEmailSearch.val(""),n.deleteEmailSearchLoading.hide(),n.deleteEmailSearchIcon.show(),n.deleteEmailContent.empty().hide()})),l}(i.data,r))})).always((function(){n.deleteEmailSearchLoading.hide(),n.deleteEmailSearchIcon.show()}))):n.deleteEmailContent.empty().hide()})),n.clearDeleteEmailSerach.on("click",(function(e){n.deleteEmailSearch.val(""),n.deleteEmailSearchLoading.hide(),n.deleteEmailSearchIcon.show(),n.deleteEmailContent.empty().hide()}))})),this},ready:function(t){var n=this;e(document).ready((function(){n.dom={privacyDatagrid:e("#privacy-datagrid"),privacyDatagridSerach:e("#privacy-datagrid-serach"),privacyDatagridSerachLoading:e("#privacy-datagrid-serach-loading"),privacyDatagridSerachIcon:e("#privacy-datagrid-serach-icon"),deleteEmailSearch:e("#delete-email-serach"),deleteEmailSearchLoading:e("#delete-email-serach-loading"),deleteEmailSearchIcon:e("#delete-email-serach-icon"),deleteEmailContent:e("#delete-email-content"),deleteEmailSearchButton:e("#delete-email-serach-button"),clearDeleteEmailSerach:e("#clear-email-serach-button")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}NewsletterPro.namespace("modules.mailChimp"),NewsletterPro.modules.mailChimp={dom:null,box:null,init:function(n){var i,s,a,r,o,l=this,d={};function c(e){e.hasClass("ajax-loader")||e.addClass("ajax-loader")}function u(e){e.removeClass("ajax-loader")}function h(e){return e.is(":checked")?1:0}function p(e){return!!s.hasOwnProperty(e)&&s[e]}function m(t,i,s){i=i?1:0,e.postAjax({chimp:"updateSyncCheckbox",name:t,value:i}).done((function(e){"function"==typeof s&&s(e),e.status?n.dataStorage.data.chimp_config[t]=i:n.alertErrors(e.errors)}))}function f(e,t){e.total.html(t.total),e.created.html(t.created),e.updated.html(t.updates),e.errors.html(t.errors),t.done?g(e):(_(e.box)||e.box.slideDown(),t.in_progress&&e.ajaxLoader.show())}function _(e){return!!e.is(":visible")}function g(t){var n=new e.Deferred;return _(t.box)&&(t.ajaxLoader.hide(),setTimeout((function(){n.resolve(),function(e){_(e.box)?e.box.slideUp("slow",(function(){e.total.html(0),e.created.html(0),e.updated.html(0),e.errors.html(0),e.ajaxLoader.hide()})):(e.total.html(0),e.created.html(0),e.updated.html(0),e.errors.html(0),e.ajaxLoader.hide())}(t)}),15e3)),n.promise()}function v(){return e.postAjax({chimp:"stopSync"}).done((function(e){e.status?(g(l.dom.objSyncCustomersProgress),g(l.dom.objSyncVisitorsProgress),g(l.dom.objSyncAddedProgress),g(l.dom.objSyncOrdersProgress),function(){var e=l.dom;_(e.syncListsProgressBox)&&setTimeout((function(){e.syncListsProgressBox.slideUp()}),15e3)}(),w()):n.alertErrors(e.errors)}))}function y(e){var n=e.chimp_sync;if(n.hasOwnProperty("ADDED_CHECKBOX")?(users=n.ADDED_CHECKBOX,f(l.dom.objSyncAddedProgress,users)):g(l.dom.objSyncAddedProgress),n.hasOwnProperty("VISITORS_CHECKBOX")?(users=n.VISITORS_CHECKBOX,f(l.dom.objSyncVisitorsProgress,users)):g(l.dom.objSyncVisitorsProgress),n.hasOwnProperty("CUSTOMERS_CHECKBOX")?(users=n.CUSTOMERS_CHECKBOX,f(l.dom.objSyncCustomersProgress,users)):g(l.dom.objSyncCustomersProgress),n.hasOwnProperty("ORDERS_CHECKBOX")?(users=n.ORDERS_CHECKBOX,f(l.dom.objSyncOrdersProgress,users),l.dom.lastSyncOrders.html(users.date_add)):g(l.dom.objSyncOrdersProgress),n.hasOwnProperty("ERRORS")&&n.ERRORS.length>0&&(l.dom.objErrorMessageBox.box.show(),l.dom.objErrorMessageBox.span.html(n.ERRORS.join("<br>")),setTimeout((function(){l.dom.objErrorMessageBox.box.hide(),l.dom.objErrorMessageBox.span.html("")}),15e3)),n.hasOwnProperty("ERRORS_MESSAGE")&&n.ERRORS_MESSAGE.length>0){for(var i,s=n.ERRORS_MESSAGE,a=[],o=0,d=s.length;o<=d;o++)"object"===t(s[o])&&s[o].hasOwnProperty("error")&&a.push(s[o].error);if(a.length>0){i=a.splice(0,10);var c=r("Display first #s errors:").replace("#s",10)+"<br><br>";c+=i.join("<br>"),l.dom.syncChimpErrorsMessage.show().html(c),setTimeout((function(){l.dom.syncChimpErrorsMessage.hide().html("")}),15e3)}}return 0==b(n).length&&(v(),!0)}function b(t){return e.map(t,(function(e,t){if(e.hasOwnProperty("done")&&0==e.done)return e.done}))}function w(){var e=l.dom;e.btnSyncLists.show(),e.btnDeleteChimpOrders.show(),e.btnStopSyncLists.hide()}function M(){l.dom;!function(){var e=l.dom;_(e.syncListsProgressBox)||e.syncListsProgressBox.show()}(),function(){var e=l.dom;e.btnSyncLists.hide(),e.btnDeleteChimpOrders.hide(),e.btnStopSyncLists.show()}(),e.postAjax({chimp:"getSyncListsStatus"}).done((function(e){y(e)})),function(t,n,i){var s=setInterval((function(){e.postAjax({chimp:n}).done((function(e){t(e,s)}))}),i)}((function(e,t){y(e)&&clearInterval(t)}),"getSyncListsStatus",5e3)}function k(t){var i=l.dom;T(i.btnSyncLists),e.postAjax({chimp:"setSyncLists",data:t}).done((function(t){t.status?(M(),function t(){e.postAjax({chimp:"startSyncLists"}).done((function(e){return e.hasOwnProperty("ADDED_CHECKBOX")&&!e.ADDED_CHECKBOX.done||e.hasOwnProperty("VISITORS_CHECKBOX")&&!e.VISITORS_CHECKBOX.done||e.hasOwnProperty("CUSTOMERS_CHECKBOX")&&!e.CUSTOMERS_CHECKBOX.done||e.hasOwnProperty("ORDERS_CHECKBOX")&&!e.ORDERS_CHECKBOX.done?t():void 0}))}()):n.alertErrors(t.errors)})).always((function(){S(i.btnSyncLists)}))}function L(e,t){return-1!==t.indexOf(e)}function T(e){var t=e.find(".ajax-loader");t.length>0&&t.show()}function S(e){var t=e.find(".ajax-loader");t.length>0&&t.hide()}function D(t,n,i){var s,a,o=function(t,n){var i='<table id="'+t+'" class="table table-bordered '+t+'">\t\t\t\t<thead>\t\t\t\t<tr>';return L("preview_image",n)&&(i+='<th class="preview_image" data-field="preview_image">'+r("preview image")+"</th>"),L("name",n)&&(i+='<th class="name" data-field="name">'+r("name")+"</th>"),L("layout",n)&&(i+='<th class="layout" data-field="layout">'+r("layout")+"</th>"),L("category",n)&&(i+='<th class="category" data-field="category">'+r("category")+"</th>"),L("date_created",n)&&(i+='<th class="date_created" data-field="date_created">'+r("date created")+"</th>"),L("active",n)&&(i+='<th class="np-active" data-field="active">'+r("active")+"</th>"),i+='<th class="actions" data-template="actions">'+r("actions")+"</th>\t\t\t\t</tr>\t\t\t\t</thead>\t\t\t</table>",e(i)}(t,["name","layout","category","active"]);return s=new gk.data.Model({id:"id"}),a=new gk.data.DataSource({pageSize:7,transport:{data:n},schema:{model:s}}),o.gkGrid({dataSource:a,selectable:!1,currentPage:1,pageable:!0,template:{active:function(e,t){return t?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>'},actions:function(t){var n=t.data.preview_image,s=e("<div></div>"),a=null==n?"":e('<a href="'+n+'" class="btn btn-default btn-margin pull-right" target="_blank"><i class="icon icon-eye" style="margin-right: 8px;"></i> '+r("preview")+"</a>"),o=e('<a href="javascript:{}" class="btn btn-default btn-margin pull-right btn-import-chimp-tpl"><span class="ajax-loader" style="display: none; margin-left: 0; margin-top: 0;"></span><span class="import-text" style="display: inline-block;"><i class="icon icon-download" style="margin-right: 8px;"></i> '+r("import")+"</span></a>");return o.on("click",(function(){var n=o.find(".import-text"),s=t.data.name;T(o),n.css({"padding-right":"7px"}),function(t,n,i){return e.postAjax({chimp:"getTemplateSource",template_id:t,type:n}).done((function(t){if(t.status){var n=t.template,s=function(e,t){return prompt(e,t)}(r("template name"),i);if(""==s||null==s)return!1;if(!s)return!1;!function t(n,i,s){l.dom,s=void 0!==s?s:0;return e.postAjax({chimp:"importTemplate",name:n,content:i,override:s}).done((function(e){if(e.status){if(e.worning.hasOwnProperty("101")){var s=e.worning[101].replace(/\&quot;/g,'"');if(!prompt(s,n))return!1;t(n,i,1)}var a=NewsletterPro.modules.createTemplate;a.vars.templateDataSource.sync((function(t){var n=t.getItemByValue("data.filename",e.template_name);t.setSelected(n),a.changeTemplate(n)}))}else NewsletterPro.alertErrors(e.errors)})).fail((function(e){NewsletterPro.alertErrors([r("import failure")])})).always((function(e){}))}(s,n,0)}else alertErrors(t.errors)}))}(t.data.id,i,s).always((function(){S(o),n.css({"padding-right":"0"})}))})),s.append(a),s.append(o),s}}}),{dataSource:a,dataModel:s,dataGrid:o}}function Y(){return importTemplateData}function x(t,i,s){var a=NewsletterPro.modules.createTemplate.vars.templateDataSource.selected.data;!function(t,i,s,a){n.modules.createTemplate.newsletterTemplate.saveTemplate().done((function(r){r.status?(n.showAjaxLoader(d.btnExport),e.postAjax({chimp:"exportTemplate",name:t,id_lang:i,filename:s,override:a}).done((function(e){if(e.status){if(e.name_exists){var s=n.displayAlert(e.message);return!!confirm(s)&&(x(t,i,1),!0)}d.success.show(),setTimeout((function(){d.success.hide()}),7e3)}else n.alertErrors(e.errors)})).always((function(){n.hideAjaxLoader(d.btnExport)}))):n.alertErrors(r.errors)}))}(t=t||a.name,i,a.filename,s=void 0===s?0:s)}function P(){var e=l.dom;e.btnChimpImportHtml.show(),e.btnChimpExportHtml.show(),function(){var e=l.dom;e.btnUninstallChimp.show(),e.btnInstallChimp.hide(),e.chimpMenu.slideDown()}(),e.syncBackChimpContent.show()}function C(){var e=l.dom;e.btnChimpImportHtml.hide(),e.btnChimpExportHtml.hide(),function(){var e=l.dom;e.btnUninstallChimp.hide(),e.btnInstallChimp.show(),e.chimpMenu.slideUp()}(),e.syncBackChimpContent.hide()}l.box=n,l.ready((function(t){r=NewsletterPro.translations.l(NewsletterPro.translations.modules.mailChimp),i=n.dataStorage.data,s=i.chimp_config,a=i.chimp_sync,contentIsSet=null,importTemplateComponents={user:null,base:null,gallery:null},importTemplateData={user:null,base:null,gallery:null};var f=function(e,t){for(var i=n.dataStorage.get("configuration.NEWSLETTER_TEMPLATE").replace(/_/," ").replace(/\.html$/,"").split(" "),s="",a=n.dataStorage.get("all_languages")[0],r=(e=void 0!==e?e:a.iso_code,t=void 0===t||t,0);r<i.length;r++)s+=n.ucfirst(i[r])+" ";return t&&(s+=e.toUpperCase()),s};o=new gkWindow({width:600,height:400,setScrollContent:340,title:r("Export Template To MailChimp"),className:"np-export-mailchimp-template-win",show:function(e){d.templateName.html(f(null,!1)),d.chimpTemplateName.val(f())},close:function(e){},content:function(t){for(var i,s,a=n.dataStorage.get("all_languages"),o="",l=0;l<a.length;l++)o+='<option value="'+(s=a[l]).iso_code+'">'+s.name+"</option>";return i=e('\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t<div class="row">\t\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t\t<label class="control-label col-sm-4"><span class="label-tooltip">'+r("Template Name")+'</span></label>\t\t\t\t\t\t\t\t\t<div class="col-sm-8">\t\t\t\t\t\t\t\t\t\t<span id="np-export-mailchimp-template-name" style="margin-top: 6px; display: block;"></span>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t\t<label class="control-label col-sm-4"><span class="label-tooltip">'+r("Language")+'</span></label>\t\t\t\t\t\t\t\t\t<div class="col-sm-8">\t\t\t\t\t\t\t\t\t\t<select id="np-export-mailchimp-template-lang-select" class="form-control fixed-width-xxl">\t\t\t\t\t\t\t\t\t\t\t'+o+'\t\t\t\t\t\t\t\t\t\t</select>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t\t<label class="control-label col-sm-4"><span class="label-tooltip">'+r("MailChimp Name")+'</span></label>\t\t\t\t\t\t\t\t\t<div class="col-sm-8">\t\t\t\t\t\t\t\t\t\t<input id="np-export-mailchimp-template-input-tn" type="text" class="form-control fixed-width-xxl" value="">\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t<div class="form-group clearfix">\t\t\t\t\t\t\t\t\t<div class="col-sm-8 col-sm-offset-4">\t\t\t\t\t\t\t\t\t\t<a id="np-export-mailchimp-template-btn" href="javascript:{}" class="btn btn-default">\t\t\t\t\t\t\t\t\t\t\t<span class="btn-ajax-loader"></span>\t\t\t\t\t\t\t\t\t\t\t<i class="icon icon-download"></i>\t\t\t\t\t\t\t\t\t\t\t'+r("Export")+'\t\t\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t\t\t\t<span id="np-export-mailchimp-template-success" style="display: none;"><span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span></span>\t\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t</div>\t\t\t\t\t\t</div>\t\t\t\t\t'),(d={templateName:i.find("#np-export-mailchimp-template-name"),langSelect:i.find("#np-export-mailchimp-template-lang-select"),chimpTemplateName:i.find("#np-export-mailchimp-template-input-tn"),btnExport:i.find("#np-export-mailchimp-template-btn"),success:i.find("#np-export-mailchimp-template-success")}).langSelect.on("change",(function(){var t=d.chimpTemplateName,n=e(this).val(),i=f(n);t.val(i)})),d.btnExport.on("click",(function(){for(var e=d.chimpTemplateName.val(),t=d.langSelect.val(),i=n.dataStorage.get("all_languages"),s=0,a=0;a<i.length;a++){var r=i[a];if(r.iso_code===t){s=Number(r.id_lang);break}}x(e,s)})),i}});var _=gkWindow({width:800,height:500,title:r("import template from chimp"),className:"gk-import-template-window-view",show:function(t){var i,s=null!=contentIsSet?contentIsSet:e('<div id="gk-import-content" style="position: relative;"><div id="gk-import-template-content-box"></div><span class="tpl-content ajax-loader"></span></div>'),a=s.find("#gk-import-template-content-box"),o=s.find(".tpl-content.ajax-loader");!function(e,t){e.css({opacity:"0.5"}),t.show(),t.css({position:"absolute",display:"block",margin:"0",padding:"0",left:390-t.width()/2,top:200-t.height()/2})}(a,o),i=function(t){var i,s;(function(e,t){e.css({opacity:"1"}),t.hide()}(a,o),t.status)?(s={user:t.templates.user,base:t.templates.base,gallery:t.templates.gallery},importTemplateData.user=s.user,importTemplateData.base=s.base,importTemplateData.gallery=s.gallery,null==importTemplateComponents.user?(importTemplateComponents.user=D("chimp-template-user",Y().user,"user"),(i=e("<div></div>")).append('<h4 class="chimp-import-tpl-title user-template">'+r("user template")+"</h4>"),i.append(importTemplateComponents.user.dataGrid),a.append(i)):(importTemplateComponents.user.dataSource.setData(Y().user),importTemplateComponents.user.dataSource.sync()),null==importTemplateComponents.gallery?(importTemplateComponents.gallery=function(e){return D("chimp-template-gallery",e,"gallery")}(Y().gallery),(i=e("<div></div>")).append('<h4 class="chimp-import-tpl-title">'+r("gallery template")+"</h4>"),i.append(importTemplateComponents.gallery.dataGrid),a.append(i)):importTemplateComponents.gallery.dataSource.sync(Y().gallery),null==importTemplateComponents.base?(importTemplateComponents.base=function(e){return D("chimp-template-base",e,"base")}(Y().base),(i=e("<div></div>")).append('<h4 class="chimp-import-tpl-title">'+r("base template")+"</h4>"),i.append(importTemplateComponents.base.dataGrid),a.append(i)):importTemplateComponents.base.dataSource.sync(Y().base)):n.alertErrors(t.errors)},e.postAjax({chimp:"getAllTemplates"}).done((function(e){i(e)})),null==contentIsSet&&(contentIsSet=s,_.setContent(s))}});b(a).length>0?M():w(),i.chimpIsInstalled?P():C(),p("ORDERS_CHECKBOX")?t.syncOrdersButtonText.show():t.syncOrdersButtonText.hide(),t.checkboxSyncCustomers.prop("checked",p("CUSTOMERS_CHECKBOX")),t.checkboxSyncVisitors.prop("checked",p("VISITORS_CHECKBOX")),t.checkboxSyncAdded.prop("checked",p("ADDED_CHECKBOX")),t.checkboxSyncOrders.prop("checked",p("ORDERS_CHECKBOX")),t.btnUninstallChimp.on("click",(function(){!function(){if(confirm(r("confirm uninstall chimp"))){var t=l.dom;return c(t.uninstallLoading),e.postAjax({chimp:"uninstallChimp"}).always((function(){u(t.uninstallLoading)})).done((function(e){e.status?(t.inputChimpApiKey.val(""),t.inputChimpListId.val(""),C(),alert(e.message)):n.alertErrors(e.errors)}))}}()})),t.btnInstallChimp.on("click",(function(){!function(t,i){var s=l.dom;c(s.installLoading),e.postAjax({chimp:"installChimp",api_key:t,list_id:i}).always((function(){u(s.installLoading)})).done((function(e){e.status?(P(),alert(e.message)):n.alertErrors(e.errors)}))}(t.inputChimpApiKey.val(),t.inputChimpListId.val())})),t.btnPingChimp.on("click",(function(){e.postAjax({chimp:"pingChimp"}).done((function(e){e.status?alert(e.message):n.alertErrors(e.errors)}))})),t.checkboxSyncCustomers.on("change",(function(){m("CUSTOMERS_CHECKBOX",h(e(this)))})),t.checkboxSyncVisitors.on("change",(function(){m("VISITORS_CHECKBOX",h(e(this)))})),t.checkboxSyncAdded.on("change",(function(){m("ADDED_CHECKBOX",h(e(this)))})),t.checkboxSyncOrders.on("change",(function(){var n=h(e(this));n?t.syncOrdersButtonText.show():t.syncOrdersButtonText.hide(),m("ORDERS_CHECKBOX",n)})),t.btnSyncLists.on("click",(function(){k({CUSTOMERS_CHECKBOX:h(t.checkboxSyncCustomers),VISITORS_CHECKBOX:h(t.checkboxSyncVisitors),ADDED_CHECKBOX:h(t.checkboxSyncAdded),ORDERS_CHECKBOX:h(t.checkboxSyncOrders)})})),t.btnStopSyncLists.on("click",(function(){v()})),t.btnChimpImportHtml.on("click",(function(){_.show()})),t.btnChimpExportHtml.on("click",(function(){o.show()})),t.btnDeleteChimpOrders.on("click",(function(){!function(){var t=l.dom;T(t.btnDeleteChimpOrders),t.btnSyncLists.hide(),e.postAjax({chimp:"deleteChimpOrders"}).done((function(e){alert(n.displayAlert(e.msg)),t.lastSyncOrders.html(e.date_add)})).always((function(){S(t.btnDeleteChimpOrders),t.btnSyncLists.show()}))}()})),t.resetSyncOrderDate.on("click",(function(){e.postAjax({chimp:"resetSyncOrderDate"}).done((function(e){e.success?t.lastSyncOrders.html(e.date_add):n.alertErrors(e.errors)}))}));var g=0,y=0,L=0,j=function(){var e=n.modules.sendNewsletters;e.vars.customers.sync(),e.isNewsletterProSubscriptionActive()?e.vars.visitorsNP.sync():e.vars.visitors.sync(),e.vars.added.sync()};t.btnSyncListsBack.on("click",(function(){0,g=0,y=0,L=0,function i(s,a){t.syncListsBack.show(),t.objSyncListBack.box.show(),t.objSyncListBack.ajaxLoader.show(),t.btnSyncListsBack.addClass("disabled"),n.showAjaxLoader(t.btnSyncListsBack),e.postAjax({chimp:"syncListsBack",start:s,limit:a}).done((function(e){e.success?(e.total,g+=e.created,y+=e.updated,L+=e.errors_count,t.objSyncListBack.total.html(e.member_count),t.objSyncListBack.created.html(g),t.objSyncListBack.updated.html(y),t.objSyncListBack.errors.html(L),e.total>0?(s++,i(s,a)):(t.btnSyncListsBack.removeClass("disabled"),t.objSyncListBack.ajaxLoader.hide(),setTimeout((function(){t.syncListsBack.hide(),t.objSyncListBack.box.hide()}),15e3),j())):(j(),t.btnSyncListsBack.removeClass("disabled"),t.objSyncBackErrorMessageBox.box.show(),t.objSyncBackErrorMessageBox.span.show().html(n.displayAlert(e.errors,"<br>")))})).always((function(){n.hideAjaxLoader(t.btnSyncListsBack)}))}(0,25)}))}))},ready:function(t){var n=this;e(document).ready((function(){var i=e("#sync-added-progress"),s=e("#sync-visitors-progress"),a=e("#sync-customers-progress"),r=e("#sync-orders-progress"),o=e("#sync-error-message-box"),l=e("#sync-list-back-error-message-box"),d=e("#sync-list-back-progress");n.dom={btnInstallChimp:e("#install-chimp"),btnPingChimp:e("#ping-chimp"),inputChimpApiKey:e("#chimp-api-key"),inputChimpListId:e("#chimp-list-id"),installLoading:e("#install-chimp-loading"),lastSyncOrders:e("#last-sync-orders"),btnUninstallChimp:e("#uninstall-chimp"),uninstallLoading:e("#uninstall-chimp-loading"),checkboxSyncCustomers:e("#sync-customers"),checkboxSyncVisitors:e("#sync-visitors"),checkboxSyncAdded:e("#sync-added"),checkboxSyncOrders:e("#sync-orders"),resetSyncOrderDate:e("#reset-sync-order-date"),syncOrdersButtonText:e("#sync-orders-button-text"),btnSyncLists:e("#sync-lists"),btnStopSyncLists:e("#stop-sync-lists"),btnDeleteChimpOrders:e("#delete-chimp-orders"),syncListsProgressBox:e("#sync-lists-progress-box"),syncChimpErrorsMessage:e("#sync-chimp-errors-message"),chimpMenu:e("#chimp-menu"),objSyncAddedProgress:{box:i,total:i.find(".sync-emails-total"),created:i.find(".sync-emails-created"),updated:i.find(".sync-emails-updated"),errors:i.find(".sync-emails-errors"),ajaxLoader:i.find(".ajax-loader")},objSyncVisitorsProgress:{box:s,total:s.find(".sync-emails-total"),created:s.find(".sync-emails-created"),updated:s.find(".sync-emails-updated"),errors:s.find(".sync-emails-errors"),ajaxLoader:s.find(".ajax-loader")},objSyncCustomersProgress:{box:a,total:a.find(".sync-emails-total"),created:a.find(".sync-emails-created"),updated:a.find(".sync-emails-updated"),errors:a.find(".sync-emails-errors"),ajaxLoader:a.find(".ajax-loader")},objSyncOrdersProgress:{box:r,total:r.find(".sync-emails-total"),created:r.find(".sync-emails-created"),updated:r.find(".sync-emails-updated"),errors:r.find(".sync-emails-errors"),ajaxLoader:r.find(".ajax-loader")},objErrorMessageBox:{box:o,span:o.find(".sync-error-message")},btnChimpImportHtml:e("#chimp-import-html"),btnChimpExportHtml:e("#chimp-export-html"),syncListsBack:e("#sync-lists-back-progress-box"),btnSyncListsBack:e("#sync-chimp-lists-back"),objSyncBackErrorMessageBox:{box:l,span:l.find(".sync-error-message")},objSyncListBack:{box:d,total:d.find(".sync-emails-total"),created:d.find(".sync-emails-created"),updated:d.find(".sync-emails-updated"),errors:d.find(".sync-emails-errors"),ajaxLoader:d.find(".ajax-loader")},syncBackChimpContent:e("#sync-back-chimp-content")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},function(e,t,n){(function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=window.NewsletterProComponents={init:function(){var n=this,i=[];e(window).resize((function(){i=[]})),t(document).ready((function(e){n.addElement("productSearch",e("#poduct-search")).addElement("productSearchAjax",e(".product-search-span")).addElement("productList",e("#product-list .userlist table tbody")).addElement("selectedProducts",e("#selected-products")).addElement("productTemplateNumberPerRow",e("#save-product-nr-per-row")).addElement("categoryList",e("#categories-list ul")).addElement("tabNewsletter",e("#tab.newsletter")).addElement("tabNewsletterContent",e("#tab_content.newsletter")).addElement("tabNewsletterTemplate",e("#tab_template.newsletter-template")).addElement("tabNewsletterTemplateContent",e("#tab_template_content.newsletter-template")).addElement("emailsToSend",e("#emails-to-send .userlist")).addElement("emailsSent",e("#emails-sent .userlist")).addElement("uploadCSVForm",e("#upload-csv-form")).addElement("uploadCSV",e("#upload-csv")).addElement("uploadCSVMessage",e("#upload-csv-message")).addElement("uploadCSVFiles",e("#upload-csv-files")).addElement("importExportContainer",e("#import-export-container")).addElement("importDetails",e("#import-details")).addElement("importSeparator",e("#import-separator")).addElement("productsAdjustmentsDiv",e("#products-adjustments-div")).addElement("productsAdjustments",e("#products-adjustments")),n.addObject("productList",n.ProductList.clone().init(n.elem.productList)),n.addObject("productSearch",n.Search.clone().init(n.elem.productSearch,n.objs.productList)),n.addObject("selectedProducts",n.SelectedProducts.clone().init(n.elem.selectedProducts)),n.addObject("categoryList",n.CategoryList.clone().init(n.elem.categoryList,n.objs.productList)),n.addObject("tabItems",n.TabItems.clone().init(n.elem.tabNewsletter,n.elem.tabNewsletterContent,(function(t){var n=t.attr("id");-1==i.indexOf(n)&&(i.push(n),"tab_newsletter_5"===n||("tab_newsletter_3"===n?NewsletterPro.modules.selectProducts.refreshSliders():n===NewsletterPro.modules.createTemplate.tabName?(void 0!==NewsletterPro.modules.createTemplate.dom.tinyNewsletter&&NewsletterPro.modules.createTemplate.updateBoth(),NewsletterPro.modules.createTemplate.refreshSliders(),NewsletterPro.modules.createTemplate.isTinyInit()||(e(".tab-content-loading").show(),setTimeout((function(){NewsletterPro.modules.createTemplate.initTiny().done((function(){e(".tab-content-loading").hide()}))}),50))):n===NewsletterPro.modules.frontSubscription.tabName&&(NewsletterPro.modules.frontSubscription.onTabShow(),NewsletterPro.modules.frontSubscription.isTinyInit()||(e(".tab-content-loading").show(),setTimeout((function(){NewsletterPro.modules.frontSubscription.initTiny().done((function(){e(".tab-content-loading").hide()}))}),50)))))}))),n.addObject("tabNewsletterTemplate",n.TabItems.clone().init(n.elem.tabNewsletterTemplate,n.elem.tabNewsletterTemplateContent,(function(e){}))),n.addObject("emailsSent",n.EmailSendList.clone().init(n.elem.emailsSent)),n.addObject("emailsToSend",n.EmailSendList.clone().init(n.elem.emailsToSend,n.objs.emailsSent)),n.addObject("uploadCSV",n.UploadCSV.init({form:n.elem.uploadCSVForm,file:n.elem.uploadCSV,msg:n.elem.uploadCSVMessage,files:n.elem.uploadCSVFiles,container:n.elem.importExportContainer,details:n.elem.importDetails,separator:n.elem.importSeparator}))}))},elem:{},objs:{},addElement:function(e,t){return this.elem[e]=t,this},addObject:function(e,t){return this.objs[e]=t,this},MenuCheckbox:{items:[],currentItem:null,hitTest:!1,clone:function(){return e.extend(!0,{},this)},init:function(e,t){void 0===t&&(t="click");var n=this;return this.element=e,this.element.attr("tabindex","-1"),this.element.css({outline:"none"}),this.eHeader=this.element.children("a").first(),this.eHeader.addClass("header"),this.eHeader.append("<span>&nbsp</span>"),this.eMenu=this.element.children("ul").first(),0==this.eMenu.length?(this.eMenu=this.element.children("table").first(),this.eItems=this.eMenu.find("tr")):this.eItems=this.eMenu.children("li"),this.createItems(this.eItems),"click"==t?(this.eHeader.on("click",(function(e){n.element.focus(),n.toggleMenu()})),this.element.on("focusout",(function(){0==n.hitTest&&n.hideMenu()})),this.element.on("mouseleave",(function(){n.hitTest=!1})),this.element.on("mouseenter",(function(){n.hitTest=!0}))):"over"==t&&this.element.hover((function(e){n.showMenu()}),(function(e){n.hideMenu()})),this},itemTemplate:function(t){var n=this,i=e(t).find("input"),s=!!i.is(":checked"),a={instance:t,input:i,click:function(){return this.instance.trigger("click"),!this.input.is(":checked")},check:function(){return 0==this.checked&&this.click(),!0},uncheck:function(){return 1==this.checked&&this.click(),!1},checked:s,val:function(){return this.input.val()},updateSelection:function(){return this.input.is(":checked")?(this.input.attr("checked",!1),this.checked=!1,!0):(this.input.attr("checked",!0),this.checked=!0,!1)}};return a.instance.on("click",(function(e){n.currentItem=a,n.currentItem.updateSelection(),e.stopPropagation()})),a.input.on("click",(function(e){n.currentItem=a,n.currentItem.checked=!!n.currentItem.input.is(":checked"),e.stopPropagation()})),a},createItems:function(t){var n=this;e.each(t,(function(t,i){n.items.push(n.itemTemplate(e(i)))}))},showMenu:function(){return this.eMenu.show(),!0},hideMenu:function(){return this.eMenu.hide(),!1},toggleMenu:function(){return this.eMenu.is(":visible")?(this.eMenu.hide(),!1):(this.eMenu.show(),!0)},getItems:function(t){var n=this;return e.grep(n.items,(function(e,i){return 1==t?1==n.items[i].checked:0!=t||0==n.items[i].checked}))},isTriggerAll:!1,checkAll:function(){var t=this;t.isTriggerAll=!0,e.each(t.items,(function(e,n){0==t.items[e].checked&&t.items[e].check(),t.items.length==e+1&&(t.isTriggerAll=!1)}))},uncheckAll:function(){var t=this;t.isTriggerAll=!0,e.each(t.items,(function(e,n){1==t.items[e].checked&&t.items[e].uncheck(),t.items.length==e+1&&(t.isTriggerAll=!1)}))},elementCheckToggle:function(e){1==e.data("value")?(e.data("value",0),e.html(e.data("name").check),this.uncheckAll()):(e.data("value",1),e.html(e.data("name").uncheck),this.checkAll())}},Search:{timer:null,minLength:4,title:"",clone:function(){return e.extend(!0,{},this)},init:function(e,t){var n=this;return this.element=e,this.title=e.val(),this.objTarget=t,this.element.on("keyup",(function(e){n.getVal().length>=n.minLength?n.search(n.getVal()):n.resetSearch()})),this.element.on("focus",(function(e){1!=n.isEmpty()&&n.getVal()!=n.title||n.setVal("")})),this.element.on("focusout",(function(e){1!=n.isEmpty()&&n.getVal()!=n.title||n.setVal(n.title)})),this},setVal:function(e){this.element.val(e)},getVal:function(e){return this.element.val()},resetSearch:function(){var e=i;this.isEmpty()&&e.objs.productList.element.empty()},search:function(t){var n=i,s=this;null!=s.timer&&clearTimeout(s.timer),n.elem.productSearchAjax.show(),s.timer=setTimeout((function(){e.postAjax({submit:"searchProducts",searchProducts:t}).done((function(e){n.elem.productSearchAjax.hide(),s.objTarget.createItems(e.products)}))}),200)},isEmpty:function(){return""==this.getVal()?(this.element.hasClass("empty")||this.element.addClass("empty"),!0):(this.element.hasClass("empty")&&this.element.removeClass("empty"),!1)}},ProductList:{items:[],eItems:[],element:null,currentItem:null,lastItemClass:null,clone:function(){return e.extend(!0,{},this)},init:function(e){return this.element=e,this},createItems:function(t){var n=this;return n.items=[],n.eItems=[],n.currentItem=null,n.lastItemClass=null,n.element.empty(),e.each(t,(function(e,t){t.thumb={path:t.thumb_path,width:t.thumb_width,height:t.thumb_height};var i=n.eItemTemplate(t);n.items.push(n.itemTemplate(i,t))})),this},parseItems:function(e){for(var t=0;t<this.items.length;t++){var n=e(Number(this.items[t].id),this.items[t]);if(null!=n)return n}},eItemTemplate:function(t){var n,i,s,a,r=NewsletterPro,o=r.translations.l(r.translations.global);function l(){return!!parseInt(t.active)}n=null==this.lastItemClass?"even":"even"==this.lastItemClass?"odd":"even",this.lastItemClass=n,i='<td class="options">\t\t\t\t\t\t\t\t<a class="btn btn-default add-product" href="javascript:{}" data-info=\'{"id":"'+t.id_product+'","value":"1"}\'>\t\t\t\t\t\t\t\t\t<i class="icon icon icon-plus-circle"></i> <span>'+o("add")+"</span>\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t</td>",s='<td class="options">\t\t\t\t\t\t\t\t\t<a class="btn btn-default add-product" href="javascript:{}" data-info=\'{"id":"'+t.id_product+'"}\'>\t\t\t\t\t\t\t\t\t\t<i class="icon icon icon-plus-circle"></i> <span>'+o("remove")+"</span>\t\t\t\t\t\t\t\t\t</a>\t\t\t\t\t\t\t\t</td>",a=-1==r.components.Product.getProductsId().indexOf(Number(t.id_product))?i:s;var d='<tr class="'+n+'">';return d+=1==NewsletterPro.dataStorage.getNumber("configuration.DISPLAY_PRODUCT_IMAGE")?'<td class="image"><img src="'+t.thumb.path+'" alt="" height="'+t.thumb.height+'" width="'+t.thumb.width+'"></td>':"",d+='<td class="name '+(l()?"":"inactive")+'">'+t.name+"</td>",d+='<td class="reference '+(l()?"":"inactive")+'">'+(null!=t.reference?t.reference:"")+"</td>",d+='<td class="search-price '+(l()?"":"inactive")+'">'+(null!=t.price_display?t.price_display:"")+"</td>",d+='<td class="search-active">'+(l()?'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>':'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>')+"</td>",d+='<td class="search-stock '+(parseInt(t.quantity)?"":"inactive")+'">'+(null!=t.quantity?t.quantity:'<span style="color: red;">0</span>')+"</td>",d+=a,d=e(d+="</tr>"),this.element.append(d),d},itemTemplate:function(e,t){var n=this,i=e.find("a.add-product"),s=i.find("span"),a=i.find("img"),r=i.data("info"),o=r.id,l=NewsletterPro,d=l.translations.l(l.translations.global),c={instance:e,button:i,click:function(){return this.button.trigger("click"),this.val()},val:function(){return this.dataInfo.value},id:o,dataInfo:r,data:t,text:s,img:a,toggleValue:function(){"1"==this.val()?this.remove():this.add()},setToAdd:function(){this.dataInfo.value="1",this.text.html(d("add"))},setAsRemove:function(){this.dataInfo.value="-1",this.text.html(d("remove"))},add:function(){var e=NewsletterPro;this.dataInfo.value="1",this.text.html(d("add")),e.modules.selectProducts.productSelection.remove(this.id)},remove:function(){var e=NewsletterPro;that=this,this.dataInfo.value="-1",this.text.html(d("remove")),e.modules.selectProducts.productSelection.add(this.id)}};return c.button.on("click",(function(e){n.currentItem=c,n.currentItem.toggleValue(),e.stopPropagation()})),c},getItems:function(t){return 1==t?e.grep(this.items,(function(e){return"-1"==e.val()})):0==t?e.grep(this.items,(function(e){return"1"==e.val()})):this.items}},SelectedProducts:{template:"",itemsId:[],items:[],element:null,productHeader:{},clone:function(){return e.extend(!0,{},this)},init:function(t){var n=this;return this.element=t,e.postAjax({submit:"getProductContent",getProductContent:!0},"html").done((function(e){n.template=e})),this},toggleSlider:function(e,t,n){var i,s;if(i=t.dom.target.parent(),this.items.length){var a=this.items[0];a.dom[e].length>0&&(s=a.dom[e],!NewsletterPro.modules.selectProducts.isDynamicVar(s))||a.dom[e].length>0&&"product"===e?(i.show(),NewsletterPro.modules.selectProducts.refreshSliders()):i.hide()}else i.hide()},toggleSliders:function(){var e=NewsletterPro.modules.selectProducts.vars.sliderName,t=NewsletterPro.modules.selectProducts.vars.sliderDescription,n=NewsletterPro.modules.selectProducts.vars.sliderDescriptionShort,i=NewsletterPro.modules.selectProducts.vars.sliderImageSize,s=NewsletterPro.modules.selectProducts.vars.sliderProductsWidth,a=NewsletterPro.modules.selectProducts.vars.sliderProductsPerRow,r=this.productHeader;r.hasOwnProperty("displayColumns")&&0==r.displayColumns?this.hideSlider("",a):this.showSlider("",a),this.toggleSlider("name",e),this.toggleSlider("description",t),this.toggleSlider("description_short",n),r.hasOwnProperty("displayImageSize")?1==r.displayImageSize&&this.toggleSlider("image",i):this.toggleSlider("image",i),r.hasOwnProperty("displayProductWidth")?1==r.displayProductWidth&&this.toggleSlider("product",s):this.toggleSlider("product",s)},hideSlider:function(e,t){t.dom.target.parent().hide()},showSlider:function(e,t){t.dom.target.parent().show()},hideSliders:function(){var e=NewsletterPro.modules.selectProducts.vars.sliderName,t=NewsletterPro.modules.selectProducts.vars.sliderDescription,n=NewsletterPro.modules.selectProducts.vars.sliderDescriptionShort,i=NewsletterPro.modules.selectProducts.vars.sliderImageSize,s=NewsletterPro.modules.selectProducts.vars.sliderProductsWidth;this.hideSlider("name",e),this.hideSlider("description",t),this.hideSlider("description_short",n),this.hideSlider("image",i),this.hideSlider("product",s)},parseProducts:function(t){var n=this.items;e.each(n,(function(e,n){t(n,n.value,n.data)}))},renderImages:!1,addItem:function(t){var n=this.formatItemData(t),i=e(n.product),s=n.formatedData;this.element.find("tr.last-row").last().append(i),this.itemsId.push(t.id_product);var a={id:t.id_product,value:i,data:s,dom:{name:i.find(".newsletter-pro-name"),description:i.find(".newsletter-pro-description"),description_short:i.find(".newsletter-pro-description_short"),image:i.find(".newsletter-pro-image"),product:i.find(".newsletter-pro-product")}};function r(e,t,n){return NewsletterPro.modules.selectProducts.trimString(e,t,n)}function o(e){return NewsletterPro.modules.selectProducts.isDynamicVar(e)}this.items.push(a),function(){var e=NewsletterPro.modules.selectProducts.vars.sliderName,t=NewsletterPro.modules.selectProducts.vars.sliderDescription,n=NewsletterPro.modules.selectProducts.vars.sliderDescriptionShort;NewsletterPro.modules.selectProducts.vars.sliderImageSize,o(a.dom.name)||a.dom.name.html(r(a.data.name,e.getValue())),o(a.dom.description)||a.dom.description.html(r(a.data.description,t.getValue())),o(a.dom.description_short)||a.dom.description_short.html(r(a.data.description_short,n.getValue())),NewsletterPro.modules.selectProducts.vars.sliderProductsWidth;var i=function(){var e=0;return NewsletterPro.dataStorage.data.hasOwnProperty("product_width")&&(e=parseInt(NewsletterPro.dataStorage.data.product_width)),e}();i<45?a.dom.product.width("auto"):a.dom.product.width(i)}(),this.toggleSliders(),NewsletterPro.modules.selectProducts.updateProductsWidth()},triggerRemoveAll:!1,removeItem:function(t){var n=i,s=this,a=function(){var e=parseInt(NewsletterPro.dataStorage.data.product_tpl_nr);return e||3}();t.parent().remove();var r=t.data("id"),o=s.itemsId.indexOf(r);if(s.itemsId.splice(o,1),"undefined"!==n.objs.productList){var l=n.objs.productList.getItems(!0);e.each(l,(function(e,t){t.id==r&&t.add()}))}l=s.element.find("td.product-item");s.element.empty(),s.itemIndex=0,e.each(l,(function(e,t){s.itemIndex%a!=0&&0!=s.itemIndex||s.element.append('<tr style="margin: 0; padding: 0;" class="last-row";></tr>'),s.element.find("tr.last-row").last().append(t),s.itemIndex++})),e.each(s.items,(function(e,t){if("undefined"!==r&&"undefined"!==t&&"undefined"!==t.id&&parseInt(t.id)==parseInt(r)){var n=s.items.indexOf(t);return s.items.splice(n,1),!1}})),s.triggerRemoveAll?(s.triggerRemoveAll=!1,s.hideSliders()):(s.toggleSliders(),s.fixHeightOnRemove()),NewsletterPro.modules.selectProducts.updateProductsWidth()},setProductsPerRow:function(t){NewsletterPro.dataStorage.add("product_tpl_nr",parseInt(t));var n=e.map(this.items,(function(e){return e.data}));return self.renderImages=!1,this.renderItems(n)},renderItems:function(t){var n=new e.Deferred,s=this;i.objs.productList,NewsletterPro.modules.selectedProducts;var a=void 0!==NewsletterPro.modules.selectProducts.vars.lastImageWidth&&parseInt(NewsletterPro.modules.selectProducts.vars.lastImageWidth);function r(){s.removeItems(),t.length&&e.each(t,(function(e,t){s.addItem(t)}))}return s.renderImages&&a?function(e){return NewsletterPro.modules.selectProducts.getImagesOfProducts(e)}(a).done((function(e){r(),s.parseProducts((function(t,n,i){!function(e,t,n){NewsletterPro.modules.selectProducts.setImageSizeByWidth(e,t,n)}(t,t.dom.image,a),function(e,t){NewsletterPro.modules.selectProducts.setImageOfProduct(e,t)}(e,t)})),n.resolve()})):(n.resolve(),r()),s.fixHeight(),n.promise()},getItemsIds:function(){return e.map(this.items,(function(e){return parseInt(e.id)}))},resetItems:function(){var t,n,i=this;t=i.getItemsIds(),n=function(e){i.renderItems(e)},e.postAjax({submit:"getProductsById",ids:t}).done((function(e){n(e.products)}))},fixHeight:function(){if(this.items.length>0){var t=e.map(this.items,(function(e,t){var n=e.value.find(".newsletter-pro-product");if(n.length>0){var i=parseInt(n.css("padding-top")),s=parseInt(n.css("padding-bottom")),a=parseInt(n.css("border-top-width")),r=parseInt(n.css("border-bottom-width"));return n.height()+s+i+a+r}}));return t=Math.max.apply(Math,t),e.each(this.items,(function(e,n){var i=n.value.find(".newsletter-pro-product");i.length>0&&i.height(t)})),t}return!1},fixHeightOnRemove:function(){return this.items.length>0&&(e.each(this.items,(function(e,t){var n=t.value.find(".newsletter-pro-product");n.length>0&&n.css("height","auto")})),this.fixHeight(),!0)},removeItems:function(){this.triggerRemoveAll=!0;e.each(this.element.find(".remove-item"),(function(t,n){e(n).trigger("click")})),this.fixHeightOnRemove()},getHeader:function(e){var t,n,i=e.match(/<!-- start header -->\s*?<!--([\s\S]*)-->\s*?<!-- end header -->/),s={};return null!=i&&i.length>0&&(t=i[0],n=i[1],s=this.parseProductHeader(n),e=e.replace(t,"")),s},parseProductHeader:function(e){var t=e.split("\n"),n="";if(null!=t&&t.length>0)for(var i=0;i<t.length;i++){var s=t[i].replace(/\s+/g,"");""!=s&&(n+=s,";"!==s[s.length-1]&&(n+=";"))}var a=n.split(";"),r={};if(null!=a&&a.length>0)for(i=0;i<a.length;i++){var o=a[i].replace(/\s+/g,"");if(""!=o){var l=o.split("=");void 0!==l[1]&&(r[l[0]]="false"!==l[1]&&("true"===l[1]||(isNaN(Number(l[1]))?l[1]:Number(l[1]))))}}return r},removeItemById:function(e){var t=this.element.find('*[data-id="'+e+'"]');t.length>0&&t.trigger("click"),this.fixHeightOnRemove()},columns:3,itemIndex:0,formatItemData:function(t){var n,i=this,s=function(){var e=parseInt(NewsletterPro.dataStorage.data.product_tpl_nr);return e||i.columns}(),a=i.element,r=i.itemIndex,o=i.template;function l(e,t){o=o.replace(new RegExp("{"+e+"}","g"),t)}function d(e,t){return t=t||2,parseFloat(e).toFixed(t)}function c(t){var n=e("<span></span>");return n.html(t),n.text()}i.productHeader=i.getHeader(o);var u={id_product:t.id_product,id_supplier:t.id_supplier,id_manufacturer:t.id_manufacturer,id_category_default:t.id_category_default,id_shop_default:t.id_shop_default,id_shop:t.id_shop,price:d(t.price),price_convert:d(t.price_convert),orderprice:d(t.orderprice),price_tax_exc:d(t.price_tax_exc),price_without_reduction:d(t.price_without_reduction),price_without_reduction_convert:d(t.price_without_reduction_convert),price_without_reduction_display:t.price_without_reduction_display,price_tax_exc_convert:d(t.price_tax_exc_convert),price_tax_exc_display:t.price_tax_exc_display,wholesale_price_convert:d(t.wholesale_price_convert),wholesale_price_display:t.wholesale_price_display,price_display:t.price_display,wholesale_price:t.wholesale_price,unit_price_ratio:t.unit_price_ratio,on_sale:t.on_sale,online_only:t.online_only,ecotax:t.ecotax,quantity:t.quantity,minimal_quantity:t.minimal_quantity,currency:t.currency,discount:t.discount,unity:t.unity,unit_price:t.unit_price,unit_price_convert:t.unit_price_convert,unit_price_display:t.unit_price_display,unit_price_tax_exc:t.unit_price_tax_exc,unit_price_tax_exc_convert:t.unit_price_tax_exc_convert,unit_price_tax_exc_display:t.unit_price_tax_exc_display,unit_price_bo:t.unit_price_bo,unit_price_bo_convert:t.unit_price_bo_convert,unit_price_bo_display:t.unit_price_bo_display,additional_shipping_cost:t.additional_shipping_cost,supplier_reference:t.supplier_reference,reference:t.reference,width:t.width,height:t.height,depth:t.depth,weight:t.weight,quantity_discount:t.quantity_discount,condition:t.condition,date_add:t.date_add,date_upd:t.date_upd,description:c(t.description),description_short:c(t.description_short),available_now:t.available_now,available_later:t.available_later,link_rewrite:t.link_rewrite,name:t.name,legend:t.legend,manufacturer_name:t.manufacturer_name,tax_name:t.tax_name,rate:t.rate,category_default:t.category_default,link:t.link,reduction:t.reduction,image_path:t.image_path,image_width:t.image_width,image_height:t.image_height,thumb_path:t.thumb_path,thumb_width:t.thumb_width,thumb_height:t.thumb_height},h=new NewsletterPro.components.ProductRender(o,u);return o=h.render(),"undefined"!==s&&l("column_width",String(100/s+"%")),l("(\\s+)?columns(\\s+)?=(\\s+)?\\d+(\\s+)?",""),n='<td style="margin: 0; padding: 0;" class="product-item"><a href="javascript:{}" class="remove-item" data-id="'+u.id_product+'" onclick="NewsletterProComponents.objs.selectedProducts.removeItem($(this));">&nbsp;</a>'+o+"</td>",r%s!=0&&0!=r||a.append('<tr style="margin: 0; padding: 0;" class="last-row";></tr>'),i.itemIndex++,{product:e(n),formatedData:u}}},CategoryList:{element:null,objTarget:null,targetCallback:null,currentItem:null,clone:function(){return e.extend(!0,{},this)},init:function(t,n){var i=this;return this.element=t,this.objTarget=n,this.initCallback(this.categoryListCallback),e.each(NewsletterPro.dataStorage.get("categories_list"),(function(e,t){var n=i.eItemTemplate(t,i.element);i.itemTemplate(n,t)})),this},initCallback:function(e){return this.targetCallback=e,this},eItemTemplate:function(t,n){var i=t.subcategory.length>0?'class="category_arrow"':"",s="";return s+='<li class="even" data-id="'+t.id_category+'">',s+="<span "+i+">&nbsp;</span>",s+='<span style="cursor: default; margin-left: 3px; display: inline-block;">'+t.name+"</span>",s+='<span class="subcategory_lis" style="display: none; margin-bottom: 0; color: black; font-weight: normal;">&nbsp;</span>',s=e(s+="</li>"),n.append(s),s},itemTemplate:function(e,t){var n=this,i=e.data("id"),s=t.level;(t={instance:e,id:i,level:s}).instance.on("click",(function(e){e.stopPropagation(),n.currentItem=t,n.categoryListCallback(n.currentItem.id)}))},categoryListCallback:function(t){var n=i,s=this,a=parseInt(s.currentItem.level);s.currentItem.instance.hasClass("selected")||(s.currentItem.instance.addClass("selected"),null!=s.lastItemSelected&&s.lastItemSelected.hasClass("selected")&&s.lastItemSelected.removeClass("selected"),null!=s.lastItemRootSelected&&2==a&&s.lastItemRootSelected.find("span.subcategory_lis").css("display","none").empty(),2==a&&(s.lastItemRootSelected=s.currentItem.instance),s.lastItemSelected=s.currentItem.instance),s.currentItem.instance.css({height:"auto"}),n.elem.productSearchAjax.show(),e.postAjax({submit:"getProducts",getProducts:t}).done((function(e){n.elem.productSearchAjax.hide(),s.objTarget.createItems(e.products)}));var r=Array(),o=function n(i){return e.each(i,(function(e,i){if(i.id_category==t)return r=i,!1;n(i.subcategory)})),r}(NewsletterPro.dataStorage.get("categories_list"));if(void 0===o||o.subcategory.length<=0)return!1;var l=s.currentItem.instance.find("span.subcategory_lis").css("display","block").empty();e.each(o.subcategory,(function(e,t){var n=s.eItemTemplate(t,l);s.itemTemplate(n,t)}))}},TabItems:{lastItem:null,buttons:[],onChange:null,clone:function(){return e.extend(!0,{},this)},init:function(t,n,i){NewsletterPro.extendSubscribeFeature(this);var s=this;this.onChange=i,this.content=n.children("div");var a=t.find("a").filter((function(t,n){return 1!=(n=e(n)).data("ignore")&&"true"!==n.data("ignore")}));e.each(a,(function(t,n){(n=e(n)).id=n.attr("id");var i=String(n.attr("id")).match(/\d+/,"");n.idNum=i?parseInt(i):null;var a=new RegExp("^.*"+n.idNum+"$","g");n.target=e(e.grep(s.content,(function(t,n){return t=e(t),0!=n&&t.hide(),a.test(t.attr("id"))?t:null}))[0]),0!=t||n.hasClass("selected")||(n.addClass("selected"),s.lastItem=n),s.addEvent(n),s.buttons.push(n)}));var r=window.location.hash,o=s.buttons.filter((function(e){return e.attr("href")==r}));return"#viewImported"!==r&&(void 0!==o[0]?(o[0].trigger("click"),o[0].target.show()):s.trigger("tab_newsletter_3")),this},addEvent:function(e){var t=this;e.on("click",(function(n){if(null!=t.lastItem&&t.lastItem.target===e.target)return!1;null!=t.lastItem&&(t.lastItem.target.hide(),e.target.show(),t.lastItem.hasClass("selected")&&t.lastItem.removeClass("selected")),e.hasClass("selected")||e.addClass("selected"),t.lastItem=e,t.publish("change",e),"function"==typeof t.onChange&&t.onChange(e)}))},trigger:function(t){var n=e.grep(this.buttons,(function(e,n){return e.id==t?e:null}))[0];return void 0!==n&&n.trigger("click"),this},triggerHref:function(t){var n=e.grep(this.buttons,(function(e,n){return e.attr("href")==t?e:null}))[0];return void 0!==n&&n.trigger("click"),this},getLastItem:function(){return null!=this.lastItem&&this.lastItem}},EmailSendList:{items:[],clone:function(){return e.extend(!0,{},this)},init:function(t,n){var i=this;this.element=t,this.objTarget=n;var s=this.element.find("li");return s.length>0&&e.each(s,(function(t,n){if(void 0!==(n=e(n)).data("email")){var s=n.data("email");i.items.push(i.itemTemplate(n,s))}})),this},eItemTemplate:function(t){var n="";return n+='<li class="'+(!1===this.getLastItem()||this.getLastItem().instance.hasClass("odd")?"even":"odd")+'">',n+='<span class="email_text">'+t+"</span> ",n=e(n+="</li>"),this.element.append(n),n},itemTemplate:function(e,t){return{instance:e,email:t}},createItems:function(t){var n=this;e.each(t,(function(e,t){var i=n.eItemTemplate(t);n.items.push(n.itemTemplate(i,t))}))},createObjItems:function(t,i){var s=this;i=i||"prepend",e.each(t,(function(e,t){"object"==n(t)&&("append"==i?s.element.append(t.instance):s.element.prepend(t.instance),s.items.push(t))}))},removeItems:function(t){var n=this;e.each(t,(function(e,t){-1!=(e=n.items.indexOf(t))&&(n.items[e].instance.remove(),n.items.splice(e,1))}))},removeAllItems:function(){this.items=[],this.element.empty()},removeLast:function(){if(this.items.length>0){var e=this.items.pop();return e.instance.remove(),e}return!1},removeFirst:function(){if(this.items.length>0){var e=this.items.shift();return e.instance.remove(),e}return!1},moveFirst:function(){var e=this.removeFirst();return this.objTarget.createObjItems([e],"prepend"),e},getItems:function(){return this.items},getLastItem:function(){return this.items.length>0&&this.items[this.items.length-1]},getFirstItem:function(){return this.items.length>0&&this.items[0]},getLength:function(){return parseInt(this.items.length)}},UploadCSV:{fields:[],items:[],selected:null,form:null,file:null,msg:null,container:null,details:null,separator:null,init:function(t){var n=e.extend(!0,{},this);return n.file=t.file,n.form=t.form,n.msg=t.msg,n.files=t.files,n.container=t.container,n.details=t.details,n.separator=t.separator,n.createItems(),n.initEvents(),n},initEvents:function(){var e=this;e.file.on("change",(function(t){e.uploadItem()}))},setSelected:function(e){null!=this.selected&&this.selected.instance.hasClass("selected")&&this.selected.instance.removeClass("selected"),this.selected=e,this.selected.instance.hasClass("selected")||this.selected.instance.addClass("selected")},uploadItem:function(){var t=this;e.submitAjax({submit:"uploadCSV",name:"uploadCSV",form:t.form}).done((function(n){if(n.status){var i=e('<tr data-name="'+n.data.name+'"> \t\t\t\t\t\t\t\t\t\t<td> '+n.data.name+' </td> \t\t\t\t\t\t\t\t\t\t<td class="center">\t\t\t\t\t\t\t\t\t\t\t<a class="delete-added" href="javascript:{}" onclick="NewsletterProComponents.objs.uploadCSV.deleteItemByName(\''+n.data.name+'\');"><i class="icon icon-remove cross-white"></i></a>\t\t\t\t\t\t\t\t\t\t</td> \t\t\t\t\t\t\t\t\t</tr>');t.files.append(i),t.createItem(i)}else t.writeMsg(n.msg)}))},writeMsg:function(e,t){this.msg.empty().append('<span class="error-msg">'+e+"</span>")},deleteItemByName:function(t){var n=this;e.postAjax({submit:"deleteCSVByName",deleteCSVByName:t}).done((function(e){e.status?(n.removeItemByName(t),null!=n.selected&&n.selected.name==t&&(n.selected=null),n.items.length<=0&&n.files.hide()):n.writeMsg(e.msg)}))},removeItemByName:function(t){var n=this;e.each(n.items,(function(e,i){if(void 0!==i&&i.name==t){e=n.items.indexOf(i);return i.instance.remove(),n.items.splice(e,1),!0}}))},createItems:function(){var t=this,n=t.files.find("tbody tr");e.each(n,(function(n,i){t.createItem(e(i))}))},createItem:function(e){var t=this,n={instance:e,name:e.data("name"),init:function(){n.initEvents(),t.items.push(n)},initEvents:function(){n.instance.on("click",(function(e){e.stopPropagation(),n.click()}))},click:function(){t.setSelected(n)}};n.init()},nextStep:function(t){var n=this;if(n.fields=[],null==n.selected)alert(t.data("no-file"));else{var i=n.selected.name,s=e.trim(n.separator.val()),a=e("#from-linenumber").val(),r=e("#to-linenumber").val();if(","!=s&&";"!=s)return alert(t.data("bad-separator")),!1;e.postAjax({submit:"loadCSV",loadCSV:i,delimiter:s,line:{from:a,to:r}},"html").done((function(e){n.container.hide(),n.writeDetails(e)}))}},importCSV:function(t){var n=this,i=n.selected.name,s=e.trim(n.separator.val()),a=n.fields,r=e("#import-csv-filter-name").val();if(0==a.length)alert(t.data("no-fields"));else{if(0==e.grep(n.fields,(function(e,t){return"email"==e.db_field})).length)return alert(t.data("no-email")),!1;var o=e("#from-linenumber").val(),l=e("#to-linenumber").val();e.postAjax({submit:"importCSV",importCSV:i,delimiter:s,fields:a,line:{from:o,to:l},filter_name:r},"html").done((function(e){n.writeDetails(e)}))}},geBack:function(){this.writeDetails(""),this.details.hide(),this.container.show(),this.fields=[]},writeDetails:function(e){this.details.show().empty().append(e)},addField:function(t){var n=this,i=t.data("field"),s=t.val(),a={csv_field:i,db_field:s};if(0!=s){var r=e.grep(n.fields,(function(e,t){return e.csv_field==a.csv_field}));if(0==r.length)n.fields.push(a);else{var o=n.fields.indexOf(r[0]);n.fields[o]=a}}else e.each(n.fields,(function(e,t){if(t.csv_field==a.csv_field){var i=n.fields.indexOf(t);n.fields.splice(i,1)}}))}}};i.init()}).call(this,n(2),n(2))},function(e,t,n){(function(e,t){window.NewsletterProControllers={init:function(){var t=this,n=NewsletterPro;e(document).ready((function(e){n.components.CurrencySelect.initBySelection(e(".gk_currency_select")),t.l=NewsletterPro.translations.l(NewsletterPro.translations.constrollers),t.IndexController.init({}),t.NavigationController.init(),t.SendController.init(),t.SettingsController.init(),t.TemplateController.init(),t.UpgradeController.init(),t.ClearCacheController.init()}))},elem:{},vars:{},objs:{},fcts:{},addElement:function(e,t){return this.elem[e]=t,this},addVariable:function(e,t){return this.vars[e]=t,this},addObject:function(e,t){return this.objs[e]=t,this},addFunction:function(e,t){},IndexController:{init:function(e){}},SendController:{vars:{},elem:{},addVariable:function(e,t){return this.vars[e]=t,this},addElement:function(e,t){return this.elem[e]=t,this},init:function(){var e=this;e.addElement("testEmail",t("#test-email")).addElement("testEmailButton",e.elem.testEmail.find("#test-email-button")).addElement("testEmailInput",e.elem.testEmail.find("#test-email-input")).addElement("testEmailCheckbox",e.elem.testEmail.find("#test-email-checkbox")).addElement("testEmailMessage",e.elem.testEmail.find("#test-email-message")).addElement("smtpTestEmail",t("#smtp-test-email")).addElement("smtpTestEmailMessage",t("#smtp-test-email-message")).addElement("selectAllCustomersUserList",t("#user-list")).addElement("selectAllCustomersFilters",t(".dropdown-menu")).addElement("selectAllCustomersCount",t("#select-all-customers-count")).addElement("testSendEmailBox",t("#test-send-email-box")).addElement("sendTestEmailLangSwitcher",t("#send-test-email-language-switcher")).addElement("addEmailButton",t("#add-email-button")).addElement("addEmailInput",t("#add-email-input")).addElement("addEmailMessage",t("#add-email-message")).addElement("addedSubscribedList",t("#added-subscribed ul")).addElement("usersMessage",t("#users-subscribed-message")).addElement("visitorsMessage",t("#visitors-subscribed-message")).addElement("addedMessage",t("#add-email-message")).addElement("sleepNewsletterMessage",t("#email-sleep-message")).addElement("sendNewsletters",t("#send-newsletters")).addElement("newTask",t("#new-task")).addElement("stopSendNewsletters",t("#stop-send-newsletters")).addElement("continueSendNewsletters",t("#continue-send-newsletters")).addElement("pauseSendNewsletters",t("#pause-send-newsletters")).addElement("emailsToSendCount",t("#emails-to-send-count")).addElement("emailsSentCountSucc",t("#emails-sent-count-succ")).addElement("emailsSentCountErr",t("#emails-sent-count-err")).addElement("previousSendNewsletters",t("#previous-send-newsletters")).addElement("lastSendErrorDiv",t("#last-send-error-div")).addElement("lastSendError",t("#last-send-error")),e.addVariable("pauseNewsletters",!1).addVariable("stopNewsletters",!1).addVariable("emailsSentCountSucc",0).addVariable("emailsSentCountErr",0),e.elem.testEmailCheckbox.on("change",(function(n){t(this).is(":checked")?e.elem.testSendEmailBox.show():e.elem.testSendEmailBox.hide()}));new NewsletterPro.components.LanguageSelect({selector:e.elem.sendTestEmailLangSwitcher,languages:NewsletterPro.dataStorage.get("all_languages"),click:function(e,t){Number(e.id_lang)}})},sendTestEmail:function(e){var n=NewsletterPro,i=this.elem.testEmailMessage,s=t("#test-email-success-message"),a=this.elem.testEmailInput.val(),r=n.dataStorage.get("id_selected_lang");s.hide(),i.hide(),n.showAjaxLoader(e),t.postAjax({submit:"sendTestEmail",sendTestEmail:a,idLang:r}).done((function(e){e.status?s.show().html('<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>'):i.empty().show().append('<div class="alert alert-danger">'+e.msg+"</div>"),setTimeout((function(){s.hide(),i.hide()}),5e3)})).always((function(){n.hideAjaxLoader(e)}))},addEmail:function(){var e=this;t.postAjax({submit:"addEmail",addEmail:e.elem.addEmailInput.val()}).done((function(t){if(1==t.status){var n="";n+='<li class="'+(e.elem.addedSubscribedList.find("li:last").hasClass("odd")?"even":"odd")+'">',n+=t.template,n+="</li>",e.elem.addedSubscribedList.append(n);var i=e.elem.addedSubscribedList.find("li").last();NewsletterProComponents.objs.addedSubscribed.createItems(i),e.elem.addEmailMessage.empty().show().append('<span class="success-msg">'+t.msg+"</span>")}else e.elem.addEmailMessage.empty().show().append('<span class="error-msg">'+t.msg+"</span>");setTimeout((function(){e.elem.addEmailMessage.fadeOut("slow")}),5e3)}))},sleepNewsletter:function(e){var n=this;t.postAjax({submit:"sleepNewsletter",sleepNewsletter:e.val()}).done((function(e){e.status?n.elem.sleepNewsletterMessage.empty().show().append('<span class="success-icon">&nbsp;</span>'):n.elem.sleepNewsletterMessage.empty().show().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){n.elem.sleepNewsletterMessage.hide()}),5e3)}))},allCustomers:[],selectAllCustomers:function(e){var n=this;e.is(":checked")?(n.elem.selectAllCustomersFilters.css({position:"relative",zoom:"1"}),n.elem.selectAllCustomersUserList.slideUp("slow"),t.postAjax({submit:"selectAllCustomers",selectAllCustomers:!0}).done((function(e){n.elem.selectAllCustomersCount.empty().append(e.length),n.allCustomers=e}))):(n.elem.selectAllCustomersCount.empty().append("0"),n.elem.selectAllCustomersUserList.slideDown("slow",(function(){n.elem.selectAllCustomersFilters.css({position:"absolute",zoom:"1"}),n.allCustomers=[]})))},getSelectedEmails:function(){var e,t,n=NewsletterPro.modules.sendNewsletters.vars.customers,i=NewsletterPro.modules.sendNewsletters.vars.added,s=[];return e=NewsletterPro.modules.sendNewsletters.isNewsletterProSubscriptionActive()?NewsletterPro.modules.sendNewsletters.vars.visitorsNP:NewsletterPro.modules.sendNewsletters.vars.visitors,[].length?console.warn("this feature is not active"):(t=n.getSelectedEmails(),s=s.concat(t)),[].length?console.warn("this feature is not active"):(t=e.getSelectedEmails(),s=s.concat(t)),[].length?console.warn("this feature is not active"):(t=i.getSelectedEmails(),s=s.concat(t)),s},prepareEmails:function(e){var n;NewsletterPro;if(0!=(n=void 0!==e?e:this.getSelectedEmails()).length){var i=JSON.stringify(n);return t.postAjax({submit:"prepareEmails",prepareEmails:i}).done((function(e){e.status?NewsletterPro.modules.sendManager.startSendNewsletters(!0):NewsletterPro.alertErrors(e.errors.join("\n"))})).promise()}alert(NewsletterProControllers.l("no email selected"))},goToNextStep:function(){var e=this,n=NewsletterProComponents.objs.emailsToSend,i=NewsletterProComponents.objs.emailsSent;t.postAjax({submit:"goToNextStep",goToNextStep:!0}).done((function(t){1!=t.exit&&1!=e.vars.stopSendNewsletters?1!=e.vars.pauseNewsletters&&(n.createItems(t.emails),i.removeAllItems(),e.sendNewsletters()):e.exitAction()}))},sendNewsletters:function(){console.warn('This function "sendNewsletters" is no longer used.')},exitAction:function(){var e=this.elem;this.setPause(!0),this.elem.sendNewsletters.is(":visible")||(this.elem.sendNewsletters.show(),this.elem.newTask.show()),this.elem.stopSendNewsletters.is(":visible")&&this.elem.stopSendNewsletters.hide(),this.elem.continueSendNewsletters.is(":visible")&&this.elem.continueSendNewsletters.hide(),this.elem.previousSendNewsletters.is(":visible")||this.elem.previousSendNewsletters.show(),setTimeout((function(){e.lastSendErrorDiv.slideUp()}),7e3),NewsletterPro.modules.task.ui.components.sendHistory.sync()},setPause:function(e){this.vars.pauseNewsletters=e,1==e?(this.elem.pauseSendNewsletters.hide(),this.elem.continueSendNewsletters.show()):(this.elem.pauseSendNewsletters.show(),this.elem.continueSendNewsletters.hide())},setStop:function(e){this.vars.stopSendNewsletters=e},stopNewsletters:function(){var e=t.Deferred(),n=NewsletterProComponents.objs.emailsToSend,i=NewsletterProComponents.objs.emailsSent;return this.setStop(!0),t.postAjax({submit:"stopNewsletters",stopNewsletters:!0}).done((function(){NewsletterPro.modules.task.ui.components.sendHistory.sync(),e.resolve()})),n.removeAllItems(),i.removeAllItems(),this.elem.sendNewsletters.show(),this.elem.newTask.show(),this.elem.stopSendNewsletters.hide(),this.elem.continueSendNewsletters.hide(),this.elem.pauseSendNewsletters.hide(),this.elem.previousSendNewsletters.show(),this.elem.emailsSentCountSucc.text("0"),this.elem.emailsSentCountErr.text("0"),this.elem.emailsToSendCount.html("0"),e.promise()}},SettingsController:{init:function(){this.addElement("smtpForm",t("#smtpForm")),this.addElement("smtpName",t("#smtp-name")),this.addElement("smtpDomain",t("#smtp-domain")),this.addElement("smtpPasswd",t("#smtp-passwd")),this.addElement("smtpServer",t("#smtp-server")),this.addElement("smtpEncryption",t("#smtp-encryption")),this.addElement("smtpPort",t("#smtp-port")),this.addElement("smtpUser",t("#smtp-user")),this.addElement("saveSmtp",t("#save-smtp")),this.addElement("addSmtp",t("#add-smtp")),this.addElement("deleteSmtp",t("#delete-smtp")),this.addElement("saveSmtpMessage",t("#save-smtp-message")),this.addElement("ganalyticsId",t("#ganalytics-id")),this.addElement("ganalyticsIdMessage",t("#ganalytics-id-message")),this.addElement("setParams",t("#set-params")),this.addElement("setParamsDefault",t("#set-params-default")),this.addElement("setParamsSave",t("#set-params-save")),this.addElement("setParamsSaveMessage",t("#set-params-save-message")),this.addElement("campaignForm",t("#campaignForm")),this.addElement("utm_source",t("#utm_source")),this.addElement("utm_medium",t("#utm_medium")),this.addElement("utm_campaign",t("#utm_campaign")),this.addElement("utm_content",t("#utm_content"))},vars:{},addVariable:function(e,t){return this.vars[e]=t,this},elem:{},addElement:function(e,t){return this.elem[e]=t,this},objs:{},addObject:function(e,t){return this.objs[e]=t,this},viewActiveOnly:function(e){t.postAjax({submit:"viewActiveOnly",viewActiveOnly:e.val()}).done((function(e){e.status&&location.reload()}))},convertCssToInlineStyle:function(e){t.postAjax({submit:"convertCssToInlineStyle",convertCssToInlineStyle:e.val()}).done((function(e){e.status&&location.reload()}))},productFriendlyURL:function(e){t.postAjax({submit:"productFriendlyURL",productFriendlyURL:e.val()}).done((function(e){e.status&&location.reload()}))},debugMode:function(e){t.postAjax({submit:"debugMode",debugMode:e.val()}).done((function(e){e.status&&location.reload()}))},loadMinified:function(e){t.postAjax({submit:"loadMinified",value:e.val()}).done((function(e){e.status&&location.reload()}))},runMultimpleTasks:function(e){t.postAjax({submit:"runMultimpleTasks",runMultimpleTasks:e.val()}).done((function(e){e.status&&location.reload()}))},displayCustomerAccountSettings:function(e){t.postAjax({submit:"displayCustomerAccountSettings",value:e.val()}).done((function(e){e.status&&location.reload()}))},devMode:function(e){t.postAjax({submit:"devMode",value:e.val()}).done((function(e){e.status&&location.reload()}))},subscribeByCategory:function(e){t.postAjax({submit:"subscribeByCategory",value:e.val()}).done((function(e){e.status&&location.reload()}))},subscribeByCListOfInterest:function(e){t.postAjax({submit:"subscribeByCListOfInterest",value:e.val()}).done((function(e){e.status&&location.reload()}))},subscribeByCAListOfInterest:function(e){t.postAjax({submit:"subscribeByCAListOfInterest",value:e.val()}).done((function(e){e.status&&location.reload()}))},sendNewsletterOnSubscribe:function(e){t.postAjax({submit:"sendNewsletterOnSubscribe",value:e.val()}).done((function(e){e.status&&location.reload()}))},forwardingFeatureActive:function(e){t.postAjax({submit:"forwardingFeatureActive",value:e.val()}).done((function(e){e.status&&location.reload()}))},sendEmbededImagesActive:function(e){t.postAjax({submit:"sendEmbededImagesActive",value:e.val()}).done((function(e){e.status?location.reload():NewsletterPro.alertErrors(e.errors)}))},sendEmailMimeText:function(e){t.postAjax({submit:"sendEmailMimeText",value:e.val()}).done((function(e){e.status?location.reload():NewsletterPro.alertErrors(e.errors)}))},chimpSyncUnsubscribed:function(e){t.postAjax({submit:"chimpSyncUnsubscribed",value:e.val()}).done((function(e){e.status?location.reload():NewsletterPro.alertErrors(e.errors)}))},displayOnliActiveProducts:function(e){t.postAjax({submit:"displayOnliActiveProducts",displayOnliActiveProducts:e.val()}).done((function(e){e.status&&location.reload()}))},emptyAddedEmails:function(){t.postAjax({submit:"emptyAddedEmails",emptyAddedEmails:!0}).done((function(e){1==e.status&&location.reload()}))},updateGAnalyticsID:function(e){var n=this,i=e.val();t.postAjax({submit:"updateGAnalyticsID",updateGAnalyticsID:i}).done((function(e){1==e.status?n.elem.ganalyticsIdMessage.empty().show().append('<span class="success-icon">&nbsp;</span>'):n.elem.ganalyticsIdMessage.empty().show().append('<span class="error-icon">&nbsp;</span>'),setTimeout((function(){n.elem.ganalyticsIdMessage.hide()}),5e3)}))},checkIfCampaignIsRunning:function(e){NewsletterPro.showAjaxLoader(e),t.postAjax({submit:"checkIfCampaignIsRunning"}).done((function(e){e.status?alert(e.msg):alert(e.errors.join("\n"))})).always((function(){NewsletterPro.hideAjaxLoader(e)}))},activeGAnalytics:function(e){var n=this;e.is(":checked")?t.postAjax({submit:"activeGAnalytics",activeGAnalytics:!0}).done((function(e){1==e.status&&n.elem.ganalyticsId.prop("disabled",!1)})):t.postAjax({submit:"activeGAnalytics",activeGAnalytics:!1}).done((function(e){1==e.status&&n.elem.ganalyticsId.prop("disabled",!0)}))},universalAnaliytics:function(e){e.is(":checked")?t.postAjax({submit:"universalAnaliytics",universalAnaliytics:!0}):t.postAjax({submit:"universalAnaliytics",universalAnaliytics:!1})},activeCampaign:function(e){var n=this;e.is(":checked")?t.postAjax({submit:"activeCampaign",activeCampaign:!0}).done((function(e){1==e.status&&(NewsletterProComponents.objs.selectedProducts.removeItems(),NewsletterProComponents.objs.productList.element.empty(),n.elem.utm_source.prop("disabled",!1),n.elem.utm_medium.prop("disabled",!1),n.elem.utm_campaign.prop("disabled",!1),n.elem.utm_content.prop("disabled",!1),n.elem.setParams.prop("disabled",!1),n.elem.setParamsDefault.hasClass("disabled")&&n.elem.setParamsDefault.removeClass("disabled"),n.elem.setParamsDefault.attr("onclick","NewsletterProControllers.SettingsController.makeDefaultParameteres();"),n.elem.setParamsSave.hasClass("disabled")&&n.elem.setParamsSave.removeClass("disabled"),n.elem.setParamsSave.attr("onclick","NewsletterProControllers.SettingsController.saveCampaign();"))})):t.postAjax({submit:"activeCampaign",activeCampaign:!1}).done((function(e){1==e.status&&(NewsletterProComponents.objs.selectedProducts.removeItems(),NewsletterProComponents.objs.productList.element.empty(),n.elem.utm_source.prop("disabled",!0),n.elem.utm_medium.prop("disabled",!0),n.elem.utm_campaign.prop("disabled",!0),n.elem.utm_content.prop("disabled",!0),n.elem.setParams.prop("disabled",!0),n.elem.setParamsDefault.hasClass("disabled")||n.elem.setParamsDefault.addClass("disabled"),n.elem.setParamsDefault.prop("onclick",!1),n.elem.setParamsSave.hasClass("disabled")||n.elem.setParamsSave.addClass("disabled"),n.elem.setParamsSave.prop("onclick",!1))}))},makeDefaultParameteres:function(){var e=this;t.postAjax({submit:"makeDefaultParameteres",makeDefaultParameteres:!0}).done((function(t){1==t.status&&(e.elem.setParams.val(t.params),e.elem.utm_source.val(t.campaign.UTM_SOURCE),e.elem.utm_medium.val(t.campaign.UTM_MEDIUM),e.elem.utm_campaign.val(t.campaign.UTM_CAMPAIGN),e.elem.utm_content.val(t.campaign.UTM_CONTENT))}))},saveCampaign:function(){var e=this,n=e.elem.utm_source,i=e.elem.utm_medium,s=e.elem.utm_campaign,a=e.elem.utm_content;n.val(n.val().replace(/[&?]/,"")),i.val(i.val().replace(/[&?]/,"")),s.val(s.val().replace(/[&?]/,"")),a.val(a.val().replace(/[&?]/,"")),t.submitAjax({submit:"saveCampaign",name:"saveCampaign",form:e.elem.campaignForm}).done((function(t){t.status?e.elem.setParamsSaveMessage.empty().show().append('<span class="success-icon">&nbsp;</span>'):!1===t.status&&e.elem.setParamsSaveMessage.empty().show().append('<span class="error-icon">&nbsp;</span>'),setTimeout((function(){e.elem.setParamsSaveMessage.hide()}),5e3)}))}},TemplateController:{init:function(){this.addElement("newsletterTemplateTitle",t("#page-title")).addElement("saveNewsletterTemplateMessage",t("#save-newsletter-template-message")).addElement("viewNewsletterTemplateContent",t("#view-newsletter-template-content")).addElement("newsletterTemplateContent",t("#newsletter-template-content")).addElement("productTemplate",t("#product-template")).addElement("saveProductTemplateMessage",t("#save-product-template-message")).addElement("productTemplateContent",t("#product-template-content")).addElement("viewProductTemplateContent",t("#view-product-template-content")).addElement("deleteImageMessage",t("#delete-image-message")).addElement("deleteImage",t("#images")).addElement("deleteImageEmptyShow",t(".images-empty-show")).addElement("deleteImageEmptyHide",t(".images-empty-hide")).addElement("deleteImageNavigation",t(".images-navigation"))},vars:{},addVariable:function(e,t){return this.vars[e]=t,this},elem:{},addElement:function(e,t){return this.elem[e]=t,this},objs:{},addObject:function(e,t){return this.objs[e]=t,this},viewNewsletterTemplate:function(){var e=this;return t.postAjax({submit:"viewNewsletterTemplate",viewNewsletterTemplate:!0},"html").done((function(n){var i=t(n);e.elem.viewNewsletterTemplateContent.show().empty().append(i),NewsletterPro.modules.createTemplate.updateBoth()}))},saveToggleNewsletterTemplate:function(e){var t=e.find("span");this.elem.newsletterTemplateContent.is(":visible")?(this.saveNewsletterTemplate(),t.html(e.data("name").edit)):(this.elem.newsletterTemplateContent.show(),this.elem.viewNewsletterTemplateContent.hide(),t.html(e.data("name").view))},saveAsNewsletterTemplate:function(e){var n=this,i=prompt(e.data("message"),"");if(""==i||null==i)return!1;t.postAjax({submit:"saveAsNewsletterTemplate",saveAsNewsletterTemplate:i,content:tinyMCE.get("newsletter_template_text").getContent(),title:n.elem.newsletterTemplateTitle.val()}).done((function(e){var t="";e.status?location.reload():t='<p class="error-save">'+e.msg+"</p>",n.elem.saveNewsletterTemplateMessage.show().empty().append(t)}))},changeNewsletterTemplate:function(e){var n=this;t.postAjax({submit:"changeNewsletterTemplate",changeNewsletterTemplate:e.val()}).done((function(e){e.status?location.reload():n.elem.changeNewsletterTemplateMessage.empty().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){n.elem.changeNewsletterTemplateMessage.hide()}),5e3)}))},changeProductTemplate:function(e){var n=this;t.postAjax({submit:"changeProductTemplate",changeProductTemplate:e.val()}).done((function(e){e.status?location.reload():n.elem.changeProductTemplateMessage.empty().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){n.elem.changeProductTemplateMessage.hide()}),5e3)}))},changeProductImageSize:function(e){var n=this;t.postAjax({submit:"changeProductImageSize",changeProductImageSize:e.val()}).done((function(e){1==e.status?location.reload():n.elem.changeProductImageSizeMessage.empty().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){n.elem.changeProductImageSizeMessage.hide()}),5e3)}))},changeProductCurrency:function(e){var n=this;t.postAjax({submit:"changeProductCurrency",changeProductCurrency:e.val()}).done((function(e){e.status?location.reload():n.elem.changeProductCurrencyMessage.empty().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){n.elem.changeProductCurrencyMessage.hide()}),5e3)}))},changeProductLanguage:function(e){t.postAjax({submit:"changeProductLanguage",changeProductLanguage:e}).done((function(e){e.status?location.reload():self.changeProductLanguageMessage.empty().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){self.elem.changeProductLanguageMessage.hide()}),5e3)}))},saveProductNumberPerRow:function(e){var n=this,i=parseInt(e.val());i=/^\d{1}$/.test(i)?parseInt(i):3,e.val(i),t.postAjax({submit:"saveProductNumberPerRow",saveProductNumberPerRow:e.val()}).done((function(t){1==t.status?n.elem.saveProductNumberPerRowMessage.empty().show().append('<span class="success-icon">&nbsp;</span>'):n.elem.saveProductNumberPerRowMessage.empty().show().append('<span class="error-msg">'+t.msg+"</span>"),setTimeout((function(){n.elem.saveProductNumberPerRowMessage.hide()}),5e3),"undefined"!==NewsletterProComponents.objs.selectedProducts&&(NewsletterProComponents.objs.selectedProducts.columns=e.val())}))},toggleShowProductTpl:function(e){this.elem.productTemplate.is(":visible")?(this.elem.productTemplate.slideUp("slow"),e.find("span.text").empty().html(e.data("name").show)):(this.elem.productTemplate.css("display","inline-block").hide().slideDown("slow"),e.find("span.text").empty().html(e.data("name").hide),setTimeout((function(){var e=tinyMCE.get("product_template_text");e&&e.setContent(e.getContent())}),250))},saveProductTemplate:function(){var e,n=this;e=NewsletterPro.dataStorage.get("is_product_template")?t("#product-template-content-textarea").val():tinyMCE.get("product_template_text").getContent(),NewsletterPro.modules.selectProducts.updateProductTemplateView(e),t.postAjax({submit:"saveProductTemplate",saveProductTemplate:e,numberPerRow:NewsletterPro.dataStorage.data.product_tpl_nr}).done((function(e){var t="";t=e.type?'<p class="success-save">'+e.message+"</p>":'<p class="error-save">'+e.message+"</p>",n.elem.saveProductTemplateMessage.show().empty().append(t),NewsletterPro.dataStorage.set("product_template",e.content),NewsletterPro.components.Product.changeTemplate(e.content)})).fail((function(e){n.elem.saveProductTemplateMessage.show().empty().append('<p class="error-save">Save failure</p>')})).always((function(e){n.viewProductTemplate().always((function(){n.elem.productTemplateContent.hide()}))}))},saveToggleProductTemplate:function(e){var t=e.find("span");this.elem.productTemplateContent.is(":visible")?(this.saveProductTemplate(),t.html(e.data("name").edit)):(this.elem.productTemplateContent.show(),this.elem.viewProductTemplateContent.hide(),t.html(e.data("name").view))},viewProductTemplate:function(){var e=this;return selectProducts=NewsletterPro.modules.selectProducts,t.postAjax({submit:"getProductContent",getProductContent:!0},"html").done((function(e){"undefined"!==NewsletterProComponents.objs.selectedProducts&&(NewsletterProComponents.objs.selectedProducts.template=e)})),t.postAjax({submit:"viewProductTemplate",viewProductTemplate:!0},"html").done((function(t){e.elem.viewProductTemplateContent.show().empty().append(t+'<div style="clear: both; height: 7px;">&nbsp</div>'),selectProducts.refreshProducts()}))},loadProductTemplate:function(){return t.postAjax({submit:"getProductContent",getProductContent:!0},"html").done((function(e){"undefined"!==NewsletterProComponents.objs.selectedProducts&&(NewsletterProComponents.objs.selectedProducts.template=e)})).promise()},isProductTemplateLoaded:function(){return""!=NewsletterProComponents.objs.selectedProducts.template},saveAsProductTemplate:function(e){var n,i=this,s=NewsletterPro.modules.selectProducts.vars.nbProducts,a=prompt(e.data("message"),"");if(""==a||null==a)return!1;n=NewsletterPro.dataStorage.get("is_product_template")?t("#product-template-content-textarea").val():tinyMCE.get("product_template_text").getContent(),t.postAjax({submit:"saveAsProductTemplate",saveAsProductTemplate:a,content:n,numberPerRow:s.val()}).done((function(e){var t="";if(e.status){NewsletterPro.modules.selectProducts.vars.templateDataSource.sync();var n=e.full_content;NewsletterPro.dataStorage.set("product_template",n)}else t='<p class="error-save">'+e.msg+"</p>";i.elem.saveProductTemplateMessage.show().empty().append(t)}))},deleteImage:function(e,n){var i=this;t.postAjax({submit:"deleteImage",deleteImage:n}).done((function(t){t.status?(e.parent().parent().remove(),0==i.elem.deleteImage.children().length&&(i.elem.deleteImageEmptyShow.show(),i.elem.deleteImageEmptyHide.hide(),i.elem.deleteImageNavigation.hide())):i.elem.deleteImageMessage.empty().show().append('<span class="error-msg">'+t.msg+"</span>"),setTimeout((function(){i.elem.deleteImageMessage.hide()}),5e3)}))},showProductHelp:function(){var e=this,n=NewsletterProControllers.l;void 0===e.productTemplateWin&&(e.productTemplateWin=new gkWindow({width:640,height:540,title:n("view available variables product"),className:"newsletter-help-win",show:function(e){},close:function(e){},content:function(n){return t.postAjax({submit:"showProductHelp"},"html").done((function(t){void 0===e.showProductHelpContent&&(e.showProductHelpContent=e.showProductHelpContent||t,n.setContent(t))})),""}})),e.productTemplateWin.show()},showNewsletterHelp:function(){var e=this,n=NewsletterProControllers.l;void 0===e.newsletterTemplateWin&&(e.newsletterTemplateWin=new gkWindow({width:640,height:540,title:n("view available variables"),className:"newsletter-help-win",show:function(e){},close:function(e){},content:function(n){return t.postAjax({submit:"showNewsletterHelp"},"html").done((function(t){void 0===e.showNewsletterHelpContent&&(e.showNewsletterHelpContent=e.showNewsletterHelpContent||t,n.setContent(t))})),""}})),e.newsletterTemplateWin.show()}},NavigationController:{init:function(){NewsletterProControllers.l;this.addElement("categoriesList",t("#categories-list")).addElement("categoriesListLi",this.elem.categoriesList.find("li")).addElement("productList",t("#product-list")).addElement("productListDsiplayImages",t("#display-product-image-container")).addElement("productListDsiplayImagesMessage",t("#display-product-image-message")).addElement("toggleCategoriesButton",t("#toggle-categories")).addElement("productSearch",t("#poduct-search")).addElement("addedList",t("#added-list")),this.addVariable("categoriesListWidth",parseFloat(this.elem.categoriesList.width())/parseFloat(this.elem.categoriesList.parent().width())*100+"%").addVariable("productListMarginLeft",parseFloat(this.elem.productList.css("margin-left"))/parseFloat(this.elem.productList.parent().css("width"))*100+"%"),void 0===t.getCookie("toggleCategories")||"false"==t.getCookie("toggleCategories")?this.addVariable("categoriesVisibility",!0):(this.elem.categoriesList.addClass("categories-list-slide-toggle-hide"),this.elem.productList.addClass("product-list-slide-toggle-hide"),this.elem.productListDsiplayImages.css("margin-left",0),this.addVariable("categoriesVisibility",!1),this.elem.toggleCategoriesButton.css("background-position","bottom left")),"#viewImported"==window.location.hash&&(window.location.hash="#sendNewsletters",this.goToStep(5,this.elem.addedList))},vars:{},addVariable:function(e,t){return this.vars[e]=t,this},elem:{},addElement:function(e,t){return this.elem[e]=t,this},objs:{},addObject:function(e,t){return this.objs[e]=t,this},toggleCategories:function(e){var n=this;1==n.vars.categoriesVisibility?(n.elem.categoriesListLi.css("width",n.elem.categoriesListLi.width()+"px"),n.elem.categoriesList.css("overflow","hidden"),n.elem.productList.animate({"margin-left":"10px"},500),n.elem.productListDsiplayImages.animate({"margin-left":"10px"},500),n.elem.categoriesList.animate({width:"1px","padding-left":"1px"},500,(function(){n.vars.categoriesVisibility=!1,e.css("background-position","bottom left"),t.setCookie("toggleCategories",!0)}))):(n.elem.productList.animate({"margin-left":n.vars.productListMarginLeft},500),n.elem.productListDsiplayImages.animate({"margin-left":n.vars.productListMarginLeft},500),n.vars.categoriesVisibility=!0,n.elem.categoriesList.animate({width:n.vars.categoriesListWidth,"padding-left":0},500,(function(){n.elem.categoriesList.css("overflow","visible"),e.css("background-position","top left"),n.elem.categoriesListLi.css("width","auto"),t.setCookie("toggleCategories",!1)})))},displayProductImage:function(e){var n=this;t.postAjax({submit:"displayProductImage",displayProductImage:e.prop("checked")}).done((function(e){e.status?location.reload():n.elem.productListDsiplayImagesMessage.empty().show().append('<span class="error-msg">'+e.msg+"</span>"),setTimeout((function(){n.elem.productListDsiplayImagesMessage.hide()}),5e3)}))},goToStep:function(e,n){n=n||t("#content"),NewsletterProComponents.objs.tabItems.trigger("tab_newsletter_"+e),t("html, body").animate({scrollTop:n.offset().top},1e3)},viewImported:function(){NewsletterPro.modules.sendNewsletters.vars.added.sync().done((function(e){NewsletterProComponents.objs.tabItems.trigger("tab_newsletter_5"),t("html, body").animate({scrollTop:parseInt(t("#added-list").offset().top)-120},1e3)}))}},UpgradeController:{init:function(){NewsletterProControllers.l},execute:function(e){var n=NewsletterPro,i=t("#update-module-response");n.showAjaxLoader(e),i.hide().removeClass("error").removeClass("success"),t.postAjax({submit:"updateModule"}).done((function(t){if(t.status){var s=t.message.join("<br>"),a=5;i.addClass("success").show(),i.html(s.replace("%s",a));var r=setInterval((function(){i.html(s.replace("%s",--a)),a<=0&&(location.reload(),clearInterval(r))}),1e3);e.hide()}else{var o=n.displayAlert(t.errors.join("<br>"));i.addClass("error").html(o).show()}})).always((function(){n.hideAjaxLoader(e)}))},clearUpdateWarnings:function(e){var n=NewsletterPro;t.postAjax({submit:"clearUpdateWarnings"}).done((function(e){if(!e.status)return n.alertErrors(e.errors);t(".pqnp-update-warning-message").hide()}))}},ClearCacheController:{init:function(){NewsletterProControllers.l},clear:function(e){var n=NewsletterPro;t.updateConfiguration("SHOW_CLEAR_CACHE",0).done((function(e){e.success?t("#clear-cache-box").hide():n.alertErrors(e.errors)}))}}},NewsletterProControllers.init()}).call(this,n(2),n(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.ourModules"),NewsletterPro.modules.ourModules={dom:null,init:function(e){return this.ready((function(e){})),this},ready:function(t){var n=this;e(document).ready((function(){n.dom={},t(n.dom)}))},each:function(e,t){for(var n in e)t(e[n],n)}}.init(NewsletterPro)}).call(this,n(2))},function(module,exports,__webpack_require__){(function($){NewsletterPro.namespace("components.SubscriptionTemplate"),NewsletterPro.components.SubscriptionTemplate=function SubscriptionTemplate(cfg){if(!(this instanceof SubscriptionTemplate))return new SubscriptionTemplate(cfg);var box=NewsletterPro,l=box.translations.l(box.translations.components.SubscriptionTemplate),self=this;box.components.LanguageSelect.updateLanguages();var id=cfg.id,tiny=cfg.tiny(),tinySubscribeMessage=cfg.tinySubscribeMessage(),tinyEmailSubscribeVoucherMessage=cfg.tinyEmailSubscribeVoucherMessage(),tinyEmailSubscribeConfirmationMessage=cfg.tinyEmailSubscribeConfirmationMessage(),tinyEmailUnsubscribeConfirmationMessage=cfg.tinyEmailUnsubscribeConfirmationMessage(),dom={cssStyle:cfg.cssStyle,cssGlobalStyle:cfg.cssGlobalStyle,view:cfg.view,viewInANewWindow:cfg.viewInANewWindow,settings:cfg.settings,sliders:cfg.sliders,saveBtn:cfg.saveBtn,saveAsBtn:cfg.saveAsBtn,saveMessage:cfg.saveMessage},callbackOnSave=cfg.onSave,callbackAfterSave=cfg.afterSave,callbackAfterSaveAs=cfg.afterSaveAs,callbackOnChange=cfg.onChange,callbackOnSetContent=cfg.onSetContent,callbackOnSettingsChange=cfg.onSettingsChange,callbackAfterSettingsChange=cfg.afterSettingsChange,callbackOnTemplateChange=cfg.onTemplateChange,errors=[];for(var key in cfg.dom)dom[key]=cfg.dom[key];var fs=NewsletterPro.modules.frontSubscription,settingsOnChange={displayGender:dom.settings.displayGender,displayFirstName:dom.settings.displayFirstName,displayLastName:dom.settings.displayLastName,displayLanguage:dom.settings.displayLanguage,displayBirthday:dom.settings.displayBirthday,displayListOfInterest:dom.settings.displayListOfInterest,displaySubscribeMessage:dom.settings.displaySubscribeMessage,listOfInterestType:dom.settings.listOfInterestType,allowMultipleTimeSubscription:dom.settings.allowMultipleTimeSubscription};$.each(settingsOnChange,(function(e,t){t.on("change",(function(t){var n=$(t.currentTarget),i=parseInt(n.val());switch(e){case"displayGender":saveDisplayGender(i);break;case"displayFirstName":saveDisplayFirstName(i);break;case"displayLastName":saveDisplayLastName(i);break;case"displayLanguage":saveDisplayLanguage(i);break;case"displayBirthday":saveDisplayBirthday(i);break;case"displayListOfInterest":saveDisplayListOfInterest(i);break;case"displaySubscribeMessage":saveDisplaySubscribeMessage(i);break;case"listOfInterestType":saveListOfInterestType(i);break;case"allowMultipleTimeSubscription":saveAllowMultipleTimeSubscription(i)}}))})),dom.settings.showOnPages.on("change",(function(){self.setSetting("show_on_pages",$(this).val())})),dom.settings.cookieLifetime.on("change",(function(){var value=$(this).val(),mathString=value.replace(/[^\d\/\*\+\-\.\,]+/g," "),val=value;try{val=eval(mathString),"undefined"===val&&(val=366)}catch(e){val=366}var floatString=parseFloat(val).toFixed(10).replace(/.0+$/,""),endValue=parseFloat(floatString);dom.settings.cookieLifetimeSeconds.html(Math.round(60*endValue*60*24)),$(this).val(endValue),self.setSetting("cookie_lifetime",parseFloat(endValue))})),dom.settings.startTimer.on("change",(function(){self.setSetting("start_timer",$(this).val())})),dom.settings.whenToShow.on("change",(function(){self.setSetting("when_to_show",$(this).val())})),dom.settings.termsAndConditionsUrl.on("change",(function(){self.setSetting("terms_and_conditions_url",$(this).val())})),dom.settings.activateTemplate.on("click",(function(){saveActivateTemplate(1)})),dom.saveBtn.on("click",(function(e){return save()})),dom.saveAsBtn.on("click",(function(e){return saveAs()})),box.components.LanguageSelect.getInstanceById("#subscription-template-language").subscribe("change",(function(e){refreshTinySize(e.lang.id_lang)}));var mandatoryFields=box.dataStorage.get("mandatory_fields");mandatoryFields.indexOf("firstname")>-1?dom.firstNameMandatory.prop("checked",!0):dom.firstNameMandatory.prop("checked",!1),mandatoryFields.indexOf("lastname")>-1?dom.lastNameMandatory.prop("checked",!0):dom.lastNameMandatory.prop("checked",!1);var setMandatoryFields=function(e,t){$.postAjax({submitSubscriptionController:"ajaxSetMandatory",id_template:id,field:e,checked:Number(t)}).done((function(e){e.status||box.alertErrors(e.errors)}))};function getContent(){return{tiny:getTinyContent(),tinySubscribeMessage:getTinySubscribeMessageContent(),tinyEmailSubscribeVoucherMessage:getTinyEmailSubscribeVoucherMessageContent(),tinyEmailSubscribeConfirmationMessage:getTinyEmailSubscribeConfirmationMessageContent(),tinyEmailUnsubscribeConfirmationMessage:getTinyEmailUnsubscribeConfirmationMessageContent(),css_style:getCssStyleContent(),css_style_global:getCssGlobalStyleContent()}}function setContent(e,t){"function"==typeof callbackOnChange&&callbackOnChange(self),"function"==typeof callbackOnSetContent&&callbackOnSetContent(self,e,t)}function save(){return"function"==typeof callbackOnSave&&callbackOnSave(self),$.postAjax({submitSubscriptionController:"ajaxSaveTemplate",id_template:id,value:getContent(),id_lang:box.dataStorage.get("id_selected_lang")}).done((function(e){"function"==typeof callbackAfterSave&&callbackAfterSave(self,e),e.status?(writeMessage(!0,[e.message]),setView(e.view),refreshTinyCss()):box.alertErrors(e.errors)}))}function saveAs(){"function"==typeof callbackOnSave&&callbackOnSave(self);var e={templateId:id,content:getContent(),settings:getSettings(),sliders:getSlidersValues()},t=prompt(l("insert the template name"));if(""==$.trim(t)||null==t)return!1;$.postAjax({submitSubscriptionController:"ajaxSaveAsTemplate",name:t,value:e,id_lang:box.dataStorage.get("id_selected_lang")}).done((function(e){"function"==typeof callbackAfterSave&&callbackAfterSave(self,e),"function"==typeof callbackAfterSave&&callbackAfterSaveAs(self,e),e.status?(setDataStorage({id:e.id_template,name:e.name}),writeMessage(!0,[e.message]),setView(e.view),refreshTinyCss()):box.alertErrors(e.errors)}))}function getSlidersValues(){var e=box.dataStorage.get("subscription_template_current_type"),t=dom.sliders.sliderTemplateWidth.getValue();return e==fs.VALUE_PERCENT&&(t=String(t+"%")),{body_width:t,body_min_width:dom.sliders.sliderTemplateMaxMinWidth.getValueMin(),body_max_width:dom.sliders.sliderTemplateMaxMinWidth.getValueMax(),body_top:dom.sliders.sliderTemplateTop.getValue()}}function changeMandatoryFields(e){box.dataStorage.get("mandatory_fields",e),e.indexOf("firstname")>-1?dom.firstNameMandatory.prop("checked",!0):dom.firstNameMandatory.prop("checked",!1),e.indexOf("lastname")>-1?dom.lastNameMandatory.prop("checked",!0):dom.lastNameMandatory.prop("checked",!1)}function setTemplateById(e){var t=box.dataStorage.get("id_selected_lang");$.postAjax({submitSubscriptionController:"ajaxSetTemplateById",id:e,id_lang:t}).done((function(e){if(e.status){errors=[];var t=e.template;id=t.id,setDataStorage({id:t.id,name:t.name}),setTinyContent(t.content),setTinySubscribeMessageContent(t.subscribe_message),setTinyEmailSubscribeVoucherMessageContent(t.email_subscribe_voucher_message),setTinyEmailSubscribeConfirmationMessageContent(t.email_subscribe_confirmation_message),setTinyEmailUnsubscribeConfirmationMessageContent(t.email_unsubscribe_confirmation_message),refreshTinySize(),setCssStyle(t.css_style),setCssGlobalStyle(t.css_style_global),setView(t.view),setDisplayGender(t.display_gender),setDisplayFirstname(t.display_firstname),setDisplayLastname(t.display_lastname),setDisplayLanguage(t.display_language),setDisplayBirthday(t.display_birthday),setDisplayListOfInterest(t.display_list_of_interest),setDisplaySubscribeMessage(t.display_subscribe_message),setListOfInterestType(t.list_of_interest_type),setAllowMultipleTimeSubscription(t.allow_multiple_time_subscription),setVoucher(t.voucher),changeMandatoryFields(t.mandatory_fields),setInput(dom.settings.termsAndConditionsUrl,t.terms_and_conditions_url),setInput(dom.settings.showOnPages,t.show_on_pages),setInput(dom.settings.cookieLifetime,t.cookie_lifetime),setInput(dom.settings.startTimer,t.start_timer),setInput(dom.settings.whenToShow,t.when_to_show),setActivateTemplate(t.active),setSliderValueWidth(dom.sliders.sliderTemplateWidth,t.body_width),setSliderRangeValue(dom.sliders.sliderTemplateMaxMinWidth,t.body_min_width,t.body_max_width),setSliderTopValue(dom.sliders.sliderTemplateTop,t.body_top),"function"==typeof callbackOnTemplateChange&&callbackOnTemplateChange(self),errors.length>0&&box.alertErrors(errors)}else box.alertErrors(e.errors)}))}function setInput(e,t){e.val(t)}function setSliderTopValue(e,t){fs.setStorageBodyInfo("body_top",t),e.setValue(parseInt(t))}function setSliderValueWidth(e,t){box.dataStorage.set("subscription_template_current_type",fs.getBodyWidthType(t));var n=box.dataStorage.get("subscription_template_current_type");fs.setStorageBodyInfo("body_width",t),fs.setSliderTemplateWidth(gkSlider(fs.getSliderTemplateWidthConfig(n))),fs.setCheckboxType(n),e.setValue(parseInt(t))}function setSliderRangeValue(e,t,n){t=parseInt(t),n=parseInt(n);fs.setStorageBodyInfo("body_min_width",t),fs.setStorageBodyInfo("body_max_width",n),e.setValueMin(t),e.setValueMax(n)}function refreshTinySize(e){void 0===e&&(e=box.dataStorage.get("id_selected_lang")),setTimeout((function(){parseTiny((function(t,n){Number(t)===Number(e)&&n.setContent(n.getContent())})),parseTinySubscribeMessage((function(t,n){Number(t)===Number(e)&&n.setContent(n.getContent())})),parseTinyEmailSubscribeVoucherMessage((function(t,n){Number(t)===Number(e)&&n.setContent(n.getContent())})),parseTinyEmailSubscribeConfirmationMessage((function(t,n){Number(t)===Number(e)&&n.setContent(n.getContent())})),parseTinyEmailUnsubscribeConfirmationMessage((function(t,n){Number(t)===Number(e)&&n.setContent(n.getContent())}))}),250)}function setDataStorage(e){box.dataStorage.add("subscription_template_id",e.id),box.dataStorage.add("subscription_template",e.name)}function setTinyContent(e){parseTiny((function(t,n){if(void 0!==e[t]){var i="string"==typeof e[t]?e[t]:"";n.setContent(i)}else error.push(l("error on set tiny content"))}))}function setTinySubscribeMessageContent(e){parseTinySubscribeMessage((function(t,n){if(void 0!==e[t]){var i="string"==typeof e[t]?e[t]:"";n.setContent(i)}else error.push(l("error on set tiny content"))}))}function setTinyEmailSubscribeVoucherMessageContent(e){parseTinyEmailSubscribeVoucherMessage((function(t,n){if(void 0!==e[t]){var i="string"==typeof e[t]?e[t]:"";n.setContent(i)}else error.push(l("error on set tiny content"))}))}function setTinyEmailSubscribeConfirmationMessageContent(e){parseTinyEmailSubscribeConfirmationMessage((function(t,n){if(void 0!==e[t]){var i="string"==typeof e[t]?e[t]:"";n.setContent(i)}else error.push(l("error on set tiny content"))}))}function setTinyEmailUnsubscribeConfirmationMessageContent(e){parseTinyEmailUnsubscribeConfirmationMessage((function(t,n){if(void 0!==e[t]){var i="string"==typeof e[t]?e[t]:"";n.setContent(i)}else error.push(l("error on set tiny content"))}))}function setCssStyle(e){dom.cssStyle.val(e)}function setCssGlobalStyle(e){dom.cssGlobalStyle.val(e)}function setView(e){dom.view.attr("src",e),dom.viewInANewWindow.attr("href",e)}function setDisplayGender(e){setSettingsItems("displayGender",Boolean(e))}function setDisplayFirstname(e){setSettingsItems("displayFirstName",Boolean(e))}function setDisplayLastname(e){setSettingsItems("displayLastName",Boolean(e))}function setDisplayLanguage(e){setSettingsItems("displayLanguage",Boolean(e))}function setDisplayBirthday(e){setSettingsItems("displayBirthday",Boolean(e))}function setDisplayListOfInterest(e){setSettingsItems("displayListOfInterest",Boolean(e))}function setDisplaySubscribeMessage(e){setSettingsItems("displaySubscribeMessage",Boolean(e))}function setListOfInterestType(e){setSettingsItems("listOfInterestType",Boolean(e))}function setAllowMultipleTimeSubscription(e){setSettingsItems("allowMultipleTimeSubscription",Boolean(e))}function setActivateTemplate(e){Boolean(e)?dom.settings.activateTemplate.parent().hide():dom.settings.activateTemplate.parent().show()}function setVoucher(e){dom.settings.voucher.val(e)}function parseTiny(e){$.each(tiny,(function(t,n){e(t,n)}))}function parseTinySubscribeMessage(e){$.each(tinySubscribeMessage,(function(t,n){e(t,n)}))}function parseTinyEmailSubscribeVoucherMessage(e){$.each(tinyEmailSubscribeVoucherMessage,(function(t,n){e(t,n)}))}function parseTinyEmailSubscribeConfirmationMessage(e){$.each(tinyEmailSubscribeConfirmationMessage,(function(t,n){e(t,n)}))}function parseTinyEmailUnsubscribeConfirmationMessage(e){$.each(tinyEmailUnsubscribeConfirmationMessage,(function(t,n){e(t,n)}))}function getTinyContent(){var e={};return parseTiny((function(t,n){e[t]=n.getContent()})),e}function getTinySubscribeMessageContent(){var e={};return parseTinySubscribeMessage((function(t,n){e[t]=n.getContent()})),e}function getTinyEmailSubscribeVoucherMessageContent(){var e={};return parseTinyEmailSubscribeVoucherMessage((function(t,n){e[t]=n.getContent()})),e}function getTinyEmailSubscribeConfirmationMessageContent(){var e={};return parseTinyEmailSubscribeConfirmationMessage((function(t,n){e[t]=n.getContent()})),e}function getTinyEmailUnsubscribeConfirmationMessageContent(){var e={};return parseTinyEmailUnsubscribeConfirmationMessage((function(t,n){e[t]=n.getContent()})),e}function refreshTinyCss(){parseTiny((function(e,t){t.refreshStyle()})),parseTinySubscribeMessage((function(e,t){t.refreshStyle()})),parseTinyEmailSubscribeVoucherMessage((function(e,t){t.refreshStyle()})),parseTinyEmailSubscribeConfirmationMessage((function(e,t){t.refreshStyle()})),parseTinyEmailUnsubscribeConfirmationMessage((function(e,t){t.refreshStyle()}))}function getCssStyleContent(){return dom.cssStyle.val()}function getCssGlobalStyleContent(){return dom.cssGlobalStyle.val()}function getSettingsItems(e){var t={yes:null,no:null};return $.each(dom.settings[e],(function(e,n){n=$(n),parseInt(n.val())?t.yes=n:t.no=n})),t}function setSettingsItems(e,t){var n=getSettingsItems(e);t?(n.yes.prop("checked",!0),n.yes.attr("checked","checked"),n.no.prop("checked",!1),n.no.removeAttr("checked")):(n.no.prop("checked",!0),n.no.prop("checked","checked"),n.yes.prop("checked",!1),n.yes.removeAttr("checked"))}function saveDisplayGender(e){changeSetting("displayGender","saveDisplayGender",e)}function saveDisplayFirstName(e){changeSetting("displayFirstName","saveDisplayFirstName",e)}function saveDisplayLastName(e){changeSetting("displayLastName","saveDisplayLastName",e)}function saveDisplayLanguage(e){changeSetting("displayLanguage","saveDisplayLanguage",e)}function saveDisplayBirthday(e){changeSetting("displayBirthday","saveDisplayBirthday",e)}function saveDisplayListOfInterest(e){changeSetting("displayListOfInterest","saveDisplayListOfInterest",e)}function saveDisplaySubscribeMessage(e){changeSetting("displaySubscribeMessage","saveDisplaySubscribeMessage",e)}function saveListOfInterestType(e){changeSetting("listOfInterestType","saveListOfInterestType",e)}function saveAllowMultipleTimeSubscription(e){changeSetting("allowMultipleTimeSubscription","saveAllowMultipleTimeSubscription",e)}function saveActivateTemplate(e){changeSetting("activateTemplate","saveActivateTemplate",e).done((function(t){setActivateTemplate(e)}))}function changeSetting(e,t,n){return"function"==typeof callbackOnSettingsChange&&callbackOnSettingsChange(self,n),$.postAjax({submitSubscriptionController:t,id_template:id,value:n}).done((function(t){t.status||n.alertErrors(t.errors),"function"==typeof callbackAfterSettingsChange&&callbackAfterSettingsChange(self,e,t,n)}))}function getSettings(){return{display_gender:getSettingsValue(dom.settings.displayGender),display_firstname:getSettingsValue(dom.settings.displayFirstName),display_lastname:getSettingsValue(dom.settings.displayLastName),display_language:getSettingsValue(dom.settings.displayLanguage),display_birthday:getSettingsValue(dom.settings.displayBirthday),display_list_of_interest:getSettingsValue(dom.settings.displayListOfInterest),display_subscribe_message:getSettingsValue(dom.settings.displaySubscribeMessage),list_of_interest_type:getSettingsValue(dom.settings.listOfInterestType),allow_multiple_time_subscription:getSettingsValue(dom.settings.allowMultipleTimeSubscription),voucher:dom.settings.voucher.val(),show_on_pages:dom.settings.showOnPages.val(),when_to_show:dom.settings.whenToShow.val(),start_timer:dom.settings.startTimer.val(),cookie_lifetime:dom.settings.cookieLifetime.val()}}function getSettingsValue(e){return $.grep(e,(function(e){return 1==parseInt($(e).val())&&1==$(e).prop("checked")})).length>0?1:0}function writeMessage(e,t){switch(e){case!0:dom.saveMessage.show().html('<p class="success-save">'+t.join("<br>")+"</p>"),setTimeout((function(){dom.saveMessage.hide()}),5e3);break;case!1:errors()}}dom.firstNameMandatory.on("change",(function(){setMandatoryFields("firstname",$(this).is(":checked"))})),dom.lastNameMandatory.on("change",(function(){setMandatoryFields("lastname",$(this).is(":checked"))})),this.id=id,this.dom=dom,this.tiny=tiny,this.setTemplateById=function(e){return setTemplateById(e)},this.getContent=function(){return getContent()},this.setContent=function(e,t){return setContent(e,t)},this.save=function(){return save()},this.saveAs=function(e){return saveAs()},this.setView=function(e){return setView(e)},this.refreshTinySize=function(e){return refreshTinySize(e)},this.setSettings=function(e){return setSettings(e)},this.setSetting=function(e,t){return $.postAjax({submitSubscriptionController:"ajaxSetSetting",id_template:id,field:e,value:t}).done((function(e){e.status||box.alertErrors(e.errors)}))},this.setSliderConfiguration=function(e,t){dom.sliders[e]=t}}}).call(this,__webpack_require__(2))},function(e,t,n){(function(e){NewsletterPro.namespace("modules.frontSubscription"),NewsletterPro.modules.frontSubscription={tinyWasInit:!1,domSave:null,dom:null,box:null,vars:{},events:{},tabName:"tab_newsletter_15",tinySetupArray:[],initTinyCallback:function(e,t){this.tinySetupArray.push(e)},onTabShow:function(){},addVar:function(e,t){this.vars[e]=t},getVar:function(e){return!!this.vars.hasOwnProperty(e)&&this.vars[e]},isTinyInit:function(){return this.tinyWasInit},initTiny:function(){var t=this;return this.tinyInitDfd=e.Deferred(),this.tinyWasInit=!0,setTimeout((function(){var e="Deffered was never resolved.";"function"==typeof t.tinyInitDfd.state?"resolved"!==t.tinyInitDfd.state()&&(t.tinyInitDfd.resolve(),console.warn(e)):"function"==typeof t.tinyInitDfd.isResolved&&(t.tinyInitDfd.isResolved()||(t.tinyInitDfd.resolve(),console.warn(e)))}),1e4),this.tinySetupArray.length>0&&e.each(this.tinySetupArray,(function(e,t){tinySetup(t)})),this.tinyInitDfd.promise()},init:function(t){var n,i,s,a,r,o,l,d,c,u,h,p,m,f,_,g,v,y,b,w,M=this.VALUE_PX=1,k=this.VALUE_PERCENT=0,L=this,T=null,S=window.NewsletterProComponents,D={},Y={},x={},P=[];function C(n){e(".np-subscription-cross span").removeClass("selected"),e("span."+n).addClass("selected"),e.updateConfiguration("CROSS_TYPE_CLASS",n).done((function(e){e.success?t.dataStorage.set("configuration.CROSS_TYPE_CLASS",n):t.alertErrors(e.errors)}))}function j(e){D=e,void 0!==b&&b.setSliderConfiguration("sliderTemplateWidth",D)}function N(e,n){dataObj=E(),dataObj.hasOwnProperty(e)&&(dataObj[e]=n),t.dataStorage.set("subscription_template_body_info",dataObj)}function E(){return t.dataStorage.get("subscription_template_body_info")}function H(e){return/\%/.test(e)?k:M}function I(t){L.dom.sliderTemplateWidthType.filter((function(n,i){return i=e(i),parseInt(i.prop("value"))==parseInt(t)})).prop("checked",!0)}L.box=t,L.ready((function(P){L.dom=P,n=L.l=NewsletterPro.translations.l(NewsletterPro.translations.modules.frontSubscription),a={url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=getListOfInterest&id_lang="+t.dataStorage.get("id_current_lang"),dataType:"json"},t.dataStorage.set("id_selected_lang",parseInt(t.dataStorage.get("id_current_lang"))),t.components.LanguageSelect.initBySelection(e(".gk_lang_select")),t.components.LanguageSelect.initBySelection(P.listOfInterestTemplate.find(".gk_lang_select")),t.components.LanguageSelect.clickEvent=function(n,i){if(void 0!==m){var s=m.getLastItem();s&&(idTab=s.attr("id"),"tab_subscription_template-template_1"==idTab&&function(t,n){t=parseInt(t),n=parseInt(n),e.postAjax({submitSubscriptionController:"ajaxGetViewLink",id_template:t,id_lang:n}).done((function(e){e.status&&b.setView(e.view)}))}(t.dataStorage.get("subscription_template_id"),n.id_lang))}},L.dom.subscriptionTemplateView.on("load",(function(e){var t=m.lastItem;t.length>0&&"tab_subscription_template-template_1"==t.attr("id")&&L.resizeView()}));new t.components.LanguageSelect({selector:P.frontSubscriptionLang,languages:t.dataStorage.get("all_languages"),click:function(e,t){!function(e){a.url=a.url.replace(/\&id_lang=\d+/,"&id_lang="+e)}(e.id_lang),s.sync()}});i=new gk.data.Model({id:"id_newsletter_pro_list_of_interest"}),s=L.listOfInterestDataSource=new gk.data.DataSource({pageSize:15,transport:{read:a,update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=updateListOfInterestRecord&id",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=deleteListOfInterestRecord&id",type:"POST",dateType:"json",success:function(e,t){e||alert(n("delete record error"))},error:function(e,t){alert(n("delete record error"))},complete:function(e,t){}}},schema:{model:i},trySteps:2,errors:{read:function(e,t,n){s.syncStepAvailableAdd(3e3,(function(){s.sync()}))}}}),r=P.listOfInterest.gkGrid({dataSource:s,selectable:!1,currentPage:1,pageable:!0,template:{active:function(t,n){var i=e("<div></div>"),s=B(t,"active",{data:t.data});return i.append(s),i},actions:function(i){var s=e("<div></div>"),a=e("#delete-loi-item").gkButton({name:"delete",title:n("delete"),className:"btn btn-default btn-margin pull-right delete-loi-item",item:i,command:"delete",confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){return confirm(n("delete record confirm"))})),icon:'<i class="icon icon-trash-o"></i> '});s.append(a);var r=e("#update-loi-item").gkButton({name:"update",title:n("update"),className:"btn btn-default btn-margin pull-right update-loi-item",item:i,click:function(){var n,s,a;c.show(),n=P.loiUpdateInputs,s=i.data.id,a=i.data,e.each(n,(function(t,n){var i=(n=e(n)).attr("name").match(/\d+$/),s=null!==i?i[0]:0;a.id_lang==s&&n.val(a.name)})),e.postAjax({submitSubscriptionController:"getListOfInterestNameLang",id:s}).done((function(i){if(i.status){var s=i.name;e.each(n,(function(t,n){var i=(n=e(n)).attr("name").match(/\d+$/),a=null!==i?i[0]:0;s.hasOwnProperty(a)&&n.val(s[a])}))}else t.alertErrors(i.errors)})),P.btnPosition.val(i.data.position),T=i},icon:'<i class="icon icon-save"></i> '});return s.append(r),s}}}),d=new gkWindow({width:400,title:n("add"),className:"add-new-listofinterest-window",show:function(e){},hide:function(e){},content:function(e){return P.listOfInterestAddNew.find('[name^="loi_input_"]').val(""),P.listOfInterestAddNew}}),c=new gkWindow({width:400,title:n("update"),className:"update-listofinterest-window",show:function(e){},hide:function(e){},content:function(e){return P.listOfInterestUpdate}});r.addFooter((function(t){return o=e('<div style="float: right;"></div>'),l=e("#add-new-listofinterest").gkButton({title:n("add"),name:"add-new-listofinterest",className:"add-new-listofinterest",css:{"margin-right":"0"},click:function(e){P.listOfInterestAddNew.find('[name^="loi_input_"]').val(""),d.show()},icon:'<i class="icon icon-plus-square"></i> '}),o.append(l),r.makeRow([o])}),"prepend");P.addLoiButton.on("click",(function(n){e.postAjax({submitSubscriptionController:"addNewListOfInterest",value:R(P.loiInputs)}).done((function(e){e.status?(d.hide(),s.sync()):t.alertErrors(e.errors)}))})),P.updateLoiButton.on("click",(function(i){if(null!=T){var a={};T.data.position=parseInt(P.btnPosition.val()),a.data=T.data,a.name=R(P.loiUpdateInputs);var r=t.dataStorage.get("default_lang"),o=n("default lang empty");if(!a.name.hasOwnProperty(r))return void t.alertErrors(o);if(""==e.trim(a.name[r]))return void t.alertErrors(o);T.update(a).done((function(e){e?s.sync():t.alertErrors(n("error when updateing the record"))}))}else t.alertErrors(n("error when updateing the record"));c.hide()})),u=new gk.data.Model({id:"id_newsletter_pro_subscription_tpl"}),h=L.subscriptionTemplatesDataSource=new gk.data.DataSource({pageSize:5,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=getTemplatesDataGrid",dataType:"json"},update:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=updateTemplatesDataGrid&id",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=deleteTemplatesDataGrid&id",type:"POST",dateType:"json",success:function(e,t){NewsletterPro.modules.settings.updateSubscriptionTemplates(),e||alert(n("delete record error"))},error:function(e,t){alert(n("delete record error"))},complete:function(e,t){}}},schema:{model:u},trySteps:2,errors:{read:function(e,t,n){h.syncStepAvailableAdd(3e3,(function(){h.sync()}))}}}),P.subscriptionTemplates.gkGrid({dataSource:h,selectable:!0,currentPage:1,pageable:!0,template:{name:function(e,n){return t.ucfirst(n).replace(/_/g," ")},display_gender:function(e,t){return B(e,"display_gender")},display_firstname:function(e,t){return B(e,"display_firstname")},display_lastname:function(e,t){return B(e,"display_lastname")},display_language:function(e,n){return Number(e.data.render_loader)===Number(t.dataStorage.get("subscription_template_defined.RENDER_LOADER_BETTER"))?"":B(e,"display_language")},display_birthday:function(e,t){return B(e,"display_birthday")},display_list_of_interest:function(e,t){return B(e,"display_list_of_interest")},list_of_interest_type:function(e,n){return Number(e.data.render_loader)===Number(t.dataStorage.get("subscription_template_defined.RENDER_LOADER_BETTER"))?"":B(e,"list_of_interest_type")},active:function(i,s){1==parseInt(i.data.active)&&(p=i);var a={1:"../modules/newsletterpro/views/img/active.png",2:"../modules/newsletterpro/views/img/inactive.png"},r=function(i,s,a,r){a=a||i.data,r=r||{1:"../img/admin/enabled.gif",2:"../img/admin/disabled.gif"};var o=e('<a href="javascript:{}"></a>'),l=function(){d()?o.html('<img src="'+r[1]+'" alt="'+n("unsubscribe")+'">'):o.html('<img src="'+r[2]+'" alt="'+n("subscribe")+'">')},d=function(){return parseInt(i.data[s])};return l(),o.on("click",(function(e){e.stopPropagation(),i.data[s]=1,l(),i.update(a).done((function(e){e?p=i:(void 0!==p&&(p.data[s]=1,p.instance.find("td.active img").attr("src",r[1])),i.data[s]=0,l(),t.alertErrors(n("error when updateing the record")))})).fail((function(){void 0!==p&&(p.data[s]=1,p.instance.find("td.active img").attr("src",r[1])),i.data[s]=0,l(),t.alertErrors(n("error when updateing the record"))}))})),o}(i,"active",null,a);return r.on("click",(function(){h.parse((function(e){e.instance.find("td.np-active img").attr("src",a[2])})),r.find("img").attr("src",a[1])})),r},actions:function(i){var s=e("<div></div>"),a=e("#delete-loi-item").gkButton({name:"delete",title:n("delete"),className:"btn btn-default pull-right delete-loi-item",item:i,command:"delete",click:function(){if("default"==e.trim(String(i.data.name)))return t.alertErrors([n("the default template cannot be deleted")]),!1},confirm:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){var e=confirm(n("delete record confirm"));if(e&&NewsletterPro.dataStorage.get("subscription_template")==i.data.name){var t=h.getItemByValue("data.name","default");t&&(h.setSelected(t),V(t))}return e})),icon:'<i class="icon icon-trash-o"></i> '});return s.append(a),s}},events:{select:function(e){V(e)}},defineSelected:function(e){return e.data.selected}}),P.createSubscriptionTemplateBackup.on("click",(function(){var i=prompt(n("backup name"));if(!e.trim(i))return!1;var s=this;t.showAjaxLoader(e(this)),e.postAjax({submitSubscriptionController:"ajaxCreateBackupSubscriptionTemplate",name:i}).done((function(e){e.status?(t.alertErrors(e.msg),void 0!==L.loadBackupDataSource&&L.loadBackupDataSource.sync()):t.alertErrors(e.errors.join("\n"))})).always((function(){t.hideAjaxLoader(e(s))}))})),P.loadSubscriptionTemplateBackup.on("click",(function(){L.showLoadBackup()})),m=S.TabItems.clone().init(P.tabSubscriptionTemplate,P.tabSubscriptionTemplateContent,(function(e){var t=e.attr("id");-1==["tab_subscription_template-template_2","tab_subscription_template-template_3","tab_subscription_template-template_4","tab_subscription_template-template_5","tab_subscription_template-template_7"].indexOf(t)?P.subscriptionTemplateLanguage.show():P.subscriptionTemplateLanguage.hide(),"tab_subscription_template-template_1"==t&&(void 0!==b&&b.save(),L.resizeView()),"tab_subscription_template-template_3"==t&&(z(D),z(Y),z(x)),"undefined"!==b&&b.refreshTinySize()}));try{var O=[P.subscriptionTemplateCss];e.each(O,(function(e,t){t.on("keydown",(function(e){var n=e.keyCode,i=t.get(0);if(9==n)try{return s=i.getCaretPosition()+" ".length,i.value=i.value.substring(0,i.getCaretPosition())+" "+i.value.substring(i.getCaretPosition(),i.value.length),i.setCaretPosition(s),!1}catch(e){console.warn(e)}if(8==n)try{var s;if(" "==i.value.substring(i.getCaretPosition()-4,i.getCaretPosition()))s=i.getCaretPosition()-3,i.value=i.value.substring(0,i.getCaretPosition()-3)+i.value.substring(i.getCaretPosition(),i.value.length),i.setCaretPosition(s)}catch(e){console.warn(e)}}))}))}catch(e){console.warn(e)}f=[],NewsletterPro.onObject.setCallback("subscription_template",(function(e){f.push({id:e.id,idLang:parseInt(e.id.match(/\d+$/)),ed:e}),f.length,t.dataStorage.get("all_languages").length})),_=[],NewsletterPro.onObject.setCallback("s_subscribe_message",(function(e){_.push({id:e.id,idLang:parseInt(e.id.match(/\d+$/)),ed:e}),_.length,t.dataStorage.get("all_languages").length})),g=[],NewsletterPro.onObject.setCallback("s_email_subscribe_voucher_message",(function(e){g.push({id:e.id,idLang:parseInt(e.id.match(/\d+$/)),ed:e}),g.length,t.dataStorage.get("all_languages").length})),v=[],NewsletterPro.onObject.setCallback("s_email_subscribe_confirmation_message",(function(e){v.push({id:e.id,idLang:parseInt(e.id.match(/\d+$/)),ed:e}),v.length,t.dataStorage.get("all_languages").length})),y=[],NewsletterPro.onObject.setCallback("s_email_unsubscribe_confirmation_message",(function(e){y.push({id:e.id,idLang:parseInt(e.id.match(/\d+$/)),ed:e}),y.length==t.dataStorage.get("all_languages").length&&(w.init(),L.tinyInitDfd.resolve())})),w={init:function(){b=new t.components.SubscriptionTemplate({id:parseInt(NewsletterPro.dataStorage.get("subscription_template_id")),tiny:function(){var t={};return e.each(f,(function(e,n){t[n.idLang]=n.ed})),t},tinySubscribeMessage:function(){var t={};return e.each(_,(function(e,n){t[n.idLang]=n.ed})),t},tinyEmailSubscribeVoucherMessage:function(){var t={};return e.each(g,(function(e,n){t[n.idLang]=n.ed})),t},tinyEmailSubscribeConfirmationMessage:function(){var t={};return e.each(v,(function(e,n){t[n.idLang]=n.ed})),t},tinyEmailUnsubscribeConfirmationMessage:function(){var t={};return e.each(y,(function(e,n){t[n.idLang]=n.ed})),t},cssStyle:P.subscriptionTemplateCss,cssGlobalStyle:P.subscriptionTemplateCssGlobal,view:P.subscriptionTemplateView,viewInANewWindow:P.viewInANewWindow,settings:{displayGender:P.displayGender,displayFirstName:P.displayFirstName,displayLastName:P.displayLastName,displayLanguage:P.displayLanguage,displayBirthday:P.displayBirthday,displayListOfInterest:P.displayListOfInterest,displaySubscribeMessage:P.displaySubscribeMessage,listOfInterestType:P.listOfInterestType,allowMultipleTimeSubscription:P.allowMultipleTimeSubscription,activateTemplate:P.activateTemplate,voucher:P.voucher,termsAndConditionsUrl:P.termsAndConditionsUrl,showOnPages:P.showOnPages,cookieLifetime:P.cookieLifetime,cookieLifetimeSeconds:P.cookieLifetimeSeconds,startTimer:P.startTimer,whenToShow:P.whenToShow},sliders:{sliderTemplateWidth:D,sliderTemplateMaxMinWidth:Y,sliderTemplateTop:x},dom:{firstNameMandatory:e('[name="newsletter_pro_subscription_mandatory_firstname"]'),lastNameMandatory:e('[name="newsletter_pro_subscription_mandatory_lastname"]')},saveBtn:P.saveSubscriptionTemplate,saveAsBtn:P.saveAsSubscriptionTemplate,saveMessage:P.saveSubscriptionTemplateMessage,afterSettingsChange:function(e,t,n,i){n.status&&h.sync()},afterSave:function(e,t){t.status&&h.sync()},afterSaveAs:function(t,n){n.status&&(NewsletterPro.modules.settings.updateSubscriptionTemplates(),h.sync((function(){var t=h.getItemByValue("data.name",e.trim(n.name));t&&(h.setSelected(t),V(t))})))}}),L.addVar("subscriptionTemplate",b)}},e.postAjax({submitSubscriptionController:"ajaxGetActiveTemplatesVouchersErrors"},"json",!1).done((function(t){if(t.length>0){P.voucherAlert.show().html(t.length);var n=P.voucherAlert.offset(),i=P.voucherAlert.outerWidth(),s=P.voucherAlert.outerHeight(),a=P.voucherAlertBox.outerWidth(),r=n.left+i/2-a/2+"px",o=n.top+s+5+"px";P.voucherAlertBox.css({left:r,top:o});var l=e("<ul>"),d=t.length;for(var c in t){var u=e("<li>");d-1==c&&u.addClass("last-item"),u.html(t[c]),l.append(u)}P.voucherAlertBox.html(l),P.voucherAlert.on("mouseover",(function(){P.voucherAlertBox.stop(!0,!0).fadeIn()})),P.voucherAlert.on("mouseout",(function(){P.voucherAlertBox.stop(!0,!0).fadeOut()}))}else P.voucherAlert.hide()}));var W=E(),q=H(W.body_width);t.dataStorage.set("subscription_template_current_type",q),j(gkSlider(F(q))),I(q);var U=W.body_min_width>0&&W.body_min_width>=0?W.body_min_width:0,G=W.body_max_width>0&&W.body_max_width<=1280?W.body_max_width:1280,$=G,J=U;Y=gkSliderRange({target:P.sliderTemplateMaxMinWidth,min:0,max:1280,valueMin:U,valueMax:G,values:[0,1280],snap:2,prefix:"px",move:function(e){},done:function(e){var t=e.getValueMax();$!=t&&($=t,N("body_max_width",parseInt(t)),b.setSetting("body_max_width",parseInt(t)));var n=e.getValueMin();J!=n&&(J=n,N("body_min_width",parseInt(t)),b.setSetting("body_min_width",parseInt(n)))}}),x=gkSlider({target:P.sliderTemplateTop,min:0,max:500,value:W.body_top<=500?W.body_top:100,values:[0,500],corectPosition:-7,prefix:"px",snap:2,move:function(e){},start:function(e){},done:function(e){var t=parseInt(e.getValue());N("body_top",t),b.setSetting("body_top",t)}}),P.sliderTemplateWidthType.on("change",(function(){var n=P.sliderTemplateWidthType.selector,i=e(n+":checked").val();switch(parseInt(i)){case M:j(gkSlider(F(M))),t.dataStorage.set("subscription_template_current_type",parseInt(i));break;case k:j(gkSlider(F(k))),t.dataStorage.set("subscription_template_current_type",parseInt(i))}D.refresh(),A(D)})),P.voucher.on("change",(function(t){var n=e(t.currentTarget).val();P.voucher.val(n),b.setSetting("voucher",n)}));var K=t.dataStorage.get("configuration.CROSS_TYPE_CLASS");e("span."+K).addClass("selected"),P.corss.on("click",(function(){C(e(this).attr("class"))})),P.corss1.on("click",(function(){C(e(this).attr("class"))})),P.corss2.on("click",(function(){C(e(this).attr("class"))})),P.corss3.on("click",(function(){C(e(this).attr("class"))})),P.corss4.on("click",(function(){C(e(this).attr("class"))})),P.corss5.on("click",(function(){C(e(this).attr("class"))})),P.manageLoi.on("click",(function(){void 0===L.manageLoi?(L.manageLoi=new gkWindow({width:640,height:540,title:n("Manage List of Interests"),className:"pqnp-manage-list-of-interest",show:function(e){},close:function(e){},content:function(i){return e.postAjax({submitSubscriptionController:"getListOfInterest"},"json").done((function(s){var a=e('\n\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t<form class="pqnp-save-loi-form">\n\t\t\t\t\t\t\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t'.concat(n("Set the default values for your customers."),'\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="title">').concat(n("Update since date"),'</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<input type="text" name="since_date" class="form-control fixed-width-xxl" />\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t').concat(n("If you don't add a date, you will update only the users that didn't choose any of those categories."),'\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<h4 class="title">').concat(n("List of interests"),'</h4>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t').concat(s.map((function(e){return'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input name="list_of_interest[]" type="checkbox" value="'.concat(e.id_newsletter_pro_list_of_interest,'">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>').concat(e.name,"</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t")})).join(""),'\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class="row form-group">\n\t\t\t\t\t\t\t\t\t\t\t\t<div class="col-sm-12">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a class="pqnp-save-loi btn btn-default" href="javascript:{}"><span class="btn-ajax-loader"></span><i class="icon icon-save fa fa-save"></i> ').concat(n("Save"),"</a>\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t")),r=a.find(".pqnp-save-loi"),o=(a.find(".pqnp-save-loi-form"),a.find('[name="list_of_interest[]"]')),l=a.find('[name="since_date"]'),d=[],c=null;l.datepicker({dateFormat:t.dataStorage.get("jquery_date_format"),onSelect:function(e,t){c=function(e){var t=e.selectedYear,n=Number(e.selectedMonth)<9?"0"+String(e.selectedMonth+1):String(e.selectedMonth+1),i=1==String(e.selectedDay).length?"0"+String(e.selectedDay):String(e.selectedDay);return mysql_date=t+"-"+n+"-"+i}(t)},beforeShow:function(e,t){},onClose:function(){0==e.trim(l.val()).length&&(c=null)}}),o.on("change",(function(){var t=Number(e(this).val());e(this).is(":checked")?-1==d.indexOf(t)&&d.push(t):d.indexOf(t)>-1&&d.splice(d.indexOf(t),1)})),r.on("click",(function(){t.showAjaxLoader(r),e.postAjax({submitSubscriptionController:"updateListOfInterest",data:d,date:c}).done((function(e){e.success&&t.hideAjaxLoader(r)})).fail((function(){t.hideAjaxLoader(r)}))})),i.setContent(a)})),""}}),L.manageLoi.show()):L.manageLoi.show()}))})),L.setSliderTemplateWidth=function(e){return j(e)},L.setStorageBodyInfo=function(e,t){return N(e,t)},L.getBodyWidthType=function(e){return H(e)},L.setCheckboxType=function(e){return I(e)};var A=function(e){currentType=t.dataStorage.get("subscription_template_current_type");var n=e.getValue();switch(currentType){case k:n=String(n+"%")}N("body_width",n),b.setSetting("body_width",n)},O=function(e){},W=function(e){};function F(t){var n={},i=E(),s=parseInt(i.body_width);switch(t){case M:n={target:L.dom.sliderTemplateWidth,min:200,max:1280,value:s>0&&s>=200?s:600,values:[200,1280],corectPosition:-15,prefix:"px",snap:2};break;case k:n={target:L.dom.sliderTemplateWidth,min:1,max:100,value:s>0&&s<=100?s:40,values:[1,50,100],corectPosition:-7,prefix:"%",snap:2}}return n=e.extend({},n,{move:W,start:O,done:A})}function z(e){-1==P.indexOf(e)&&(P.push(e),e.refresh())}function R(t){var n={};return e.each(t,(function(t,i){var s=e(i).attr("name").match(/\d+$/),a=null!==s?s[0]:0;n[a]=e(i).val()})),n}function B(i,s,a,r){a=a||i.data,r=r||{1:'<span class="list-action-enable action-enabled"><i class="icon icon-check"></i></span>',2:'<span class="list-action-enable action-disabled"><i class="icon icon-remove"></i></span>'};var o=e('<a href="javascript:{}"></a>'),l=function(){d()?o.html(r[1]):o.html(r[2])},d=function(){return parseInt(i.data[s])};return l(),o.on("click",(function(e){e.stopPropagation(),i.data[s]=d()?0:1,l(),i.update(a).done((function(e){e||(i.data[s]=d()?0:1,l(),t.alertErrors(n("error when updateing the record")))})).fail((function(){i.data[s]=d()?0:1,l(),t.alertErrors(n("error when updateing the record"))}))})),o}function V(n){void 0!==b&&(!function(n){Number(n.data.render_loader)===Number(t.dataStorage.get("subscription_template_defined.RENDER_LOADER_BETTER"))?(e("#pqnp-subscription-tpl-template-width").hide(),e("#pqnp-subscription-tpl-display-language").hide(),e("#pqnp-subscription-tpl-loi-type").hide()):(e("#pqnp-subscription-tpl-template-width").show(),e("#pqnp-subscription-tpl-display-language").show(),e("#pqnp-subscription-tpl-loi-type").show())}(n),P=[],b.setTemplateById(n.data.id))}return L.getSliderTemplateWidthConfig=function(e){return F(e)},L},resizeView:function(){var e=this;function t(){return e.dom.subscriptionTemplateView.contents().find("html")}if(t().length>0&&t().find("body").length>0){var n=e.dom.subscriptionTemplateView.get(0);n.height="",n.height=n.contentWindow.document.body.scrollHeight+"px"}},showSubscriptionHelp:function(){var t=this.l;void 0===this.subscriptionHelpWindow?(this.subscriptionHelpWindow=new gkWindow({width:640,height:540,title:t("view available variables"),className:"subscription-help-win",show:function(e){},close:function(e){},content:function(t){return e.postAjax({submitSubscriptionController:"showSubscriptionHelp"},"html").done((function(e){t.setContent(e)})),""}}),this.subscriptionHelpWindow.show()):this.subscriptionHelpWindow.show()},showLoadBackup:function(){var t,n,i,s,a=this,r=a.l,o=NewsletterPro;void 0===a.loadBackupWindow?(a.loadBackupWindow=new gkWindow({width:800,height:500,title:r("load subscription template backup"),content:function(l){e.postAjax({submitSubscriptionController:"showLoadBackup"},"html").done((function(d){l.setContent(d),(t=l.getContent()).css({padding:0}),s=t.find("#load-backup-subscription-templates"),n=new gk.data.Model({id:"id"}),i=a.loadBackupDataSource=new gk.data.DataSource({pageSize:9,transport:{read:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=getSubscriptionTemplateBackup",dataType:"json"},destroy:{url:NewsletterPro.dataStorage.get("ajax_url")+"&submitSubscriptionController=ajaxDeleteBackupSubscriptionTemplate&id",type:"POST",dateType:"json",success:function(e,t){e.status||alert(e.errors.join("\n"))},error:function(e,t){alert(r("delete record error"))},complete:function(e,t){}}},schema:{model:n},trySteps:2,errors:{read:function(e,t,n){i.syncStepAvailableAdd(3e3,(function(){i.sync()}))}}}),s.gkGrid({dataSource:i,selectable:!1,currentPage:1,pageable:!0,template:{actions:function(t){var n=e('<div style="text-align: center;"></div>'),i=e("#delete-subscription-backup").gkButton({name:"delete",title:r("delete"),className:"btn btn-default btn-margin pull-right ",click:function(e){if(!confirm(r("delete record confirm")))return!1;t.destroy("status")},icon:'<i class="icon icon-trash-o"></i> '}),s=e("#load-subscription-backup").gkButton({name:"load",title:r("load"),className:"btn btn-default btn-margin pull-right ",click:function(n){var i=confirm(r("load backup confirm"));if(!i||""==i)return!1;o.showAjaxLoader(s),e.postAjax({submitSubscriptionController:"ajaxLoadBackupSubscriptionTemplate",name:t.data.name}).done((function(e){e.status?(o.alertErrors(e.msg),NewsletterPro.dataStorage.get("subscription_template_id")||window.location.reload()):o.alertErrors(e.errors.join("\n"))})).always((function(){o.hideAjaxLoader(s),void 0!==a.subscriptionTemplatesDataSource&&a.subscriptionTemplatesDataSource.sync(),void 0!==a.listOfInterestDataSource&&a.listOfInterestDataSource.sync()}))},icon:'<span class="btn-ajax-loader" style="margin-top: 4px;"></span> <i class="icon icon-upload"></i> '});return n.append(s),n.append(i),n}}})}))}}),a.loadBackupWindow.show()):a.loadBackupWindow.show();void 0!==a.loadBackupDataSource&&a.loadBackupDataSource.sync()},ready:function(t){var n=this;e(document).ready((function(){var i=e(e("#list-of-interest-template").html()),s=i.find("#list-of-interest-template-add"),a=i.find("#list-of-interest-template-update");n.dom=n.dom||{listOfInterestTemplate:i,listOfInterestAddNew:s,addLoiButton:s.find("#add-loi-button"),loiInputs:s.find('[name^="loi_input_"]'),listOfInterestUpdate:a,loiUpdateInputs:a.find('[name^="loi_input_update_"]'),updateLoiButton:a.find("#update-loi-button"),btnPosition:a.find("#loi-position"),listOfInterest:e("#list-of-interest-table"),frontSubscriptionLang:e("#front-subscription-lang"),subscriptionTemplates:e("#subscription-templates-table"),tabSubscriptionTemplate:e("#tab_subscription_template"),tabSubscriptionTemplateContent:e("#tab_subscription_template_content"),subscriptionTemplateLanguage:e("#subscription-template-language"),subscriptionTemplateCss:e("#subscription-template-css"),subscriptionTemplateCssGlobal:e("#subscription-template-css-global"),subscriptionTemplateView:e("#subscription-template-view"),saveSubscriptionTemplate:e("#save-subscription-template"),saveAsSubscriptionTemplate:e("#save-as-subscription-template"),saveSubscriptionTemplateMessage:e("#save-subscription-template-message"),displayGender:e('[name="displayGender"]'),displayFirstName:e('[name="displayFirstName"]'),displayLastName:e('[name="displayLastName"]'),displayLanguage:e('[name="displayLanguage"]'),displayBirthday:e('[name="displayBirthday"]'),displayListOfInterest:e('[name="displayListOfInterest"]'),displaySubscribeMessage:e('[name="displaySubscribeMessage"]'),listOfInterestType:e('[name="listOfInterestType"]'),allowMultipleTimeSubscription:e('[name="allowMultipleTimeSubscription"]'),activateTemplate:e("#activate-template"),corss:e("#np-cross"),corss1:e("#np-cross1"),corss2:e("#np-cross2"),corss3:e("#np-cross3"),corss4:e("#np-cross4"),corss5:e("#np-cross5"),sliderTemplateWidthType:e('[name="sliderFsTemplateWidth"]'),sliderTemplateWidth:e("#slider-fs-template-width"),sliderTemplateMaxMinWidth:e("#slider-fs-template-maxmin-width"),sliderTemplateTop:e("#slider-fs-template-top"),radioFsPercent:e("#radio-fs-percent"),radioFsPixels:e("#radio-fs-pixels"),voucher:e(".subscription-template-voucher"),termsAndConditionsUrl:e("#np-terms-and-conditions"),viewInANewWindow:e("#subscription-view-in-a-new-window"),voucherAlert:e("#fs-vouchers-alert"),voucherAlertBox:e("#voucher-alert-box"),showOnPages:e("#show-on-pages"),cookieLifetime:e("#cookie-lifetime"),startTimer:e("#start-timer"),whenToShow:e("#when-shop-popup"),cookieLifetimeSeconds:e("#cookie-lifetime-seconds"),createSubscriptionTemplateBackup:e("#create-subscription-template-backup"),loadSubscriptionTemplateBackup:e("#load-subscription-template-backup"),manageLoi:e("#pqnp-manage-loi")},t(n.dom)}))}}.init(NewsletterPro)}).call(this,n(2))},,,,,,,,,,,,,,,function(e,t){},,,,,function(e,t){},,function(e,t){},,function(e,t){}]);