diff --git a/app/Dockerfile b/app/Dockerfile index 771e173..21d487a 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-app:5.74 +FROM metasfresh/metasfresh-app:5.75 COPY sources/configs/* /opt/metasfresh/ COPY sources/start_app.sh /opt/metasfresh/ diff --git a/db/Dockerfile b/db/Dockerfile index 0f64ff5..89b788d 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-db:5.74 +FROM metasfresh/metasfresh-db:5.75 RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8 RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 diff --git a/docker-src/app/Dockerfile b/docker-src/app/Dockerfile index 6aa876e..069b1df 100644 --- a/docker-src/app/Dockerfile +++ b/docker-src/app/Dockerfile @@ -12,7 +12,7 @@ RUN apt -y install netcat \ && apt -y autoclean RUN mkdir -p /opt/metasfresh -RUN curl https://repo.metasfresh.com/content/repositories/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.74.2-779+release/metasfresh-dist-dist-5.74.2-779+release-dist.tar.gz \ +RUN curl https://repo.metasfresh.com/content/repositories/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.75.2-788+release/metasfresh-dist-dist-5.75.2-788+release-dist.tar.gz \ | tar -xzC /opt/metasfresh/ COPY sources/configs/* /opt/metasfresh/ diff --git a/docker-src/webapi/Dockerfile b/docker-src/webapi/Dockerfile index 9fdad30..bc3faa4 100644 --- a/docker-src/webapi/Dockerfile +++ b/docker-src/webapi/Dockerfile @@ -14,7 +14,7 @@ RUN apt -y install netcat \ COPY sources/configs/local_settings.properties /root/ RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \ && mkdir -p /opt/metasfresh-webui-api/log -RUN curl https://repo.metasfresh.com/content/repositories/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.74.2-565+release/metasfresh-webui-api-5.74.2-565+release.jar \ +RUN curl https://repo.metasfresh.com/content/repositories/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.75.2-573+release/metasfresh-webui-api-5.75.2-573+release.jar \ --output /opt/metasfresh-webui-api/metasfresh-webui-api.jar \ && chmod 750 /opt/metasfresh-webui-api/metasfresh-webui-api.jar diff --git a/docker-src/webui/sources/dist/bundle-0f17cb93cb3514701d64-git-e673d47.js b/docker-src/webui/sources/dist/bundle-dc38f913680b3c598c92-git-1919073.js similarity index 73% rename from docker-src/webui/sources/dist/bundle-0f17cb93cb3514701d64-git-e673d47.js rename to docker-src/webui/sources/dist/bundle-dc38f913680b3c598c92-git-1919073.js index 1c4c839..c31affb 100644 --- a/docker-src/webui/sources/dist/bundle-0f17cb93cb3514701d64-git-e673d47.js +++ b/docker-src/webui/sources/dist/bundle-dc38f913680b3c598c92-git-1919073.js @@ -1,4 +1,4 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=1155)}([function(e,t,n){e.exports=n(911)()},function(e,t,n){"use strict";e.exports=n(951)},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(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 c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},U={};function X(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(U[e]=o),t&&(U[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=F(t,e.localeData()),V[t]=V[t]||function(e){var t,n,r,o=e.match(W);for(t=0,n=o.length;t=0&&J.test(e);)e=e.replace(J,r),J.lastIndex=0,n-=1;return e}var z=/\d/,B=/\d\d/,q=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n68?1900:2e3)};var Le,Se=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ce(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ce(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ee(e)?29:28:31-r%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ue(e,t,n){var r=7+t-n,o=(7+Ve(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Xe(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=Ue(e,r,o),u=1+7*(t-1)+s+l;return u<=0?a=Oe(i=e-1)+u:u>Oe(e)?(i=e+1,a=u-Oe(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Fe(o,t,n)):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Fe(e,t,n){var r=Ue(e,t,n),o=Ue(e+1,t,n);return(Oe(e)-r+o)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",$),ce("ww",$,B),ce("W",$),ce("WW",$,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),X("d",0,"do","day"),X("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),X("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),X("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",$),ce("e",$),ce("E",$),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Ze=le,$e=le;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){X(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,et),X("k",["kk",2],0,function(){return this.hours()||24}),X("hmm",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)}),X("hmmss",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),tt("a",!0),tt("A",!1),P("hour","h"),Y("hour",13),ce("a",nt),ce("A",nt),ce("H",$),ce("h",$),ce("k",$),ce("HH",$,B),ce("hh",$,B),ce("kk",$,B),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),he(["H","HH"],ve),he(["k","kk"],function(e,t,n){var r=x(e);t[ve]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[ve]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o))});var rt,ot=De("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Re,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(895)("./"+t),ct(r)}catch(e){}return at[t]}function ct(e,t){var n;return e&&((n=s(t)?ft(e):dt(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=at[e])S("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."),r=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])r=at[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return at[e]=new C(j(r,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),at[e]}return delete at[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}i++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ye]<1||n[ye]>Ae(n[be],n[ge])?ye:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[we]||0!==n[ke]||0!==n[xe])?ve:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>59?ke:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Te),h(e)._overflowWeekday&&-1===t&&(t=Me),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ht(t.GG,e._a[be],Ge(Dt(),1,4).year),r=ht(t.W,1),((o=ht(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ge(Dt(),i,a);n=ht(t.gg,e._a[be],u.year),r=ht(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Xe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[be],r[be]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ve(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[we]&&0===e._a[ke]&&0===e._a[xe]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Ve:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var _t=/^\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)?)?$/,bt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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}/]],vt=[["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/]],wt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,o,i,a,s=e._i,l=_t.exec(s)||bt.exec(s);if(l){for(h(e).iso=!0,t=0,n=yt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),U[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=(c=e._locale,d=e._a[ve],null==(f=e._meridiem)?d:null!=c.meridiemHour?c.meridiemHour(d,f):null!=c.isPM?((p=c.isPM(f))&&d<12&&(d+=12),p||12!==d||(d=0),d):d),mt(e),pt(e)}else Ot(e);else kt(e);var c,d,f,p}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(pt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:_()});function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;ri&&(t=i),function(e,t,n,r,o){var i=Xe(e,t,n,r,o),a=Ve(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}X(0,["gg",2],0,function(){return this.weekYear()%100}),X(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",$,B),ce("gg",$,B),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",re,Z),ce("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),X("Q",0,"Qo","quarter"),P("quarter","Q"),Y("quarter",7),ce("Q",z),he("Q",function(e,t){t[ge]=3*(x(e)-1)}),X("D",["DD",2],"Do","date"),P("date","D"),Y("date",9),ce("D",$),ce("DD",$,B),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ye),he("Do",function(e,t){t[ye]=x(e.match($)[0])});var an=De("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",q),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),X("m",["mm",2],0,"minute"),P("minute","m"),Y("minute",14),ce("m",$),ce("mm",$,B),he(["m","mm"],we);var sn=De("Minutes",!1);X("s",["ss",2],0,"second"),P("second","s"),Y("second",15),ce("s",$),ce("ss",$,B),he(["s","ss"],ke);var ln,un=De("Seconds",!1);for(X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return 10*this.millisecond()}),X(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),X(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),X(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),X(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),X(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),Y("millisecond",16),ce("S",te,z),ce("SS",te,B),ce("SSS",te,q),ln="SSSS";ln.length<=9;ln+="S")ce(ln,oe);function cn(e,t){t[xe]=x(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,cn);var dn=De("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var fn=v.prototype;function pn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||Dt(),r=Jt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(D(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},fn.clone=function(){return new v(this)},fn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Jt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:k(i)},fn.endOf=function(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Dt(),e)},fn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Dt(),e)},fn.get=function(e){return D(this[e=I(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Ee(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Ye,fn.daysInMonth=function(){return Ae(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},fn.date=an,fn.day=fn.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},fn.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")},fn.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},fn.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")},fn.hour=fn.hours=ot,fn.minute=fn.minutes=sn,fn.second=fn.seconds=un,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Vt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Ft(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Vt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ut,fn.isUTC=Ut,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=O("dates accessor is deprecated. Use date instead.",an),fn.months=O("months accessor is deprecated. Use month instead",Ye),fn.years=O("years accessor is deprecated. Use year instead",Se),fn.zone=O("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()}),fn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=C.prototype;function mn(e,t,n,r){var o=ft(),i=p().set(r,t);return o[n](i,e)}function _n(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=mn(e,r,n,"month");return o}function bn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ft(),a=e?i._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=mn(t,(o+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)D(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)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:-1!==(o=Le.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ct),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ft);var gn=Math.abs;function yn(e,t,n,r){var o=Ft(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Tn=xn("ms"),Mn=xn("s"),On=xn("m"),En=xn("h"),Ln=xn("d"),Sn=xn("w"),Dn=xn("M"),jn=xn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Cn("milliseconds"),Pn=Cn("seconds"),In=Cn("minutes"),Rn=Cn("hours"),Hn=Cn("days"),Yn=Cn("months"),Nn=Cn("years"),Wn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,M:11},Vn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Vn(this._milliseconds)/1e3,r=Vn(this._days),o=Vn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Un(this._months)!==Un(d)?"-":"",h=Un(this._days)!==Un(d)?"-":"",m=Un(this._milliseconds)!==Un(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Gn=It.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Gn.add=function(e,t){return yn(this,e,t,1)},Gn.subtract=function(e,t){return yn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=Tn,Gn.asSeconds=Mn,Gn.asMinutes=On,Gn.asHours=En,Gn.asDays=Ln,Gn.asWeeks=Sn,Gn.asMonths=Dn,Gn.asYears=jn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*vn(kn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=k(i/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),o=k(wn(a)),s+=o,a-=vn(kn(o)),r=k(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Gn.clone=function(){return Ft(this)},Gn.get=function(e){return e=I(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=An,Gn.seconds=Pn,Gn.minutes=In,Gn.hours=Rn,Gn.days=Hn,Gn.weeks=function(){return k(this.days()/7)},Gn.months=Yn,Gn.years=Nn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),o=Wn(r.as("s")),i=Wn(r.as("m")),a=Wn(r.as("h")),s=Wn(r.as("d")),l=Wn(r.as("M")),u=Wn(r.as("y")),c=o<=Jn.ss&&["s",o]||o0,c[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=Xn,Gn.toString=Xn,Gn.toJSON=Xn,Gn.locale=en,Gn.localeData=nn,Gn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Gn.lang=tn,X("X",0,0,"unix"),X("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.21.0",t=Dt,o.fn=fn,o.min=function(){return At("isBefore",[].slice.call(arguments,0))},o.max=function(){return At("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Dt(1e3*e)},o.months=function(e,t){return _n(e,t,"months")},o.isDate=u,o.locale=ct,o.invalid=_,o.duration=Ft,o.isMoment=w,o.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},o.parseZone=function(){return Dt.apply(null,arguments).parseZone()},o.localeData=ft,o.isDuration=Rt,o.monthsShort=function(e,t){return _n(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},o.defineLocale=dt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=(r=ut(e))&&(o=r._config),t=j(o,t),(n=new C(t)).parentLocale=at[e],at[e]=n,ct(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return E(at)},o.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},o.normalizeUnits=I,o.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},o.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"},o.prototype=fn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(88)(e))},function(e,t,n){var r=n(9),o=n(53),i=n(31),a=n(30),s=n(46),l=function(e,t,n){var u,c,d,f,p=e&l.F,h=e&l.G,m=e&l.S,_=e&l.P,b=e&l.B,g=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,y=h?o:o[t]||(o[t]={}),v=y.prototype||(y.prototype={});for(u in h&&(n=t),n)d=((c=!p&&g&&void 0!==g[u])?g:n)[u],f=b&&c?s(d,r):_&&"function"==typeof d?s(Function.call,d):d,g&&a(g,u,d,e&l.U),y[u]!=d&&i(y,u,f),_&&v[u]!=d&&(v[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(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 c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,J=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},U={};function X(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(U[e]=o),t&&(U[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=F(t,e.localeData()),V[t]=V[t]||function(e){var t,n,r,o=e.match(W);for(t=0,n=o.length;t=0&&J.test(e);)e=e.replace(J,r),J.lastIndex=0,n-=1;return e}var z=/\d/,B=/\d\d/,q=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n68?1900:2e3)};var Le,Se=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ce(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ce(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ee(e)?29:28:31-r%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ue(e,t,n){var r=7+t-n,o=(7+Ve(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Xe(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=Ue(e,r,o),u=1+7*(t-1)+s+l;return u<=0?a=Oe(i=e-1)+u:u>Oe(e)?(i=e+1,a=u-Oe(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Fe(o,t,n)):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Fe(e,t,n){var r=Ue(e,t,n),o=Ue(e+1,t,n);return(Oe(e)-r+o)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",$),ce("ww",$,B),ce("W",$),ce("WW",$,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),X("d",0,"do","day"),X("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),X("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),X("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",$),ce("e",$),ce("E",$),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Ze=le,$e=le;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){X(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,et),X("k",["kk",2],0,function(){return this.hours()||24}),X("hmm",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)}),X("hmmss",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),tt("a",!0),tt("A",!1),P("hour","h"),Y("hour",13),ce("a",nt),ce("A",nt),ce("H",$),ce("h",$),ce("k",$),ce("HH",$,B),ce("hh",$,B),ce("kk",$,B),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),he(["H","HH"],ve),he(["k","kk"],function(e,t,n){var r=x(e);t[ve]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[ve]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o))});var rt,ot=De("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Re,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(715)("./"+t),ct(r)}catch(e){}return at[t]}function ct(e,t){var n;return e&&(n=s(t)?ft(e):dt(e,t))&&(rt=n),rt._abbr}function dt(e,t){if(null!==t){var n=it;if(t.abbr=e,null!=at[e])S("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."),n=at[e]._config;else if(null!=t.parentLocale){if(null==at[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=at[t.parentLocale]._config}return at[e]=new C(j(n,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),at[e]}return delete at[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}i++}return null}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ye]<1||n[ye]>Ae(n[be],n[ge])?ye:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[we]||0!==n[ke]||0!==n[xe])?ve:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>59?ke:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Te),h(e)._overflowWeekday&&-1===t&&(t=Me),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ht(t.GG,e._a[be],Ge(Dt(),1,4).year),r=ht(t.W,1),((o=ht(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ge(Dt(),i,a);n=ht(t.gg,e._a[be],u.year),r=ht(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Xe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[be],r[be]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ve(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[we]&&0===e._a[ke]&&0===e._a[xe]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Ve:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var _t=/^\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)?)?$/,bt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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}/]],vt=[["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/]],wt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,o,i,a,s=e._i,l=_t.exec(s)||bt.exec(s);if(l){for(h(e).iso=!0,t=0,n=yt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),U[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=(c=e._locale,d=e._a[ve],null==(f=e._meridiem)?d:null!=c.meridiemHour?c.meridiemHour(d,f):null!=c.isPM?((p=c.isPM(f))&&d<12&&(d+=12),p||12!==d||(d=0),d):d),mt(e),pt(e)}else Ot(e);else kt(e);var c,d,f,p}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(pt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:_()});function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;ri&&(t=i),function(e,t,n,r,o){var i=Xe(e,t,n,r,o),a=Ve(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}X(0,["gg",2],0,function(){return this.weekYear()%100}),X(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",$,B),ce("gg",$,B),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",re,Z),ce("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),X("Q",0,"Qo","quarter"),P("quarter","Q"),Y("quarter",7),ce("Q",z),he("Q",function(e,t){t[ge]=3*(x(e)-1)}),X("D",["DD",2],"Do","date"),P("date","D"),Y("date",9),ce("D",$),ce("DD",$,B),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ye),he("Do",function(e,t){t[ye]=x(e.match($)[0])});var an=De("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",q),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),X("m",["mm",2],0,"minute"),P("minute","m"),Y("minute",14),ce("m",$),ce("mm",$,B),he(["m","mm"],we);var sn=De("Minutes",!1);X("s",["ss",2],0,"second"),P("second","s"),Y("second",15),ce("s",$),ce("ss",$,B),he(["s","ss"],ke);var ln,un=De("Seconds",!1);for(X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return 10*this.millisecond()}),X(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),X(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),X(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),X(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),X(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),Y("millisecond",16),ce("S",te,z),ce("SS",te,B),ce("SSS",te,q),ln="SSSS";ln.length<=9;ln+="S")ce(ln,oe);function cn(e,t){t[xe]=x(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,cn);var dn=De("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var fn=v.prototype;function pn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||Dt(),r=Jt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(D(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},fn.clone=function(){return new v(this)},fn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Jt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:k(i)},fn.endOf=function(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Dt(),e)},fn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Dt(),e)},fn.get=function(e){return D(this[e=I(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Ee(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Ye,fn.daysInMonth=function(){return Ae(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},fn.date=an,fn.day=fn.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},fn.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")},fn.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},fn.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")},fn.hour=fn.hours=ot,fn.minute=fn.minutes=sn,fn.second=fn.seconds=un,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Vt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Ft(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Vt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ut,fn.isUTC=Ut,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=O("dates accessor is deprecated. Use date instead.",an),fn.months=O("months accessor is deprecated. Use month instead",Ye),fn.years=O("years accessor is deprecated. Use year instead",Se),fn.zone=O("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()}),fn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=C.prototype;function mn(e,t,n,r){var o=ft(),i=p().set(r,t);return o[n](i,e)}function _n(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=mn(e,r,n,"month");return o}function bn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ft(),a=e?i._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=mn(t,(o+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)D(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)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:-1!==(o=Le.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Je.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Je.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ct),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ft);var gn=Math.abs;function yn(e,t,n,r){var o=Ft(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Tn=xn("ms"),Mn=xn("s"),On=xn("m"),En=xn("h"),Ln=xn("d"),Sn=xn("w"),Dn=xn("M"),jn=xn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Cn("milliseconds"),Pn=Cn("seconds"),In=Cn("minutes"),Rn=Cn("hours"),Hn=Cn("days"),Yn=Cn("months"),Nn=Cn("years"),Wn=Math.round,Jn={ss:44,s:45,m:45,h:22,d:26,M:11},Vn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Vn(this._milliseconds)/1e3,r=Vn(this._days),o=Vn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Un(this._months)!==Un(d)?"-":"",h=Un(this._days)!==Un(d)?"-":"",m=Un(this._milliseconds)!==Un(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Gn=It.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Gn.add=function(e,t){return yn(this,e,t,1)},Gn.subtract=function(e,t){return yn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=Tn,Gn.asSeconds=Mn,Gn.asMinutes=On,Gn.asHours=En,Gn.asDays=Ln,Gn.asWeeks=Sn,Gn.asMonths=Dn,Gn.asYears=jn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*vn(kn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=k(i/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),o=k(wn(a)),s+=o,a-=vn(kn(o)),r=k(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Gn.clone=function(){return Ft(this)},Gn.get=function(e){return e=I(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=An,Gn.seconds=Pn,Gn.minutes=In,Gn.hours=Rn,Gn.days=Hn,Gn.weeks=function(){return k(this.days()/7)},Gn.months=Yn,Gn.years=Nn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),o=Wn(r.as("s")),i=Wn(r.as("m")),a=Wn(r.as("h")),s=Wn(r.as("d")),l=Wn(r.as("M")),u=Wn(r.as("y")),c=o<=Jn.ss&&["s",o]||o0,c[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=Xn,Gn.toString=Xn,Gn.toJSON=Xn,Gn.locale=en,Gn.localeData=nn,Gn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Gn.lang=tn,X("X",0,0,"unix"),X("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.20.1",t=Dt,o.fn=fn,o.min=function(){return At("isBefore",[].slice.call(arguments,0))},o.max=function(){return At("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Dt(1e3*e)},o.months=function(e,t){return _n(e,t,"months")},o.isDate=u,o.locale=ct,o.invalid=_,o.duration=Ft,o.isMoment=w,o.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},o.parseZone=function(){return Dt.apply(null,arguments).parseZone()},o.localeData=ft,o.isDuration=Rt,o.monthsShort=function(e,t){return _n(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},o.defineLocale=dt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=(r=ut(e))&&(o=r._config),t=j(o,t),(n=new C(t)).parentLocale=at[e],at[e]=n,ct(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return E(at)},o.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},o.normalizeUnits=I,o.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Jn[e]&&(void 0===t?Jn[e]:(Jn[e]=t,"s"===e&&(Jn.ss=t-1),!0))},o.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"},o.prototype=fn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(88)(e))},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=n.n(o),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),s=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired});function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:s.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=s.isRequired,e[n]=a,e),o}var u=l(),c=n(583),d=n.n(c),f=n(6),p=n.n(f);var h=null,m={notify:function(){}};var _=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=m}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,u=o.methodName,c=void 0===u?"connectAdvanced":u,f=o.renderCountProp,h=void 0===f?void 0:f,m=o.shouldHandleStateChanges,w=void 0===m||m,k=o.storeKey,x=void 0===k?"store":k,T=o.withRef,M=void 0!==T&&T,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),E=x+"Subscription",L=g++,S=((t={})[x]=s,t[E]=a,t),D=((n={})[E]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=b({},O,{getDisplayName:l,methodName:c,renderCountProp:h,shouldHandleStateChanges:w,storeKey:x,withRef:M,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=L,r.state={},r.renderCount=0,r.store=e[x]||t[x],r.propsMode=Boolean(e[x]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+x+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+x+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[E]=t||this.context[E],e},a.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=v,this.store=null,this.selector.run=v,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(M,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[E];this.subscription=new _(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(y)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(M||h||this.propsMode&&this.subscription))return e;var t=b({},e);return M&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[E]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=D,a.contextTypes=S,a.propTypes=S,d()(a,t)}}var k=Object.prototype.hasOwnProperty;function x(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(x(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?I:P)(a,s,l,e,i)}var H=Object.assign||function(e){for(var t=1;t=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function N(e,t){return e===t}var W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?w:t,r=e.mapStateToPropsFactories,o=void 0===r?D:r,i=e.mapDispatchToPropsFactories,a=void 0===i?S:i,s=e.mergePropsFactories,l=void 0===s?A:s,u=e.selectorFactory,c=void 0===u?R:u;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,u=void 0===s||s,d=i.areStatesEqual,f=void 0===d?N:d,p=i.areOwnPropsEqual,h=void 0===p?T:p,m=i.areStatePropsEqual,_=void 0===m?T:m,b=i.areMergedPropsEqual,g=void 0===b?T:b,y=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=Y(e,o,"mapStateToProps"),w=Y(t,a,"mapDispatchToProps"),k=Y(r,l,"mergeProps");return n(c,H({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:w,initMergeProps:k,pure:u,areStatesEqual:f,areOwnPropsEqual:h,areStatePropsEqual:_,areMergedPropsEqual:g},y))}}();n.d(t,"Provider",function(){return u}),n.d(t,"createProvider",function(){return l}),n.d(t,"connectAdvanced",function(){return w}),n.d(t,"connect",function(){return W})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(922),o=n(535).isArray,i=n(535).isDate,a=n(919).sprintf,s=n(918),l=n(917),u=n(915);function c(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function d(e){return c(e)&&":"===e[0]}function f(e,t){return t.reduce(function(e,t){return null!==(n=e)&&"[object Object]"===Object.prototype.toString.call(n)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null;var n},e)}function p(){s.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(e){return e},generateMissingEntry:function(e){return"missing translation: "+e}},this.registerTranslations("en",n(913)),this.setMaxListeners(0)}p.prototype=s.EventEmitter.prototype,p.prototype.constructor=s.EventEmitter,p.prototype.getLocale=function(){return this._registry.locale},p.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},p.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},p.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(e||[]),t},p.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},p.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},p.prototype.getSeparator=function(){return this._registry.separator},p.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},p.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},p.prototype.getInterpolate=function(){return this._registry.interpolate},p.prototype.setKeyTransformer=function(e){var t=this._registry.keyTransformer;return this._registry.keyTransformer=e,t},p.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},p.prototype.setMissingEntryGenerator=function(e){var t=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=e,t},p.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},p.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,r(!0,this._registry.translations,n),n},p.prototype.registerInterpolations=function(e){return r(!0,this._registry.interpolations,e)},p.prototype.onLocaleChange=p.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},p.prototype.offLocaleChange=p.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},p.prototype.onTranslationNotFound=p.prototype.addTranslationNotFoundListener=function(e){this.addListener("translationnotfound",e)},p.prototype.offTranslationNotFound=p.prototype.removeTranslationNotFoundListener=function(e){this.removeListener("translationnotfound",e)},p.prototype.onError=p.prototype.addErrorListener=function(e){this.addListener("error",e)},p.prototype.offError=p.prototype.removeErrorListener=function(e){this.removeListener("error",e)},p.prototype.translate=function(e,t){if(!o(e)&&!c(e)||!e.length)throw new Error("invalid argument: key");d(e)&&(e=e.substr(1)),e=this._registry.keyTransformer(e,t);var n=(t=r(!0,{},t)).locale||this._registry.locale;delete t.locale;var i=t.scope||this._registry.scope;delete t.scope;var a=t.separator||this._registry.separator;delete t.separator;var s=[].concat(t.fallbackLocale||this._registry.fallbackLocales);delete t.fallbackLocale;var l=this._normalizeKeys(n,i,e,a),u=f(this._registry.translations,l);if(null===u&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(u=this._fallback(n,i,e,t.fallback,t))),null===u&&s.length>0&&-1===s.indexOf(n))for(var p=0,h=s.length;p=0;i--)""===r[i]&&(r.splice(i,1),!0===this._registry.keepTrailingDot&&i==r.length&&(r[r.length-1]+=""+t));return r}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return a(e,r({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,o,i){if(!1===(i=i||{}).resolve)return o;var a,s;if(d(o))a=this.translate(o,r({},i,{locale:e,scope:t}));else if("function"==typeof(s=o)||"[object Function]"===Object.prototype.toString.call(s)){var l;i.object?(l=i.object,delete i.object):l=n,a=this._resolve(e,t,n,o(l,i))}else a=o;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,r,i){if(i=l(i,"fallback"),o(r)){for(var a=0,s=r.length;a1&&void 0!==arguments[1]?arguments[1]:"NEW",n=arguments[2],r=arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments[5];return function(s){return"new"==t&&(t="NEW"),s(ne(e,t,n,r,i)).then(function(l){if(l){if("NEW"==t&&!o)return s(v(l.data[0].id)),s((0,a.replace)("/window/"+e+"/"+l.data[0].id));var u=0;l.data.forEach(function(e,t){e.rowId===r&&(u=t)}),"NEW"===t&&s(K(null,l.data[0].id)),t=l.data[u].id,s(C({data:xe(l.data[u].fieldsByName),docId:t,saveStatus:l.data[0].saveStatus,scope:ke(o),standardActions:l.data[0].standardActions,validStatus:l.data[0].validStatus,includedTabsInfo:l.data[0].includedTabsInfo,websocket:l.data[0].websocketEndpoint})),o?"NEW"===r&&(s(se(l.data,!1,"NEW",t,e)),s(le(l.data)),s(K(l.data[0].rowId))):s((0,b.getWindowBreadcrumb)(e)),(0,m.initLayout)("window",e,n,null,null,i).then(function(e){return s(j(e.data,ke(o)))}).then(function(n){o||s(te(n.layout.tabs,e,t,o))})}})}}function te(e,t,n,r){return function(o){var i={};e&&e.map(function(e,a){i[e.tabid]={},0!==a&&e.queryOnActivate||ge(e.tabid,t,n).then(function(t){i[e.tabid]=t,o(P(i,ke(r)))})})}}function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments[4];return function(i){return"NEW"===t?(0,h.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,h.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,h.getData)("window",e,t,n,r,null,null,o):(0,h.getData)("window",e,t,null,null,null,null,o).catch(function(){i(C({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,d.Set)(),validStatus:{}})),i((0,b.getWindowBreadcrumb)(e))})}}function re(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"NEW",o=arguments[3],i=arguments[4],a=arguments[5],s=arguments[6],l=arguments[7],u=arguments[8],c=this,d=arguments[9],m=arguments[10];return n=y(regeneratorRuntime.mark(function n(_){var b,g,y,v,w,k,x;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return b=Symbol(),g={entity:e,docType:t,docId:r,tabId:o,rowId:i,property:a,value:s,isAdvanced:u,viewId:d,isEdit:m},n.next=4,_(Z("pending"));case 4:return n.next=6,_({type:f.PATCH_REQUEST,symbol:b,options:g});case 6:return n.prev=6,n.next=9,(0,h.patchRequest)(g);case 9:return y=n.sent,v=y.data instanceof Array?y.data:[y.data],w=v[0],n.next=14,_(se(v,l,i,r,t,u));case 14:if(!w||!w.validStatus||w.validStatus.valid||a!==w.validStatus.fieldName){n.next=23;break}return n.next=17,_(Z("error"));case 17:return n.next=19,_({type:f.PATCH_FAILURE,symbol:b});case 19:k=w.validStatus.reason,_((0,p.addNotification)("Error: "+k.split(" ",4).join(" ")+"...",k,5e3,"error","")),n.next=28;break;case 23:return n.next=25,_(Z("saved"));case 25:return n.next=27,_({type:f.PATCH_SUCCESS,symbol:b});case 27:return n.abrupt("return",v);case 28:n.next=41;break;case 30:return n.prev=30,n.t0=n.catch(6),n.next=34,_(Z("error"));case 34:return n.next=36,_({type:f.PATCH_FAILURE,symbol:b});case 36:return n.next=38,(0,h.getData)(e,t,r,o,i,null,null,u,null,d);case 38:return x=n.sent,n.next=41,_(se(x.data,l,i,r,t,u));case 41:case"end":return n.stop()}},n,c,[[6,30]])})),function(e){return n.apply(this,arguments)}}function oe(e,t,n,r,o,i,a){return function(s){(0,h.getData)(e,t,n,r,o,null,null,a).then(function(e){s(se(e.data,i,o,n,t,a))})}}function ie(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(X(r,e.fieldsByName[r],t))}):n("includedTabsInfo"===r?J("master",e[r]):H(r,e[r],t))})}}function ae(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(G(r,e.fieldsByName[r],e.tabid,e.rowId,t))}):n(W(r,e[r],e.tabid,e.rowId,t))})}}function se(e,t,n,o,i,a){return function(o){("function"==typeof e.splice?e:[e]).map(function(e,i){var s=e.fieldsByName?r({},e,{fieldsByName:xe(e.fieldsByName)}):e;0===i&&"NEW"===n?o(V(s,s.tabid,s.rowId,"master")):e.rowId&&!t?o(ae(s,"master")):(e.rowId&&o(ae(s,"master")),a&&o(ie(s,"master")),o(ie(s,ke(t&&0===i))))})}}function le(e){return function(t){var n=function(e){e.rowId?t(R("master",e.tabid,e.rowId,e.saveStatus)):(e.validStatus&&t(N("master",e.validStatus)),e.saveStatus&&t(Y("master",e.saveStatus)),e.includedTabsInfo&&t(J("master",e.includedTabsInfo)))};Array.isArray(e)?e.map(function(e){n(e)}):n(e)}}function ue(e,t,n,r,o,i){return function(a){n&&r?(a(G(e,{value:t},n,r,"master")),o&&"process"!==i&&a(X(e,{value:t},"modal"))):(a(X(e,{value:t},ke(o))),o&&"process"!==i&&a(X(e,{value:t},"master")))}}function ce(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,p.setNotificationProgress)(t,r))}function de(e,t,n){var r=this;return function(a){var s=i.default.translate("window.attachment.title.pending"),l=i.default.translate("window.attachment.title.done"),u=i.default.translate("window.attachment.title.error"),c=o.default.CancelToken.source();a((0,p.addNotification)(s,i.default.translate("window.attachment.uploading"),0,"primary",null,c));var d={onUploadProgress:ce.bind(r,a,s),cancelToken:c.token};o.default.post(config.API_URL+"/window/"+e+"/"+t+"/attachments",n,d).then(function(){return a((0,p.addNotification)(l,i.default.translate("window.attachment.upload.success"),5e3,"primary"))}).finally(function(){return a((0,p.deleteNotification)(s))}).catch(function(e){o.default.isCancel(e)?a((0,p.addNotification)(u,"Upload terminated by the user",5e3,"warning","disableMouse")):a((0,p.addNotification)(u,i.default.translate("window.attachment.upload.error"),5e3,"error"))})}}function fe(e){var t,n=this,o=e.ids,i=e.processType,a=e.rowId,s=e.tabId,l=e.type,u=e.viewId,c=e.selectedTab,d=e.childViewId,f=e.childViewSelectedIds,h=e.parentViewId,_=e.parentViewSelectedIds,b=null;return t=y(regeneratorRuntime.mark(function e(t){var g,y,v,w,k;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t((0,p.setProcessPending)());case 2:return g=void 0,e.prev=3,e.next=6,ye({ids:o,processId:i,rowId:a,tabId:s,type:l,viewId:u,selectedTab:c,childViewId:d,childViewSelectedIds:f,parentViewId:h,parentViewSelectedIds:_});case 6:g=e.sent,e.next=16;break;case 9:return e.prev=9,e.t0=e.catch(3),e.next=13,t(q());case 13:return e.next=15,t((0,p.setProcessSaved)());case 15:throw e.t0;case 16:if(!g.data){e.next=57;break}if(y=xe(g.data.fieldsByName),b=g.data.pinstanceId,0!==Object.keys(y).length){e.next=38;break}return v=void 0,e.prev=21,e.next=24,ve(i,b);case 24:return v=e.sent,e.next=27,t(pe(v,i,b));case 27:e.next=36;break;case 29:return e.prev=29,e.t1=e.catch(21),e.next=33,t(q());case 33:return e.next=35,t((0,p.setProcessSaved)());case 35:throw e.t1;case 36:e.next=57;break;case 38:return e.next=40,t(C({data:y,scope:"modal"}));case 40:return w=void 0,e.prev=41,e.next=44,(0,m.initLayout)("process",i);case 44:return w=e.sent,e.next=47,t((0,p.setProcessSaved)());case 47:return k=r({},w.data,{pinstanceId:b}),e.next=50,t(j(k,"modal"));case 50:e.next=57;break;case 52:return e.prev=52,e.t2=e.catch(41),e.next=56,t((0,p.setProcessSaved)());case 56:throw e.t2;case 57:case"end":return e.stop()}},e,n,[[3,9],[21,29],[41,52]])})),function(e){return t.apply(this,arguments)}}function pe(e,t,n){var r,o=this;return r=y(regeneratorRuntime.mark(function r(i){var s,l,u,c,d;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(s=e.data,l=s.error,u=s.summary,c=s.action,!l){r.next=10;break}return r.next=4,i((0,p.addNotification)("Process error",u,5e3,"error"));case 4:return r.next=6,i((0,p.setProcessSaved)());case 6:return r.next=8,i(q());case 8:r.next=50;break;case 10:if(d=!1,!c){r.next=42;break}r.t0=c.type,r.next="openView"===r.t0?15:"openReport"===r.t0?20:"openDocument"===r.t0?22:"openIncludedView"===r.t0?33:"closeIncludedView"===r.t0?36:"selectViewRows"===r.t0?39:42;break;case 15:return r.next=17,i(q());case 17:return r.next=19,i(w(c.windowId,c.viewId));case 19:return r.abrupt("break",42);case 20:return(0,h.openFile)("process",t,n,"print",c.filename),r.abrupt("break",42);case 22:return r.next=24,i(q());case 24:if(!c.modal){r.next=30;break}return d=!0,r.next=28,i(z("",c.windowId,"window",null,null,!!c.advanced&&c.advanced,"","",c.documentId));case 28:r.next=32;break;case 30:return r.next=32,i((0,a.push)("/window/"+c.windowId+"/"+c.documentId));case 32:return r.abrupt("break",42);case 33:return r.next=35,i((0,_.setListIncludedView)({windowType:c.windowId,viewId:c.viewId,viewProfileId:c.profileId}));case 35:return r.abrupt("break",42);case 36:return r.next=38,i((0,_.setListIncludedView)({windowType:c.windowId,viewId:c.viewId}));case 38:return r.abrupt("break",42);case 39:return r.next=41,i(Q(c.rowIds,c.windowId));case 41:return r.abrupt("break",42);case 42:if(!u){r.next=45;break}return r.next=45,i((0,p.addNotification)("Process",u,5e3,"primary"));case 45:return r.next=47,i((0,p.setProcessSaved)());case 47:if(d){r.next=50;break}return r.next=50,i(B());case 50:case"end":return r.stop()}},r,o)})),function(e){return r.apply(this,arguments)}}function he(e,t,n,r){return function(o){var i=!0,a=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value;o(U(e,c,n))}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}o(le(r.data))}}function me(e,t,n,r,i,a){return o.default.get(config.API_URL+"/"+e+"/"+t+(n?"/"+n:"")+(r?"/"+r:"")+(i?"/"+i:"")+"/field/"+a+"/zoomInto?showError=true")}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId,r=e.tabId,i=e.rowId;return o.default.post(config.API_URL+"/window/"+t+"/"+n+"/"+r+"/"+i+"/discardChanges")}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId;return o.default.post(config.API_URL+"/window/"+t+"/"+n+"/discardChanges")}function ge(e,t,n,o){return(0,h.getData)("window",t,n,e,null,null,null,null,o).then(function(e){return e.data&&e.data.map(function(e){return r({},e,{fieldsByName:xe(e.fieldsByName)})})})}function ye(e){var t=e.processId,n=e.viewId,r=e.type,i=e.ids,a=e.tabId,s=e.rowId,l=e.selectedTab,u=e.childViewId,c=e.childViewSelectedIds,d=e.parentViewId,f=e.parentViewSelectedIds,p={processId:t};if(n?(p.viewId=n,p.viewDocumentIds=i,u&&(p.childViewId=u,p.childViewSelectedIds=c),d&&(p.parentViewId=d,p.parentViewSelectedIds=f instanceof Array?f:[f])):(p.documentId=Array.isArray(i)?i[0]:i,p.documentType=r,p.tabId=a,p.rowId=s),l){var h=l.tabId,m=l.rowIds;h&&m&&(p.selectedTab={tabId:h,rowIds:m})}return o.default.post(config.API_URL+"/process/"+t,p)}function ve(e,t){return o.default.get(config.API_URL+"/process/"+e+"/"+t+"/start")}function we(){var e=window.document,t=e.documentElement,n=t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullScreen||t.msRequestFullscreen,r=e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen;e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement?r.call(e):n.call(t)}function ke(e){return e?"modal":"master"}function xe(e){return Me(Oe(e))}function Te(e){if(e){if(e instanceof Date)return e;if(c.default.isMoment(e))return new Date(e);var t=e.substring(0,e.length-7);return new Date(t)}return""}function Me(e){var t=["Date","DateTime","Time"];return Object.keys(e).reduce(function(n,o){var i=e[o],a=t.indexOf(i.widgetType)>-1;return n[o]=a&&i.value?r({},i,{value:Te(i.value)}):i,n},{})}function Oe(e){return Object.keys(e).reduce(function(t,n){return t[n]=null===e[n].value?r({},e[n],{value:""}):e[n],t},{})}function Ee(e,t){var n=-1;if(!e)return n;for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],o=t||[],i=[],a=r({},e,{indent:o});if(i=i.concat([a]),n&&(o[o.length-2]=!1),e.includedDocuments)for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{}).tries,i=void 0===o?3:o;n.sockClient.connected||i<=0?(n.sockSubscription=n.sockClient.subscribe(e,function(r){e===n.sockTopic&&t(JSON.parse(r.body))}),n.sockTopic=e):setTimeout(function(){r({tries:i-1})},200)},o=function(){n.sock=new s.default(config.WS_URL),n.sockClient=u.default.Stomp.over(n.sock),n.sockClient.debug=null,n.sockClient.connect({},r)};Ae.call(this,o)||o()}}function Ae(e){var t=this.sockClient&&this.sockClient.connected&&this.sockSubscription;return t&&(this.sockSubscription.unsubscribe(),this.sockClient.disconnect(e),this.sockTopic=null),t}"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(v,"setLatestNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(w,"openRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(k,"closeRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(x,"openFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(T,"closeFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(M,"allowOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(O,"disableOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(E,"allowShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(L,"disableShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(S,"activateTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(D,"unselectTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(j,"initLayoutSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(C,"initDataSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(A,"clearMasterData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(P,"addRowData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(I,"sortTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(R,"updateRowStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(H,"updateDataProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Y,"updateDataSaveStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(N,"updateDataValidStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(W,"updateRowProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(J,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(V,"addNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(U,"deleteRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(X,"updateDataFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(G,"updateRowFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(F,"noConnection","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(z,"openModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(B,"closeProcessModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(q,"closeModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(K,"updateModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Z,"indicatorState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register($,"removeSelectedTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Q,"selectTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ee,"createWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(te,"initTabs","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ne,"initWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(re,"patch","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(oe,"fireUpdateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ie,"updateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ae,"updateRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(se,"mapDataToState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(le,"updateStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ue,"updatePropertyValue","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ce,"handleUploadProgress","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(de,"attachFileAction","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(fe,"createProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(pe,"handleProcessResponse","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(he,"deleteLocal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(me,"getZoomIntoWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(_e,"discardNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(be,"discardNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ge,"getTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ye,"getProcessData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ve,"startProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(we,"toggleFullScreen","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ke,"getScope","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(xe,"parseToDisplay","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Te,"parseDateWithCurrenTimezone","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Me,"parseDateToReadable","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Oe,"nullToEmptyStrings","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Ee,"findRowByPropName","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Le,"getItemsByProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Se,"getRowsData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(De,"mapIncluded","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(je,"collapsedMap","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Ce,"connectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Ae,"disconnectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"))},function(e,t,n){var r=n(144)("wks"),o=n(80),i=n(9).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(1),o=n(909);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){var r; +!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=1156)}([function(e,t,n){e.exports=n(912)()},function(e,t,n){"use strict";e.exports=n(952)},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(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 c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,J={},U={};function X(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(U[e]=o),t&&(U[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=F(t,e.localeData()),J[t]=J[t]||function(e){var t,n,r,o=e.match(W);for(t=0,n=o.length;t=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var z=/\d/,B=/\d\d/,q=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n68?1900:2e3)};var Le,Se=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ce(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ce(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ee(e)?29:28:31-r%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ue(e,t,n){var r=7+t-n,o=(7+Je(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Xe(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=Ue(e,r,o),u=1+7*(t-1)+s+l;return u<=0?a=Oe(i=e-1)+u:u>Oe(e)?(i=e+1,a=u-Oe(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Fe(o,t,n)):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Fe(e,t,n){var r=Ue(e,t,n),o=Ue(e+1,t,n);return(Oe(e)-r+o)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",$),ce("ww",$,B),ce("W",$),ce("WW",$,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),X("d",0,"do","day"),X("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),X("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),X("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",$),ce("e",$),ce("E",$),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Ze=le,$e=le;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){X(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,et),X("k",["kk",2],0,function(){return this.hours()||24}),X("hmm",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)}),X("hmmss",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),tt("a",!0),tt("A",!1),P("hour","h"),Y("hour",13),ce("a",nt),ce("A",nt),ce("H",$),ce("h",$),ce("k",$),ce("HH",$,B),ce("hh",$,B),ce("kk",$,B),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),he(["H","HH"],ve),he(["k","kk"],function(e,t,n){var r=x(e);t[ve]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[ve]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o))});var rt,ot=De("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Re,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(896)("./"+t),ct(r)}catch(e){}return at[t]}function ct(e,t){var n;return e&&((n=s(t)?ft(e):dt(e,t))?rt=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),rt._abbr}function dt(e,t){if(null!==t){var n,r=it;if(t.abbr=e,null!=at[e])S("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."),r=at[e]._config;else if(null!=t.parentLocale)if(null!=at[t.parentLocale])r=at[t.parentLocale]._config;else{if(null==(n=ut(t.parentLocale)))return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;r=n._config}return at[e]=new C(j(r,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),at[e]}return delete at[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}i++}return rt}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ye]<1||n[ye]>Ae(n[be],n[ge])?ye:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[we]||0!==n[ke]||0!==n[xe])?ve:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>59?ke:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Te),h(e)._overflowWeekday&&-1===t&&(t=Me),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ht(t.GG,e._a[be],Ge(Dt(),1,4).year),r=ht(t.W,1),((o=ht(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ge(Dt(),i,a);n=ht(t.gg,e._a[be],u.year),r=ht(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Xe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[be],r[be]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Je(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[we]&&0===e._a[ke]&&0===e._a[xe]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Je:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var _t=/^\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)?)?$/,bt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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}/]],vt=[["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/]],wt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,o,i,a,s=e._i,l=_t.exec(s)||bt.exec(s);if(l){for(h(e).iso=!0,t=0,n=yt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),U[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=(c=e._locale,d=e._a[ve],null==(f=e._meridiem)?d:null!=c.meridiemHour?c.meridiemHour(d,f):null!=c.isPM?((p=c.isPM(f))&&d<12&&(d+=12),p||12!==d||(d=0),d):d),mt(e),pt(e)}else Ot(e);else kt(e);var c,d,f,p}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(pt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:_()});function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;ri&&(t=i),function(e,t,n,r,o){var i=Xe(e,t,n,r,o),a=Je(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}X(0,["gg",2],0,function(){return this.weekYear()%100}),X(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",$,B),ce("gg",$,B),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",re,Z),ce("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),X("Q",0,"Qo","quarter"),P("quarter","Q"),Y("quarter",7),ce("Q",z),he("Q",function(e,t){t[ge]=3*(x(e)-1)}),X("D",["DD",2],"Do","date"),P("date","D"),Y("date",9),ce("D",$),ce("DD",$,B),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ye),he("Do",function(e,t){t[ye]=x(e.match($)[0])});var an=De("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",q),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),X("m",["mm",2],0,"minute"),P("minute","m"),Y("minute",14),ce("m",$),ce("mm",$,B),he(["m","mm"],we);var sn=De("Minutes",!1);X("s",["ss",2],0,"second"),P("second","s"),Y("second",15),ce("s",$),ce("ss",$,B),he(["s","ss"],ke);var ln,un=De("Seconds",!1);for(X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return 10*this.millisecond()}),X(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),X(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),X(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),X(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),X(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),Y("millisecond",16),ce("S",te,z),ce("SS",te,B),ce("SSS",te,q),ln="SSSS";ln.length<=9;ln+="S")ce(ln,oe);function cn(e,t){t[xe]=x(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,cn);var dn=De("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var fn=v.prototype;function pn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||Dt(),r=Vt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(D(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},fn.clone=function(){return new v(this)},fn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Vt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:k(i)},fn.endOf=function(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Dt(),e)},fn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Dt(),e)},fn.get=function(e){return D(this[e=I(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Ee(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Ye,fn.daysInMonth=function(){return Ae(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},fn.date=an,fn.day=fn.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},fn.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")},fn.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},fn.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")},fn.hour=fn.hours=ot,fn.minute=fn.minutes=sn,fn.second=fn.seconds=un,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Ft(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Jt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ut,fn.isUTC=Ut,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=O("dates accessor is deprecated. Use date instead.",an),fn.months=O("months accessor is deprecated. Use month instead",Ye),fn.years=O("years accessor is deprecated. Use year instead",Se),fn.zone=O("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()}),fn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=C.prototype;function mn(e,t,n,r){var o=ft(),i=p().set(r,t);return o[n](i,e)}function _n(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=mn(e,r,n,"month");return o}function bn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ft(),a=e?i._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=mn(t,(o+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)D(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)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:-1!==(o=Le.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ct),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ft);var gn=Math.abs;function yn(e,t,n,r){var o=Ft(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Tn=xn("ms"),Mn=xn("s"),On=xn("m"),En=xn("h"),Ln=xn("d"),Sn=xn("w"),Dn=xn("M"),jn=xn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Cn("milliseconds"),Pn=Cn("seconds"),In=Cn("minutes"),Rn=Cn("hours"),Hn=Cn("days"),Yn=Cn("months"),Nn=Cn("years"),Wn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,M:11},Jn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Jn(this._milliseconds)/1e3,r=Jn(this._days),o=Jn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Un(this._months)!==Un(d)?"-":"",h=Un(this._days)!==Un(d)?"-":"",m=Un(this._milliseconds)!==Un(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Gn=It.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Gn.add=function(e,t){return yn(this,e,t,1)},Gn.subtract=function(e,t){return yn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=Tn,Gn.asSeconds=Mn,Gn.asMinutes=On,Gn.asHours=En,Gn.asDays=Ln,Gn.asWeeks=Sn,Gn.asMonths=Dn,Gn.asYears=jn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*vn(kn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=k(i/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),o=k(wn(a)),s+=o,a-=vn(kn(o)),r=k(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Gn.clone=function(){return Ft(this)},Gn.get=function(e){return e=I(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=An,Gn.seconds=Pn,Gn.minutes=In,Gn.hours=Rn,Gn.days=Hn,Gn.weeks=function(){return k(this.days()/7)},Gn.months=Yn,Gn.years=Nn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),o=Wn(r.as("s")),i=Wn(r.as("m")),a=Wn(r.as("h")),s=Wn(r.as("d")),l=Wn(r.as("M")),u=Wn(r.as("y")),c=o<=Vn.ss&&["s",o]||o0,c[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=Xn,Gn.toString=Xn,Gn.toJSON=Xn,Gn.locale=en,Gn.localeData=nn,Gn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Gn.lang=tn,X("X",0,0,"unix"),X("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.21.0",t=Dt,o.fn=fn,o.min=function(){return At("isBefore",[].slice.call(arguments,0))},o.max=function(){return At("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Dt(1e3*e)},o.months=function(e,t){return _n(e,t,"months")},o.isDate=u,o.locale=ct,o.invalid=_,o.duration=Ft,o.isMoment=w,o.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},o.parseZone=function(){return Dt.apply(null,arguments).parseZone()},o.localeData=ft,o.isDuration=Rt,o.monthsShort=function(e,t){return _n(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},o.defineLocale=dt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=(r=ut(e))&&(o=r._config),t=j(o,t),(n=new C(t)).parentLocale=at[e],at[e]=n,ct(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return E(at)},o.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},o.normalizeUnits=I,o.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},o.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"},o.prototype=fn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(89)(e))},function(e,t,n){var r=n(9),o=n(53),i=n(32),a=n(31),s=n(46),l=function(e,t,n){var u,c,d,f,p=e&l.F,h=e&l.G,m=e&l.S,_=e&l.P,b=e&l.B,g=h?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,y=h?o:o[t]||(o[t]={}),v=y.prototype||(y.prototype={});for(u in h&&(n=t),n)d=((c=!p&&g&&void 0!==g[u])?g:n)[u],f=b&&c?s(d,r):_&&"function"==typeof d?s(Function.call,d):d,g&&a(g,u,d,e&l.U),y[u]!=d&&i(y,u,f),_&&v[u]!=d&&(v[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(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 c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,V=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,J={},U={};function X(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(U[e]=o),t&&(U[t[0]]=function(){return N(o.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=F(t,e.localeData()),J[t]=J[t]||function(e){var t,n,r,o=e.match(W);for(t=0,n=o.length;t=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var z=/\d/,B=/\d\d/,q=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,$=/\d\d?/,Q=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ie=/[+-]?\d+/,ae=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[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,ue={};function ce(e,t,n){ue[e]=D(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o})))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function he(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=x(e)}),n=0;n68?1900:2e3)};var Le,Se=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ce(this,e,n),o.updateOffset(this,t),this):je(this,e)}}function je(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ce(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Ae(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Ae(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?Ee(e)?29:28:31-r%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ue(e,t,n){var r=7+t-n,o=(7+Je(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Xe(e,t,n,r,o){var i,a,s=(7+n-r)%7,l=Ue(e,r,o),u=1+7*(t-1)+s+l;return u<=0?a=Oe(i=e-1)+u:u>Oe(e)?(i=e+1,a=u-Oe(e)):(i=e,a=u),{year:i,dayOfYear:a}}function Ge(e,t,n){var r,o,i=Ue(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Fe(o,t,n)):a>Fe(e.year(),t,n)?(r=a-Fe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Fe(e,t,n){var r=Ue(e,t,n),o=Ue(e+1,t,n);return(Oe(e)-r+o)/7}X("w",["ww",2],"wo","week"),X("W",["WW",2],"Wo","isoWeek"),P("week","w"),P("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",$),ce("ww",$,B),ce("W",$),ce("WW",$,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=x(e)}),X("d",0,"do","day"),X("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),X("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),X("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),X("e",0,0,"weekday"),X("E",0,0,"isoWeekday"),P("day","d"),P("weekday","e"),P("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",$),ce("e",$),ce("E",$),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,r){t[r]=x(e)});var ze="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ke=le,Ze=le,$e=le;function Qe(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),l.push(i),u.push(r),u.push(o),u.push(i);for(a.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function et(){return this.hours()%12||12}function tt(e,t){X(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function nt(e,t){return t._meridiemParse}X("H",["HH",2],0,"hour"),X("h",["hh",2],0,et),X("k",["kk",2],0,function(){return this.hours()||24}),X("hmm",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)}),X("hmmss",0,0,function(){return""+et.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),X("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),X("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),tt("a",!0),tt("A",!1),P("hour","h"),Y("hour",13),ce("a",nt),ce("A",nt),ce("H",$),ce("h",$),ce("k",$),ce("HH",$,B),ce("hh",$,B),ce("kk",$,B),ce("hmm",Q),ce("hmmss",ee),ce("Hmm",Q),ce("Hmmss",ee),he(["H","HH"],ve),he(["k","kk"],function(e,t,n){var r=x(e);t[ve]=24===r?0:r}),he(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),he(["h","hh"],function(e,t,n){t[ve]=x(e),h(n).bigHour=!0}),he("hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r)),h(n).bigHour=!0}),he("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o)),h(n).bigHour=!0}),he("Hmm",function(e,t,n){var r=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r))}),he("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[ve]=x(e.substr(0,r)),t[we]=x(e.substr(r,2)),t[ke]=x(e.substr(o))});var rt,ot=De("Hours",!0),it={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ie,monthsShort:Re,week:{dow:0,doy:6},weekdays:ze,weekdaysMin:qe,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},at={},st={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ut(t){var r=null;if(!at[t]&&void 0!==e&&e&&e.exports)try{r=rt._abbr,n(715)("./"+t),ct(r)}catch(e){}return at[t]}function ct(e,t){var n;return e&&(n=s(t)?ft(e):dt(e,t))&&(rt=n),rt._abbr}function dt(e,t){if(null!==t){var n=it;if(t.abbr=e,null!=at[e])S("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."),n=at[e]._config;else if(null!=t.parentLocale){if(null==at[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=at[t.parentLocale]._config}return at[e]=new C(j(n,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ct(e),at[e]}return delete at[e],null}function ft(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return rt;if(!i(e)){if(t=ut(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ut(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}i++}return null}(e)}function pt(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ye]<1||n[ye]>Ae(n[be],n[ge])?ye:n[ve]<0||n[ve]>24||24===n[ve]&&(0!==n[we]||0!==n[ke]||0!==n[xe])?ve:n[we]<0||n[we]>59?we:n[ke]<0||n[ke]>59?ke:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tye)&&(t=ye),h(e)._overflowWeeks&&-1===t&&(t=Te),h(e)._overflowWeekday&&-1===t&&(t=Me),h(e).overflow=t),e}function ht(e,t,n){return null!=e?e:null!=t?t:n}function mt(e){var t,n,r,i,a,s=[];if(!e._d){for(r=function(e){var t=new Date(o.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[ye]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=ht(t.GG,e._a[be],Ge(Dt(),1,4).year),r=ht(t.W,1),((o=ht(t.E,1))<1||o>7)&&(l=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var u=Ge(Dt(),i,a);n=ht(t.gg,e._a[be],u.year),r=ht(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i}r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Xe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=ht(e._a[be],r[be]),(e._dayOfYear>Oe(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Je(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ye]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ve]&&0===e._a[we]&&0===e._a[ke]&&0===e._a[xe]&&(e._nextDay=!0,e._a[ve]=0),e._d=(e._useUTC?Je:function(e,t,n,r,o,i,a){var s=new Date(e,t,n,r,o,i,a);return e<100&&e>=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var _t=/^\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)?)?$/,bt=/^\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)?)?$/,gt=/Z|[+-]\d\d(?::?\d\d)?/,yt=[["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}/]],vt=[["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/]],wt=/^\/?Date\((\-?\d+)/i;function kt(e){var t,n,r,o,i,a,s=e._i,l=_t.exec(s)||bt.exec(s);if(l){for(h(e).iso=!0,t=0,n=yt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),u+=n.length),U[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),_e(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=l-u,s.length>0&&h(e).unusedInput.push(s),e._a[ve]<=12&&!0===h(e).bigHour&&e._a[ve]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[ve]=(c=e._locale,d=e._a[ve],null==(f=e._meridiem)?d:null!=c.meridiemHour?c.meridiemHour(d,f):null!=c.isPM?((p=c.isPM(f))&&d<12&&(d+=12),p||12!==d||(d=0),d):d),mt(e),pt(e)}else Ot(e);else kt(e);var c,d,f,p}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||ft(e._l),null===t||void 0===n&&""===t?_({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(pt(t)):(u(t)?e._d=t:i(n)?function(e){var t,n,r,o,i;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:_()});function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Dt();for(n=t[0],r=1;ri&&(t=i),function(e,t,n,r,o){var i=Xe(e,t,n,r,o),a=Je(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,e,t,n,r,o))}X(0,["gg",2],0,function(){return this.weekYear()%100}),X(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),P("weekYear","gg"),P("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",ie),ce("g",ie),ce("GG",$,B),ce("gg",$,B),ce("GGGG",ne,K),ce("gggg",ne,K),ce("GGGGG",re,Z),ce("ggggg",re,Z),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=x(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),X("Q",0,"Qo","quarter"),P("quarter","Q"),Y("quarter",7),ce("Q",z),he("Q",function(e,t){t[ge]=3*(x(e)-1)}),X("D",["DD",2],"Do","date"),P("date","D"),Y("date",9),ce("D",$),ce("DD",$,B),ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),he(["D","DD"],ye),he("Do",function(e,t){t[ye]=x(e.match($)[0])});var an=De("Date",!0);X("DDD",["DDDD",3],"DDDo","dayOfYear"),P("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",q),he(["DDD","DDDD"],function(e,t,n){n._dayOfYear=x(e)}),X("m",["mm",2],0,"minute"),P("minute","m"),Y("minute",14),ce("m",$),ce("mm",$,B),he(["m","mm"],we);var sn=De("Minutes",!1);X("s",["ss",2],0,"second"),P("second","s"),Y("second",15),ce("s",$),ce("ss",$,B),he(["s","ss"],ke);var ln,un=De("Seconds",!1);for(X("S",0,0,function(){return~~(this.millisecond()/100)}),X(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),X(0,["SSS",3],0,"millisecond"),X(0,["SSSS",4],0,function(){return 10*this.millisecond()}),X(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),X(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),X(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),X(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),X(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),P("millisecond","ms"),Y("millisecond",16),ce("S",te,z),ce("SS",te,B),ce("SSS",te,q),ln="SSSS";ln.length<=9;ln+="S")ce(ln,oe);function cn(e,t){t[xe]=x(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")he(ln,cn);var dn=De("Milliseconds",!1);X("z",0,0,"zoneAbbr"),X("zz",0,0,"zoneName");var fn=v.prototype;function pn(e){return e}fn.add=Zt,fn.calendar=function(e,t){var n=e||Dt(),r=Vt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(D(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},fn.clone=function(){return new v(this)},fn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Vt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":i=Qt(this,r)/12;break;case"month":i=Qt(this,r);break;case"quarter":i=Qt(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-o)/864e5;break;case"week":i=(this-r-o)/6048e5;break;default:i=this-r}return n?i:k(i)},fn.endOf=function(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},fn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},fn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.fromNow=function(e){return this.from(Dt(),e)},fn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},fn.toNow=function(e){return this.to(Dt(),e)},fn.get=function(e){return D(this[e=I(e)])?this[e]():this},fn.invalidAt=function(){return h(this).overflow},fn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},fn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)},fn.toJSON=function(){return this.isValid()?this.toISOString():null},fn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},fn.unix=function(){return Math.floor(this.valueOf()/1e3)},fn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},fn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},fn.year=Se,fn.isLeapYear=function(){return Ee(this.year())},fn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},fn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},fn.quarter=fn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},fn.month=Ye,fn.daysInMonth=function(){return Ae(this.year(),this.month())},fn.week=fn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},fn.isoWeek=fn.isoWeeks=function(e){var t=Ge(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},fn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},fn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},fn.date=an,fn.day=fn.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},fn.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")},fn.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},fn.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")},fn.hour=fn.hours=ot,fn.minute=fn.minutes=sn,fn.second=fn.seconds=un,fn.millisecond=fn.milliseconds=dn,fn.utcOffset=function(e,t,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Wt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Kt(this,Ft(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Jt(this)},fn.utc=function(e){return this.utcOffset(0,e)},fn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this},fn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Wt(ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},fn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},fn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},fn.isLocal=function(){return!!this.isValid()&&!this._isUTC},fn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},fn.isUtc=Ut,fn.isUTC=Ut,fn.zoneAbbr=function(){return this._isUTC?"UTC":""},fn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},fn.dates=O("dates accessor is deprecated. Use date instead.",an),fn.months=O("months accessor is deprecated. Use month instead",Ye),fn.years=O("years accessor is deprecated. Use year instead",Se),fn.zone=O("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()}),fn.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(g(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var hn=C.prototype;function mn(e,t,n,r){var o=ft(),i=p().set(r,t);return o[n](i,e)}function _n(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return mn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=mn(e,r,n,"month");return o}function bn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,i=ft(),a=e?i._week.dow:0;if(null!=n)return mn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=mn(t,(o+a)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=pn,hn.postformat=pn,hn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)D(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)},hn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Pe).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Pe.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,o,i;if(this._monthsParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:"MMM"===t?-1!==(o=Le.call(this._shortMonthsParse,a))?o:-1!==(o=Le.call(this._longMonthsParse,a))?o:null:-1!==(o=Le.call(this._longMonthsParse,a))?o:-1!==(o=Le.call(this._shortMonthsParse,a))?o:null}.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=We),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ne),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Ge(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){return e?i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:i(this._weekdays)?this._weekdays:this._weekdays.standalone},hn.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,o,i;if(this._weekdaysParseExact)return function(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"dddd"===t?-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:"ddd"===t?-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:null:-1!==(o=Le.call(this._minWeekdaysParse,a))?o:-1!==(o=Le.call(this._weekdaysParse,a))?o:-1!==(o=Le.call(this._shortWeekdaysParse,a))?o:null}.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ze),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ct("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===x(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",ct),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ft);var gn=Math.abs;function yn(e,t,n,r){var o=Ft(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function wn(e){return 4800*e/146097}function kn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Tn=xn("ms"),Mn=xn("s"),On=xn("m"),En=xn("h"),Ln=xn("d"),Sn=xn("w"),Dn=xn("M"),jn=xn("y");function Cn(e){return function(){return this.isValid()?this._data[e]:NaN}}var An=Cn("milliseconds"),Pn=Cn("seconds"),In=Cn("minutes"),Rn=Cn("hours"),Hn=Cn("days"),Yn=Cn("months"),Nn=Cn("years"),Wn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,M:11},Jn=Math.abs;function Un(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Jn(this._milliseconds)/1e3,r=Jn(this._days),o=Jn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Un(this._months)!==Un(d)?"-":"",h=Un(this._days)!==Un(d)?"-":"",m=Un(this._milliseconds)!==Un(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Gn=It.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=gn(this._milliseconds),this._days=gn(this._days),this._months=gn(this._months),e.milliseconds=gn(e.milliseconds),e.seconds=gn(e.seconds),e.minutes=gn(e.minutes),e.hours=gn(e.hours),e.months=gn(e.months),e.years=gn(e.years),this},Gn.add=function(e,t){return yn(this,e,t,1)},Gn.subtract=function(e,t){return yn(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"year"===e)return t=this._days+r/864e5,n=this._months+wn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(kn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=Tn,Gn.asSeconds=Mn,Gn.asMinutes=On,Gn.asHours=En,Gn.asDays=Ln,Gn.asWeeks=Sn,Gn.asMonths=Dn,Gn.asYears=jn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,l=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*vn(kn(s)+a),a=0,s=0),l.milliseconds=i%1e3,e=k(i/1e3),l.seconds=e%60,t=k(e/60),l.minutes=t%60,n=k(t/60),l.hours=n%24,a+=k(n/24),o=k(wn(a)),s+=o,a-=vn(kn(o)),r=k(s/12),s%=12,l.days=a,l.months=s,l.years=r,this},Gn.clone=function(){return Ft(this)},Gn.get=function(e){return e=I(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=An,Gn.seconds=Pn,Gn.minutes=In,Gn.hours=Rn,Gn.days=Hn,Gn.weeks=function(){return k(this.days()/7)},Gn.months=Yn,Gn.years=Nn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ft(e).abs(),o=Wn(r.as("s")),i=Wn(r.as("m")),a=Wn(r.as("h")),s=Wn(r.as("d")),l=Wn(r.as("M")),u=Wn(r.as("y")),c=o<=Vn.ss&&["s",o]||o0,c[4]=n,function(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=Xn,Gn.toString=Xn,Gn.toJSON=Xn,Gn.locale=en,Gn.localeData=nn,Gn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Gn.lang=tn,X("X",0,0,"unix"),X("x",0,0,"valueOf"),ce("x",ie),ce("X",/[+-]?\d+(\.\d{1,3})?/),he("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),he("x",function(e,t,n){n._d=new Date(x(e))}),o.version="2.20.1",t=Dt,o.fn=fn,o.min=function(){return At("isBefore",[].slice.call(arguments,0))},o.max=function(){return At("isAfter",[].slice.call(arguments,0))},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Dt(1e3*e)},o.months=function(e,t){return _n(e,t,"months")},o.isDate=u,o.locale=ct,o.invalid=_,o.duration=Ft,o.isMoment=w,o.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},o.parseZone=function(){return Dt.apply(null,arguments).parseZone()},o.localeData=ft,o.isDuration=Rt,o.monthsShort=function(e,t){return _n(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},o.defineLocale=dt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=it;null!=(r=ut(e))&&(o=r._config),t=j(o,t),(n=new C(t)).parentLocale=at[e],at[e]=n,ct(e)}else null!=at[e]&&(null!=at[e].parentLocale?at[e]=at[e].parentLocale:null!=at[e]&&delete at[e]);return at[e]},o.locales=function(){return E(at)},o.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},o.normalizeUnits=I,o.relativeTimeRounding=function(e){return void 0===e?Wn:"function"==typeof e&&(Wn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},o.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"},o.prototype=fn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(89)(e))},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=n.n(o),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),s=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired});function l(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||t+"Subscription",o=function(e){function o(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n,r));return i[t]=n.store,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),o.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[n]=null,e},o.prototype.render=function(){return r.Children.only(this.props.children)},o}(r.Component);return o.propTypes={store:s.isRequired,children:i.a.element.isRequired},o.childContextTypes=((e={})[t]=s.isRequired,e[n]=a,e),o}var u=l(),c=n(583),d=n.n(c),f=n(6),p=n.n(f);var h=null,m={notify:function(){}};var _=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=n,this.onStateChange=r,this.unsubscribe=null,this.listeners=m}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=h,e=h},notify:function(){for(var n=e=t,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},i=o.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,u=o.methodName,c=void 0===u?"connectAdvanced":u,f=o.renderCountProp,h=void 0===f?void 0:f,m=o.shouldHandleStateChanges,w=void 0===m||m,k=o.storeKey,x=void 0===k?"store":k,T=o.withRef,M=void 0!==T&&T,O=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),E=x+"Subscription",L=g++,S=((t={})[x]=s,t[E]=a,t),D=((n={})[E]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=l(n),i=b({},O,{getDisplayName:l,methodName:c,renderCountProp:h,shouldHandleStateChanges:w,storeKey:x,withRef:M,displayName:o,wrappedComponentName:n,WrappedComponent:t}),a=function(n){function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e,t));return r.version=L,r.state={},r.renderCount=0,r.store=e[x]||t[x],r.propsMode=Boolean(e[x]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+x+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+x+'" as a prop to "'+o+'".'),r.initSelector(),r.initSubscription(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,n),a.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[E]=t||this.context[E],e},a.prototype.componentDidMount=function(){w&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},a.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=v,this.store=null,this.selector.run=v,this.selector.shouldComponentUpdate=!1},a.prototype.getWrappedInstance=function(){return p()(M,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.prototype.initSubscription=function(){if(w){var e=(this.propsMode?this.props:this.context)[E];this.subscription=new _(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(y)):this.notifyNestedSubs()},a.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.prototype.addExtraProps=function(e){if(!(M||h||this.propsMode&&this.subscription))return e;var t=b({},e);return M&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[E]=this.subscription),t},a.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(r.createElement)(t,this.addExtraProps(e.props))},a}(r.Component);return a.WrappedComponent=t,a.displayName=o,a.childContextTypes=D,a.contextTypes=S,a.propTypes=S,d()(a,t)}}var k=Object.prototype.hasOwnProperty;function x(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function T(e,t){if(x(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),s=r(e,i),l=o(e,i);return(i.pure?I:P)(a,s,l,e,i)}var H=Object.assign||function(e){for(var t=1;t=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function N(e,t){return e===t}var W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,n=void 0===t?w:t,r=e.mapStateToPropsFactories,o=void 0===r?D:r,i=e.mapDispatchToPropsFactories,a=void 0===i?S:i,s=e.mergePropsFactories,l=void 0===s?A:s,u=e.selectorFactory,c=void 0===u?R:u;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,u=void 0===s||s,d=i.areStatesEqual,f=void 0===d?N:d,p=i.areOwnPropsEqual,h=void 0===p?T:p,m=i.areStatePropsEqual,_=void 0===m?T:m,b=i.areMergedPropsEqual,g=void 0===b?T:b,y=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=Y(e,o,"mapStateToProps"),w=Y(t,a,"mapDispatchToProps"),k=Y(r,l,"mergeProps");return n(c,H({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:w,initMergeProps:k,pure:u,areStatesEqual:f,areOwnPropsEqual:h,areStatePropsEqual:_,areMergedPropsEqual:g},y))}}();n.d(t,"Provider",function(){return u}),n.d(t,"createProvider",function(){return l}),n.d(t,"connectAdvanced",function(){return w}),n.d(t,"connect",function(){return W})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){"use strict";var r=n(923),o=n(535).isArray,i=n(535).isDate,a=n(920).sprintf,s=n(919),l=n(918),u=n(916);function c(e){return"string"==typeof e||"[object String]"===Object.prototype.toString.call(e)}function d(e){return c(e)&&":"===e[0]}function f(e,t){return t.reduce(function(e,t){return null!==(n=e)&&"[object Object]"===Object.prototype.toString.call(n)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null;var n},e)}function p(){s.EventEmitter.apply(this),this._registry={locale:"en",interpolate:!0,fallbackLocales:[],scope:null,translations:{},interpolations:{},normalizedKeys:{},separator:".",keepTrailingDot:!1,keyTransformer:function(e){return e},generateMissingEntry:function(e){return"missing translation: "+e}},this.registerTranslations("en",n(914)),this.setMaxListeners(0)}p.prototype=s.EventEmitter.prototype,p.prototype.constructor=s.EventEmitter,p.prototype.getLocale=function(){return this._registry.locale},p.prototype.setLocale=function(e){var t=this._registry.locale;return t!=e&&(this._registry.locale=e,this.emit("localechange",e,t)),t},p.prototype.getFallbackLocale=function(){return this._registry.fallbackLocales},p.prototype.setFallbackLocale=function(e){var t=this._registry.fallbackLocales;return this._registry.fallbackLocales=[].concat(e||[]),t},p.prototype.getAvailableLocales=function(){return this._registry.availableLocales||Object.keys(this._registry.translations)},p.prototype.setAvailableLocales=function(e){var t=this.getAvailableLocales();return this._registry.availableLocales=e,t},p.prototype.getSeparator=function(){return this._registry.separator},p.prototype.setSeparator=function(e){var t=this._registry.separator;return this._registry.separator=e,t},p.prototype.setInterpolate=function(e){var t=this._registry.interpolate;return this._registry.interpolate=e,t},p.prototype.getInterpolate=function(){return this._registry.interpolate},p.prototype.setKeyTransformer=function(e){var t=this._registry.keyTransformer;return this._registry.keyTransformer=e,t},p.prototype.getKeyTransformer=function(){return this._registry.keyTransformer},p.prototype.setMissingEntryGenerator=function(e){var t=this._registry.generateMissingEntry;return this._registry.generateMissingEntry=e,t},p.prototype.getMissingEntryGenerator=function(){return this._registry.generateMissingEntry},p.prototype.registerTranslations=function(e,t){var n={};return n[e]=t,r(!0,this._registry.translations,n),n},p.prototype.registerInterpolations=function(e){return r(!0,this._registry.interpolations,e)},p.prototype.onLocaleChange=p.prototype.addLocaleChangeListener=function(e){this.addListener("localechange",e)},p.prototype.offLocaleChange=p.prototype.removeLocaleChangeListener=function(e){this.removeListener("localechange",e)},p.prototype.onTranslationNotFound=p.prototype.addTranslationNotFoundListener=function(e){this.addListener("translationnotfound",e)},p.prototype.offTranslationNotFound=p.prototype.removeTranslationNotFoundListener=function(e){this.removeListener("translationnotfound",e)},p.prototype.onError=p.prototype.addErrorListener=function(e){this.addListener("error",e)},p.prototype.offError=p.prototype.removeErrorListener=function(e){this.removeListener("error",e)},p.prototype.translate=function(e,t){if(!o(e)&&!c(e)||!e.length)throw new Error("invalid argument: key");d(e)&&(e=e.substr(1)),e=this._registry.keyTransformer(e,t);var n=(t=r(!0,{},t)).locale||this._registry.locale;delete t.locale;var i=t.scope||this._registry.scope;delete t.scope;var a=t.separator||this._registry.separator;delete t.separator;var s=[].concat(t.fallbackLocale||this._registry.fallbackLocales);delete t.fallbackLocale;var l=this._normalizeKeys(n,i,e,a),u=f(this._registry.translations,l);if(null===u&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(u=this._fallback(n,i,e,t.fallback,t))),null===u&&s.length>0&&-1===s.indexOf(n))for(var p=0,h=s.length;p=0;i--)""===r[i]&&(r.splice(i,1),!0===this._registry.keepTrailingDot&&i==r.length&&(r[r.length-1]+=""+t));return r}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return a(e,r({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,o,i){if(!1===(i=i||{}).resolve)return o;var a,s;if(d(o))a=this.translate(o,r({},i,{locale:e,scope:t}));else if("function"==typeof(s=o)||"[object Function]"===Object.prototype.toString.call(s)){var l;i.object?(l=i.object,delete i.object):l=n,a=this._resolve(e,t,n,o(l,i))}else a=o;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,r,i){if(i=l(i,"fallback"),o(r)){for(var a=0,s=r.length;a1&&void 0!==arguments[1]?arguments[1]:"NEW",n=arguments[2],r=arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments[5];return function(s){return"new"==t&&(t="NEW"),s(ne(e,t,n,r,i)).then(function(l){if(l){if("NEW"==t&&!o)return s(v(l.data[0].id)),s((0,a.replace)("/window/"+e+"/"+l.data[0].id));var u=0;l.data.forEach(function(e,t){e.rowId===r&&(u=t)}),"NEW"===t&&s(K(null,l.data[0].id)),t=l.data[u].id,s(C({data:xe(l.data[u].fieldsByName),docId:t,saveStatus:l.data[0].saveStatus,scope:ke(o),standardActions:l.data[0].standardActions,validStatus:l.data[0].validStatus,includedTabsInfo:l.data[0].includedTabsInfo,websocket:l.data[0].websocketEndpoint})),o?"NEW"===r&&(s(se(l.data,!1,"NEW",t,e)),s(le(l.data)),s(K(l.data[0].rowId))):s((0,b.getWindowBreadcrumb)(e)),(0,m.initLayout)("window",e,n,null,null,i).then(function(e){return s(j(e.data,ke(o)))}).then(function(n){o||s(te(n.layout.tabs,e,t,o))})}})}}function te(e,t,n,r){return function(o){var i={};e&&e.map(function(e,a){i[e.tabid]={},0!==a&&e.queryOnActivate||ge(e.tabid,t,n).then(function(t){i[e.tabid]=t,o(P(i,ke(r)))})})}}function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments[4];return function(i){return"NEW"===t?(0,h.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,h.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,h.getData)("window",e,t,n,r,null,null,o):(0,h.getData)("window",e,t,null,null,null,null,o).catch(function(){i(C({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,d.Set)(),validStatus:{}})),i((0,b.getWindowBreadcrumb)(e))})}}function re(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"NEW",o=arguments[3],i=arguments[4],a=arguments[5],s=arguments[6],l=arguments[7],u=arguments[8],c=this,d=arguments[9],m=arguments[10];return n=y(regeneratorRuntime.mark(function n(_){var b,g,y,v,w,k,x;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return b=Symbol(),g={entity:e,docType:t,docId:r,tabId:o,rowId:i,property:a,value:s,isAdvanced:u,viewId:d,isEdit:m},n.next=4,_(Z("pending"));case 4:return n.next=6,_({type:f.PATCH_REQUEST,symbol:b,options:g});case 6:return n.prev=6,n.next=9,(0,h.patchRequest)(g);case 9:return y=n.sent,v=y.data instanceof Array?y.data:[y.data],w=v[0],n.next=14,_(se(v,l,i,r,t,u));case 14:if(!w||!w.validStatus||w.validStatus.valid||a!==w.validStatus.fieldName){n.next=23;break}return n.next=17,_(Z("error"));case 17:return n.next=19,_({type:f.PATCH_FAILURE,symbol:b});case 19:k=w.validStatus.reason,_((0,p.addNotification)("Error: "+k.split(" ",4).join(" ")+"...",k,5e3,"error","")),n.next=28;break;case 23:return n.next=25,_(Z("saved"));case 25:return n.next=27,_({type:f.PATCH_SUCCESS,symbol:b});case 27:return n.abrupt("return",v);case 28:n.next=41;break;case 30:return n.prev=30,n.t0=n.catch(6),n.next=34,_(Z("error"));case 34:return n.next=36,_({type:f.PATCH_FAILURE,symbol:b});case 36:return n.next=38,(0,h.getData)(e,t,r,o,i,null,null,u,null,d);case 38:return x=n.sent,n.next=41,_(se(x.data,l,i,r,t,u));case 41:case"end":return n.stop()}},n,c,[[6,30]])})),function(e){return n.apply(this,arguments)}}function oe(e,t,n,r,o,i,a){return function(s){(0,h.getData)(e,t,n,r,o,null,null,a).then(function(e){s(se(e.data,i,o,n,t,a))})}}function ie(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(X(r,e.fieldsByName[r],t))}):n("includedTabsInfo"===r?V("master",e[r]):H(r,e[r],t))})}}function ae(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(G(r,e.fieldsByName[r],e.tabid,e.rowId,t))}):n(W(r,e[r],e.tabid,e.rowId,t))})}}function se(e,t,n,o,i,a){return function(o){("function"==typeof e.splice?e:[e]).map(function(e,i){var s=e.fieldsByName?r({},e,{fieldsByName:xe(e.fieldsByName)}):e;0===i&&"NEW"===n?o(J(s,s.tabid,s.rowId,"master")):e.rowId&&!t?o(ae(s,"master")):(e.rowId&&o(ae(s,"master")),a&&o(ie(s,"master")),o(ie(s,ke(t&&0===i))))})}}function le(e){return function(t){var n=function(e){e.rowId?t(R("master",e.tabid,e.rowId,e.saveStatus)):(e.validStatus&&t(N("master",e.validStatus)),e.saveStatus&&t(Y("master",e.saveStatus)),e.includedTabsInfo&&t(V("master",e.includedTabsInfo)))};Array.isArray(e)?e.map(function(e){n(e)}):n(e)}}function ue(e,t,n,r,o,i){return function(a){n&&r?(a(G(e,{value:t},n,r,"master")),o&&"process"!==i&&a(X(e,{value:t},"modal"))):(a(X(e,{value:t},ke(o))),o&&"process"!==i&&a(X(e,{value:t},"master")))}}function ce(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,p.setNotificationProgress)(t,r))}function de(e,t,n){var r=this;return function(a){var s=i.default.translate("window.attachment.title.pending"),l=i.default.translate("window.attachment.title.done"),u=i.default.translate("window.attachment.title.error"),c=o.default.CancelToken.source();a((0,p.addNotification)(s,i.default.translate("window.attachment.uploading"),0,"primary",null,c));var d={onUploadProgress:ce.bind(r,a,s),cancelToken:c.token};o.default.post(config.API_URL+"/window/"+e+"/"+t+"/attachments",n,d).then(function(){return a((0,p.addNotification)(l,i.default.translate("window.attachment.upload.success"),5e3,"primary"))}).finally(function(){return a((0,p.deleteNotification)(s))}).catch(function(e){o.default.isCancel(e)?a((0,p.addNotification)(u,"Upload terminated by the user",5e3,"warning","disableMouse")):a((0,p.addNotification)(u,i.default.translate("window.attachment.upload.error"),5e3,"error"))})}}function fe(e){var t,n=this,o=e.ids,i=e.processType,a=e.rowId,s=e.tabId,l=e.type,u=e.viewId,c=e.selectedTab,d=e.childViewId,f=e.childViewSelectedIds,h=e.parentViewId,_=e.parentViewSelectedIds,b=null;return t=y(regeneratorRuntime.mark(function e(t){var g,y,v,w,k;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t((0,p.setProcessPending)());case 2:return g=void 0,e.prev=3,e.next=6,ye({ids:o,processId:i,rowId:a,tabId:s,type:l,viewId:u,selectedTab:c,childViewId:d,childViewSelectedIds:f,parentViewId:h,parentViewSelectedIds:_});case 6:g=e.sent,e.next=16;break;case 9:return e.prev=9,e.t0=e.catch(3),e.next=13,t(q());case 13:return e.next=15,t((0,p.setProcessSaved)());case 15:throw e.t0;case 16:if(!g.data){e.next=57;break}if(y=xe(g.data.fieldsByName),b=g.data.pinstanceId,0!==Object.keys(y).length){e.next=38;break}return v=void 0,e.prev=21,e.next=24,ve(i,b);case 24:return v=e.sent,e.next=27,t(pe(v,i,b));case 27:e.next=36;break;case 29:return e.prev=29,e.t1=e.catch(21),e.next=33,t(q());case 33:return e.next=35,t((0,p.setProcessSaved)());case 35:throw e.t1;case 36:e.next=57;break;case 38:return e.next=40,t(C({data:y,scope:"modal"}));case 40:return w=void 0,e.prev=41,e.next=44,(0,m.initLayout)("process",i);case 44:return w=e.sent,e.next=47,t((0,p.setProcessSaved)());case 47:return k=r({},w.data,{pinstanceId:b}),e.next=50,t(j(k,"modal"));case 50:e.next=57;break;case 52:return e.prev=52,e.t2=e.catch(41),e.next=56,t((0,p.setProcessSaved)());case 56:throw e.t2;case 57:case"end":return e.stop()}},e,n,[[3,9],[21,29],[41,52]])})),function(e){return t.apply(this,arguments)}}function pe(e,t,n){var r,o=this;return r=y(regeneratorRuntime.mark(function r(i){var s,l,u,c,d;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(s=e.data,l=s.error,u=s.summary,c=s.action,!l){r.next=10;break}return r.next=4,i((0,p.addNotification)("Process error",u,5e3,"error"));case 4:return r.next=6,i((0,p.setProcessSaved)());case 6:return r.next=8,i(q());case 8:r.next=50;break;case 10:if(d=!1,!c){r.next=42;break}r.t0=c.type,r.next="openView"===r.t0?15:"openReport"===r.t0?20:"openDocument"===r.t0?22:"openIncludedView"===r.t0?33:"closeIncludedView"===r.t0?36:"selectViewRows"===r.t0?39:42;break;case 15:return r.next=17,i(q());case 17:return r.next=19,i(w(c.windowId,c.viewId));case 19:return r.abrupt("break",42);case 20:return(0,h.openFile)("process",t,n,"print",c.filename),r.abrupt("break",42);case 22:return r.next=24,i(q());case 24:if(!c.modal){r.next=30;break}return d=!0,r.next=28,i(z("",c.windowId,"window",null,null,!!c.advanced&&c.advanced,"","",c.documentId));case 28:r.next=32;break;case 30:return r.next=32,i((0,a.push)("/window/"+c.windowId+"/"+c.documentId));case 32:return r.abrupt("break",42);case 33:return r.next=35,i((0,_.setListIncludedView)({windowType:c.windowId,viewId:c.viewId,viewProfileId:c.profileId}));case 35:return r.abrupt("break",42);case 36:return r.next=38,i((0,_.setListIncludedView)({windowType:c.windowId,viewId:c.viewId}));case 38:return r.abrupt("break",42);case 39:return r.next=41,i(Q(c.rowIds,c.windowId));case 41:return r.abrupt("break",42);case 42:if(!u){r.next=45;break}return r.next=45,i((0,p.addNotification)("Process",u,5e3,"primary"));case 45:return r.next=47,i((0,p.setProcessSaved)());case 47:if(d){r.next=50;break}return r.next=50,i(B());case 50:case"end":return r.stop()}},r,o)})),function(e){return r.apply(this,arguments)}}function he(e,t,n,r){return function(o){var i=!0,a=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0){var c=l.value;o(U(e,c,n))}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}o(le(r.data))}}function me(e,t,n,r,i,a){return o.default.get(config.API_URL+"/"+e+"/"+t+(n?"/"+n:"")+(r?"/"+r:"")+(i?"/"+i:"")+"/field/"+a+"/zoomInto?showError=true")}function _e(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId,r=e.tabId,i=e.rowId;return o.default.post(config.API_URL+"/window/"+t+"/"+n+"/"+r+"/"+i+"/discardChanges")}function be(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId;return o.default.post(config.API_URL+"/window/"+t+"/"+n+"/discardChanges")}function ge(e,t,n,o){return(0,h.getData)("window",t,n,e,null,null,null,null,o).then(function(e){return e.data&&e.data.map(function(e){return r({},e,{fieldsByName:xe(e.fieldsByName)})})})}function ye(e){var t=e.processId,n=e.viewId,r=e.type,i=e.ids,a=e.tabId,s=e.rowId,l=e.selectedTab,u=e.childViewId,c=e.childViewSelectedIds,d=e.parentViewId,f=e.parentViewSelectedIds,p={processId:t};if(n?(p.viewId=n,p.viewDocumentIds=i,u&&(p.childViewId=u,p.childViewSelectedIds=c),d&&(p.parentViewId=d,p.parentViewSelectedIds=f instanceof Array?f:[f])):(p.documentId=Array.isArray(i)?i[0]:i,p.documentType=r,p.tabId=a,p.rowId=s),l){var h=l.tabId,m=l.rowIds;h&&m&&(p.selectedTab={tabId:h,rowIds:m})}return o.default.post(config.API_URL+"/process/"+t,p)}function ve(e,t){return o.default.get(config.API_URL+"/process/"+e+"/"+t+"/start")}function we(){var e=window.document,t=e.documentElement,n=t.requestFullscreen||t.mozRequestFullScreen||t.webkitRequestFullScreen||t.msRequestFullscreen,r=e.exitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen||e.msExitFullscreen;e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement?r.call(e):n.call(t)}function ke(e){return e?"modal":"master"}function xe(e){return Me(Oe(e))}function Te(e){if(e){if(e instanceof Date)return e;if(c.default.isMoment(e))return new Date(e);var t=e.substring(0,e.length-7);return new Date(t)}return""}function Me(e){var t=["Date","DateTime","Time"];return Object.keys(e).reduce(function(n,o){var i=e[o],a=t.indexOf(i.widgetType)>-1;return n[o]=a&&i.value?r({},i,{value:Te(i.value)}):i,n},{})}function Oe(e){return Object.keys(e).reduce(function(t,n){return t[n]=null===e[n].value?r({},e[n],{value:""}):e[n],t},{})}function Ee(e,t){var n=-1;if(!e)return n;for(var r=0;r2&&void 0!==arguments[2]&&arguments[2],o=t||[],i=[],a=r({},e,{indent:o});if(i=i.concat([a]),n&&(o[o.length-2]=!1),e.includedDocuments)for(var s=0;s0&&void 0!==arguments[0]?arguments[0]:{}).tries,i=void 0===o?3:o;n.sockClient.connected||i<=0?(n.sockSubscription=n.sockClient.subscribe(e,function(r){e===n.sockTopic&&t(JSON.parse(r.body))}),n.sockTopic=e):setTimeout(function(){r({tries:i-1})},200)},o=function(){n.sock=new s.default(config.WS_URL),n.sockClient=u.default.Stomp.over(n.sock),n.sockClient.debug=null,n.sockClient.connect({},r)};Ae.call(this,o)||o()}}function Ae(e){var t=this.sockClient&&this.sockClient.connected&&this.sockSubscription;return t&&(this.sockSubscription.unsubscribe(),this.sockClient.disconnect(e),this.sockTopic=null),t}"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(v,"setLatestNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(w,"openRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(k,"closeRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(x,"openFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(T,"closeFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(M,"allowOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(O,"disableOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(E,"allowShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(L,"disableShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(S,"activateTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(D,"unselectTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(j,"initLayoutSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(C,"initDataSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(A,"clearMasterData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(P,"addRowData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(I,"sortTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(R,"updateRowStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(H,"updateDataProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Y,"updateDataSaveStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(N,"updateDataValidStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(W,"updateRowProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(V,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(J,"addNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(U,"deleteRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(X,"updateDataFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(G,"updateRowFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(F,"noConnection","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(z,"openModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(B,"closeProcessModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(q,"closeModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(K,"updateModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Z,"indicatorState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register($,"removeSelectedTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Q,"selectTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ee,"createWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(te,"initTabs","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ne,"initWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(re,"patch","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(oe,"fireUpdateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ie,"updateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ae,"updateRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(se,"mapDataToState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(le,"updateStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ue,"updatePropertyValue","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ce,"handleUploadProgress","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(de,"attachFileAction","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(fe,"createProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(pe,"handleProcessResponse","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(he,"deleteLocal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(me,"getZoomIntoWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(_e,"discardNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(be,"discardNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ge,"getTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ye,"getProcessData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ve,"startProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(we,"toggleFullScreen","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(ke,"getScope","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(xe,"parseToDisplay","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Te,"parseDateWithCurrenTimezone","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Me,"parseDateToReadable","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Oe,"nullToEmptyStrings","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Ee,"findRowByPropName","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Le,"getItemsByProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Se,"getRowsData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(De,"mapIncluded","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(je,"collapsedMap","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Ce,"connectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),__REACT_HOT_LOADER__.register(Ae,"disconnectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"))},function(e,t,n){var r=n(144)("wks"),o=n(81),i=n(9).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(1),o=n(910);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},function(e,t,n){var r; /*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see @@ -9,12 +9,7 @@ Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(8),o=n(575),i=n(52),a=Object.defineProperty;t.f=n(21)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifications=d,t.getNotificationsEndpoint=f,t.markAllAsRead=p,t.markAsRead=h,t.deleteUserNotification=m,t.getImageAction=_,t.postImageAction=b,t.getKPIsDashboard=g,t.getTargetIndicatorsDashboard=y,t.getKPIData=v,t.changeKPIItem=w,t.changeTargetIndicatorsItem=k,t.getTargetIndicatorsData=x,t.setUserDashboardWidgets=T,t.getMessages=M,t.createUrlAttachment=O,t.languageSuccess=L,t.logoutSuccess=S,t.loginSuccess=D,t.enableTutorial=j,t.addNotification=C,t.setNotificationProgress=A,t.deleteNotification=P,t.clearNotifications=I,t.updateUri=R,t.getNotificationsSuccess=H,t.readNotification=Y,t.newNotification=N,t.removeNotification=W,t.readAllNotifications=J,t.deleteAllNotifications=V,t.setProcessPending=U,t.setProcessSaved=X,t.userSessionInit=G,t.userSessionUpdate=F;var r=c(n(38)),o=c(n(2)),i=c(n(403)),a=n(23),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(108)),l=n(36),u=n(35);function c(e){return e&&e.__esModule?e:{default:e}}function d(){return r.default.get(config.API_URL+"/notifications/all?limit=20")}function f(){return r.default.get(config.API_URL+"/notifications/websocketEndpoint")}function p(){return r.default.put(config.API_URL+"/notifications/all/read")}function h(e){return r.default.put(config.API_URL+"/notifications/"+e+"/read")}function m(e){return r.default.delete(config.API_URL+"/notifications?ids="+e)}function _(e){return(0,r.default)({url:config.API_URL+"/image/"+e+"?maxWidth=200&maxHeight=200",responseType:"blob"}).then(function(e){return e.data})}function b(e){return r.default.post(config.API_URL+"/image",e).then(function(e){return e.data})}function g(){return r.default.get(config.API_URL+"/dashboard/kpis?silentError=true")}function y(){return r.default.get(config.API_URL+"/dashboard/targetIndicators?silentError=true")}function v(e){return r.default.get(config.API_URL+"/dashboard/kpis/"+e+"/data?silentError=true")}function w(e,t,n){return r.default.patch(config.API_URL+"/dashboard/kpis/"+e,[{op:"replace",path:t,value:n}])}function k(e,t,n){return r.default.patch(config.API_URL+"/dashboard/targetIndicators/"+e,[{op:"replace",path:t,value:n}])}function x(e){return r.default.get(config.API_URL+"/dashboard/targetIndicators/"+e+"/data?silentError=true")}function T(e){return r.default.patch(config.API_URL+"/dashboard/kpis",e)}function M(e){return r.default.get(config.API_URL+"/i18n/messages"+(e?"?="+e:""))}function O(e){var t=e.windowId,n=e.documentId,o=e.name,i=e.url;return r.default.post(config.API_URL+"/window/"+t+"/"+n+"/attachments/addUrl",{name:o,url:i})}function E(e,t){var n=e.toLowerCase(),r={defaultFormat:"0,0.00[000]",delimiters:{thousands:t.numberGroupingSeparator||",",decimal:t.numberDecimalSeparator||"."}};void 0===i.default.locales[n]&&i.default.register("locale",n,r),void 0!==i.default.locales[n]&&(i.default.locale(n),r.defaultFormat&&i.default.defaultFormat(r.defaultFormat))}function L(e){localStorage.setItem(l.LOCAL_LANG,e),o.default.locale(e),r.default.defaults.headers.common["Accept-Language"]=e}function S(e){e.close(),localStorage.removeItem("isLogged")}function D(e){return function(t){localStorage.setItem("isLogged",!0),(0,u.getUserSession)().then(function(n){var r=n.data;t(G(r)),L(r.language.key),E(r.language.key,r.locale),e.initSessionClient(r.websocketEndpoint,function(e){var n=JSON.parse(e.body);t(F(n)),n.language&&L(n.language.key),n.locale&&E(n.language.key,n.locale),d().then(function(e){t(H(e.data.notifications,e.data.unreadCount))})})}),f().then(function(n){e.initNotificationClient(n,function(e){var n=JSON.parse(e.body);if("Read"===n.eventType)t(Y(n.notificationId,n.unreadCount));else if("ReadAll"===n.eventType)t(J());else if("Delete"===n.eventType)t(W(n.notificationId,n.unreadCount));else if("DeleteAll"===n.eventType)t(V());else if("New"===n.eventType){t(N(n.notification,n.unreadCount));var r=n.notification;r.important&&t(C("Important notification",r.message,5e3,"primary"))}})}),d().then(function(e){t(H(e.data.notifications,e.data.unreadCount))})}}function j(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:s.ENABLE_TUTORIAL,flag:e}}function C(e,t,n,r,o,i){return{type:s.ADD_NOTIFICATION,title:e,msg:t,shortMsg:o,time:n,notifType:r,id:Date.now(),onCancel:i}}function A(e,t){return{type:s.SET_NOTIFICATION_PROGRESS,key:e,progress:t}}function P(e){return{type:s.DELETE_NOTIFICATION,key:e}}function I(){return{type:s.CLEAR_NOTIFICATIONS}}function R(e,t,n,r){return function(o){var i=e+"?";t[n]=r;for(var s=Object.keys(t),l=0;l0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++e}}();n.d(t,"IGNORE_CLASS_NAME",function(){return f}),n.d(t,"default",function(){return p});var l=void 0,u={},c={},d=["touchstart","touchmove"],f="ignore-react-onclickoutside";function p(e,t){var n,p;return p=n=function(n){function f(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e));return t.__outsideClickHandler=function(e){if("function"!=typeof t.__clickOutsideHandlerProp){var n=t.getInstance();if("function"!=typeof n.props.handleClickOutside){if("function"!=typeof n.handleClickOutside)throw new Error("WrappedComponent lacks a handleClickOutside(event) function for processing outside click events.");n.handleClickOutside(e)}else n.props.handleClickOutside(e)}else t.__clickOutsideHandlerProp(e)},t.enableOnClickOutside=function(){if("undefined"!=typeof document&&!c[t._uid]){void 0===l&&(l=a()),c[t._uid]=!0;var e=t.props.eventTypes;e.forEach||(e=[e]),u[t._uid]=function(e){var n;t.props.disableOnClickOutside||null!==t.componentNode&&(t.props.preventDefault&&e.preventDefault(),t.props.stopPropagation&&e.stopPropagation(),t.props.excludeScrollbar&&(n=e,document.documentElement.clientWidth<=n.clientX||document.documentElement.clientHeight<=n.clientY)||function(e,t,n){if(e===t)return!0;for(;e.parentNode;){if(i(e,t,n))return!0;e=e.parentNode}return e}(e.target,t.componentNode,t.props.outsideClickIgnoreClass)===document&&t.__outsideClickHandler(e))},e.forEach(function(e){var n=null;-1!==d.indexOf(e)&&l&&(n={passive:!t.props.preventDefault}),document.addEventListener(e,u[t._uid],n)})}},t.disableOnClickOutside=function(){delete c[t._uid];var e=u[t._uid];if(e&&"undefined"!=typeof document){var n=t.props.eventTypes;n.forEach||(n=[n]),n.forEach(function(t){return document.removeEventListener(t,e)}),delete u[t._uid]}},t.getRef=function(e){return t.instanceRef=e},t._uid=s(),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(f,n),f.prototype.getInstance=function(){if(!e.prototype.isReactComponent)return this;var t=this.instanceRef;return t.getInstance?t.getInstance():t},f.prototype.componentDidMount=function(){if("undefined"!=typeof document&&document.createElement){var e=this.getInstance();if(t&&"function"==typeof t.handleClickOutside&&(this.__clickOutsideHandlerProp=t.handleClickOutside(e),"function"!=typeof this.__clickOutsideHandlerProp))throw new Error("WrappedComponent lacks a function for processing outside click events specified by the handleClickOutside config option.");this.componentNode=Object(o.findDOMNode)(this.getInstance()),this.enableOnClickOutside()}},f.prototype.componentDidUpdate=function(){this.componentNode=Object(o.findDOMNode)(this.getInstance())},f.prototype.componentWillUnmount=function(){this.disableOnClickOutside()},f.prototype.render=function(){var t=this,n=Object.keys(this.props).filter(function(e){return"excludeScrollbar"!==e}).reduce(function(e,n){return e[n]=t.props[n],e},{});return e.prototype.isReactComponent?n.ref=this.getRef:n.wrappedRef=this.getRef,n.disableOnClickOutside=this.disableOnClickOutside,n.enableOnClickOutside=this.enableOnClickOutside,Object(r.createElement)(e,n)},f}(r.Component),n.displayName="OnClickOutside("+(e.displayName||e.name||"Component")+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:t&&t.excludeScrollbar||!1,outsideClickIgnoreClass:f,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},p}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="Alt",o={OPEN_ACTIONS_MENU:"Alt+1",OPEN_NAVIGATION_MENU:"Alt+2",OPEN_INBOX_MENU:"Alt+3",OPEN_AVATAR_MENU:"Alt+4",OPEN_SIDEBAR_MENU_0:"Alt+5",OPEN_SIDEBAR_MENU_1:"Alt+6",OPEN_SIDEBAR_MENU_2:"Alt+7",DOC_STATUS:"Alt+I",TEXT_START:"Home",TEXT_END:"End",OPEN_ADVANCED_EDIT:"Alt+E",CLONE_DOCUMENT:"Alt+W",OPEN_PRINT_RAPORT:"Alt+P",OPEN_EMAIL:"Alt+K",OPEN_LETTER:"Alt+R",DELETE_DOCUMENT:"Alt+D",NEW_DOCUMENT:"Alt+N",TOGGLE_EDIT_MODE:"Alt+O",OPEN_SELECTED:"Alt+B",REMOVE_SELECTED:"Alt+Y",ADVANCED_EDIT:"Alt+E",SELECT_ALL_LEAFS:"Alt+S",EXPAND_INDENT:"+",COLLAPSE_INDENT:"-",TOGGLE_QUICK_INPUT:"Alt+Q",TOGGLE_EXPAND:"Alt++",NEXT_PAGE:"PageDown",PREV_PAGE:"PageUp",FIRST_PAGE:"Home",LAST_PAGE:"End",SELECT_ALL_ROWS:"Alt+A",QUICK_ACTION_POS:"Alt+U",QUICK_ACTION_TOGGLE:"Alt+L",COMPLETE_STATUS:"Alt+U",APPLY:"Alt+Enter",CANCEL:"Escape"},i=[o.EXPAND_INDENT,o.COLLAPSE_INDENT];t.disabledWithFocus=i;var a=o;t.default=a;"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(r,"mod","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/shortcuts/keymap.js"),__REACT_HOT_LOADER__.register(o,"keymaps","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/shortcuts/keymap.js"),__REACT_HOT_LOADER__.register(i,"disabledWithFocus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/shortcuts/keymap.js"),__REACT_HOT_LOADER__.register(a,"default","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/shortcuts/keymap.js"))},function(e,t,n){var r=n(3),o=n(11),i=n(51),a=/"/g,s=function(e,t,n,r){var o=String(i(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){var r=n(9),o=n(31),i=n(32),a=n(80)("src"),s=Function.toString,l=(""+s).split("toString");n(53).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(i(n,a)||o(n,a,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(e,t,n){var r=n(20),o=n(81);e.exports=n(21)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(950)},function(e,t,n){"use strict";var r=n(402);e.exports={getOrigin:function(e){if(!e)return null;var t=new r(e);if("file:"===t.protocol)return null;var n=t.port;return n||(n="https:"===t.protocol?"443":"80"),t.protocol+"//"+t.hostname+":"+n},isOriginEqual:function(e,t){var n=this.getOrigin(e)===this.getOrigin(t);return n},isSchemeEqual:function(e,t){return e.split(":")[0]===t.split(":")[0]},addPath:function(e,t){var n=e.split("?");return n[0]+t+(n[1]?"?"+n[1]:"")},addQuery:function(e,t){return e+(-1===e.indexOf("?")?"?"+t:"&"+t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAvailableLang=t.setUserLang=t.getUserLang=t.getUserSession=t.getAvatar=t.resetPasswordGetAvatar=t.resetPasswordComplete=t.getResetPasswordInfo=t.resetPasswordRequest=t.logoutRequest=t.loginCompletionRequest=t.localLoginRequest=t.loginRequest=t.quickActionsRequest=t.deleteStaticFilter=t.filterViewRequest=t.createViewRequest=t.deleteView=t.browseViewRequest=t.getViewRowsByIds=t.getViewLayout=t.getAttributesInstance=t.initLayout=void 0;var r=n(894),o=n(893),i=n(890);t.initLayout=r.initLayout,t.getAttributesInstance=r.getAttributesInstance,t.getViewLayout=o.getViewLayout,t.getViewRowsByIds=o.getViewRowsByIds,t.browseViewRequest=o.browseViewRequest,t.deleteView=o.deleteView,t.createViewRequest=o.createViewRequest,t.filterViewRequest=o.filterViewRequest,t.deleteStaticFilter=o.deleteStaticFilter,t.quickActionsRequest=o.quickActionsRequest,t.loginRequest=i.loginRequest,t.localLoginRequest=i.localLoginRequest,t.loginCompletionRequest=i.loginCompletionRequest,t.logoutRequest=i.logoutRequest,t.resetPasswordRequest=i.resetPasswordRequest,t.getResetPasswordInfo=i.getResetPasswordInfo,t.resetPasswordComplete=i.resetPasswordComplete,t.resetPasswordGetAvatar=i.resetPasswordGetAvatar,t.getAvatar=i.getAvatar,t.getUserSession=i.getUserSession,t.getUserLang=i.getUserLang,t.setUserLang=i.setUserLang,t.getAvailableLang=i.getAvailableLang},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=t.DATE_FORMAT="YYYY-MM-DDTHH:mm:ss.SSSZ",o=t.LOCAL_LANG="metasfreshLanguage",i=t.VIEW_EDITOR_RENDER_MODES_NEVER="never",a=t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND="on-demand",s=t.VIEW_EDITOR_RENDER_MODES_ALWAYS="always",l=t.DATE_FIELDS=["Date","DateTime","Time"],u=t.AMOUNT_FIELD_TYPES=["Amount","CostPrice"],c=t.AMOUNT_FIELD_FORMATS_BY_PRECISION=["0,0.[00000]","0,0.0[0000]","0,0.00[000]","0,0.000[00]","0,0.0000[0]","0,0.00000"],d=t.SPECIAL_FIELD_TYPES=["Color"],f=t.DATE_FIELD_TYPES=["Date","DateTime","Time"],p=t.DATE_FIELD_FORMATS={Date:"l",DateTime:"l LTS",Time:"LTS"},h=t.TIME_FIELD_TYPES=["Time"];"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(r,"DATE_FORMAT","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(o,"LOCAL_LANG","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(i,"VIEW_EDITOR_RENDER_MODES_NEVER","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(a,"VIEW_EDITOR_RENDER_MODES_ON_DEMAND","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(s,"VIEW_EDITOR_RENDER_MODES_ALWAYS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(l,"DATE_FIELDS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(u,"AMOUNT_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(c,"AMOUNT_FIELD_FORMATS_BY_PRECISION","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(d,"SPECIAL_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(f,"DATE_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(p,"DATE_FIELD_FORMATS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),__REACT_HOT_LOADER__.register(h,"TIME_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"))},function(e,t,n){"use strict";var r=n(541),o=n(939),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function u(e,t){if(null!==e&&void 0!==e)if("object"==typeof e||a(e)||(e=[e]),a(e))for(var n=0,r=e.length;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?f(e)+t:t}function h(){return!0}function m(e,t,n){return(0===e&&!y(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function _(e,t){return g(e,t,0)}function b(e,t){return g(e,t,t)}function g(e,t,n){return void 0===e?n:y(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function y(e){return e<0||0===e&&1/e==-1/0}function v(e){return w(e)||O(e)}function w(e){return!(!e||!e[L])}function k(e){return!(!e||!e[S])}function x(e){return!(!e||!e[D])}function T(e){return k(e)||x(e)}function M(e){return!(!e||!e[j])}function O(e){return!(!e||!e[C])}function E(e){return!(!e||"function"!=typeof e.equals||"function"!=typeof e.hashCode)}var L="@@__IMMUTABLE_ITERABLE__@@",S="@@__IMMUTABLE_KEYED__@@",D="@@__IMMUTABLE_INDEXED__@@",j="@@__IMMUTABLE_ORDERED__@@",C="@@__IMMUTABLE_RECORD__@@",A=function(e){return w(e)?e:$(e)},P=function(e){function t(e){return k(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(A),I=function(e){function t(e){return x(e)?e:ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(A),R=function(e){function t(e){return w(e)&&!T(e)?e:te(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(A);A.Keyed=P,A.Indexed=I,A.Set=R;var H=0,Y=1,N=2,W="function"==typeof Symbol&&Symbol.iterator,J="@@iterator",V=W||J,U=function(e){this.next=e};function X(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function G(){return{value:void 0,done:!0}}function F(e){return!!q(e)}function z(e){return e&&"function"==typeof e.next}function B(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(W&&e[W]||e[J]);if("function"==typeof t)return t}U.prototype.toString=function(){return"[Iterator]"},U.KEYS=H,U.VALUES=Y,U.ENTRIES=N,U.prototype.inspect=U.prototype.toSource=function(){return this.toString()},U.prototype[V]=function(){return this};var K=Object.prototype.hasOwnProperty;function Z(e){return e&&"number"==typeof e.length}var $=function(e){function t(e){return null===e||void 0===e?ue():v(e)?e.toSeq():function(e){var t=fe(e);if(t)return t;if("object"==typeof e)return new oe(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var n=this._cache;if(n){for(var r=n.length,o=0;o!==r;){var i=n[t?r-++o:o++];if(!1===e(i[1],i[0],this))break}return o}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,o=0;return new U(function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return X(e,i[0],i[1])})}return this.__iteratorUncached(e,t)},t}(A),Q=function(e){function t(e){return null===e||void 0===e?ue().toKeyedSeq():w(e)?k(e)?e.toSeq():e.fromEntrySeq():O(e)?e.toSeq():ce(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}($),ee=function(e){function t(e){return null===e||void 0===e?ue():w(e)?k(e)?e.entrySeq():e.toIndexedSeq():O(e)?e.toSeq().entrySeq():de(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}($),te=function(e){function t(e){return(w(e)&&!T(e)?e:ee(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}($);$.isSeq=le,$.Keyed=Q,$.Set=te,$.Indexed=ee;var ne="@@__IMMUTABLE_SEQ__@@";$.prototype[ne]=!0;var re=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[p(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var i=t?r-++o:o++;if(!1===e(n[i],i,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new U(function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return X(e,i,n[i])})},t}(ee),oe=function(e){function t(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return K.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,i=0;i!==o;){var a=r[t?o-++i:i++];if(!1===e(n[a],a,this))break}return i},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,i=0;return new U(function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return X(e,a,n[a])})},t}(Q);oe.prototype[j]=!0;var ie,ae=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._collection),r=0;if(z(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._collection);if(!z(n))return new U(G);var r=0;return new U(function(){var t=n.next();return t.done?t:X(e,r++,t.value)})},t}(ee),se=function(e){function t(e){this._iterator=e,this._iteratorCache=[]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return X(e,o,r[o++])})},t}(ee);function le(e){return!(!e||!e[ne])}function ue(){return ie||(ie=new re([]))}function ce(e){var t=Array.isArray(e)?new re(e):z(e)?new se(e):F(e)?new ae(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new oe(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function de(e){var t=fe(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function fe(e){return Z(e)?new re(e):z(e)?new se(e):F(e)?new ae(e):void 0}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(E(e)&&E(t)&&e.equals(t))}var he="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function _e(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>Te?function(e){var t=Ee[e];void 0===t&&(t=be(e),Oe===Me&&(Oe=0,Ee={}),Oe++,Ee[e]=t);return t}(e):be(e);if("function"==typeof e.hashCode)return me(e.hashCode());if("object"===t)return function(e){var t;if(we&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[xe]))return t;if(!ye){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[xe]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}t=++ke,1073741824&ke&&(ke=0);if(we)ve.set(e,t);else{if(void 0!==ge&&!1===ge(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ye)Object.defineProperty(e,xe,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[xe]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[xe]=t}}return t}(e);if("function"==typeof e.toString)return be(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function be(e){for(var t=0,n=0;n=0&&(u.get=function(t,n){return(t=p(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===Y||e.done?e:X(t,l-1,t===H?void 0:e.value[1],e)})},u}function He(e,t,n,r){var o=Fe(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate(function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)}),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(N,i),l=!0,u=0;return new U(function(){var e,i,c;do{if((e=s.next()).done)return r||o===Y?e:X(o,u++,o===H?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],l&&(l=t.call(n,c,i,a))}while(l);return o===N?e:X(o,i,c,e)})},o}function Ye(e,t,n){var r=Fe(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(l,u){l.__iterate(function(i,l){return(!t||u0}function Ve(e,t,n,r){var o=Fe(e),i=new re(n).map(function(e){return e.size});return o.size=r?i.max():i.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(Y,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=n.map(function(e){return e=A(e),B(o?e.reverse():e)}),a=0,s=!1;return new U(function(){var n;return s||(n=i.map(function(e){return e.next()}),s=r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?{value:void 0,done:!0}:X(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function Ue(e,t){return e===t?e:le(e)?t:e.constructor(t)}function Xe(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ge(e){return k(e)?P:x(e)?I:R}function Fe(e){return Object.create((k(e)?Q:x(e)?ee:te).prototype)}function ze(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):$.prototype.cacheResult.call(this)}function Be(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[n]=arguments[n+1];return bt(this,t,e)}function bt(e,t,n){for(var r=[],o=0;o0;)t[n]=arguments[n+1];return xt(e,t)}function yt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return xt(t,n,e)}function vt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return kt(e,t)}function wt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return kt(t,n,e)}function kt(e,t,n){return xt(e,t,function(e){return function t(n,r,o){return et(n)&&et(r)?xt(n,[r],t):e?e(n,r,o):r}}(n))}function xt(e,t,n){if(!et(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(v(e))return e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?I:P,a=r?function(t){o===e&&(o=ot(o)),o.push(t)}:function(t,r){var i=K.call(o,r),a=i&&n?n(o[r],t,r):t;i&&a===o[r]||(o===e&&(o=ot(o)),o[r]=a)},s=0;s0;)t[n]=arguments[n+1];return kt(this,t,e)}function Ot(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Ft(),function(e){return xt(e,t)})}function Et(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Ft(),function(e){return kt(e,t)})}function Lt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function St(){return this.__ownerID?this:this.__ensureOwner(new d)}function Dt(){return this.__ensureOwner()}function jt(){return this.__altered}Se.prototype.cacheResult=Le.prototype.cacheResult=De.prototype.cacheResult=je.prototype.cacheResult=ze;var Ct=function(e){function t(t){return null===t||void 0===t?Ft():At(t)&&!M(t)?t:Ft().withMutations(function(n){var r=e(t);Ze(r.size),r.forEach(function(e,t){return n.set(t,e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ft().withMutations(function(t){for(var n=0;n=e.length)throw new Error("Missing value for key: "+e[n]);t.set(e[n],e[n+1])}})},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return zt(this,e,t)},t.prototype.remove=function(e){return zt(this,e,a)},t.prototype.deleteAll=function(e){var t=A(e);return 0===t.size?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ft()},t.prototype.sort=function(e){return yn(Ne(this,e))},t.prototype.sortBy=function(e,t){return yn(Ne(this,t,e))},t.prototype.__iterator=function(e,t){return new Vt(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gt(this.size,this._root,e,this.__hash):0===this.size?Ft():(this.__ownerID=e,this.__altered=!1,this)},t}(P);function At(e){return!(!e||!e[Pt])}Ct.isMap=At;var Pt="@@__IMMUTABLE_MAP__@@",It=Ct.prototype;It[Pt]=!0,It.delete=It.remove,It.removeAll=It.deleteAll,It.concat=It.merge,It.setIn=ut,It.removeIn=It.deleteIn=dt,It.update=pt,It.updateIn=ht,It.merge=mt,It.mergeWith=_t,It.mergeDeep=Tt,It.mergeDeepWith=Mt,It.mergeIn=Ot,It.mergeDeepIn=Et,It.withMutations=Lt,It.wasAltered=jt,It.asImmutable=Dt,It["@@transducer/init"]=It.asMutable=St,It["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},It["@@transducer/result"]=function(e){return e.asImmutable()};var Rt=function(e,t){this.ownerID=e,this.entries=t};Rt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Qt)return function(e,t,n,r){e||(e=new d);for(var o=new Wt(e,_e(n),[n,r]),i=0;i>>e)&i),s=this.bitmap;return 0==(s&a)?o:this.nodes[Zt(s&a-1)].get(e+r,t,n,o)},Ht.prototype.update=function(e,t,n,s,l,u,c){void 0===n&&(n=_e(s));var d=(0===t?n:n>>>t)&i,f=1<=en)return function(e,t,n,r,i){for(var a=0,s=new Array(o),l=0;0!==n;l++,n>>>=1)s[l]=1&n?t[a++]:void 0;return s[r]=i,new Yt(e,a+1,s)}(e,_,p,d,g);if(h&&!g&&2===_.length&&qt(_[1^m]))return _[1^m];if(h&&g&&1===_.length&&qt(g))return g;var y=e&&e===this.ownerID,v=h?g?p:p^f:p|f,w=h?g?$t(_,m,g,y):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e)&i,s=this.nodes[a];return s?s.get(e+r,t,n,o):o},Yt.prototype.update=function(e,t,n,o,s,l,u){void 0===n&&(n=_e(o));var c=(0===t?n:n>>>t)&i,d=s===a,f=this.nodes,p=f[c];if(d&&!p)return this;var h=Bt(p,e,t+r,n,o,s,l,u);if(h===p)return this;var m=this.count;if(p){if(!h&&--m>>n)&i,u=(0===n?o:o>>>n)&i,c=l===u?[Kt(e,t,n+r,o,a)]:(s=new Wt(t,o,a),l>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function $t(e,t,n,r){var o=r?e:qe(e);return o[t]=n,o}var Qt=o/4,en=o/2,tn=o/4,nn=function(e){function t(t){var n=fn();if(null===t||void 0===t)return n;if(rn(t))return t;var i=e(t),a=i.size;return 0===a?n:(Ze(a),a>0&&a=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?_n(e,t).set(0,n):_n(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i=u(l);t>=bn(e._capacity)?r=pn(r,e.__ownerID,0,t,n,i):o=pn(o,e.__ownerID,e._level,t,n,i);if(!i.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return dn(e._origin,e._capacity,e._level,o,r)}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=r,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):fn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){_n(n,0,t+e.length);for(var r=0;r>>t&i;if(o>=this.array.length)return new sn([],e);var a,s=0===o;if(t>0){var l=this.array[o];if((a=l&&l.removeBefore(e,t-r,n))===l&&s)return this}if(s&&!a)return this;var u=hn(this,e);if(!s)for(var c=0;c>>t&i;if(a>=this.array.length)return this;if(t>0){var s=this.array[a];if((o=s&&s.removeAfter(e,t-r,n))===s&&a===this.array.length-1)return this}var l=hn(this,e);return l.array.splice(a+1),o&&(l.array[a]=o),l};var ln,un={};function cn(e,t){var n=e._origin,i=e._capacity,a=bn(i),s=e._tail;return l(e._root,e._level,0);function l(e,u,c){return 0===u?function(e,r){var l=r===a?s&&s.array:e&&e.array,u=r>n?0:n-r,c=i-r;c>o&&(c=o);return function(){if(u===c)return un;var e=t?--c:u++;return l&&l[e]}}(e,c):function(e,a,s){var u,c=e&&e.array,d=s>n?0:n-s>>a,f=1+(i-s>>a);f>o&&(f=o);return function(){for(;;){if(u){var e=u();if(e!==un)return e;u=null}if(d===f)return un;var n=t?--f:d++;u=l(c&&c[n],a-r,s+(n<>>n&i,d=e&&u0){var f=e&&e.array[u],p=pn(f,t,n-r,o,a,s);return p===f?e:((l=hn(e,t)).array[u]=p,l)}return d&&e.array[u]===a?e:(c(s),l=hn(e,t),void 0===a&&u===l.array.length-1?l.array.pop():l.array[u]=a,l)}function hn(e,t){return t&&e&&t===e.ownerID?e:new sn(e?e.array.slice():[],t)}function mn(e,t){if(t>=bn(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>o&i],o-=r;return n}}function _n(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new d,a=e._origin,s=e._capacity,l=a+t,u=void 0===n?s:n<0?s+n:a+n;if(l===a&&u===s)return e;if(l>=u)return e.clear();for(var c=e._level,f=e._root,p=0;l+p<0;)f=new sn(f&&f.array.length?[void 0,f]:[],o),p+=1<<(c+=r);p&&(l+=p,a+=p,u+=p,s+=p);for(var h=bn(s),m=bn(u);m>=1<h?new sn([],o):_;if(_&&m>h&&lr;y-=r){var v=h>>>y&i;g=g.array[v]=hn(g.array[v],o)}g.array[h>>>r&i]=_}if(u=m)l-=m,u-=m,c=r,f=null,b=b&&b.removeBefore(o,0,l);else if(l>a||m>>c&i;if(w!==m>>>c&i)break;w&&(p+=(1<a&&(f=f.removeBefore(o,c,l-p)),f&&m>>r<=o&&l.size>=2*s.size?(r=(i=l.filter(function(e,t){return void 0!==e&&u!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=u===l.size-1?l.pop():l.set(u,void 0))}else if(c){if(n===l.get(u)[1])return e;r=s,i=l.set(u,[t,n])}else r=s.set(t,l.size),i=l.set(l.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):wn(r,i)}yn.isOrderedMap=vn,yn.prototype[j]=!0,yn.prototype.delete=yn.prototype.remove;var Tn=function(e){function t(e){return null===e||void 0===e?Dn():Mn(e)?e:Dn().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var n=this._head;for(e=p(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Sn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&Mn(t))return t;Ze(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):Sn(n,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Dn()},t.prototype.slice=function(t,n){if(m(t,n,this.size))return this;var r=_(t,this.size);if(b(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,i=this._head;r--;)i=i.next;return this.__ownerID?(this.size=o,this._head=i,this.__hash=void 0,this.__altered=!0,this):Sn(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Sn(this.size,this._head,e,this.__hash):0===this.size?Dn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new re(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,o=this._head;o&&!1!==e(o.value,r++,n);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new re(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new U(function(){if(r){var t=r.value;return r=r.next,X(e,n++,t)}return{value:void 0,done:!0}})},t}(I);function Mn(e){return!(!e||!e[En])}Tn.isStack=Mn;var On,En="@@__IMMUTABLE_STACK__@@",Ln=Tn.prototype;function Sn(e,t,n,r){var o=Object.create(Ln);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Dn(){return On||(On=Sn(0))}function jn(e,t){if(e===t)return!0;if(!w(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||k(e)!==k(t)||x(e)!==x(t)||M(e)!==M(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!T(e);if(M(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&pe(o[1],e)&&(n||pe(o[0],t))})&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var s=!0,l=t.__iterate(function(t,r){if(n?!e.has(t):o?!pe(t,e.get(r,a)):!pe(e.get(r,a),t))return s=!1,!1});return s&&e.size===l}function Cn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function An(e){return et(e)?$(e).map(An).toJSON():e}Ln[En]=!0,Ln.shift=Ln.pop,Ln.unshift=Ln.push,Ln.unshiftAll=Ln.pushAll,Ln.withMutations=Lt,Ln.wasAltered=jt,Ln.asImmutable=Dt,Ln["@@transducer/init"]=Ln.asMutable=St,Ln["@@transducer/step"]=function(e,t){return e.unshift(t)},Ln["@@transducer/result"]=function(e){return e.asImmutable()};var Pn=function(e){function t(t){return null===t||void 0===t?Jn():In(t)&&!M(t)?t:Jn().withMutations(function(n){var r=e(t);Ze(r.size),r.forEach(function(e){return n.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(P(e).keySeq())},t.intersect=function(e){return(e=A(e).toArray()).length?Yn.intersect.apply(t(e.pop()),e):Jn()},t.union=function(e){return(e=A(e).toArray()).length?Yn.union.apply(t(e.pop()),e):Jn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Nn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Nn(this,this._map.remove(e))},t.prototype.clear=function(){return Nn(this,this._map.clear())},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return 0===(t=t.filter(function(e){return 0!==e.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(n){for(var r=0;r=0&&t=0&&n>>-15,461845907),t=he(t<<13|t>>>-13,5),t=he((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=me((t=he(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+or(_e(e),_e(t))|0}:function(e,t){r=r+or(_e(e),_e(t))|0}:t?function(e){r=31*r+_e(e)|0}:function(e){r=r+_e(e)|0}),r)}(this))}});var Bn=A.prototype;Bn[L]=!0,Bn[V]=Bn.values,Bn.toJSON=Bn.toArray,Bn.__toStringMapper=tt,Bn.inspect=Bn.toSource=function(){return this.toString()},Bn.chain=Bn.flatMap,Bn.contains=Bn.includes,Cn(P,{flip:function(){return Ue(this,Ce(this))},mapEntries:function(e,t){var n=this,r=0;return Ue(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ue(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var qn=P.prototype;qn[S]=!0,qn[V]=Bn.entries,qn.toJSON=zn,qn.__toStringMapper=function(e,t){return tt(t)+": "+tt(e)},Cn(I,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(e,t){return Ue(this,Ie(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Ue(this,Pe(this,!1))},slice:function(e,t){return Ue(this,Re(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),0===n||2===n&&!t)return this;e=_(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ue(this,1===n?r:r.concat(qe(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Ue(this,Ye(this,e,!1))},get:function(e,t){return(e=p(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return(e=p(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function or(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Kn[D]=!0,Kn[j]=!0,Cn(R,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),R.prototype.has=Bn.includes,R.prototype.contains=R.prototype.includes,Cn(Q,P.prototype),Cn(ee,I.prototype),Cn(te,R.prototype);var ir=function(e){function t(e){return null===e||void 0===e?cr():ar(e)?e:cr().withMutations(function(t){var n=R(e);Ze(n.size),n.forEach(function(e){return t.add(e)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(P(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(Pn);function ar(e){return In(e)&&M(e)}ir.isOrderedSet=ar;var sr,lr=ir.prototype;function ur(e,t){var n=Object.create(lr);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function cr(){return sr||(sr=ur(kn()))}lr[j]=!0,lr.zip=Kn.zip,lr.zipWith=Kn.zipWith,lr.__empty=cr,lr.__make=ur;var dr=function(e,t){var n,r=function(i){var a=this;if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var u=0;u2?[]:void 0,{"":e})}function vr(e,t){return k(t)?t.toMap():t.toList()}var wr="4.0.0-rc.9",kr={version:wr,Collection:A,Iterable:A,Seq:$,Map:Ct,OrderedMap:yn,List:nn,Stack:Tn,Set:Pn,OrderedSet:ir,Record:dr,Range:Un,Repeat:gr,is:pe,fromJS:yr,hash:_e,isImmutable:v,isCollection:w,isKeyed:k,isIndexed:x,isAssociative:T,isOrdered:M,isValueObject:E,get:rt,getIn:Xn,has:nt,hasIn:Fn,merge:gt,mergeDeep:vt,mergeWith:yt,mergeDeepWith:wt,remove:it,removeIn:ct,set:at,setIn:lt,update:ft,updateIn:st},xr=A;t.default=kr},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(26);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nw;w++)if((f||w in g)&&(_=y(m=g[w],w,b),e))if(n)k[w]=_;else if(_)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:k.push(m)}else if(c)return!1;return d?-1:u||c?c:k}}},function(e,t,n){var r=n(3),o=n(53),i=n(11);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(13);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){(function(e,r){var o;/*! JSON v3.3.2 | http://bestiejs.github.io/json3 | Copyright 2012-2014, Kit Cambridge | http://kit.mit-license.org */(function(){var i=n(879),a={function:!0,object:!0},s=a[typeof t]&&t&&!t.nodeType&&t,l=a[typeof window]&&window||this,u=s&&a[typeof e]&&e&&!e.nodeType&&"object"==typeof r&&r;function c(e,t){e||(e=l.Object()),t||(t=l.Object());var n=e.Number||l.Number,r=e.String||l.String,o=e.Object||l.Object,i=e.Date||l.Date,s=e.SyntaxError||l.SyntaxError,u=e.TypeError||l.TypeError,d=e.Math||l.Math,f=e.JSON||l.JSON;"object"==typeof f&&f&&(t.stringify=f.stringify,t.parse=f.parse);var p,h,m,_=o.prototype,b=_.toString,g=new i(-0xc782b5b800cec);try{g=-109252==g.getUTCFullYear()&&0===g.getUTCMonth()&&1===g.getUTCDate()&&10==g.getUTCHours()&&37==g.getUTCMinutes()&&6==g.getUTCSeconds()&&708==g.getUTCMilliseconds()}catch(e){}function y(e){if(y[e]!==m)return y[e];var o;if("bug-string-char-index"==e)o="a"!="a"[0];else if("json"==e)o=y("json-stringify")&&y("json-parse");else{var a,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var l=t.stringify,u="function"==typeof l&&g;if(u){(a=function(){return 1}).toJSON=a;try{u="0"===l(0)&&"0"===l(new n)&&'""'==l(new r)&&l(b)===m&&l(m)===m&&l()===m&&"1"===l(a)&&"[1]"==l([a])&&"[null]"==l([m])&&"null"==l(null)&&"[null,null,null]"==l([m,b,null])&&l({a:[a,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===l(null,a)&&"[\n 1,\n 2\n]"==l([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==l(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==l(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==l(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==l(new i(-1))}catch(e){u=!1}}o=u}if("json-parse"==e){var c=t.parse;if("function"==typeof c)try{if(0===c("0")&&!c(!1)){var d=5==(a=c(s)).a.length&&1===a.a[0];if(d){try{d=!c('"\t"')}catch(e){}if(d)try{d=1!==c("01")}catch(e){}if(d)try{d=1!==c("1.")}catch(e){}}}}catch(e){d=!1}o=d}}return y[e]=!!o}if(!y("json")){var v=y("bug-string-char-index");if(!g)var w=d.floor,k=[0,31,59,90,120,151,181,212,243,273,304,334],x=function(e,t){return k[t]+365*(e-1970)+w((e-1969+(t=+(t>1)))/4)-w((e-1901+t)/100)+w((e-1601+t)/400)};if((p=_.hasOwnProperty)||(p=function(e){var t,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=b?p=function(e){var t=this.__proto__,n=e in(this.__proto__=null,this);return this.__proto__=t,n}:(t=n.constructor,p=function(e){var n=(this.constructor||t).prototype;return e in this&&!(e in n&&this[e]===n[e])}),n=null,p.call(this,e)}),h=function(e,t){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)p.call(r,o)&&i++;return n=r=null,i?h=2==i?function(e,t){var n,r={},o="[object Function]"==b.call(e);for(n in e)o&&"prototype"==n||p.call(r,n)||!(r[n]=1)||!p.call(e,n)||t(n)}:function(e,t){var n,r,o="[object Function]"==b.call(e);for(n in e)o&&"prototype"==n||!p.call(e,n)||(r="constructor"===n)||t(n);(r||p.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],h=function(e,t){var n,o,i="[object Function]"==b.call(e),s=!i&&"function"!=typeof e.constructor&&a[typeof e.hasOwnProperty]&&e.hasOwnProperty||p;for(n in e)i&&"prototype"==n||!s.call(e,n)||t(n);for(o=r.length;n=r[--o];s.call(e,n)&&t(n));}),h(e,t)},!y("json-stringify")){var T={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},M=function(e,t){return("000000"+(t||0)).slice(-e)},O=function(e){for(var t='"',n=0,r=e.length,o=!v||r>10,i=o&&(v?e.split(""):e);n-1/0&&s<1/0){if(x){for(f=w(s/864e5),c=w(f/365.2425)+1970-1;x(c+1,0)<=f;c++);for(d=w((f-x(c,0))/30.42);x(c,d+1)<=f;d++);f=1+f-x(c,d),g=w((_=(s%864e5+864e5)%864e5)/36e5)%24,y=w(_/6e4)%60,v=w(_/1e3)%60,k=_%1e3}else c=s.getUTCFullYear(),d=s.getUTCMonth(),f=s.getUTCDate(),g=s.getUTCHours(),y=s.getUTCMinutes(),v=s.getUTCSeconds(),k=s.getUTCMilliseconds();s=(c<=0||c>=1e4?(c<0?"-":"+")+M(6,c<0?-c:c):M(4,c))+"-"+M(2,d+1)+"-"+M(2,f)+"T"+M(2,g)+":"+M(2,y)+":"+M(2,v)+"."+M(3,k)+"Z"}else s=null;if(n&&(s=n.call(t,e,s)),null===s)return"null";if("[object Boolean]"==(l=b.call(s)))return""+s;if("[object Number]"==l)return s>-1/0&&s<1/0?""+s:"null";if("[object String]"==l)return O(""+s);if("object"==typeof s){for(D=a.length;D--;)if(a[D]===s)throw u();if(a.push(s),T=[],j=i,i+=o,"[object Array]"==l){for(S=0,D=s.length;S0)for(r="",n>10&&(n=10);r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||C();e+=D("0x"+i.slice(t,L));break;default:C()}else{if(34==o)break;for(o=i.charCodeAt(L),t=L;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++L);e+=i.slice(t,L)}if(34==i.charCodeAt(L))return L++,e;C();default:if(t=L,45==o&&(r=!0,o=i.charCodeAt(++L)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(L+1))>=48&&o<=57)&&C(),r=!1;L=48&&o<=57);L++);if(46==i.charCodeAt(L)){for(n=++L;n=48&&o<=57);n++);n==L&&C(),L=n}if(101==(o=i.charCodeAt(L))||69==o){for(43!=(o=i.charCodeAt(++L))&&45!=o||L++,n=L;n=48&&o<=57);n++);n==L&&C(),L=n}return+i.slice(t,L)}if(r&&C(),"true"==i.slice(L,L+4))return L+=4,!0;if("false"==i.slice(L,L+5))return L+=5,!1;if("null"==i.slice(L,L+4))return L+=4,null;C()}return"$"},P=function(e){var t,n;if("$"==e&&C(),"string"==typeof e){if("@"==(v?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=A());n||(n=!0))n&&(","==e?"]"==(e=A())&&C():C()),","==e&&C(),t.push(P(e));return t}if("{"==e){for(t={};"}"!=(e=A());n||(n=!0))n&&(","==e?"}"==(e=A())&&C():C()),","!=e&&"string"==typeof e&&"@"==(v?e.charAt(0):e[0])&&":"==A()||C(),t[e.slice(1)]=P(A());return t}C()}return e},I=function(e,t,n){var r=R(e,t,n);r===m?delete e[t]:e[t]=r},R=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if("[object Array]"==b.call(o))for(r=o.length;r--;)I(o,r,n);else h(o,function(e){I(o,e,n)});return n.call(e,t,o)};t.parse=function(e,t){var n,r;return L=0,S=""+e,n=P(A()),"$"!=A()&&C(),L=S=null,t&&"[object Function]"==b.call(t)?R(((r={})[""]=n,r),"",t):n}}}return t.runInContext=c,t}if(!u||u.global!==u&&u.window!==u&&u.self!==u||(l=u),s&&!i)c(l,s);else{var d=l.JSON,f=l.JSON3,p=!1,h=c(l,l.JSON3={noConflict:function(){return p||(p=!0,l.JSON=d,l.JSON3=f,d=f=null),h}});l.JSON={parse:h.parse,stringify:h.stringify}}i&&(void 0===(o=function(){return h}.call(t,n,t,e))||(e.exports=o))}).call(this)}).call(this,n(88)(e),n(12))},function(e,t,n){var r=n(554),o=n(3),i=n(144)("metadata"),a=i.store||(i.store=new(n(551))),s=function(e,t,n){var o=a.get(e);if(!o){if(!n)return;a.set(e,o=new r)}var i=o.get(t);if(!i){if(!n)return;o.set(t,i=new r)}return i};e.exports={store:a,map:s,has:function(e,t,n){var r=s(t,n,!1);return void 0!==r&&r.has(e)},get:function(e,t,n){var r=s(t,n,!1);return void 0===r?void 0:r.get(e)},set:function(e,t,n,r){s(n,r,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),r=[];return n&&n.forEach(function(e,t){r.push(t)}),r},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){o(o.S,"Reflect",e)}}},function(e,t,n){"use strict";if(n(21)){var r=n(79),o=n(9),i=n(11),a=n(3),s=n(134),l=n(184),u=n(46),c=n(73),d=n(81),f=n(31),p=n(71),h=n(50),m=n(19),_=n(549),b=n(77),g=n(52),y=n(32),v=n(109),w=n(13),k=n(24),x=n(193),T=n(76),M=n(39),O=n(75).f,E=n(191),L=n(80),S=n(15),D=n(48),j=n(143),C=n(136),A=n(188),P=n(91),I=n(139),R=n(74),H=n(189),Y=n(559),N=n(20),W=n(40),J=N.f,V=W.f,U=o.RangeError,X=o.TypeError,G=o.Uint8Array,F=Array.prototype,z=l.ArrayBuffer,B=l.DataView,q=D(0),K=D(2),Z=D(3),$=D(4),Q=D(5),ee=D(6),te=j(!0),ne=j(!1),re=A.values,oe=A.keys,ie=A.entries,ae=F.lastIndexOf,se=F.reduce,le=F.reduceRight,ue=F.join,ce=F.sort,de=F.slice,fe=F.toString,pe=F.toLocaleString,he=S("iterator"),me=S("toStringTag"),_e=L("typed_constructor"),be=L("def_constructor"),ge=s.CONSTR,ye=s.TYPED,ve=s.VIEW,we=D(1,function(e,t){return Oe(C(e,e[be]),t)}),ke=i(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),xe=!!G&&!!G.prototype.set&&i(function(){new G(1).set({})}),Te=function(e,t){var n=h(e);if(n<0||n%t)throw U("Wrong offset!");return n},Me=function(e){if(w(e)&&ye in e)return e;throw X(e+" is not a typed array!")},Oe=function(e,t){if(!(w(e)&&_e in e))throw X("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Le(C(e,e[be]),t)},Le=function(e,t){for(var n=0,r=t.length,o=Oe(e,r);r>n;)o[n]=t[n++];return o},Se=function(e,t,n){J(e,t,{get:function(){return this._d[n]}})},De=function(e){var t,n,r,o,i,a,s=k(e),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,f=E(s);if(void 0!=f&&!x(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(d&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),o=Oe(this,n);n>t;t++)o[t]=d?c(s[t],t):s[t];return o},je=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Ce=!!G&&i(function(){pe.call(new G(1))}),Ae=function(){return pe.apply(Ce?de.call(Me(this)):Me(this),arguments)},Pe={copyWithin:function(e,t){return Y.call(Me(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return $(Me(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return H.apply(Me(this),arguments)},filter:function(e){return Ee(this,K(Me(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Me(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Me(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(Me(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Me(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Me(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Me(this),arguments)},lastIndexOf:function(e){return ae.apply(Me(this),arguments)},map:function(e){return we(Me(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Me(this),arguments)},reduceRight:function(e){return le.apply(Me(this),arguments)},reverse:function(){for(var e,t=Me(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(Me(this),e)},subarray:function(e,t){var n=Me(this),r=n.length,o=b(e,r);return new(C(n,n[be]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,m((void 0===t?r:b(t,r))-o))}},Ie=function(e,t){return Ee(this,de.call(Me(this),e,t))},Re=function(e){Me(this);var t=Te(arguments[1],1),n=this.length,r=k(e),o=m(r.length),i=0;if(o+t>n)throw U("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,ke)}(this,n,e)},enumerable:!0})};y?(h=n(function(e,n,r,o){c(e,h,u,"_d");var i,a,s,l,d=0,p=0;if(w(n)){if(!(n instanceof z||"ArrayBuffer"==(l=v(n))||"SharedArrayBuffer"==l))return ye in n?Le(h,n):De.call(h,n);i=n,p=Te(r,t);var b=n.byteLength;if(void 0===o){if(b%t)throw U("Wrong length!");if((a=b-p)<0)throw U("Wrong length!")}else if((a=m(o)*t)+p>b)throw U("Wrong length!");s=a/t}else s=_(n),i=new z(a=s*t);for(f(e,"_d",{b:i,o:p,l:a,e:s,v:new B(i)});dt?1:e>=t?0:NaN},n=function(e){var n;return 1===e.length&&(n=e,e=function(e,r){return t(n(e),r)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[i],n)>0?o=i:r=i+1}return r}}},r=n(t),o=r.right,i=r.left;function a(e,t){return[e,t]}var s=function(e){return null===e?NaN:+e},l=function(e,t){var n,r,o=e.length,i=0,a=-1,l=0,u=0;if(null==t)for(;++a1)return u/(i-1)},u=function(e,t){var n=l(e,t);return n?Math.sqrt(n):n},c=function(e,t){var n,r,o,i=e.length,a=-1;if(null==t){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o0)for(e=Math.ceil(e/i),t=Math.floor(t/i),o=new Array(r=Math.ceil(t-e+1));++s=0?(i>=b?10:i>=g?5:i>=y?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=b?10:i>=g?5:i>=y?2:1)}function k(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=b?o*=10:i>=g?o*=5:i>=y&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return a+(l-a)*(o-i)}},M=function(e){for(var t,n,r,o=e.length,i=-1,a=0;++i=0;)for(r=e[o],t=r.length;--t>=0;)n[--a]=r[t];return n},O=function(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r},E=function(e){if(!(o=e.length))return[];for(var t=-1,n=O(e,L),r=new Array(n);++t=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,s=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),F.hasOwnProperty(t)?{space:F[t],local:e}:e},B=function(e){var t=z(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===G&&t.documentElement.namespaceURI===G?t.createElement(e):t.createElementNS(n,e)}})(t)},q=0;function K(){return new Z}function Z(){this._="@"+(++q).toString(36)}Z.prototype=K.prototype={constructor:Z,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var $=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Q=document.documentElement;if(!Q.matches){var ee=Q.webkitMatchesSelector||Q.msMatchesSelector||Q.mozMatchesSelector||Q.oMatchesSelector;$=function(e){return function(){return ee.call(this,e)}}}}var te=$,ne={};if(e.event=null,"undefined"!=typeof document){var re=document.documentElement;"onmouseenter"in re||(ne={mouseenter:"mouseover",mouseleave:"mouseout"})}function oe(e,t,n){return e=ie(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function ie(t,n,r){return function(o){var i=e.event;e.event=o;try{t.call(this,this.__data__,n,r)}finally{e.event=i}}}function ae(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;rt?1:e>=t?0:NaN}var ke=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function xe(e,t){return e.style.getPropertyValue(t)||ke(e).getComputedStyle(e,null).getPropertyValue(t)}function Te(e){return e.trim().split(/^|\s+/)}function Me(e){return e.classList||new Oe(e)}function Oe(e){this._node=e,this._names=Te(e.getAttribute("class")||"")}function Ee(e,t){for(var n=Me(e),r=-1,o=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Re=[null];function He(e,t){this._groups=e,this._parents=t}function Ye(){return new He([[document.documentElement]],Re)}He.prototype=Ye.prototype={constructor:He,select:function(e){"function"!=typeof e&&(e=pe(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=k&&(k=w+1);!(v=b[k])&&++k=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=we);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):xe(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Te(e+"");if(arguments.length<2){for(var r=Me(this.node()),o=-1,i=n.length;++o=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?se:ae,null==n&&(n=!1),r=0;r>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=it.exec(e))?ht(parseInt(t[1],16)):(t=at.exec(e))?new gt(t[1],t[2],t[3],1):(t=st.exec(e))?new gt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=lt.exec(e))?mt(t[1],t[2],t[3],t[4]):(t=ut.exec(e))?mt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ct.exec(e))?yt(t[1],t[2]/100,t[3]/100,1):(t=dt.exec(e))?yt(t[1],t[2]/100,t[3]/100,t[4]):ft.hasOwnProperty(e)?ht(ft[e]):"transparent"===e?new gt(NaN,NaN,NaN,0):null}function ht(e){return new gt(e>>16&255,e>>8&255,255&e,1)}function mt(e,t,n,r){return r<=0&&(e=t=n=NaN),new gt(e,t,n,r)}function _t(e){return e instanceof Qe||(e=pt(e)),e?new gt((e=e.rgb()).r,e.g,e.b,e.opacity):new gt}function bt(e,t,n,r){return 1===arguments.length?_t(e):new gt(e,t,n,null==r?1:r)}function gt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function yt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wt(e,t,n,r)}function vt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof wt)return new wt(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=pt(e)),!e)return new wt;if(e instanceof wt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&l<1?0:a,new wt(a,s,l,e.opacity)}(e):new wt(e,t,n,null==r?1:r)}function wt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function kt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ze(Qe,pt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ze(gt,bt,$e(Qe,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new gt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Ze(wt,vt,$e(Qe,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new wt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new wt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new gt(kt(e>=240?e-240:e+120,o,r),kt(e,o,r),kt(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var xt=Math.PI/180,Tt=180/Math.PI,Mt=.95047,Ot=1,Et=1.08883,Lt=4/29,St=6/29,Dt=3*St*St,jt=St*St*St;function Ct(e){if(e instanceof Pt)return new Pt(e.l,e.a,e.b,e.opacity);if(e instanceof Wt){var t=e.h*xt;return new Pt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof gt||(e=_t(e));var n=Yt(e.r),r=Yt(e.g),o=Yt(e.b),i=It((.4124564*n+.3575761*r+.1804375*o)/Mt),a=It((.2126729*n+.7151522*r+.072175*o)/Ot),s=It((.0193339*n+.119192*r+.9503041*o)/Et);return new Pt(116*a-16,500*(i-a),200*(a-s),e.opacity)}function At(e,t,n,r){return 1===arguments.length?Ct(e):new Pt(e,t,n,null==r?1:r)}function Pt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function It(e){return e>jt?Math.pow(e,1/3):e/Dt+Lt}function Rt(e){return e>St?e*e*e:Dt*(e-Lt)}function Ht(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Yt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Nt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Wt)return new Wt(e.h,e.c,e.l,e.opacity);e instanceof Pt||(e=Ct(e));var t=Math.atan2(e.b,e.a)*Tt;return new Wt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Wt(e,t,n,null==r?1:r)}function Wt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Ze(Pt,At,$e(Qe,{brighter:function(e){return new Pt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Pt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return e=Ot*Rt(e),t=Mt*Rt(t),n=Et*Rt(n),new gt(Ht(3.2404542*t-1.5371385*e-.4985314*n),Ht(-.969266*t+1.8760108*e+.041556*n),Ht(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),Ze(Wt,Nt,$e(Qe,{brighter:function(e){return new Wt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Wt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ct(this).rgb()}}));var Jt=-.14861,Vt=1.78277,Ut=-.29227,Xt=-.90649,Gt=1.97294,Ft=Gt*Xt,zt=Gt*Vt,Bt=Vt*Ut-Xt*Jt;function qt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Kt)return new Kt(e.h,e.s,e.l,e.opacity);e instanceof gt||(e=_t(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Bt*r+Ft*t-zt*n)/(Bt+Ft-zt),i=r-o,a=(Gt*(n-o)-Ut*i)/Xt,s=Math.sqrt(a*a+i*i)/(Gt*o*(1-o)),l=s?Math.atan2(a,i)*Tt-120:NaN;return new Kt(l<0?l+360:l,s,o,e.opacity)}(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Zt(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}Ze(Kt,qt,$e(Qe,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new Kt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Kt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*xt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new gt(255*(t+n*(Jt*r+Vt*o)),255*(t+n*(Ut*r+Xt*o)),255*(t+n*(Gt*r)),this.opacity)}}));var $t=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r180||n<-180?n-360*Math.round(n/360):n):en(isNaN(e)?t:e)}function rn(e){return 1==(e=+e)?on:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):en(isNaN(t)?n:t)}}function on(e,t){var n=t-e;return n?tn(e,n):en(isNaN(e)?t:e)}var an=function e(t){var n=rn(t);function r(e,t){var r=n((e=bt(e)).r,(t=bt(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=on(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function sn(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;ni&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:_n(n,r)})),i=yn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:_n(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,l),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:_n(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,l),function(e,t,n,r,i,a){if(e!==n||t!==r){var s=i.push(o(i)+"scale(",null,",",null,")");a.push({i:s-4,x:_n(e,n)},{i:s-2,x:_n(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,l),i=a=null,function(e){for(var t,n=-1,r=l.length;++n=0&&t._call.call(null,e),t=t._next;--Un}function rr(){Bn=(zn=Kn.now())+qn,Un=Xn=0;try{nr()}finally{Un=0,function(){for(var e,t,n=Nn,r=1/0;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:Nn=t);Wn=e,ir(r)}(),Bn=0}}function or(){var e=Kn.now(),t=e-zn;t>Fn&&(qn-=t,zn=e)}function ir(e){if(!Un){Xn&&(Xn=clearTimeout(Xn));var t=e-Bn;t>24?(e<1/0&&(Xn=setTimeout(rr,t)),Gn&&(Gn=clearInterval(Gn))):(Gn||(zn=Bn,Gn=setInterval(or,Fn)),Un=1,Zn(rr))}}er.prototype=tr.prototype={constructor:er,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?$n():+n)+(null==t?0:+t),this._next||Wn===this||(Wn?Wn._next=this:Nn=this,Wn=this),this._call=e,this._time=n,ir()},stop:function(){this._call&&(this._call=null,this._time=1/0,ir())}};var ar=function(e,t,n){var r=new er;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},sr=J("start","end","interrupt"),lr=[],ur=0,cr=1,dr=2,fr=3,pr=4,hr=5,mr=6,_r=function(e,t,n,r,o,i){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function i(l){var u,c,d,f;if(n.state!==cr)return s();for(u in o)if((f=o[u]).name===n.name){if(f.state===fr)return ar(i);f.state===pr?(f.state=mr,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[u]):+uur)throw new Error("too late");return n}function gr(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>dr)throw new Error("too late");return n}function yr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("too late");return n}var vr=function(e,t){var n,r,o,i=e.__transition,a=!0;if(i){for(o in t=null==t?null:t+"",i)(n=i[o]).name===t?(r=n.state>dr&&n.state=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?br:gr;return function(){var a=i(this,e),s=a.on;s!==r&&(o=(r=s).copy()).on(t,n),a.on=o}}(n,e,t))},attr:function(e,t){var n=z(e),r="transform"===n?Ln:kr;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,o,i;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===r&&s===o?i:i=t(r=a,o=s);this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,o,i;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===r&&s===o?i:i=t(r=a,o=s);this.removeAttribute(e)}})(n,r,wr(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,o;return function(){var i=this.getAttributeNS(e.space,e.local);return i===n?null:i===r?o:o=t(r=i,n)}}:function(e,t,n){var r,o;return function(){var i=this.getAttribute(e);return i===n?null:i===r?o:o=t(r=i,n)}})(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=z(e);return this.tween(n,(r.local?function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}:function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?En:kr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=xe(this,e),a=(this.style.removeProperty(e),xe(this,e));return i===a?null:i===n&&a===r?o:o=t(n=i,r=a)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,o,i;return function(){var a=xe(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=xe(this,e)),a===s?null:a===r&&s===o?i:i=t(r=a,o=s)}}(e,r,wr(this,"style."+e,t)):function(e,t,n){var r,o;return function(){var i=xe(this,e);return i===n?null:i===r?o:o=t(r=i,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,o=t.apply(r,arguments);return o&&function(t){r.style.setProperty(e,o(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(wr(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=yr(this.node(),n).tween,i=0,a=o.length;i0&&(r=i-h),x<0?f=p-m:x>0&&(a=s-m),w=fo,R.attr("cursor",go.selection),N());break;default:return}uo()},!0).on("keyup.brush",function(){switch(e.event.keyCode){case 16:j&&(b=g=j=!1,N());break;case 18:w===ho&&(k<0?c=d:k>0&&(r=i),x<0?f=p:x>0&&(a=s),w=po,N());break;case 32:w===fo&&(e.event.altKey?(k&&(c=d-h*k,r=i+h*k),x&&(f=p-m*x,a=s+m*x),w=ho):(k<0?c=d:k>0&&(r=i),x<0?f=p:x>0&&(a=s),w=po),R.attr("cursor",go[v]),N());break;default:return}uo()},!0).on("mousemove.brush",Y,!0).on("mouseup.brush",W,!0);Ue(e.event.view)}lo(),vr(y),l.call(y),P.start()}function Y(){var e=de(y);!j||b||g||(Math.abs(e[0]-A[0])>Math.abs(e[1]-A[1])?g=!0:b=!0),A=e,_=!0,uo(),N()}function N(){var e;switch(h=A[0]-C[0],m=A[1]-C[1],w){case fo:case co:k&&(h=Math.max(E-r,Math.min(S-c,h)),i=r+h,d=c+h),x&&(m=Math.max(L-a,Math.min(D-f,m)),s=a+m,p=f+m);break;case po:k<0?(h=Math.max(E-r,Math.min(S-r,h)),i=r+h,d=c):k>0&&(h=Math.max(E-c,Math.min(S-c,h)),i=r,d=c+h),x<0?(m=Math.max(L-a,Math.min(D-a,m)),s=a+m,p=f):x>0&&(m=Math.max(L-f,Math.min(D-f,m)),s=a,p=f+m);break;case ho:k&&(i=Math.max(E,Math.min(S,r-h*k)),d=Math.max(E,Math.min(S,c+h*k))),x&&(s=Math.max(L,Math.min(D,a-m*x)),p=Math.max(L,Math.min(D,f+m*x)))}d1e-6)if(Math.abs(c*s-l*u)>1e-6&&o){var f=n-i,p=r-a,h=s*s+l*l,m=f*f+p*p,_=Math.sqrt(h),b=Math.sqrt(d),g=o*Math.tan((Ho-Math.acos((h+d-m)/(2*_*b)))/2),y=g/b,v=g/_;Math.abs(y-1)>1e-6&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+o+","+o+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,i){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^i,d=i?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Yo+Yo),d>No?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=Ho)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},zo.prototype=Bo.prototype={constructor:zo,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var ei=Bo.prototype;function ti(e,t){var n=new Qo;if(e instanceof Qo)e.each(function(e){n.add(e)});else if(e){var r=-1,o=e.length;if(null==t)for(;++r=l)return a;if(o)return o=!1,i;var t,r=u;if(34===e.charCodeAt(r)){for(var s=r;s++=(i=(m+b)/2))?m=i:b=i,(c=n>=(a=(_+g)/2))?_=a:g=a,o=p,!(p=p[d=c<<1|u]))return o[d]=h,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return h.next=p,o?o[d]=h:e._root=h,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(u=t>=(i=(m+b)/2))?m=i:b=i,(c=n>=(a=(_+g)/2))?_=a:g=a}while((d=c<<1|u)==(f=(l>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var bi=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function gi(e){return e[0]}function yi(e){return e[1]}function vi(e,t,n){var r=new wi(null==t?gi:t,null==n?yi:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function wi(e,t,n,r,o,i){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=i,this._root=void 0}function ki(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var xi=vi.prototype=wi.prototype;function Ti(e){return e.x+e.vx}function Mi(e){return e.y+e.vy}function Oi(e){return e.index}function Ei(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Li(e){return e.x}function Si(e){return e.y}xi.copy=function(){var e,t,n=new wi(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=ki(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var o=0;o<4;++o)(t=r.source[o])&&(t.length?e.push({source:t,target:r.target[o]=new Array(4)}):r.target[o]=ki(t));return n},xi.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return _i(this.cover(t,n),t,n,e)},xi.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),l=1/0,u=1/0,c=-1/0,d=-1/0;for(n=0;nc&&(c=r),od&&(d=o));for(ce||e>o||r>t||t>i))return this;var a,s,l=o-n,u=this._root;switch(s=(t<(r+i)/2)<<1|e<(n+o)/2){case 0:do{(a=new Array(4))[s]=u,u=a}while(i=r+(l*=2),e>(o=n+l)||t>i);break;case 1:do{(a=new Array(4))[s]=u,u=a}while(i=r+(l*=2),(n=o-l)>e||t>i);break;case 2:do{(a=new Array(4))[s]=u,u=a}while(r=i-(l*=2),e>(o=n+l)||r>t);break;case 3:do{(a=new Array(4))[s]=u,u=a}while(r=i-(l*=2),(n=o-l)>e||r>t)}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},xi.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},xi.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},xi.find=function(e,t,n){var r,o,i,a,s,l,u,c=this._x0,d=this._y0,f=this._x1,p=this._y1,h=[],m=this._root;for(m&&h.push(new bi(m,c,d,f,p)),null==n?n=1/0:(c=e-n,d=t-n,f=e+n,p=t+n,n*=n);l=h.pop();)if(!(!(m=l.node)||(o=l.x0)>f||(i=l.y0)>p||(a=l.x1)=b)<<1|e>=_)&&(l=h[h.length-1],h[h.length-1]=h[h.length-1-u],h[h.length-1-u]=l)}else{var g=e-+this._x.call(null,m.data),y=t-+this._y.call(null,m.data),v=g*g+y*y;if(v=(s=(h+_)/2))?h=s:_=s,(c=a>=(l=(m+b)/2))?m=l:b=l,t=p,!(p=p[d=c<<1|u]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},xi.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]},Pi=function(e){return(e=Ai(Math.abs(e)))?e[1]:NaN},Ii=function(e,t){var n=Ai(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")},Ri={"":function(e,t){e=e.toPrecision(t);e:for(var n,r=e.length,o=1,i=-1;o0&&(i=0)}return i>0?e.slice(0,i)+e.slice(n+1):e},"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Ii(100*e,t)},r:Ii,s:function(e,t){var n=Ai(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Di=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Ai(e,Math.max(0,t+i-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Hi=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Yi(e){return new Ni(e)}function Ni(e){if(!(t=Hi.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",i=t[4]||"",a=!!t[5],s=t[6]&&+t[6],l=!!t[7],u=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(l=!0,c="g"):Ri[c]||(c=""),(a||"0"===n&&"="===r)&&(a=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=i,this.zero=a,this.width=s,this.comma=l,this.precision=u,this.type=c}Yi.prototype=Ni.prototype,Ni.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Wi,Ji=function(e){return e},Vi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Ui=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}):Ji,o=e.currency,i=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Ji,s=e.percent||"%";function l(e){var t=(e=Yi(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.type,m="$"===u?o[0]:"#"===u&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",_="$"===u?o[1]:/[%p]/.test(h)?s:"",b=Ri[h],g=!h||/[defgprs%]/.test(h);function y(e){var o,s,u,y=m,v=_;if("c"===h)v=b(e)+v,e="";else{var w=(e=+e)<0;if(e=b(Math.abs(e),p),w&&0==+e&&(w=!1),y=(w?"("===l?l:"-":"-"===l||"("===l?"":l)+y,v=v+("s"===h?Vi[8+Di/3]:"")+(w&&"("===l?")":""),g)for(o=-1,s=e.length;++o(u=e.charCodeAt(o))||u>57){v=(46===u?i+e.slice(o+1):e.slice(o))+v,e=e.slice(0,o);break}}f&&!c&&(e=r(e,1/0));var k=y.length+e.length+v.length,x=k>1)+y+e+v+x.slice(k);break;default:e=x+y+e+v}return a(e)}return p=null==p?h?6:12:/[gprs]/.test(h)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),y.toString=function(){return e+""},y}return{format:l,formatPrefix:function(e,t){var n=l(((e=Yi(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Pi(t)/3))),o=Math.pow(10,-r),i=Vi[8+r/3];return function(e){return n(o*e)+i}}}};function Xi(t){return Wi=Ui(t),e.format=Wi.format,e.formatPrefix=Wi.formatPrefix,Wi}Xi({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Gi=function(e){return Math.max(0,-Pi(Math.abs(e)))},Fi=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Pi(t)/3)))-Pi(Math.abs(e)))},zi=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Pi(t)-Pi(e))+1},Bi=function(){return new qi};function qi(){this.reset()}qi.prototype={constructor:qi,reset:function(){this.s=this.t=0},add:function(e){Zi(Ki,e,this.t),Zi(this,Ki.s,this.s),this.s?this.t+=Ki.t:this.s=Ki.t},valueOf:function(){return this.s}};var Ki=new qi;function Zi(e,t,n){var r=e.s=t+n,o=r-t,i=r-o;e.t=t-i+(n-o)}var $i=1e-6,Qi=Math.PI,ea=Qi/2,ta=Qi/4,na=2*Qi,ra=180/Qi,oa=Qi/180,ia=Math.abs,aa=Math.atan,sa=Math.atan2,la=Math.cos,ua=Math.ceil,ca=Math.exp,da=Math.log,fa=Math.pow,pa=Math.sin,ha=Math.sign||function(e){return e>0?1:e<0?-1:0},ma=Math.sqrt,_a=Math.tan;function ba(e){return e>1?0:e<-1?Qi:Math.acos(e)}function ga(e){return e>1?ea:e<-1?-ea:Math.asin(e)}function ya(e){return(e=pa(e/2))*e}function va(){}function wa(e,t){e&&xa.hasOwnProperty(e.type)&&xa[e.type](e,t)}var ka={Feature:function(e,t){wa(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=la(t),a=pa(t),s=Da*a,l=Sa*i+s*la(o),u=s*r*pa(o);Wa.add(sa(u,l)),La=e,Sa=i,Da=a}function za(e){return[sa(e[1],e[0]),ga(e[2])]}function Ba(e){var t=e[0],n=e[1],r=la(n);return[r*la(t),r*pa(t),pa(n)]}function qa(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Ka(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Za(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function $a(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Qa(e){var t=ma(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var es,ts,ns=Bi(),rs={point:os,lineStart:as,lineEnd:ss,polygonStart:function(){rs.point=ls,rs.lineStart=us,rs.lineEnd=cs,ns.reset(),Va.polygonStart()},polygonEnd:function(){Va.polygonEnd(),rs.point=os,rs.lineStart=as,rs.lineEnd=ss,Wa<0?(ja=-(Aa=180),Ca=-(Pa=90)):ns>$i?Pa=90:ns<-$i&&(Ca=-90),ts[0]=ja,ts[1]=Aa}};function os(e,t){es.push(ts=[ja=e,Aa=e]),tPa&&(Pa=t)}function is(e,t){var n=Ba([e*oa,t*oa]);if(Ya){var r=Ka(Ya,n),o=[r[1],-r[0],0],i=Ka(o,r);Qa(i),i=za(i);var a,s=e-Ia,l=s>0?1:-1,u=i[0]*ra*l,c=ia(s)>180;c^(l*IaPa&&(Pa=a):c^(l*Ia<(u=(u+360)%360-180)&&uPa&&(Pa=t)),c?eds(ja,Aa)&&(Aa=e):ds(e,Aa)>ds(ja,Aa)&&(ja=e):Aa>=ja?(eAa&&(Aa=e)):e>Ia?ds(ja,e)>ds(ja,Aa)&&(Aa=e):ds(e,Aa)>ds(ja,Aa)&&(ja=e)}else es.push(ts=[ja=e,Aa=e]);tPa&&(Pa=t),Ya=n,Ia=e}function as(){rs.point=is}function ss(){ts[0]=ja,ts[1]=Aa,rs.point=os,Ya=null}function ls(e,t){if(Ya){var n=e-Ia;ns.add(ia(n)>180?n+(n>0?360:-360):n)}else Ra=e,Ha=t;Va.point(e,t),is(e,t)}function us(){Va.lineStart()}function cs(){ls(Ra,Ha),Va.lineEnd(),ia(ns)>$i&&(ja=-(Aa=180)),ts[0]=ja,ts[1]=Aa,Ya=null}function ds(e,t){return(t-=e)<0?t+360:t}function fs(e,t){return e[0]-t[0]}function ps(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tQi?e-na:e<-Qi?e+na:e,t]}function Xs(e,t,n){return(e%=na)?t||n?Vs(Fs(e),zs(t,n)):Fs(e):t||n?zs(t,n):Us}function Gs(e){return function(t,n){return[(t+=e)>Qi?t-na:t<-Qi?t+na:t,n]}}function Fs(e){var t=Gs(e);return t.invert=Gs(-e),t}function zs(e,t){var n=la(e),r=pa(e),o=la(t),i=pa(t);function a(e,t){var a=la(t),s=la(e)*a,l=pa(e)*a,u=pa(t),c=u*n+s*r;return[sa(l*o-c*i,s*n-u*r),ga(c*o+l*i)]}return a.invert=function(e,t){var a=la(t),s=la(e)*a,l=pa(e)*a,u=pa(t),c=u*o-l*i;return[sa(l*o+u*i,s*n+c*r),ga(c*n-s*r)]},a}Us.invert=Us;var Bs=function(e){function t(t){return(t=e(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t}return e=Xs(e[0]*oa,e[1]*oa,e.length>2?e[2]*oa:0),t.invert=function(t){return(t=e.invert(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t},t};function qs(e,t,n,r,o,i){if(n){var a=la(t),s=pa(t),l=r*n;null==o?(o=t+r*na,i=t-l/2):(o=Ks(a,o),i=Ks(a,i),(r>0?oi)&&(o+=r*na));for(var u,c=o;r>0?c>i:c1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},$s=function(e,t,n,r,o,i){var a,s=e[0],l=e[1],u=t[0],c=t[1],d=0,f=1,p=u-s,h=c-l;if(a=n-s,p||!(a>0)){if(a/=p,p<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=o-s,p||!(a<0)){if(a/=p,p<0){if(a>f)return;a>d&&(d=a)}else if(p>0){if(a0)){if(a/=h,h<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=i-l,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a0&&(e[0]=s+d*p,e[1]=l+d*h),f<1&&(t[0]=s+f*p,t[1]=l+f*h),!0}}}}},Qs=function(e,t){return ia(e[0]-t[0])<$i&&ia(e[1]-t[1])<$i};function el(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var tl=function(e,t,n,r,o){var i,a,s=[],l=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(Qs(r,a)){for(o.lineStart(),i=0;i=0;--i)o.point((c=u[i])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,u=f.z,p=!p}while(!f.v);o.lineEnd()}}};function nl(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==d);else u.point(i[0],i[1])}function a(r,o){return ia(r[0]-e)<$i?o>0?0:3:ia(r[0]-n)<$i?o>0?2:1:ia(r[1]-t)<$i?o>0?1:0:o>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var l,u,c,d,f,p,h,m,_,b,g,y=a,v=Zs(),w={point:k,lineStart:function(){w.point=x,u&&u.push(c=[]),b=!0,_=!1,h=m=NaN},lineEnd:function(){l&&(x(d,f),p&&_&&v.rejoin(),l.push(v.result())),w.point=k,_&&y.lineEnd()},polygonStart:function(){y=v,l=[],u=[],g=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=u.length;nr&&(f-i)*(r-a)>(p-a)*(e-i)&&++t:p<=r&&(f-i)*(r-a)<(p-a)*(e-i)&&--t;return t}(),n=g&&t,o=(l=M(l)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&tl(l,s,t,i,a),a.polygonEnd()),y=a,l=u=c=null}};function k(e,t){o(e,t)&&y.point(e,t)}function x(i,a){var s=o(i,a);if(u&&c.push([i,a]),b)d=i,f=a,p=s,b=!1,s&&(y.lineStart(),y.point(i,a));else if(s&&_)y.point(i,a);else{var l=[h=Math.max(ol,Math.min(rl,h)),m=Math.max(ol,Math.min(rl,m))],v=[i=Math.max(ol,Math.min(rl,i)),a=Math.max(ol,Math.min(rl,a))];$s(l,v,e,t,n,r)?(_||(y.lineStart(),y.point(l[0],l[1])),y.point(v[0],v[1]),s||y.lineEnd(),g=!1):s&&(y.lineStart(),y.point(i,a),g=!1)}h=i,m=a,_=s}return w}}var al,sl,ll,ul=Bi(),cl=function(e,t){var n=t[0],r=t[1],o=[pa(n),-la(n),0],i=0,a=0;ul.reset();for(var s=0,l=e.length;s=0?1:-1,T=x*k,M=T>Qi,O=h*v;if(ul.add(sa(O*x*pa(T),m*w+O*la(T))),i+=M?k+x*na:k,M^f>=n^g>=n){var E=Ka(Ba(d),Ba(b));Qa(E);var L=Ka(o,E);Qa(L);var S=(M^k>=0?-1:1)*ga(L[2]);(r>S||r===S&&(E[0]||E[1]))&&(a+=M^k>=0?1:-1)}}return(i<-$i||i<$i&&ul<-$i)^1&a},dl=Bi(),fl={sphere:va,point:va,lineStart:function(){fl.point=hl,fl.lineEnd=pl},lineEnd:va,polygonStart:va,polygonEnd:va};function pl(){fl.point=fl.lineEnd=va}function hl(e,t){al=e*=oa,sl=pa(t*=oa),ll=la(t),fl.point=ml}function ml(e,t){e*=oa;var n=pa(t*=oa),r=la(t),o=ia(e-al),i=la(o),a=pa(o),s=r*a,l=ll*n-sl*r*i,u=sl*n+ll*r*i;dl.add(sa(ma(s*s+l*l),u)),al=e,sl=n,ll=r}var _l=function(e){return dl.reset(),Na(e,fl),+dl},bl=[null,null],gl={type:"LineString",coordinates:bl},yl=function(e,t){return bl[0]=e,bl[1]=t,_l(gl)},vl={Feature:function(e,t){return kl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r$i}).map(l)).concat(_(ua(i/p)*p,o,p).filter(function(e){return ia(e%m)>$i}).map(u))}return g.lines=function(){return y().map(function(e){return{type:"LineString",coordinates:e}})},g.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(d(a).slice(1),c(n).reverse().slice(1),d(s).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.extentMajor(e).extentMinor(e):g.extentMinor()},g.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),g.precision(b)):[[r,s],[n,a]]},g.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),i>o&&(n=i,i=o,o=n),g.precision(b)):[[t,i],[e,o]]},g.step=function(e){return arguments.length?g.stepMajor(e).stepMinor(e):g.stepMinor()},g.stepMajor=function(e){return arguments.length?(h=+e[0],m=+e[1],g):[h,m]},g.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],g):[f,p]},g.precision=function(f){return arguments.length?(b=+f,l=Ll(i,o,90),u=Sl(t,e,b),c=Ll(s,a,90),d=Sl(r,n,b),g):b},g.extentMajor([[-180,-90+$i],[180,90-$i]]).extentMinor([[-180,-80-$i],[180,80+$i]])}var jl,Cl,Al,Pl,Il=function(e){return e},Rl=Bi(),Hl=Bi(),Yl={point:va,lineStart:va,lineEnd:va,polygonStart:function(){Yl.lineStart=Nl,Yl.lineEnd=Vl},polygonEnd:function(){Yl.lineStart=Yl.lineEnd=Yl.point=va,Rl.add(ia(Hl)),Hl.reset()},result:function(){var e=Rl/2;return Rl.reset(),e}};function Nl(){Yl.point=Wl}function Wl(e,t){Yl.point=Jl,jl=Al=e,Cl=Pl=t}function Jl(e,t){Hl.add(Pl*e-Al*t),Al=e,Pl=t}function Vl(){Jl(jl,Cl)}var Ul,Xl,Gl,Fl,zl=1/0,Bl=zl,ql=-zl,Kl=ql,Zl={point:function(e,t){eql&&(ql=e),tKl&&(Kl=t)},lineStart:va,lineEnd:va,polygonStart:va,polygonEnd:va,result:function(){var e=[[zl,Bl],[ql,Kl]];return ql=Kl=-(Bl=zl=1/0),e}},$l=0,Ql=0,eu=0,tu=0,nu=0,ru=0,ou=0,iu=0,au=0,su={point:lu,lineStart:uu,lineEnd:fu,polygonStart:function(){su.lineStart=pu,su.lineEnd=hu},polygonEnd:function(){su.point=lu,su.lineStart=uu,su.lineEnd=fu},result:function(){var e=au?[ou/au,iu/au]:ru?[tu/ru,nu/ru]:eu?[$l/eu,Ql/eu]:[NaN,NaN];return $l=Ql=eu=tu=nu=ru=ou=iu=au=0,e}};function lu(e,t){$l+=e,Ql+=t,++eu}function uu(){su.point=cu}function cu(e,t){su.point=du,lu(Gl=e,Fl=t)}function du(e,t){var n=e-Gl,r=t-Fl,o=ma(n*n+r*r);tu+=o*(Gl+e)/2,nu+=o*(Fl+t)/2,ru+=o,lu(Gl=e,Fl=t)}function fu(){su.point=lu}function pu(){su.point=mu}function hu(){_u(Ul,Xl)}function mu(e,t){su.point=_u,lu(Ul=Gl=e,Xl=Fl=t)}function _u(e,t){var n=e-Gl,r=t-Fl,o=ma(n*n+r*r);tu+=o*(Gl+e)/2,nu+=o*(Fl+t)/2,ru+=o,ou+=(o=Fl*e-Gl*t)*(Gl+e),iu+=o*(Fl+t),au+=3*o,lu(Gl=e,Fl=t)}function bu(e){this._context=e}bu.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,na)}},result:va};var gu,yu,vu,wu,ku,xu=Bi(),Tu={point:va,lineStart:function(){Tu.point=Mu},lineEnd:function(){gu&&Ou(yu,vu),Tu.point=va},polygonStart:function(){gu=!0},polygonEnd:function(){gu=null},result:function(){var e=+xu;return xu.reset(),e}};function Mu(e,t){Tu.point=Ou,yu=wu=e,vu=ku=t}function Ou(e,t){wu-=e,ku-=t,xu.add(ma(wu*wu+ku*ku)),wu=e,ku=t}function Eu(){this._string=[]}function Lu(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Eu.prototype={_radius:4.5,_circle:Lu(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Lu(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Su=function(e,t,n,r){return function(o,i){var a,s,l,u=t(i),c=o.invert(r[0],r[1]),d=Zs(),f=t(d),p=!1,h={point:m,lineStart:b,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=v,h.lineEnd=w,s=[],a=[]},polygonEnd:function(){h.point=m,h.lineStart=b,h.lineEnd=g,s=M(s);var e=cl(a,c);s.length?(p||(i.polygonStart(),p=!0),tl(s,ju,e,n,i)):e&&(p||(i.polygonStart(),p=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),p&&(i.polygonEnd(),p=!1),s=a=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function m(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function _(e,t){var n=o(e,t);u.point(n[0],n[1])}function b(){h.point=_,u.lineStart()}function g(){h.point=m,u.lineEnd()}function y(e,t){l.push([e,t]);var n=o(e,t);f.point(n[0],n[1])}function v(){f.lineStart(),l=[]}function w(){y(l[0][0],l[0][1]),f.lineEnd();var e,t,n,r,o=f.clean(),u=d.result(),c=u.length;if(l.pop(),a.push(l),l=null,c)if(1&o){if(n=u[0],(t=n.length-1)>0){for(p||(i.polygonStart(),p=!0),i.lineStart(),e=0;e1&&2&o&&u.push(u.pop().concat(u.shift())),s.push(u.filter(Du))}return h}};function Du(e){return e.length>1}function ju(e,t){return((e=e.x)[0]<0?e[1]-ea-$i:ea-e[1])-((t=t.x)[0]<0?t[1]-ea-$i:ea-t[1])}var Cu=Su(function(){return!0},function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(i,a){var s=i>0?Qi:-Qi,l=ia(i-n);ia(l-Qi)<$i?(e.point(n,r=(r+a)/2>0?ea:-ea),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(i,r),t=0):o!==s&&l>=Qi&&(ia(n-o)<$i&&(n-=o*$i),ia(i-s)<$i&&(i-=s*$i),r=function(e,t,n,r){var o,i,a=pa(e-n);return ia(a)>$i?aa((pa(t)*(i=la(r))*pa(n)-pa(r)*(o=la(t))*pa(e))/(o*i*a)):(t+r)/2}(n,r,i,a),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=i,r=a),o=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var o;if(null==e)o=n*ea,r.point(-Qi,o),r.point(0,o),r.point(Qi,o),r.point(Qi,0),r.point(Qi,-o),r.point(0,-o),r.point(-Qi,-o),r.point(-Qi,0),r.point(-Qi,o);else if(ia(e[0]-t[0])>$i){var i=e[0]0,o=ia(n)>$i;function i(e,t){return la(e)*la(t)>n}function a(e,t,r){var o=Ba(e),i=Ba(t),a=[1,0,0],s=Ka(o,i),l=qa(s,s),u=s[0],c=l-u*u;if(!c)return!r&&e;var d=n*l/c,f=-n*u/c,p=Ka(a,s),h=$a(a,d),m=$a(s,f);Za(h,m);var _=p,b=qa(h,_),g=qa(_,_),y=b*b-g*(qa(h,h)-1);if(!(y<0)){var v=ma(y),w=$a(_,(-b-v)/g);if(Za(w,h),w=za(w),!r)return w;var k,x=e[0],T=t[0],M=e[1],O=t[1];T0^w[1]<(ia(w[0]-x)<$i?M:O):M<=w[1]&&w[1]<=O:E>Qi^(x<=w[0]&&w[0]<=T)){var D=$a(_,(-b+v)/g);return Za(D,h),[w,za(D)]}}}function s(t,n){var o=r?e:Qi-e,i=0;return t<-o?i|=1:t>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return Su(i,function(e){var t,n,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(d,f){var p,h=[d,f],m=i(d,f),_=r?m?0:s(d,f):m?s(d+(d<0?Qi:-Qi),f):0;if(!t&&(u=l=m)&&e.lineStart(),m!==l&&(!(p=a(t,h))||Qs(t,p)||Qs(h,p))&&(h[0]+=$i,h[1]+=$i,m=i(h[0],h[1])),m!==l)c=0,m?(e.lineStart(),p=a(h,t),e.point(p[0],p[1])):(p=a(t,h),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(o&&t&&r^m){var b;_&n||!(b=a(h,t,!0))||(c=0,r?(e.lineStart(),e.point(b[0][0],b[0][1]),e.point(b[1][0],b[1][1]),e.lineEnd()):(e.point(b[1][0],b[1][1]),e.lineEnd(),e.lineStart(),e.point(b[0][0],b[0][1])))}!m||t&&Qs(t,h)||e.point(h[0],h[1]),t=h,l=m,n=_},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return c|(u&&l)<<1}}},function(n,r,o,i){qs(i,e,t,o,n,r)},r?[0,-e]:[-Qi,e-Qi])};function Pu(e){return function(t){var n=new Iu;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Iu(){}function Ru(e,t,n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],i=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),Na(n,e.stream(Zl));var a=Zl.result(),s=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),l=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,u=+t[0][1]+(o-s*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*s).translate([l,u])}function Hu(e,t,n){return Ru(e,[[0,0],t],n)}Iu.prototype={constructor:Iu,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Yu=16,Nu=la(30*oa),Wu=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,l,u,c,d,f,p,h,m,_){var b=u-r,g=c-o,y=b*b+g*g;if(y>4*t&&m--){var v=a+f,w=s+p,k=l+h,x=ma(v*v+w*w+k*k),T=ga(k/=x),M=ia(ia(k)-1)<$i||ia(i-d)<$i?(i+d)/2:sa(w,v),O=e(M,T),E=O[0],L=O[1],S=E-r,D=L-o,j=g*S-b*D;(j*j/y>t||ia((b*S+g*D)/y-.5)>.3||a*f+s*p+l*h2?e[2]%360*oa:0,L()):[_*ra,b*ra,g*ra]},M.precision=function(e){return arguments.length?(T=Wu(E,x=e*e),S()):ma(x)},M.fitExtent=function(e,t){return Ru(M,e,t)},M.fitSize=function(e,t){return Hu(M,e,t)},function(){return t=e.apply(this,arguments),M.invert=t.invert&&O,L()}}function Xu(e){var t=0,n=Qi/3,r=Uu(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*oa,n=e[1]*oa):[t*ra,n*ra]},o}function Gu(e,t){var n=pa(e),r=(n+pa(t))/2;if(ia(r)<$i)return function(e){var t=la(e);function n(e,n){return[e*t,pa(n)/t]}return n.invert=function(e,n){return[e/t,ga(n*t)]},n}(e);var o=1+n*(2*r-n),i=ma(o)/r;function a(e,t){var n=ma(o-2*r*pa(t))/r;return[n*pa(e*=r),i-n*la(e)]}return a.invert=function(e,t){var n=i-t;return[sa(e,ia(n))/r*ha(n),ga((o-(e*e+n*n)*r*r)/(2*r))]},a}var Fu=function(){return Xu(Gu).scale(155.424).center([0,33.6442])},zu=function(){return Fu().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function Bu(e){return function(t,n){var r=la(t),o=la(n),i=e(r*o);return[i*o*pa(t),i*pa(n)]}}function qu(e){return function(t,n){var r=ma(t*t+n*n),o=e(r),i=pa(o),a=la(o);return[sa(t*i,r*a),ga(r&&n*i/r)]}}var Ku=Bu(function(e){return ma(2/(1+e))});Ku.invert=qu(function(e){return 2*ga(e/2)});var Zu=Bu(function(e){return(e=ba(e))&&e/pa(e)});function $u(e,t){return[e,da(_a((ea+t)/2))]}function Qu(e){var t,n,r,o=Vu(e),i=o.center,a=o.scale,s=o.translate,l=o.clipExtent,u=null;function c(){var i=Qi*a(),s=o(Bs(o.rotate()).invert([0,0]));return l(null==u?[[s[0]-i,s[1]-i],[s[0]+i,s[1]+i]]:e===$u?[[Math.max(s[0]-i,u),t],[Math.min(s[0]+i,n),r]]:[[u,Math.max(s[1]-i,t)],[n,Math.min(s[1]+i,r)]])}return o.scale=function(e){return arguments.length?(a(e),c()):a()},o.translate=function(e){return arguments.length?(s(e),c()):s()},o.center=function(e){return arguments.length?(i(e),c()):i()},o.clipExtent=function(e){return arguments.length?(null==e?u=t=n=r=null:(u=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==u?null:[[u,t],[n,r]]},c()}function ec(e){return _a((ea+e)/2)}function tc(e,t){var n=la(e),r=e===t?pa(e):da(n/la(t))/da(ec(t)/ec(e)),o=n*fa(ec(e),r)/r;if(!r)return $u;function i(e,t){o>0?t<-ea+$i&&(t=-ea+$i):t>ea-$i&&(t=ea-$i);var n=o/fa(ec(t),r);return[n*pa(r*e),o-n*la(r*e)]}return i.invert=function(e,t){var n=o-t,i=ha(r)*ma(e*e+n*n);return[sa(e,ia(n))/r*ha(n),2*aa(fa(o/i,1/r))-ea]},i}function nc(e,t){return[e,t]}function rc(e,t){var n=la(e),r=e===t?pa(e):(n-la(t))/(t-e),o=n/r+e;if(ia(r)<$i)return nc;function i(e,t){var n=o-t,i=r*e;return[n*pa(i),o-n*la(i)]}return i.invert=function(e,t){var n=o-t;return[sa(e,ia(n))/r*ha(n),o-ha(r)*ma(e*e+n*n)]},i}function oc(e,t){var n=la(t),r=la(e)*n;return[n*pa(e)/r,pa(t)/r]}function ic(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?Il:Pu({point:function(o,i){this.stream.point(o*e+n,i*t+r)}})}function ac(e,t){return[la(t)*pa(e),pa(t)]}function sc(e,t){var n=la(t),r=1+la(e)*n;return[n*pa(e)/r,pa(t)/r]}function lc(e,t){return[da(_a((ea+t)/2)),-e]}function uc(e,t){return e.parent===t.parent?1:2}function cc(e,t){return e+t.x}function dc(e,t){return Math.max(e,t.y)}function fc(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function pc(e,t){var n,r,o,i,a,s=new bc(e),l=+e.value&&(s.value=e.value),u=[s];for(null==t&&(t=hc);n=u.pop();)if(l&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)u.push(r=n.children[i]=new bc(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_c)}function hc(e){return e.children}function mc(e){e.data=e.data.data}function _c(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function bc(e){this.data=e,this.depth=this.height=0,this.parent=null}Zu.invert=qu(function(e){return e}),$u.invert=function(e,t){return[e,2*aa(ca(t))-ea]},nc.invert=nc,oc.invert=qu(aa),ac.invert=qu(ga),sc.invert=qu(function(e){return 2*aa(e)}),lc.invert=function(e,t){return[-t,2*aa(ca(e))-ea]},bc.prototype=pc.prototype={constructor:bc,count:function(){return this.eachAfter(fc)},each:function(e){var t,n,r,o,i=this,a=[i];do{for(t=a.reverse(),a=[];i=t.pop();)if(e(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return pc(this).eachBefore(mc)}};var gc=Array.prototype.slice,yc=function(e){for(var t,n,r=0,o=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}(gc.call(e))).length,i=[];r0&&n*n>r*r+o*o}function xc(e,t){for(var n=0;nn*n+r*r}function Sc(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,i=(t.y*n.r+n.y*t.r)/r;return o*o+i*i}function Dc(e){this._=e,this.next=null,this.previous=null}function jc(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,l,u,c,d;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;Ec(n,t,r=e[2]),t=new Dc(t),n=new Dc(n),r=new Dc(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sf&&(f=s),_=c*c*m,(p=Math.max(f/_,_/d))>h){c-=s;break}h=p}b.push(a={value:c,dice:l1?t:1)},n}(Qc),nd=function e(t){function n(e,n,r,o,i){if((a=e._squarify)&&a.ratio===t)for(var a,s,l,u,c,d=-1,f=a.length,p=e.value;++d1?t:1)},n}(Qc),rd=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function od(e,t){return e[0]-t[0]||e[1]-t[1]}function id(e){for(var t=e.length,n=[0,1],r=2,o=2;o1&&rd(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var ad=[].slice,sd={};function ld(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function ud(e){if(!e._start)try{!function(e){for(;e._start=e._waiting&&e._active=0;)if((n=e._tasks[r])&&(e._tasks[r]=null,n.abort))try{n.abort()}catch(t){}e._active=NaN,fd(e)}function fd(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function pd(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new ld(e)}ld.prototype=pd.prototype={constructor:ld,defer:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var t=ad.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),ud(this),this},abort:function(){return null==this._error&&dd(this,new Error("abort")),this},await:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(t,n){e.apply(null,[t].concat(n))},fd(this),this},awaitAll:function(e){if("function"!=typeof e)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=e,fd(this),this}};var hd=function(){return Math.random()},md=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(hd),_d=function e(t){function n(e,n){var r,o;return e=null==e?0:+e,n=null==n?1:+n,function(){var i;if(null!=r)i=r,r=null;else do{r=2*t()-1,i=2*t()-1,o=r*r+i*i}while(!o||o>1);return e+n*i*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(hd),bd=function e(t){function n(){var e=_d.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(hd),gd=function e(t){function n(e){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(o)try{t=o.call(n,l)}catch(e){return void a.call("error",n,e)}else t=l;a.call("load",n,t)}else a.call("error",n,e)}if("undefined"==typeof XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(e)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=f:l.onreadystatechange=function(e){l.readyState>3&&f(e)},l.onprogress=function(e){a.call("progress",n,e)},n={header:function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s.get(e):(null==t?s.remove(e):s.set(e,t+""),n)},mimeType:function(e){return arguments.length?(r=null==e?null:e+"",n):r},responseType:function(e){return arguments.length?(i=e,n):i},timeout:function(e){return arguments.length?(d=+e,n):d},user:function(e){return arguments.length<1?u:(u=null==e?null:e+"",n)},password:function(e){return arguments.length<1?c:(c=null==e?null:e+"",n)},response:function(e){return o=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,o,f){return l.open(t,e,!0,u,c),null==r||s.has("accept")||s.set("accept",r+",*/*"),l.setRequestHeader&&s.each(function(e,t){l.setRequestHeader(t,e)}),null!=r&&l.overrideMimeType&&l.overrideMimeType(r),null!=i&&(l.responseType=i),d>0&&(l.timeout=d),null==f&&"function"==typeof o&&(f=o,o=null),null!=f&&1===f.length&&(f=function(e){return function(t,n){e(null==t?n:null)}}(f)),null!=f&&n.on("error",f).on("load",function(e){f(null,e)}),a.call("beforesend",n,l),l.send(null==o?null:o),n},abort:function(){return l.abort(),n},on:function(){var e=a.on.apply(a,arguments);return e===a?n:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n},kd=function(e,t){return function(n,r){var o=wd(n).mimeType(e).response(t);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return o.get(r)}return o}},xd=kd("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),Td=kd("application/json",function(e){return JSON.parse(e.responseText)}),Md=kd("text/plain",function(e){return e.responseText}),Od=kd("application/xml",function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t}),Ed=function(e,t){return function(n,r,o){arguments.length<3&&(o=r,r=null);var i=wd(n).mimeType(e);return i.row=function(e){return arguments.length?i.response(function(e,t){return function(n){return e(n.responseText,t)}}(t,r=e)):r},i.row(r),o?i.get(o):i}},Ld=Ed("text/csv",ii),Sd=Ed("text/tab-separated-values",ci),Dd=Array.prototype,jd=Dd.map,Cd=Dd.slice,Ad={name:"implicit"};function Pd(e){var t=Bo(),n=[],r=Ad;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==Ad)return r;t.set(i,a=n.push(o))}return e[(a-1)%e.length]}return e=null==e?[]:Cd.call(e),o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Bo();for(var r,i,a=-1,s=e.length;++a2?Jd:Wd,r=o=null,c}function c(t){return(r||(r=n(i,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(o||(o=n(a,i,Nd,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(i=jd.call(e,Hd),u()):i.slice()},c.range=function(e){return arguments.length?(a=Cd.call(e),u()):a.slice()},c.rangeRound=function(e){return a=Cd.call(e),s=kn,u()},c.clamp=function(e){return arguments.length?(l=!!e,u()):l},c.interpolate=function(e){return arguments.length?(s=e,u()):s},u()}var Xd=function(t,n,r){var o,i=t[0],a=t[t.length-1],s=k(i,a,null==n?10:n);switch((r=Yi(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(i),Math.abs(a));return null!=r.precision||isNaN(o=Fi(s,l))||(r.precision=o),e.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=zi(s,Math.max(Math.abs(i),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Gi(s))||(r.precision=o-2*("%"===r.type))}return e.format(r)};function Gd(e){var t=e.domain;return e.ticks=function(e){var n=t();return v(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return Xd(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],l=o[a];return l0?(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,r=w(s,l,n)):r<0&&(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,r=w(s,l,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(l/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(l*r)/r,t(o)),e},e}var Fd=function(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a0))return a;do{a.push(new Date(+n))}while(t(n,i),e(n),n=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return tf.setTime(+t),nf.setTime(+r),e(tf),e(nf),Math.floor(n(tf,nf))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var of=rf(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});of.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?rf(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):of:null};var af=of.range,sf=6e4,lf=6048e5,uf=rf(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),cf=uf.range,df=rf(function(e){e.setTime(Math.floor(e/sf)*sf)},function(e,t){e.setTime(+e+t*sf)},function(e,t){return(t-e)/sf},function(e){return e.getMinutes()}),ff=df.range,pf=rf(function(e){var t=e.getTimezoneOffset()*sf%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),hf=pf.range,mf=rf(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sf)/864e5},function(e){return e.getDate()-1}),_f=mf.range;function bf(e){return rf(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sf)/lf})}var gf=bf(0),yf=bf(1),vf=bf(2),wf=bf(3),kf=bf(4),xf=bf(5),Tf=bf(6),Mf=gf.range,Of=yf.range,Ef=vf.range,Lf=wf.range,Sf=kf.range,Df=xf.range,jf=Tf.range,Cf=rf(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),Af=Cf.range,Pf=rf(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Pf.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rf(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var If=Pf.range,Rf=rf(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*sf)},function(e,t){return(t-e)/sf},function(e){return e.getUTCMinutes()}),Hf=Rf.range,Yf=rf(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),Nf=Yf.range,Wf=rf(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Jf=Wf.range;function Vf(e){return rf(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/lf})}var Uf=Vf(0),Xf=Vf(1),Gf=Vf(2),Ff=Vf(3),zf=Vf(4),Bf=Vf(5),qf=Vf(6),Kf=Uf.range,Zf=Xf.range,$f=Gf.range,Qf=Ff.range,ep=zf.range,tp=Bf.range,np=qf.range,rp=rf(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),op=rp.range,ip=rf(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ip.every=function(e){return isFinite(e=Math.floor(e))&&e>0?rf(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var ap=ip.range;function sp(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function lp(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function up(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function cp(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=gp(o),c=yp(o),d=gp(i),f=yp(i),p=gp(a),h=yp(a),m=gp(s),_=yp(s),b=gp(l),g=yp(l),y={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Pp,e:Pp,H:Ip,I:Rp,j:Hp,L:Yp,m:Np,M:Wp,p:function(e){return o[+(e.getHours()>=12)]},S:Jp,U:Vp,w:Up,W:Xp,x:null,X:null,y:Gp,Y:Fp,Z:zp,"%":lh},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Bp,e:Bp,H:qp,I:Kp,j:Zp,L:$p,m:Qp,M:eh,p:function(e){return o[+(e.getUTCHours()>=12)]},S:th,U:nh,w:rh,W:oh,x:null,X:null,y:ih,Y:ah,Z:sh,"%":lh},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:Ep,e:Ep,H:Sp,I:Sp,j:Lp,L:Cp,m:Op,M:Dp,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},S:jp,U:wp,w:vp,W:kp,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:Tp,Y:xp,Z:Mp,"%":Ap};function k(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in fp?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return y.x=k(n,y),y.X=k(r,y),y.c=k(t,y),v.x=k(n,v),v.X=k(r,v),v.c=k(t,v),{format:function(e){var t=k(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",sp);return t.toString=function(){return e},t},utcFormat:function(e){var t=k(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,lp);return t.toString=function(){return e},t}}}var dp,fp={"-":"",_:" ",0:"0"},pp=/^\s*\d+/,hp=/^%/,mp=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function _p(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i68?1900:2e3),n+r[0].length):-1}function Mp(e,t,n){var r=/^(Z)|([+-]\d\d)(?:\:?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Op(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ep(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Lp(e,t,n){var r=pp.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Sp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Dp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Cp(e,t,n){var r=pp.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ap(e,t,n){var r=hp.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Pp(e,t){return _p(e.getDate(),t,2)}function Ip(e,t){return _p(e.getHours(),t,2)}function Rp(e,t){return _p(e.getHours()%12||12,t,2)}function Hp(e,t){return _p(1+mf.count(Pf(e),e),t,3)}function Yp(e,t){return _p(e.getMilliseconds(),t,3)}function Np(e,t){return _p(e.getMonth()+1,t,2)}function Wp(e,t){return _p(e.getMinutes(),t,2)}function Jp(e,t){return _p(e.getSeconds(),t,2)}function Vp(e,t){return _p(gf.count(Pf(e),e),t,2)}function Up(e){return e.getDay()}function Xp(e,t){return _p(yf.count(Pf(e),e),t,2)}function Gp(e,t){return _p(e.getFullYear()%100,t,2)}function Fp(e,t){return _p(e.getFullYear()%1e4,t,4)}function zp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+_p(t/60|0,"0",2)+_p(t%60,"0",2)}function Bp(e,t){return _p(e.getUTCDate(),t,2)}function qp(e,t){return _p(e.getUTCHours(),t,2)}function Kp(e,t){return _p(e.getUTCHours()%12||12,t,2)}function Zp(e,t){return _p(1+Wf.count(ip(e),e),t,3)}function $p(e,t){return _p(e.getUTCMilliseconds(),t,3)}function Qp(e,t){return _p(e.getUTCMonth()+1,t,2)}function eh(e,t){return _p(e.getUTCMinutes(),t,2)}function th(e,t){return _p(e.getUTCSeconds(),t,2)}function nh(e,t){return _p(Uf.count(ip(e),e),t,2)}function rh(e){return e.getUTCDay()}function oh(e,t){return _p(Xf.count(ip(e),e),t,2)}function ih(e,t){return _p(e.getUTCFullYear()%100,t,2)}function ah(e,t){return _p(e.getUTCFullYear()%1e4,t,4)}function sh(){return"+0000"}function lh(){return"%"}function uh(t){return dp=cp(t),e.timeFormat=dp.format,e.timeParse=dp.parse,e.utcFormat=dp.utcFormat,e.utcParse=dp.utcParse,dp}uh({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ch=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),dh=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:e.utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),fh=1e3,ph=60*fh,hh=60*ph,mh=24*hh,_h=7*mh,bh=30*mh,gh=365*mh;function yh(e){return new Date(e)}function vh(e){return e instanceof Date?+e:+new Date(+e)}function wh(e,t,r,o,i,a,s,l,u){var c=Ud(Nd,_n),d=c.invert,f=c.domain,p=u(".%L"),h=u(":%S"),m=u("%I:%M"),_=u("%I %p"),b=u("%a %d"),g=u("%b %d"),y=u("%B"),v=u("%Y"),w=[[s,1,fh],[s,5,5*fh],[s,15,15*fh],[s,30,30*fh],[a,1,ph],[a,5,5*ph],[a,15,15*ph],[a,30,30*ph],[i,1,hh],[i,3,3*hh],[i,6,6*hh],[i,12,12*hh],[o,1,mh],[o,2,2*mh],[r,1,_h],[t,1,bh],[t,3,3*bh],[e,1,gh]];function x(n){return(s(n)=1?Fh:e<=-1?-Fh:Math.asin(e)}function qh(e){return e.innerRadius}function Kh(e){return e.outerRadius}function Zh(e){return e.startAngle}function $h(e){return e.endAngle}function Qh(e){return e&&e.padAngle}function em(e,t,n,r,o,i,a){var s=e-n,l=t-r,u=(a?i:-i)/Uh(s*s+l*l),c=u*l,d=-u*s,f=e+c,p=t+d,h=n+c,m=r+d,_=(f+h)/2,b=(p+m)/2,g=h-f,y=m-p,v=g*g+y*y,w=o-i,k=f*m-h*p,x=(y<0?-1:1)*Uh(Wh(0,w*w*v-k*k)),T=(k*y-g*x)/v,M=(-k*g-y*x)/v,O=(k*y+g*x)/v,E=(-k*g+y*x)/v,L=T-_,S=M-b,D=O-_,j=E-b;return L*L+S*S>D*D+j*j&&(T=O,M=E),{cx:T,cy:M,x01:-c,y01:-d,x11:T*(o/w-1),y11:M*(o/w-1)}}function tm(e){this._context=e}tm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var nm=function(e){return new tm(e)};function rm(e){return e[0]}function om(e){return e[1]}var im=function(){var e=rm,t=om,n=Rh(!0),r=null,o=nm,i=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(i=o(u=Jo())),s=0;s<=c;++s)!(s=c;--d)s.point(_[d],b[d]);s.lineEnd(),s.areaEnd()}m&&(_[u]=+e(f,u,l),b[u]=+n(f,u,l),s.point(t?+t(f,u,l):_[u],r?+r(f,u,l):b[u]))}if(p)return s=null,p+""||null}function u(){return im().defined(o).curve(a).context(i)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Rh(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Rh(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Rh(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:Rh(!!e),l):o},l.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),l):a},l.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),l):i},l},sm=function(e,t){return te?1:t>=e?0:NaN},lm=function(e){return e},um=dm(nm);function cm(e){this._curve=e}function dm(e){function t(t){return new cm(e(t))}return t._curve=e,t}function fm(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(dm(e)):t()._curve},e}cm.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var pm=function(){return fm(im().curve(um))},hm=function(){var e=am().curve(um),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,i=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return fm(n())},delete e.lineX0,e.lineEndAngle=function(){return fm(r())},delete e.lineX1,e.lineInnerRadius=function(){return fm(o())},delete e.lineY0,e.lineOuterRadius=function(){return fm(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(dm(e)):t()._curve},e},mm=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},_m=Array.prototype.slice;function bm(e){return e.source}function gm(e){return e.target}function ym(e){var t=bm,n=gm,r=rm,o=om,i=null;function a(){var a,s=_m.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(i||(i=a=Jo()),e(i,+r.apply(this,(s[0]=l,s)),+o.apply(this,s),+r.apply(this,(s[0]=u,s)),+o.apply(this,s)),a)return i=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Rh(+e),a):r},a.y=function(e){return arguments.length?(o="function"==typeof e?e:Rh(+e),a):o},a.context=function(e){return arguments.length?(i=null==e?null:e,a):i},a}function vm(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function wm(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function km(e,t,n,r,o){var i=mm(t,n),a=mm(t,n=(n+o)/2),s=mm(r,n),l=mm(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}var xm={draw:function(e,t){var n=Math.sqrt(t/Gh);e.moveTo(n,0),e.arc(0,0,n,0,zh)}},Tm={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Mm=Math.sqrt(1/3),Om=2*Mm,Em={draw:function(e,t){var n=Math.sqrt(t/Om),r=n*Mm;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Lm=Math.sin(Gh/10)/Math.sin(7*Gh/10),Sm=Math.sin(zh/10)*Lm,Dm=-Math.cos(zh/10)*Lm,jm={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Sm*n,o=Dm*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=zh*i/5,s=Math.cos(a),l=Math.sin(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},Cm={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Am=Math.sqrt(3),Pm={draw:function(e,t){var n=-Math.sqrt(t/(3*Am));e.moveTo(0,2*n),e.lineTo(-Am*n,-n),e.lineTo(Am*n,-n),e.closePath()}},Im=-.5,Rm=Math.sqrt(3)/2,Hm=1/Math.sqrt(12),Ym=3*(Hm/2+1),Nm={draw:function(e,t){var n=Math.sqrt(t/Ym),r=n/2,o=n*Hm,i=r,a=n*Hm+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Im*r-Rm*o,Rm*r+Im*o),e.lineTo(Im*i-Rm*a,Rm*i+Im*a),e.lineTo(Im*s-Rm*l,Rm*s+Im*l),e.lineTo(Im*r+Rm*o,Im*o-Rm*r),e.lineTo(Im*i+Rm*a,Im*a-Rm*i),e.lineTo(Im*s+Rm*l,Im*l-Rm*s),e.closePath()}},Wm=[xm,Tm,Em,Cm,jm,Pm,Nm],Jm=function(){};function Vm(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Um(e){this._context=e}function Xm(e){this._context=e}function Gm(e){this._context=e}function Fm(e,t){this._basis=new Um(e),this._beta=t}Um.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Vm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vm(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Xm.prototype={areaStart:Jm,areaEnd:Jm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Vm(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Gm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Vm(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Fm.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,o=e[0],i=t[0],a=e[n]-o,s=t[n]-i,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*a),this._beta*t[l]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var zm=function e(t){function n(e){return 1===t?new Um(e):new Fm(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Bm(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function qm(e,t){this._context=e,this._k=(1-t)/6}qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Bm(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Bm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Km=function e(t){function n(e){return new qm(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Zm(e,t){this._context=e,this._k=(1-t)/6}Zm.prototype={areaStart:Jm,areaEnd:Jm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Bm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $m=function e(t){function n(e){return new Zm(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Qm(e,t){this._context=e,this._k=(1-t)/6}Qm.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Bm(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var e_=function e(t){function n(e){return new Qm(e,t)}return n.tension=function(t){return e(+t)},n}(0);function t_(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Xh){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>Xh){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*u+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function n_(e,t){this._context=e,this._alpha=t}n_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:t_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var r_=function e(t){function n(e){return t?new n_(e,t):new qm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function o_(e,t){this._context=e,this._alpha=t}o_.prototype={areaStart:Jm,areaEnd:Jm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:t_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var i_=function e(t){function n(e){return t?new o_(e,t):new Zm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function a_(e,t){this._context=e,this._alpha=t}a_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:t_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var s_=function e(t){function n(e){return t?new a_(e,t):new Qm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function l_(e){this._context=e}function u_(e){return e<0?-1:1}function c_(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(u_(i)+u_(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function d_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function f_(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function p_(e){this._context=e}function h_(e){this._context=new m_(e)}function m_(e){this._context=e}function __(e){this._context=e}function b_(e){var t,n,r=e.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[r-1]=(e[r]+o[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var y_=function(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i=0;)n[t]=t;return n};function w_(e,t){return e[t]}var k_=function(e){var t=e.map(x_);return v_(e).sort(function(e,n){return t[e]-t[n]})};function x_(e){for(var t,n=0,r=-1,o=e.length;++r0)){if(i/=h,h<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=r-l,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>f&&(f=i)}else if(h>0){if(i0)){if(i/=m,m<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=o-u,m||!(i<0)){if(i/=m,m<0){if(i>p)return;i>f&&(f=i)}else if(m>0){if(i0||p<1)||(f>0&&(e[0]=[l+f*h,u+f*m]),p<1&&(e[1]=[l+p*h,u+p*m]),!0)}}}}}function R_(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,l=e[0],u=e.left,c=e.right,d=u[0],f=u[1],p=c[0],h=c[1],m=(d+p)/2,_=(f+h)/2;if(h===f){if(m=r)return;if(d>p){if(l){if(l[1]>=o)return}else l=[m,n];i=[m,o]}else{if(l){if(l[1]1)if(d>p){if(l){if(l[1]>=o)return}else l=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(l){if(l[1]=r)return}else l=[t,a*t+s];i=[r,a*r+s]}else{if(l){if(l[0]=-nb)){var p=l*l+u*u,h=c*c+d*d,m=(d*p-u*h)/f,_=(l*h-c*p)/f,b=J_.pop()||new function(){L_(this),this.x=this.y=this.arc=this.site=this.cy=null};b.arc=e,b.site=o,b.x=m+a,b.y=(b.cy=_+s)+Math.sqrt(m*m+_*_),e.circle=b;for(var g=null,y=Q_._;y;)if(b.ytb)s=s.L;else{if(!((o=i-K_(s,a))>tb)){r>-tb?(t=s.P,n=s):o>-tb?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){$_[e.index]={site:e,halfedges:[]}}(e);var l=G_(e);if(Z_.insert(t,l),t||n){if(t===n)return U_(t),n=G_(t.site),Z_.insert(l,n),l.edge=n.edge=C_(t.site,l.site),V_(t),void V_(n);if(n){U_(t),U_(n);var u=t.site,c=u[0],d=u[1],f=e[0]-c,p=e[1]-d,h=n.site,m=h[0]-c,_=h[1]-d,b=2*(f*_-p*m),g=f*f+p*p,y=m*m+_*_,v=[(_*g-p*y)/b+c,(f*y-m*g)/b+d];P_(n.edge,u,h,v),l.edge=C_(u,e,null,v),n.edge=C_(e,h,null,v),V_(t),V_(n)}else l.edge=C_(t.site,l.site)}}function q_(e,t){var n=e.site,r=n[0],o=n[1],i=o-t;if(!i)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],u=l-t;if(!u)return s;var c=s-r,d=1/i-1/u,f=c/u;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*u)-l+u/2+o-i/2)))/d+r:(r+s)/2}function K_(e,t){var n=e.N;if(n)return q_(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Z_,$_,Q_,eb,tb=1e-6,nb=1e-12;function rb(e,t){return t[1]-e[1]||t[0]-e[0]}function ob(e,t){var n,r,o,i=e.sort(rb).pop();for(eb=[],$_=new Array(e.length),Z_=new E_,Q_=new E_;;)if(o=W_,i&&(!o||i[1]tb||Math.abs(o[0][1]-o[1][1])>tb)||delete eb[i]}(a,s,l,u),function(e,t,n,r){var o,i,a,s,l,u,c,d,f,p,h,m,_=$_.length,b=!0;for(o=0;o<_;++o)if(i=$_[o]){for(a=i.site,l=i.halfedges,s=l.length;s--;)eb[l[s]]||l.splice(s,1);for(s=0,u=l.length;stb||Math.abs(m-f)>tb)&&(l.splice(s,0,eb.push(A_(a,p,Math.abs(h-e)tb?[e,Math.abs(d-e)tb?[Math.abs(f-r)tb?[n,Math.abs(d-n)tb?[Math.abs(f-t)=s)return null;var l=e-o.site[0],u=t-o.site[1],c=l*l+u*u;do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var l=e-s[0],u=t-s[1],d=l*l+u*u;de?1:t>=e?0:NaN},e.deviation=u,e.extent=c,e.histogram=function(){var e=m,t=c,n=x;function r(r){var i,a,s=r.length,l=new Array(s);for(i=0;id;)f.pop(),--p;var h,m=new Array(p+1);for(i=0;i<=p;++i)(h=m[i]=[]).x0=i>0?f[i-1]:c,h.x1=i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},e.mean=function(e,t){var n,r=e.length,o=r,i=-1,a=0;if(null==t)for(;++i=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,u,c,d=-1,f=n.length,p=r[o++],h=Bo(),m=a();++dr.length)return n;var a,s=o[i-1];return null!=t&&i>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,i)})})),null!=s?a.sort(function(e,t){return s(e.key,t.key)}):a}(i(e,0,Zo,$o),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return o[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}},e.set=ti,e.map=Bo,e.keys=function(e){var t=[];for(var n in e)t.push(n);return t},e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},e.color=pt,e.rgb=bt,e.hsl=vt,e.lab=At,e.hcl=Nt,e.cubehelix=qt,e.dispatch=J,e.drag=function(){var t,n,r,o,i=ze,a=Be,s=qe,l={},u=J("start","drag","end"),c=0,d=0;function f(e){e.on("mousedown.drag",p).filter(Ke).on("touchstart.drag",_).on("touchmove.drag",b).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!o&&i.apply(this,arguments)){var s=y("mouse",a.apply(this,arguments),de,this,arguments);s&&(Ne(e.event.view).on("mousemove.drag",h,!0).on("mouseup.drag",m,!0),Ue(e.event.view),Je(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function h(){if(Ve(),!r){var o=e.event.clientX-t,i=e.event.clientY-n;r=o*o+i*i>d}l.mouse("drag")}function m(){Ne(e.event.view).on("mousemove.drag mouseup.drag",null),Xe(e.event.view,r),Ve(),l.mouse("end")}function _(){if(i.apply(this,arguments)){var t,n,r=e.event.changedTouches,o=a.apply(this,arguments),s=r.length;for(t=0;tl+p||ou+p||is.index){var h=l-a.x-a.vx,m=u-a.y-a.vy,_=h*h+m*m;_e.r&&(e.r=e[t].r)}function s(){if(t){var r,o,i=t.length;for(n=new Array(i),r=0;r=a)){(e.data!==t||e.next)&&(0===c&&(c=mi(),p+=c*c),0===d&&(d=mi(),p+=d*d),p1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var o,i,a,s,l,u=0,c=e.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(e,n),t):u.on(e)}}},e.forceX=function(e){var t,n,r,o=hi(.1);function i(e){for(var o,i=0,a=t.length;ids(r[0],r[1])&&(r[1]=o[1]),ds(o[0],r[1])>ds(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,t=0,r=i[n];t<=n;r=o,++t)o=i[t],(s=ds(r[1],o[0]))>a&&(a=s,ja=o[0],Aa=r[1])}return es=ts=null,ja===1/0||Ca===1/0?[[NaN,NaN],[NaN,NaN]]:[[ja,Ca],[Aa,Pa]]},e.geoCentroid=function(e){hs=ms=_s=bs=gs=ys=vs=ws=ks=xs=Ts=0,Na(e,Ds);var t=ks,n=xs,r=Ts,o=t*t+n*n+r*r;return o<1e-12&&(t=ys,n=vs,r=ws,ms<$i&&(t=_s,n=bs,r=gs),(o=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[sa(n,t)*ra,ga(r/ma(o))*ra]},e.geoCircle=function(){var e,t,n=Js([0,0]),r=Js(90),o=Js(6),i={point:function(n,r){e.push(n=t(n,r)),n[0]*=ra,n[1]*=ra}};function a(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*oa,l=o.apply(this,arguments)*oa;return e=[],t=Xs(-a[0]*oa,-a[1]*oa,0).invert,qs(i,s,l,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:Js([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"==typeof e?e:Js(+e),a):r},a.precision=function(e){return arguments.length?(o="function"==typeof e?e:Js(+e),a):o},a},e.geoClipExtent=function(){var e,t,n,r=0,o=0,i=960,a=500;return n={stream:function(n){return e&&t===n?e:e=il(r,o,i,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],o=+s[0][1],i=+s[1][0],a=+s[1][1],e=t=null,n):[[r,o],[i,a]]}}},e.geoContains=function(e,t){return(e&&vl.hasOwnProperty(e.type)?vl[e.type]:kl)(e,t)},e.geoDistance=yl,e.geoGraticule=Dl,e.geoGraticule10=function(){return Dl()()},e.geoInterpolate=function(e,t){var n=e[0]*oa,r=e[1]*oa,o=t[0]*oa,i=t[1]*oa,a=la(r),s=pa(r),l=la(i),u=pa(i),c=a*la(n),d=a*pa(n),f=l*la(o),p=l*pa(o),h=2*ga(ma(ya(i-r)+a*l*ya(o-n))),m=pa(h),_=h?function(e){var t=pa(e*=h)/m,n=pa(h-e)/m,r=n*c+t*f,o=n*d+t*p,i=n*s+t*u;return[sa(o,r)*ra,sa(i,ma(r*r+o*o))*ra]}:function(){return[n*ra,r*ra]};return _.distance=h,_},e.geoLength=_l,e.geoPath=function(e,t){var n,r,o=4.5;function i(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),Na(e,n(r))),r.result()}return i.area=function(e){return Na(e,n(Yl)),Yl.result()},i.measure=function(e){return Na(e,n(Tu)),Tu.result()},i.bounds=function(e){return Na(e,n(Zl)),Zl.result()},i.centroid=function(e){return Na(e,n(su)),su.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,Il):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Eu):new bu(t=e),"function"!=typeof o&&r.pointRadius(o),i):t},i.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),i):o},i.projection(e).context(t)},e.geoAlbers=zu,e.geoAlbersUsa=function(){var e,t,n,r,o,i,a=zu(),s=Fu().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=Fu().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,t){i=[e,t]}};function c(e){var t=e[0],a=e[1];return i=null,n.point(t,a),i||(r.point(t,a),i)||(o.point(t,a),i)}function d(){return e=t=null,c}return c.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:a).invert(e)},c.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),s.stream(n),l.stream(n)],o=r.length,e={point:function(e,t){for(var n=-1;++n2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=lc,e.geoRotation=Bs,e.geoStream=Na,e.geoTransform=function(e){return{stream:Pu(e)}},e.cluster=function(){var e=uc,t=1,n=1,r=!1;function o(o){var i,a=0;o.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(cc,0)/e.length}(n),t.y=function(e){return 1+e.reduce(dc,0)}(n)):(t.x=i?a+=e(t,i):0,t.y=0,i=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(o),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),u=s.x-e(s,l)/2,c=l.x+e(l,s)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-u)/(c-u)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.hierarchy=pc,e.pack=function(){var e=null,t=1,n=1,r=Ac;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Rc(e)).eachAfter(Hc(r,.5)).eachBefore(Yc(1)):o.eachBefore(Rc(Ic)).eachAfter(Hc(Ac,1)).eachAfter(Hc(r,o.r/Math.min(t,n))).eachBefore(Yc(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=null==(n=t)?null:Cc(n),o):e;var n},o.size=function(e){return arguments.length?(t=+e[0],n=+e[1],o):[t,n]},o.padding=function(e){return arguments.length?(r="function"==typeof e?e:Pc(+e),o):r},o},e.packSiblings=function(e){return jc(e),e},e.packEnclose=yc,e.partition=function(){var e=1,t=1,n=0,r=!1;function o(o){var i=o.height+1;return o.x0=o.y0=n,o.x1=e,o.y1=t/i,o.eachBefore(function(e,t){return function(r){r.children&&Wc(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var o=r.x0,i=r.y0,a=r.x1-n,s=r.y1-n;a0)throw new Error("cycle");return i}return n.id=function(t){return arguments.length?(e=Cc(t),n):e},n.parentId=function(e){return arguments.length?(t=Cc(e),n):t},n},e.tree=function(){var e=Fc,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,i,a=new Zc(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Zc(r[o],o)),n.parent=t;return(a.parent=new Zc(null,0)).children=[a],a}(o);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(a),r)o.eachBefore(s);else{var u=o,c=o,d=o;o.eachBefore(function(e){e.xc.x&&(c=e),e.depth>d.depth&&(d=e)});var f=u===c?1:e(u,c)/2,p=f-u.x,h=t/(c.x+f+p),m=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*m})}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,l=i.parent.children[0],u=i.m,c=a.m,d=s.m,f=l.m;s=Bc(s),i=zc(i),s&&i;)l=zc(l),(a=Bc(a)).a=t,(o=s.z+d-i.z-u+e(s._,i._))>0&&(qc(Kc(s,t,r),t,o),u+=o,c+=o),d+=s.m,u+=i.m,f+=l.m,c+=a.m;s&&!Bc(a)&&(a.t=s,a.m+=d-c),i&&!zc(l)&&(l.t=i,l.m+=u-f,r=t)}return r}(t,o,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.treemap=function(){var e=td,t=!1,n=1,r=1,o=[0],i=Ac,a=Ac,s=Ac,l=Ac,u=Ac;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(Nc),e}function d(t){var n=o[t.depth],r=t.x0+n,c=t.y0+n,d=t.x1-n,f=t.y1-n;d=n-1){var c=s[t];return c.x0=o,c.y0=i,c.x1=a,void(c.y1=l)}for(var d=u[t],f=r/2+d,p=t+1,h=n-1;p>>1;u[m]l-i){var g=(o*b+a*_)/r;e(t,p,_,o,i,g,l),e(p,n,b,g,i,a,l)}else{var y=(i*b+l*_)/r;e(t,p,_,o,i,a,y),e(p,n,b,o,y,a,l)}}(0,l,e.value,t,n,r,o)},e.treemapDice=Wc,e.treemapSlice=$c,e.treemapSliceDice=function(e,t,n,r,o){(1&e.depth?$c:Wc)(e,t,n,r,o)},e.treemapSquarify=td,e.treemapResquarify=nd,e.interpolate=wn,e.interpolateArray=hn,e.interpolateBasis=$t,e.interpolateBasisClosed=Qt,e.interpolateDate=mn,e.interpolateNumber=_n,e.interpolateObject=bn,e.interpolateRound=kn,e.interpolateString=vn,e.interpolateTransformCss=En,e.interpolateTransformSvg=Ln,e.interpolateZoom=jn,e.interpolateRgb=an,e.interpolateRgbBasis=fn,e.interpolateRgbBasisClosed=pn,e.interpolateHsl=An,e.interpolateHslLong=Pn,e.interpolateLab=function(e,t){var n=on((e=At(e)).l,(t=At(t)).l),r=on(e.a,t.a),o=on(e.b,t.b),i=on(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=o(t),e.opacity=i(t),e+""}},e.interpolateHcl=Rn,e.interpolateHclLong=Hn,e.interpolateCubehelix=Jn,e.interpolateCubehelixLong=Vn,e.quantize=function(e,t){for(var n=new Array(t),r=0;r=0;--t)u.push(e[r[i[t]][2]]);for(t=+s;ts!=u>s&&a<(l-n)*(s-r)/(u-r)+n&&(c=!c),l=n,u=r;return c},e.polygonLength=function(e){for(var t,n,r=-1,o=e.length,i=e[o-1],a=i[0],s=i[1],l=0;++r0){for(;fl)break;m.push(d)}}else for(;f=1;--c)if(!((d=u*c)l)break;m.push(d)}}else m=v(f,p,Math.min(p-f,h)).map(a);return t?m.reverse():m},n.tickFormat=function(t,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=e.format(r)),t===1/0)return r;null==t&&(t=10);var s=Math.max(1,o*t/n.ticks().length);return function(e){var t=e/a(Math.round(i(e)));return t*o0?i[t-1]:n[0],t=r?[i[r-1],n]:[i[o-1],i[o]]},s.copy=function(){return e().domain([t,n]).range(a)},Gd(s)},e.scaleThreshold=function e(){var t=[.5],n=[0,1],r=1;function i(e){if(e<=e)return n[o(t,e,0,r)]}return i.domain=function(e){return arguments.length?(t=Cd.call(e),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(e){return arguments.length?(n=Cd.call(e),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},i.copy=function(){return e().domain(t).range(n)},i},e.scaleTime=function(){return wh(Pf,Cf,gf,mf,pf,df,uf,of,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return wh(ip,rp,Uf,Wf,Yf,Rf,uf,of,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=xh,e.schemeCategory20b=Th,e.schemeCategory20c=Mh,e.schemeCategory20=Oh,e.interpolateCubehelixDefault=Eh,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Dh.h=360*e-100,Dh.s=1.5-1.5*t,Dh.l=.8-.9*t,Dh+""},e.interpolateWarm=Lh,e.interpolateCool=Sh,e.interpolateViridis=Ch,e.interpolateMagma=Ah,e.interpolateInferno=Ph,e.interpolatePlasma=Ih,e.scaleSequential=function e(t){var n=0,r=1,o=!1;function i(e){var i=(e-n)/(r-n);return t(o?Math.max(0,Math.min(1,i)):i)}return i.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],i):[n,r]},i.clamp=function(e){return arguments.length?(o=!!e,i):o},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(t).domain([n,r]).clamp(o)},Gd(i)},e.creator=B,e.local=K,e.matcher=te,e.mouse=de,e.namespace=z,e.namespaces=F,e.select=Ne,e.selectAll=function(e){return"string"==typeof e?new He([document.querySelectorAll(e)],[document.documentElement]):new He([null==e?[]:e],Re)},e.selection=Ye,e.selector=pe,e.selectorAll=me,e.style=xe,e.touch=We,e.touches=function(e,t){null==t&&(t=ue().touches);for(var n=0,r=t?t.length:0,o=new Array(r);np;if(s||(s=l=Jo()),fXh)if(m>zh-Xh)s.moveTo(f*Nh(p),f*Vh(p)),s.arc(0,0,f,p,h,!_),d>Xh&&(s.moveTo(d*Nh(h),d*Vh(h)),s.arc(0,0,d,h,p,_));else{var b,g,y=p,v=h,w=p,k=h,x=m,T=m,M=a.apply(this,arguments)/2,O=M>Xh&&(r?+r.apply(this,arguments):Uh(d*d+f*f)),E=Jh(Hh(f-d)/2,+n.apply(this,arguments)),L=E,S=E;if(O>Xh){var D=Bh(O/d*Vh(M)),j=Bh(O/f*Vh(M));(x-=2*D)>Xh?(w+=D*=_?1:-1,k-=D):(x=0,w=k=(p+h)/2),(T-=2*j)>Xh?(y+=j*=_?1:-1,v-=j):(T=0,y=v=(p+h)/2)}var C=f*Nh(y),A=f*Vh(y),P=d*Nh(k),I=d*Vh(k);if(E>Xh){var R=f*Nh(v),H=f*Vh(v),Y=d*Nh(w),N=d*Vh(w);if(mXh?function(e,t,n,r,o,i,a,s){var l=n-e,u=r-t,c=a-o,d=s-i,f=(c*(t-i)-d*(e-o))/(d*l-c*u);return[e+f*l,t+f*u]}(C,A,Y,N,R,H,P,I):[P,I],J=C-W[0],V=A-W[1],U=R-W[0],X=H-W[1],G=1/Vh(((c=(J*U+V*X)/(Uh(J*J+V*V)*Uh(U*U+X*X)))>1?0:c<-1?Gh:Math.acos(c))/2),F=Uh(W[0]*W[0]+W[1]*W[1]);L=Jh(E,(d-F)/(G-1)),S=Jh(E,(f-F)/(G+1))}}T>Xh?S>Xh?(b=em(Y,N,C,A,f,S,_),g=em(R,H,P,I,f,S,_),s.moveTo(b.cx+b.x01,b.cy+b.y01),SXh&&x>Xh?L>Xh?(b=em(P,I,R,H,d,-L,_),g=em(C,A,Y,N,d,-L,_),s.lineTo(b.cx+b.x01,b.cy+b.y01),L0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(m[e],m[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,u=p?(b-f*y)/p:0;s0?d*u:0)+y,m[l]={data:a[l],index:s,value:d,startAngle:_,endAngle:c,padAngle:g};return m}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Rh(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Rh(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:Rh(+e),a):i},a},e.areaRadial=hm,e.radialArea=hm,e.lineRadial=pm,e.radialLine=pm,e.pointRadial=mm,e.linkHorizontal=function(){return ym(vm)},e.linkVertical=function(){return ym(wm)},e.linkRadial=function(){var e=ym(km);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=Rh(xm),t=Rh(64),n=null;function r(){var r;if(n||(n=r=Jo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:Rh(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:Rh(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},e.symbols=Wm,e.symbolCircle=xm,e.symbolCross=Tm,e.symbolDiamond=Em,e.symbolSquare=Cm,e.symbolStar=jm,e.symbolTriangle=Pm,e.symbolWye=Nm,e.curveBasisClosed=function(e){return new Xm(e)},e.curveBasisOpen=function(e){return new Gm(e)},e.curveBasis=function(e){return new Um(e)},e.curveBundle=zm,e.curveCardinalClosed=$m,e.curveCardinalOpen=e_,e.curveCardinal=Km,e.curveCatmullRomClosed=i_,e.curveCatmullRomOpen=s_,e.curveCatmullRom=r_,e.curveLinearClosed=function(e){return new l_(e)},e.curveLinear=nm,e.curveMonotoneX=function(e){return new p_(e)},e.curveMonotoneY=function(e){return new h_(e)},e.curveNatural=function(e){return new __(e)},e.curveStep=function(e){return new g_(e,.5)},e.curveStepAfter=function(e){return new g_(e,1)},e.curveStepBefore=function(e){return new g_(e,0)},e.stack=function(){var e=Rh([]),t=v_,n=y_,r=w_;function o(o){var i,a,s=e.apply(this,arguments),l=o.length,u=s.length,c=new Array(u);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i1)for(var n,r,o,i,a,s,l=0,u=e[t[0]].length;l=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},e.stackOffsetNone=y_,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;acr&&n.name===t)return new Mr([[e]],io,t,+r);return null},e.interrupt=vr,e.voronoi=function(){var e=M_,t=O_,n=null;function r(r){return new ob(r.map(function(n,o){var i=[Math.round(e(n,o,r)/tb)*tb,Math.round(t(n,o,r)/tb)*tb];return i.index=o,i.data=n,i}),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:T_(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:T_(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},e.zoom=function(){var t,n,r=db,o=fb,i=hb,a=0,s=1/0,l=-s,u=s,c=l,d=u,f=250,p=jn,h=[],m=J("start","zoom","end"),_=500,b=150,g=0;function y(e){e.property("__zoom",pb).on("wheel.zoom",E).on("mousedown.zoom",L).on("dblclick.zoom",S).filter(mb).on("touchstart.zoom",D).on("touchmove.zoom",j).on("touchend.zoom touchcancel.zoom",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function v(e,t){return(t=Math.max(a,Math.min(s,t)))===e.k?e:new ab(t,e.x,e.y)}function w(e,t,n){var r=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return r===e.x&&o===e.y?e:new ab(e.k,r,o)}function k(e,t){var n=e.invertX(t[0][0])-l,r=e.invertX(t[1][0])-u,o=e.invertY(t[0][1])-c,i=e.invertY(t[1][1])-d;return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),i>o?(o+i)/2:Math.min(0,o)||Math.max(0,i))}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function T(e,t,n){e.on("start.zoom",function(){M(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){M(this,arguments).end()}).tween("zoom",function(){var e=arguments,r=M(this,e),i=o.apply(this,e),a=n||x(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),l=this.__zoom,u="function"==typeof t?t.apply(this,e):t,c=p(l.invert(a).concat(s/l.k),u.invert(a).concat(s/u.k));return function(e){if(1===e)e=u;else{var t=c(e),n=s/t[2];e=new ab(n,a[0]-t[0]*n,a[1]-t[1]*n)}r.zoom(null,e)}})}function M(e,t){for(var n,r=0,o=h.length;rg}t.zoom("mouse",k(w(t.that.__zoom,t.mouse[0]=de(t.that),t.mouse[1]),t.extent))},!0).on("mouseup.zoom",function(){o.on("mousemove.zoom mouseup.zoom",null),Xe(e.event.view,t.moved),cb(),t.end()},!0),i=de(this),a=e.event.clientX,s=e.event.clientY;Ue(e.event.view),ub(),t.mouse=[i,this.__zoom.invert(i)],vr(this),t.start()}}function S(){if(r.apply(this,arguments)){var t=this.__zoom,n=de(this),i=t.invert(n),a=t.k*(e.event.shiftKey?.5:2),s=k(w(v(t,a),n,i),o.apply(this,arguments));cb(),f>0?Ne(this).transition().duration(f).call(T,s,n):Ne(this).call(y.transform,s)}}function D(){if(r.apply(this,arguments)){var n,o,i,a,s=M(this,arguments),l=e.event.changedTouches,u=l.length;for(ub(),o=0;o1&&void 0!==arguments[1]?arguments[1]:0,n=arguments[2];return a.default.get(config.API_URL+"/menu/root?depth="+t+(e?"&childrenLimit="+e:"")+(n?"&favorites=true":""))}function m(e){return a.default.get(config.API_URL+"/menu/node/"+e+"/breadcrumbMenu")}function _(e){return{type:s.SET_BREADCRUMB,breadcrumb:e}}function b(e){return{type:s.UPDATE_BREADCRUMB,node:e}}function g(){return h(6,10,!0).then(function(e){return{nodeId:"0",children:e.data.children}})}function y(e){return function(t){l||u===e||(l=!0,f("window",e).then(function(e){return k(e.data)}).then(function(n){t(_(n.reverse())),u=e,l=!1}).catch(function(){t(_([])),u=null,l=!1}))}}function v(e,t){return function(n){l||u===t||(l=!0,f(e,t).then(function(e){return k(e.data)}).then(function(e){n(_(e.reverse())),u=t,l=!1}).catch(function(){n(_([])),u=null,l=!1}))}}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=[];return e[t]?(e[t].map(function(e){var t=w(e);"object"===(void 0===t?"undefined":r(t))?n=n.concat(t):n.push(w(e))}),n):[e]}function k(e){var t=[];return e.children&&k(e.children[0]).map(function(e){t.push(e)}),t.push({nodeId:e.nodeId,caption:e.caption,type:e.type}),t}"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(l,"breadcrumbsRequested","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(u,"breadcrumbsId","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(c,"pathRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(d,"nodePathsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(f,"elementPathRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(p,"queryPathsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(h,"rootRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(m,"breadcrumbRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(_,"setBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(b,"updateBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(g,"getRootBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(y,"getWindowBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(v,"getElementBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(w,"flattenLastElem","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),__REACT_HOT_LOADER__.register(k,"flattenOneLine","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"))},function(e,t,n){"use strict";(function(t){var r=n(86),o={},i=!1;e.exports={attachEvent:function(e,n){void 0!==t.addEventListener?t.addEventListener(e,n,!1):t.document&&t.attachEvent&&(t.document.attachEvent("on"+e,n),t.attachEvent("on"+e,n))},detachEvent:function(e,n){void 0!==t.addEventListener?t.removeEventListener(e,n,!1):t.document&&t.detachEvent&&(t.document.detachEvent("on"+e,n),t.detachEvent("on"+e,n))},unloadAdd:function(e){var t=r.string(8);return o[t]=e,i&&setTimeout(this.triggerUnloadCallbacks,0),t},unloadDel:function(e){e in o&&delete o[e]},triggerUnloadCallbacks:function(){for(var e in o)o[e](),delete o[e]}};e.exports.attachEvent("unload",function(){i||(i=!0,e.exports.triggerUnloadCallbacks())})}).call(this,n(12))},function(e,t,n){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;var r,o=n(54);(r=o)&&r.__esModule;t.addQueryStringValueToPath=function(e,t,n){var r=i(e),o=r.pathname,s=r.search,l=r.hash;return a({pathname:o,search:s+(-1===s.indexOf("?")?"?":"&")+t+"="+n,hash:l})},t.stripQueryStringValueFromPath=function(e,t){var n=i(e),r=n.pathname,o=n.search,s=n.hash;return a({pathname:r,search:o.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,n){return"?"===t?t:n}),hash:s})},t.getQueryStringValueFromPath=function(e,t){var n=i(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var i=t.parsePath=function(e){var t,n,r=null==(n=(t=e).match(/^(https?:)?\/\/[^\/]*/))?t:t.substring(n[0].length),o="",i="",a=r.indexOf("#");-1!==a&&(i=r.substring(a),r=r.substring(0,a));var s=r.indexOf("?");return-1!==s&&(o=r.substring(s),r=r.substring(0,s)),""===r&&(r="/"),{pathname:r,search:o,hash:i}},a=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,n=e.pathname,r=e.search,o=e.hash,i=(t||"")+n;return r&&"?"!==r&&(i+=r),o&&(i+=o),i}},function(e,t,n){var r=n(15)("unscopables"),o=Array.prototype;void 0==o[r]&&n(31)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(80)("meta"),o=n(13),i=n(32),a=n(20).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(11)(function(){return l(Object.preventExtensions({}))}),c=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n-1;if(!w)return console.warn("The %c"+h,"font-weight:bold;","is unsupported type of widget."),!1;if(!u[0].displayed||!0!==u[0].displayed)return!1;var E=o.map(function(e){return"form-field-"+e.field}).join(" ");return s.default.createElement("div",{className:(0,c.default)("form-group row ",{"form-group-table":d&&!f},E)},r||null,!a&&n&&s.default.createElement("div",{key:"title",className:"form-control-label "+("primary"!==i||O?"primaryLongLabels"===i?"col-sm-6":"col-sm-3 ":"col-sm-12 panel-title"),title:n},o[0].supportZoomInto?s.default.createElement("span",{className:"zoom-into",onClick:function(){return m(o[0].field)}},n):n),s.default.createElement("div",{className:("primary"!==i&&!a||O?"primaryLongLabels"===i?"col-sm-6":"col-sm-9 ":"col-sm-12 ")+(o[0].devices?"form-group-flex ":""),onMouseEnter:function(){return e.handleErrorPopup(!0)},onMouseLeave:function(){return e.handleErrorPopup(!1)}},!g&&M&&s.default.createElement("div",{className:(0,c.default)("field-warning",{"field-warning-message":M,"field-error-message":M&&M.error}),onMouseEnter:function(){return e.toggleTooltip(!0)},onMouseLeave:function(){return e.toggleTooltip(!1)}},s.default.createElement("span",null,M.caption),s.default.createElement("i",{className:"meta-icon-close-alt",onClick:function(){return e.clearFieldWarning(M)}}),M.message&&y&&s.default.createElement(k.default,{action:M.message,type:""})),s.default.createElement("div",{className:"input-body-container"},s.default.createElement(l.default,{transitionName:"fade",transitionEnterTimeout:200,transitionLeaveTimeout:200},b&&T&&!T.valid&&!T.initialValue&&this.renderErrorPopup(T.reason)),w),o[0].devices&&!u[0].readonly&&s.default.createElement(v.default,{devices:o[0].devices,tabIndex:1,handleChange:function(e){return p&&p(o[0].field,e)}})))}}]),t}();L.propTypes=d.RawWidgetPropTypes,L.defaultProps=d.RawWidgetDefaultProps;var S=(0,u.connect)(function(e){return{modalVisible:e.windowHandler.modal.visible}})(L);t.default=S;"undefined"!=typeof __REACT_HOT_LOADER__&&(__REACT_HOT_LOADER__.register(L,"RawWidget","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/RawWidget.js"),__REACT_HOT_LOADER__.register(S,"default","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/RawWidget.js"))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;ny;y++)if((_=t?g(a(h=e[y])[0],h[1]):g(e[y]))===u||_===c)return _}else for(m=b.call(e);!(h=m.next()).done;)if((_=o(m,g,h.value,t))===u||_===c)return _}).BREAK=u,t.RETURN=c},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r=n(9),o=n(20),i=n(21),a=n(15)("species");e.exports=function(e){var t=r[e];i&&t&&!t[a]&&o.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(573),o=n(206).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(8),o=n(572),i=n(206),a=n(207)("IE_PROTO"),s=function(){},l=function(){var e,t=n(209)("iframe"),r=i.length;for(t.style.display="none",n(205).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" - + diff --git a/docker-src/webui/sources/dist/info.json b/docker-src/webui/sources/dist/info.json index 25ed0d2..cdd914a 100644 --- a/docker-src/webui/sources/dist/info.json +++ b/docker-src/webui/sources/dist/info.json @@ -1,10 +1,10 @@ { "build": { - "releaseVersion": "5.74.2-221+release", - "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/221/", - "jenkinsBuildNo": "221", + "releaseVersion": "5.75.2-223+release", + "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/223/", + "jenkinsBuildNo": "223", "jenkinsJobName": "metasfresh-webui-frontend/release", - "jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-221" - "gitSHA1": "e673d4705126f9825b6d700a657430e4576231c4" + "jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-223" + "gitSHA1": "191907386393089786642e41b677d289e63bdb6e" } } \ No newline at end of file diff --git a/webapi/Dockerfile b/webapi/Dockerfile index d08dc55..9df6af2 100644 --- a/webapi/Dockerfile +++ b/webapi/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webapi:5.74 +FROM metasfresh/metasfresh-webapi:5.75 COPY sources/configs/* /opt/metasfresh-webui-api/ COPY sources/start_webapi.sh /opt/metasfresh-webui-api/ diff --git a/webui/Dockerfile b/webui/Dockerfile index a9edcc3..837c9f6 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webui:5.74 +FROM metasfresh/metasfresh-webui:5.75 COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/