diff --git a/app/Dockerfile b/app/Dockerfile index f02516e..1d0b21b 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-app:5.113 +FROM metasfresh/metasfresh-app:5.114 COPY sources/configs/* /opt/metasfresh/ COPY sources/start_app.sh /opt/metasfresh/ diff --git a/db/Dockerfile b/db/Dockerfile index 86186d6..ebd11ca 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-db:5.113 +FROM metasfresh/metasfresh-db:5.114 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 88f88ab..1b007b9 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.113.2-1048+release/metasfresh-dist-dist-5.113.2-1048+release-dist.tar.gz \ +RUN curl https://repo.metasfresh.com/content/repositories/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.114.2-1052+release/metasfresh-dist-dist-5.114.2-1052+release-dist.tar.gz \ | tar -xzC /opt/metasfresh/ RUN mkdir -p /opt/metasfresh/heapdump diff --git a/docker-src/webapi/Dockerfile b/docker-src/webapi/Dockerfile index adce04c..567bd9c 100644 --- a/docker-src/webapi/Dockerfile +++ b/docker-src/webapi/Dockerfile @@ -15,7 +15,7 @@ COPY sources/configs/local_settings.properties /root/ RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \ && mkdir -p /opt/metasfresh-webui-api/log \ && mkdir -p /opt/metasfresh-webui-api/heapdump -RUN curl https://repo.metasfresh.com/content/repositories/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.113.2-766+release/metasfresh-webui-api-5.113.2-766+release.jar \ +RUN curl https://repo.metasfresh.com/content/repositories/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.114.2-769+release/metasfresh-webui-api-5.114.2-769+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-149f158b8fc86b093edb-git-2d715f6.js b/docker-src/webui/sources/dist/bundle-795d5aa69b0685167d01-git-fc3873a.js similarity index 71% rename from docker-src/webui/sources/dist/bundle-149f158b8fc86b093edb-git-2d715f6.js rename to docker-src/webui/sources/dist/bundle-795d5aa69b0685167d01-git-fc3873a.js index 8677451..ce409aa 100644 --- a/docker-src/webui/sources/dist/bundle-149f158b8fc86b093edb-git-2d715f6.js +++ b/docker-src/webui/sources/dist/bundle-795d5aa69b0685167d01-git-fc3873a.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=1405)}([function(e,t,n){"use strict";e.exports=n(1150)},function(e,t,n){e.exports=n(1184)()},function(e,t,n){"use strict";e.exports=n(1217)},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){(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 u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(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 Y=/(\[[^\[]*\])|(\\)?([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,U={},G={};function J(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(G[e]=o),t&&(G[t[0]]=function(){return W(o.apply(this,arguments),t[1],t[2])}),n&&(G[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e,t){return e.isValid()?(t=F(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var X=/\d/,B=/\d\d/,K=/\d{3}/,Z=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ue=/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,ce={};function de(e,t,n){ce[e]=P(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(function(e){return pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}(e))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n68?1900:2e3)};var Le,Pe=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ie(this,e,n),o.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ie(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(),je(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%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 Je(e,t,n){var r=7+t-n,o=(7+Ge(e,0,r).getUTCDay()-t)%7;return-o+r-1}function qe(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=Je(e,r,o),l=1+7*(t-1)+s+u;return l<=0?a=Se(i=e-1)+l:l>Se(e)?(i=e+1,a=l-Se(e)):(i=e,a=l),{year:i,dayOfYear:a}}function ze(e,t,n){var r,o,i=Je(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=Je(e,t,n),o=Je(e+1,t,n);return(Se(e)-r+o)/7}J("w",["ww",2],"wo","week"),J("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),N("week",5),N("isoWeek",5),de("w",Q),de("ww",Q,B),de("W",Q),de("WW",Q,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),J("d",0,"do","day"),J("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),J("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),J("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),J("e",0,0,"weekday"),J("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),de("d",Q),de("e",Q),de("E",Q),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("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]=T(e)});var Xe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=le,$e=le,Qe=le;function et(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];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),u.push(i),l.push(r),l.push(o),l.push(i);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),u[t]=pe(u[t]),l[t]=pe(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){J(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}J("H",["HH",2],0,"hour"),J("h",["hh",2],0,tt),J("k",["kk",2],0,function(){return this.hours()||24}),J("hmm",0,0,function(){return""+tt.apply(this)+W(this.minutes(),2)}),J("hmmss",0,0,function(){return""+tt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),J("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),J("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),nt("a",!0),nt("A",!1),j("hour","h"),N("hour",13),de("a",rt),de("A",rt),de("H",Q),de("h",Q),de("k",Q),de("HH",Q,B),de("hh",Q,B),de("kk",Q,B),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),_e(["H","HH"],we),_e(["k","kk"],function(e,t,n){var r=T(e);t[we]=24===r?0:r}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[we]=T(e),h(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r)),h(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o)),h(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o))});var ot,it=De("Hours",!0),at={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:Re,monthsShort:He,week:{dow:0,doy:6},weekdays:Xe,weekdaysMin:Ke,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},st={},ut={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=ot._abbr,n(1151)("./"+t),dt(r)}catch(e){}return st[t]}function dt(e,t){var n;return e&&((n=s(t)?pt(e):ft(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function ft(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=st[e])L("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=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new C(D(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),dt(e),st[e]}return delete st[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ct(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(o,n,!0)>=t-1)break;t--}i++}return ot}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>je(n[be],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[ke]||0!==n[Te]||0!==n[xe])?we:n[ke]<0||n[ke]>59?ke:n[Te]<0||n[Te]>59?Te:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Me),h(e)._overflowWeekday&&-1===t&&(t=Oe),h(e).overflow=t),e}function _t(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[ve]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=_t(t.GG,e._a[be],ze(Dt(),1,4).year),r=_t(t.W,1),((o=_t(t.E,1))<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var l=ze(Dt(),i,a);n=_t(t.gg,e._a[be],l.year),r=_t(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=qe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[be],r[be]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ge(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=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[we]&&0===e._a[ke]&&0===e._a[Te]&&0===e._a[xe]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ge: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[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var yt=/^\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)?/,vt=[["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}/]],wt=[["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/]],kt=/^\/?Date\((\-?\d+)/i;function Tt(e){var t,n,r,o,i,a,s=e._i,u=yt.exec(s)||bt.exec(s);if(u){for(h(e).iso=!0,t=0,n=vt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),G[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),mt(e),ht(e)}else St(e);else Tt(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(ht(t)):(l(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:m()});function jt(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=qe(e,t,n,r,o),a=Ge(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))}J(0,["gg",2],0,function(){return this.weekYear()%100}),J(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",Q,B),de("gg",Q,B),de("GGGG",re,Z),de("gggg",re,Z),de("GGGGG",oe,$),de("ggggg",oe,$),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),J("Q",0,"Qo","quarter"),j("quarter","Q"),N("quarter",7),de("Q",X),_e("Q",function(e,t){t[ge]=3*(T(e)-1)}),J("D",["DD",2],"Do","date"),j("date","D"),N("date",9),de("D",Q),de("DD",Q,B),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],ve),_e("Do",function(e,t){t[ve]=T(e.match(Q)[0])});var sn=De("Date",!0);J("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),N("dayOfYear",4),de("DDD",ne),de("DDDD",K),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),J("m",["mm",2],0,"minute"),j("minute","m"),N("minute",14),de("m",Q),de("mm",Q,B),_e(["m","mm"],ke);var un=De("Minutes",!1);J("s",["ss",2],0,"second"),j("second","s"),N("second",15),de("s",Q),de("ss",Q,B),_e(["s","ss"],Te);var ln,cn=De("Seconds",!1);for(J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return 10*this.millisecond()}),J(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),J(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),J(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),J(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),J(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),N("millisecond",16),de("S",ne,X),de("SS",ne,B),de("SSS",ne,K),ln="SSSS";ln.length<=9;ln+="S")de(ln,ie);function dn(e,t){t[xe]=T(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")_e(ln,dn);var fn=De("Milliseconds",!1);J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");var pn=v.prototype;function hn(e){return e}pn.add=$t,pn.calendar=function(e,t){var n=e||Dt(),r=Ut(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(P(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},pn.clone=function(){return new v(this)},pn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":i=en(this,r)/12;break;case"month":i=en(this,r);break;case"quarter":i=en(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)},pn.endOf=function(e){return void 0===(e=A(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},pn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},pn.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()},pn.fromNow=function(e){return this.from(Dt(),e)},pn.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()},pn.toNow=function(e){return this.to(Dt(),e)},pn.get=function(e){return P(this[e=A(e)])?this[e]():this},pn.invalidAt=function(){return h(this).overflow},pn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pn.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)},pn.toJSON=function(){return this.isValid()?this.toISOString():null},pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pn.unix=function(){return Math.floor(this.valueOf()/1e3)},pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pn.year=Pe,pn.isLeapYear=function(){return Ee(this.year())},pn.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pn.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},pn.quarter=pn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},pn.month=We,pn.daysInMonth=function(){return je(this.year(),this.month())},pn.week=pn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},pn.isoWeek=pn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},pn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},pn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},pn.date=sn,pn.day=pn.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},pn.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")},pn.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},pn.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")},pn.hour=pn.hours=it,pn.minute=pn.minutes=un,pn.second=pn.seconds=cn,pn.millisecond=pn.milliseconds=fn,pn.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=Vt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Gt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Ft(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Gt(this)},pn.utc=function(e){return this.utcOffset(0,e)},pn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},pn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Vt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},pn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=Jt,pn.isUTC=Jt,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=O("dates accessor is deprecated. Use date instead.",sn),pn.months=O("months accessor is deprecated. Use month instead",We),pn.years=O("years accessor is deprecated. Use year instead",Pe),pn.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()}),pn.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(b(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var _n=C.prototype;function mn(e,t,n,r){var o=pt(),i=p().set(r,t);return o[n](i,e)}function yn(e,t,n){if(u(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?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),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}_n.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},_n.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])},_n.invalidDate=function(){return this._invalidDate},_n.ordinal=function(e){return this._ordinal.replace("%d",e)},_n.preparse=hn,_n.postformat=hn,_n.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return P(o)?o(e,t,n,r):o.replace(/%d/i,e)},_n.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},_n.set=function(e){var t,n;for(n in e)P(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)},_n.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},_n.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_n.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}},_n.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},_n.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},_n.week=function(e){return ze(e,this._week.dow,this._week.doy).week},_n.firstDayOfYear=function(){return this._week.doy},_n.firstDayOfWeek=function(){return this._week.dow},_n.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},_n.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},_n.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},_n.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}},_n.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},_n.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_n.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_n.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},_n.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===T(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.",dt),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",pt);var gn=Math.abs;function vn(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 wn(e){return e<0?Math.floor(e):Math.ceil(e)}function kn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Mn=xn("ms"),On=xn("s"),Sn=xn("m"),En=xn("h"),Ln=xn("d"),Pn=xn("w"),Dn=xn("M"),Cn=xn("y");function In(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=In("milliseconds"),An=In("seconds"),Rn=In("minutes"),Hn=In("hours"),Nn=In("days"),Wn=In("months"),Yn=In("years"),Vn=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,M:11},Gn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Gn(this._milliseconds)/1e3,r=Gn(this._days),o=Gn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Jn(this._months)!==Jn(d)?"-":"",h=Jn(this._days)!==Jn(d)?"-":"",_=Jn(this._milliseconds)!==Jn(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(u||l||c?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(c?_+c+"S":"")}var zn=Rt.prototype;return zn.isValid=function(){return this._isValid},zn.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},zn.add=function(e,t){return vn(this,e,t,1)},zn.subtract=function(e,t){return vn(this,e,t,-1)},zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"year"===e)return t=this._days+r/864e5,n=this._months+kn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Tn(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)}},zn.asMilliseconds=Mn,zn.asSeconds=On,zn.asMinutes=Sn,zn.asHours=En,zn.asDays=Ln,zn.asWeeks=Pn,zn.asMonths=Dn,zn.asYears=Cn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},zn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*wn(Tn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=k(i/1e3),u.seconds=e%60,t=k(e/60),u.minutes=t%60,n=k(t/60),u.hours=n%24,a+=k(n/24),o=k(kn(a)),s+=o,a-=wn(Tn(o)),r=k(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},zn.clone=function(){return Ft(this)},zn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},zn.milliseconds=jn,zn.seconds=An,zn.minutes=Rn,zn.hours=Hn,zn.days=Nn,zn.weeks=function(){return k(this.days()/7)},zn.months=Wn,zn.years=Yn,zn.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=Vn(r.as("s")),i=Vn(r.as("m")),a=Vn(r.as("h")),s=Vn(r.as("d")),u=Vn(r.as("M")),l=Vn(r.as("y")),c=o<=Un.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)},zn.toISOString=qn,zn.toString=qn,zn.toJSON=qn,zn.locale=tn,zn.localeData=rn,zn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qn),zn.lang=nn,J("X",0,0,"unix"),J("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(T(e))}),o.version="2.21.0",function(e){t=e}(Dt),o.fn=pn,o.min=function(){return jt("isBefore",[].slice.call(arguments,0))},o.max=function(){return jt("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 yn(e,t,"months")},o.isDate=l,o.locale=dt,o.invalid=m,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=pt,o.isDuration=Ht,o.monthsShort=function(e,t){return yn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},o.defineLocale=ft,o.updateLocale=function(e,t){if(null!=t){var n,r,o=at;null!=(r=ct(e))&&(o=r._config),t=D(o,t),(n=new C(t)).parentLocale=st[e],st[e]=n,dt(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},o.locales=function(){return S(st)},o.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Un[e]&&(void 0===t?Un[e]:(Un[e]=t,"s"===e&&(Un.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=pn,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(3)(e))},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 u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(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 Y=/(\[[^\[]*\])|(\\)?([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,U={},G={};function J(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(G[e]=o),t&&(G[t[0]]=function(){return W(o.apply(this,arguments),t[1],t[2])}),n&&(G[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e,t){return e.isValid()?(t=F(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var X=/\d/,B=/\d\d/,K=/\d{3}/,Z=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ue=/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,ce={};function de(e,t,n){ce[e]=P(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(function(e){return pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}(e))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n68?1900:2e3)};var Le,Pe=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ie(this,e,n),o.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ie(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(),je(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Je(e,t,n){var r=7+t-n,o=(7+Ge(e,0,r).getUTCDay()-t)%7;return-o+r-1}function qe(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=Je(e,r,o),l=1+7*(t-1)+s+u;return l<=0?a=Se(i=e-1)+l:l>Se(e)?(i=e+1,a=l-Se(e)):(i=e,a=l),{year:i,dayOfYear:a}}function ze(e,t,n){var r,o,i=Je(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=Je(e,t,n),o=Je(e+1,t,n);return(Se(e)-r+o)/7}function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}J("w",["ww",2],"wo","week"),J("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),N("week",5),N("isoWeek",5),de("w",Q),de("ww",Q,B),de("W",Q),de("WW",Q,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),J("d",0,"do","day"),J("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),J("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),J("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),J("e",0,0,"weekday"),J("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),de("d",Q),de("e",Q),de("E",Q),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("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]=T(e)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=le,Qe=le,et=le;function tt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];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),u.push(i),l.push(r),l.push(o),l.push(i);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),u[t]=pe(u[t]),l[t]=pe(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nt(){return this.hours()%12||12}function rt(e,t){J(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}J("H",["HH",2],0,"hour"),J("h",["hh",2],0,nt),J("k",["kk",2],0,function(){return this.hours()||24}),J("hmm",0,0,function(){return""+nt.apply(this)+W(this.minutes(),2)}),J("hmmss",0,0,function(){return""+nt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),J("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),J("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),rt("a",!0),rt("A",!1),j("hour","h"),N("hour",13),de("a",ot),de("A",ot),de("H",Q),de("h",Q),de("k",Q),de("HH",Q,B),de("hh",Q,B),de("kk",Q,B),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),_e(["H","HH"],we),_e(["k","kk"],function(e,t,n){var r=T(e);t[we]=24===r?0:r}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[we]=T(e),h(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r)),h(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o)),h(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o))});var it,at=De("Hours",!0),st={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:Re,monthsShort:He,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ze,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},ut={},lt={};function ct(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var r=null;if(!ut[t]&&void 0!==e&&e&&e.exports)try{r=it._abbr,n(887)("./"+t),ft(r)}catch(e){}return ut[t]}function ft(e,t){var n;return e&&((n=s(t)?ht(e):pt(e,t))?it=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function pt(e,t){if(null!==t){var n,r=st;if(t.abbr=e,null!=ut[e])L("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=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])r=ut[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ut[e]=new C(D(r,t)),lt[e]&<[e].forEach(function(e){pt(e.name,e.config)}),ft(e),ut[e]}return delete ut[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return it;if(!i(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=dt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(o,n,!0)>=t-1)break;t--}i++}return it}(e)}function _t(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>je(n[be],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[ke]||0!==n[Te]||0!==n[xe])?we:n[ke]<0||n[ke]>59?ke:n[Te]<0||n[Te]>59?Te:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Me),h(e)._overflowWeekday&&-1===t&&(t=Oe),h(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function yt(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[ve]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=mt(t.GG,e._a[be],ze(Ct(),1,4).year),r=mt(t.W,1),((o=mt(t.E,1))<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var l=ze(Ct(),i,a);n=mt(t.gg,e._a[be],l.year),r=mt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>Fe(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=qe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=mt(e._a[be],r[be]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ge(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=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[we]&&0===e._a[ke]&&0===e._a[Te]&&0===e._a[xe]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ge:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),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[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var 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=/^\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)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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}/]],kt=[["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/]],Tt=/^\/?Date\((\-?\d+)/i;function xt(e){var t,n,r,o,i,a,s=e._i,u=bt.exec(s)||gt.exec(s);if(u){for(h(e).iso=!0,t=0,n=wt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),G[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),yt(e),_t(e)}else Et(e);else xt(e)}function Pt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(_t(t)):(l(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:m()});function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-ln:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ln:Date.UTC(e,t,n)}function pn(e,t){J(0,[e,e.length],0,t)}function hn(e,t,n,r,o){var i;return null==e?ze(this,r,o).year:(i=Fe(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=qe(e,t,n,r,o),a=Ge(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))}J(0,["gg",2],0,function(){return this.weekYear()%100}),J(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",Q,B),de("gg",Q,B),de("GGGG",re,Z),de("gggg",re,Z),de("GGGGG",oe,$),de("ggggg",oe,$),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),J("Q",0,"Qo","quarter"),j("quarter","Q"),N("quarter",7),de("Q",X),_e("Q",function(e,t){t[ge]=3*(T(e)-1)}),J("D",["DD",2],"Do","date"),j("date","D"),N("date",9),de("D",Q),de("DD",Q,B),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],ve),_e("Do",function(e,t){t[ve]=T(e.match(Q)[0])});var _n=De("Date",!0);J("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),N("dayOfYear",4),de("DDD",ne),de("DDDD",K),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),J("m",["mm",2],0,"minute"),j("minute","m"),N("minute",14),de("m",Q),de("mm",Q,B),_e(["m","mm"],ke);var mn=De("Minutes",!1);J("s",["ss",2],0,"second"),j("second","s"),N("second",15),de("s",Q),de("ss",Q,B),_e(["s","ss"],Te);var yn,bn=De("Seconds",!1);for(J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return 10*this.millisecond()}),J(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),J(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),J(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),J(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),J(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),N("millisecond",16),de("S",ne,X),de("SS",ne,B),de("SSS",ne,K),yn="SSSS";yn.length<=9;yn+="S")de(yn,ie);function gn(e,t){t[xe]=T(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")_e(yn,gn);var vn=De("Milliseconds",!1);J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");var wn=v.prototype;function kn(e){return e}wn.add=Qt,wn.calendar=function(e,t){var n=e||Ct(),r=Gt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(P(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Ct(n)))},wn.clone=function(){return new v(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Gt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":i=tn(this,r)/12;break;case"month":i=tn(this,r);break;case"quarter":i=tn(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)},wn.endOf=function(e){var t;if(void 0===(e=A(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?fn:dn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=un-cn(t+(this._isUTC?0:this.utcOffset()*sn),un)-1;break;case"minute":t=this._d.valueOf(),t+=sn-cn(t,sn)-1;break;case"second":t=this._d.valueOf(),t+=an-cn(t,an)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Ct(),e)},wn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Ct(),e)},wn.get=function(e){return P(this[e=A(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.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)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Pe,wn.isLeapYear=function(){return Ee(this.year())},wn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=We,wn.daysInMonth=function(){return je(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},wn.date=_n,wn.day=wn.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},wn.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")},wn.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},wn.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")},wn.hour=wn.hours=at,wn.minute=wn.minutes=mn,wn.second=wn.seconds=bn,wn.millisecond=wn.milliseconds=vn,wn.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=Ut(ue,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?$t(this,Xt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Jt(this)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=qt,wn.isUTC=qt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=O("dates accessor is deprecated. Use date instead.",_n),wn.months=O("months accessor is deprecated. Use month instead",We),wn.years=O("years accessor is deprecated. Use year instead",Pe),wn.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()}),wn.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(b(e,this),(e=Pt(e))._a){var t=e._isUTC?p(e._a):Ct(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Tn=C.prototype;function xn(e,t,n,r){var o=ht(),i=p().set(r,t);return o[n](i,e)}function Mn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return xn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=xn(e,r,n,"month");return o}function On(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=ht(),a=e?i._week.dow:0;if(null!=n)return xn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=xn(t,(o+a)%7,r,"day");return s}Tn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},Tn.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])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(e){return this._ordinal.replace("%d",e)},Tn.preparse=kn,Tn.postformat=kn,Tn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return P(o)?o(e,t,n,r):o.replace(/%d/i,e)},Tn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},Tn.set=function(e){var t,n;for(n in e)P(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)},Tn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.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}},Tn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Xe(n,this._week.dow):e?n[e.day()]:n},Tn.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tn.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tn.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}},Tn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===T(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.",ft),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ht);var Sn=Math.abs;function En(e,t,n,r){var o=Xt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Ln(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var In=Cn("ms"),jn=Cn("s"),An=Cn("m"),Rn=Cn("h"),Hn=Cn("d"),Nn=Cn("w"),Wn=Cn("M"),Yn=Cn("Q"),Vn=Cn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gn=Un("milliseconds"),Jn=Un("seconds"),qn=Un("minutes"),zn=Un("hours"),Fn=Un("days"),Xn=Un("months"),Bn=Un("years"),Kn=Math.round,Zn={ss:44,s:45,m:45,h:22,d:26,M:11},$n=Math.abs;function Qn(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=$n(this._milliseconds)/1e3,r=$n(this._days),o=$n(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Qn(this._months)!==Qn(d)?"-":"",h=Qn(this._days)!==Qn(d)?"-":"",_=Qn(this._milliseconds)!==Qn(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(u||l||c?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(c?_+c+"S":"")}var tr=Ht.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=Sn(this._milliseconds),this._days=Sn(this._days),this._months=Sn(this._months),e.milliseconds=Sn(e.milliseconds),e.seconds=Sn(e.seconds),e.minutes=Sn(e.minutes),e.hours=Sn(e.hours),e.months=Sn(e.months),e.years=Sn(e.years),this},tr.add=function(e,t){return En(this,e,t,1)},tr.subtract=function(e,t){return En(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+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)}},tr.asMilliseconds=In,tr.asSeconds=jn,tr.asMinutes=An,tr.asHours=Rn,tr.asDays=Hn,tr.asWeeks=Nn,tr.asMonths=Wn,tr.asQuarters=Yn,tr.asYears=Vn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Ln(Dn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=k(i/1e3),u.seconds=e%60,t=k(e/60),u.minutes=t%60,n=k(t/60),u.hours=n%24,a+=k(n/24),o=k(Pn(a)),s+=o,a-=Ln(Dn(o)),r=k(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},tr.clone=function(){return Xt(this)},tr.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=Gn,tr.seconds=Jn,tr.minutes=qn,tr.hours=zn,tr.days=Fn,tr.weeks=function(){return k(this.days()/7)},tr.months=Xn,tr.years=Bn,tr.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Xt(e).abs(),o=Kn(r.as("s")),i=Kn(r.as("m")),a=Kn(r.as("h")),s=Kn(r.as("d")),u=Kn(r.as("M")),l=Kn(r.as("y")),c=o<=Zn.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)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=nn,tr.localeData=on,tr.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=rn,J("X",0,0,"unix"),J("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(T(e))}),o.version="2.24.0",function(e){t=e}(Ct),o.fn=wn,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 Ct(1e3*e)},o.months=function(e,t){return Mn(e,t,"months")},o.isDate=l,o.locale=ft,o.invalid=m,o.duration=Xt,o.isMoment=w,o.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},o.parseZone=function(){return Ct.apply(null,arguments).parseZone()},o.localeData=ht,o.isDuration=Nt,o.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},o.defineLocale=pt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=st;null!=(r=dt(e))&&(o=r._config),t=D(o,t),(n=new C(t)).parentLocale=ut[e],ut[e]=n,ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?ut[e]=ut[e].parentLocale:null!=ut[e]&&delete ut[e]);return ut[e]},o.locales=function(){return S(ut)},o.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Zn[e]&&(void 0===t?Zn[e]:(Zn[e]=t,"s"===e&&(Zn.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=wn,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:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(3)(e))},function(e,t,n){var r=n(17),o=n(26),i=n(49),a=n(43),s=n(64),u=function(e,t,n){var l,c,d,f,p=e&u.F,h=e&u.G,_=e&u.S,m=e&u.P,y=e&u.B,b=h?r:_?r[t]||(r[t]={}):(r[t]||{}).prototype,g=h?o:o[t]||(o[t]={}),v=g.prototype||(g.prototype={});for(l in h&&(n=t),n)d=((c=!p&&b&&void 0!==b[l])?b:n)[l],f=y&&c?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&u.U),g[l]!=d&&i(g,l,f),m&&v[l]!=d&&(v[l]=d)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(1),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 u(){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 l=u(),c=n(142),d=n.n(c),f=n(8),p=n.n(f);var h=null,_={notify:function(){}};var m=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=_}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(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{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,u=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=o.methodName,c=void 0===l?"connectAdvanced":l,f=o.renderCountProp,h=void 0===f?void 0:f,_=o.shouldHandleStateChanges,w=void 0===_||_,k=o.storeKey,T=void 0===k?"store":k,x=o.withRef,M=void 0!==x&&x,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"]),S=T+"Subscription",E=b++,L=((t={})[T]=s,t[S]=a,t),P=((n={})[S]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=u(n),i=y({},O,{getDisplayName:u,methodName:c,renderCountProp:h,shouldHandleStateChanges:w,storeKey:T,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=E,r.state={},r.renderCount=0,r.store=e[T]||t[T],r.propsMode=Boolean(e[T]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+T+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+T+'" 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={})[S]=t||this.context[S],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)[S];this.subscription=new m(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(g)):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=y({},e);return M&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[S]=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=P,a.contextTypes=L,a.propTypes=L,d()(a,t)}}var k=Object.prototype.hasOwnProperty;function T(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(T(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),u=o(e,i);return(i.pure?A:j)(a,s,u,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 W(e,t){return e===t}var Y=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?P:r,i=e.mapDispatchToPropsFactories,a=void 0===i?L:i,s=e.mergePropsFactories,u=void 0===s?I:s,l=e.selectorFactory,c=void 0===l?R:l;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,l=void 0===s||s,d=i.areStatesEqual,f=void 0===d?W:d,p=i.areOwnPropsEqual,h=void 0===p?x:p,_=i.areStatePropsEqual,m=void 0===_?x:_,y=i.areMergedPropsEqual,b=void 0===y?x:y,g=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=N(e,o,"mapStateToProps"),w=N(t,a,"mapDispatchToProps"),k=N(r,u,"mergeProps");return n(c,H({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:w,initMergeProps:k,pure:l,areStatesEqual:f,areOwnPropsEqual:h,areStatePropsEqual:m,areMergedPropsEqual:b},g))}}();n.d(t,"Provider",function(){return l}),n.d(t,"createProvider",function(){return u}),n.d(t,"connectAdvanced",function(){return w}),n.d(t,"connect",function(){return Y})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(u=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(1194),o=n(136).isArray,i=n(136).isDate,a=n(1191).sprintf,s=n(243),u=n(1190),l=n(1188);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 function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}(e)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null},e)}function p(){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(1186)),this.setMaxListeners(0)}r(p.prototype,s.EventEmitter.prototype),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.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 u=this._normalizeKeys(n,i,e,a),l=f(this._registry.translations,u);if(null===l&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(l=this._fallback(n,i,e,t.fallback,t))),null===l&&s.length>0&&-1===s.indexOf(n))for(var p in s){var h=s[p],_=this._normalizeKeys(h,i,e,a);if(l=f(this._registry.translations,_)){n=h;break}}return null===l&&(l=this._registry.generateMissingEntry(u.join(a))),l=this._pluralize(n,l,t.count),!1!==this._registry.interpolate&&!1!==t.interpolate&&(l=this._interpolate(l,t)),l},p.prototype.localize=function(e,t){if(!i(e))throw new Error("invalid argument: object must be a date");var n=(t=r(!0,{},t)).locale||this._registry.locale,o=t.scope||"counterpart",a=t.type||"datetime",s=t.format||"default";return t={locale:n,scope:o,interpolate:!1},s=this.translate(["formats",a,s],r(!0,{},t)),l(e,s,this.translate("names",t))},p.prototype._pluralize=function(e,t,n){if("object"!=typeof t||null===t||"number"!=typeof n)return t;var r=this.translate("pluralize",{locale:e,scope:"counterpart"});return"[object Function]"!==Object.prototype.toString.call(r)?r:r(t,n)},p.prototype.withLocale=function(e,t,n){var r=this._registry.locale;this._registry.locale=e;var o=t.call(n);return this._registry.locale=r,o},p.prototype.withScope=function(e,t,n){var r=this._registry.scope;this._registry.scope=e;var o=t.call(n);return this._registry.scope=r,o},p.prototype.withSeparator=function(e,t,n){var r=this.setSeparator(e),o=t.call(n);return this.setSeparator(r),o},p.prototype._normalizeKeys=function(e,t,n,r){var o=[];return o=(o=(o=o.concat(this._normalizeKey(e,r))).concat(this._normalizeKey(t,r))).concat(this._normalizeKey(n,r))},p.prototype._normalizeKey=function(e,t){return this._registry.normalizedKeys[t]=this._registry.normalizedKeys[t]||{},this._registry.normalizedKeys[t][e]=this._registry.normalizedKeys[t][e]||function(e){if(o(e)){var n=e.map(function(e){return this._normalizeKey(e,t)}.bind(this));return[].concat.apply([],n)}if(void 0===e||null===e)return[];for(var r=e.split(t),i=r.length-1;i>=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){return"string"!=typeof e?e:a(e,r({},this._registry.interpolations,t))},p.prototype._resolve=function(e,t,n,o,i){if(!1===(i=i||{}).resolve)return o;var a;if(d(o))a=this.translate(o,r({},i,{locale:e,scope:t}));else if(function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}(o)){var s;i.object?(s=i.object,delete i.object):s=n,a=this._resolve(e,t,n,o(s,i))}else a=o;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,r,i){if(i=u(i,"fallback"),o(r)){for(var a=0,s=r.length;a>>0,r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var Y=/(\[[^\[]*\])|(\\)?([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,U={},G={};function J(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(G[e]=o),t&&(G[t[0]]=function(){return W(o.apply(this,arguments),t[1],t[2])}),n&&(G[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e,t){return e.isValid()?(t=X(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var F=/\d/,B=/\d\d/,K=/\d{3}/,Z=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ue=/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,ce={};function de(e,t,n){ce[e]=P(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(function(e){return pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}(e))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n68?1900:2e3)};var Le,Pe=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ie(this,e,n),o.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ie(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(),je(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%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 Je(e,t,n){var r=7+t-n,o=(7+Ge(e,0,r).getUTCDay()-t)%7;return-o+r-1}function qe(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=Je(e,r,o),l=1+7*(t-1)+s+u;return l<=0?a=Se(i=e-1)+l:l>Se(e)?(i=e+1,a=l-Se(e)):(i=e,a=l),{year:i,dayOfYear:a}}function ze(e,t,n){var r,o,i=Je(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Xe(o,t,n)):a>Xe(e.year(),t,n)?(r=a-Xe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Xe(e,t,n){var r=Je(e,t,n),o=Je(e+1,t,n);return(Se(e)-r+o)/7}J("w",["ww",2],"wo","week"),J("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),N("week",5),N("isoWeek",5),de("w",Q),de("ww",Q,B),de("W",Q),de("WW",Q,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),J("d",0,"do","day"),J("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),J("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),J("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),J("e",0,0,"weekday"),J("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),de("d",Q),de("e",Q),de("E",Q),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("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]=T(e)});var Fe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ke="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ze=le,$e=le,Qe=le;function et(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];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),u.push(i),l.push(r),l.push(o),l.push(i);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),u[t]=pe(u[t]),l[t]=pe(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function tt(){return this.hours()%12||12}function nt(e,t){J(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function rt(e,t){return t._meridiemParse}J("H",["HH",2],0,"hour"),J("h",["hh",2],0,tt),J("k",["kk",2],0,function(){return this.hours()||24}),J("hmm",0,0,function(){return""+tt.apply(this)+W(this.minutes(),2)}),J("hmmss",0,0,function(){return""+tt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),J("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),J("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),nt("a",!0),nt("A",!1),j("hour","h"),N("hour",13),de("a",rt),de("A",rt),de("H",Q),de("h",Q),de("k",Q),de("HH",Q,B),de("hh",Q,B),de("kk",Q,B),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),_e(["H","HH"],we),_e(["k","kk"],function(e,t,n){var r=T(e);t[we]=24===r?0:r}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[we]=T(e),h(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r)),h(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o)),h(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o))});var ot,it=De("Hours",!0),at={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:Re,monthsShort:He,week:{dow:0,doy:6},weekdays:Fe,weekdaysMin:Ke,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},st={},ut={};function lt(e){return e?e.toLowerCase().replace("_","-"):e}function ct(t){var r=null;if(!st[t]&&void 0!==e&&e&&e.exports)try{r=ot._abbr,n(1150)("./"+t),dt(r)}catch(e){}return st[t]}function dt(e,t){var n;return e&&((n=s(t)?pt(e):ft(e,t))?ot=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ot._abbr}function ft(e,t){if(null!==t){var n,r=at;if(t.abbr=e,null!=st[e])L("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=st[e]._config;else if(null!=t.parentLocale)if(null!=st[t.parentLocale])r=st[t.parentLocale]._config;else{if(null==(n=ct(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return st[e]=new C(D(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),dt(e),st[e]}return delete st[e],null}function pt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ot;if(!i(e)){if(t=ct(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=ct(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(o,n,!0)>=t-1)break;t--}i++}return ot}(e)}function ht(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>je(n[be],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[ke]||0!==n[Te]||0!==n[xe])?we:n[ke]<0||n[ke]>59?ke:n[Te]<0||n[Te]>59?Te:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Me),h(e)._overflowWeekday&&-1===t&&(t=Oe),h(e).overflow=t),e}function _t(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[ve]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=_t(t.GG,e._a[be],ze(Dt(),1,4).year),r=_t(t.W,1),((o=_t(t.E,1))<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var l=ze(Dt(),i,a);n=_t(t.gg,e._a[be],l.year),r=_t(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>Xe(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=qe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=_t(e._a[be],r[be]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ge(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=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[we]&&0===e._a[ke]&&0===e._a[Te]&&0===e._a[xe]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ge: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[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var yt=/^\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)?/,vt=[["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}/]],wt=[["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/]],kt=/^\/?Date\((\-?\d+)/i;function Tt(e){var t,n,r,o,i,a,s=e._i,u=yt.exec(s)||bt.exec(s);if(u){for(h(e).iso=!0,t=0,n=vt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),G[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),mt(e),ht(e)}else St(e);else Tt(e)}function Lt(e){var t=e._i,n=e._f;return e._locale=e._locale||pt(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(ht(t)):(l(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:m()});function jt(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=qe(e,t,n,r,o),a=Ge(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))}J(0,["gg",2],0,function(){return this.weekYear()%100}),J(0,["GG",2],0,function(){return this.isoWeekYear()%100}),on("gggg","weekYear"),on("ggggg","weekYear"),on("GGGG","isoWeekYear"),on("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",Q,B),de("gg",Q,B),de("GGGG",re,Z),de("gggg",re,Z),de("GGGGG",oe,$),de("ggggg",oe,$),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),J("Q",0,"Qo","quarter"),j("quarter","Q"),N("quarter",7),de("Q",F),_e("Q",function(e,t){t[ge]=3*(T(e)-1)}),J("D",["DD",2],"Do","date"),j("date","D"),N("date",9),de("D",Q),de("DD",Q,B),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],ve),_e("Do",function(e,t){t[ve]=T(e.match(Q)[0])});var sn=De("Date",!0);J("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),N("dayOfYear",4),de("DDD",ne),de("DDDD",K),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),J("m",["mm",2],0,"minute"),j("minute","m"),N("minute",14),de("m",Q),de("mm",Q,B),_e(["m","mm"],ke);var un=De("Minutes",!1);J("s",["ss",2],0,"second"),j("second","s"),N("second",15),de("s",Q),de("ss",Q,B),_e(["s","ss"],Te);var ln,cn=De("Seconds",!1);for(J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return 10*this.millisecond()}),J(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),J(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),J(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),J(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),J(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),N("millisecond",16),de("S",ne,F),de("SS",ne,B),de("SSS",ne,K),ln="SSSS";ln.length<=9;ln+="S")de(ln,ie);function dn(e,t){t[xe]=T(1e3*("0."+e))}for(ln="S";ln.length<=9;ln+="S")_e(ln,dn);var fn=De("Milliseconds",!1);J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");var pn=v.prototype;function hn(e){return e}pn.add=$t,pn.calendar=function(e,t){var n=e||Dt(),r=Ut(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(P(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Dt(n)))},pn.clone=function(){return new v(this)},pn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Ut(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":i=en(this,r)/12;break;case"month":i=en(this,r);break;case"quarter":i=en(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)},pn.endOf=function(e){return void 0===(e=A(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))},pn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},pn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Xt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pn.fromNow=function(e){return this.from(Dt(),e)},pn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Dt(e).isValid())?Xt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pn.toNow=function(e){return this.to(Dt(),e)},pn.get=function(e){return P(this[e=A(e)])?this[e]():this},pn.invalidAt=function(){return h(this).overflow},pn.isAfter=function(e,t){var n=w(e)?e:Dt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(s(t)?"millisecond":t))?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pn.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)},pn.toJSON=function(){return this.isValid()?this.toISOString():null},pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pn.unix=function(){return Math.floor(this.valueOf()/1e3)},pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pn.year=Pe,pn.isLeapYear=function(){return Ee(this.year())},pn.weekYear=function(e){return an.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pn.isoWeekYear=function(e){return an.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},pn.quarter=pn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},pn.month=We,pn.daysInMonth=function(){return je(this.year(),this.month())},pn.week=pn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},pn.isoWeek=pn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},pn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},pn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},pn.date=sn,pn.day=pn.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},pn.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")},pn.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},pn.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")},pn.hour=pn.hours=it,pn.minute=pn.minutes=un,pn.second=pn.seconds=cn,pn.millisecond=pn.milliseconds=fn,pn.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=Vt(ue,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Gt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Zt(this,Xt(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?i:Gt(this)},pn.utc=function(e){return this.utcOffset(0,e)},pn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Gt(this),"m")),this},pn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Vt(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},pn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Dt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=Jt,pn.isUTC=Jt,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=O("dates accessor is deprecated. Use date instead.",sn),pn.months=O("months accessor is deprecated. Use month instead",We),pn.years=O("years accessor is deprecated. Use year instead",Pe),pn.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()}),pn.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(b(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):Dt(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var _n=C.prototype;function mn(e,t,n,r){var o=pt(),i=p().set(r,t);return o[n](i,e)}function yn(e,t,n){if(u(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?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=pt(),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}_n.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},_n.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])},_n.invalidDate=function(){return this._invalidDate},_n.ordinal=function(e){return this._ordinal.replace("%d",e)},_n.preparse=hn,_n.postformat=hn,_n.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return P(o)?o(e,t,n,r):o.replace(/%d/i,e)},_n.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},_n.set=function(e){var t,n;for(n in e)P(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)},_n.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},_n.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_n.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}},_n.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},_n.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},_n.week=function(e){return ze(e,this._week.dow,this._week.doy).week},_n.firstDayOfYear=function(){return this._week.doy},_n.firstDayOfWeek=function(){return this._week.dow},_n.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},_n.weekdaysMin=function(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin},_n.weekdaysShort=function(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort},_n.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}},_n.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},_n.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_n.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||et.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_n.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},_n.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},dt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===T(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.",dt),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",pt);var gn=Math.abs;function vn(e,t,n,r){var o=Xt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function wn(e){return e<0?Math.floor(e):Math.ceil(e)}function kn(e){return 4800*e/146097}function Tn(e){return 146097*e/4800}function xn(e){return function(){return this.as(e)}}var Mn=xn("ms"),On=xn("s"),Sn=xn("m"),En=xn("h"),Ln=xn("d"),Pn=xn("w"),Dn=xn("M"),Cn=xn("y");function In(e){return function(){return this.isValid()?this._data[e]:NaN}}var jn=In("milliseconds"),An=In("seconds"),Rn=In("minutes"),Hn=In("hours"),Nn=In("days"),Wn=In("months"),Yn=In("years"),Vn=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,M:11},Gn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Gn(this._milliseconds)/1e3,r=Gn(this._days),o=Gn(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Jn(this._months)!==Jn(d)?"-":"",h=Jn(this._days)!==Jn(d)?"-":"",_=Jn(this._milliseconds)!==Jn(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(u||l||c?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(c?_+c+"S":"")}var zn=Rt.prototype;return zn.isValid=function(){return this._isValid},zn.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},zn.add=function(e,t){return vn(this,e,t,1)},zn.subtract=function(e,t){return vn(this,e,t,-1)},zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"year"===e)return t=this._days+r/864e5,n=this._months+kn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Tn(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)}},zn.asMilliseconds=Mn,zn.asSeconds=On,zn.asMinutes=Sn,zn.asHours=En,zn.asDays=Ln,zn.asWeeks=Pn,zn.asMonths=Dn,zn.asYears=Cn,zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},zn._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*wn(Tn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=k(i/1e3),u.seconds=e%60,t=k(e/60),u.minutes=t%60,n=k(t/60),u.hours=n%24,a+=k(n/24),o=k(kn(a)),s+=o,a-=wn(Tn(o)),r=k(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},zn.clone=function(){return Xt(this)},zn.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},zn.milliseconds=jn,zn.seconds=An,zn.minutes=Rn,zn.hours=Hn,zn.days=Nn,zn.weeks=function(){return k(this.days()/7)},zn.months=Wn,zn.years=Yn,zn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Xt(e).abs(),o=Vn(r.as("s")),i=Vn(r.as("m")),a=Vn(r.as("h")),s=Vn(r.as("d")),u=Vn(r.as("M")),l=Vn(r.as("y")),c=o<=Un.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)},zn.toISOString=qn,zn.toString=qn,zn.toJSON=qn,zn.locale=tn,zn.localeData=rn,zn.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",qn),zn.lang=nn,J("X",0,0,"unix"),J("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(T(e))}),o.version="2.21.0",function(e){t=e}(Dt),o.fn=pn,o.min=function(){return jt("isBefore",[].slice.call(arguments,0))},o.max=function(){return jt("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 yn(e,t,"months")},o.isDate=l,o.locale=dt,o.invalid=m,o.duration=Xt,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=pt,o.isDuration=Ht,o.monthsShort=function(e,t){return yn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},o.defineLocale=ft,o.updateLocale=function(e,t){if(null!=t){var n,r,o=at;null!=(r=ct(e))&&(o=r._config),t=D(o,t),(n=new C(t)).parentLocale=st[e],st[e]=n,dt(e)}else null!=st[e]&&(null!=st[e].parentLocale?st[e]=st[e].parentLocale:null!=st[e]&&delete st[e]);return st[e]},o.locales=function(){return S(st)},o.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?Vn:"function"==typeof e&&(Vn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Un[e]&&(void 0===t?Un[e]:(Un[e]=t,"s"===e&&(Un.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=pn,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(3)(e))},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 u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(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 Y=/(\[[^\[]*\])|(\\)?([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,U={},G={};function J(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(G[e]=o),t&&(G[t[0]]=function(){return W(o.apply(this,arguments),t[1],t[2])}),n&&(G[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function z(e,t){return e.isValid()?(t=X(t,e.localeData()),U[t]=U[t]||function(e){var t,n,r=e.match(Y);for(t=0,n=r.length;t=0&&V.test(e);)e=e.replace(V,r),V.lastIndex=0,n-=1;return e}var F=/\d/,B=/\d\d/,K=/\d{3}/,Z=/\d{4}/,$=/[+-]?\d{6}/,Q=/\d\d?/,ee=/\d\d\d\d?/,te=/\d\d\d\d\d\d?/,ne=/\d{1,3}/,re=/\d{1,4}/,oe=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,se=/Z|[+-]\d\d:?\d\d/gi,ue=/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,ce={};function de(e,t,n){ce[e]=P(t)?t:function(e,r){return e&&n?n:t}}function fe(e,t){return d(ce,e)?ce[e](t._strict,t._locale):new RegExp(function(e){return pe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,o){return t||n||r||o}))}(e))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=T(e)}),n=0;n68?1900:2e3)};var Le,Pe=De("FullYear",!0);function De(e,t){return function(n){return null!=n?(Ie(this,e,n),o.updateOffset(this,t),this):Ce(this,e)}}function Ce(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Ie(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(),je(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=function(e,t){return(e%t+t)%t}(t,12);return e+=(t-n)/12,1===n?Ee(e)?29:28:31-n%7%2}Le=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Je(e,t,n){var r=7+t-n,o=(7+Ge(e,0,r).getUTCDay()-t)%7;return-o+r-1}function qe(e,t,n,r,o){var i,a,s=(7+n-r)%7,u=Je(e,r,o),l=1+7*(t-1)+s+u;return l<=0?a=Se(i=e-1)+l:l>Se(e)?(i=e+1,a=l-Se(e)):(i=e,a=l),{year:i,dayOfYear:a}}function ze(e,t,n){var r,o,i=Je(e.year(),t,n),a=Math.floor((e.dayOfYear()-i-1)/7)+1;return a<1?(o=e.year()-1,r=a+Xe(o,t,n)):a>Xe(e.year(),t,n)?(r=a-Xe(e.year(),t,n),o=e.year()+1):(o=e.year(),r=a),{week:r,year:o}}function Xe(e,t,n){var r=Je(e,t,n),o=Je(e+1,t,n);return(Se(e)-r+o)/7}function Fe(e,t){return e.slice(t,7).concat(e.slice(0,t))}J("w",["ww",2],"wo","week"),J("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),N("week",5),N("isoWeek",5),de("w",Q),de("ww",Q,B),de("W",Q),de("WW",Q,B),me(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=T(e)}),J("d",0,"do","day"),J("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),J("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),J("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),J("e",0,0,"weekday"),J("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),de("d",Q),de("e",Q),de("E",Q),de("dd",function(e,t){return t.weekdaysMinRegex(e)}),de("ddd",function(e,t){return t.weekdaysShortRegex(e)}),de("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]=T(e)});var Be="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ke="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),$e=le,Qe=le,et=le;function tt(){function e(e,t){return t.length-e.length}var t,n,r,o,i,a=[],s=[],u=[],l=[];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),u.push(i),l.push(r),l.push(o),l.push(i);for(a.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=pe(s[t]),u[t]=pe(u[t]),l[t]=pe(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function nt(){return this.hours()%12||12}function rt(e,t){J(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}J("H",["HH",2],0,"hour"),J("h",["hh",2],0,nt),J("k",["kk",2],0,function(){return this.hours()||24}),J("hmm",0,0,function(){return""+nt.apply(this)+W(this.minutes(),2)}),J("hmmss",0,0,function(){return""+nt.apply(this)+W(this.minutes(),2)+W(this.seconds(),2)}),J("Hmm",0,0,function(){return""+this.hours()+W(this.minutes(),2)}),J("Hmmss",0,0,function(){return""+this.hours()+W(this.minutes(),2)+W(this.seconds(),2)}),rt("a",!0),rt("A",!1),j("hour","h"),N("hour",13),de("a",ot),de("A",ot),de("H",Q),de("h",Q),de("k",Q),de("HH",Q,B),de("hh",Q,B),de("kk",Q,B),de("hmm",ee),de("hmmss",te),de("Hmm",ee),de("Hmmss",te),_e(["H","HH"],we),_e(["k","kk"],function(e,t,n){var r=T(e);t[we]=24===r?0:r}),_e(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),_e(["h","hh"],function(e,t,n){t[we]=T(e),h(n).bigHour=!0}),_e("hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r)),h(n).bigHour=!0}),_e("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o)),h(n).bigHour=!0}),_e("Hmm",function(e,t,n){var r=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r))}),_e("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[we]=T(e.substr(0,r)),t[ke]=T(e.substr(r,2)),t[Te]=T(e.substr(o))});var it,at=De("Hours",!0),st={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:Re,monthsShort:He,week:{dow:0,doy:6},weekdays:Be,weekdaysMin:Ze,weekdaysShort:Ke,meridiemParse:/[ap]\.?m?\.?/i},ut={},lt={};function ct(e){return e?e.toLowerCase().replace("_","-"):e}function dt(t){var r=null;if(!ut[t]&&void 0!==e&&e&&e.exports)try{r=it._abbr,n(889)("./"+t),ft(r)}catch(e){}return ut[t]}function ft(e,t){var n;return e&&((n=s(t)?ht(e):pt(e,t))?it=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),it._abbr}function pt(e,t){if(null!==t){var n,r=st;if(t.abbr=e,null!=ut[e])L("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=ut[e]._config;else if(null!=t.parentLocale)if(null!=ut[t.parentLocale])r=ut[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return lt[t.parentLocale]||(lt[t.parentLocale]=[]),lt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ut[e]=new C(D(r,t)),lt[e]&<[e].forEach(function(e){pt(e.name,e.config)}),ft(e),ut[e]}return delete ut[e],null}function ht(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return it;if(!i(e)){if(t=dt(e))return t;e=[e]}return function(e){for(var t,n,r,o,i=0;i0;){if(r=dt(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&x(o,n,!0)>=t-1)break;t--}i++}return it}(e)}function _t(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ge]<0||n[ge]>11?ge:n[ve]<1||n[ve]>je(n[be],n[ge])?ve:n[we]<0||n[we]>24||24===n[we]&&(0!==n[ke]||0!==n[Te]||0!==n[xe])?we:n[ke]<0||n[ke]>59?ke:n[Te]<0||n[Te]>59?Te:n[xe]<0||n[xe]>999?xe:-1,h(e)._overflowDayOfYear&&(tve)&&(t=ve),h(e)._overflowWeeks&&-1===t&&(t=Me),h(e)._overflowWeekday&&-1===t&&(t=Oe),h(e).overflow=t),e}function mt(e,t,n){return null!=e?e:null!=t?t:n}function yt(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[ve]&&null==e._a[ge]&&function(e){var t,n,r,o,i,a,s,u;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)i=1,a=4,n=mt(t.GG,e._a[be],ze(Ct(),1,4).year),r=mt(t.W,1),((o=mt(t.E,1))<1||o>7)&&(u=!0);else{i=e._locale._week.dow,a=e._locale._week.doy;var l=ze(Ct(),i,a);n=mt(t.gg,e._a[be],l.year),r=mt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+i,(t.e<0||t.e>6)&&(u=!0)):o=i}r<1||r>Xe(n,i,a)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=qe(n,r,o,i,a),e._a[be]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(a=mt(e._a[be],r[be]),(e._dayOfYear>Se(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ge(a,0,e._dayOfYear),e._a[ge]=n.getUTCMonth(),e._a[ve]=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[we]&&0===e._a[ke]&&0===e._a[Te]&&0===e._a[xe]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Ge:function(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),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[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}var 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=/^\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)?)?$/,vt=/Z|[+-]\d\d(?::?\d\d)?/,wt=[["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}/]],kt=[["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/]],Tt=/^\/?Date\((\-?\d+)/i;function xt(e){var t,n,r,o,i,a,s=e._i,u=bt.exec(s)||gt.exec(s);if(u){for(h(e).iso=!0,t=0,n=wt.length;t0&&h(e).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),l+=n.length),G[i]?(n?h(e).empty=!1:h(e).unusedTokens.push(i),ye(i,n,e)):e._strict&&!n&&h(e).unusedTokens.push(i);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[we]<=12&&!0===h(e).bigHour&&e._a[we]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),yt(e),_t(e)}else Et(e);else xt(e)}function Pt(e){var t=e._i,n=e._f;return e._locale=e._locale||ht(e._l),null===t||void 0===n&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new v(_t(t)):(l(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:m()});function At(e,t){var n,r;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return Ct();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-ln:new Date(e,t,n).valueOf()}function fn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ln:Date.UTC(e,t,n)}function pn(e,t){J(0,[e,e.length],0,t)}function hn(e,t,n,r,o){var i;return null==e?ze(this,r,o).year:(i=Xe(e,r,o),t>i&&(t=i),function(e,t,n,r,o){var i=qe(e,t,n,r,o),a=Ge(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))}J(0,["gg",2],0,function(){return this.weekYear()%100}),J(0,["GG",2],0,function(){return this.isoWeekYear()%100}),pn("gggg","weekYear"),pn("ggggg","weekYear"),pn("GGGG","isoWeekYear"),pn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),de("G",ae),de("g",ae),de("GG",Q,B),de("gg",Q,B),de("GGGG",re,Z),de("gggg",re,Z),de("GGGGG",oe,$),de("ggggg",oe,$),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=T(e)}),me(["gg","GG"],function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)}),J("Q",0,"Qo","quarter"),j("quarter","Q"),N("quarter",7),de("Q",F),_e("Q",function(e,t){t[ge]=3*(T(e)-1)}),J("D",["DD",2],"Do","date"),j("date","D"),N("date",9),de("D",Q),de("DD",Q,B),de("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),_e(["D","DD"],ve),_e("Do",function(e,t){t[ve]=T(e.match(Q)[0])});var _n=De("Date",!0);J("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),N("dayOfYear",4),de("DDD",ne),de("DDDD",K),_e(["DDD","DDDD"],function(e,t,n){n._dayOfYear=T(e)}),J("m",["mm",2],0,"minute"),j("minute","m"),N("minute",14),de("m",Q),de("mm",Q,B),_e(["m","mm"],ke);var mn=De("Minutes",!1);J("s",["ss",2],0,"second"),j("second","s"),N("second",15),de("s",Q),de("ss",Q,B),_e(["s","ss"],Te);var yn,bn=De("Seconds",!1);for(J("S",0,0,function(){return~~(this.millisecond()/100)}),J(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),J(0,["SSS",3],0,"millisecond"),J(0,["SSSS",4],0,function(){return 10*this.millisecond()}),J(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),J(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),J(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),J(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),J(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),N("millisecond",16),de("S",ne,F),de("SS",ne,B),de("SSS",ne,K),yn="SSSS";yn.length<=9;yn+="S")de(yn,ie);function gn(e,t){t[xe]=T(1e3*("0."+e))}for(yn="S";yn.length<=9;yn+="S")_e(yn,gn);var vn=De("Milliseconds",!1);J("z",0,0,"zoneAbbr"),J("zz",0,0,"zoneName");var wn=v.prototype;function kn(e){return e}wn.add=Qt,wn.calendar=function(e,t){var n=e||Ct(),r=Gt(n,this).startOf("day"),i=o.calendarFormat(this,r)||"sameElse",a=t&&(P(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Ct(n)))},wn.clone=function(){return new v(this)},wn.diff=function(e,t,n){var r,o,i;if(!this.isValid())return NaN;if(!(r=Gt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=A(t)){case"year":i=tn(this,r)/12;break;case"month":i=tn(this,r);break;case"quarter":i=tn(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)},wn.endOf=function(e){var t;if(void 0===(e=A(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?fn:dn;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=un-cn(t+(this._isUTC?0:this.utcOffset()*sn),un)-1;break;case"minute":t=this._d.valueOf(),t+=sn-cn(t,sn)-1;break;case"second":t=this._d.valueOf(),t+=an-cn(t,an)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},wn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},wn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ft({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.fromNow=function(e){return this.from(Ct(),e)},wn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Ct(e).isValid())?Ft({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},wn.toNow=function(e){return this.to(Ct(),e)},wn.get=function(e){return P(this[e=A(e)])?this[e]():this},wn.invalidAt=function(){return h(this).overflow},wn.isAfter=function(e,t){var n=w(e)?e:Ct(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=A(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):P(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},wn.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)},wn.toJSON=function(){return this.isValid()?this.toISOString():null},wn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},wn.unix=function(){return Math.floor(this.valueOf()/1e3)},wn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},wn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},wn.year=Pe,wn.isLeapYear=function(){return Ee(this.year())},wn.weekYear=function(e){return hn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},wn.isoWeekYear=function(e){return hn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},wn.quarter=wn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},wn.month=We,wn.daysInMonth=function(){return je(this.year(),this.month())},wn.week=wn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},wn.isoWeek=wn.isoWeeks=function(e){var t=ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},wn.weeksInYear=function(){var e=this.localeData()._week;return Xe(this.year(),e.dow,e.doy)},wn.isoWeeksInYear=function(){return Xe(this.year(),1,4)},wn.date=_n,wn.day=wn.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},wn.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")},wn.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},wn.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")},wn.hour=wn.hours=at,wn.minute=wn.minutes=mn,wn.second=wn.seconds=bn,wn.millisecond=wn.milliseconds=vn,wn.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=Ut(ue,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?$t(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)},wn.utc=function(e){return this.utcOffset(0,e)},wn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Jt(this),"m")),this},wn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ut(se,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},wn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ct(e).utcOffset():0,(this.utcOffset()-e)%60==0)},wn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},wn.isLocal=function(){return!!this.isValid()&&!this._isUTC},wn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},wn.isUtc=qt,wn.isUTC=qt,wn.zoneAbbr=function(){return this._isUTC?"UTC":""},wn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},wn.dates=O("dates accessor is deprecated. Use date instead.",_n),wn.months=O("months accessor is deprecated. Use month instead",We),wn.years=O("years accessor is deprecated. Use year instead",Pe),wn.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()}),wn.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(b(e,this),(e=Pt(e))._a){var t=e._isUTC?p(e._a):Ct(e._a);this._isDSTShifted=this.isValid()&&x(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var Tn=C.prototype;function xn(e,t,n,r){var o=ht(),i=p().set(r,t);return o[n](i,e)}function Mn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return xn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=xn(e,r,n,"month");return o}function On(e,t,n,r){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var o,i=ht(),a=e?i._week.dow:0;if(null!=n)return xn(t,(n+a)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=xn(t,(o+a)%7,r,"day");return s}Tn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return P(r)?r.call(t,n):r},Tn.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])},Tn.invalidDate=function(){return this._invalidDate},Tn.ordinal=function(e){return this._ordinal.replace("%d",e)},Tn.preparse=kn,Tn.postformat=kn,Tn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return P(o)?o(e,t,n,r):o.replace(/%d/i,e)},Tn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return P(n)?n(t):n.replace(/%s/i,t)},Tn.set=function(e){var t,n;for(n in e)P(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)},Tn.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Ae).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},Tn.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Ae.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Tn.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}},Tn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Tn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ye),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Tn.week=function(e){return ze(e,this._week.dow,this._week.doy).week},Tn.firstDayOfYear=function(){return this._week.doy},Tn.firstDayOfWeek=function(){return this._week.dow},Tn.weekdays=function(e,t){var n=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Fe(n,this._week.dow):e?n[e.day()]:n},Tn.weekdaysMin=function(e){return!0===e?Fe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Tn.weekdaysShort=function(e){return!0===e?Fe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Tn.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}},Tn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=$e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Tn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Tn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||tt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=et),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Tn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Tn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ft("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===T(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.",ft),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ht);var Sn=Math.abs;function En(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 Ln(e){return e<0?Math.floor(e):Math.ceil(e)}function Pn(e){return 4800*e/146097}function Dn(e){return 146097*e/4800}function Cn(e){return function(){return this.as(e)}}var In=Cn("ms"),jn=Cn("s"),An=Cn("m"),Rn=Cn("h"),Hn=Cn("d"),Nn=Cn("w"),Wn=Cn("M"),Yn=Cn("Q"),Vn=Cn("y");function Un(e){return function(){return this.isValid()?this._data[e]:NaN}}var Gn=Un("milliseconds"),Jn=Un("seconds"),qn=Un("minutes"),zn=Un("hours"),Xn=Un("days"),Fn=Un("months"),Bn=Un("years"),Kn=Math.round,Zn={ss:44,s:45,m:45,h:22,d:26,M:11},$n=Math.abs;function Qn(e){return(e>0)-(e<0)||+e}function er(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=$n(this._milliseconds)/1e3,r=$n(this._days),o=$n(this._months);e=k(n/60),t=k(e/60),n%=60,e%=60;var i=k(o/12),a=o%=12,s=r,u=t,l=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Qn(this._months)!==Qn(d)?"-":"",h=Qn(this._days)!==Qn(d)?"-":"",_=Qn(this._milliseconds)!==Qn(d)?"-":"";return f+"P"+(i?p+i+"Y":"")+(a?p+a+"M":"")+(s?h+s+"D":"")+(u||l||c?"T":"")+(u?_+u+"H":"")+(l?_+l+"M":"")+(c?_+c+"S":"")}var tr=Ht.prototype;return tr.isValid=function(){return this._isValid},tr.abs=function(){var e=this._data;return this._milliseconds=Sn(this._milliseconds),this._days=Sn(this._days),this._months=Sn(this._months),e.milliseconds=Sn(e.milliseconds),e.seconds=Sn(e.seconds),e.minutes=Sn(e.minutes),e.hours=Sn(e.hours),e.months=Sn(e.months),e.years=Sn(e.years),this},tr.add=function(e,t){return En(this,e,t,1)},tr.subtract=function(e,t){return En(this,e,t,-1)},tr.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=A(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Pn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Dn(this._months)),e){case"week":return t/7+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)}},tr.asMilliseconds=In,tr.asSeconds=jn,tr.asMinutes=An,tr.asHours=Rn,tr.asDays=Hn,tr.asWeeks=Nn,tr.asMonths=Wn,tr.asQuarters=Yn,tr.asYears=Vn,tr.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*T(this._months/12):NaN},tr._bubble=function(){var e,t,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*Ln(Dn(s)+a),a=0,s=0),u.milliseconds=i%1e3,e=k(i/1e3),u.seconds=e%60,t=k(e/60),u.minutes=t%60,n=k(t/60),u.hours=n%24,a+=k(n/24),o=k(Pn(a)),s+=o,a-=Ln(Dn(o)),r=k(s/12),s%=12,u.days=a,u.months=s,u.years=r,this},tr.clone=function(){return Ft(this)},tr.get=function(e){return e=A(e),this.isValid()?this[e+"s"]():NaN},tr.milliseconds=Gn,tr.seconds=Jn,tr.minutes=qn,tr.hours=zn,tr.days=Xn,tr.weeks=function(){return k(this.days()/7)},tr.months=Fn,tr.years=Bn,tr.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=Kn(r.as("s")),i=Kn(r.as("m")),a=Kn(r.as("h")),s=Kn(r.as("d")),u=Kn(r.as("M")),l=Kn(r.as("y")),c=o<=Zn.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)},tr.toISOString=er,tr.toString=er,tr.toJSON=er,tr.locale=nn,tr.localeData=on,tr.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",er),tr.lang=rn,J("X",0,0,"unix"),J("x",0,0,"valueOf"),de("x",ae),de("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),_e("x",function(e,t,n){n._d=new Date(T(e))}),o.version="2.24.0",function(e){t=e}(Ct),o.fn=wn,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 Ct(1e3*e)},o.months=function(e,t){return Mn(e,t,"months")},o.isDate=l,o.locale=ft,o.invalid=m,o.duration=Ft,o.isMoment=w,o.weekdays=function(e,t,n){return On(e,t,n,"weekdays")},o.parseZone=function(){return Ct.apply(null,arguments).parseZone()},o.localeData=ht,o.isDuration=Nt,o.monthsShort=function(e,t){return Mn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return On(e,t,n,"weekdaysMin")},o.defineLocale=pt,o.updateLocale=function(e,t){if(null!=t){var n,r,o=st;null!=(r=dt(e))&&(o=r._config),t=D(o,t),(n=new C(t)).parentLocale=ut[e],ut[e]=n,ft(e)}else null!=ut[e]&&(null!=ut[e].parentLocale?ut[e]=ut[e].parentLocale:null!=ut[e]&&delete ut[e]);return ut[e]},o.locales=function(){return S(ut)},o.weekdaysShort=function(e,t,n){return On(e,t,n,"weekdaysShort")},o.normalizeUnits=A,o.relativeTimeRounding=function(e){return void 0===e?Kn:"function"==typeof e&&(Kn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Zn[e]&&(void 0===t?Zn[e]:(Zn[e]=t,"s"===e&&(Zn.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=wn,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:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(3)(e))},function(e,t,n){var r=n(17),o=n(26),i=n(49),a=n(44),s=n(64),u=function(e,t,n){var l,c,d,f,p=e&u.F,h=e&u.G,_=e&u.S,m=e&u.P,y=e&u.B,b=h?r:_?r[t]||(r[t]={}):(r[t]||{}).prototype,g=h?o:o[t]||(o[t]={}),v=g.prototype||(g.prototype={});for(l in h&&(n=t),n)d=((c=!p&&b&&void 0!==b[l])?b:n)[l],f=y&&c?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&u.U),g[l]!=d&&i(g,l,f),m&&v[l]!=d&&(v[l]=d)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(1),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 u(){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 l=u(),c=n(143),d=n.n(c),f=n(8),p=n.n(f);var h=null,_={notify:function(){}};var m=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=_}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(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{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,u=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,l=o.methodName,c=void 0===l?"connectAdvanced":l,f=o.renderCountProp,h=void 0===f?void 0:f,_=o.shouldHandleStateChanges,w=void 0===_||_,k=o.storeKey,T=void 0===k?"store":k,x=o.withRef,M=void 0!==x&&x,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"]),S=T+"Subscription",E=b++,L=((t={})[T]=s,t[S]=a,t),P=((n={})[S]=a,n);return function(t){p()("function"==typeof t,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",o=u(n),i=y({},O,{getDisplayName:u,methodName:c,renderCountProp:h,shouldHandleStateChanges:w,storeKey:T,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=E,r.state={},r.renderCount=0,r.store=e[T]||t[T],r.propsMode=Boolean(e[T]),r.setWrappedInstance=r.setWrappedInstance.bind(r),p()(r.store,'Could not find "'+T+'" in either the context or props of "'+o+'". Either wrap the root component in a , or explicitly pass "'+T+'" 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={})[S]=t||this.context[S],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)[S];this.subscription=new m(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(g)):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=y({},e);return M&&(t.ref=this.setWrappedInstance),h&&(t[h]=this.renderCount++),this.propsMode&&this.subscription&&(t[S]=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=P,a.contextTypes=L,a.propTypes=L,d()(a,t)}}var k=Object.prototype.hasOwnProperty;function T(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function x(e,t){if(T(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),u=o(e,i);return(i.pure?A:j)(a,s,u,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 W(e,t){return e===t}var Y=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?P:r,i=e.mapDispatchToPropsFactories,a=void 0===i?L:i,s=e.mergePropsFactories,u=void 0===s?I:s,l=e.selectorFactory,c=void 0===l?R:l;return function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=i.pure,l=void 0===s||s,d=i.areStatesEqual,f=void 0===d?W:d,p=i.areOwnPropsEqual,h=void 0===p?x:p,_=i.areStatePropsEqual,m=void 0===_?x:_,y=i.areMergedPropsEqual,b=void 0===y?x:y,g=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=N(e,o,"mapStateToProps"),w=N(t,a,"mapDispatchToProps"),k=N(r,u,"mergeProps");return n(c,H({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:w,initMergeProps:k,pure:l,areStatesEqual:f,areOwnPropsEqual:h,areStatePropsEqual:m,areMergedPropsEqual:b},g))}}();n.d(t,"Provider",function(){return l}),n.d(t,"createProvider",function(){return u}),n.d(t,"connectAdvanced",function(){return w}),n.d(t,"connect",function(){return Y})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,o,i,a,s],c=0;(u=new Error(t.replace(/%s/g,function(){return l[c++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";var r=n(1193),o=n(137).isArray,i=n(137).isDate,a=n(1190).sprintf,s=n(243),u=n(1189),l=n(1187);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 function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}(e)&&function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(e,t)?e[t]:null},e)}function p(){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(1185)),this.setMaxListeners(0)}r(p.prototype,s.EventEmitter.prototype),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.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 u=this._normalizeKeys(n,i,e,a),l=f(this._registry.translations,u);if(null===l&&(this.emit("translationnotfound",n,e,t.fallback,i),t.fallback&&(l=this._fallback(n,i,e,t.fallback,t))),null===l&&s.length>0&&-1===s.indexOf(n))for(var p in s){var h=s[p],_=this._normalizeKeys(h,i,e,a);if(l=f(this._registry.translations,_)){n=h;break}}return null===l&&(l=this._registry.generateMissingEntry(u.join(a))),l=this._pluralize(n,l,t.count),!1!==this._registry.interpolate&&!1!==t.interpolate&&(l=this._interpolate(l,t)),l},p.prototype.localize=function(e,t){if(!i(e))throw new Error("invalid argument: object must be a date");var n=(t=r(!0,{},t)).locale||this._registry.locale,o=t.scope||"counterpart",a=t.type||"datetime",s=t.format||"default";return t={locale:n,scope:o,interpolate:!1},s=this.translate(["formats",a,s],r(!0,{},t)),l(e,s,this.translate("names",t))},p.prototype._pluralize=function(e,t,n){if("object"!=typeof t||null===t||"number"!=typeof n)return t;var r=this.translate("pluralize",{locale:e,scope:"counterpart"});return"[object Function]"!==Object.prototype.toString.call(r)?r:r(t,n)},p.prototype.withLocale=function(e,t,n){var r=this._registry.locale;this._registry.locale=e;var o=t.call(n);return this._registry.locale=r,o},p.prototype.withScope=function(e,t,n){var r=this._registry.scope;this._registry.scope=e;var o=t.call(n);return this._registry.scope=r,o},p.prototype.withSeparator=function(e,t,n){var r=this.setSeparator(e),o=t.call(n);return this.setSeparator(r),o},p.prototype._normalizeKeys=function(e,t,n,r){var o=[];return o=(o=(o=o.concat(this._normalizeKey(e,r))).concat(this._normalizeKey(t,r))).concat(this._normalizeKey(n,r))},p.prototype._normalizeKey=function(e,t){return this._registry.normalizedKeys[t]=this._registry.normalizedKeys[t]||{},this._registry.normalizedKeys[t][e]=this._registry.normalizedKeys[t][e]||function(e){if(o(e)){var n=e.map(function(e){return this._normalizeKey(e,t)}.bind(this));return[].concat.apply([],n)}if(void 0===e||null===e)return[];for(var r=e.split(t),i=r.length-1;i>=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){return"string"!=typeof e?e:a(e,r({},this._registry.interpolations,t))},p.prototype._resolve=function(e,t,n,o,i){if(!1===(i=i||{}).resolve)return o;var a;if(d(o))a=this.translate(o,r({},i,{locale:e,scope:t}));else if(function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)}(o)){var s;i.object?(s=i.object,delete i.object):s=n,a=this._resolve(e,t,n,o(s,i))}else a=o;return/^missing translation:/.test(a)?null:a},p.prototype._fallback=function(e,t,n,r,i){if(i=u(i,"fallback"),o(r)){for(var a=0,s=r.length;a1&&void 0!==arguments[1]?arguments[1]:"NEW",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return function(s){return"new"==t&&(t="NEW"),s(de(e,t,n,r,a)).then(function(u){if(u){if("NEW"==t&&!o)return s(T(u.data[0].id)),s((0,i.replace)("/window/".concat(e,"/").concat(u.data[0].id)));var l=0;u.data.forEach(function(e,t){e.rowId===r&&(l=t)}),"NEW"===t&&s(oe(null,u.data[0].id)),t=u.data[l].id,s(W({data:(0,y.parseToDisplay)(u.data[l].fieldsByName),docId:t,saveStatus:u.data[0].saveStatus,scope:(0,y.getScope)(o),standardActions:u.data[0].standardActions,validStatus:u.data[0].validStatus,includedTabsInfo:u.data[0].includedTabsInfo,websocket:u.data[0].websocketEndpoint})),o?"NEW"===r&&(s(be(u.data,!1,"NEW",t,e)),s(ge(u.data)),s(oe(u.data[0].rowId))):s((0,_.getWindowBreadcrumb)(e)),(0,p.initLayout)("window",e,n,null,null,a).then(function(e){return s(N(e.data,(0,y.getScope)(o)))}).then(function(n){o||s(ce(n.layout.tabs,e,t,o))})}})}}function ce(e,t,n,r){return function(o){var i={};e&&e.map(function(e,a){i[e.tabId]={},0!==a&&e.queryOnActivate||Le(e.tabId,t,n).then(function(t){i[e.tabId]=t,o(U(i,(0,y.getScope)(r)))})})}}function de(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;return function(i){return"NEW"===t?(0,f.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,f.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,f.getData)("window",e,t,n,r,null,null,o):(0,f.getData)("window",e,t,null,null,null,null,o).catch(function(){i(W({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,l.Set)(),validStatus:{}})),i((0,_.getWindowBreadcrumb)(e))})}}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}();var fe=function(e,t,n,r){var o=t;return!t&&r&&(o=r[0]),"".concat(config.API_URL,"/window/").concat(e).concat(o?"/".concat(o):"").concat(r&&n?"/".concat(n,"/").concat(r):"","/changeLog")};function pe(e,t,n,o){return function(i){var a=fe(e,t,null,o);return r.default.get(a).then(function(){var a=v(regeneratorRuntime.mark(function a(s){var u,l,c;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(u=s.data,l=null,!t||!o){a.next=8;break}if(1!==o.length){a.next=8;break}return c=fe(e,t,n,o),a.next=7,r.default.get(c).then(function(e){return e.data});case 7:l=a.sent;case 8:l&&(u.rowsData=l),i(W({data:u,docId:t,scope:"modal"}));case 10:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}())}}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"NEW",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,p=arguments.length>10?arguments[10]:void 0;return function(){var h=v(regeneratorRuntime.mark(function h(_){var m,y,b,g,v,w,k;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return m=Symbol(),y={entity:e,docType:t,docId:n,tabId:r,rowId:o,property:i,value:a,isAdvanced:u,viewId:l,isEdit:p},h.next=4,_(ie("pending"));case 4:return h.next=6,_({type:c.PATCH_REQUEST,symbol:m,options:y});case 6:return h.prev=6,h.next=9,(0,f.patchRequest)(y);case 9:return b=h.sent,g=b.data instanceof Array?b.data:[b.data],v=g[0],h.next=14,_(be(g,s,o,n,t,u));case 14:if(!v||!v.validStatus||v.validStatus.valid||i!==v.validStatus.fieldName&&void 0!==v.validStatus.fieldName){h.next=23;break}return h.next=17,_(ie("error"));case 17:return h.next=19,_({type:c.PATCH_FAILURE,symbol:m});case 19:w=v.validStatus.reason,_((0,d.addNotification)("Error: "+w.split(" ",4).join(" ")+"...",w,5e3,"error","")),h.next=28;break;case 23:return h.next=25,_(ie("saved"));case 25:return h.next=27,_({type:c.PATCH_SUCCESS,symbol:m});case 27:return h.abrupt("return",g);case 28:h.next=41;break;case 30:return h.prev=30,h.t0=h.catch(6),h.next=34,_(ie("error"));case 34:return h.next=36,_({type:c.PATCH_FAILURE,symbol:m});case 36:return h.next=38,(0,f.getData)(e,t,n,r,o,null,null,u,null,l);case 38:return k=h.sent,h.next=41,_(be(k.data,s,o,n,t,u));case 41:case"end":return h.stop()}},h,null,[[6,30]])}));return function(e){return h.apply(this,arguments)}}()}function _e(e,t,n,r,o,i,a){return function(s){(0,f.getData)(e,t,n,r,o,null,null,a).then(function(e){s(be(e.data,i,o,n,t,a))})}}function me(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n($(r,e.fieldsByName[r],t))}):n("includedTabsInfo"===r?B("master",e[r]):q(r,e[r],t))})}}function ye(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(Q(r,e.fieldsByName[r],e.tabid,e.rowId,t))}):n(X(r,e[r],e.tabId,e.rowId,t))})}}function be(e,t,n,r,o,i){return function(r){("function"==typeof e.splice?e:[e]).map(function(e,o){var a=e.fieldsByName?w({},e,{fieldsByName:(0,y.parseToDisplay)(e.fieldsByName)}):e;0===o&&"NEW"===n?r(K(a,a.tabid,a.rowId,"master")):e.rowId&&!t?r(ye(a,"master")):(e.rowId&&r(ye(a,"master")),i&&r(me(a,"master")),r(me(a,(0,y.getScope)(t&&0===o))))})}}function ge(e){return function(t){var n=function(e){e.rowId?t(J("master",e.tabid,e.rowId,e.saveStatus)):(e.validStatus&&t(F("master",e.validStatus)),e.saveStatus&&t(z("master",e.saveStatus)),e.includedTabsInfo&&t(B("master",e.includedTabsInfo)))};Array.isArray(e)?e.map(function(e){n(e)}):n(e)}}function ve(e,t,n,r,o,i){return function(a){n&&r?(a(Q(e,{value:t},n,r,"master")),o&&"process"!==i&&a($(e,{value:t},"modal"))):(a($(e,{value:t},(0,y.getScope)(o))),o&&"process"!==i&&a($(e,{value:t},"master")))}}function we(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,d.setNotificationProgress)(t,r))}function ke(e,t,n){var i=this;return function(a){var s=o.default.translate("window.attachment.title.pending"),u=o.default.translate("window.attachment.title.done"),l=o.default.translate("window.attachment.title.error"),c=r.default.CancelToken.source();a((0,d.addNotification)(s,o.default.translate("window.attachment.uploading"),0,"primary",null,c));var f={onUploadProgress:we.bind(i,a,s),cancelToken:c.token};r.default.post("".concat(config.API_URL,"/window/").concat(e,"/").concat(t,"/attachments"),n,f).then(function(){return a((0,d.addNotification)(u,o.default.translate("window.attachment.upload.success"),5e3,"primary"))}).finally(function(){return a((0,d.deleteNotification)(s))}).catch(function(e){r.default.isCancel(e)?a((0,d.addNotification)(l,"Upload terminated by the user",5e3,"warning","disableMouse")):a((0,d.addNotification)(l,o.default.translate("window.attachment.upload.error"),5e3,"error"))})}}function Te(e){var t=e.ids,n=e.processType,r=e.rowId,o=e.tabId,i=e.type,a=e.viewId,s=e.selectedTab,u=e.childViewId,l=e.childViewSelectedIds,c=e.parentViewId,f=e.parentViewSelectedIds,h=null;return function(){var e=v(regeneratorRuntime.mark(function e(_){var m,b,g,v,k;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_((0,d.setProcessPending)());case 2:return e.prev=2,e.next=5,Pe({ids:t,processId:n,rowId:r,tabId:o,type:i,viewId:a,selectedTab:s,childViewId:u,childViewSelectedIds:l,parentViewId:c,parentViewSelectedIds:f});case 5:m=e.sent,e.next=15;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,_(re());case 12:return e.next=14,_((0,d.setProcessSaved)());case 14:throw e.t0;case 15:if(!m.data){e.next=54;break}if(b=(0,y.parseToDisplay)(m.data.fieldsByName),h=m.data.pinstanceId,!m.data.startProcessDirectly){e.next=36;break}return e.prev=19,e.next=22,De(n,h);case 22:return g=e.sent,e.next=25,_(xe(g,n,h));case 25:e.next=34;break;case 27:return e.prev=27,e.t1=e.catch(19),e.next=31,_(re());case 31:return e.next=33,_((0,d.setProcessSaved)());case 33:throw e.t1;case 34:e.next=54;break;case 36:return e.next=38,_(W({data:b,scope:"modal"}));case 38:return e.prev=38,e.next=41,(0,p.initLayout)("process",n);case 41:return v=e.sent,e.next=44,_((0,d.setProcessSaved)());case 44:return k=w({},v.data,{pinstanceId:h}),e.next=47,_(N(k,"modal"));case 47:e.next=54;break;case 49:return e.prev=49,e.t2=e.catch(38),e.next=53,_((0,d.setProcessSaved)());case 53:throw e.t2;case 54:case"end":return e.stop()}},e,null,[[2,8],[19,27],[38,49]])}));return function(t){return e.apply(this,arguments)}}()}function xe(e,t,n){return function(){var r=v(regeneratorRuntime.mark(function r(o){var a,s,u,l,c;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.data,s=a.error,u=a.summary,l=a.action,!s){r.next=10;break}return r.next=4,o((0,d.addNotification)("Process error",u,5e3,"error"));case 4:return r.next=6,o((0,d.setProcessSaved)());case 6:return r.next=8,o(re());case 8:r.next=55;break;case 10:if(c=!1,!l){r.next=47;break}r.t0=l.type,r.next="displayQRCode"===r.t0?15:"openView"===r.t0?17:"openReport"===r.t0?25:"openDocument"===r.t0?27:"openIncludedView"===r.t0?38:"closeIncludedView"===r.t0?41:"selectViewRows"===r.t0?44:47;break;case 15:return o(O({type:"qr",data:l.code})),r.abrupt("break",47);case 17:return r.next=19,o(re());case 19:if(l.modalOverlay){r.next=22;break}return window.open("/window/".concat(l.windowId,"/?viewId=").concat(l.viewId)),r.abrupt("return");case 22:return r.next=24,o(S(l.windowId,l.viewId,l.profileId));case 24:return r.abrupt("break",47);case 25:return(0,f.openFile)("process",t,n,"print",l.filename),r.abrupt("break",47);case 27:return r.next=29,o(re());case 29:if(!l.modal){r.next=35;break}return c=!0,r.next=33,o(te("",l.windowId,"window",null,null,!!l.advanced&&l.advanced,"","",l.documentId));case 33:r.next=37;break;case 35:return r.next=37,o((0,i.push)("/window/"+l.windowId+"/"+l.documentId));case 37:return r.abrupt("break",47);case 38:return r.next=40,o((0,h.setListIncludedView)({windowType:l.windowId,viewId:l.viewId,viewProfileId:l.profileId}));case 40:return r.abrupt("break",47);case 41:return r.next=43,o((0,h.setListIncludedView)({windowType:l.windowId,viewId:l.viewId}));case 43:return r.abrupt("break",47);case 44:return r.next=46,o(se(l.rowIds,l.windowId));case 46:return r.abrupt("break",47);case 47:if(!u){r.next=50;break}return r.next=50,o((0,d.addNotification)("Process",u,5e3,"primary"));case 50:return r.next=52,o((0,d.setProcessSaved)());case 52:if(c){r.next=55;break}return r.next=55,o(ne());case 55:case"end":return r.stop()}},r)}));return function(e){return r.apply(this,arguments)}}()}function Me(e,t,n,r){return function(o){var i=!0,a=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;o(Z(e,c,n))}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}o(ge(r.data))}}function Oe(e,t,n,o,i,a){return r.default.get(config.API_URL+"/"+e+"/"+t+(n?"/"+n:"")+(o?"/"+o:"")+(i?"/"+i:"")+"/field/"+a+"/zoomInto?showError=true")}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId,o=e.tabId,i=e.rowId;return r.default.post(config.API_URL+"/window/"+t+"/"+n+"/"+o+"/"+i+"/discardChanges")}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId;return r.default.post(config.API_URL+"/window/"+t+"/"+n+"/discardChanges")}function Le(e,t,n,r){return(0,f.getData)("window",t,n,e,null,null,null,null,r).then(function(e){return e.data&&e.data.map(function(e){return w({},e,{fieldsByName:(0,y.parseToDisplay)(e.fieldsByName)})})})}function Pe(e){var t=e.processId,n=e.viewId,o=e.type,i=e.ids,a=e.tabId,s=e.rowId,u=e.selectedTab,l=e.childViewId,c=e.childViewSelectedIds,d=e.parentViewId,f=e.parentViewSelectedIds,p={processId:t};if(n?(p.viewId=n,p.viewDocumentIds=i,l&&(p.childViewId=l,p.childViewSelectedIds=c),d&&(p.parentViewId=d,p.parentViewSelectedIds=f instanceof Array?f:[f])):(p.documentId=Array.isArray(i)?i[0]:i,p.documentType=o,p.tabId=a,p.rowId=s),u){var h=u.tabId,_=u.rowIds;h&&_&&(p.selectedTab={tabId:h,rowIds:_})}return r.default.post("".concat(config.API_URL,"/process/").concat(t),p)}function De(e,t){return r.default.get("".concat(config.API_URL,"/process/").concat(e,"/").concat(t,"/start"))}function Ce(e,t){var n=this;if(this.sockTopic!==e){var r=function r(){var o=(arguments.length>0&&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 a.default(config.WS_URL),n.sockClient=u.default.Stomp.over(n.sock),n.sockClient.debug=null,n.sockClient.connect({},r)};Ie.call(this,o)||o()}}function Ie(e){var t=this.sockClient&&this.sockClient.connected&&this.sockSubscription;return t&&(this.sockSubscription.unsubscribe(),this.sockClient.disconnect(e),this.sockTopic=null),t}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(T,"setLatestNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(x,"showSpinner","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(M,"hideSpinner","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(O,"toggleOverlay","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(S,"openRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(E,"updateRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(L,"closeRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(P,"openFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(D,"closeFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(C,"allowOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(I,"disableOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(j,"allowShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(A,"disableShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(R,"activateTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(H,"unselectTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(N,"initLayoutSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(W,"initDataSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Y,"updateMasterData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(V,"clearMasterData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(U,"addRowData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(G,"sortTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(J,"updateRowStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(q,"updateDataProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(z,"updateDataSaveStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(F,"updateDataValidStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(X,"updateRowProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(B,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(K,"addNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Z,"deleteRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register($,"updateDataFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Q,"updateRowFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ee,"noConnection","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(te,"openModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ne,"closeProcessModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(re,"closeModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(oe,"updateModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ie,"indicatorState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ae,"removeSelectedTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(se,"selectTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ue,"deselectTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(le,"createWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ce,"initTabs","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(de,"initWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(fe,"getChangelogUrl","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(pe,"fetchChangeLog","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(he,"patch","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(_e,"fireUpdateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(me,"updateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ye,"updateRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(be,"mapDataToState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ge,"updateStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ve,"updatePropertyValue","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(we,"handleUploadProgress","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ke,"attachFileAction","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Te,"createProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(xe,"handleProcessResponse","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Me,"deleteLocal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Oe,"getZoomIntoWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Se,"discardNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Ee,"discardNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Le,"getTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Pe,"getProcessData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(De,"startProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Ce,"connectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Ie,"disconnectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(2),o=n(1182);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=n(181)("wks"),o=n(100),i=n(17).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=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(44).default);t.default=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getData=i,t.createInstance=a,t.createPatchRequestPayload=s,t.patchRequest=u,t.completeRequest=l,t.autocompleteRequest=c,t.autocompleteModalRequest=d,t.dropdownRequest=f,t.dropdownModalRequest=p,t.deleteRequest=h,t.duplicateRequest=_,t.actionsRequest=m,t.rowActionsRequest=y,t.referencesRequest=b,t.attachmentsRequest=g,t.processNewRecord=v,t.openFile=w,t.getRequest=k;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(47)),o=n(58);function i(e,t,n,o,i,a,s,u,l,c){return r.default.get(config.API_URL+"/"+e+"/"+t+(c?"/"+c:"")+(n?"/"+n:"")+(o?"/"+o:"")+(i?"/"+i:"")+(a?"/"+a:"")+(s?"/"+s:"")+(u?"?advanced=true":"")+(l?"?orderBy="+l:""))}function a(e,t,n,o,i){return r.default.post(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:""))}function s(e,t){return Array.isArray(e)&&Array.isArray(t)?e.map(function(e,n){return{op:"replace",path:e,value:t[n]}}):Array.isArray(e)&&void 0!==t?e.map(function(e){return{op:"replace",path:e.field,value:t}}):e&&void 0!==t?[{op:"replace",path:e,value:t}]:[]}function u(e){var t=e.docId,n=e.docType,o=e.entity,i=e.isAdvanced,a=e.property,u=e.rowId,l=e.subentity,c=e.subentityId,d=e.tabId,f=e.value,p=e.viewId,h=e.isEdit,_="NEW"!==t?s(a,f):[];return r.default.patch(config.API_URL+"/"+o+(n?"/"+n:"")+(p?"/"+p:"")+(t?"/"+t:"")+(d?"/"+d:"")+(u?"/"+u:"")+(l?"/"+l:"")+(c?"/"+c:"")+(i?"?advanced=true":"")+(h?"/edit":""),_)}function l(e,t,n,o,i,a,s){return r.default.post("".concat(config.API_URL,"/").concat(e).concat(t?"/".concat(t):"").concat(n?"/".concat(n):"").concat(o?"/".concat(o):"").concat(i?"/".concat(i):"").concat(a?"/".concat(a):"").concat(s?"/".concat(s):"","/complete"))}function c(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.query,u=e.rowId,l=e.subentity,c=e.subentityId,d=e.tabId,f=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(f?"/".concat(f):"").concat(n?"/".concat(n):"").concat(d?"/".concat(d):"").concat(u?"/".concat(u):"").concat(l?"/".concat(l):"").concat(c?"/".concat(c):"").concat(t?"/attribute/":"/field/").concat(a,"/typeahead?query=").concat(encodeURIComponent(s),"\n "))}function d(e){var t=e.docId,n=e.docType,o=e.entity,i=e.propertyName,a=e.query,s=e.rowId,u=e.tabId,l=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(o).concat(n?"/".concat(n):"").concat(l?"/".concat(l):"").concat(t?"/".concat(t):"").concat(u?"/".concat(u):"").concat(s?"/".concat(s):"","/edit/").concat(i,"/typeahead?query=").concat(encodeURIComponent(a),"\n "))}function f(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.rowId,u=e.subentity,l=e.subentityId,c=e.tabId,d=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(d?"/".concat(d):"").concat(n?"/".concat(n):"").concat(c?"/".concat(c):"").concat(s?"/".concat(s):"").concat(u?"/".concat(u):"").concat(l?"/".concat(l):"").concat(t?"/attribute/":"/field/").concat(a,"/dropdown"))}function p(e){var t=e.windowId,n=e.entity,o=e.fieldName,i=e.rowId,a=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(n,"/").concat(t,"/").concat(a,"/").concat(i,"/edit/").concat(o,"/dropdown"))}function h(e,t,n,o,i,a,s){return r.default.delete(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+(o?"/"+o:"")+(a?"/"+a:"")+(s?"/"+s:"")+(i?"?ids="+i:""))}function _(e,t,n){return r.default.post(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+"/duplicate")}function m(e){var t=e.entity,n=e.type,i=e.id,a=e.selectedIds,s=e.selectedTabId,u=e.selectedRowIds,l=e.childViewId,c=e.childViewSelectedIds,d=(0,o.getQueryString)({disabled:!0,selectedIds:a,selectedTabId:s,selectedRowIds:u,childViewId:l,childViewSelectedIds:c});return t?r.default.get(config.API_URL+"/"+t+"/"+n+"/"+i+"/actions"+(d?"?"+d:"")):Promise.resolve({data:{actions:[]}})}function y(e){var t=e.windowId,n=e.documentId,o=e.tabId,i=e.rowId;return r.default.get(config.API_URL+"/window/"+t+"/"+n+"/"+o+"/"+i+"/actions")}function b(e,t,n,o,i){return r.default.get(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:"")+"/references")}function g(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/attachments"))}function v(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/processNewRecord"))}function w(e,t,n,r,o){var i="".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/").concat(r,"/").concat(o);window.open(i,"_blank")}function k(){var e=config.API_URL+"/"+Array.from(arguments).join("/");return r.default.get(e)}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(i,"getData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(a,"createInstance","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(s,"createPatchRequestPayload","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(u,"patchRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(l,"completeRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(c,"autocompleteRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(d,"autocompleteModalRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(f,"dropdownRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(p,"dropdownModalRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(h,"deleteRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(_,"duplicateRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(m,"actionsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(y,"rowActionsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(b,"referencesRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(g,"attachmentsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(v,"processNewRecord","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(w,"openFile","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(k,"getRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){var r=n(62),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifications=f,t.getNotificationsEndpoint=p,t.markAllAsRead=h,t.markAsRead=_,t.deleteUserNotification=m,t.getImageAction=y,t.postImageAction=b,t.getKPIsDashboard=g,t.getTargetIndicatorsDashboard=v,t.getKPIData=w,t.changeKPIItem=k,t.changeTargetIndicatorsItem=T,t.getTargetIndicatorsData=x,t.setUserDashboardWidgets=M,t.getMessages=O,t.createUrlAttachment=S,t.languageSuccess=L,t.logoutSuccess=P,t.loginSuccess=D,t.enableTutorial=C,t.addNotification=I,t.setNotificationProgress=j,t.deleteNotification=A,t.clearNotifications=R,t.updateUri=H,t.getNotificationsSuccess=N,t.readNotification=W,t.newNotification=Y,t.removeNotification=V,t.readAllNotifications=U,t.deleteAllNotifications=G,t.setProcessPending=J,t.setProcessSaved=q,t.userSessionInit=z,t.userSessionUpdate=F,t.initKeymap=X,t.updateKeymap=B,t.initHotkeys=K,t.updateHotkeys=Z;var r=d(n(47)),o=d(n(4)),i=n(516),a=d(n(515)),s=n(28),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(135)),l=n(41),c=n(40);function d(e){return e&&e.__esModule?e:{default:e}}function f(){return r.default.get("".concat(config.API_URL,"/notifications/all?limit=20"))}function p(){return r.default.get("".concat(config.API_URL,"/notifications/websocketEndpoint"))}function h(){return r.default.put("".concat(config.API_URL,"/notifications/all/read"))}function _(e){return r.default.put("".concat(config.API_URL,"/notifications/").concat(e,"/read"))}function m(e){return r.default.delete("".concat(config.API_URL,"/notifications?ids=").concat(e))}function y(e){return(0,r.default)({url:"".concat(config.API_URL,"/image/").concat(e,"?maxWidth=200&maxHeight=200"),responseType:"blob"}).then(function(e){return e.data})}function b(e){return r.default.post("".concat(config.API_URL,"/image"),e).then(function(e){return e.data})}function g(){return r.default.get("".concat(config.API_URL,"/dashboard/kpis?silentError=true"))}function v(){return r.default.get("".concat(config.API_URL,"/dashboard/targetIndicators?silentError=true"))}function w(e){return r.default.get("".concat(config.API_URL,"/dashboard/kpis/").concat(e,"/data?silentError=true"))}function k(e,t,n){return r.default.patch("".concat(config.API_URL,"/dashboard/kpis/").concat(e),[{op:"replace",path:t,value:n}])}function T(e,t,n){return r.default.patch("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e),[{op:"replace",path:t,value:n}])}function x(e){return r.default.get("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e,"/data?silentError=true"))}function M(e){return r.default.patch("".concat(config.API_URL,"/dashboard/kpis"),e)}function O(e){return r.default.get("".concat(config.API_URL,"/i18n/messages").concat(e?"?="+e:""))}function S(e){var t=e.windowId,n=e.documentId,o=e.name,i=e.url;return r.default.post("".concat(config.API_URL,"/window/").concat(t,"/").concat(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===a.default.locales[n]&&a.default.register("locale",n,r),void 0!==a.default.locales[n]&&(a.default.locale(n),r.defaultFormat&&a.default.defaultFormat(r.defaultFormat))}function L(e){localStorage.setItem(l.LOCAL_LANG,e),o.default.locale(e),i.Settings.defaultLocale=e.replace("_","-"),r.default.defaults.headers.common["Accept-Language"]=e}function P(e){e.close(),localStorage.removeItem("isLogged")}function D(e){return function(t){localStorage.setItem("isLogged",!0),(0,c.getUserSession)().then(function(n){var r=n.data;t(z(r)),L(r.language.key),E(r.language.key,r.locale),i.Settings.defaultLocale=r.language.key.replace("_","-"),i.Settings.defaultZoneName="utc".concat(r.timeZone.replace(/[0,:]/gi,"")),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),f().then(function(e){t(N(e.data.notifications,e.data.unreadCount))})})}),p().then(function(n){e.initNotificationClient(n,function(e){var n=JSON.parse(e.body);if("Read"===n.eventType)t(W(n.notificationId,n.unreadCount));else if("ReadAll"===n.eventType)t(U());else if("Delete"===n.eventType)t(V(n.notificationId,n.unreadCount));else if("DeleteAll"===n.eventType)t(G());else if("New"===n.eventType){t(Y(n.notification,n.unreadCount));var r=n.notification;r.important&&t(I("Important notification",r.message,5e3,"primary"))}})}),f().then(function(e){t(N(e.data.notifications,e.data.unreadCount))})}}function C(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:u.ENABLE_TUTORIAL,flag:e}}function I(e,t,n,r,o,i){return{type:u.ADD_NOTIFICATION,title:e,msg:t,shortMsg:o,time:n,notifType:r,id:Date.now(),onCancel:i}}function j(e,t){return{type:u.SET_NOTIFICATION_PROGRESS,key:e,progress:t}}function A(e){return{type:u.DELETE_NOTIFICATION,key:e}}function R(){return{type:u.CLEAR_NOTIFICATIONS}}function H(e,t,n,r){return function(o){var i=e+"?";t[n]=r;for(var a=Object.keys(t),u=0;u=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));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)},d}(r.Component),n.displayName="OnClickOutside("+h+")",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},d}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AZTEC=0]="AZTEC",e[e.CODABAR=1]="CODABAR",e[e.CODE_39=2]="CODE_39",e[e.CODE_93=3]="CODE_93",e[e.CODE_128=4]="CODE_128",e[e.DATA_MATRIX=5]="DATA_MATRIX",e[e.EAN_8=6]="EAN_8",e[e.EAN_13=7]="EAN_13",e[e.ITF=8]="ITF",e[e.MAXICODE=9]="MAXICODE",e[e.PDF_417=10]="PDF_417",e[e.QR_CODE=11]="QR_CODE",e[e.RSS_14=12]="RSS_14",e[e.RSS_EXPANDED=13]="RSS_EXPANDED",e[e.UPC_A=14]="UPC_A",e[e.UPC_E=15]="UPC_E",e[e.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85),o=n(874),i=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var n=t;return this.x===n.x&&this.y===n.y}return!1},e.prototype.hashCode=function(){return 31*o.default.floatToIntBits(this.x)+o.default.floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,n,r,o=this.distance(e[0],e[1]),i=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(i>=o&&i>=a?(n=e[0],t=e[1],r=e[2]):a>=i&&a>=o?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),this.crossProductZ(t,n,r)<0){var s=t;t=r,r=s}e[0]=t,e[1]=n,e[2]=r},e.distance=function(e,t){return r.default.distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,n){var r=t.x,o=t.y;return(n.x-r)*(e.y-o)-(n.y-o)*(e.x-r)},e}();t.default=i},function(e,t,n){"use strict";var r=n(13),o=n(513);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var n=this,r=!1;this.on(e,function o(){n.removeListener(e,o),r||(r=!0,t.apply(this,arguments))})},i.prototype.emit=function(e){var t=this._listeners[e];if(t)for(var n=Array.prototype.slice.call(arguments,1),r=0;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function d(){return!0}function f(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return _(e,t,0)}function h(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[y])}var g="@@__IMMUTABLE_KEYED__@@";function v(e){return Boolean(e&&e[g])}var w="@@__IMMUTABLE_INDEXED__@@";function k(e){return Boolean(e&&e[w])}function T(e){return v(e)||k(e)}var x=function(e){return b(e)?e:K(e)},M=function(e){function t(e){return v(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),O=function(e){function t(e){return k(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),S=function(e){function t(e){return b(e)&&!T(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x);x.Keyed=M,x.Indexed=O,x.Set=S;var E="@@__IMMUTABLE_SEQ__@@";function L(e){return Boolean(e&&e[E])}var P="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[P])}function C(e){return b(e)||D(e)}var I="@@__IMMUTABLE_ORDERED__@@";function j(e){return Boolean(e&&e[I])}var A=0,R=1,H=2,N="function"==typeof Symbol&&Symbol.iterator,W="@@iterator",Y=N||W,V=function(e){this.next=e};function U(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 J(e){return!!F(e)}function q(e){return e&&"function"==typeof e.next}function z(e){var t=F(e);return t&&t.call(e)}function F(e){var t=e&&(N&&e[N]||e[W]);if("function"==typeof t)return t}V.prototype.toString=function(){return"[Iterator]"},V.KEYS=A,V.VALUES=R,V.ENTRIES=H,V.prototype.inspect=V.prototype.toSource=function(){return this.toString()},V.prototype[Y]=function(){return this};var X=Object.prototype.hasOwnProperty;function B(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var K=function(e){function t(e){return null===e||void 0===e?oe():C(e)?e.toSeq():function(e){var t=se(e);if(t)return t;if("object"==typeof e)return new te(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 V(function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return U(e,i[0],i[1])})}return this.__iteratorUncached(e,t)},t}(x),Z=function(e){function t(e){return null===e||void 0===e?oe().toKeyedSeq():b(e)?v(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():ie(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(K),$=function(e){function t(e){return null===e||void 0===e?oe():b(e)?v(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():ae(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}(K),Q=function(e){function t(e){return(b(e)&&!T(e)?e:$(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}(K);K.isSeq=L,K.Keyed=Z,K.Set=Q,K.Indexed=$,K.prototype[E]=!0;var ee=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[c(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 V(function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return U(e,i,n[i])})},t}($),te=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 X.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 V(function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return U(e,a,n[a])})},t}(Z);te.prototype[I]=!0;var ne,re=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=z(this._collection),r=0;if(q(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=z(this._collection);if(!q(n))return new V(G);var r=0;return new V(function(){var t=n.next();return t.done?t:U(e,r++,t.value)})},t}($);function oe(){return ne||(ne=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e):J(e)?new re(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new te(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ae(e){var t=se(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function se(e){return B(e)?new ee(e):J(e)?new re(e):void 0}var ue="@@__IMMUTABLE_MAP__@@";function le(e){return Boolean(e&&e[ue])}function ce(e){return le(e)&&j(e)}function de(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function fe(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!!(de(e)&&de(t)&&e.equals(t))}var pe="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 he(e){return e>>>1&1073741824|3221225471&e}var _e=Object.prototype.valueOf;function me(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return he(t)}(e);case"string":return e.length>xe?function(e){var t=Se[e];void 0===t&&(t=ye(e),Oe===Me&&(Oe=0,Se={}),Oe++,Se[e]=t);return t}(e):ye(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?he(e.hashCode(e)):(e.valueOf!==_e&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(we&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[Te]))return t;if(!ge){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Te]))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!==be&&!1===be(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ge)Object.defineProperty(e,Te,{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[Te]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Te]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function ye(e){for(var t=0,n=0;n=0&&(l.get=function(t,n){return(t=c(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===R||e.done?e:U(t,u-1,t===A?void 0:e.value[1],e)})},l}function He(e,t,n,r){var o=ze(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(H,i),u=!0,l=0;return new V(function(){var e,i,c;do{if((e=s.next()).done)return r||o===R?e:U(o,l++,o===A?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],u&&(u=t.call(n,c,i,a))}while(u);return o===H?e:U(o,i,c,e)})},o}function Ne(e,t,n){var r=ze(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(u,l){u.__iterate(function(i,u){return(!t||l0}function Ue(e,t,n,r){var o=ze(e),i=new ee(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(R,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=x(e),z(o?e.reverse():e)}),a=0,s=!1;return new V(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}:U(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function Ge(e,t){return e===t?e:L(e)?t:e.constructor(t)}function Je(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qe(e){return v(e)?M:k(e)?O:S}function ze(e){return Object.create((v(e)?Z:k(e)?$:Q).prototype)}function Fe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function Xe(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];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return yt(this,t,e)}function yt(e,t,n){for(var r=[],o=0;o0;)t[n]=arguments[n+1];return Tt(e,t)}function gt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Tt(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 Tt(e,t,function(e){return function t(n,r,o){return et(n)&&et(r)?Tt(n,[r],t):e?e(n,r,o):r}}(n))}function Tt(e,t,n){if(!et(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(C(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?O:M,a=r?function(t){o===e&&(o=ot(o)),o.push(t)}:function(t,r){var i=X.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,Jt(),function(e){return Tt(e,t)})}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Jt(),function(e){return kt(e,t)})}function Et(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Lt(){return this.__ownerID?this:this.__ensureOwner(new u)}function Pt(){return this.__ensureOwner()}function Dt(){return this.__altered}Le.prototype.cacheResult=Ee.prototype.cacheResult=Pe.prototype.cacheResult=De.prototype.cacheResult=Fe;var Ct=function(e){function t(t){return null===t||void 0===t?Jt():le(t)&&!j(t)?t:Jt().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 Jt().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 qt(this,e,t)},t.prototype.remove=function(e){return qt(this,e,a)},t.prototype.deleteAll=function(e){var t=x(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):Jt()},t.prototype.sort=function(e){return yn(We(this,e))},t.prototype.sortBy=function(e,t){return yn(We(this,t,e))},t.prototype.map=function(e,t){return this.withMutations(function(n){n.forEach(function(r,o){n.set(o,e.call(t,r,o,n))})})},t.prototype.__iterator=function(e,t){return new Yt(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?Jt():(this.__ownerID=e,this.__altered=!1,this)},t}(M);Ct.isMap=le;var It=Ct.prototype;It[ue]=!0,It.delete=It.remove,It.removeAll=It.deleteAll,It.setIn=lt,It.removeIn=It.deleteIn=dt,It.update=pt,It.updateIn=ht,It.merge=It.concat=_t,It.mergeWith=mt,It.mergeDeep=xt,It.mergeDeepWith=Mt,It.mergeIn=Ot,It.mergeDeepIn=St,It.withMutations=Et,It.wasAltered=Dt,It.asImmutable=Pt,It["@@transducer/init"]=It.asMutable=Lt,It["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},It["@@transducer/result"]=function(e){return e.asImmutable()};var jt=function(e,t){this.ownerID=e,this.entries=t};jt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Zt)return function(e,t,n,r){e||(e=new u);for(var o=new Nt(e,me(n),[n,r]),i=0;i>>e)&i),s=this.bitmap;return 0==(s&a)?o:this.nodes[Bt(s&a-1)].get(e+r,t,n,o)},At.prototype.update=function(e,t,n,s,u,l,c){void 0===n&&(n=me(s));var d=(0===t?n:n>>>t)&i,f=1<=$t)return function(e,t,n,r,i){for(var a=0,s=new Array(o),u=0;0!==n;u++,n>>>=1)s[u]=1&n?t[a++]:void 0;return s[r]=i,new Rt(e,a+1,s)}(e,m,p,d,b);if(h&&!b&&2===m.length&&Ft(m[1^_]))return m[1^_];if(h&&b&&1===m.length&&Ft(b))return b;var g=e&&e===this.ownerID,v=h?b?p:p^f:p|f,w=h?b?Kt(m,_,b,g):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},Rt.prototype.update=function(e,t,n,o,s,u,l){void 0===n&&(n=me(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=zt(p,e,t+r,n,o,s,u,l);if(h===p)return this;var _=this.count;if(p){if(!h&&--_>>n)&i,l=(0===n?o:o>>>n)&i,c=u===l?[Xt(e,t,n+r,o,a)]:(s=new Nt(t,o,a),u>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Kt(e,t,n,r){var o=r?e:Be(e);return o[t]=n,o}var Zt=o/4,$t=o/2,Qt=o/4,en="@@__IMMUTABLE_LIST__@@";function tn(e){return Boolean(e&&e[en])}var nn=function(e){function t(t){var n=cn();if(null===t||void 0===t)return n;if(tn(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?hn(e,t).set(0,n):hn(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=_n(e._capacity)?r=dn(r,e.__ownerID,0,t,n,i):o=dn(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 ln(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):cn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){hn(n,0,t+e.length);for(var r=0;r>>t&i;if(o>=this.array.length)return new on([],e);var a,s=0===o;if(t>0){var u=this.array[o];if((a=u&&u.removeBefore(e,t-r,n))===u&&s)return this}if(s&&!a)return this;var l=fn(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 u=fn(this,e);return u.array.splice(a+1),o&&(u.array[a]=o),u};var an,sn={};function un(e,t){var n=e._origin,i=e._capacity,a=_n(i),s=e._tail;return u(e._root,e._level,0);function u(e,l,c){return 0===l?function(e,r){var u=r===a?s&&s.array:e&&e.array,l=r>n?0:n-r,c=i-r;c>o&&(c=o);return function(){if(l===c)return sn;var e=t?--c:l++;return u&&u[e]}}(e,c):function(e,a,s){var l,c=e&&e.array,d=s>n?0:n-s>>a,f=1+(i-s>>a);f>o&&(f=o);return function(){for(;;){if(l){var e=l();if(e!==sn)return e;l=null}if(d===f)return sn;var n=t?--f:d++;l=u(c&&c[n],a-r,s+(n<>>n&i,d=e&&c0){var f=e&&e.array[c],p=dn(f,t,n-r,o,a,u);return p===f?e:((l=fn(e,t)).array[c]=p,l)}return d&&e.array[c]===a?e:(u&&s(u),l=fn(e,t),void 0===a&&c===l.array.length-1?l.array.pop():l.array[c]=a,l)}function fn(e,t){return t&&e&&t===e.ownerID?e:new on(e?e.array.slice():[],t)}function pn(e,t){if(t>=_n(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>o&i],o-=r;return n}}function hn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new u,a=e._origin,s=e._capacity,l=a+t,c=void 0===n?s:n<0?s+n:a+n;if(l===a&&c===s)return e;if(l>=c)return e.clear();for(var d=e._level,f=e._root,p=0;l+p<0;)f=new on(f&&f.array.length?[void 0,f]:[],o),p+=1<<(d+=r);p&&(l+=p,a+=p,c+=p,s+=p);for(var h=_n(s),_=_n(c);_>=1<h?new on([],o):m;if(m&&_>h&&lr;g-=r){var v=h>>>g&i;b=b.array[v]=fn(b.array[v],o)}b.array[h>>>r&i]=m}if(c=_)l-=_,c-=_,d=r,f=null,y=y&&y.removeBefore(o,0,l);else if(l>a||_>>d&i;if(w!==_>>>d&i)break;w&&(p+=(1<a&&(f=f.removeBefore(o,d,l-p)),f&&_>>r<=o&&u.size>=2*s.size?(r=(i=u.filter(function(e,t){return void 0!==e&&l!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=l===u.size-1?u.pop():u.set(l,void 0))}else if(c){if(n===u.get(l)[1])return e;r=s,i=u.set(l,[t,n])}else r=s.set(t,u.size),i=u.set(u.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):bn(r,i)}yn.isOrderedMap=ce,yn.prototype[I]=!0,yn.prototype.delete=yn.prototype.remove;var wn="@@__IMMUTABLE_STACK__@@";function kn(e){return Boolean(e&&e[wn])}var Tn=function(e){function t(e){return null===e||void 0===e?Sn():kn(e)?e:Sn().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=c(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):On(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&kn(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):On(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):Sn()},t.prototype.slice=function(t,n){if(f(t,n,this.size))return this;var r=p(t,this.size);if(h(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):On(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?On(this.size,this._head,e,this.__hash):0===this.size?Sn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new ee(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++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new ee(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new V(function(){if(r){var t=r.value;return r=r.next,U(e,n++,t)}return{value:void 0,done:!0}})},t}(O);Tn.isStack=kn;var xn,Mn=Tn.prototype;function On(e,t,n,r){var o=Object.create(Mn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Sn(){return xn||(xn=On(0))}Mn[wn]=!0,Mn.shift=Mn.pop,Mn.unshift=Mn.push,Mn.unshiftAll=Mn.pushAll,Mn.withMutations=Et,Mn.wasAltered=Dt,Mn.asImmutable=Pt,Mn["@@transducer/init"]=Mn.asMutable=Lt,Mn["@@transducer/step"]=function(e,t){return e.unshift(t)},Mn["@@transducer/result"]=function(e){return e.asImmutable()};var En="@@__IMMUTABLE_SET__@@";function Ln(e){return Boolean(e&&e[En])}function Pn(e){return Ln(e)&&j(e)}function Dn(e,t){if(e===t)return!0;if(!b(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||v(e)!==v(t)||k(e)!==k(t)||j(e)!==j(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!T(e);if(j(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&fe(o[1],e)&&(n||fe(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,u=t.__iterate(function(t,r){if(n?!e.has(t):o?!fe(t,e.get(r,a)):!fe(e.get(r,a),t))return s=!1,!1});return s&&e.size===u}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 In(e){if(!e||"object"!=typeof e)return e;if(!b(e)){if(!et(e))return e;e=K(e)}if(v(e)){var t={};return e.__iterate(function(e,n){t[n]=In(e)}),t}var n=[];return e.__iterate(function(e){n.push(In(e))}),n}var jn=function(e){function t(t){return null===t||void 0===t?Wn():Ln(t)&&!j(t)?t:Wn().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(M(e).keySeq())},t.intersect=function(e){return(e=x(e).toArray()).length?Rn.intersect.apply(t(e.pop()),e):Wn()},t.union=function(e){return(e=x(e).toArray()).length?Rn.union.apply(t(e.pop()),e):Wn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Hn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Hn(this,this._map.remove(e))},t.prototype.clear=function(){return Hn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],o=[];return this.forEach(function(i){var a=e.call(t,i,i,n);a!==i&&(r.push(i),o.push(a))}),this.withMutations(function(e){r.forEach(function(t){return e.remove(t)}),o.forEach(function(t){return e.add(t)})})},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=pe(t<<13|t>>>-13,5),t=pe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=he((t=pe(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+nr(me(e),me(t))|0}:function(e,t){r=r+nr(me(e),me(t))|0}:t?function(e){r=31*r+me(e)|0}:function(e){r=r+me(e)|0}),r)}(this))}});var zn=x.prototype;zn[y]=!0,zn[Y]=zn.values,zn.toJSON=zn.toArray,zn.__toStringMapper=tt,zn.inspect=zn.toSource=function(){return this.toString()},zn.chain=zn.flatMap,zn.contains=zn.includes,Cn(M,{flip:function(){return Ge(this,Ce(this))},mapEntries:function(e,t){var n=this,r=0;return Ge(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ge(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Fn=M.prototype;Fn[g]=!0,Fn[Y]=zn.entries,Fn.toJSON=qn,Fn.__toStringMapper=function(e,t){return tt(t)+": "+tt(e)},Cn(O,{toKeyedSeq:function(){return new Ee(this,!1)},filter:function(e,t){return Ge(this,Ae(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 Ge(this,je(this,!1))},slice:function(e,t){return Ge(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=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ge(this,1===n?r:r.concat(Be(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ge(this,Ne(this,e,!1))},get:function(e,t){return(e=c(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=c(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function nr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Xn[w]=!0,Xn[I]=!0,Cn(S,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),S.prototype.has=zn.includes,S.prototype.contains=S.prototype.includes,Cn(Z,M.prototype),Cn($,O.prototype),Cn(Q,S.prototype);var rr=function(e){function t(e){return null===e||void 0===e?sr():Pn(e)?e:sr().withMutations(function(t){var n=S(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(M(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(jn);rr.isOrderedSet=Pn;var or,ir=rr.prototype;function ar(e,t){var n=Object.create(ir);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function sr(){return or||(or=ar(gn()))}ir[I]=!0,ir.zip=Xn.zip,ir.zipWith=Xn.zipWith,ir.__empty=sr,ir.__make=ar;var ur=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),u=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var l=0;l2?[]:void 0,{"":e})}function yr(e,t){return v(t)?t.toMap():t.toList()}var br="4.0.0-rc.11",gr={version:br,Collection:x,Iterable:x,Seq:K,Map:Ct,OrderedMap:yn,List:nn,Stack:Tn,Set:jn,OrderedSet:rr,Record:ur,Range:Vn,Repeat:_r,is:fe,fromJS:mr,hash:me,isImmutable:C,isCollection:b,isKeyed:v,isIndexed:k,isAssociative:T,isOrdered:j,isValueObject:de,isSeq:L,isList:tn,isMap:le,isOrderedMap:ce,isStack:kn,isSet:Ln,isOrderedSet:Pn,isRecord:D,get:rt,getIn:Un,has:nt,hasIn:Jn,merge:bt,mergeDeep:vt,mergeWith:gt,mergeDeepWith:wt,remove:it,removeIn:ct,set:at,setIn:ut,update:ft,updateIn:st},vr=x;t.default=gr},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"initLayout",{enumerable:!0,get:function(){return r.initLayout}}),Object.defineProperty(t,"getAttributesInstance",{enumerable:!0,get:function(){return r.getAttributesInstance}}),Object.defineProperty(t,"topActionsRequest",{enumerable:!0,get:function(){return r.topActionsRequest}}),Object.defineProperty(t,"getViewLayout",{enumerable:!0,get:function(){return o.getViewLayout}}),Object.defineProperty(t,"getViewRowsByIds",{enumerable:!0,get:function(){return o.getViewRowsByIds}}),Object.defineProperty(t,"browseViewRequest",{enumerable:!0,get:function(){return o.browseViewRequest}}),Object.defineProperty(t,"deleteView",{enumerable:!0,get:function(){return o.deleteView}}),Object.defineProperty(t,"createViewRequest",{enumerable:!0,get:function(){return o.createViewRequest}}),Object.defineProperty(t,"filterViewRequest",{enumerable:!0,get:function(){return o.filterViewRequest}}),Object.defineProperty(t,"deleteStaticFilter",{enumerable:!0,get:function(){return o.deleteStaticFilter}}),Object.defineProperty(t,"quickActionsRequest",{enumerable:!0,get:function(){return o.quickActionsRequest}}),Object.defineProperty(t,"loginRequest",{enumerable:!0,get:function(){return i.loginRequest}}),Object.defineProperty(t,"localLoginRequest",{enumerable:!0,get:function(){return i.localLoginRequest}}),Object.defineProperty(t,"loginCompletionRequest",{enumerable:!0,get:function(){return i.loginCompletionRequest}}),Object.defineProperty(t,"logoutRequest",{enumerable:!0,get:function(){return i.logoutRequest}}),Object.defineProperty(t,"resetPasswordRequest",{enumerable:!0,get:function(){return i.resetPasswordRequest}}),Object.defineProperty(t,"getResetPasswordInfo",{enumerable:!0,get:function(){return i.getResetPasswordInfo}}),Object.defineProperty(t,"resetPasswordComplete",{enumerable:!0,get:function(){return i.resetPasswordComplete}}),Object.defineProperty(t,"resetPasswordGetAvatar",{enumerable:!0,get:function(){return i.resetPasswordGetAvatar}}),Object.defineProperty(t,"getAvatar",{enumerable:!0,get:function(){return i.getAvatar}}),Object.defineProperty(t,"getUserSession",{enumerable:!0,get:function(){return i.getUserSession}}),Object.defineProperty(t,"getUserLang",{enumerable:!0,get:function(){return i.getUserLang}}),Object.defineProperty(t,"setUserLang",{enumerable:!0,get:function(){return i.setUserLang}}),Object.defineProperty(t,"getAvailableLang",{enumerable:!0,get:function(){return i.getAvailableLang}});var r=n(1149),o=n(1148),i=n(1145)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_FIELD_TYPES=t.DATE_FIELD_FORMATS=t.DATE_FIELD_TYPES=t.SPECIAL_FIELD_TYPES=t.AMOUNT_FIELD_FORMATS_BY_PRECISION=t.AMOUNT_FIELD_TYPES=t.INITIALLY_OPEN=t.INITIALLY_CLOSED=t.DATE_FIELDS=t.VIEW_EDITOR_RENDER_MODES_ALWAYS=t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND=t.VIEW_EDITOR_RENDER_MODES_NEVER=t.LOCAL_LANG=t.DATE_FORMAT=void 0,function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}();t.DATE_FORMAT="YYYY-MM-DDTHH:mm:ss.SSSZ";t.LOCAL_LANG="metasfreshLanguage";t.VIEW_EDITOR_RENDER_MODES_NEVER="never";t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND="on-demand";t.VIEW_EDITOR_RENDER_MODES_ALWAYS="always";var r=["Date","DateTime","Time"];t.DATE_FIELDS=r;t.INITIALLY_CLOSED="INITIALLY_CLOSED";t.INITIALLY_OPEN="INITIALLY_OPEN";var o=["Amount","CostPrice"];t.AMOUNT_FIELD_TYPES=o;var i=["0,0.[00000]","0,0.0[0000]","0,0.00[000]","0,0.000[00]","0,0.0000[0]","0,0.00000"];t.AMOUNT_FIELD_FORMATS_BY_PRECISION=i;var a=["Color"];t.SPECIAL_FIELD_TYPES=a;var s=["Date","DateTime","Time"];t.DATE_FIELD_TYPES=s;var u={Date:"l",DateTime:"l LTS",Time:"LT"};t.DATE_FIELD_FORMATS=u;var l=["Time"];t.TIME_FIELD_TYPES=l,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register("YYYY-MM-DDTHH:mm:ss.SSSZ","DATE_FORMAT","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("metasfreshLanguage","LOCAL_LANG","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("never","VIEW_EDITOR_RENDER_MODES_NEVER","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("on-demand","VIEW_EDITOR_RENDER_MODES_ON_DEMAND","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("always","VIEW_EDITOR_RENDER_MODES_ALWAYS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(r,"DATE_FIELDS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("INITIALLY_CLOSED","INITIALLY_CLOSED","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("INITIALLY_OPEN","INITIALLY_OPEN","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(o,"AMOUNT_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(i,"AMOUNT_FIELD_FORMATS_BY_PRECISION","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(a,"SPECIAL_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(s,"DATE_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(u,"DATE_FIELD_FORMATS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(l,"TIME_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){var r=n(6),o=n(16),i=n(70),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(17),o=n(49),i=n(50),a=n(100)("src"),s=n(1400),u=(""+s).split("toString");n(26).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.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){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){void 0===t&&(t=void 0);var n=e.call(this,t)||this;return n.message=t,n}return r(t,e),t}(n(875).CustomError);t.default=o},function(e,t,n){"use strict";var r=n(514);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";var r=n(655),o=n(1211),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n0){var n=new r.default[t.length+e.length];o.default.arraycopy(t,0,n,0,t.length),o.default.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.toString=function(){return this.text},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(104),o=n(51),i=n(205),a=n(75),s=n(22),u=function(){function e(e,t,n,r){if(this.width=e,this.height=t,this.rowSize=n,this.bits=r,void 0!==t&&null!==t||(t=e),this.height=t,e<1||t<1)throw new s.default("Both dimensions must be greater than 0");void 0!==n&&null!==n||(n=Math.floor((e+31)/32)),this.rowSize=n,void 0!==r&&null!==r||(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var n=t.length,r=t[0].length,o=new e(r,n),i=0;ia){if(-1===u)u=i-a;else if(i-a!==u)throw new s.default("row lengths do not match");a=i,l++}c++}else if(t.substring(c,c+n.length)===n)c+=n.length,o[i]=!0,i++;else{if(t.substring(c,c+r.length)!==r)throw new s.default("illegal character encountered: "+t.substring(c));c+=r.length,o[i]=!1,i++}if(i>a){if(-1===u)u=i-a;else if(i-a!==u)throw new s.default("row lengths do not match");l++}for(var d=new e(u,l),f=0;f>>(31&e)&1)},e.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(31&e)&4294967295},e.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(31&e)&4294967295)},e.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(31&e)&4294967295},e.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new s.default("input matrix dimensions do not match");for(var t=new r.default(Math.floor(this.width/32)+1),n=this.rowSize,o=this.bits,i=0,a=this.height;ithis.height||o>this.width)throw new s.default("The region must fit inside the matrix");for(var a=this.rowSize,u=this.bits,l=t;ls&&(s=u),32*la){for(d=31;c>>>d==0;)d--;32*l+d>a&&(a=32*l+d)}}}return a=0&&0===t[n];)n--;if(n<0)return null;for(var r=Math.floor(n/e),o=32*Math.floor(n%e),i=t[n],a=31;i>>>a==0;)a--;return o+=a,Int32Array.from([o,r])},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRowSize=function(){return this.rowSize},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){var e=this.width;return e=31*(e=31*(e=31*(e=31*e+this.width)+this.height)+this.rowSize)+i.default.hashCode(this.bits)},e.prototype.toString=function(e,t,n){return void 0===e&&(e="x"),void 0===t&&(t=" "),void 0===n&&(n="\n"),this.buildToString(e,t,n)},e.prototype.buildToString=function(e,t,n){var r=new a.default;r.append(n);for(var o=0,i=this.height;o1&&void 0!==arguments[1]?arguments[1]:"NEW",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return function(s){return"new"==t&&(t="NEW"),s(de(e,t,n,r,a)).then(function(u){if(u){if("NEW"==t&&!o)return s(T(u.data[0].id)),s((0,i.replace)("/window/".concat(e,"/").concat(u.data[0].id)));var l=0;u.data.forEach(function(e,t){e.rowId===r&&(l=t)}),"NEW"===t&&s(oe(null,u.data[0].id)),t=u.data[l].id,s(W({data:(0,y.parseToDisplay)(u.data[l].fieldsByName),docId:t,saveStatus:u.data[0].saveStatus,scope:(0,y.getScope)(o),standardActions:u.data[0].standardActions,validStatus:u.data[0].validStatus,includedTabsInfo:u.data[0].includedTabsInfo,websocket:u.data[0].websocketEndpoint})),o?"NEW"===r&&(s(be(u.data,!1,"NEW",t,e)),s(ge(u.data)),s(oe(u.data[0].rowId))):s((0,_.getWindowBreadcrumb)(e)),(0,p.initLayout)("window",e,n,null,null,a).then(function(e){return s(N(e.data,(0,y.getScope)(o)))}).then(function(n){o||s(ce(n.layout.tabs,e,t,o))})}})}}function ce(e,t,n,r){return function(o){var i={};e&&e.map(function(e,a){i[e.tabId]={},0!==a&&e.queryOnActivate||Le(e.tabId,t,n).then(function(t){i[e.tabId]=t,o(U(i,(0,y.getScope)(r)))})})}}function de(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;return function(i){return"NEW"===t?(0,f.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,f.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,f.getData)("window",e,t,n,r,null,null,o):(0,f.getData)("window",e,t,null,null,null,null,o).catch(function(){i(W({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,l.Set)(),validStatus:{}})),i((0,_.getWindowBreadcrumb)(e))})}}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}();var fe=function(e,t,n,r){var o=t;return!t&&r&&(o=r[0]),"".concat(config.API_URL,"/window/").concat(e).concat(o?"/".concat(o):"").concat(r&&n?"/".concat(n,"/").concat(r):"","/changeLog")};function pe(e,t,n,o){return function(i){var a=fe(e,t,null,o);return r.default.get(a).then(function(){var a=v(regeneratorRuntime.mark(function a(s){var u,l,c;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(u=s.data,l=null,!t||!o){a.next=8;break}if(1!==o.length){a.next=8;break}return c=fe(e,t,n,o),a.next=7,r.default.get(c).then(function(e){return e.data});case 7:l=a.sent;case 8:l&&(u.rowsData=l),i(W({data:u,docId:t,scope:"modal"}));case 10:case"end":return a.stop()}},a)}));return function(e){return a.apply(this,arguments)}}())}}function he(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"NEW",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,p=arguments.length>10?arguments[10]:void 0;return function(){var h=v(regeneratorRuntime.mark(function h(_){var m,y,b,g,v,w,k;return regeneratorRuntime.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return m=Symbol(),y={entity:e,docType:t,docId:n,tabId:r,rowId:o,property:i,value:a,isAdvanced:u,viewId:l,isEdit:p},h.next=4,_(ie("pending"));case 4:return h.next=6,_({type:c.PATCH_REQUEST,symbol:m,options:y});case 6:return h.prev=6,h.next=9,(0,f.patchRequest)(y);case 9:return b=h.sent,g=b.data instanceof Array?b.data:[b.data],v=g[0],h.next=14,_(be(g,s,o,n,t,u));case 14:if(!v||!v.validStatus||v.validStatus.valid||i!==v.validStatus.fieldName&&void 0!==v.validStatus.fieldName){h.next=23;break}return h.next=17,_(ie("error"));case 17:return h.next=19,_({type:c.PATCH_FAILURE,symbol:m});case 19:w=v.validStatus.reason,_((0,d.addNotification)("Error: "+w.split(" ",4).join(" ")+"...",w,5e3,"error","")),h.next=28;break;case 23:return h.next=25,_(ie("saved"));case 25:return h.next=27,_({type:c.PATCH_SUCCESS,symbol:m});case 27:return h.abrupt("return",g);case 28:h.next=41;break;case 30:return h.prev=30,h.t0=h.catch(6),h.next=34,_(ie("error"));case 34:return h.next=36,_({type:c.PATCH_FAILURE,symbol:m});case 36:return h.next=38,(0,f.getData)(e,t,n,r,o,null,null,u,null,l);case 38:return k=h.sent,h.next=41,_(be(k.data,s,o,n,t,u));case 41:case"end":return h.stop()}},h,null,[[6,30]])}));return function(e){return h.apply(this,arguments)}}()}function _e(e,t,n,r,o,i,a){return function(s){(0,f.getData)(e,t,n,r,o,null,null,a).then(function(e){s(be(e.data,i,o,n,t,a))})}}function me(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n($(r,e.fieldsByName[r],t))}):n("includedTabsInfo"===r?B("master",e[r]):q(r,e[r],t))})}}function ye(e,t){return function(n){Object.keys(e).map(function(r){"fieldsByName"===r?Object.keys(e.fieldsByName).map(function(r){n(Q(r,e.fieldsByName[r],e.tabid,e.rowId,t))}):n(F(r,e[r],e.tabId,e.rowId,t))})}}function be(e,t,n,r,o,i){return function(r){("function"==typeof e.splice?e:[e]).map(function(e,o){var a=e.fieldsByName?w({},e,{fieldsByName:(0,y.parseToDisplay)(e.fieldsByName)}):e;0===o&&"NEW"===n?r(K(a,a.tabid,a.rowId,"master")):e.rowId&&!t?r(ye(a,"master")):(e.rowId&&r(ye(a,"master")),i&&r(me(a,"master")),r(me(a,(0,y.getScope)(t&&0===o))))})}}function ge(e){return function(t){var n=function(e){e.rowId?t(J("master",e.tabid,e.rowId,e.saveStatus)):(e.validStatus&&t(X("master",e.validStatus)),e.saveStatus&&t(z("master",e.saveStatus)),e.includedTabsInfo&&t(B("master",e.includedTabsInfo)))};Array.isArray(e)?e.map(function(e){n(e)}):n(e)}}function ve(e,t,n,r,o,i){return function(a){n&&r?(a(Q(e,{value:t},n,r,"master")),o&&"process"!==i&&a($(e,{value:t},"modal"))):(a($(e,{value:t},(0,y.getScope)(o))),o&&"process"!==i&&a($(e,{value:t},"master")))}}function we(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,d.setNotificationProgress)(t,r))}function ke(e,t,n){var i=this;return function(a){var s=o.default.translate("window.attachment.title.pending"),u=o.default.translate("window.attachment.title.done"),l=o.default.translate("window.attachment.title.error"),c=r.default.CancelToken.source();a((0,d.addNotification)(s,o.default.translate("window.attachment.uploading"),0,"primary",null,c));var f={onUploadProgress:we.bind(i,a,s),cancelToken:c.token};r.default.post("".concat(config.API_URL,"/window/").concat(e,"/").concat(t,"/attachments"),n,f).then(function(){return a((0,d.addNotification)(u,o.default.translate("window.attachment.upload.success"),5e3,"primary"))}).finally(function(){return a((0,d.deleteNotification)(s))}).catch(function(e){r.default.isCancel(e)?a((0,d.addNotification)(l,"Upload terminated by the user",5e3,"warning","disableMouse")):a((0,d.addNotification)(l,o.default.translate("window.attachment.upload.error"),5e3,"error"))})}}function Te(e){var t=e.ids,n=e.processType,r=e.rowId,o=e.tabId,i=e.type,a=e.viewId,s=e.selectedTab,u=e.childViewId,l=e.childViewSelectedIds,c=e.parentViewId,f=e.parentViewSelectedIds,h=null;return function(){var e=v(regeneratorRuntime.mark(function e(_){var m,b,g,v,k;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_((0,d.setProcessPending)());case 2:return e.prev=2,e.next=5,Pe({ids:t,processId:n,rowId:r,tabId:o,type:i,viewId:a,selectedTab:s,childViewId:u,childViewSelectedIds:l,parentViewId:c,parentViewSelectedIds:f});case 5:m=e.sent,e.next=15;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,_(re());case 12:return e.next=14,_((0,d.setProcessSaved)());case 14:throw e.t0;case 15:if(!m.data){e.next=54;break}if(b=(0,y.parseToDisplay)(m.data.fieldsByName),h=m.data.pinstanceId,!m.data.startProcessDirectly){e.next=36;break}return e.prev=19,e.next=22,De(n,h);case 22:return g=e.sent,e.next=25,_(xe(g,n,h));case 25:e.next=34;break;case 27:return e.prev=27,e.t1=e.catch(19),e.next=31,_(re());case 31:return e.next=33,_((0,d.setProcessSaved)());case 33:throw e.t1;case 34:e.next=54;break;case 36:return e.next=38,_(W({data:b,scope:"modal"}));case 38:return e.prev=38,e.next=41,(0,p.initLayout)("process",n);case 41:return v=e.sent,e.next=44,_((0,d.setProcessSaved)());case 44:return k=w({},v.data,{pinstanceId:h}),e.next=47,_(N(k,"modal"));case 47:e.next=54;break;case 49:return e.prev=49,e.t2=e.catch(38),e.next=53,_((0,d.setProcessSaved)());case 53:throw e.t2;case 54:case"end":return e.stop()}},e,null,[[2,8],[19,27],[38,49]])}));return function(t){return e.apply(this,arguments)}}()}function xe(e,t,n){return function(){var r=v(regeneratorRuntime.mark(function r(o){var a,s,u,l,c;return regeneratorRuntime.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(a=e.data,s=a.error,u=a.summary,l=a.action,!s){r.next=10;break}return r.next=4,o((0,d.addNotification)("Process error",u,5e3,"error"));case 4:return r.next=6,o((0,d.setProcessSaved)());case 6:return r.next=8,o(re());case 8:r.next=55;break;case 10:if(c=!1,!l){r.next=47;break}r.t0=l.type,r.next="displayQRCode"===r.t0?15:"openView"===r.t0?17:"openReport"===r.t0?25:"openDocument"===r.t0?27:"openIncludedView"===r.t0?38:"closeIncludedView"===r.t0?41:"selectViewRows"===r.t0?44:47;break;case 15:return o(O({type:"qr",data:l.code})),r.abrupt("break",47);case 17:return r.next=19,o(re());case 19:if(l.modalOverlay){r.next=22;break}return window.open("/window/".concat(l.windowId,"/?viewId=").concat(l.viewId)),r.abrupt("return");case 22:return r.next=24,o(S(l.windowId,l.viewId,l.profileId));case 24:return r.abrupt("break",47);case 25:return(0,f.openFile)("process",t,n,"print",l.filename),r.abrupt("break",47);case 27:return r.next=29,o(re());case 29:if(!l.modal){r.next=35;break}return c=!0,r.next=33,o(te("",l.windowId,"window",null,null,!!l.advanced&&l.advanced,"","",l.documentId));case 33:r.next=37;break;case 35:return r.next=37,o((0,i.push)("/window/"+l.windowId+"/"+l.documentId));case 37:return r.abrupt("break",47);case 38:return r.next=40,o((0,h.setListIncludedView)({windowType:l.windowId,viewId:l.viewId,viewProfileId:l.profileId}));case 40:return r.abrupt("break",47);case 41:return r.next=43,o((0,h.setListIncludedView)({windowType:l.windowId,viewId:l.viewId}));case 43:return r.abrupt("break",47);case 44:return r.next=46,o(se(l.rowIds,l.windowId));case 46:return r.abrupt("break",47);case 47:if(!u){r.next=50;break}return r.next=50,o((0,d.addNotification)("Process",u,5e3,"primary"));case 50:return r.next=52,o((0,d.setProcessSaved)());case 52:if(c){r.next=55;break}return r.next=55,o(ne());case 55:case"end":return r.stop()}},r)}));return function(e){return r.apply(this,arguments)}}()}function Me(e,t,n,r){return function(o){var i=!0,a=!1,s=void 0;try{for(var u,l=t[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var c=u.value;o(Z(e,c,n))}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}o(ge(r.data))}}function Oe(e,t,n,o,i,a){return r.default.get(config.API_URL+"/"+e+"/"+t+(n?"/"+n:"")+(o?"/"+o:"")+(i?"/"+i:"")+"/field/"+a+"/zoomInto?showError=true")}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId,o=e.tabId,i=e.rowId;return r.default.post(config.API_URL+"/window/"+t+"/"+n+"/"+o+"/"+i+"/discardChanges")}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.documentId;return r.default.post(config.API_URL+"/window/"+t+"/"+n+"/discardChanges")}function Le(e,t,n,r){return(0,f.getData)("window",t,n,e,null,null,null,null,r).then(function(e){return e.data&&e.data.map(function(e){return w({},e,{fieldsByName:(0,y.parseToDisplay)(e.fieldsByName)})})})}function Pe(e){var t=e.processId,n=e.viewId,o=e.type,i=e.ids,a=e.tabId,s=e.rowId,u=e.selectedTab,l=e.childViewId,c=e.childViewSelectedIds,d=e.parentViewId,f=e.parentViewSelectedIds,p={processId:t};if(n?(p.viewId=n,p.viewDocumentIds=i,l&&(p.childViewId=l,p.childViewSelectedIds=c),d&&(p.parentViewId=d,p.parentViewSelectedIds=f instanceof Array?f:[f])):(p.documentId=Array.isArray(i)?i[0]:i,p.documentType=o,p.tabId=a,p.rowId=s),u){var h=u.tabId,_=u.rowIds;h&&_&&(p.selectedTab={tabId:h,rowIds:_})}return r.default.post("".concat(config.API_URL,"/process/").concat(t),p)}function De(e,t){return r.default.get("".concat(config.API_URL,"/process/").concat(e,"/").concat(t,"/start"))}function Ce(e,t){var n=this;if(this.sockTopic!==e){var r=function r(){var o=(arguments.length>0&&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 a.default(config.WS_URL),n.sockClient=u.default.Stomp.over(n.sock),n.sockClient.debug=null,n.sockClient.connect({},r)};Ie.call(this,o)||o()}}function Ie(e){var t=this.sockClient&&this.sockClient.connected&&this.sockSubscription;return t&&(this.sockSubscription.unsubscribe(),this.sockClient.disconnect(e),this.sockTopic=null),t}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(T,"setLatestNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(x,"showSpinner","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(M,"hideSpinner","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(O,"toggleOverlay","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(S,"openRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(E,"updateRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(L,"closeRawModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(P,"openFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(D,"closeFilterBox","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(C,"allowOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(I,"disableOutsideClick","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(j,"allowShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(A,"disableShortcut","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(R,"activateTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(H,"unselectTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(N,"initLayoutSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(W,"initDataSuccess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Y,"updateMasterData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(V,"clearMasterData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(U,"addRowData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(G,"sortTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(J,"updateRowStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(q,"updateDataProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(z,"updateDataSaveStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(X,"updateDataValidStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(F,"updateRowProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(B,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(K,"addNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Z,"deleteRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register($,"updateDataFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Q,"updateRowFieldProperty","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ee,"noConnection","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(te,"openModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ne,"closeProcessModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(re,"closeModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(oe,"updateModal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ie,"indicatorState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ae,"removeSelectedTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(se,"selectTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ue,"deselectTableItems","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(le,"createWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ce,"initTabs","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(de,"initWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(fe,"getChangelogUrl","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(pe,"fetchChangeLog","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(he,"patch","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(_e,"fireUpdateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(me,"updateData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ye,"updateRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(be,"mapDataToState","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ge,"updateStatus","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ve,"updatePropertyValue","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(we,"handleUploadProgress","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(ke,"attachFileAction","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Te,"createProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(xe,"handleProcessResponse","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Me,"deleteLocal","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Oe,"getZoomIntoWindow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Se,"discardNewRow","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Ee,"discardNewDocument","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Le,"getTab","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Pe,"getProcessData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(De,"startProcess","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Ce,"connectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"),e.register(Ie,"disconnectWS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/WindowActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";var r=n(2),o=n(1181);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=n(181)("wks"),o=n(100),i=n(17).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=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(45).default);t.default=o},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getData=i,t.createInstance=a,t.createPatchRequestPayload=s,t.patchRequest=u,t.completeRequest=l,t.autocompleteRequest=c,t.autocompleteModalRequest=d,t.dropdownRequest=f,t.dropdownModalRequest=p,t.deleteRequest=h,t.duplicateRequest=_,t.actionsRequest=m,t.rowActionsRequest=y,t.referencesRequest=b,t.attachmentsRequest=g,t.processNewRecord=v,t.openFile=w,t.getRequest=k;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(42)),o=n(58);function i(e,t,n,o,i,a,s,u,l,c){return r.default.get(config.API_URL+"/"+e+"/"+t+(c?"/"+c:"")+(n?"/"+n:"")+(o?"/"+o:"")+(i?"/"+i:"")+(a?"/"+a:"")+(s?"/"+s:"")+(u?"?advanced=true":"")+(l?"?orderBy="+l:""))}function a(e,t,n,o,i){return r.default.post(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:""))}function s(e,t){return Array.isArray(e)&&Array.isArray(t)?e.map(function(e,n){return{op:"replace",path:e,value:t[n]}}):Array.isArray(e)&&void 0!==t?e.map(function(e){return{op:"replace",path:e.field,value:t}}):e&&void 0!==t?[{op:"replace",path:e,value:t}]:[]}function u(e){var t=e.docId,n=e.docType,o=e.entity,i=e.isAdvanced,a=e.property,u=e.rowId,l=e.subentity,c=e.subentityId,d=e.tabId,f=e.value,p=e.viewId,h=e.isEdit,_="NEW"!==t?s(a,f):[];return r.default.patch(config.API_URL+"/"+o+(n?"/"+n:"")+(p?"/"+p:"")+(t?"/"+t:"")+(d?"/"+d:"")+(u?"/"+u:"")+(l?"/"+l:"")+(c?"/"+c:"")+(i?"?advanced=true":"")+(h?"/edit":""),_)}function l(e,t,n,o,i,a,s){return r.default.post("".concat(config.API_URL,"/").concat(e).concat(t?"/".concat(t):"").concat(n?"/".concat(n):"").concat(o?"/".concat(o):"").concat(i?"/".concat(i):"").concat(a?"/".concat(a):"").concat(s?"/".concat(s):"","/complete"))}function c(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.query,u=e.rowId,l=e.subentity,c=e.subentityId,d=e.tabId,f=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(f?"/".concat(f):"").concat(n?"/".concat(n):"").concat(d?"/".concat(d):"").concat(u?"/".concat(u):"").concat(l?"/".concat(l):"").concat(c?"/".concat(c):"").concat(t?"/attribute/":"/field/").concat(a,"/typeahead?query=").concat(encodeURIComponent(s),"\n "))}function d(e){var t=e.docId,n=e.docType,o=e.entity,i=e.propertyName,a=e.query,s=e.rowId,u=e.tabId,l=e.viewId;return r.default.get("".concat(config.API_URL,"/").concat(o).concat(n?"/".concat(n):"").concat(l?"/".concat(l):"").concat(t?"/".concat(t):"").concat(u?"/".concat(u):"").concat(s?"/".concat(s):"","/edit/").concat(i,"/typeahead?query=").concat(encodeURIComponent(a),"\n "))}function f(e){var t=e.attribute,n=e.docId,o=e.docType,i=e.entity,a=e.propertyName,s=e.rowId,u=e.subentity,l=e.subentityId,c=e.tabId,d=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(i).concat(o?"/".concat(o):"").concat(d?"/".concat(d):"").concat(n?"/".concat(n):"").concat(c?"/".concat(c):"").concat(s?"/".concat(s):"").concat(u?"/".concat(u):"").concat(l?"/".concat(l):"").concat(t?"/attribute/":"/field/").concat(a,"/dropdown"))}function p(e){var t=e.windowId,n=e.entity,o=e.fieldName,i=e.rowId,a=e.viewId;return r.default.get("\n ".concat(config.API_URL,"/").concat(n,"/").concat(t,"/").concat(a,"/").concat(i,"/edit/").concat(o,"/dropdown"))}function h(e,t,n,o,i,a,s){return r.default.delete(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+(o?"/"+o:"")+(a?"/"+a:"")+(s?"/"+s:"")+(i?"?ids="+i:""))}function _(e,t,n){return r.default.post(config.API_URL+"/"+e+(t?"/"+t:"")+(n?"/"+n:"")+"/duplicate")}function m(e){var t=e.entity,n=e.type,i=e.id,a=e.selectedIds,s=e.selectedTabId,u=e.selectedRowIds,l=e.childViewId,c=e.childViewSelectedIds,d=(0,o.getQueryString)({disabled:!0,selectedIds:a,selectedTabId:s,selectedRowIds:u,childViewId:l,childViewSelectedIds:c});return t?r.default.get(config.API_URL+"/"+t+"/"+n+"/"+i+"/actions"+(d?"?"+d:"")):Promise.resolve({data:{actions:[]}})}function y(e){var t=e.windowId,n=e.documentId,o=e.tabId,i=e.rowId;return r.default.get(config.API_URL+"/window/"+t+"/"+n+"/"+o+"/"+i+"/actions")}function b(e,t,n,o,i){return r.default.get(config.API_URL+"/"+e+"/"+t+"/"+n+(o?"/"+o:"")+(i?"/"+i:"")+"/references")}function g(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/attachments"))}function v(e,t,n){return r.default.get("".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/processNewRecord"))}function w(e,t,n,r,o){var i="".concat(config.API_URL,"/").concat(e,"/").concat(t,"/").concat(n,"/").concat(r,"/").concat(o);window.open(i,"_blank")}function k(){var e=config.API_URL+"/"+Array.from(arguments).join("/");return r.default.get(e)}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(i,"getData","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(a,"createInstance","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(s,"createPatchRequestPayload","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(u,"patchRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(l,"completeRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(c,"autocompleteRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(d,"autocompleteModalRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(f,"dropdownRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(p,"dropdownModalRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(h,"deleteRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(_,"duplicateRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(m,"actionsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(y,"rowActionsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(b,"referencesRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(g,"attachmentsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(v,"processNewRecord","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(w,"openFile","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"),e.register(k,"getRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/GenericActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){var r=n(62),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifications=f,t.getNotificationsEndpoint=p,t.markAllAsRead=h,t.markAsRead=_,t.deleteUserNotification=m,t.getImageAction=y,t.postImageAction=b,t.getKPIsDashboard=g,t.getTargetIndicatorsDashboard=v,t.getKPIData=w,t.changeKPIItem=k,t.changeTargetIndicatorsItem=T,t.getTargetIndicatorsData=x,t.setUserDashboardWidgets=M,t.getMessages=O,t.createUrlAttachment=S,t.languageSuccess=L,t.logoutSuccess=P,t.loginSuccess=D,t.enableTutorial=C,t.addNotification=I,t.setNotificationProgress=j,t.deleteNotification=A,t.clearNotifications=R,t.updateUri=H,t.getNotificationsSuccess=N,t.readNotification=W,t.newNotification=Y,t.removeNotification=V,t.readAllNotifications=U,t.deleteAllNotifications=G,t.setProcessPending=J,t.setProcessSaved=q,t.userSessionInit=z,t.userSessionUpdate=X,t.initKeymap=F,t.updateKeymap=B,t.initHotkeys=K,t.updateHotkeys=Z;var r=d(n(42)),o=d(n(4)),i=n(516),a=d(n(515)),s=n(28),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(136)),l=n(41),c=n(40);function d(e){return e&&e.__esModule?e:{default:e}}function f(){return r.default.get("".concat(config.API_URL,"/notifications/all?limit=20"))}function p(){return r.default.get("".concat(config.API_URL,"/notifications/websocketEndpoint"))}function h(){return r.default.put("".concat(config.API_URL,"/notifications/all/read"))}function _(e){return r.default.put("".concat(config.API_URL,"/notifications/").concat(e,"/read"))}function m(e){return r.default.delete("".concat(config.API_URL,"/notifications?ids=").concat(e))}function y(e){return(0,r.default)({url:"".concat(config.API_URL,"/image/").concat(e,"?maxWidth=200&maxHeight=200"),responseType:"blob"}).then(function(e){return e.data})}function b(e){return r.default.post("".concat(config.API_URL,"/image"),e).then(function(e){return e.data})}function g(){return r.default.get("".concat(config.API_URL,"/dashboard/kpis?silentError=true"))}function v(){return r.default.get("".concat(config.API_URL,"/dashboard/targetIndicators?silentError=true"))}function w(e){return r.default.get("".concat(config.API_URL,"/dashboard/kpis/").concat(e,"/data?silentError=true"))}function k(e,t,n){return r.default.patch("".concat(config.API_URL,"/dashboard/kpis/").concat(e),[{op:"replace",path:t,value:n}])}function T(e,t,n){return r.default.patch("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e),[{op:"replace",path:t,value:n}])}function x(e){return r.default.get("".concat(config.API_URL,"/dashboard/targetIndicators/").concat(e,"/data?silentError=true"))}function M(e){return r.default.patch("".concat(config.API_URL,"/dashboard/kpis"),e)}function O(e){return r.default.get("".concat(config.API_URL,"/i18n/messages").concat(e?"?="+e:""))}function S(e){var t=e.windowId,n=e.documentId,o=e.name,i=e.url;return r.default.post("".concat(config.API_URL,"/window/").concat(t,"/").concat(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===a.default.locales[n]&&a.default.register("locale",n,r),void 0!==a.default.locales[n]&&(a.default.locale(n),r.defaultFormat&&a.default.defaultFormat(r.defaultFormat))}function L(e){localStorage.setItem(l.LOCAL_LANG,e),o.default.locale(e),i.Settings.defaultLocale=e.replace("_","-"),r.default.defaults.headers.common["Accept-Language"]=e}function P(e){e.close(),localStorage.removeItem("isLogged")}function D(e){return function(t){localStorage.setItem("isLogged",!0),(0,c.getUserSession)().then(function(n){var r=n.data;t(z(r)),L(r.language.key),E(r.language.key,r.locale),i.Settings.defaultLocale=r.language.key.replace("_","-"),i.Settings.defaultZoneName="utc".concat(r.timeZone.replace(/[0,:]/gi,"")),e.initSessionClient(r.websocketEndpoint,function(e){var n=JSON.parse(e.body);t(X(n)),n.language&&L(n.language.key),n.locale&&E(n.language.key,n.locale),f().then(function(e){t(N(e.data.notifications,e.data.unreadCount))})})}),p().then(function(n){e.initNotificationClient(n,function(e){var n=JSON.parse(e.body);if("Read"===n.eventType)t(W(n.notificationId,n.unreadCount));else if("ReadAll"===n.eventType)t(U());else if("Delete"===n.eventType)t(V(n.notificationId,n.unreadCount));else if("DeleteAll"===n.eventType)t(G());else if("New"===n.eventType){t(Y(n.notification,n.unreadCount));var r=n.notification;r.important&&t(I("Important notification",r.message,5e3,"primary"))}})}),f().then(function(e){t(N(e.data.notifications,e.data.unreadCount))})}}function C(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return{type:u.ENABLE_TUTORIAL,flag:e}}function I(e,t,n,r,o,i){return{type:u.ADD_NOTIFICATION,title:e,msg:t,shortMsg:o,time:n,notifType:r,id:Date.now(),onCancel:i}}function j(e,t){return{type:u.SET_NOTIFICATION_PROGRESS,key:e,progress:t}}function A(e){return{type:u.DELETE_NOTIFICATION,key:e}}function R(){return{type:u.CLEAR_NOTIFICATIONS}}function H(e,t,n,r){return function(o){var i=e+"?";t[n]=r;for(var a=Object.keys(t),u=0;u=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,["excludeScrollbar"]));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)},d}(r.Component),n.displayName="OnClickOutside("+h+")",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},d}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.AZTEC=0]="AZTEC",e[e.CODABAR=1]="CODABAR",e[e.CODE_39=2]="CODE_39",e[e.CODE_93=3]="CODE_93",e[e.CODE_128=4]="CODE_128",e[e.DATA_MATRIX=5]="DATA_MATRIX",e[e.EAN_8=6]="EAN_8",e[e.EAN_13=7]="EAN_13",e[e.ITF=8]="ITF",e[e.MAXICODE=9]="MAXICODE",e[e.PDF_417=10]="PDF_417",e[e.QR_CODE=11]="QR_CODE",e[e.RSS_14=12]="RSS_14",e[e.RSS_EXPANDED=13]="RSS_EXPANDED",e[e.UPC_A=14]="UPC_A",e[e.UPC_E=15]="UPC_E",e[e.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85),o=n(876),i=function(){function e(e,t){this.x=e,this.y=t}return e.prototype.getX=function(){return this.x},e.prototype.getY=function(){return this.y},e.prototype.equals=function(t){if(t instanceof e){var n=t;return this.x===n.x&&this.y===n.y}return!1},e.prototype.hashCode=function(){return 31*o.default.floatToIntBits(this.x)+o.default.floatToIntBits(this.y)},e.prototype.toString=function(){return"("+this.x+","+this.y+")"},e.orderBestPatterns=function(e){var t,n,r,o=this.distance(e[0],e[1]),i=this.distance(e[1],e[2]),a=this.distance(e[0],e[2]);if(i>=o&&i>=a?(n=e[0],t=e[1],r=e[2]):a>=i&&a>=o?(n=e[1],t=e[0],r=e[2]):(n=e[2],t=e[0],r=e[1]),this.crossProductZ(t,n,r)<0){var s=t;t=r,r=s}e[0]=t,e[1]=n,e[2]=r},e.distance=function(e,t){return r.default.distance(e.x,e.y,t.x,t.y)},e.crossProductZ=function(e,t,n){var r=t.x,o=t.y;return(n.x-r)*(e.y-o)-(n.y-o)*(e.x-r)},e}();t.default=i},function(e,t,n){"use strict";var r=n(13),o=n(513);function i(){o.call(this)}r(i,o),i.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},i.prototype.once=function(e,t){var n=this,r=!1;this.on(e,function o(){n.removeListener(e,o),r||(r=!0,t.apply(this,arguments))})},i.prototype.emit=function(e){var t=this._listeners[e];if(t)for(var n=Array.prototype.slice.call(arguments,1),r=0;r>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?l(e)+t:t}function d(){return!0}function f(e,t,n){return(0===e&&!m(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function p(e,t){return _(e,t,0)}function h(e,t){return _(e,t,t)}function _(e,t,n){return void 0===e?n:m(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function m(e){return e<0||0===e&&1/e==-1/0}var y="@@__IMMUTABLE_ITERABLE__@@";function b(e){return Boolean(e&&e[y])}var g="@@__IMMUTABLE_KEYED__@@";function v(e){return Boolean(e&&e[g])}var w="@@__IMMUTABLE_INDEXED__@@";function k(e){return Boolean(e&&e[w])}function T(e){return v(e)||k(e)}var x=function(e){return b(e)?e:K(e)},M=function(e){function t(e){return v(e)?e:Z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),O=function(e){function t(e){return k(e)?e:$(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x),S=function(e){function t(e){return b(e)&&!T(e)?e:Q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(x);x.Keyed=M,x.Indexed=O,x.Set=S;var E="@@__IMMUTABLE_SEQ__@@";function L(e){return Boolean(e&&e[E])}var P="@@__IMMUTABLE_RECORD__@@";function D(e){return Boolean(e&&e[P])}function C(e){return b(e)||D(e)}var I="@@__IMMUTABLE_ORDERED__@@";function j(e){return Boolean(e&&e[I])}var A=0,R=1,H=2,N="function"==typeof Symbol&&Symbol.iterator,W="@@iterator",Y=N||W,V=function(e){this.next=e};function U(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 J(e){return!!X(e)}function q(e){return e&&"function"==typeof e.next}function z(e){var t=X(e);return t&&t.call(e)}function X(e){var t=e&&(N&&e[N]||e[W]);if("function"==typeof t)return t}V.prototype.toString=function(){return"[Iterator]"},V.KEYS=A,V.VALUES=R,V.ENTRIES=H,V.prototype.inspect=V.prototype.toSource=function(){return this.toString()},V.prototype[Y]=function(){return this};var F=Object.prototype.hasOwnProperty;function B(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var K=function(e){function t(e){return null===e||void 0===e?oe():C(e)?e.toSeq():function(e){var t=se(e);if(t)return t;if("object"==typeof e)return new te(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 V(function(){if(o===r)return{value:void 0,done:!0};var i=n[t?r-++o:o++];return U(e,i[0],i[1])})}return this.__iteratorUncached(e,t)},t}(x),Z=function(e){function t(e){return null===e||void 0===e?oe().toKeyedSeq():b(e)?v(e)?e.toSeq():e.fromEntrySeq():D(e)?e.toSeq():ie(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(K),$=function(e){function t(e){return null===e||void 0===e?oe():b(e)?v(e)?e.entrySeq():e.toIndexedSeq():D(e)?e.toSeq().entrySeq():ae(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}(K),Q=function(e){function t(e){return(b(e)&&!T(e)?e:$(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}(K);K.isSeq=L,K.Keyed=Z,K.Set=Q,K.Indexed=$,K.prototype[E]=!0;var ee=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[c(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 V(function(){if(o===r)return{value:void 0,done:!0};var i=t?r-++o:o++;return U(e,i,n[i])})},t}($),te=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 F.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 V(function(){if(i===o)return{value:void 0,done:!0};var a=r[t?o-++i:i++];return U(e,a,n[a])})},t}(Z);te.prototype[I]=!0;var ne,re=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=z(this._collection),r=0;if(q(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=z(this._collection);if(!q(n))return new V(G);var r=0;return new V(function(){var t=n.next();return t.done?t:U(e,r++,t.value)})},t}($);function oe(){return ne||(ne=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e):J(e)?new re(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new te(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function ae(e){var t=se(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function se(e){return B(e)?new ee(e):J(e)?new re(e):void 0}var ue="@@__IMMUTABLE_MAP__@@";function le(e){return Boolean(e&&e[ue])}function ce(e){return le(e)&&j(e)}function de(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function fe(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!!(de(e)&&de(t)&&e.equals(t))}var pe="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 he(e){return e>>>1&1073741824|3221225471&e}var _e=Object.prototype.valueOf;function me(e){switch(typeof e){case"boolean":return e?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;t!==e&&(t^=4294967295*e);for(;e>4294967295;)t^=e/=4294967295;return he(t)}(e);case"string":return e.length>xe?function(e){var t=Se[e];void 0===t&&(t=ye(e),Oe===Me&&(Oe=0,Se={}),Oe++,Se[e]=t);return t}(e):ye(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?he(e.hashCode(e)):(e.valueOf!==_e&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(we&&void 0!==(t=ve.get(e)))return t;if(void 0!==(t=e[Te]))return t;if(!ge){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Te]))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!==be&&!1===be(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ge)Object.defineProperty(e,Te,{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[Te]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Te]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function ye(e){for(var t=0,n=0;n=0&&(l.get=function(t,n){return(t=c(this,t))>=0&&ts)return{value:void 0,done:!0};var e=o.next();return r||t===R||e.done?e:U(t,u-1,t===A?void 0:e.value[1],e)})},l}function He(e,t,n,r){var o=ze(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate(function(e,i,l){if(!s||!(s=t.call(n,e,i,l)))return u++,o(e,r?i:u-1,a)}),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(H,i),u=!0,l=0;return new V(function(){var e,i,c;do{if((e=s.next()).done)return r||o===R?e:U(o,l++,o===A?void 0:e.value[1],e);var d=e.value;i=d[0],c=d[1],u&&(u=t.call(n,c,i,a))}while(u);return o===H?e:U(o,i,c,e)})},o}function Ne(e,t,n){var r=ze(e);return r.__iterateUncached=function(o,i){if(i)return this.cacheResult().__iterate(o,i);var a=0,s=!1;return function e(u,l){u.__iterate(function(i,u){return(!t||l0}function Ue(e,t,n,r){var o=ze(e),i=new ee(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(R,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=x(e),z(o?e.reverse():e)}),a=0,s=!1;return new V(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}:U(e,a++,t.apply(null,n.map(function(e){return e.value})))})},o}function Ge(e,t){return e===t?e:L(e)?t:e.constructor(t)}function Je(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function qe(e){return v(e)?M:k(e)?O:S}function ze(e){return Object.create((v(e)?Z:k(e)?$:Q).prototype)}function Xe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):K.prototype.cacheResult.call(this)}function Fe(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];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return yt(this,t,e)}function yt(e,t,n){for(var r=[],o=0;o0;)t[n]=arguments[n+1];return Tt(e,t)}function gt(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return Tt(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 Tt(e,t,function(e){return function t(n,r,o){return et(n)&&et(r)?Tt(n,[r],t):e?e(n,r,o):r}}(n))}function Tt(e,t,n){if(!et(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(C(e))return"function"==typeof n&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),o=e,i=r?O:M,a=r?function(t){o===e&&(o=ot(o)),o.push(t)}:function(t,r){var i=F.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,Jt(),function(e){return Tt(e,t)})}function St(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return st(this,e,Jt(),function(e){return kt(e,t)})}function Et(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function Lt(){return this.__ownerID?this:this.__ensureOwner(new u)}function Pt(){return this.__ensureOwner()}function Dt(){return this.__altered}Le.prototype.cacheResult=Ee.prototype.cacheResult=Pe.prototype.cacheResult=De.prototype.cacheResult=Xe;var Ct=function(e){function t(t){return null===t||void 0===t?Jt():le(t)&&!j(t)?t:Jt().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 Jt().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 qt(this,e,t)},t.prototype.remove=function(e){return qt(this,e,a)},t.prototype.deleteAll=function(e){var t=x(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):Jt()},t.prototype.sort=function(e){return yn(We(this,e))},t.prototype.sortBy=function(e,t){return yn(We(this,t,e))},t.prototype.map=function(e,t){return this.withMutations(function(n){n.forEach(function(r,o){n.set(o,e.call(t,r,o,n))})})},t.prototype.__iterator=function(e,t){return new Yt(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?Jt():(this.__ownerID=e,this.__altered=!1,this)},t}(M);Ct.isMap=le;var It=Ct.prototype;It[ue]=!0,It.delete=It.remove,It.removeAll=It.deleteAll,It.setIn=lt,It.removeIn=It.deleteIn=dt,It.update=pt,It.updateIn=ht,It.merge=It.concat=_t,It.mergeWith=mt,It.mergeDeep=xt,It.mergeDeepWith=Mt,It.mergeIn=Ot,It.mergeDeepIn=St,It.withMutations=Et,It.wasAltered=Dt,It.asImmutable=Pt,It["@@transducer/init"]=It.asMutable=Lt,It["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},It["@@transducer/result"]=function(e){return e.asImmutable()};var jt=function(e,t){this.ownerID=e,this.entries=t};jt.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=Zt)return function(e,t,n,r){e||(e=new u);for(var o=new Nt(e,me(n),[n,r]),i=0;i>>e)&i),s=this.bitmap;return 0==(s&a)?o:this.nodes[Bt(s&a-1)].get(e+r,t,n,o)},At.prototype.update=function(e,t,n,s,u,l,c){void 0===n&&(n=me(s));var d=(0===t?n:n>>>t)&i,f=1<=$t)return function(e,t,n,r,i){for(var a=0,s=new Array(o),u=0;0!==n;u++,n>>>=1)s[u]=1&n?t[a++]:void 0;return s[r]=i,new Rt(e,a+1,s)}(e,m,p,d,b);if(h&&!b&&2===m.length&&Xt(m[1^_]))return m[1^_];if(h&&b&&1===m.length&&Xt(b))return b;var g=e&&e===this.ownerID,v=h?b?p:p^f:p|f,w=h?b?Kt(m,_,b,g):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},Rt.prototype.update=function(e,t,n,o,s,u,l){void 0===n&&(n=me(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=zt(p,e,t+r,n,o,s,u,l);if(h===p)return this;var _=this.count;if(p){if(!h&&--_>>n)&i,l=(0===n?o:o>>>n)&i,c=u===l?[Ft(e,t,n+r,o,a)]:(s=new Nt(t,o,a),u>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Kt(e,t,n,r){var o=r?e:Be(e);return o[t]=n,o}var Zt=o/4,$t=o/2,Qt=o/4,en="@@__IMMUTABLE_LIST__@@";function tn(e){return Boolean(e&&e[en])}var nn=function(e){function t(t){var n=cn();if(null===t||void 0===t)return n;if(tn(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?hn(e,t).set(0,n):hn(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,o=e._root,i={value:!1};t>=_n(e._capacity)?r=dn(r,e.__ownerID,0,t,n,i):o=dn(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 ln(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):cn()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){hn(n,0,t+e.length);for(var r=0;r>>t&i;if(o>=this.array.length)return new on([],e);var a,s=0===o;if(t>0){var u=this.array[o];if((a=u&&u.removeBefore(e,t-r,n))===u&&s)return this}if(s&&!a)return this;var l=fn(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 u=fn(this,e);return u.array.splice(a+1),o&&(u.array[a]=o),u};var an,sn={};function un(e,t){var n=e._origin,i=e._capacity,a=_n(i),s=e._tail;return u(e._root,e._level,0);function u(e,l,c){return 0===l?function(e,r){var u=r===a?s&&s.array:e&&e.array,l=r>n?0:n-r,c=i-r;c>o&&(c=o);return function(){if(l===c)return sn;var e=t?--c:l++;return u&&u[e]}}(e,c):function(e,a,s){var l,c=e&&e.array,d=s>n?0:n-s>>a,f=1+(i-s>>a);f>o&&(f=o);return function(){for(;;){if(l){var e=l();if(e!==sn)return e;l=null}if(d===f)return sn;var n=t?--f:d++;l=u(c&&c[n],a-r,s+(n<>>n&i,d=e&&c0){var f=e&&e.array[c],p=dn(f,t,n-r,o,a,u);return p===f?e:((l=fn(e,t)).array[c]=p,l)}return d&&e.array[c]===a?e:(u&&s(u),l=fn(e,t),void 0===a&&c===l.array.length-1?l.array.pop():l.array[c]=a,l)}function fn(e,t){return t&&e&&t===e.ownerID?e:new on(e?e.array.slice():[],t)}function pn(e,t){if(t>=_n(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>o&i],o-=r;return n}}function hn(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var o=e.__ownerID||new u,a=e._origin,s=e._capacity,l=a+t,c=void 0===n?s:n<0?s+n:a+n;if(l===a&&c===s)return e;if(l>=c)return e.clear();for(var d=e._level,f=e._root,p=0;l+p<0;)f=new on(f&&f.array.length?[void 0,f]:[],o),p+=1<<(d+=r);p&&(l+=p,a+=p,c+=p,s+=p);for(var h=_n(s),_=_n(c);_>=1<h?new on([],o):m;if(m&&_>h&&lr;g-=r){var v=h>>>g&i;b=b.array[v]=fn(b.array[v],o)}b.array[h>>>r&i]=m}if(c=_)l-=_,c-=_,d=r,f=null,y=y&&y.removeBefore(o,0,l);else if(l>a||_>>d&i;if(w!==_>>>d&i)break;w&&(p+=(1<a&&(f=f.removeBefore(o,d,l-p)),f&&_>>r<=o&&u.size>=2*s.size?(r=(i=u.filter(function(e,t){return void 0!==e&&l!==t})).toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=s.remove(t),i=l===u.size-1?u.pop():u.set(l,void 0))}else if(c){if(n===u.get(l)[1])return e;r=s,i=u.set(l,[t,n])}else r=s.set(t,u.size),i=u.set(u.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):bn(r,i)}yn.isOrderedMap=ce,yn.prototype[I]=!0,yn.prototype.delete=yn.prototype.remove;var wn="@@__IMMUTABLE_STACK__@@";function kn(e){return Boolean(e&&e[wn])}var Tn=function(e){function t(e){return null===e||void 0===e?Sn():kn(e)?e:Sn().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=c(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):On(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&kn(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):On(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):Sn()},t.prototype.slice=function(t,n){if(f(t,n,this.size))return this;var r=p(t,this.size);if(h(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):On(o,i)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?On(this.size,this._head,e,this.__hash):0===this.size?Sn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new ee(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++,this);)o=o.next;return r},t.prototype.__iterator=function(e,t){if(t)return new ee(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new V(function(){if(r){var t=r.value;return r=r.next,U(e,n++,t)}return{value:void 0,done:!0}})},t}(O);Tn.isStack=kn;var xn,Mn=Tn.prototype;function On(e,t,n,r){var o=Object.create(Mn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Sn(){return xn||(xn=On(0))}Mn[wn]=!0,Mn.shift=Mn.pop,Mn.unshift=Mn.push,Mn.unshiftAll=Mn.pushAll,Mn.withMutations=Et,Mn.wasAltered=Dt,Mn.asImmutable=Pt,Mn["@@transducer/init"]=Mn.asMutable=Lt,Mn["@@transducer/step"]=function(e,t){return e.unshift(t)},Mn["@@transducer/result"]=function(e){return e.asImmutable()};var En="@@__IMMUTABLE_SET__@@";function Ln(e){return Boolean(e&&e[En])}function Pn(e){return Ln(e)&&j(e)}function Dn(e,t){if(e===t)return!0;if(!b(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||v(e)!==v(t)||k(e)!==k(t)||j(e)!==j(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!T(e);if(j(e)){var r=e.entries();return t.every(function(e,t){var o=r.next().value;return o&&fe(o[1],e)&&(n||fe(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,u=t.__iterate(function(t,r){if(n?!e.has(t):o?!fe(t,e.get(r,a)):!fe(e.get(r,a),t))return s=!1,!1});return s&&e.size===u}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 In(e){if(!e||"object"!=typeof e)return e;if(!b(e)){if(!et(e))return e;e=K(e)}if(v(e)){var t={};return e.__iterate(function(e,n){t[n]=In(e)}),t}var n=[];return e.__iterate(function(e){n.push(In(e))}),n}var jn=function(e){function t(t){return null===t||void 0===t?Wn():Ln(t)&&!j(t)?t:Wn().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(M(e).keySeq())},t.intersect=function(e){return(e=x(e).toArray()).length?Rn.intersect.apply(t(e.pop()),e):Wn()},t.union=function(e){return(e=x(e).toArray()).length?Rn.union.apply(t(e.pop()),e):Wn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Hn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Hn(this,this._map.remove(e))},t.prototype.clear=function(){return Hn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],o=[];return this.forEach(function(i){var a=e.call(t,i,i,n);a!==i&&(r.push(i),o.push(a))}),this.withMutations(function(e){r.forEach(function(t){return e.remove(t)}),o.forEach(function(t){return e.add(t)})})},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=pe(t<<13|t>>>-13,5),t=pe((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=he((t=pe(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+nr(me(e),me(t))|0}:function(e,t){r=r+nr(me(e),me(t))|0}:t?function(e){r=31*r+me(e)|0}:function(e){r=r+me(e)|0}),r)}(this))}});var zn=x.prototype;zn[y]=!0,zn[Y]=zn.values,zn.toJSON=zn.toArray,zn.__toStringMapper=tt,zn.inspect=zn.toSource=function(){return this.toString()},zn.chain=zn.flatMap,zn.contains=zn.includes,Cn(M,{flip:function(){return Ge(this,Ce(this))},mapEntries:function(e,t){var n=this,r=0;return Ge(this,this.toSeq().map(function(o,i){return e.call(t,[i,o],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ge(this,this.toSeq().flip().map(function(r,o){return e.call(t,r,o,n)}).flip())}});var Xn=M.prototype;Xn[g]=!0,Xn[Y]=zn.entries,Xn.toJSON=qn,Xn.__toStringMapper=function(e,t){return tt(t)+": "+tt(e)},Cn(O,{toKeyedSeq:function(){return new Ee(this,!1)},filter:function(e,t){return Ge(this,Ae(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 Ge(this,je(this,!1))},slice:function(e,t){return Ge(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=p(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ge(this,1===n?r:r.concat(Be(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return Ge(this,Ne(this,e,!1))},get:function(e,t){return(e=c(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=c(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function nr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Fn[w]=!0,Fn[I]=!0,Cn(S,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),S.prototype.has=zn.includes,S.prototype.contains=S.prototype.includes,Cn(Z,M.prototype),Cn($,O.prototype),Cn(Q,S.prototype);var rr=function(e){function t(e){return null===e||void 0===e?sr():Pn(e)?e:sr().withMutations(function(t){var n=S(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(M(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(jn);rr.isOrderedSet=Pn;var or,ir=rr.prototype;function ar(e,t){var n=Object.create(ir);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function sr(){return or||(or=ar(gn()))}ir[I]=!0,ir.zip=Fn.zip,ir.zipWith=Fn.zipWith,ir.__empty=sr,ir.__make=ar;var ur=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),u=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var l=0;l2?[]:void 0,{"":e})}function yr(e,t){return v(t)?t.toMap():t.toList()}var br="4.0.0-rc.11",gr={version:br,Collection:x,Iterable:x,Seq:K,Map:Ct,OrderedMap:yn,List:nn,Stack:Tn,Set:jn,OrderedSet:rr,Record:ur,Range:Vn,Repeat:_r,is:fe,fromJS:mr,hash:me,isImmutable:C,isCollection:b,isKeyed:v,isIndexed:k,isAssociative:T,isOrdered:j,isValueObject:de,isSeq:L,isList:tn,isMap:le,isOrderedMap:ce,isStack:kn,isSet:Ln,isOrderedSet:Pn,isRecord:D,get:rt,getIn:Un,has:nt,hasIn:Jn,merge:bt,mergeDeep:vt,mergeWith:gt,mergeDeepWith:wt,remove:it,removeIn:ct,set:at,setIn:ut,update:ft,updateIn:st},vr=x;t.default=gr},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"initLayout",{enumerable:!0,get:function(){return r.initLayout}}),Object.defineProperty(t,"getAttributesInstance",{enumerable:!0,get:function(){return r.getAttributesInstance}}),Object.defineProperty(t,"topActionsRequest",{enumerable:!0,get:function(){return r.topActionsRequest}}),Object.defineProperty(t,"getViewLayout",{enumerable:!0,get:function(){return o.getViewLayout}}),Object.defineProperty(t,"getViewRowsByIds",{enumerable:!0,get:function(){return o.getViewRowsByIds}}),Object.defineProperty(t,"browseViewRequest",{enumerable:!0,get:function(){return o.browseViewRequest}}),Object.defineProperty(t,"deleteView",{enumerable:!0,get:function(){return o.deleteView}}),Object.defineProperty(t,"createViewRequest",{enumerable:!0,get:function(){return o.createViewRequest}}),Object.defineProperty(t,"filterViewRequest",{enumerable:!0,get:function(){return o.filterViewRequest}}),Object.defineProperty(t,"deleteStaticFilter",{enumerable:!0,get:function(){return o.deleteStaticFilter}}),Object.defineProperty(t,"quickActionsRequest",{enumerable:!0,get:function(){return o.quickActionsRequest}}),Object.defineProperty(t,"loginRequest",{enumerable:!0,get:function(){return i.loginRequest}}),Object.defineProperty(t,"localLoginRequest",{enumerable:!0,get:function(){return i.localLoginRequest}}),Object.defineProperty(t,"loginCompletionRequest",{enumerable:!0,get:function(){return i.loginCompletionRequest}}),Object.defineProperty(t,"logoutRequest",{enumerable:!0,get:function(){return i.logoutRequest}}),Object.defineProperty(t,"resetPasswordRequest",{enumerable:!0,get:function(){return i.resetPasswordRequest}}),Object.defineProperty(t,"getResetPasswordInfo",{enumerable:!0,get:function(){return i.getResetPasswordInfo}}),Object.defineProperty(t,"resetPasswordComplete",{enumerable:!0,get:function(){return i.resetPasswordComplete}}),Object.defineProperty(t,"resetPasswordGetAvatar",{enumerable:!0,get:function(){return i.resetPasswordGetAvatar}}),Object.defineProperty(t,"getAvatar",{enumerable:!0,get:function(){return i.getAvatar}}),Object.defineProperty(t,"getUserSession",{enumerable:!0,get:function(){return i.getUserSession}}),Object.defineProperty(t,"getUserLang",{enumerable:!0,get:function(){return i.getUserLang}}),Object.defineProperty(t,"setUserLang",{enumerable:!0,get:function(){return i.setUserLang}}),Object.defineProperty(t,"getAvailableLang",{enumerable:!0,get:function(){return i.getAvailableLang}});var r=n(1148),o=n(1147),i=n(1144)},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.TIME_FIELD_TYPES=t.DATE_FIELD_FORMATS=t.DATE_FIELD_TYPES=t.SPECIAL_FIELD_TYPES=t.AMOUNT_FIELD_FORMATS_BY_PRECISION=t.AMOUNT_FIELD_TYPES=t.INITIALLY_OPEN=t.INITIALLY_CLOSED=t.DATE_FIELDS=t.VIEW_EDITOR_RENDER_MODES_ALWAYS=t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND=t.VIEW_EDITOR_RENDER_MODES_NEVER=t.LOCAL_LANG=t.DATE_FORMAT=void 0,function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}();t.DATE_FORMAT="YYYY-MM-DDTHH:mm:ss.SSSZ";t.LOCAL_LANG="metasfreshLanguage";t.VIEW_EDITOR_RENDER_MODES_NEVER="never";t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND="on-demand";t.VIEW_EDITOR_RENDER_MODES_ALWAYS="always";var r=["Date","DateTime","Time"];t.DATE_FIELDS=r;t.INITIALLY_CLOSED="INITIALLY_CLOSED";t.INITIALLY_OPEN="INITIALLY_OPEN";var o=["Amount","CostPrice","Quantity"];t.AMOUNT_FIELD_TYPES=o;var i=["0,0.[00000]","0,0.0[0000]","0,0.00[000]","0,0.000[00]","0,0.0000[0]","0,0.00000"];t.AMOUNT_FIELD_FORMATS_BY_PRECISION=i;var a=["Color"];t.SPECIAL_FIELD_TYPES=a;var s=["Date","DateTime","Time"];t.DATE_FIELD_TYPES=s;var u={Date:"l",DateTime:"l LTS",Time:"LT"};t.DATE_FIELD_FORMATS=u;var l=["Time"];t.TIME_FIELD_TYPES=l,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register("YYYY-MM-DDTHH:mm:ss.SSSZ","DATE_FORMAT","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("metasfreshLanguage","LOCAL_LANG","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("never","VIEW_EDITOR_RENDER_MODES_NEVER","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("on-demand","VIEW_EDITOR_RENDER_MODES_ON_DEMAND","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("always","VIEW_EDITOR_RENDER_MODES_ALWAYS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(r,"DATE_FIELDS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("INITIALLY_CLOSED","INITIALLY_CLOSED","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register("INITIALLY_OPEN","INITIALLY_OPEN","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(o,"AMOUNT_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(i,"AMOUNT_FIELD_FORMATS_BY_PRECISION","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(a,"SPECIAL_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(s,"DATE_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(u,"DATE_FIELD_FORMATS","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"),e.register(l,"TIME_FIELD_TYPES","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/constants/Constants.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){e.exports=n(1211)},function(e,t,n){var r=n(6),o=n(16),i=n(70),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(17),o=n(49),i=n(50),a=n(100)("src"),s=n(1399),u=(""+s).split("toString");n(26).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(l&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.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){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){void 0===t&&(t=void 0);var n=e.call(this,t)||this;return n.message=t,n}return r(t,e),t}(n(877).CustomError);t.default=o},function(e,t,n){"use strict";var r=n(514);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";var r=n(655),o=n(1210),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function s(e){return null!==e&&"object"==typeof e}function u(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n0){var n=new r.default[t.length+e.length];o.default.arraycopy(t,0,n,0,t.length),o.default.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},e.prototype.getTimestamp=function(){return this.timestamp},e.prototype.toString=function(){return this.text},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(104),o=n(51),i=n(205),a=n(75),s=n(22),u=function(){function e(e,t,n,r){if(this.width=e,this.height=t,this.rowSize=n,this.bits=r,void 0!==t&&null!==t||(t=e),this.height=t,e<1||t<1)throw new s.default("Both dimensions must be greater than 0");void 0!==n&&null!==n||(n=Math.floor((e+31)/32)),this.rowSize=n,void 0!==r&&null!==r||(this.bits=new Int32Array(this.rowSize*this.height))}return e.parseFromBooleanArray=function(t){for(var n=t.length,r=t[0].length,o=new e(r,n),i=0;ia){if(-1===u)u=i-a;else if(i-a!==u)throw new s.default("row lengths do not match");a=i,l++}c++}else if(t.substring(c,c+n.length)===n)c+=n.length,o[i]=!0,i++;else{if(t.substring(c,c+r.length)!==r)throw new s.default("illegal character encountered: "+t.substring(c));c+=r.length,o[i]=!1,i++}if(i>a){if(-1===u)u=i-a;else if(i-a!==u)throw new s.default("row lengths do not match");l++}for(var d=new e(u,l),f=0;f>>(31&e)&1)},e.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(31&e)&4294967295},e.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(31&e)&4294967295)},e.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(31&e)&4294967295},e.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new s.default("input matrix dimensions do not match");for(var t=new r.default(Math.floor(this.width/32)+1),n=this.rowSize,o=this.bits,i=0,a=this.height;ithis.height||o>this.width)throw new s.default("The region must fit inside the matrix");for(var a=this.rowSize,u=this.bits,l=t;ls&&(s=u),32*la){for(d=31;c>>>d==0;)d--;32*l+d>a&&(a=32*l+d)}}}return a=0&&0===t[n];)n--;if(n<0)return null;for(var r=Math.floor(n/e),o=32*Math.floor(n%e),i=t[n],a=31;i>>>a==0;)a--;return o+=a,Int32Array.from([o,r])},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRowSize=function(){return this.rowSize},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.width===n.width&&this.height===n.height&&this.rowSize===n.rowSize&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){var e=this.width;return e=31*(e=31*(e=31*(e=31*e+this.width)+this.height)+this.rowSize)+i.default.hashCode(this.bits)},e.prototype.toString=function(e,t,n){return void 0===e&&(e="x"),void 0===t&&(t=" "),void 0===n&&(n="\n"),this.buildToString(e,t,n)},e.prototype.buildToString=function(e,t,n){var r=new a.default;r.append(n);for(var o=0,i=this.height;o @@ -17,12 +17,12 @@ * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",l="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",f=1,p=2,h=4,_=1,m=2,y=1,b=2,g=4,v=8,w=16,k=32,T=64,x=128,M=256,O=512,S=30,E="...",L=800,P=16,D=1,C=2,I=1/0,j=9007199254740991,A=1.7976931348623157e308,R=NaN,H=4294967295,N=H-1,W=H>>>1,Y=[["ary",x],["bind",y],["bindKey",b],["curry",v],["curryRight",w],["flip",O],["partial",k],["partialRight",T],["rearg",M]],V="[object Arguments]",U="[object Array]",G="[object AsyncFunction]",J="[object Boolean]",q="[object Date]",z="[object DOMException]",F="[object Error]",X="[object Function]",B="[object GeneratorFunction]",K="[object Map]",Z="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",de="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",_e="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",ge=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,xe=RegExp(ke.source),Me=RegExp(Te.source),Oe=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ce.source),je=/^\s+|\s+$/g,Ae=/^\s+/,Re=/\s+$/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,Fe=/^0o[0-7]+$/i,Xe=/^(?:0|[1-9]\d*)$/,Be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ke=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",nt="["+$e+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+it+"|"+at+")",pt="(?:"+dt+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",_t="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ut,lt,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,lt,ct].join("|")+")"+_t,yt="(?:"+[ut+nt+"?",nt,lt,ct,et].join("|")+")",bt=RegExp("['’]","g"),gt=RegExp(nt,"g"),vt=RegExp(st+"(?="+st+")|"+yt+_t,"g"),wt=RegExp([dt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,dt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,dt+ft,"$"].join("|")+")",dt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),kt=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),Tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,Ot={};Ot[ce]=Ot[de]=Ot[fe]=Ot[pe]=Ot[he]=Ot[_e]=Ot[me]=Ot[ye]=Ot[be]=!0,Ot[V]=Ot[U]=Ot[ue]=Ot[J]=Ot[le]=Ot[q]=Ot[F]=Ot[X]=Ot[K]=Ot[Z]=Ot[Q]=Ot[te]=Ot[ne]=Ot[re]=Ot[ae]=!1;var St={};St[V]=St[U]=St[ue]=St[le]=St[J]=St[q]=St[ce]=St[de]=St[fe]=St[pe]=St[he]=St[K]=St[Z]=St[Q]=St[te]=St[ne]=St[re]=St[oe]=St[_e]=St[me]=St[ye]=St[be]=!0,St[F]=St[X]=St[ae]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lt=parseFloat,Pt=parseInt,Dt="object"==typeof e&&e&&e.Object===Object&&e,Ct="object"==typeof self&&self&&self.Object===Object&&self,It=Dt||Ct||Function("return this")(),jt="object"==typeof t&&t&&!t.nodeType&&t,At=jt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=At&&At.exports===jt,Ht=Rt&&Dt.process,Nt=function(){try{var e=At&&At.require&&At.require("util").types;return e||Ht&&Ht.binding&&Ht.binding("util")}catch(e){}}(),Wt=Nt&&Nt.isArrayBuffer,Yt=Nt&&Nt.isDate,Vt=Nt&&Nt.isMap,Ut=Nt&&Nt.isRegExp,Gt=Nt&&Nt.isSet,Jt=Nt&&Nt.isTypedArray;function qt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function zt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function $t(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var kn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Tn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function xn(e){return"\\"+Et[e]}function Mn(e){return kt.test(e)}function On(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Sn(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var jn=function e(t){var n=(t=null==t?It:jn.defaults(It.Object(),t,jn.pick(It,xt))).Array,r=t.Date,o=t.Error,$e=t.Function,Qe=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=$e.prototype,at=et.prototype,st=t["__core-js_shared__"],ut=it.toString,lt=at.hasOwnProperty,ct=0,dt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=at.toString,pt=ut.call(et),ht=It._,_t=tt("^"+ut.call(lt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Rt?t.Buffer:i,yt=t.Symbol,vt=t.Uint8Array,kt=mt?mt.allocUnsafe:i,Et=Sn(et.getPrototypeOf,et),Dt=et.create,Ct=at.propertyIsEnumerable,jt=ot.splice,At=yt?yt.isConcatSpreadable:i,Ht=yt?yt.iterator:i,Nt=yt?yt.toStringTag:i,on=function(){try{var e=Ni(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=t.clearTimeout!==It.clearTimeout&&t.clearTimeout,An=r&&r.now!==It.Date.now&&r.now,Rn=t.setTimeout!==It.setTimeout&&t.setTimeout,Hn=Qe.ceil,Nn=Qe.floor,Wn=et.getOwnPropertySymbols,Yn=mt?mt.isBuffer:i,Vn=t.isFinite,Un=ot.join,Gn=Sn(et.keys,et),Jn=Qe.max,qn=Qe.min,zn=r.now,Fn=t.parseInt,Xn=Qe.random,Bn=ot.reverse,Kn=Ni(t,"DataView"),Zn=Ni(t,"Map"),$n=Ni(t,"Promise"),Qn=Ni(t,"Set"),er=Ni(t,"WeakMap"),tr=Ni(et,"create"),nr=er&&new er,rr={},or=ca(Kn),ir=ca(Zn),ar=ca($n),sr=ca(Qn),ur=ca(er),lr=yt?yt.prototype:i,cr=lr?lr.valueOf:i,dr=lr?lr.toString:i;function fr(e){if(Ss(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof _r)return e;if(lt.call(e,"__wrapped__"))return da(e)}return new _r(e)}var pr=function(){function e(){}return function(t){if(!Os(t))return{};if(Dt)return Dt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function _r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jr(e,t,n,r,o,a){var s,u=t&f,l=t&p,c=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Os(e))return e;var d=ms(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ni(e,s)}else{var _=Vi(e),m=_==X||_==B;if(vs(e))return Ko(e,u);if(_==Q||_==V||m&&!o){if(s=l||m?{}:Gi(e),!u)return l?function(e,t){return ri(e,Yi(e),t)}(e,function(e,t){return e&&ri(t,ou(t),e)}(s,e)):function(e,t){return ri(e,Wi(e),t)}(e,Pr(s,e))}else{if(!St[_])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ue:return Zo(e);case J:case q:return new r(+e);case le:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case de:case fe:case pe:case he:case _e:case me:case ye:case be:return $o(e,n);case K:return new r;case Z:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return function(e){return cr?et(cr.call(e)):{}}(e)}}(e,_,u)}}a||(a=new wr);var y=a.get(e);if(y)return y;if(a.set(e,s),Cs(e))return e.forEach(function(r){s.add(jr(r,t,n,r,e,a))}),s;if(Es(e))return e.forEach(function(r,o){s.set(o,jr(r,t,n,o,e,a))}),s;var b=d?i:(c?l?Di:Pi:l?ou:ru)(e);return Ft(b||e,function(r,o){b&&(r=e[o=r]),Sr(s,o,jr(r,t,n,o,e,a))}),s}function Ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(u);return ra(function(){e.apply(i,n)},t)}function Hr(e,t,n,r){var o=-1,i=Zt,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Qt(t,yn(n))),r?(i=$t,s=!1):t.length>=a&&(i=gn,s=!1,t=new vr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=Er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},gr.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Zn||br),string:new yr}},gr.prototype.delete=function(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t},gr.prototype.get=function(e){return Ri(this,e).get(e)},gr.prototype.has=function(e){return Ri(this,e).has(e)},gr.prototype.set=function(e,t){var n=Ri(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},vr.prototype.add=vr.prototype.push=function(e){return this.__data__.set(e,l),this},vr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Gr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Jr=si(),qr=si(!0);function zr(e,t){return e&&Jr(e,t,ru)}function Fr(e,t){return e&&qr(e,t,ru)}function Xr(e,t){return Kt(t,function(t){return Ts(e[t])})}function Br(e,t){for(var n=0,r=(t=zo(t,e)).length;null!=e&&nt}function Qr(e,t){return null!=e&<.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?$t:Zt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,d=[];u--;){var f=e[u];u&&t&&(f=Qt(f,yn(t))),c=qn(f.length,c),l[u]=!r&&(t||a>=120&&f.length>=120)?new vr(u&&f):i}f=e[0];var p=-1,h=l[0];e:for(;++p=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&jt.call(s,u,1),jt.call(e,u,1);return e}function vo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;qi(o)?jt.call(e,o,1):No(e,o)}}return e}function wo(e,t){return e+Nn(Xn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),(t=Nn(t/2))&&(e+=e)}while(t);return n}function To(e,t){return oa(Qi(e,t,Lu),e+"")}function xo(e){return Tr(fu(e))}function Mo(e,t){var n=fu(e);return sa(n,Ir(t,0,n.length))}function Oo(e,t,n,r){if(!Os(e))return e;for(var o=-1,a=(t=zo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!js(a)&&(n?a<=t:a=a){var c=t?null:ki(e);if(c)return Ln(c);s=!1,o=gn,l=new vr}else l=t?[]:u;e:for(;++r=r?e:Po(e,t,n)}var Bo=pn||function(e){return It.clearTimeout(e)};function Ko(e,t){if(t)return e.slice();var n=e.length,r=kt?kt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function $o(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Qo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=js(e),s=t!==i,u=null===t,l=t==t,c=js(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&zi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[s]:s]:i}}function fi(e){return Li(function(t){var n=t.length,r=n,o=_r.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(u);if(o&&!s&&"wrapper"==Ii(a))var s=new _r([],!0)}for(r=s?r:n;++r1&&v.reverse(),f&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var d=-1,f=!0,p=n&m?new vr:i;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(He,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ft(Y,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ne);return t?t[1].split(We):[]}(r),n)))}function aa(e){var t=0,n=0;return function(){var r=zn(),o=P-(r-n);if(n=r,o>0){if(++t>=L)return arguments[0]}else t=0;return e.apply(i,arguments)}}function sa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return Da(e,n="function"==typeof n?(e.pop(),n):i)});function Na(e){var t=fr(e);return t.__chain__=!0,t}function Wa(e,t){return t(e)}var Ya=Li(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&qi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Wa,args:[o],thisArg:i}),new _r(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Va=oi(function(e,t,n){lt.call(e,n)?++e[n]:Dr(e,n,1)});var Ua=di(_a),Ga=di(ma);function Ja(e,t){return(ms(e)?Ft:Nr)(e,Ai(t,3))}function qa(e,t){return(ms(e)?Xt:Wr)(e,Ai(t,3))}var za=oi(function(e,t,n){lt.call(e,n)?e[n].push(t):Dr(e,n,[t])});var Fa=To(function(e,t,r){var o=-1,i="function"==typeof t,a=bs(e)?n(e.length):[];return Nr(e,function(e){a[++o]=i?qt(t,e,r):no(e,t,r)}),a}),Xa=oi(function(e,t,n){Dr(e,n,t)});function Ba(e,t){return(ms(e)?Qt:fo)(e,Ai(t,3))}var Ka=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=To(function(e,t){if(null==e)return[];var n=t.length;return n>1&&zi(e,t[0],t[1])?t=[]:n>2&&zi(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,Gr(t,1),[])}),$a=An||function(){return It.Date.now()};function Qa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,xi(e,x,i,i,i,i,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(u);return e=Ys(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ts=To(function(e,t,n){var r=y;if(n.length){var o=En(n,ji(ts));r|=k}return xi(e,r,t,n,o)}),ns=To(function(e,t,n){var r=y|b;if(n.length){var o=En(n,ji(ns));r|=k}return xi(t,r,e,n,o)});function rs(e,t,n){var r,o,a,s,l,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new rt(u);function _(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||p&&e-d>=a}function y(){var e=$a();if(m(e))return b(e);l=ra(y,function(e){var n=t-(e-c);return p?qn(n,a-(e-d)):n}(e))}function b(e){return l=i,h&&r?_(e):(r=o=i,s)}function g(){var e=$a(),n=m(e);if(r=arguments,o=this,c=e,n){if(l===i)return function(e){return d=e,l=ra(y,t),f?_(e):s}(c);if(p)return l=ra(y,t),_(c)}return l===i&&(l=ra(y,t)),s}return t=Us(t)||0,Os(n)&&(f=!!n.leading,a=(p="maxWait"in n)?Jn(Us(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),g.cancel=function(){l!==i&&Bo(l),d=0,r=c=o=l=i},g.flush=function(){return l===i?s:b($a())},g}var os=To(function(e,t){return Rr(e,1,t)}),is=To(function(e,t,n){return Rr(e,Us(t)||0,n)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(as.Cache||gr),n}function ss(e){if("function"!=typeof e)throw new rt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=gr;var us=Fo(function(e,t){var n=(t=1==t.length&&ms(t[0])?Qt(t[0],yn(Ai())):Qt(Gr(t,1),yn(Ai()))).length;return To(function(r){for(var o=-1,i=qn(r.length,n);++o=t}),_s=ro(function(){return arguments}())?ro:function(e){return Ss(e)&<.call(e,"callee")&&!Ct.call(e,"callee")},ms=n.isArray,ys=Wt?yn(Wt):function(e){return Ss(e)&&Zr(e)==ue};function bs(e){return null!=e&&Ms(e.length)&&!Ts(e)}function gs(e){return Ss(e)&&bs(e)}var vs=Yn||Uu,ws=Yt?yn(Yt):function(e){return Ss(e)&&Zr(e)==q};function ks(e){if(!Ss(e))return!1;var t=Zr(e);return t==F||t==z||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Ts(e){if(!Os(e))return!1;var t=Zr(e);return t==X||t==B||t==G||t==ee}function xs(e){return"number"==typeof e&&e==Ys(e)}function Ms(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Os(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ss(e){return null!=e&&"object"==typeof e}var Es=Vt?yn(Vt):function(e){return Ss(e)&&Vi(e)==K};function Ls(e){return"number"==typeof e||Ss(e)&&Zr(e)==Z}function Ps(e){if(!Ss(e)||Zr(e)!=Q)return!1;var t=Et(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==pt}var Ds=Ut?yn(Ut):function(e){return Ss(e)&&Zr(e)==te};var Cs=Gt?yn(Gt):function(e){return Ss(e)&&Vi(e)==ne};function Is(e){return"string"==typeof e||!ms(e)&&Ss(e)&&Zr(e)==re}function js(e){return"symbol"==typeof e||Ss(e)&&Zr(e)==oe}var As=Jt?yn(Jt):function(e){return Ss(e)&&Ms(e.length)&&!!Ot[Zr(e)]};var Rs=gi(co),Hs=gi(function(e,t){return e<=t});function Ns(e){if(!e)return[];if(bs(e))return Is(e)?Cn(e):ni(e);if(Ht&&e[Ht])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ht]());var t=Vi(e);return(t==K?On:t==ne?Ln:fu)(e)}function Ws(e){return e?(e=Us(e))===I||e===-I?(e<0?-1:1)*A:e==e?e:0:0===e?e:0}function Ys(e){var t=Ws(e),n=t%1;return t==t?n?t-n:t:0}function Vs(e){return e?Ir(Ys(e),0,H):0}function Us(e){if("number"==typeof e)return e;if(js(e))return R;if(Os(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Os(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=qe.test(e);return n||Fe.test(e)?Pt(e.slice(2),n?2:8):Je.test(e)?R:+e}function Gs(e){return ri(e,ou(e))}function Js(e){return null==e?"":Ro(e)}var qs=ii(function(e,t){if(Ki(t)||bs(t))ri(t,ru(t),e);else for(var n in t)lt.call(t,n)&&Sr(e,n,t[n])}),zs=ii(function(e,t){ri(t,ou(t),e)}),Fs=ii(function(e,t,n,r){ri(t,ou(t),e,r)}),Xs=ii(function(e,t,n,r){ri(t,ru(t),e,r)}),Bs=Li(Cr);var Ks=To(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&zi(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Di(e),n),r&&(n=jr(n,f|p|h,Si));for(var o=t.length;o--;)No(n,t[o]);return n});var uu=Li(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return Qs(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Qt(Di(e),function(e){return[e]});return t=Ai(t),bo(e,n,function(e,n){return t(e,n[0])})}var cu=Ti(ru),du=Ti(ou);function fu(e){return null==e?[]:bn(e,ru(e))}var pu=li(function(e,t,n){return t=t.toLowerCase(),e+(n?hu(t):t)});function hu(e){return ku(Js(e).toLowerCase())}function _u(e){return(e=Js(e))&&e.replace(Be,kn).replace(gt,"")}var mu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ui("toLowerCase");var gu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var vu=li(function(e,t,n){return e+(n?" ":"")+ku(t)});var wu=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ku=ui("toUpperCase");function Tu(e,t,n){return e=Js(e),(t=n?i:t)===i?function(e){return Tt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Ye)||[]}(e):e.match(t)||[]}var xu=To(function(e,t){try{return qt(e,i,t)}catch(e){return ks(e)?e:new o(e)}}),Mu=Li(function(e,t){return Ft(t,function(t){t=la(t),Dr(e,t,ts(e[t],e))}),e});function Ou(e){return function(){return e}}var Su=fi(),Eu=fi(!0);function Lu(e){return e}function Pu(e){return so("function"==typeof e?e:jr(e,f))}var Du=To(function(e,t){return function(n){return no(n,e,t)}}),Cu=To(function(e,t){return function(n){return no(e,n,t)}});function Iu(e,t,n){var r=ru(t),o=Xr(t,r);null!=n||Os(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Xr(t,ru(t)));var i=!(Os(n)&&"chain"in n&&!n.chain),a=Ts(e);return Ft(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function ju(){}var Au=mi(Qt),Ru=mi(Bt),Hu=mi(rn);function Nu(e){return Fi(e)?fn(la(e)):function(e){return function(t){return Br(t,e)}}(e)}var Wu=bi(),Yu=bi(!0);function Vu(){return[]}function Uu(){return!1}var Gu=_i(function(e,t){return e+t},0),Ju=wi("ceil"),qu=_i(function(e,t){return e/t},1),zu=wi("floor");var Fu=_i(function(e,t){return e*t},1),Xu=wi("round"),Bu=_i(function(e,t){return e-t},0);return fr.after=function(e,t){if("function"!=typeof t)throw new rt(u);return e=Ys(e),function(){if(--e<1)return t.apply(this,arguments)}},fr.ary=Qa,fr.assign=qs,fr.assignIn=zs,fr.assignInWith=Fs,fr.assignWith=Xs,fr.at=Bs,fr.before=es,fr.bind=ts,fr.bindAll=Mu,fr.bindKey=ns,fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},fr.chain=Na,fr.chunk=function(e,t,r){t=(r?zi(e,t,r):t===i)?1:Jn(Ys(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(Hn(o/t));ao?0:o+n),(r=r===i||r>o?o:Ys(r))<0&&(r+=o),r=n>r?0:Vs(r);n>>0)?(e=Js(e))&&("string"==typeof t||null!=t&&!Ds(t))&&!(t=Ro(t))&&Mn(e)?Xo(Cn(e),0,n):e.split(t,n):[]},fr.spread=function(e,t){if("function"!=typeof e)throw new rt(u);return t=null==t?0:Jn(Ys(t),0),To(function(n){var r=n[t],o=Xo(n,0,t);return r&&en(o,r),qt(e,this,o)})},fr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},fr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:Ys(t))<0?0:t):[]},fr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:Ys(t)))<0?0:t,r):[]},fr.takeRightWhile=function(e,t){return e&&e.length?Yo(e,Ai(t,3),!1,!0):[]},fr.takeWhile=function(e,t){return e&&e.length?Yo(e,Ai(t,3)):[]},fr.tap=function(e,t){return t(e),e},fr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(u);return Os(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rs(e,t,{leading:r,maxWait:t,trailing:o})},fr.thru=Wa,fr.toArray=Ns,fr.toPairs=cu,fr.toPairsIn=du,fr.toPath=function(e){return ms(e)?Qt(e,la):js(e)?[e]:ni(ua(Js(e)))},fr.toPlainObject=Gs,fr.transform=function(e,t,n){var r=ms(e),o=r||vs(e)||As(e);if(t=Ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Os(e)&&Ts(i)?pr(Et(e)):{}}return(o?Ft:zr)(e,function(e,r,o){return t(n,e,r,o)}),n},fr.unary=function(e){return Qa(e,1)},fr.union=Sa,fr.unionBy=Ea,fr.unionWith=La,fr.uniq=function(e){return e&&e.length?Ho(e):[]},fr.uniqBy=function(e,t){return e&&e.length?Ho(e,Ai(t,2)):[]},fr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Ho(e,i,t):[]},fr.unset=function(e,t){return null==e||No(e,t)},fr.unzip=Pa,fr.unzipWith=Da,fr.update=function(e,t,n){return null==e?e:Wo(e,t,qo(n))},fr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Wo(e,t,qo(n),r)},fr.values=fu,fr.valuesIn=function(e){return null==e?[]:bn(e,ou(e))},fr.without=Ca,fr.words=Tu,fr.wrap=function(e,t){return ls(qo(t),e)},fr.xor=Ia,fr.xorBy=ja,fr.xorWith=Aa,fr.zip=Ra,fr.zipObject=function(e,t){return Go(e||[],t||[],Sr)},fr.zipObjectDeep=function(e,t){return Go(e||[],t||[],Oo)},fr.zipWith=Ha,fr.entries=cu,fr.entriesIn=du,fr.extend=zs,fr.extendWith=Fs,Iu(fr,fr),fr.add=Gu,fr.attempt=xu,fr.camelCase=pu,fr.capitalize=hu,fr.ceil=Ju,fr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Us(n))==n?n:0),t!==i&&(t=(t=Us(t))==t?t:0),Ir(Us(e),t,n)},fr.clone=function(e){return jr(e,h)},fr.cloneDeep=function(e){return jr(e,f|h)},fr.cloneDeepWith=function(e,t){return jr(e,f|h,t="function"==typeof t?t:i)},fr.cloneWith=function(e,t){return jr(e,h,t="function"==typeof t?t:i)},fr.conformsTo=function(e,t){return null==t||Ar(e,t,ru(t))},fr.deburr=_u,fr.defaultTo=function(e,t){return null==e||e!=e?t:e},fr.divide=qu,fr.endsWith=function(e,t,n){e=Js(e),t=Ro(t);var r=e.length,o=n=n===i?r:Ir(Ys(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},fr.eq=fs,fr.escape=function(e){return(e=Js(e))&&Me.test(e)?e.replace(Te,Tn):e},fr.escapeRegExp=function(e){return(e=Js(e))&&Ie.test(e)?e.replace(Ce,"\\$&"):e},fr.every=function(e,t,n){var r=ms(e)?Bt:Yr;return n&&zi(e,t,n)&&(t=i),r(e,Ai(t,3))},fr.find=Ua,fr.findIndex=_a,fr.findKey=function(e,t){return an(e,Ai(t,3),zr)},fr.findLast=Ga,fr.findLastIndex=ma,fr.findLastKey=function(e,t){return an(e,Ai(t,3),Fr)},fr.floor=zu,fr.forEach=Ja,fr.forEachRight=qa,fr.forIn=function(e,t){return null==e?e:Jr(e,Ai(t,3),ou)},fr.forInRight=function(e,t){return null==e?e:qr(e,Ai(t,3),ou)},fr.forOwn=function(e,t){return e&&zr(e,Ai(t,3))},fr.forOwnRight=function(e,t){return e&&Fr(e,Ai(t,3))},fr.get=$s,fr.gt=ps,fr.gte=hs,fr.has=function(e,t){return null!=e&&Ui(e,t,Qr)},fr.hasIn=Qs,fr.head=ba,fr.identity=Lu,fr.includes=function(e,t,n,r){e=bs(e)?e:fu(e),n=n&&!r?Ys(n):0;var o=e.length;return n<0&&(n=Jn(o+n,0)),Is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},fr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ys(n);return o<0&&(o=Jn(r+o,0)),un(e,t,o)},fr.inRange=function(e,t,n){return t=Ws(t),n===i?(n=t,t=0):n=Ws(n),function(e,t,n){return e>=qn(t,n)&&e=-j&&e<=j},fr.isSet=Cs,fr.isString=Is,fr.isSymbol=js,fr.isTypedArray=As,fr.isUndefined=function(e){return e===i},fr.isWeakMap=function(e){return Ss(e)&&Vi(e)==ae},fr.isWeakSet=function(e){return Ss(e)&&Zr(e)==se},fr.join=function(e,t){return null==e?"":Un.call(e,t)},fr.kebabCase=mu,fr.last=ka,fr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ys(n))<0?Jn(r+o,0):qn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},fr.lowerCase=yu,fr.lowerFirst=bu,fr.lt=Rs,fr.lte=Hs,fr.max=function(e){return e&&e.length?Vr(e,Lu,$r):i},fr.maxBy=function(e,t){return e&&e.length?Vr(e,Ai(t,2),$r):i},fr.mean=function(e){return dn(e,Lu)},fr.meanBy=function(e,t){return dn(e,Ai(t,2))},fr.min=function(e){return e&&e.length?Vr(e,Lu,co):i},fr.minBy=function(e,t){return e&&e.length?Vr(e,Ai(t,2),co):i},fr.stubArray=Vu,fr.stubFalse=Uu,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=Fu,fr.nth=function(e,t){return e&&e.length?mo(e,Ys(t)):i},fr.noConflict=function(){return It._===this&&(It._=ht),this},fr.noop=ju,fr.now=$a,fr.pad=function(e,t,n){e=Js(e);var r=(t=Ys(t))?Dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yi(Nn(o),n)+e+yi(Hn(o),n)},fr.padEnd=function(e,t,n){e=Js(e);var r=(t=Ys(t))?Dn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Xn();return qn(e+o*(t-e+Lt("1e-"+((o+"").length-1))),t)}return wo(e,t)},fr.reduce=function(e,t,n){var r=ms(e)?tn:hn,o=arguments.length<3;return r(e,Ai(t,4),n,o,Nr)},fr.reduceRight=function(e,t,n){var r=ms(e)?nn:hn,o=arguments.length<3;return r(e,Ai(t,4),n,o,Wr)},fr.repeat=function(e,t,n){return t=(n?zi(e,t,n):t===i)?1:Ys(t),ko(Js(e),t)},fr.replace=function(){var e=arguments,t=Js(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fr.result=function(e,t,n){var r=-1,o=(t=zo(t,e)).length;for(o||(o=1,e=i);++rj)return[];var n=H,r=qn(e,H);t=Ai(t),e-=H;for(var o=mn(r,t);++n=a)return e;var u=n-Dn(r);if(u<1)return r;var l=s?Xo(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),Ds(o)){if(e.slice(u).search(o)){var c,d=l;for(o.global||(o=tt(o.source,Js(Ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;l=l.slice(0,f===i?u:f)}}else if(e.indexOf(Ro(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},fr.unescape=function(e){return(e=Js(e))&&xe.test(e)?e.replace(ke,In):e},fr.uniqueId=function(e){var t=++ct;return Js(e)+t},fr.upperCase=wu,fr.upperFirst=ku,fr.each=Ja,fr.eachRight=qa,fr.first=ba,Iu(fr,function(){var e={};return zr(fr,function(t,n){lt.call(fr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),fr.VERSION="4.17.11",Ft(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fr[e].placeholder=fr}),Ft(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Jn(Ys(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,H),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Ft(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==D||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Ft(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Ft(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Lu)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=To(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return no(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(ss(Ai(e)))},mr.prototype.slice=function(e,t){e=Ys(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ys(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(H)},zr(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=fr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(fr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof mr,l=s[0],c=u||ms(t),d=function(e){var t=o.apply(fr,en([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,_=u&&!p;if(!a&&c){t=_?t:new mr(this);var m=e.apply(t,s);return m.__actions__.push({func:Wa,args:[d],thisArg:i}),new _r(m,f)}return h&&_?e.apply(this,s):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})}),Ft(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);fr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),zr(mr.prototype,function(e,t){var n=fr[t];if(n){var r=n.name+"";(rr[r]||(rr[r]=[])).push({name:t,func:n})}}),rr[pi(i,b).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},fr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=da(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:Wa,args:[Oa],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Oa)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Vo(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,Ht&&(fr.prototype[Ht]=function(){return this}),fr}();It._=jn,(o=function(){return jn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(12),n(3)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toggleFullScreen=d,t.nullToEmptyStrings=f,t.findRowByPropName=p,t.getItemsByProperty=h,t.cleanupFilter=m,t.arePropTypesIdentical=t.getQueryString=void 0;var r=a(n(4)),o=n(41),i=a(n(1147));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}();var l=function(e){return i.default.stringify(Object.keys(e).reduce(function(t,n){var r=e[n];return Array.isArray(r)&&r.length>0?t[n]=r.join(","):r&&(t[n]=r),t},{}))};t.getQueryString=l;var c=function(e,t){for(var n=0,r=Object.keys(e);nw;w++)if((f||w in b)&&(m=g(_=b[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:k.push(_)}else if(c)return!1;return d?-1:l||c?c:k}}},function(e,t,n){var r=n(6),o=n(26),i=n(16);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,n){var r=n(139),o=n(101),i=n(48),a=n(81),s=n(50),u=n(688),l=Object.getOwnPropertyDescriptor;t.f=n(30)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},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("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(63);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";e.exports=function(){}},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(1216)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(104),o=n(36),i=n(84),a=n(33),s=n(18),u=function(){function e(){}return e.prototype.decode=function(e,t){try{return this.doDecode(e,t)}catch(p){if(t&&!0===t.get(o.default.TRY_HARDER)&&e.isRotateSupported()){var n=e.rotateCounterClockwise(),r=this.doDecode(n,t),u=r.getResultMetadata(),l=270;null!==u&&!0===u.get(i.default.ORIENTATION)&&(l+=u.get(i.default.ORIENTATION)%360),r.putMetadata(i.default.ORIENTATION,l);var c=r.getResultPoints();if(null!==c)for(var d=n.getHeight(),f=0;f>(d?8:5));n=d?l:15;for(var p=Math.trunc(l/2),h=0;h=l)break;try{c=e.getBlackRow(m,c)}catch(e){continue}for(var y=function(e){if(1===e&&(c.reverse(),t&&!0===t.get(o.default.NEED_RESULT_POINT_CALLBACK))){var n=new Map;t.forEach(function(e,t){return n.set(t,e)}),n.delete(o.default.NEED_RESULT_POINT_CALLBACK),t=n}try{var r=b.decodeRow(m,c,t);if(1===e){r.putMetadata(i.default.ORIENTATION,180);var s=r.getResultPoints();null!==s&&(s[0]=new a.default(u-s[0].getX()-1,s[0].getY()),s[1]=new a.default(u-s[1].getX()-1,s[1].getY()))}return{value:r}}catch(e){}},b=this,g=0;g<2;g++){var v=y(g);if("object"==typeof v)return v.value}}throw new s.default},e.recordPattern=function(e,t,n){for(var r=n.length,o=0;o=i)throw new s.default;for(var a=!e.get(t),u=0,l=t;l0&&o>=0;)t.get(--n)!==i&&(o--,i=!i);if(o>=0)throw new s.default;e.recordPattern(t,n+1,r)},e.patternMatchVariance=function(e,t,n){for(var r=e.length,o=0,i=0,a=0;ad?c-d:d-c;if(f>n)return Number.POSITIVE_INFINITY;u+=f}return u/o},e}();t.default=u},function(e,t,n){(function(e,r){var o;/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var i=n(1134),a={function:!0,object:!0},s=a[typeof t]&&t&&!t.nodeType&&t,u=a[typeof window]&&window||this,l=s&&a[typeof e]&&e&&!e.nodeType&&"object"==typeof r&&r;function c(e,t){e||(e=u.Object()),t||(t=u.Object());var n=e.Number||u.Number,r=e.String||u.String,o=e.Object||u.Object,i=e.Date||u.Date,s=e.SyntaxError||u.SyntaxError,l=e.TypeError||u.TypeError,d=e.Math||u.Math,f=e.JSON||u.JSON;"object"==typeof f&&f&&(t.stringify=f.stringify,t.parse=f.parse);var p,h=o.prototype,_=h.toString,m=h.hasOwnProperty;function y(e,t){try{e()}catch(e){t&&t()}}var b=new i(-0xc782b5b800cec);function g(e){if(null!=g[e])return g[e];var o;if("bug-string-char-index"==e)o="a"!="a"[0];else if("json"==e)o=g("json-stringify")&&g("date-serialization")&&g("json-parse");else if("date-serialization"==e){if(o=g("json-stringify")&&b){var a=t.stringify;y(function(){o='"-271821-04-20T00:00:00.000Z"'==a(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==a(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==a(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==a(new i(-1))})}}else{var s,u='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var l="function"==typeof(a=t.stringify);l&&((s=function(){return 1}).toJSON=s,y(function(){l="0"===a(0)&&"0"===a(new n)&&'""'==a(new r)&&a(_)===p&&a(p)===p&&a()===p&&"1"===a(s)&&"[1]"==a([s])&&"[null]"==a([p])&&"null"==a(null)&&"[null,null,null]"==a([p,_,null])&&a({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==u&&"1"===a(null,s)&&"[\n 1,\n 2\n]"==a([1,2],null,1)},function(){l=!1})),o=l}if("json-parse"==e){var c,d=t.parse;"function"==typeof d&&y(function(){0!==d("0")||d(!1)||(s=d(u),(c=5==s.a.length&&1===s.a[0])&&(y(function(){c=!d('"\t"')}),c&&y(function(){c=1!==d("01")}),c&&y(function(){c=1!==d("1.")})))},function(){c=!1}),o=c}}return g[e]=!!o}if(y(function(){b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMilliseconds()}),g["bug-string-char-index"]=g["date-serialization"]=g.json=g["json-stringify"]=g["json-parse"]=null,!g("json")){var v=g("bug-string-char-index"),w=function(e,t){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)m.call(r,o)&&i++;return n=r=null,i?w=function(e,t){var n,r,o="[object Function]"==_.call(e);for(n in e)o&&"prototype"==n||!m.call(e,n)||(r="constructor"===n)||t(n);(r||m.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],w=function(e,t){var n,o,i="[object Function]"==_.call(e),s=!i&&"function"!=typeof e.constructor&&a[typeof e.hasOwnProperty]&&e.hasOwnProperty||m;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)}),w(e,t)};if(!g("json-stringify")&&!g("date-serialization")){var k={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},T=function(e,t){return("000000"+(t||0)).slice(-e)},x=function(e){var t,n,r,o,i,a,s,u,l;if(b)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCHours(),s=e.getUTCMinutes(),u=e.getUTCSeconds(),l=e.getUTCMilliseconds()};else{var c=d.floor,f=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(e,t){return f[t]+365*(e-1970)+c((e-1969+(t=+(t>1)))/4)-c((e-1901+t)/100)+c((e-1601+t)/400)};t=function(e){for(o=c(e/864e5),n=c(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=c((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),a=c((i=(e%864e5+864e5)%864e5)/36e5)%24,s=c(i/6e4)%60,u=c(i/1e3)%60,l=i%1e3}}return(x=function(e){return e>-1/0&&e<1/0?(t(e),e=(n<=0||n>=1e4?(n<0?"-":"+")+T(6,n<0?-n:n):T(4,n))+"-"+T(2,r+1)+"-"+T(2,o)+"T"+T(2,a)+":"+T(2,s)+":"+T(2,u)+"."+T(3,l)+"Z",n=r=o=a=s=u=l=null):e=null,e})(e)};if(g("json-stringify")&&!g("date-serialization")){function M(e){return x(this)}var O=t.stringify;t.stringify=function(e,t,n){var r=i.prototype.toJSON;i.prototype.toJSON=M;var o=O(e,t,n);return i.prototype.toJSON=r,o}}else{var S=function(e){var t=e.charCodeAt(0),n=k[t];return n||"\\u00"+T(2,t.toString(16))},E=/[\x00-\x1f\x22\x5c]/g,L=function(e){return E.lastIndex=0,'"'+(E.test(e)?e.replace(E,S):e)+'"'},P=function(e,t,n,r,o,a,s){var u,c,d,f,h,m,b,g,v;if(y(function(){u=t[e]}),"object"==typeof u&&u&&(u.getUTCFullYear&&"[object Date]"==_.call(u)&&u.toJSON===i.prototype.toJSON?u=x(u):"function"==typeof u.toJSON&&(u=u.toJSON(e))),n&&(u=n.call(t,e,u)),u==p)return u===p?u:"null";switch("object"==(c=typeof u)&&(d=_.call(u)),d||c){case"boolean":case"[object Boolean]":return""+u;case"number":case"[object Number]":return u>-1/0&&u<1/0?""+u:"null";case"string":case"[object String]":return L(""+u)}if("object"==typeof u){for(b=s.length;b--;)if(s[b]===u)throw l();if(s.push(u),f=[],g=a,a+=o,"[object Array]"==d){for(m=0,b=u.length;m0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||A();e+=I("0x"+i.slice(t,D));break;default:A()}else{if(34==o)break;for(o=i.charCodeAt(D),t=D;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++D);e+=i.slice(t,D)}if(34==i.charCodeAt(D))return D++,e;A();default:if(t=D,45==o&&(r=!0,o=i.charCodeAt(++D)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(D+1))>=48&&o<=57)&&A(),r=!1;D=48&&o<=57);D++);if(46==i.charCodeAt(D)){for(n=++D;n57);n++);n==D&&A(),D=n}if(101==(o=i.charCodeAt(D))||69==o){for(43!=(o=i.charCodeAt(++D))&&45!=o||D++,n=D;n57);n++);n==D&&A(),D=n}return+i.slice(t,D)}r&&A();var s=i.slice(D,D+4);if("true"==s)return D+=4,!0;if("fals"==s&&101==i.charCodeAt(D+4))return D+=5,!1;if("null"==s)return D+=4,null;A()}return"$"},H=function(e){var t,n;if("$"==e&&A(),"string"==typeof e){if("@"==(v?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=R());)n?","==e?"]"==(e=R())&&A():A():n=!0,","==e&&A(),t.push(H(e));return t}if("{"==e){for(t={};"}"!=(e=R());)n?","==e?"}"==(e=R())&&A():A():n=!0,","!=e&&"string"==typeof e&&"@"==(v?e.charAt(0):e[0])&&":"==R()||A(),t[e.slice(1)]=H(R());return t}A()}return e},N=function(e,t,n){var r=W(e,t,n);r===p?delete e[t]:e[t]=r},W=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if("[object Array]"==_.call(o))for(r=o.length;r--;)N(_,w,o);else w(o,function(e){N(o,e,n)});return n.call(e,t,o)};t.parse=function(e,t){var n,r;return D=0,C=""+e,n=H(R()),"$"!=R()&&A(),D=C=null,t&&"[object Function]"==_.call(t)?W(((r={})[""]=n,r),"",t):n}}}return t.runInContext=c,t}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),s&&!i)c(u,s);else{var d=u.JSON,f=u.JSON3,p=!1,h=c(u,u.JSON3={noConflict:function(){return p||(p=!0,u.JSON=d,u.JSON3=f,d=f=null),h}});u.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(3)(e),n(12))},function(e,t,n){"use strict";if(n(30)){var r=n(99),o=n(17),i=n(16),a=n(6),s=n(170),u=n(249),l=n(64),c=n(113),d=n(101),f=n(49),p=n(112),h=n(62),_=n(24),m=n(661),y=n(97),b=n(81),g=n(50),v=n(138),w=n(14),k=n(35),T=n(257),x=n(96),M=n(94),O=n(95).f,S=n(255),E=n(100),L=n(21),P=n(59),D=n(180),C=n(137),I=n(253),j=n(115),A=n(177),R=n(114),H=n(254),N=n(670),W=n(29),Y=n(61),V=W.f,U=Y.f,G=o.RangeError,J=o.TypeError,q=o.Uint8Array,z=Array.prototype,F=u.ArrayBuffer,X=u.DataView,B=P(0),K=P(2),Z=P(3),$=P(4),Q=P(5),ee=P(6),te=D(!0),ne=D(!1),re=I.values,oe=I.keys,ie=I.entries,ae=z.lastIndexOf,se=z.reduce,ue=z.reduceRight,le=z.join,ce=z.sort,de=z.slice,fe=z.toString,pe=z.toLocaleString,he=L("iterator"),_e=L("toStringTag"),me=E("typed_constructor"),ye=E("def_constructor"),be=s.CONSTR,ge=s.TYPED,ve=s.VIEW,we=P(1,function(e,t){return Oe(C(e,e[ye]),t)}),ke=i(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),Te=!!q&&!!q.prototype.set&&i(function(){new q(1).set({})}),xe=function(e,t){var n=h(e);if(n<0||n%t)throw G("Wrong offset!");return n},Me=function(e){if(w(e)&&ge in e)return e;throw J(e+" is not a typed array!")},Oe=function(e,t){if(!(w(e)&&me in e))throw J("It is not a typed array constructor!");return new e(t)},Se=function(e,t){return Ee(C(e,e[ye]),t)},Ee=function(e,t){for(var n=0,r=t.length,o=Oe(e,r);r>n;)o[n]=t[n++];return o},Le=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,r,o,i,a,s=k(e),u=arguments.length,c=u>1?arguments[1]:void 0,d=void 0!==c,f=S(s);if(void 0!=f&&!T(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(d&&u>2&&(c=l(c,arguments[2],2)),t=0,n=_(s.length),o=Oe(this,n);n>t;t++)o[t]=d?c(s[t],t):s[t];return o},De=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Ce=!!q&&i(function(){pe.call(new q(1))}),Ie=function(){return pe.apply(Ce?de.call(Me(this)):Me(this),arguments)},je={copyWithin:function(e,t){return N.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 Se(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){B(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 le.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 ue.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=y(e,r);return new(C(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,_((void 0===t?r:y(t,r))-o))}},Ae=function(e,t){return Se(this,de.call(Me(this),e,t))},Re=function(e){Me(this);var t=xe(arguments[1],1),n=this.length,r=k(e),o=_(r.length),i=0;if(o+t>n)throw G("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,ke)}(this,n,e)},enumerable:!0})};g?(h=n(function(e,n,r,o){c(e,h,l,"_d");var i,a,s,u,d=0,p=0;if(w(n)){if(!(n instanceof F||"ArrayBuffer"==(u=v(n))||"SharedArrayBuffer"==u))return ge in n?Ee(h,n):Pe.call(h,n);i=n,p=xe(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw G("Wrong length!");if((a=y-p)<0)throw G("Wrong length!")}else if((a=_(o)*t)+p>y)throw G("Wrong length!");s=a/t}else s=m(n),i=new F(a=s*t);for(f(e,"_d",{b:i,o:p,l:a,e:s,v:new X(i)});dt?1:e>=t?0:NaN},n=function(e){return 1===e.length&&(e=function(e){return function(n,r){return t(e(n),r)}}(e)),{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},u=function(e,t){var n,r,o=e.length,i=0,a=-1,u=0,l=0;if(null==t)for(;++a1)return l/(i-1)},l=function(e,t){var n=u(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>=y?10:i>=b?5:i>=g?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=y?10:i>=b?5:i>=g?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>=y?o*=10:i>=b?o*=5:i>=g&&(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),u=+n(e[i+1],i+1,e);return a+(u-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},S=function(e){if(!(o=e.length))return[];for(var t=-1,n=O(e,E),r=new Array(n);++t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),z.hasOwnProperty(t)?{space:z[t],local:e}:e},X=function(e){var t=F(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===q&&t.documentElement.namespaceURI===q?t.createElement(e):t.createElementNS(n,e)}})(t)},B=0;function K(){return new Z}function Z(){this._="@"+(++B).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 Te(e,t){return e.style.getPropertyValue(t)||ke(e).getComputedStyle(e,null).getPropertyValue(t)}function xe(e){return e.trim().split(/^|\s+/)}function Me(e){return e.classList||new Oe(e)}function Oe(e){this._node=e,this._names=xe(e.getAttribute("class")||"")}function Se(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 Ne(){return new He([[document.documentElement]],Re)}He.prototype=Ne.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=w&&(w=v+1);!(g=m[w])&&++w=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)):Te(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=xe(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 bt(t[1],t[2],t[3],1):(t=st.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ut.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=lt.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ct.exec(e))?gt(t[1],t[2]/100,t[3]/100,1):(t=dt.exec(e))?gt(t[1],t[2]/100,t[3]/100,t[4]):ft.hasOwnProperty(e)?ht(ft[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ht(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function mt(e){return e instanceof Qe||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function yt(e,t,n,r){return 1===arguments.length?mt(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gt(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,u=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&u<1?0:a,new wt(a,s,u,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(bt,yt,$e(Qe,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new bt(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 bt(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 Tt=Math.PI/180,xt=180/Math.PI,Mt=.95047,Ot=1,St=1.08883,Et=4/29,Lt=6/29,Pt=3*Lt*Lt,Dt=Lt*Lt*Lt;function Ct(e){if(e instanceof jt)return new jt(e.l,e.a,e.b,e.opacity);if(e instanceof Yt){var t=e.h*Tt;return new jt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof bt||(e=mt(e));var n=Nt(e.r),r=Nt(e.g),o=Nt(e.b),i=At((.4124564*n+.3575761*r+.1804375*o)/Mt),a=At((.2126729*n+.7151522*r+.072175*o)/Ot),s=At((.0193339*n+.119192*r+.9503041*o)/St);return new jt(116*a-16,500*(i-a),200*(a-s),e.opacity)}function It(e,t,n,r){return 1===arguments.length?Ct(e):new jt(e,t,n,null==r?1:r)}function jt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function At(e){return e>Dt?Math.pow(e,1/3):e/Pt+Et}function Rt(e){return e>Lt?e*e*e:Pt*(e-Et)}function Ht(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yt)return new Yt(e.h,e.c,e.l,e.opacity);e instanceof jt||(e=Ct(e));var t=Math.atan2(e.b,e.a)*xt;return new Yt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Yt(e,t,n,null==r?1:r)}function Yt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Ze(jt,It,$e(Qe,{brighter:function(e){return new jt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new jt(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=St*Rt(n),new bt(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(Yt,Wt,$e(Qe,{brighter:function(e){return new Yt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Yt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ct(this).rgb()}}));var Vt=-.14861,Ut=1.78277,Gt=-.29227,Jt=-.90649,qt=1.97294,zt=qt*Jt,Ft=qt*Ut,Xt=Ut*Gt-Jt*Vt;function Bt(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 bt||(e=mt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Xt*r+zt*t-Ft*n)/(Xt+zt-Ft),i=r-o,a=(qt*(n-o)-Gt*i)/Jt,s=Math.sqrt(a*a+i*i)/(qt*o*(1-o)),u=s?Math.atan2(a,i)*xt-120:NaN;return new Kt(u<0?u+360:u,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,Bt,$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)*Tt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new bt(255*(t+n*(Vt*r+Ut*o)),255*(t+n*(Gt*r+Jt*o)),255*(t+n*(qt*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=yt(e)).r,(t=yt(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,u.push({i:a,x:mn(n,r)})),i=gn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:mn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:mn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,u),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:mn(e,n)},{i:s-2,x:mn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n=0&&t._call.call(null,e),t=t._next;--Gn}function rr(){Xn=(Fn=Kn.now())+Bn,Gn=Jn=0;try{nr()}finally{Gn=0,function(){for(var e,t,n=Wn,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:Wn=t);Yn=e,ir(r)}(),Xn=0}}function or(){var e=Kn.now(),t=e-Fn;t>zn&&(Bn-=t,Fn=e)}function ir(e){if(!Gn){Jn&&(Jn=clearTimeout(Jn));var t=e-Xn;t>24?(e<1/0&&(Jn=setTimeout(rr,t)),qn&&(qn=clearInterval(qn))):(qn||(Fn=Xn,qn=setInterval(or,zn)),Gn=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||Yn===this||(Yn?Yn._next=this:Wn=this,Yn=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=V("start","end","interrupt"),ur=[],lr=0,cr=1,dr=2,fr=3,pr=4,hr=5,_r=6,mr=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(u){var l,c,d,f;if(n.state!==cr)return s();for(l in o)if((f=o[l]).name===n.name){if(f.state===fr)return ar(i);f.state===pr?(f.state=_r,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[l]):+llr)throw new Error("too late");return n}function br(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>dr)throw new Error("too late");return n}function gr(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)?yr:br;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=F(e),r="transform"===n?En: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=F(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+="")?Sn:kr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=Te(this,e),a=(this.style.removeProperty(e),Te(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=Te(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=Te(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=Te(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",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=gr(this.node(),n).tween,i=0,a=o.length;i0&&(r=i-h),T<0?f=p-_:T>0&&(a=s-_),w=fo,R.attr("cursor",bo.selection),W());break;default:return}lo()},!0).on("keyup.brush",function(){switch(e.event.keyCode){case 16:D&&(y=b=D=!1,W());break;case 18:w===ho&&(k<0?c=d:k>0&&(r=i),T<0?f=p:T>0&&(a=s),w=po,W());break;case 32:w===fo&&(e.event.altKey?(k&&(c=d-h*k,r=i+h*k),T&&(f=p-_*T,a=s+_*T),w=ho):(k<0?c=d:k>0&&(r=i),T<0?f=p:T>0&&(a=s),w=po),R.attr("cursor",bo[v]),W());break;default:return}lo()},!0).on("mousemove.brush",N,!0).on("mouseup.brush",Y,!0);Ge(e.event.view)}uo(),vr(g),u.call(g),j.start()}function N(){var e=de(g);!D||y||b||(Math.abs(e[0]-I[0])>Math.abs(e[1]-I[1])?b=!0:y=!0),I=e,m=!0,lo(),W()}function W(){var e;switch(h=I[0]-C[0],_=I[1]-C[1],w){case fo:case co:k&&(h=Math.max(S-r,Math.min(L-c,h)),i=r+h,d=c+h),T&&(_=Math.max(E-a,Math.min(P-f,_)),s=a+_,p=f+_);break;case po:k<0?(h=Math.max(S-r,Math.min(L-r,h)),i=r+h,d=c):k>0&&(h=Math.max(S-c,Math.min(L-c,h)),i=r,d=c+h),T<0?(_=Math.max(E-a,Math.min(P-a,_)),s=a+_,p=f):T>0&&(_=Math.max(E-f,Math.min(P-f,_)),s=a,p=f+_);break;case ho:k&&(i=Math.max(S,Math.min(L,r-h*k)),d=Math.max(S,Math.min(L,c+h*k))),T&&(s=Math.max(E,Math.min(P,a-_*T)),p=Math.max(E,Math.min(P,f+_*T)))}d1e-6)if(Math.abs(c*s-u*l)>1e-6&&o){var f=n-i,p=r-a,h=s*s+u*u,_=f*f+p*p,m=Math.sqrt(h),y=Math.sqrt(d),b=o*Math.tan((Ho-Math.acos((h+d-_)/(2*m*y)))/2),g=b/y,v=b/m;Math.abs(g-1)>1e-6&&(this._+="L"+(e+g*l)+","+(t+g*c)),this._+="A"+o+","+o+",0,0,"+ +(c*f>l*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*u)}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),u=e+a,l=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"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%No+No),d>Wo?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):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._}},Fo.prototype=Xo.prototype={constructor:Fo,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=Xo.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=u)return a;if(o)return o=!1,i;var t,r=l;if(34===e.charCodeAt(r)){for(var s=r;s++=(i=(_+y)/2))?_=i:y=i,(c=n>=(a=(m+b)/2))?m=a:b=a,o=p,!(p=p[d=c<<1|l]))return o[d]=h,e;if(s=+e._x.call(null,p.data),u=+e._y.call(null,p.data),t===s&&n===u)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),(l=t>=(i=(_+y)/2))?_=i:y=i,(c=n>=(a=(m+b)/2))?m=a:b=a}while((d=c<<1|l)==(f=(u>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var yi=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function bi(e){return e[0]}function gi(e){return e[1]}function vi(e,t,n){var r=new wi(null==t?bi:t,null==n?gi: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 Ti=vi.prototype=wi.prototype;function xi(e){return e.x+e.vx}function Mi(e){return e.y+e.vy}function Oi(e){return e.index}function Si(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ei(e){return e.x}function Li(e){return e.y}Ti.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},Ti.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return mi(this.cover(t,n),t,n,e)},Ti.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),u=1/0,l=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,u=o-n,l=this._root;switch(s=(t<(r+i)/2)<<1|e<(n+o)/2){case 0:do{(a=new Array(4))[s]=l,l=a}while(i=r+(u*=2),e>(o=n+u)||t>i);break;case 1:do{(a=new Array(4))[s]=l,l=a}while(i=r+(u*=2),(n=o-u)>e||t>i);break;case 2:do{(a=new Array(4))[s]=l,l=a}while(r=i-(u*=2),e>(o=n+u)||r>t);break;case 3:do{(a=new Array(4))[s]=l,l=a}while(r=i-(u*=2),(n=o-u)>e||r>t)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},Ti.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},Ti.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]]},Ti.find=function(e,t,n){var r,o,i,a,s,u,l,c=this._x0,d=this._y0,f=this._x1,p=this._y1,h=[],_=this._root;for(_&&h.push(new yi(_,c,d,f,p)),null==n?n=1/0:(c=e-n,d=t-n,f=e+n,p=t+n,n*=n);u=h.pop();)if(!(!(_=u.node)||(o=u.x0)>f||(i=u.y0)>p||(a=u.x1)=y)<<1|e>=m)&&(u=h[h.length-1],h[h.length-1]=h[h.length-1-l],h[h.length-1-l]=u)}else{var b=e-+this._x.call(null,_.data),g=t-+this._y.call(null,_.data),v=b*b+g*g;if(v=(s=(h+m)/2))?h=s:m=s,(c=a>=(u=(_+y)/2))?_=u:y=u,t=p,!(p=p[d=c<<1|l]))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)},Ti.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]},ji=function(e){return(e=Ii(Math.abs(e)))?e[1]:NaN},Ai=function(e,t){var n=Ii(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 Ai(100*e,t)},r:Ai,s:function(e,t){var n=Ii(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Pi=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")+Ii(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 Ni(e){return new Wi(e)}function Wi(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],u=!!t[7],l=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(u=!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=u,this.precision=l,this.type=c}Ni.prototype=Wi.prototype,Wi.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 Yi,Vi=function(e){return e},Ui=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Gi=function(e){var t=e.grouping&&e.thousands?function(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}(e.grouping,e.thousands):Vi,n=e.currency,r=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Vi,i=e.percent||"%";function a(e){var a=(e=Ni(e)).fill,s=e.align,u=e.sign,l=e.symbol,c=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.type,_="$"===l?n[0]:"#"===l&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",m="$"===l?n[1]:/[%p]/.test(h)?i:"",y=Ri[h],b=!h||/[defgprs%]/.test(h);function g(e){var n,i,l,g=_,v=m;if("c"===h)v=y(e)+v,e="";else{var w=(e=+e)<0;if(e=y(Math.abs(e),p),w&&0==+e&&(w=!1),g=(w?"("===u?u:"-":"-"===u||"("===u?"":u)+g,v=v+("s"===h?Ui[8+Pi/3]:"")+(w&&"("===u?")":""),b)for(n=-1,i=e.length;++n(l=e.charCodeAt(n))||l>57){v=(46===l?r+e.slice(n+1):e.slice(n))+v,e=e.slice(0,n);break}}f&&!c&&(e=t(e,1/0));var k=g.length+e.length+v.length,T=k>1)+g+e+v+T.slice(k);break;default:e=T+g+e+v}return o(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)),g.toString=function(){return e+""},g}return{format:a,formatPrefix:function(e,t){var n=a(((e=Ni(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ji(t)/3))),o=Math.pow(10,-r),i=Ui[8+r/3];return function(e){return n(o*e)+i}}}};function Ji(t){return Yi=Gi(t),e.format=Yi.format,e.formatPrefix=Yi.formatPrefix,Yi}Ji({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var qi=function(e){return Math.max(0,-ji(Math.abs(e)))},zi=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ji(t)/3)))-ji(Math.abs(e)))},Fi=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ji(t)-ji(e))+1},Xi=function(){return new Bi};function Bi(){this.reset()}Bi.prototype={constructor:Bi,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 Bi;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,ua=Math.cos,la=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},_a=Math.sqrt,ma=Math.tan;function ya(e){return e>1?0:e<-1?Qi:Math.acos(e)}function ba(e){return e>1?ea:e<-1?-ea:Math.asin(e)}function ga(e){return(e=pa(e/2))*e}function va(){}function wa(e,t){e&&Ta.hasOwnProperty(e.type)&&Ta[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=ua(t),a=pa(t),s=Pa*a,u=La*i+s*ua(o),l=s*r*pa(o);Ya.add(sa(l,u)),Ea=e,La=i,Pa=a}function Fa(e){return[sa(e[1],e[0]),ba(e[2])]}function Xa(e){var t=e[0],n=e[1],r=ua(n);return[r*ua(t),r*pa(t),pa(n)]}function Ba(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=_a(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=Xi(),rs={point:os,lineStart:as,lineEnd:ss,polygonStart:function(){rs.point=us,rs.lineStart=ls,rs.lineEnd=cs,ns.reset(),Ua.polygonStart()},polygonEnd:function(){Ua.polygonEnd(),rs.point=os,rs.lineStart=as,rs.lineEnd=ss,Ya<0?(Da=-(Ia=180),Ca=-(ja=90)):ns>$i?ja=90:ns<-$i&&(Ca=-90),ts[0]=Da,ts[1]=Ia}};function os(e,t){es.push(ts=[Da=e,Ia=e]),tja&&(ja=t)}function is(e,t){var n=Xa([e*oa,t*oa]);if(Na){var r=Ka(Na,n),o=[r[1],-r[0],0],i=Ka(o,r);Qa(i),i=Fa(i);var a,s=e-Aa,u=s>0?1:-1,l=i[0]*ra*u,c=ia(s)>180;c^(u*Aaja&&(ja=a):c^(u*Aa<(l=(l+360)%360-180)&&lja&&(ja=t)),c?eds(Da,Ia)&&(Ia=e):ds(e,Ia)>ds(Da,Ia)&&(Da=e):Ia>=Da?(eIa&&(Ia=e)):e>Aa?ds(Da,e)>ds(Da,Ia)&&(Ia=e):ds(e,Ia)>ds(Da,Ia)&&(Da=e)}else es.push(ts=[Da=e,Ia=e]);tja&&(ja=t),Na=n,Aa=e}function as(){rs.point=is}function ss(){ts[0]=Da,ts[1]=Ia,rs.point=os,Na=null}function us(e,t){if(Na){var n=e-Aa;ns.add(ia(n)>180?n+(n>0?360:-360):n)}else Ra=e,Ha=t;Ua.point(e,t),is(e,t)}function ls(){Ua.lineStart()}function cs(){us(Ra,Ha),Ua.lineEnd(),ia(ns)>$i&&(Da=-(Ia=180)),ts[0]=Da,ts[1]=Ia,Na=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 Js(e,t,n){return(e%=na)?t||n?Us(zs(e),Fs(t,n)):zs(e):t||n?Fs(t,n):Gs}function qs(e){return function(t,n){return[(t+=e)>Qi?t-na:t<-Qi?t+na:t,n]}}function zs(e){var t=qs(e);return t.invert=qs(-e),t}function Fs(e,t){var n=ua(e),r=pa(e),o=ua(t),i=pa(t);function a(e,t){var a=ua(t),s=ua(e)*a,u=pa(e)*a,l=pa(t),c=l*n+s*r;return[sa(u*o-c*i,s*n-l*r),ba(c*o+u*i)]}return a.invert=function(e,t){var a=ua(t),s=ua(e)*a,u=pa(e)*a,l=pa(t),c=l*o-u*i;return[sa(u*o+l*i,s*n+c*r),ba(c*n-s*r)]},a}Gs.invert=Gs;var Xs=function(e){function t(t){return(t=e(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t}return e=Js(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 Bs(e,t,n,r,o,i){if(n){var a=ua(t),s=pa(t),u=r*n;null==o?(o=t+r*na,i=t-u/2):(o=Ks(a,o),i=Ks(a,i),(r>0?oi)&&(o+=r*na));for(var l,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],u=e[1],l=t[0],c=t[1],d=0,f=1,p=l-s,h=c-u;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-u,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]=u+d*h),f<1&&(t[0]=s+f*p,t[1]=u+f*h),!0}}}}},Qs=function(e,t){return ia(e[0]-t[0])<$i&&ia(e[1]-t[1])<$i};function eu(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 tu=function(e,t,n,r,o){var i,a,s=[],u=[];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=l[i])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,l=f.z,p=!p}while(!f.v);o.lineEnd()}}};function nu(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==d);else l.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 u(e.x,t.x)}function u(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 u,l,c,d,f,p,h,_,m,y,b,g=a,v=Zs(),w={point:k,lineStart:function(){w.point=T,l&&l.push(c=[]),y=!0,m=!1,h=_=NaN},lineEnd:function(){u&&(T(d,f),p&&m&&v.rejoin(),u.push(v.result())),w.point=k,m&&g.lineEnd()},polygonStart:function(){g=v,u=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=l.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=b&&t,o=(u=M(u)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&tu(u,s,t,i,a),a.polygonEnd()),g=a,u=l=c=null}};function k(e,t){o(e,t)&&g.point(e,t)}function T(i,a){var s=o(i,a);if(l&&c.push([i,a]),y)d=i,f=a,p=s,y=!1,s&&(g.lineStart(),g.point(i,a));else if(s&&m)g.point(i,a);else{var u=[h=Math.max(ou,Math.min(ru,h)),_=Math.max(ou,Math.min(ru,_))],v=[i=Math.max(ou,Math.min(ru,i)),a=Math.max(ou,Math.min(ru,a))];$s(u,v,e,t,n,r)?(m||(g.lineStart(),g.point(u[0],u[1])),g.point(v[0],v[1]),s||g.lineEnd(),b=!1):s&&(g.lineStart(),g.point(i,a),b=!1)}h=i,_=a,m=s}return w}}var au,su,uu,lu=Xi(),cu=function(e,t){var n=t[0],r=t[1],o=[pa(n),-ua(n),0],i=0,a=0;lu.reset();for(var s=0,u=e.length;s=0?1:-1,x=T*k,M=x>Qi,O=h*v;if(lu.add(sa(O*T*pa(x),_*w+O*ua(x))),i+=M?k+T*na:k,M^f>=n^b>=n){var S=Ka(Xa(d),Xa(y));Qa(S);var E=Ka(o,S);Qa(E);var L=(M^k>=0?-1:1)*ba(E[2]);(r>L||r===L&&(S[0]||S[1]))&&(a+=M^k>=0?1:-1)}}return(i<-$i||i<$i&&lu<-$i)^1&a},du=Xi(),fu={sphere:va,point:va,lineStart:function(){fu.point=hu,fu.lineEnd=pu},lineEnd:va,polygonStart:va,polygonEnd:va};function pu(){fu.point=fu.lineEnd=va}function hu(e,t){au=e*=oa,su=pa(t*=oa),uu=ua(t),fu.point=_u}function _u(e,t){e*=oa;var n=pa(t*=oa),r=ua(t),o=ia(e-au),i=ua(o),a=pa(o),s=r*a,u=uu*n-su*r*i,l=su*n+uu*r*i;du.add(sa(_a(s*s+u*u),l)),au=e,su=n,uu=r}var mu=function(e){return du.reset(),Wa(e,fu),+du},yu=[null,null],bu={type:"LineString",coordinates:yu},gu=function(e,t){return yu[0]=e,yu[1]=t,mu(bu)},vu={Feature:function(e,t){return ku(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r$i}).map(u)).concat(m(la(i/p)*p,o,p).filter(function(e){return ia(e%_)>$i}).map(l))}return b.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},b.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(d(a).slice(1),c(n).reverse().slice(1),d(s).reverse().slice(1))]}},b.extent=function(e){return arguments.length?b.extentMajor(e).extentMinor(e):b.extentMinor()},b.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),b.precision(y)):[[r,s],[n,a]]},b.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),b.precision(y)):[[t,i],[e,o]]},b.step=function(e){return arguments.length?b.stepMajor(e).stepMinor(e):b.stepMinor()},b.stepMajor=function(e){return arguments.length?(h=+e[0],_=+e[1],b):[h,_]},b.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],b):[f,p]},b.precision=function(f){return arguments.length?(y=+f,u=Eu(i,o,90),l=Lu(t,e,y),c=Eu(s,a,90),d=Lu(r,n,y),b):y},b.extentMajor([[-180,-90+$i],[180,90-$i]]).extentMinor([[-180,-80-$i],[180,80+$i]])}var Du,Cu,Iu,ju,Au=function(e){return e},Ru=Xi(),Hu=Xi(),Nu={point:va,lineStart:va,lineEnd:va,polygonStart:function(){Nu.lineStart=Wu,Nu.lineEnd=Uu},polygonEnd:function(){Nu.lineStart=Nu.lineEnd=Nu.point=va,Ru.add(ia(Hu)),Hu.reset()},result:function(){var e=Ru/2;return Ru.reset(),e}};function Wu(){Nu.point=Yu}function Yu(e,t){Nu.point=Vu,Du=Iu=e,Cu=ju=t}function Vu(e,t){Hu.add(ju*e-Iu*t),Iu=e,ju=t}function Uu(){Vu(Du,Cu)}var Gu,Ju,qu,zu,Fu=1/0,Xu=Fu,Bu=-Fu,Ku=Bu,Zu={point:function(e,t){eBu&&(Bu=e),tKu&&(Ku=t)},lineStart:va,lineEnd:va,polygonStart:va,polygonEnd:va,result:function(){var e=[[Fu,Xu],[Bu,Ku]];return Bu=Ku=-(Xu=Fu=1/0),e}},$u=0,Qu=0,el=0,tl=0,nl=0,rl=0,ol=0,il=0,al=0,sl={point:ul,lineStart:ll,lineEnd:fl,polygonStart:function(){sl.lineStart=pl,sl.lineEnd=hl},polygonEnd:function(){sl.point=ul,sl.lineStart=ll,sl.lineEnd=fl},result:function(){var e=al?[ol/al,il/al]:rl?[tl/rl,nl/rl]:el?[$u/el,Qu/el]:[NaN,NaN];return $u=Qu=el=tl=nl=rl=ol=il=al=0,e}};function ul(e,t){$u+=e,Qu+=t,++el}function ll(){sl.point=cl}function cl(e,t){sl.point=dl,ul(qu=e,zu=t)}function dl(e,t){var n=e-qu,r=t-zu,o=_a(n*n+r*r);tl+=o*(qu+e)/2,nl+=o*(zu+t)/2,rl+=o,ul(qu=e,zu=t)}function fl(){sl.point=ul}function pl(){sl.point=_l}function hl(){ml(Gu,Ju)}function _l(e,t){sl.point=ml,ul(Gu=qu=e,Ju=zu=t)}function ml(e,t){var n=e-qu,r=t-zu,o=_a(n*n+r*r);tl+=o*(qu+e)/2,nl+=o*(zu+t)/2,rl+=o,ol+=(o=zu*e-qu*t)*(qu+e),il+=o*(zu+t),al+=3*o,ul(qu=e,zu=t)}function yl(e){this._context=e}yl.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 bl,gl,vl,wl,kl,Tl=Xi(),xl={point:va,lineStart:function(){xl.point=Ml},lineEnd:function(){bl&&Ol(gl,vl),xl.point=va},polygonStart:function(){bl=!0},polygonEnd:function(){bl=null},result:function(){var e=+Tl;return Tl.reset(),e}};function Ml(e,t){xl.point=Ol,gl=wl=e,vl=kl=t}function Ol(e,t){wl-=e,kl-=t,Tl.add(_a(wl*wl+kl*kl)),wl=e,kl=t}function Sl(){this._string=[]}function El(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Sl.prototype={_radius:4.5,_circle:El(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=El(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 Ll=function(e,t,n,r){return function(o,i){var a,s,u,l=t(i),c=o.invert(r[0],r[1]),d=Zs(),f=t(d),p=!1,h={point:_,lineStart:y,lineEnd:b,polygonStart:function(){h.point=g,h.lineStart=v,h.lineEnd=w,s=[],a=[]},polygonEnd:function(){h.point=_,h.lineStart=y,h.lineEnd=b,s=M(s);var e=cu(a,c);s.length?(p||(i.polygonStart(),p=!0),tu(s,Dl,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 _(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function m(e,t){var n=o(e,t);l.point(n[0],n[1])}function y(){h.point=m,l.lineStart()}function b(){h.point=_,l.lineEnd()}function g(e,t){u.push([e,t]);var n=o(e,t);f.point(n[0],n[1])}function v(){f.lineStart(),u=[]}function w(){g(u[0][0],u[0][1]),f.lineEnd();var e,t,n,r,o=f.clean(),l=d.result(),c=l.length;if(u.pop(),a.push(u),u=null,c)if(1&o){if(n=l[0],(t=n.length-1)>0){for(p||(i.polygonStart(),p=!0),i.lineStart(),e=0;e1&&2&o&&l.push(l.pop().concat(l.shift())),s.push(l.filter(Pl))}return h}};function Pl(e){return e.length>1}function Dl(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 Cl=Ll(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,u=ia(i-n);ia(u-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&&u>=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=ua(r))*pa(n)-pa(r)*(o=ua(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 ua(e)*ua(t)>n}function a(e,t,r){var o=Xa(e),i=Xa(t),a=[1,0,0],s=Ka(o,i),u=Ba(s,s),l=s[0],c=u-l*l;if(!c)return!r&&e;var d=n*u/c,f=-n*l/c,p=Ka(a,s),h=$a(a,d),_=$a(s,f);Za(h,_);var m=p,y=Ba(h,m),b=Ba(m,m),g=y*y-b*(Ba(h,h)-1);if(!(g<0)){var v=_a(g),w=$a(m,(-y-v)/b);if(Za(w,h),w=Fa(w),!r)return w;var k,T=e[0],x=t[0],M=e[1],O=t[1];x0^w[1]<(ia(w[0]-T)<$i?M:O):M<=w[1]&&w[1]<=O:S>Qi^(T<=w[0]&&w[0]<=x)){var P=$a(m,(-y+v)/b);return Za(P,h),[w,Fa(P)]}}}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 Ll(i,function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(d,f){var p,h=[d,f],_=i(d,f),m=r?_?0:s(d,f):_?s(d+(d<0?Qi:-Qi),f):0;if(!t&&(l=u=_)&&e.lineStart(),_!==u&&(!(p=a(t,h))||Qs(t,p)||Qs(h,p))&&(h[0]+=$i,h[1]+=$i,_=i(h[0],h[1])),_!==u)c=0,_?(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^_){var y;m&n||!(y=a(h,t,!0))||(c=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!_||t&&Qs(t,h)||e.point(h[0],h[1]),t=h,u=_,n=m},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}},function(n,r,o,i){Bs(i,e,t,o,n,r)},r?[0,-e]:[-Qi,e-Qi])};function jl(e){return function(t){var n=new Al;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Al(){}function Rl(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),Wa(n,e.stream(Zu));var a=Zu.result(),s=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),u=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,l=+t[0][1]+(o-s*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*s).translate([u,l])}function Hl(e,t,n){return Rl(e,[[0,0],t],n)}Al.prototype={constructor:Al,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 Nl=16,Wl=ua(30*oa),Yl=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,u,l,c,d,f,p,h,_,m){var y=l-r,b=c-o,g=y*y+b*b;if(g>4*t&&_--){var v=a+f,w=s+p,k=u+h,T=_a(v*v+w*w+k*k),x=ba(k/=T),M=ia(ia(k)-1)<$i||ia(i-d)<$i?(i+d)/2:sa(w,v),O=e(M,x),S=O[0],E=O[1],L=S-r,P=E-o,D=b*L-y*P;(D*D/g>t||ia((y*L+b*P)/g-.5)>.3||a*f+s*p+u*h2?e[2]%360*oa:0,E()):[m*ra,y*ra,b*ra]},M.precision=function(e){return arguments.length?(x=Yl(S,T=e*e),L()):_a(T)},M.fitExtent=function(e,t){return Rl(M,e,t)},M.fitSize=function(e,t){return Hl(M,e,t)},function(){return t=e.apply(this,arguments),M.invert=t.invert&&O,E()}}function Jl(e){var t=0,n=Qi/3,r=Gl(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 ql(e,t){var n=pa(e),r=(n+pa(t))/2;if(ia(r)<$i)return function(e){var t=ua(e);function n(e,n){return[e*t,pa(n)/t]}return n.invert=function(e,n){return[e/t,ba(n*t)]},n}(e);var o=1+n*(2*r-n),i=_a(o)/r;function a(e,t){var n=_a(o-2*r*pa(t))/r;return[n*pa(e*=r),i-n*ua(e)]}return a.invert=function(e,t){var n=i-t;return[sa(e,ia(n))/r*ha(n),ba((o-(e*e+n*n)*r*r)/(2*r))]},a}var zl=function(){return Jl(ql).scale(155.424).center([0,33.6442])},Fl=function(){return zl().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function Xl(e){return function(t,n){var r=ua(t),o=ua(n),i=e(r*o);return[i*o*pa(t),i*pa(n)]}}function Bl(e){return function(t,n){var r=_a(t*t+n*n),o=e(r),i=pa(o),a=ua(o);return[sa(t*i,r*a),ba(r&&n*i/r)]}}var Kl=Xl(function(e){return _a(2/(1+e))});Kl.invert=Bl(function(e){return 2*ba(e/2)});var Zl=Xl(function(e){return(e=ya(e))&&e/pa(e)});function $l(e,t){return[e,da(ma((ea+t)/2))]}function Ql(e){var t,n,r,o=Ul(e),i=o.center,a=o.scale,s=o.translate,u=o.clipExtent,l=null;function c(){var i=Qi*a(),s=o(Xs(o.rotate()).invert([0,0]));return u(null==l?[[s[0]-i,s[1]-i],[s[0]+i,s[1]+i]]:e===$l?[[Math.max(s[0]-i,l),t],[Math.min(s[0]+i,n),r]]:[[l,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?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==l?null:[[l,t],[n,r]]},c()}function ec(e){return ma((ea+e)/2)}function tc(e,t){var n=ua(e),r=e===t?pa(e):da(n/ua(t))/da(ec(t)/ec(e)),o=n*fa(ec(e),r)/r;if(!r)return $l;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*ua(r*e)]}return i.invert=function(e,t){var n=o-t,i=ha(r)*_a(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=ua(e),r=e===t?pa(e):(n-ua(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*ua(i)]}return i.invert=function(e,t){var n=o-t;return[sa(e,ia(n))/r*ha(n),o-ha(r)*_a(e*e+n*n)]},i}function oc(e,t){var n=ua(t),r=ua(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?Au:jl({point:function(o,i){this.stream.point(o*e+n,i*t+r)}})}function ac(e,t){return[ua(t)*pa(e),pa(t)]}function sc(e,t){var n=ua(t),r=1+ua(e)*n;return[n*pa(e)/r,pa(t)/r]}function uc(e,t){return[da(ma((ea+t)/2)),-e]}function lc(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 yc(e),u=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=hc);n=l.pop();)if(u&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)l.push(r=n.children[i]=new yc(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(mc)}function hc(e){return e.children}function _c(e){e.data=e.data.data}function mc(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function yc(e){this.data=e,this.depth=this.height=0,this.parent=null}Zl.invert=Bl(function(e){return e}),$l.invert=function(e,t){return[e,2*aa(ca(t))-ea]},nc.invert=nc,oc.invert=Bl(aa),ac.invert=Bl(ba),sc.invert=Bl(function(e){return 2*aa(e)}),uc.invert=function(e,t){return[-t,2*aa(ca(e))-ea]},yc.prototype=pc.prototype={constructor:yc,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(_c)}};var bc=Array.prototype.slice,gc=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}(bc.call(e))).length,i=[];r0&&n*n>r*r+o*o}function Tc(e,t){for(var n=0;nn*n+r*r}function Lc(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 Pc(e){this._=e,this.next=null,this.previous=null}function Dc(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,u,l,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;Sc(n,t,r=e[2]),t=new Pc(t),n=new Pc(n),r=new Pc(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sf&&(f=s),m=c*c*_,(p=Math.max(f/m,m/d))>h){c-=s;break}h=p}y.push(a={value:c,dice:u1?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,u,l,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 ud(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function ld(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 ud(e)}ud.prototype=pd.prototype={constructor:ud,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),ld(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()},_d=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),md=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),yd=function e(t){function n(){var e=md.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(hd),bd=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,u)}catch(e){return void a.call("error",n,e)}else t=u;a.call("load",n,t)}else a.call("error",n,e)}if("undefined"==typeof XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=u.ontimeout=f:u.onreadystatechange=function(e){u.readyState>3&&f(e)},u.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?l:(l=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 u.open(t,e,!0,l,c),null==r||s.has("accept")||s.set("accept",r+",*/*"),u.setRequestHeader&&s.each(function(e,t){u.setRequestHeader(t,e)}),null!=r&&u.overrideMimeType&&u.overrideMimeType(r),null!=i&&(u.responseType=i),d>0&&(u.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,u),u.send(null==o?null:o),n},abort:function(){return u.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}},Td=kd("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),xd=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}),Sd=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}},Ed=Sd("text/csv",ii),Ld=Sd("text/tab-separated-values",ci),Pd=Array.prototype,Dd=Pd.map,Cd=Pd.slice,Id={name:"implicit"};function jd(e){var t=Xo(),n=[],r=Id;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==Id)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=Xo();for(var r,i,a=-1,s=e.length;++a2?Vd:Yd,r=o=null,c}function c(t){return(r||(r=n(i,a,u?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,Wd,u?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=Dd.call(e,Hd),l()):i.slice()},c.range=function(e){return arguments.length?(a=Cd.call(e),l()):a.slice()},c.rangeRound=function(e){return a=Cd.call(e),s=kn,l()},c.clamp=function(e){return arguments.length?(u=!!e,l()):u},c.interpolate=function(e){return arguments.length?(s=e,l()):s},l()}var Jd=function(t,n,r){var o,i=t[0],a=t[t.length-1],s=k(i,a,null==n?10:n);switch((r=Ni(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=r.precision||isNaN(o=zi(s,u))||(r.precision=o),e.formatPrefix(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Fi(s,Math.max(Math.abs(i),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=qi(s))||(r.precision=o-2*("%"===r.type))}return e.format(r)};function qd(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 Jd(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],u=o[a];return u0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=w(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=w(s,u,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}var zd=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,uf=6048e5,lf=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=lf.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,_f=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}),mf=_f.range;function yf(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)/uf})}var bf=yf(0),gf=yf(1),vf=yf(2),wf=yf(3),kf=yf(4),Tf=yf(5),xf=yf(6),Mf=bf.range,Of=gf.range,Sf=vf.range,Ef=wf.range,Lf=kf.range,Pf=Tf.range,Df=xf.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()}),If=Cf.range,jf=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()});jf.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 Af=jf.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,Nf=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()}),Wf=Nf.range,Yf=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}),Vf=Yf.range;function Uf(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)/uf})}var Gf=Uf(0),Jf=Uf(1),qf=Uf(2),zf=Uf(3),Ff=Uf(4),Xf=Uf(5),Bf=Uf(6),Kf=Gf.range,Zf=Jf.range,$f=qf.range,Qf=zf.range,ep=Ff.range,tp=Xf.range,np=Bf.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 up(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 lp(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,u=e.shortMonths,l=bp(o),c=gp(o),d=bp(i),f=gp(i),p=bp(a),h=gp(a),_=bp(s),m=gp(s),y=bp(u),b=gp(u),g={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:jp,e:jp,H:Ap,I:Rp,j:Hp,L:Np,m:Wp,M:Yp,p:function(e){return o[+(e.getHours()>=12)]},S:Vp,U:Up,w:Gp,W:Jp,x:null,X:null,y:qp,Y:zp,Z:Fp,"%":uh},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Xp,e:Xp,H:Bp,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,"%":uh},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=y.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return x(e,t,n,r)},d:Sp,e:Sp,H:Lp,I:Lp,j:Ep,L:Cp,m:Op,M:Pp,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},S:Dp,U:wp,w:vp,W:kp,x:function(e,t,r){return x(e,n,t,r)},X:function(e,t,n){return x(e,r,t,n)},y:xp,Y:Tp,Z:Mp,"%":Ip};function k(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s=u)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 g.x=k(n,g),g.X=k(r,g),g.c=k(t,g),v.x=k(n,v),v.X=k(r,v),v.c=k(t,v),{format:function(e){var t=k(e+="",g);return t.toString=function(){return e},t},parse:function(e){var t=T(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=T(e,up);return t.toString=function(){return e},t}}}var dp,fp={"-":"",_:" ",0:"0"},pp=/^\s*\d+/,hp=/^%/,_p=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function mp(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 Sp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ep(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 Lp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Pp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Dp(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 Ip(e,t,n){var r=hp.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jp(e,t){return mp(e.getDate(),t,2)}function Ap(e,t){return mp(e.getHours(),t,2)}function Rp(e,t){return mp(e.getHours()%12||12,t,2)}function Hp(e,t){return mp(1+_f.count(jf(e),e),t,3)}function Np(e,t){return mp(e.getMilliseconds(),t,3)}function Wp(e,t){return mp(e.getMonth()+1,t,2)}function Yp(e,t){return mp(e.getMinutes(),t,2)}function Vp(e,t){return mp(e.getSeconds(),t,2)}function Up(e,t){return mp(bf.count(jf(e),e),t,2)}function Gp(e){return e.getDay()}function Jp(e,t){return mp(gf.count(jf(e),e),t,2)}function qp(e,t){return mp(e.getFullYear()%100,t,2)}function zp(e,t){return mp(e.getFullYear()%1e4,t,4)}function Fp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mp(t/60|0,"0",2)+mp(t%60,"0",2)}function Xp(e,t){return mp(e.getUTCDate(),t,2)}function Bp(e,t){return mp(e.getUTCHours(),t,2)}function Kp(e,t){return mp(e.getUTCHours()%12||12,t,2)}function Zp(e,t){return mp(1+Yf.count(ip(e),e),t,3)}function $p(e,t){return mp(e.getUTCMilliseconds(),t,3)}function Qp(e,t){return mp(e.getUTCMonth()+1,t,2)}function eh(e,t){return mp(e.getUTCMinutes(),t,2)}function th(e,t){return mp(e.getUTCSeconds(),t,2)}function nh(e,t){return mp(Gf.count(ip(e),e),t,2)}function rh(e){return e.getUTCDay()}function oh(e,t){return mp(Jf.count(ip(e),e),t,2)}function ih(e,t){return mp(e.getUTCFullYear()%100,t,2)}function ah(e,t){return mp(e.getUTCFullYear()%1e4,t,4)}function sh(){return"+0000"}function uh(){return"%"}function lh(t){return dp=cp(t),e.timeFormat=dp.format,e.timeParse=dp.parse,e.utcFormat=dp.utcFormat,e.utcParse=dp.utcParse,dp}lh({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,_h=24*hh,mh=7*_h,yh=30*_h,bh=365*_h;function gh(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,u,l){var c=Gd(Wd,mn),d=c.invert,f=c.domain,p=l(".%L"),h=l(":%S"),_=l("%I:%M"),m=l("%I %p"),y=l("%a %d"),b=l("%b %d"),g=l("%B"),v=l("%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,_h],[o,2,2*_h],[r,1,mh],[t,1,yh],[t,3,3*yh],[e,1,bh]];function T(n){return(s(n)=1?zh:e<=-1?-zh:Math.asin(e)}function Bh(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 e_(e,t,n,r,o,i,a){var s=e-n,u=t-r,l=(a?i:-i)/Gh(s*s+u*u),c=l*u,d=-l*s,f=e+c,p=t+d,h=n+c,_=r+d,m=(f+h)/2,y=(p+_)/2,b=h-f,g=_-p,v=b*b+g*g,w=o-i,k=f*_-h*p,T=(g<0?-1:1)*Gh(Yh(0,w*w*v-k*k)),x=(k*g-b*T)/v,M=(-k*b-g*T)/v,O=(k*g+b*T)/v,S=(-k*b+g*T)/v,E=x-m,L=M-y,P=O-m,D=S-y;return E*E+L*L>P*P+D*D&&(x=O,M=S),{cx:x,cy:M,x01:-c,y01:-d,x11:x*(o/w-1),y11:M*(o/w-1)}}function t_(e){this._context=e}t_.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 n_=function(e){return new t_(e)};function r_(e){return e[0]}function o_(e){return e[1]}var i_=function(){var e=r_,t=o_,n=Rh(!0),r=null,o=n_,i=null;function a(a){var s,u,l,c=a.length,d=!1;for(null==r&&(i=o(l=Vo())),s=0;s<=c;++s)!(s=c;--d)s.point(m[d],y[d]);s.lineEnd(),s.areaEnd()}_&&(m[l]=+e(f,l,u),y[l]=+n(f,l,u),s.point(t?+t(f,l,u):m[l],r?+r(f,l,u):y[l]))}if(p)return s=null,p+""||null}function l(){return i_().defined(o).curve(a).context(i)}return u.x=function(n){return arguments.length?(e="function"==typeof n?n:Rh(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Rh(+e),u):t},u.y=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Rh(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:Rh(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),u):i},u},s_=function(e,t){return te?1:t>=e?0:NaN},u_=function(e){return e},l_=d_(n_);function c_(e){this._curve=e}function d_(e){function t(t){return new c_(e(t))}return t._curve=e,t}function f_(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(d_(e)):t()._curve},e}c_.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 p_=function(){return f_(i_().curve(l_))},h_=function(){var e=a_().curve(l_),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 f_(n())},delete e.lineX0,e.lineEndAngle=function(){return f_(r())},delete e.lineX1,e.lineInnerRadius=function(){return f_(o())},delete e.lineY0,e.lineOuterRadius=function(){return f_(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(d_(e)):t()._curve},e},__=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},m_=Array.prototype.slice;function y_(e){return e.source}function b_(e){return e.target}function g_(e){var t=y_,n=b_,r=r_,o=o_,i=null;function a(){var a,s=m_.call(arguments),u=t.apply(this,s),l=n.apply(this,s);if(i||(i=a=Vo()),e(i,+r.apply(this,(s[0]=u,s)),+o.apply(this,s),+r.apply(this,(s[0]=l,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 v_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function w_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function k_(e,t,n,r,o){var i=__(t,n),a=__(t,n=(n+o)/2),s=__(r,n),u=__(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}var T_={draw:function(e,t){var n=Math.sqrt(t/qh);e.moveTo(n,0),e.arc(0,0,n,0,Fh)}},x_={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()}},M_=Math.sqrt(1/3),O_=2*M_,S_={draw:function(e,t){var n=Math.sqrt(t/O_),r=n*M_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},E_=Math.sin(qh/10)/Math.sin(7*qh/10),L_=Math.sin(Fh/10)*E_,P_=-Math.cos(Fh/10)*E_,D_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=L_*n,o=P_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Fh*i/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*o,u*r+s*o)}e.closePath()}},C_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},I_=Math.sqrt(3),j_={draw:function(e,t){var n=-Math.sqrt(t/(3*I_));e.moveTo(0,2*n),e.lineTo(-I_*n,-n),e.lineTo(I_*n,-n),e.closePath()}},A_=-.5,R_=Math.sqrt(3)/2,H_=1/Math.sqrt(12),N_=3*(H_/2+1),W_={draw:function(e,t){var n=Math.sqrt(t/N_),r=n/2,o=n*H_,i=r,a=n*H_+n,s=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,u),e.lineTo(A_*r-R_*o,R_*r+A_*o),e.lineTo(A_*i-R_*a,R_*i+A_*a),e.lineTo(A_*s-R_*u,R_*s+A_*u),e.lineTo(A_*r+R_*o,A_*o-R_*r),e.lineTo(A_*i+R_*a,A_*a-R_*i),e.lineTo(A_*s+R_*u,A_*u-R_*s),e.closePath()}},Y_=[T_,x_,S_,C_,D_,j_,W_],V_=function(){};function U_(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 G_(e){this._context=e}function J_(e){this._context=e}function q_(e){this._context=e}function z_(e,t){this._basis=new G_(e),this._beta=t}G_.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:U_(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:U_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},J_.prototype={areaStart:V_,areaEnd:V_,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:U_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},q_.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:U_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},z_.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,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(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 F_=function e(t){function n(e){return 1===t?new G_(e):new z_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function X_(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 B_(e,t){this._context=e,this._k=(1-t)/6}B_.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:X_(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:X_(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 K_=function e(t){function n(e){return new B_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Z_(e,t){this._context=e,this._k=(1-t)/6}Z_.prototype={areaStart:V_,areaEnd:V_,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:X_(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 $_=function e(t){function n(e){return new Z_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Q_(e,t){this._context=e,this._k=(1-t)/6}Q_.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:X_(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 em=function e(t){function n(e){return new Q_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function tm(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Jh){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Jh){var l=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*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function nm(e,t){this._context=e,this._alpha=t}nm.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:tm(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 rm=function e(t){function n(e){return t?new nm(e,t):new B_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function om(e,t){this._context=e,this._alpha=t}om.prototype={areaStart:V_,areaEnd:V_,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:tm(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 im=function e(t){function n(e){return t?new om(e,t):new Z_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function am(e,t){this._context=e,this._alpha=t}am.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:tm(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 sm=function e(t){function n(e){return t?new am(e,t):new Q_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function um(e){this._context=e}function lm(e){return e<0?-1:1}function cm(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(lm(i)+lm(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function dm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fm(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 pm(e){this._context=e}function hm(e){this._context=new _m(e)}function _m(e){this._context=e}function mm(e){this._context=e}function ym(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 gm=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 wm(e,t){return e[t]}var km=function(e){var t=e.map(Tm);return vm(e).sort(function(e,n){return t[e]-t[n]})};function Tm(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-u,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>f&&(f=i)}else if(h>0){if(i0)){if(i/=_,_<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=o-l,_||!(i<0)){if(i/=_,_<0){if(i>p)return;i>f&&(f=i)}else if(_>0){if(i0||p<1)||(f>0&&(e[0]=[u+f*h,l+f*_]),p<1&&(e[1]=[u+p*h,l+p*_]),!0)}}}}}function Rm(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,u=e[0],l=e.left,c=e.right,d=l[0],f=l[1],p=c[0],h=c[1],_=(d+p)/2,m=(f+h)/2;if(h===f){if(_=r)return;if(d>p){if(u){if(u[1]>=o)return}else u=[_,n];i=[_,o]}else{if(u){if(u[1]1)if(d>p){if(u){if(u[1]>=o)return}else u=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(u){if(u[1]=r)return}else u=[t,a*t+s];i=[r,a*r+s]}else{if(u){if(u[0]=-ny)){var p=u*u+l*l,h=c*c+d*d,_=(d*p-l*h)/f,m=(u*h-c*p)/f,y=Vm.pop()||new function(){Em(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=e,y.site=o,y.x=_+a,y.y=(y.cy=m+s)+Math.sqrt(_*_+m*m),e.circle=y;for(var b=null,g=Qm._;g;)if(y.yty)s=s.L;else{if(!((o=i-Km(s,a))>ty)){r>-ty?(t=s.P,n=s):o>-ty?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){$m[e.index]={site:e,halfedges:[]}}(e);var u=qm(e);if(Zm.insert(t,u),t||n){if(t===n)return Gm(t),n=qm(t.site),Zm.insert(u,n),u.edge=n.edge=Cm(t.site,u.site),Um(t),void Um(n);if(n){Gm(t),Gm(n);var l=t.site,c=l[0],d=l[1],f=e[0]-c,p=e[1]-d,h=n.site,_=h[0]-c,m=h[1]-d,y=2*(f*m-p*_),b=f*f+p*p,g=_*_+m*m,v=[(m*b-p*g)/y+c,(f*g-_*b)/y+d];jm(n.edge,l,h,v),u.edge=Cm(l,e,null,v),n.edge=Cm(e,h,null,v),Um(t),Um(n)}else u.edge=Cm(t.site,u.site)}}function Bm(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],u=n[1],l=u-t;if(!l)return s;var c=s-r,d=1/i-1/l,f=c/l;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*l)-u+l/2+o-i/2)))/d+r:(r+s)/2}function Km(e,t){var n=e.N;if(n)return Bm(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Zm,$m,Qm,ey,ty=1e-6,ny=1e-12;function ry(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function oy(e,t){return t[1]-e[1]||t[0]-e[0]}function iy(e,t){var n,r,o,i=e.sort(oy).pop();for(ey=[],$m=new Array(e.length),Zm=new Sm,Qm=new Sm;;)if(o=Ym,i&&(!o||i[1]ty||Math.abs(o[0][1]-o[1][1])>ty)||delete ey[i]}(a,s,u,l),function(e,t,n,r){var o,i,a,s,u,l,c,d,f,p,h,_,m=$m.length,y=!0;for(o=0;oty||Math.abs(_-f)>ty)&&(u.splice(s,0,ey.push(Im(a,p,Math.abs(h-e)ty?[e,Math.abs(d-e)ty?[Math.abs(f-r)ty?[n,Math.abs(d-n)ty?[Math.abs(f-t)=s)return null;var u=e-o.site[0],l=t-o.site[1],c=u*u+l*l;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 u=e-s[0],l=t-s[1],d=u*u+l*l;de?1:t>=e?0:NaN},e.deviation=l,e.extent=c,e.histogram=function(){var e=_,t=c,n=T;function r(r){var i,a,s=r.length,u=new Array(s);for(i=0;id;)f.pop(),--p;var h,_=new Array(p+1);for(i=0;i<=p;++i)(h=_[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 u,l,c,d=-1,f=n.length,p=r[o++],h=Xo(),_=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=Xo,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=yt,e.hsl=vt,e.lab=It,e.hcl=Wt,e.cubehelix=Bt,e.dispatch=V,e.drag=function(){var t,n,r,o,i=Fe,a=Xe,s=Be,u={},l=V("start","drag","end"),c=0,d=0;function f(e){e.on("mousedown.drag",p).filter(Ke).on("touchstart.drag",m).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!o&&i.apply(this,arguments)){var s=g("mouse",a.apply(this,arguments),de,this,arguments);s&&(We(e.event.view).on("mousemove.drag",h,!0).on("mouseup.drag",_,!0),Ge(e.event.view),Ve(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function h(){if(Ue(),!r){var o=e.event.clientX-t,i=e.event.clientY-n;r=o*o+i*i>d}u.mouse("drag")}function _(){We(e.event.view).on("mousemove.drag mouseup.drag",null),Je(e.event.view,r),Ue(),u.mouse("end")}function m(){if(i.apply(this,arguments)){var t,n,r=e.event.changedTouches,o=a.apply(this,arguments),s=r.length;for(t=0;tu+p||ol+p||is.index){var h=u-a.x-a.vx,_=l-a.y-a.vy,m=h*h+_*_;me.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=_i(),p+=c*c),0===d&&(d=_i(),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,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(e,n),t):l.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,Da=o[0],Ia=r[1])}return es=ts=null,Da===1/0||Ca===1/0?[[NaN,NaN],[NaN,NaN]]:[[Da,Ca],[Ia,ja]]},e.geoCentroid=function(e){hs=_s=ms=ys=bs=gs=vs=ws=ks=Ts=xs=0,Wa(e,Ps);var t=ks,n=Ts,r=xs,o=t*t+n*n+r*r;return o<1e-12&&(t=gs,n=vs,r=ws,_s<$i&&(t=ms,n=ys,r=bs),(o=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[sa(n,t)*ra,ba(r/_a(o))*ra]},e.geoCircle=function(){var e,t,n=Vs([0,0]),r=Vs(90),o=Vs(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,u=o.apply(this,arguments)*oa;return e=[],t=Js(-a[0]*oa,-a[1]*oa,0).invert,Bs(i,s,u,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:Vs([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"==typeof e?e:Vs(+e),a):r},a.precision=function(e){return arguments.length?(o="function"==typeof e?e:Vs(+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=iu(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&&vu.hasOwnProperty(e.type)?vu[e.type]:ku)(e,t)},e.geoDistance=gu,e.geoGraticule=Pu,e.geoGraticule10=function(){return Pu()()},e.geoInterpolate=function(e,t){var n=e[0]*oa,r=e[1]*oa,o=t[0]*oa,i=t[1]*oa,a=ua(r),s=pa(r),u=ua(i),l=pa(i),c=a*ua(n),d=a*pa(n),f=u*ua(o),p=u*pa(o),h=2*ba(_a(ga(i-r)+a*u*ga(o-n))),_=pa(h),m=h?function(e){var t=pa(e*=h)/_,n=pa(h-e)/_,r=n*c+t*f,o=n*d+t*p,i=n*s+t*l;return[sa(o,r)*ra,sa(i,_a(r*r+o*o))*ra]}:function(){return[n*ra,r*ra]};return m.distance=h,m},e.geoLength=mu,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)),Wa(e,n(r))),r.result()}return i.area=function(e){return Wa(e,n(Nu)),Nu.result()},i.measure=function(e){return Wa(e,n(xl)),xl.result()},i.bounds=function(e){return Wa(e,n(Zu)),Zu.result()},i.centroid=function(e){return Wa(e,n(sl)),sl.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,Au):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Sl):new yl(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=Fl,e.geoAlbersUsa=function(){var e,t,n,r,o,i,a=Fl(),s=zl().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=zl().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={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?u:a).invert(e)},c.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=uc,e.geoRotation=Xs,e.geoStream=Wa,e.geoTransform=function(e){return{stream:jl(e)}},e.cluster=function(){var e=lc,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),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),l=s.x-e(s,u)/2,c=u.x+e(u,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-l)/(c-l)*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=Ic;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Rc(e)).eachAfter(Hc(r,.5)).eachBefore(Nc(1)):o.eachBefore(Rc(Ac)).eachAfter(Hc(Ic,1)).eachAfter(Hc(r,o.r/Math.min(t,n))).eachBefore(Nc(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=function(e){return null==e?null:Cc(e)}(t),o):e},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:jc(+e),o):r},o},e.packSiblings=function(e){return Dc(e),e},e.packEnclose=gc,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&&Yc(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=zc,t=1,n=1,r=null;function o(o){var u=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(u.eachAfter(i),u.parent.m=-u.z,u.eachBefore(a),r)o.eachBefore(s);else{var l=o,c=o,d=o;o.eachBefore(function(e){e.xc.x&&(c=e),e.depth>d.depth&&(d=e)});var f=l===c?1:e(l,c)/2,p=f-l.x,h=t/(c.x+f+p),_=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*_})}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,u=i.parent.children[0],l=i.m,c=a.m,d=s.m,f=u.m;s=Xc(s),i=Fc(i),s&&i;)u=Fc(u),(a=Xc(a)).a=t,(o=s.z+d-i.z-l+e(s._,i._))>0&&(Bc(Kc(s,t,r),t,o),l+=o,c+=o),d+=s.m,l+=i.m,f+=u.m,c+=a.m;s&&!Xc(a)&&(a.t=s,a.m+=d-c),i&&!Fc(u)&&(u.t=i,u.m+=l-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=Ic,a=Ic,s=Ic,u=Ic,l=Ic;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(Wc),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=u)}for(var d=l[t],f=r/2+d,p=t+1,h=n-1;p>>1;l[_]u-i){var b=(o*y+a*m)/r;e(t,p,m,o,i,b,u),e(p,n,y,b,i,a,u)}else{var g=(i*y+u*m)/r;e(t,p,m,o,i,a,g),e(p,n,y,o,g,a,u)}}(0,u,e.value,t,n,r,o)},e.treemapDice=Yc,e.treemapSlice=$c,e.treemapSliceDice=function(e,t,n,r,o){(1&e.depth?$c:Yc)(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=_n,e.interpolateNumber=mn,e.interpolateObject=yn,e.interpolateRound=kn,e.interpolateString=vn,e.interpolateTransformCss=Sn,e.interpolateTransformSvg=En,e.interpolateZoom=Dn,e.interpolateRgb=an,e.interpolateRgbBasis=fn,e.interpolateRgbBasisClosed=pn,e.interpolateHsl=In,e.interpolateHslLong=jn,e.interpolateLab=function(e,t){var n=on((e=It(e)).l,(t=It(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=Vn,e.interpolateCubehelixLong=Un,e.quantize=function(e,t){for(var n=new Array(t),r=0;r=0;--t)l.push(e[r[i[t]][2]]);for(t=+s;ts!=l>s&&a<(u-n)*(s-r)/(l-r)+n&&(c=!c),u=n,l=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],u=0;++r0){for(;fu)break;_.push(d)}}else for(;f=1;--c)if(!((d=l*c)u)break;_.push(d)}}else _=v(f,p,Math.min(p-f,h)).map(a);return t?_.reverse():_},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)},qd(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(jf,Cf,bf,_f,pf,df,lf,of,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return wh(ip,rp,Gf,Yf,Nf,Rf,lf,of,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=Th,e.schemeCategory20b=xh,e.schemeCategory20c=Mh,e.schemeCategory20=Oh,e.interpolateCubehelixDefault=Sh,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ph.h=360*e-100,Ph.s=1.5-1.5*t,Ph.l=.8-.9*t,Ph+""},e.interpolateWarm=Eh,e.interpolateCool=Lh,e.interpolateViridis=Ch,e.interpolateMagma=Ih,e.interpolateInferno=jh,e.interpolatePlasma=Ah,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)},qd(i)},e.creator=X,e.local=K,e.matcher=te,e.mouse=de,e.namespace=F,e.namespaces=z,e.select=We,e.selectAll=function(e){return"string"==typeof e?new He([document.querySelectorAll(e)],[document.documentElement]):new He([null==e?[]:e],Re)},e.selection=Ne,e.selector=pe,e.selectorAll=_e,e.style=Te,e.touch=Ye,e.touches=function(e,t){null==t&&(t=le().touches);for(var n=0,r=t?t.length:0,o=new Array(r);nf;if(s||(s=u=Vo()),dJh)if(h>Fh-Jh)s.moveTo(d*Wh(f),d*Uh(f)),s.arc(0,0,d,f,p,!_),c>Jh&&(s.moveTo(c*Wh(p),c*Uh(p)),s.arc(0,0,c,p,f,_));else{var m,y,b=f,g=p,v=f,w=p,k=h,T=h,x=a.apply(this,arguments)/2,M=x>Jh&&(r?+r.apply(this,arguments):Gh(c*c+d*d)),O=Vh(Hh(d-c)/2,+n.apply(this,arguments)),S=O,E=O;if(M>Jh){var L=Xh(M/c*Uh(x)),P=Xh(M/d*Uh(x));(k-=2*L)>Jh?(v+=L*=_?1:-1,w-=L):(k=0,v=w=(f+p)/2),(T-=2*P)>Jh?(b+=P*=_?1:-1,g-=P):(T=0,b=g=(f+p)/2)}var D=d*Wh(b),C=d*Uh(b),I=c*Wh(w),j=c*Uh(w);if(O>Jh){var A=d*Wh(g),R=d*Uh(g),H=c*Wh(v),N=c*Uh(v);if(hJh?function(e,t,n,r,o,i,a,s){var u=n-e,l=r-t,c=a-o,d=s-i,f=(c*(t-i)-d*(e-o))/(d*u-c*l);return[e+f*u,t+f*l]}(D,C,H,N,A,R,I,j):[I,j],Y=D-W[0],V=C-W[1],U=A-W[0],G=R-W[1],J=1/Uh(function(e){return e>1?0:e<-1?qh:Math.acos(e)}((Y*U+V*G)/(Gh(Y*Y+V*V)*Gh(U*U+G*G)))/2),q=Gh(W[0]*W[0]+W[1]*W[1]);S=Vh(O,(c-q)/(J-1)),E=Vh(O,(d-q)/(J+1))}}T>Jh?E>Jh?(m=e_(H,N,D,C,d,E,_),y=e_(A,R,I,j,d,E,_),s.moveTo(m.cx+m.x01,m.cy+m.y01),EJh&&k>Jh?S>Jh?(m=e_(I,j,A,R,c,-S,_),y=e_(D,C,H,N,c,-S,_),s.lineTo(m.cx+m.x01,m.cy+m.y01),S0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(_[e],_[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,l=p?(y-f*g)/p:0;s0?d*l:0)+g,_[u]={data:a[u],index:s,value:d,startAngle:m,endAngle:c,padAngle:b};return _}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=h_,e.radialArea=h_,e.lineRadial=p_,e.radialLine=p_,e.pointRadial=__,e.linkHorizontal=function(){return g_(v_)},e.linkVertical=function(){return g_(w_)},e.linkRadial=function(){var e=g_(k_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=Rh(T_),t=Rh(64),n=null;function r(){var r;if(n||(n=r=Vo()),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=Y_,e.symbolCircle=T_,e.symbolCross=x_,e.symbolDiamond=S_,e.symbolSquare=C_,e.symbolStar=D_,e.symbolTriangle=j_,e.symbolWye=W_,e.curveBasisClosed=function(e){return new J_(e)},e.curveBasisOpen=function(e){return new q_(e)},e.curveBasis=function(e){return new G_(e)},e.curveBundle=F_,e.curveCardinalClosed=$_,e.curveCardinalOpen=em,e.curveCardinal=K_,e.curveCatmullRomClosed=im,e.curveCatmullRomOpen=sm,e.curveCatmullRom=rm,e.curveLinearClosed=function(e){return new um(e)},e.curveLinear=n_,e.curveMonotoneX=function(e){return new pm(e)},e.curveMonotoneY=function(e){return new hm(e)},e.curveNatural=function(e){return new mm(e)},e.curveStep=function(e){return new bm(e,.5)},e.curveStepAfter=function(e){return new bm(e,1)},e.curveStepBefore=function(e){return new bm(e,0)},e.stack=function(){var e=Rh([]),t=vm,n=gm,r=wm;function o(o){var i,a,s=e.apply(this,arguments),u=o.length,l=s.length,c=new Array(l);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i1)for(var n,r,o,i,a,s,u=0,l=e[t[0]].length;u=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},e.stackOffsetNone=gm,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=Mm,t=Om,n=null;function r(r){return new iy(r.map(function(n,o){var i=[Math.round(e(n,o,r)/ty)*ty,Math.round(t(n,o,r)/ty)*ty];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:xm(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:xm(+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=fy,o=py,i=_y,a=0,s=1/0,u=-s,l=s,c=u,d=l,f=250,p=Dn,h=[],_=V("start","zoom","end"),m=500,y=150,b=0;function g(e){e.property("__zoom",hy).on("wheel.zoom",S).on("mousedown.zoom",E).on("dblclick.zoom",L).filter(my).on("touchstart.zoom",P).on("touchmove.zoom",D).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 sy(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 sy(e.k,r,o)}function k(e,t){var n=e.invertX(t[0][0])-u,r=e.invertX(t[1][0])-l,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 T(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(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||T(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),u=this.__zoom,l="function"==typeof t?t.apply(this,e):t,c=p(u.invert(a).concat(s/u.k),l.invert(a).concat(s/l.k));return function(e){if(1===e)e=l;else{var t=c(e),n=s/t[2];e=new sy(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;rb}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),Je(e.event.view,t.moved),dy(),t.end()},!0),i=de(this),a=e.event.clientX,s=e.event.clientY;Ge(e.event.view),cy(),t.mouse=[i,this.__zoom.invert(i)],vr(this),t.start()}}function L(){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));dy(),f>0?We(this).transition().duration(f).call(x,s,n):We(this).call(g.transform,s)}}function P(){if(r.apply(this,arguments)){var n,o,i,a,s=M(this,arguments),u=e.event.changedTouches,l=u.length;for(cy(),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.selected,r=e.hasIncluded;if(void 0!==r&&r)return!0;if(n&&"all"===n[0])return!0;var o=[];return t&&t.result&&t.result.map(function(e){o=o.concat(A(e))}),t&&t.size&&t.result&&n&&n[0]&&(0,u.getItemsByProperty)(o,"id",n[0]).length};t.doesSelectionExist=v;var w=function(e,t){e((0,o.push)("/window/".concat(t,"/new")))};t.redirectToNewDocument=w;var k=function(e,t){return(e?"+":"-")+t};function T(e,t){return e?t.map(function(t){return x(e,t)}):t}function x(e,t){var n=Object.values(t.fieldsByName).map(function(t){return M(e[t.field],t)}).reduce(function(e,t){return e[t.field]=t,e},{});return Object.assign({},t,{fieldsByName:n})}function M(e,t){return e?(e.widgetType&&(t.widgetType=e.widgetType),t):t}function O(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.id,l=s.includedDocuments;t[u]=s,l&&O(l,t)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}function S(e,t,n){return e.map(function(e){var r=e.id,o=e.includedDocuments;o&&(e.includedDocuments=S(o,t,n));var i=t[r];return i?x(n,i):e})}function E(e,t){var n=[];return t.forEach(function(t){var r=e.findIndex(function(e){return e.id===t});-1!==r&&(e=e.delete(r),n.push(t))}),{rows:e,removedRows:n}}function L(e){var t=e.toRows,n=e.fromRows,r=e.columnInfosByFieldName,o=void 0===r?{}:r,i=e.changedIds;return n||i?n.length?{rows:S(t,O(n,{}),o),removedRows:[]}:E(t,i):{rows:t,removedRows:[]}}function P(e){return e?"modal":"master"}function D(e){return I((0,u.nullToEmptyStrings)(e))}function C(e){if(e){var t=0;return a.default.isMoment(e)?t=s.DateTime.fromISO(e.toISOString()).offset:(t=e instanceof Date?s.DateTime.fromISO(e.toISOString()).offset:s.DateTime.fromISO(e).offset,e=(0,a.default)(e)),e.utcOffset(t),e}return""}function I(e){var t=["Date","DateTime","Time"];return Object.keys(e).reduce(function(n,r){var o=e[r],i=t.indexOf(o.widgetType)>-1;return n[r]=i&&o.value?d({},o,{value:C(o.value)}):o,n},{})}function j(e){var t=[];return e&&e.map(function(e){t=t.concat(A(e))}),t}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||[],o=[],i=d({},e,{indent:r});if(o=o.concat([i]),n&&(r[r.length-2]=!1),e.includedDocuments)for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r.default.get(config.API_URL+"/menu/root?depth="+t+(e?"&childrenLimit="+e:"")+(n?"&favorites=true":""))}function p(e){return r.default.get(config.API_URL+"/menu/node/"+e+"/breadcrumbMenu")}function h(e){return{type:o.SET_BREADCRUMB,breadcrumb:e}}function _(e){return{type:o.UPDATE_BREADCRUMB,node:e}}function m(){return f(6,10,!0).then(function(e){return{nodeId:"0",children:e.data.children}})}function y(e){return function(t){a||s===e||(a=!0,c("window",e).then(function(e){return v(e.data)}).then(function(n){t(h(n.reverse())),s=e,a=!1}).catch(function(){t(h([])),s=null,a=!1}))}}function b(e,t){return function(n){a||s===t||(a=!0,c(e,t).then(function(e){return v(e.data)}).then(function(e){n(h(e.reverse())),s=t,a=!1}).catch(function(){n(h([])),s=null,a=!1}))}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=[];return e[t]?(e[t].map(function(e){var t=g(e);"object"===i(t)?n=n.concat(t):n.push(g(e))}),n):[e]}function v(e){var t=[];return e.children&&v(e.children[0]).map(function(e){t.push(e)}),t.push({nodeId:e.nodeId,caption:e.caption,type:e.type}),t}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(a,"breadcrumbsRequested","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(s,"breadcrumbsId","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(u,"pathRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(l,"nodePathsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(c,"elementPathRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(d,"queryPathsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(f,"rootRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(p,"breadcrumbRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(h,"setBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(_,"updateBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(m,"getRootBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(y,"getWindowBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(b,"getElementBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(g,"flattenLastElem","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(v,"flattenOneLine","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(t){var r=n(110),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;!function(e){e&&e.__esModule}(n(65));t.addQueryStringValueToPath=function(e,t,n){var i=r(e),a=i.pathname,s=i.search,u=i.hash;return o({pathname:a,search:s+(-1===s.indexOf("?")?"?":"&")+t+"="+n,hash:u})},t.stripQueryStringValueFromPath=function(e,t){var n=r(e),i=n.pathname,a=n.search,s=n.hash;return o({pathname:i,search:a.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=r(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var r=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substring(o),t=t.substring(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substring(i),t=t.substring(0,i)),""===t&&(t="/"),{pathname:t,search:n,hash:r}},o=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(100)("meta"),o=n(14),i=n(50),a=n(29).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(16)(function(){return u(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(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&u(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){var r=n(14);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,n){"use strict";var r=n(120),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.a?r.a.toStringTag:void 0;var u=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o},l=Object.prototype.toString;var c=function(e){return l.call(e)},d="[object Null]",f="[object Undefined]",p=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?u(e):c(e)}},function(e,t,n){"use strict";var r=n(701),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OTHER=0]="OTHER",e[e.ORIENTATION=1]="ORIENTATION",e[e.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",e[e.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",e[e.ISSUE_NUMBER=4]="ISSUE_NUMBER",e[e.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",e[e.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",e[e.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",e[e.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",e[e.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",e[e.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.MathUtils=function(){},e.round=function(e){return NaN===e?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){t+=e[n]}return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(44).default);t.default=o},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireWildcard(__webpack_require__(2)),_reactAddonsCssTransitionGroup=_interopRequireDefault(__webpack_require__(209));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n-1;if(!v)return console.warn("The %c"+f,"font-weight:bold;","is unsupported type of widget."),!1;if(!u[0].displayed||!0!==u[0].displayed)return!1;var M=u[0].value&&u[0].value.description?u[0].value.description:null,O=i.map(function(e){return"form-field-"+e.field}).join(" "),S=h?"col-sm-5":"";S||(S="primary"!==a||x?"primaryLongLabels"===a?"col-sm-6":"col-sm-3":"col-sm-12 panel-title");var E=h?"col-sm-7":"";return E||(E=("primary"!==a&&!s||x?"primaryLongLabels"===a?"col-sm-6":"col-sm-9 ":"col-sm-12 ")+(i[0].devices?"form-group-flex":"")),_react.default.createElement("div",{className:(0,_classnames2.default)("form-group row ",{"form-group-table":l&&!c},O)},o||null,!s&&n&&_react.default.createElement("div",{key:"title",className:(0,_classnames2.default)("form-control-label",S),title:r||n},i[0].supportZoomInto?_react.default.createElement("span",{className:"zoom-into",onClick:function(){return p(i[0].field)}},n):n),_react.default.createElement("div",{className:E,onMouseEnter:function(){return e.handleErrorPopup(!0)},onMouseLeave:function(){return e.handleErrorPopup(!1)}},!y&&T&&_react.default.createElement("div",{className:(0,_classnames2.default)("field-warning",{"field-warning-message":T,"field-error-message":T&&T.error}),onMouseEnter:function(){return e.toggleTooltip(!0)},onMouseLeave:function(){return e.toggleTooltip(!1)}},_react.default.createElement("span",null,T.caption),_react.default.createElement("i",{className:"meta-icon-close-alt",onClick:function(){return e.clearFieldWarning(T)}}),T.message&&b&&_react.default.createElement(_Tooltips.default,{action:T.message,type:""})),_react.default.createElement("div",{className:(0,_classnames2.default)("input-body-container",{focused:g}),title:M},_react.default.createElement(_reactAddonsCssTransitionGroup.default,{transitionName:"fade",transitionEnterTimeout:200,transitionLeaveTimeout:200},m&&k&&!k.valid&&!k.initialValue&&this.renderErrorPopup(k.reason)),v),i[0].devices&&!u[0].readonly&&_react.default.createElement(_DevicesWidget.default,{devices:i[0].devices,tabIndex:1,handleChange:function(e){return d&&d(i[0].field,e)}})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),RawWidget}(_react.Component);exports.RawWidget=RawWidget,RawWidget.propTypes=_PropTypes.RawWidgetPropTypes,RawWidget.defaultProps=_PropTypes.RawWidgetDefaultProps;var _default=(0,_reactRedux.connect)(function(e){return{modalVisible:e.windowHandler.modal.visible}})(RawWidget),_default2=_default;exports.default=_default2,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).default;e&&(e.register(RawWidget,"RawWidget","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/RawWidget.js"),e.register(_default,"default","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/RawWidget.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _propTypes=_interopRequireDefault(__webpack_require__(1)),_react=_interopRequireWildcard(__webpack_require__(2)),_reactRedux=__webpack_require__(7),_DocumentList=_interopRequireDefault(__webpack_require__(210)),_ErrorScreen=_interopRequireDefault(__webpack_require__(803)),_Modal=_interopRequireDefault(__webpack_require__(802)),_RawModal=_interopRequireDefault(__webpack_require__(794)),_Header=_interopRequireDefault(__webpack_require__(793));function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t1},i.landscape=function(){return window.innerHeight/window.innerWidth<1},i.noConflict=function(){return window.device=o,this},i.ios()?i.ipad()?f("ios ipad tablet"):i.iphone()?f("ios iphone mobile"):i.ipod()&&f("ios ipod mobile"):i.macos()?f("macos desktop"):i.android()?i.androidTablet()?f("android tablet"):f("android mobile"):i.blackberry()?i.blackberryTablet()?f("blackberry tablet"):f("blackberry mobile"):i.windows()?i.windowsTablet()?f("windows tablet"):i.windowsPhone()?f("windows mobile"):f("windows desktop"):i.fxos()?i.fxosTablet()?f("fxos tablet"):f("fxos mobile"):i.meego()?f("meego mobile"):i.nodeWebkit()?f("node-webkit"):i.television()?f("television"):i.desktop()&&f("desktop"),i.cordova()&&f("cordova"),i.onChangeOrientation=function(e){"function"==typeof e&&a.push(e)};var m="resize";function y(e){for(var t=0;t>>1,Y=[["ary",x],["bind",y],["bindKey",b],["curry",v],["curryRight",w],["flip",O],["partial",k],["partialRight",T],["rearg",M]],V="[object Arguments]",U="[object Array]",G="[object AsyncFunction]",J="[object Boolean]",q="[object Date]",z="[object DOMException]",X="[object Error]",F="[object Function]",B="[object GeneratorFunction]",K="[object Map]",Z="[object Number]",$="[object Null]",Q="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",le="[object DataView]",ce="[object Float32Array]",de="[object Float64Array]",fe="[object Int8Array]",pe="[object Int16Array]",he="[object Int32Array]",_e="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",be="[object Uint32Array]",ge=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ke=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,xe=RegExp(ke.source),Me=RegExp(Te.source),Oe=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ee=/<%=([\s\S]+?)%>/g,Le=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,De=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ce=/[\\^$.*+?()[\]{}|]/g,Ie=RegExp(Ce.source),je=/^\s+|\s+$/g,Ae=/^\s+/,Re=/\s+$/,He=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ne=/\{\n\/\* \[wrapped with (.+)\] \*/,We=/,? & /,Ye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ve=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ge=/\w*$/,Je=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,ze=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Fe=/^(?:0|[1-9]\d*)$/,Be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ke=/($^)/,Ze=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Qe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Qe+"]",nt="["+$e+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Qe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",lt="(?:\\ud83c[\\udde6-\\uddff]){2}",ct="[\\ud800-\\udbff][\\udc00-\\udfff]",dt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ft="(?:"+it+"|"+at+")",pt="(?:"+dt+"|"+at+")",ht="(?:"+nt+"|"+st+")"+"?",_t="[\\ufe0e\\ufe0f]?"+ht+("(?:\\u200d(?:"+[ut,lt,ct].join("|")+")[\\ufe0e\\ufe0f]?"+ht+")*"),mt="(?:"+[ot,lt,ct].join("|")+")"+_t,yt="(?:"+[ut+nt+"?",nt,lt,ct,et].join("|")+")",bt=RegExp("['’]","g"),gt=RegExp(nt,"g"),vt=RegExp(st+"(?="+st+")|"+yt+_t,"g"),wt=RegExp([dt+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,dt,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,dt+ft,"$"].join("|")+")",dt+"?"+ft+"+(?:['’](?:d|ll|m|re|s|t|ve))?",dt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),kt=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),Tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Mt=-1,Ot={};Ot[ce]=Ot[de]=Ot[fe]=Ot[pe]=Ot[he]=Ot[_e]=Ot[me]=Ot[ye]=Ot[be]=!0,Ot[V]=Ot[U]=Ot[ue]=Ot[J]=Ot[le]=Ot[q]=Ot[X]=Ot[F]=Ot[K]=Ot[Z]=Ot[Q]=Ot[te]=Ot[ne]=Ot[re]=Ot[ae]=!1;var St={};St[V]=St[U]=St[ue]=St[le]=St[J]=St[q]=St[ce]=St[de]=St[fe]=St[pe]=St[he]=St[K]=St[Z]=St[Q]=St[te]=St[ne]=St[re]=St[oe]=St[_e]=St[me]=St[ye]=St[be]=!0,St[X]=St[F]=St[ae]=!1;var Et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Lt=parseFloat,Pt=parseInt,Dt="object"==typeof e&&e&&e.Object===Object&&e,Ct="object"==typeof self&&self&&self.Object===Object&&self,It=Dt||Ct||Function("return this")(),jt="object"==typeof t&&t&&!t.nodeType&&t,At=jt&&"object"==typeof r&&r&&!r.nodeType&&r,Rt=At&&At.exports===jt,Ht=Rt&&Dt.process,Nt=function(){try{var e=At&&At.require&&At.require("util").types;return e||Ht&&Ht.binding&&Ht.binding("util")}catch(e){}}(),Wt=Nt&&Nt.isArrayBuffer,Yt=Nt&&Nt.isDate,Vt=Nt&&Nt.isMap,Ut=Nt&&Nt.isRegExp,Gt=Nt&&Nt.isSet,Jt=Nt&&Nt.isTypedArray;function qt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function zt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function $t(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function wn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var kn=pn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Tn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function xn(e){return"\\"+Et[e]}function Mn(e){return kt.test(e)}function On(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Sn(e,t){return function(n){return e(t(n))}}function En(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var jn=function e(t){var n=(t=null==t?It:jn.defaults(It.Object(),t,jn.pick(It,xt))).Array,r=t.Date,o=t.Error,$e=t.Function,Qe=t.Math,et=t.Object,tt=t.RegExp,nt=t.String,rt=t.TypeError,ot=n.prototype,it=$e.prototype,at=et.prototype,st=t["__core-js_shared__"],ut=it.toString,lt=at.hasOwnProperty,ct=0,dt=function(){var e=/[^.]+$/.exec(st&&st.keys&&st.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ft=at.toString,pt=ut.call(et),ht=It._,_t=tt("^"+ut.call(lt).replace(Ce,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),mt=Rt?t.Buffer:i,yt=t.Symbol,vt=t.Uint8Array,kt=mt?mt.allocUnsafe:i,Et=Sn(et.getPrototypeOf,et),Dt=et.create,Ct=at.propertyIsEnumerable,jt=ot.splice,At=yt?yt.isConcatSpreadable:i,Ht=yt?yt.iterator:i,Nt=yt?yt.toStringTag:i,on=function(){try{var e=Ni(et,"defineProperty");return e({},"",{}),e}catch(e){}}(),pn=t.clearTimeout!==It.clearTimeout&&t.clearTimeout,An=r&&r.now!==It.Date.now&&r.now,Rn=t.setTimeout!==It.setTimeout&&t.setTimeout,Hn=Qe.ceil,Nn=Qe.floor,Wn=et.getOwnPropertySymbols,Yn=mt?mt.isBuffer:i,Vn=t.isFinite,Un=ot.join,Gn=Sn(et.keys,et),Jn=Qe.max,qn=Qe.min,zn=r.now,Xn=t.parseInt,Fn=Qe.random,Bn=ot.reverse,Kn=Ni(t,"DataView"),Zn=Ni(t,"Map"),$n=Ni(t,"Promise"),Qn=Ni(t,"Set"),er=Ni(t,"WeakMap"),tr=Ni(et,"create"),nr=er&&new er,rr={},or=ca(Kn),ir=ca(Zn),ar=ca($n),sr=ca(Qn),ur=ca(er),lr=yt?yt.prototype:i,cr=lr?lr.valueOf:i,dr=lr?lr.toString:i;function fr(e){if(Ss(e)&&!ms(e)&&!(e instanceof mr)){if(e instanceof _r)return e;if(lt.call(e,"__wrapped__"))return da(e)}return new _r(e)}var pr=function(){function e(){}return function(t){if(!Os(t))return{};if(Dt)return Dt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function hr(){}function _r(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function mr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function yr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function jr(e,t,n,r,o,a){var s,u=t&f,l=t&p,c=t&h;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!Os(e))return e;var d=ms(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ni(e,s)}else{var _=Vi(e),m=_==F||_==B;if(vs(e))return Ko(e,u);if(_==Q||_==V||m&&!o){if(s=l||m?{}:Gi(e),!u)return l?function(e,t){return ri(e,Yi(e),t)}(e,function(e,t){return e&&ri(t,ou(t),e)}(s,e)):function(e,t){return ri(e,Wi(e),t)}(e,Pr(s,e))}else{if(!St[_])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ue:return Zo(e);case J:case q:return new r(+e);case le:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case ce:case de:case fe:case pe:case he:case _e:case me:case ye:case be:return $o(e,n);case K:return new r;case Z:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,Ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return function(e){return cr?et(cr.call(e)):{}}(e)}}(e,_,u)}}a||(a=new wr);var y=a.get(e);if(y)return y;if(a.set(e,s),Cs(e))return e.forEach(function(r){s.add(jr(r,t,n,r,e,a))}),s;if(Es(e))return e.forEach(function(r,o){s.set(o,jr(r,t,n,o,e,a))}),s;var b=d?i:(c?l?Di:Pi:l?ou:ru)(e);return Xt(b||e,function(r,o){b&&(r=e[o=r]),Sr(s,o,jr(r,t,n,o,e,a))}),s}function Ar(e,t,n){var r=n.length;if(null==e)return!r;for(e=et(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Rr(e,t,n){if("function"!=typeof e)throw new rt(u);return ra(function(){e.apply(i,n)},t)}function Hr(e,t,n,r){var o=-1,i=Zt,s=!0,u=e.length,l=[],c=t.length;if(!u)return l;n&&(t=Qt(t,yn(n))),r?(i=$t,s=!1):t.length>=a&&(i=gn,s=!1,t=new vr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=Er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},gr.prototype.clear=function(){this.size=0,this.__data__={hash:new yr,map:new(Zn||br),string:new yr}},gr.prototype.delete=function(e){var t=Ri(this,e).delete(e);return this.size-=t?1:0,t},gr.prototype.get=function(e){return Ri(this,e).get(e)},gr.prototype.has=function(e){return Ri(this,e).has(e)},gr.prototype.set=function(e,t){var n=Ri(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},vr.prototype.add=vr.prototype.push=function(e){return this.__data__.set(e,l),this},vr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.clear=function(){this.__data__=new br,this.size=0},wr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},wr.prototype.get=function(e){return this.__data__.get(e)},wr.prototype.has=function(e){return this.__data__.has(e)},wr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Gr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Jr=si(),qr=si(!0);function zr(e,t){return e&&Jr(e,t,ru)}function Xr(e,t){return e&&qr(e,t,ru)}function Fr(e,t){return Kt(t,function(t){return Ts(e[t])})}function Br(e,t){for(var n=0,r=(t=zo(t,e)).length;null!=e&&nt}function Qr(e,t){return null!=e&<.call(e,t)}function eo(e,t){return null!=e&&t in et(e)}function to(e,t,r){for(var o=r?$t:Zt,a=e[0].length,s=e.length,u=s,l=n(s),c=1/0,d=[];u--;){var f=e[u];u&&t&&(f=Qt(f,yn(t))),c=qn(f.length,c),l[u]=!r&&(t||a>=120&&f.length>=120)?new vr(u&&f):i}f=e[0];var p=-1,h=l[0];e:for(;++p=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&jt.call(s,u,1),jt.call(e,u,1);return e}function vo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;qi(o)?jt.call(e,o,1):No(e,o)}}return e}function wo(e,t){return e+Nn(Fn()*(t-e+1))}function ko(e,t){var n="";if(!e||t<1||t>j)return n;do{t%2&&(n+=e),(t=Nn(t/2))&&(e+=e)}while(t);return n}function To(e,t){return oa(Qi(e,t,Lu),e+"")}function xo(e){return Tr(fu(e))}function Mo(e,t){var n=fu(e);return sa(n,Ir(t,0,n.length))}function Oo(e,t,n,r){if(!Os(e))return e;for(var o=-1,a=(t=zo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!js(a)&&(n?a<=t:a=a){var c=t?null:ki(e);if(c)return Ln(c);s=!1,o=gn,l=new vr}else l=t?[]:u;e:for(;++r=r?e:Po(e,t,n)}var Bo=pn||function(e){return It.clearTimeout(e)};function Ko(e,t){if(t)return e.slice();var n=e.length,r=kt?kt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t}function $o(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Qo(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=js(e),s=t!==i,u=null===t,l=t==t,c=js(t);if(!u&&!c&&!a&&e>t||a&&s&&l&&!u&&!c||r&&s&&l||!n&&l||!o)return 1;if(!r&&!a&&!c&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&zi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=et(t);++r-1?o[a?t[s]:s]:i}}function fi(e){return Li(function(t){var n=t.length,r=n,o=_r.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new rt(u);if(o&&!s&&"wrapper"==Ii(a))var s=new _r([],!0)}for(r=s?r:n;++r1&&v.reverse(),f&&cu))return!1;var c=a.get(e);if(c&&a.get(t))return c==t;var d=-1,f=!0,p=n&m?new vr:i;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(He,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Xt(Y,function(n){var r="_."+n[0];t&n[1]&&!Zt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Ne);return t?t[1].split(We):[]}(r),n)))}function aa(e){var t=0,n=0;return function(){var r=zn(),o=P-(r-n);if(n=r,o>0){if(++t>=L)return arguments[0]}else t=0;return e.apply(i,arguments)}}function sa(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return Da(e,n="function"==typeof n?(e.pop(),n):i)});function Na(e){var t=fr(e);return t.__chain__=!0,t}function Wa(e,t){return t(e)}var Ya=Li(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Cr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof mr&&qi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Wa,args:[o],thisArg:i}),new _r(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Va=oi(function(e,t,n){lt.call(e,n)?++e[n]:Dr(e,n,1)});var Ua=di(_a),Ga=di(ma);function Ja(e,t){return(ms(e)?Xt:Nr)(e,Ai(t,3))}function qa(e,t){return(ms(e)?Ft:Wr)(e,Ai(t,3))}var za=oi(function(e,t,n){lt.call(e,n)?e[n].push(t):Dr(e,n,[t])});var Xa=To(function(e,t,r){var o=-1,i="function"==typeof t,a=bs(e)?n(e.length):[];return Nr(e,function(e){a[++o]=i?qt(t,e,r):no(e,t,r)}),a}),Fa=oi(function(e,t,n){Dr(e,n,t)});function Ba(e,t){return(ms(e)?Qt:fo)(e,Ai(t,3))}var Ka=oi(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=To(function(e,t){if(null==e)return[];var n=t.length;return n>1&&zi(e,t[0],t[1])?t=[]:n>2&&zi(t[0],t[1],t[2])&&(t=[t[0]]),yo(e,Gr(t,1),[])}),$a=An||function(){return It.Date.now()};function Qa(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,xi(e,x,i,i,i,i,t)}function es(e,t){var n;if("function"!=typeof t)throw new rt(u);return e=Ys(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ts=To(function(e,t,n){var r=y;if(n.length){var o=En(n,ji(ts));r|=k}return xi(e,r,t,n,o)}),ns=To(function(e,t,n){var r=y|b;if(n.length){var o=En(n,ji(ns));r|=k}return xi(t,r,e,n,o)});function rs(e,t,n){var r,o,a,s,l,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new rt(u);function _(t){var n=r,a=o;return r=o=i,d=t,s=e.apply(a,n)}function m(e){var n=e-c;return c===i||n>=t||n<0||p&&e-d>=a}function y(){var e=$a();if(m(e))return b(e);l=ra(y,function(e){var n=t-(e-c);return p?qn(n,a-(e-d)):n}(e))}function b(e){return l=i,h&&r?_(e):(r=o=i,s)}function g(){var e=$a(),n=m(e);if(r=arguments,o=this,c=e,n){if(l===i)return function(e){return d=e,l=ra(y,t),f?_(e):s}(c);if(p)return l=ra(y,t),_(c)}return l===i&&(l=ra(y,t)),s}return t=Us(t)||0,Os(n)&&(f=!!n.leading,a=(p="maxWait"in n)?Jn(Us(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),g.cancel=function(){l!==i&&Bo(l),d=0,r=c=o=l=i},g.flush=function(){return l===i?s:b($a())},g}var os=To(function(e,t){return Rr(e,1,t)}),is=To(function(e,t,n){return Rr(e,Us(t)||0,n)});function as(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new rt(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(as.Cache||gr),n}function ss(e){if("function"!=typeof e)throw new rt(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}as.Cache=gr;var us=Xo(function(e,t){var n=(t=1==t.length&&ms(t[0])?Qt(t[0],yn(Ai())):Qt(Gr(t,1),yn(Ai()))).length;return To(function(r){for(var o=-1,i=qn(r.length,n);++o=t}),_s=ro(function(){return arguments}())?ro:function(e){return Ss(e)&<.call(e,"callee")&&!Ct.call(e,"callee")},ms=n.isArray,ys=Wt?yn(Wt):function(e){return Ss(e)&&Zr(e)==ue};function bs(e){return null!=e&&Ms(e.length)&&!Ts(e)}function gs(e){return Ss(e)&&bs(e)}var vs=Yn||Uu,ws=Yt?yn(Yt):function(e){return Ss(e)&&Zr(e)==q};function ks(e){if(!Ss(e))return!1;var t=Zr(e);return t==X||t==z||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Ts(e){if(!Os(e))return!1;var t=Zr(e);return t==F||t==B||t==G||t==ee}function xs(e){return"number"==typeof e&&e==Ys(e)}function Ms(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=j}function Os(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ss(e){return null!=e&&"object"==typeof e}var Es=Vt?yn(Vt):function(e){return Ss(e)&&Vi(e)==K};function Ls(e){return"number"==typeof e||Ss(e)&&Zr(e)==Z}function Ps(e){if(!Ss(e)||Zr(e)!=Q)return!1;var t=Et(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ut.call(n)==pt}var Ds=Ut?yn(Ut):function(e){return Ss(e)&&Zr(e)==te};var Cs=Gt?yn(Gt):function(e){return Ss(e)&&Vi(e)==ne};function Is(e){return"string"==typeof e||!ms(e)&&Ss(e)&&Zr(e)==re}function js(e){return"symbol"==typeof e||Ss(e)&&Zr(e)==oe}var As=Jt?yn(Jt):function(e){return Ss(e)&&Ms(e.length)&&!!Ot[Zr(e)]};var Rs=gi(co),Hs=gi(function(e,t){return e<=t});function Ns(e){if(!e)return[];if(bs(e))return Is(e)?Cn(e):ni(e);if(Ht&&e[Ht])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ht]());var t=Vi(e);return(t==K?On:t==ne?Ln:fu)(e)}function Ws(e){return e?(e=Us(e))===I||e===-I?(e<0?-1:1)*A:e==e?e:0:0===e?e:0}function Ys(e){var t=Ws(e),n=t%1;return t==t?n?t-n:t:0}function Vs(e){return e?Ir(Ys(e),0,H):0}function Us(e){if("number"==typeof e)return e;if(js(e))return R;if(Os(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Os(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(je,"");var n=qe.test(e);return n||Xe.test(e)?Pt(e.slice(2),n?2:8):Je.test(e)?R:+e}function Gs(e){return ri(e,ou(e))}function Js(e){return null==e?"":Ro(e)}var qs=ii(function(e,t){if(Ki(t)||bs(t))ri(t,ru(t),e);else for(var n in t)lt.call(t,n)&&Sr(e,n,t[n])}),zs=ii(function(e,t){ri(t,ou(t),e)}),Xs=ii(function(e,t,n,r){ri(t,ou(t),e,r)}),Fs=ii(function(e,t,n,r){ri(t,ru(t),e,r)}),Bs=Li(Cr);var Ks=To(function(e,t){e=et(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&zi(t[0],t[1],o)&&(r=1);++n1),t}),ri(e,Di(e),n),r&&(n=jr(n,f|p|h,Si));for(var o=t.length;o--;)No(n,t[o]);return n});var uu=Li(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return Qs(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Qt(Di(e),function(e){return[e]});return t=Ai(t),bo(e,n,function(e,n){return t(e,n[0])})}var cu=Ti(ru),du=Ti(ou);function fu(e){return null==e?[]:bn(e,ru(e))}var pu=li(function(e,t,n){return t=t.toLowerCase(),e+(n?hu(t):t)});function hu(e){return ku(Js(e).toLowerCase())}function _u(e){return(e=Js(e))&&e.replace(Be,kn).replace(gt,"")}var mu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),yu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ui("toLowerCase");var gu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var vu=li(function(e,t,n){return e+(n?" ":"")+ku(t)});var wu=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),ku=ui("toUpperCase");function Tu(e,t,n){return e=Js(e),(t=n?i:t)===i?function(e){return Tt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Ye)||[]}(e):e.match(t)||[]}var xu=To(function(e,t){try{return qt(e,i,t)}catch(e){return ks(e)?e:new o(e)}}),Mu=Li(function(e,t){return Xt(t,function(t){t=la(t),Dr(e,t,ts(e[t],e))}),e});function Ou(e){return function(){return e}}var Su=fi(),Eu=fi(!0);function Lu(e){return e}function Pu(e){return so("function"==typeof e?e:jr(e,f))}var Du=To(function(e,t){return function(n){return no(n,e,t)}}),Cu=To(function(e,t){return function(n){return no(e,n,t)}});function Iu(e,t,n){var r=ru(t),o=Fr(t,r);null!=n||Os(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Fr(t,ru(t)));var i=!(Os(n)&&"chain"in n&&!n.chain),a=Ts(e);return Xt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=ni(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function ju(){}var Au=mi(Qt),Ru=mi(Bt),Hu=mi(rn);function Nu(e){return Xi(e)?fn(la(e)):function(e){return function(t){return Br(t,e)}}(e)}var Wu=bi(),Yu=bi(!0);function Vu(){return[]}function Uu(){return!1}var Gu=_i(function(e,t){return e+t},0),Ju=wi("ceil"),qu=_i(function(e,t){return e/t},1),zu=wi("floor");var Xu=_i(function(e,t){return e*t},1),Fu=wi("round"),Bu=_i(function(e,t){return e-t},0);return fr.after=function(e,t){if("function"!=typeof t)throw new rt(u);return e=Ys(e),function(){if(--e<1)return t.apply(this,arguments)}},fr.ary=Qa,fr.assign=qs,fr.assignIn=zs,fr.assignInWith=Xs,fr.assignWith=Fs,fr.at=Bs,fr.before=es,fr.bind=ts,fr.bindAll=Mu,fr.bindKey=ns,fr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ms(e)?e:[e]},fr.chain=Na,fr.chunk=function(e,t,r){t=(r?zi(e,t,r):t===i)?1:Jn(Ys(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=n(Hn(o/t));ao?0:o+n),(r=r===i||r>o?o:Ys(r))<0&&(r+=o),r=n>r?0:Vs(r);n>>0)?(e=Js(e))&&("string"==typeof t||null!=t&&!Ds(t))&&!(t=Ro(t))&&Mn(e)?Fo(Cn(e),0,n):e.split(t,n):[]},fr.spread=function(e,t){if("function"!=typeof e)throw new rt(u);return t=null==t?0:Jn(Ys(t),0),To(function(n){var r=n[t],o=Fo(n,0,t);return r&&en(o,r),qt(e,this,o)})},fr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},fr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:Ys(t))<0?0:t):[]},fr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:Ys(t)))<0?0:t,r):[]},fr.takeRightWhile=function(e,t){return e&&e.length?Yo(e,Ai(t,3),!1,!0):[]},fr.takeWhile=function(e,t){return e&&e.length?Yo(e,Ai(t,3)):[]},fr.tap=function(e,t){return t(e),e},fr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new rt(u);return Os(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),rs(e,t,{leading:r,maxWait:t,trailing:o})},fr.thru=Wa,fr.toArray=Ns,fr.toPairs=cu,fr.toPairsIn=du,fr.toPath=function(e){return ms(e)?Qt(e,la):js(e)?[e]:ni(ua(Js(e)))},fr.toPlainObject=Gs,fr.transform=function(e,t,n){var r=ms(e),o=r||vs(e)||As(e);if(t=Ai(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:Os(e)&&Ts(i)?pr(Et(e)):{}}return(o?Xt:zr)(e,function(e,r,o){return t(n,e,r,o)}),n},fr.unary=function(e){return Qa(e,1)},fr.union=Sa,fr.unionBy=Ea,fr.unionWith=La,fr.uniq=function(e){return e&&e.length?Ho(e):[]},fr.uniqBy=function(e,t){return e&&e.length?Ho(e,Ai(t,2)):[]},fr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Ho(e,i,t):[]},fr.unset=function(e,t){return null==e||No(e,t)},fr.unzip=Pa,fr.unzipWith=Da,fr.update=function(e,t,n){return null==e?e:Wo(e,t,qo(n))},fr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Wo(e,t,qo(n),r)},fr.values=fu,fr.valuesIn=function(e){return null==e?[]:bn(e,ou(e))},fr.without=Ca,fr.words=Tu,fr.wrap=function(e,t){return ls(qo(t),e)},fr.xor=Ia,fr.xorBy=ja,fr.xorWith=Aa,fr.zip=Ra,fr.zipObject=function(e,t){return Go(e||[],t||[],Sr)},fr.zipObjectDeep=function(e,t){return Go(e||[],t||[],Oo)},fr.zipWith=Ha,fr.entries=cu,fr.entriesIn=du,fr.extend=zs,fr.extendWith=Xs,Iu(fr,fr),fr.add=Gu,fr.attempt=xu,fr.camelCase=pu,fr.capitalize=hu,fr.ceil=Ju,fr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=Us(n))==n?n:0),t!==i&&(t=(t=Us(t))==t?t:0),Ir(Us(e),t,n)},fr.clone=function(e){return jr(e,h)},fr.cloneDeep=function(e){return jr(e,f|h)},fr.cloneDeepWith=function(e,t){return jr(e,f|h,t="function"==typeof t?t:i)},fr.cloneWith=function(e,t){return jr(e,h,t="function"==typeof t?t:i)},fr.conformsTo=function(e,t){return null==t||Ar(e,t,ru(t))},fr.deburr=_u,fr.defaultTo=function(e,t){return null==e||e!=e?t:e},fr.divide=qu,fr.endsWith=function(e,t,n){e=Js(e),t=Ro(t);var r=e.length,o=n=n===i?r:Ir(Ys(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},fr.eq=fs,fr.escape=function(e){return(e=Js(e))&&Me.test(e)?e.replace(Te,Tn):e},fr.escapeRegExp=function(e){return(e=Js(e))&&Ie.test(e)?e.replace(Ce,"\\$&"):e},fr.every=function(e,t,n){var r=ms(e)?Bt:Yr;return n&&zi(e,t,n)&&(t=i),r(e,Ai(t,3))},fr.find=Ua,fr.findIndex=_a,fr.findKey=function(e,t){return an(e,Ai(t,3),zr)},fr.findLast=Ga,fr.findLastIndex=ma,fr.findLastKey=function(e,t){return an(e,Ai(t,3),Xr)},fr.floor=zu,fr.forEach=Ja,fr.forEachRight=qa,fr.forIn=function(e,t){return null==e?e:Jr(e,Ai(t,3),ou)},fr.forInRight=function(e,t){return null==e?e:qr(e,Ai(t,3),ou)},fr.forOwn=function(e,t){return e&&zr(e,Ai(t,3))},fr.forOwnRight=function(e,t){return e&&Xr(e,Ai(t,3))},fr.get=$s,fr.gt=ps,fr.gte=hs,fr.has=function(e,t){return null!=e&&Ui(e,t,Qr)},fr.hasIn=Qs,fr.head=ba,fr.identity=Lu,fr.includes=function(e,t,n,r){e=bs(e)?e:fu(e),n=n&&!r?Ys(n):0;var o=e.length;return n<0&&(n=Jn(o+n,0)),Is(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},fr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Ys(n);return o<0&&(o=Jn(r+o,0)),un(e,t,o)},fr.inRange=function(e,t,n){return t=Ws(t),n===i?(n=t,t=0):n=Ws(n),function(e,t,n){return e>=qn(t,n)&&e=-j&&e<=j},fr.isSet=Cs,fr.isString=Is,fr.isSymbol=js,fr.isTypedArray=As,fr.isUndefined=function(e){return e===i},fr.isWeakMap=function(e){return Ss(e)&&Vi(e)==ae},fr.isWeakSet=function(e){return Ss(e)&&Zr(e)==se},fr.join=function(e,t){return null==e?"":Un.call(e,t)},fr.kebabCase=mu,fr.last=ka,fr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Ys(n))<0?Jn(r+o,0):qn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,cn,o,!0)},fr.lowerCase=yu,fr.lowerFirst=bu,fr.lt=Rs,fr.lte=Hs,fr.max=function(e){return e&&e.length?Vr(e,Lu,$r):i},fr.maxBy=function(e,t){return e&&e.length?Vr(e,Ai(t,2),$r):i},fr.mean=function(e){return dn(e,Lu)},fr.meanBy=function(e,t){return dn(e,Ai(t,2))},fr.min=function(e){return e&&e.length?Vr(e,Lu,co):i},fr.minBy=function(e,t){return e&&e.length?Vr(e,Ai(t,2),co):i},fr.stubArray=Vu,fr.stubFalse=Uu,fr.stubObject=function(){return{}},fr.stubString=function(){return""},fr.stubTrue=function(){return!0},fr.multiply=Xu,fr.nth=function(e,t){return e&&e.length?mo(e,Ys(t)):i},fr.noConflict=function(){return It._===this&&(It._=ht),this},fr.noop=ju,fr.now=$a,fr.pad=function(e,t,n){e=Js(e);var r=(t=Ys(t))?Dn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return yi(Nn(o),n)+e+yi(Hn(o),n)},fr.padEnd=function(e,t,n){e=Js(e);var r=(t=Ys(t))?Dn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Fn();return qn(e+o*(t-e+Lt("1e-"+((o+"").length-1))),t)}return wo(e,t)},fr.reduce=function(e,t,n){var r=ms(e)?tn:hn,o=arguments.length<3;return r(e,Ai(t,4),n,o,Nr)},fr.reduceRight=function(e,t,n){var r=ms(e)?nn:hn,o=arguments.length<3;return r(e,Ai(t,4),n,o,Wr)},fr.repeat=function(e,t,n){return t=(n?zi(e,t,n):t===i)?1:Ys(t),ko(Js(e),t)},fr.replace=function(){var e=arguments,t=Js(e[0]);return e.length<3?t:t.replace(e[1],e[2])},fr.result=function(e,t,n){var r=-1,o=(t=zo(t,e)).length;for(o||(o=1,e=i);++rj)return[];var n=H,r=qn(e,H);t=Ai(t),e-=H;for(var o=mn(r,t);++n=a)return e;var u=n-Dn(r);if(u<1)return r;var l=s?Fo(s,0,u).join(""):e.slice(0,u);if(o===i)return l+r;if(s&&(u+=l.length-u),Ds(o)){if(e.slice(u).search(o)){var c,d=l;for(o.global||(o=tt(o.source,Js(Ge.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var f=c.index;l=l.slice(0,f===i?u:f)}}else if(e.indexOf(Ro(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+r},fr.unescape=function(e){return(e=Js(e))&&xe.test(e)?e.replace(ke,In):e},fr.uniqueId=function(e){var t=++ct;return Js(e)+t},fr.upperCase=wu,fr.upperFirst=ku,fr.each=Ja,fr.eachRight=qa,fr.first=ba,Iu(fr,function(){var e={};return zr(fr,function(t,n){lt.call(fr.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),fr.VERSION="4.17.11",Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){fr[e].placeholder=fr}),Xt(["drop","take"],function(e,t){mr.prototype[e]=function(n){n=n===i?1:Jn(Ys(n),0);var r=this.__filtered__&&!t?new mr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,H),type:e+(r.__dir__<0?"Right":"")}),r},mr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Xt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==D||3==n;mr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ai(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Xt(["head","last"],function(e,t){var n="take"+(t?"Right":"");mr.prototype[e]=function(){return this[n](1).value()[0]}}),Xt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");mr.prototype[e]=function(){return this.__filtered__?new mr(this):this[n](1)}}),mr.prototype.compact=function(){return this.filter(Lu)},mr.prototype.find=function(e){return this.filter(e).head()},mr.prototype.findLast=function(e){return this.reverse().find(e)},mr.prototype.invokeMap=To(function(e,t){return"function"==typeof e?new mr(this):this.map(function(n){return no(n,e,t)})}),mr.prototype.reject=function(e){return this.filter(ss(Ai(e)))},mr.prototype.slice=function(e,t){e=Ys(e);var n=this;return n.__filtered__&&(e>0||t<0)?new mr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Ys(t))<0?n.dropRight(-t):n.take(t-e)),n)},mr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},mr.prototype.toArray=function(){return this.take(H)},zr(mr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=fr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(fr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof mr,l=s[0],c=u||ms(t),d=function(e){var t=o.apply(fr,en([e],s));return r&&f?t[0]:t};c&&n&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=a&&!f,_=u&&!p;if(!a&&c){t=_?t:new mr(this);var m=e.apply(t,s);return m.__actions__.push({func:Wa,args:[d],thisArg:i}),new _r(m,f)}return h&&_?e.apply(this,s):(m=this.thru(d),h?r?m.value()[0]:m.value():m)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);fr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ms(o)?o:[],e)}return this[n](function(n){return t.apply(ms(n)?n:[],e)})}}),zr(mr.prototype,function(e,t){var n=fr[t];if(n){var r=n.name+"";(rr[r]||(rr[r]=[])).push({name:t,func:n})}}),rr[pi(i,b).name]=[{name:"wrapper",func:i}],mr.prototype.clone=function(){var e=new mr(this.__wrapped__);return e.__actions__=ni(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ni(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ni(this.__views__),e},mr.prototype.reverse=function(){if(this.__filtered__){var e=new mr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},mr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ms(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},fr.prototype.plant=function(e){for(var t,n=this;n instanceof hr;){var r=da(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},fr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof mr){var t=e;return this.__actions__.length&&(t=new mr(this)),(t=t.reverse()).__actions__.push({func:Wa,args:[Oa],thisArg:i}),new _r(t,this.__chain__)}return this.thru(Oa)},fr.prototype.toJSON=fr.prototype.valueOf=fr.prototype.value=function(){return Vo(this.__wrapped__,this.__actions__)},fr.prototype.first=fr.prototype.head,Ht&&(fr.prototype[Ht]=function(){return this}),fr}();It._=jn,(o=function(){return jn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(12),n(3)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.toggleFullScreen=d,t.nullToEmptyStrings=f,t.findRowByPropName=p,t.getItemsByProperty=h,t.cleanupFilter=m,t.arePropTypesIdentical=t.getQueryString=void 0;var r=a(n(4)),o=n(41),i=a(n(1146));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}();var l=function(e){return i.default.stringify(Object.keys(e).reduce(function(t,n){var r=e[n];return Array.isArray(r)&&r.length>0?t[n]=r.join(","):r&&(t[n]=r),t},{}))};t.getQueryString=l;var c=function(e,t){for(var n=0,r=Object.keys(e);nw;w++)if((f||w in b)&&(m=g(_=b[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return w;case 2:k.push(_)}else if(c)return!1;return d?-1:l||c?c:k}}},function(e,t,n){var r=n(6),o=n(26),i=n(16);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,n){var r=n(140),o=n(101),i=n(48),a=n(81),s=n(50),u=n(688),l=Object.getOwnPropertyDescriptor;t.f=n(30)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},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("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(63);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";e.exports=function(){}},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(1215)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(104),o=n(36),i=n(84),a=n(33),s=n(18),u=function(){function e(){}return e.prototype.decode=function(e,t){try{return this.doDecode(e,t)}catch(p){if(t&&!0===t.get(o.default.TRY_HARDER)&&e.isRotateSupported()){var n=e.rotateCounterClockwise(),r=this.doDecode(n,t),u=r.getResultMetadata(),l=270;null!==u&&!0===u.get(i.default.ORIENTATION)&&(l+=u.get(i.default.ORIENTATION)%360),r.putMetadata(i.default.ORIENTATION,l);var c=r.getResultPoints();if(null!==c)for(var d=n.getHeight(),f=0;f>(d?8:5));n=d?l:15;for(var p=Math.trunc(l/2),h=0;h=l)break;try{c=e.getBlackRow(m,c)}catch(e){continue}for(var y=function(e){if(1===e&&(c.reverse(),t&&!0===t.get(o.default.NEED_RESULT_POINT_CALLBACK))){var n=new Map;t.forEach(function(e,t){return n.set(t,e)}),n.delete(o.default.NEED_RESULT_POINT_CALLBACK),t=n}try{var r=b.decodeRow(m,c,t);if(1===e){r.putMetadata(i.default.ORIENTATION,180);var s=r.getResultPoints();null!==s&&(s[0]=new a.default(u-s[0].getX()-1,s[0].getY()),s[1]=new a.default(u-s[1].getX()-1,s[1].getY()))}return{value:r}}catch(e){}},b=this,g=0;g<2;g++){var v=y(g);if("object"==typeof v)return v.value}}throw new s.default},e.recordPattern=function(e,t,n){for(var r=n.length,o=0;o=i)throw new s.default;for(var a=!e.get(t),u=0,l=t;l0&&o>=0;)t.get(--n)!==i&&(o--,i=!i);if(o>=0)throw new s.default;e.recordPattern(t,n+1,r)},e.patternMatchVariance=function(e,t,n){for(var r=e.length,o=0,i=0,a=0;ad?c-d:d-c;if(f>n)return Number.POSITIVE_INFINITY;u+=f}return u/o},e}();t.default=u},function(e,t,n){(function(e,r){var o;/*! JSON v3.3.2 | https://bestiejs.github.io/json3 | Copyright 2012-2015, Kit Cambridge, Benjamin Tan | http://kit.mit-license.org */(function(){var i=n(1133),a={function:!0,object:!0},s=a[typeof t]&&t&&!t.nodeType&&t,u=a[typeof window]&&window||this,l=s&&a[typeof e]&&e&&!e.nodeType&&"object"==typeof r&&r;function c(e,t){e||(e=u.Object()),t||(t=u.Object());var n=e.Number||u.Number,r=e.String||u.String,o=e.Object||u.Object,i=e.Date||u.Date,s=e.SyntaxError||u.SyntaxError,l=e.TypeError||u.TypeError,d=e.Math||u.Math,f=e.JSON||u.JSON;"object"==typeof f&&f&&(t.stringify=f.stringify,t.parse=f.parse);var p,h=o.prototype,_=h.toString,m=h.hasOwnProperty;function y(e,t){try{e()}catch(e){t&&t()}}var b=new i(-0xc782b5b800cec);function g(e){if(null!=g[e])return g[e];var o;if("bug-string-char-index"==e)o="a"!="a"[0];else if("json"==e)o=g("json-stringify")&&g("date-serialization")&&g("json-parse");else if("date-serialization"==e){if(o=g("json-stringify")&&b){var a=t.stringify;y(function(){o='"-271821-04-20T00:00:00.000Z"'==a(new i(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==a(new i(864e13))&&'"-000001-01-01T00:00:00.000Z"'==a(new i(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==a(new i(-1))})}}else{var s,u='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==e){var l="function"==typeof(a=t.stringify);l&&((s=function(){return 1}).toJSON=s,y(function(){l="0"===a(0)&&"0"===a(new n)&&'""'==a(new r)&&a(_)===p&&a(p)===p&&a()===p&&"1"===a(s)&&"[1]"==a([s])&&"[null]"==a([p])&&"null"==a(null)&&"[null,null,null]"==a([p,_,null])&&a({a:[s,!0,!1,null,"\0\b\n\f\r\t"]})==u&&"1"===a(null,s)&&"[\n 1,\n 2\n]"==a([1,2],null,1)},function(){l=!1})),o=l}if("json-parse"==e){var c,d=t.parse;"function"==typeof d&&y(function(){0!==d("0")||d(!1)||(s=d(u),(c=5==s.a.length&&1===s.a[0])&&(y(function(){c=!d('"\t"')}),c&&y(function(){c=1!==d("01")}),c&&y(function(){c=1!==d("1.")})))},function(){c=!1}),o=c}}return g[e]=!!o}if(y(function(){b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMilliseconds()}),g["bug-string-char-index"]=g["date-serialization"]=g.json=g["json-stringify"]=g["json-parse"]=null,!g("json")){var v=g("bug-string-char-index"),w=function(e,t){var n,r,o,i=0;for(o in(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n)m.call(r,o)&&i++;return n=r=null,i?w=function(e,t){var n,r,o="[object Function]"==_.call(e);for(n in e)o&&"prototype"==n||!m.call(e,n)||(r="constructor"===n)||t(n);(r||m.call(e,n="constructor"))&&t(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],w=function(e,t){var n,o,i="[object Function]"==_.call(e),s=!i&&"function"!=typeof e.constructor&&a[typeof e.hasOwnProperty]&&e.hasOwnProperty||m;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)}),w(e,t)};if(!g("json-stringify")&&!g("date-serialization")){var k={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},T=function(e,t){return("000000"+(t||0)).slice(-e)},x=function(e){var t,n,r,o,i,a,s,u,l;if(b)t=function(e){n=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDate(),a=e.getUTCHours(),s=e.getUTCMinutes(),u=e.getUTCSeconds(),l=e.getUTCMilliseconds()};else{var c=d.floor,f=[0,31,59,90,120,151,181,212,243,273,304,334],p=function(e,t){return f[t]+365*(e-1970)+c((e-1969+(t=+(t>1)))/4)-c((e-1901+t)/100)+c((e-1601+t)/400)};t=function(e){for(o=c(e/864e5),n=c(o/365.2425)+1970-1;p(n+1,0)<=o;n++);for(r=c((o-p(n,0))/30.42);p(n,r+1)<=o;r++);o=1+o-p(n,r),a=c((i=(e%864e5+864e5)%864e5)/36e5)%24,s=c(i/6e4)%60,u=c(i/1e3)%60,l=i%1e3}}return(x=function(e){return e>-1/0&&e<1/0?(t(e),e=(n<=0||n>=1e4?(n<0?"-":"+")+T(6,n<0?-n:n):T(4,n))+"-"+T(2,r+1)+"-"+T(2,o)+"T"+T(2,a)+":"+T(2,s)+":"+T(2,u)+"."+T(3,l)+"Z",n=r=o=a=s=u=l=null):e=null,e})(e)};if(g("json-stringify")&&!g("date-serialization")){function M(e){return x(this)}var O=t.stringify;t.stringify=function(e,t,n){var r=i.prototype.toJSON;i.prototype.toJSON=M;var o=O(e,t,n);return i.prototype.toJSON=r,o}}else{var S=function(e){var t=e.charCodeAt(0),n=k[t];return n||"\\u00"+T(2,t.toString(16))},E=/[\x00-\x1f\x22\x5c]/g,L=function(e){return E.lastIndex=0,'"'+(E.test(e)?e.replace(E,S):e)+'"'},P=function(e,t,n,r,o,a,s){var u,c,d,f,h,m,b,g,v;if(y(function(){u=t[e]}),"object"==typeof u&&u&&(u.getUTCFullYear&&"[object Date]"==_.call(u)&&u.toJSON===i.prototype.toJSON?u=x(u):"function"==typeof u.toJSON&&(u=u.toJSON(e))),n&&(u=n.call(t,e,u)),u==p)return u===p?u:"null";switch("object"==(c=typeof u)&&(d=_.call(u)),d||c){case"boolean":case"[object Boolean]":return""+u;case"number":case"[object Number]":return u>-1/0&&u<1/0?""+u:"null";case"string":case"[object String]":return L(""+u)}if("object"==typeof u){for(b=s.length;b--;)if(s[b]===u)throw l();if(s.push(u),f=[],g=a,a+=o,"[object Array]"==d){for(m=0,b=u.length;m0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||A();e+=I("0x"+i.slice(t,D));break;default:A()}else{if(34==o)break;for(o=i.charCodeAt(D),t=D;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++D);e+=i.slice(t,D)}if(34==i.charCodeAt(D))return D++,e;A();default:if(t=D,45==o&&(r=!0,o=i.charCodeAt(++D)),o>=48&&o<=57){for(48==o&&((o=i.charCodeAt(D+1))>=48&&o<=57)&&A(),r=!1;D=48&&o<=57);D++);if(46==i.charCodeAt(D)){for(n=++D;n57);n++);n==D&&A(),D=n}if(101==(o=i.charCodeAt(D))||69==o){for(43!=(o=i.charCodeAt(++D))&&45!=o||D++,n=D;n57);n++);n==D&&A(),D=n}return+i.slice(t,D)}r&&A();var s=i.slice(D,D+4);if("true"==s)return D+=4,!0;if("fals"==s&&101==i.charCodeAt(D+4))return D+=5,!1;if("null"==s)return D+=4,null;A()}return"$"},H=function(e){var t,n;if("$"==e&&A(),"string"==typeof e){if("@"==(v?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=R());)n?","==e?"]"==(e=R())&&A():A():n=!0,","==e&&A(),t.push(H(e));return t}if("{"==e){for(t={};"}"!=(e=R());)n?","==e?"}"==(e=R())&&A():A():n=!0,","!=e&&"string"==typeof e&&"@"==(v?e.charAt(0):e[0])&&":"==R()||A(),t[e.slice(1)]=H(R());return t}A()}return e},N=function(e,t,n){var r=W(e,t,n);r===p?delete e[t]:e[t]=r},W=function(e,t,n){var r,o=e[t];if("object"==typeof o&&o)if("[object Array]"==_.call(o))for(r=o.length;r--;)N(_,w,o);else w(o,function(e){N(o,e,n)});return n.call(e,t,o)};t.parse=function(e,t){var n,r;return D=0,C=""+e,n=H(R()),"$"!=R()&&A(),D=C=null,t&&"[object Function]"==_.call(t)?W(((r={})[""]=n,r),"",t):n}}}return t.runInContext=c,t}if(!l||l.global!==l&&l.window!==l&&l.self!==l||(u=l),s&&!i)c(u,s);else{var d=u.JSON,f=u.JSON3,p=!1,h=c(u,u.JSON3={noConflict:function(){return p||(p=!0,u.JSON=d,u.JSON3=f,d=f=null),h}});u.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(3)(e),n(12))},function(e,t,n){"use strict";if(n(30)){var r=n(99),o=n(17),i=n(16),a=n(6),s=n(170),u=n(249),l=n(64),c=n(113),d=n(101),f=n(49),p=n(112),h=n(62),_=n(24),m=n(661),y=n(97),b=n(81),g=n(50),v=n(139),w=n(14),k=n(35),T=n(257),x=n(96),M=n(94),O=n(95).f,S=n(255),E=n(100),L=n(21),P=n(59),D=n(180),C=n(138),I=n(253),j=n(115),A=n(177),R=n(114),H=n(254),N=n(670),W=n(29),Y=n(61),V=W.f,U=Y.f,G=o.RangeError,J=o.TypeError,q=o.Uint8Array,z=Array.prototype,X=u.ArrayBuffer,F=u.DataView,B=P(0),K=P(2),Z=P(3),$=P(4),Q=P(5),ee=P(6),te=D(!0),ne=D(!1),re=I.values,oe=I.keys,ie=I.entries,ae=z.lastIndexOf,se=z.reduce,ue=z.reduceRight,le=z.join,ce=z.sort,de=z.slice,fe=z.toString,pe=z.toLocaleString,he=L("iterator"),_e=L("toStringTag"),me=E("typed_constructor"),ye=E("def_constructor"),be=s.CONSTR,ge=s.TYPED,ve=s.VIEW,we=P(1,function(e,t){return Oe(C(e,e[ye]),t)}),ke=i(function(){return 1===new q(new Uint16Array([1]).buffer)[0]}),Te=!!q&&!!q.prototype.set&&i(function(){new q(1).set({})}),xe=function(e,t){var n=h(e);if(n<0||n%t)throw G("Wrong offset!");return n},Me=function(e){if(w(e)&&ge in e)return e;throw J(e+" is not a typed array!")},Oe=function(e,t){if(!(w(e)&&me in e))throw J("It is not a typed array constructor!");return new e(t)},Se=function(e,t){return Ee(C(e,e[ye]),t)},Ee=function(e,t){for(var n=0,r=t.length,o=Oe(e,r);r>n;)o[n]=t[n++];return o},Le=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},Pe=function(e){var t,n,r,o,i,a,s=k(e),u=arguments.length,c=u>1?arguments[1]:void 0,d=void 0!==c,f=S(s);if(void 0!=f&&!T(f)){for(a=f.call(s),r=[],t=0;!(i=a.next()).done;t++)r.push(i.value);s=r}for(d&&u>2&&(c=l(c,arguments[2],2)),t=0,n=_(s.length),o=Oe(this,n);n>t;t++)o[t]=d?c(s[t],t):s[t];return o},De=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Ce=!!q&&i(function(){pe.call(new q(1))}),Ie=function(){return pe.apply(Ce?de.call(Me(this)):Me(this),arguments)},je={copyWithin:function(e,t){return N.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 Se(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){B(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 le.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 ue.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=y(e,r);return new(C(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,_((void 0===t?r:y(t,r))-o))}},Ae=function(e,t){return Se(this,de.call(Me(this),e,t))},Re=function(e){Me(this);var t=xe(arguments[1],1),n=this.length,r=k(e),o=_(r.length),i=0;if(o+t>n)throw G("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,ke)}(this,n,e)},enumerable:!0})};g?(h=n(function(e,n,r,o){c(e,h,l,"_d");var i,a,s,u,d=0,p=0;if(w(n)){if(!(n instanceof X||"ArrayBuffer"==(u=v(n))||"SharedArrayBuffer"==u))return ge in n?Ee(h,n):Pe.call(h,n);i=n,p=xe(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw G("Wrong length!");if((a=y-p)<0)throw G("Wrong length!")}else if((a=_(o)*t)+p>y)throw G("Wrong length!");s=a/t}else s=m(n),i=new X(a=s*t);for(f(e,"_d",{b:i,o:p,l:a,e:s,v:new F(i)});dt?1:e>=t?0:NaN},n=function(e){return 1===e.length&&(e=function(e){return function(n,r){return t(e(n),r)}}(e)),{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},u=function(e,t){var n,r,o=e.length,i=0,a=-1,u=0,l=0;if(null==t)for(;++a1)return l/(i-1)},l=function(e,t){var n=u(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>=y?10:i>=b?5:i>=g?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=y?10:i>=b?5:i>=g?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>=y?o*=10:i>=b?o*=5:i>=g&&(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),u=+n(e[i+1],i+1,e);return a+(u-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},S=function(e){if(!(o=e.length))return[];for(var t=-1,n=O(e,E),r=new Array(n);++t=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}(e+"",r),i=-1,a=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++i0)for(var n,r,o=new Array(n),i=0;i=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),z.hasOwnProperty(t)?{space:z[t],local:e}:e},F=function(e){var t=X(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===q&&t.documentElement.namespaceURI===q?t.createElement(e):t.createElementNS(n,e)}})(t)},B=0;function K(){return new Z}function Z(){this._="@"+(++B).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 Te(e,t){return e.style.getPropertyValue(t)||ke(e).getComputedStyle(e,null).getPropertyValue(t)}function xe(e){return e.trim().split(/^|\s+/)}function Me(e){return e.classList||new Oe(e)}function Oe(e){this._node=e,this._names=xe(e.getAttribute("class")||"")}function Se(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 Ne(){return new He([[document.documentElement]],Re)}He.prototype=Ne.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=w&&(w=v+1);!(g=m[w])&&++w=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)):Te(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=xe(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 bt(t[1],t[2],t[3],1):(t=st.exec(e))?new bt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ut.exec(e))?_t(t[1],t[2],t[3],t[4]):(t=lt.exec(e))?_t(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ct.exec(e))?gt(t[1],t[2]/100,t[3]/100,1):(t=dt.exec(e))?gt(t[1],t[2]/100,t[3]/100,t[4]):ft.hasOwnProperty(e)?ht(ft[e]):"transparent"===e?new bt(NaN,NaN,NaN,0):null}function ht(e){return new bt(e>>16&255,e>>8&255,255&e,1)}function _t(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function mt(e){return e instanceof Qe||(e=pt(e)),e?new bt((e=e.rgb()).r,e.g,e.b,e.opacity):new bt}function yt(e,t,n,r){return 1===arguments.length?mt(e):new bt(e,t,n,null==r?1:r)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function gt(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,u=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n0&&u<1?0:a,new wt(a,s,u,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(bt,yt,$e(Qe,{brighter:function(e){return e=null==e?et:Math.pow(et,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new bt(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 bt(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 Tt=Math.PI/180,xt=180/Math.PI,Mt=.95047,Ot=1,St=1.08883,Et=4/29,Lt=6/29,Pt=3*Lt*Lt,Dt=Lt*Lt*Lt;function Ct(e){if(e instanceof jt)return new jt(e.l,e.a,e.b,e.opacity);if(e instanceof Yt){var t=e.h*Tt;return new jt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof bt||(e=mt(e));var n=Nt(e.r),r=Nt(e.g),o=Nt(e.b),i=At((.4124564*n+.3575761*r+.1804375*o)/Mt),a=At((.2126729*n+.7151522*r+.072175*o)/Ot),s=At((.0193339*n+.119192*r+.9503041*o)/St);return new jt(116*a-16,500*(i-a),200*(a-s),e.opacity)}function It(e,t,n,r){return 1===arguments.length?Ct(e):new jt(e,t,n,null==r?1:r)}function jt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function At(e){return e>Dt?Math.pow(e,1/3):e/Pt+Et}function Rt(e){return e>Lt?e*e*e:Pt*(e-Et)}function Ht(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Wt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Yt)return new Yt(e.h,e.c,e.l,e.opacity);e instanceof jt||(e=Ct(e));var t=Math.atan2(e.b,e.a)*xt;return new Yt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Yt(e,t,n,null==r?1:r)}function Yt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}Ze(jt,It,$e(Qe,{brighter:function(e){return new jt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new jt(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=St*Rt(n),new bt(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(Yt,Wt,$e(Qe,{brighter:function(e){return new Yt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Yt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Ct(this).rgb()}}));var Vt=-.14861,Ut=1.78277,Gt=-.29227,Jt=-.90649,qt=1.97294,zt=qt*Jt,Xt=qt*Ut,Ft=Ut*Gt-Jt*Vt;function Bt(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 bt||(e=mt(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Ft*r+zt*t-Xt*n)/(Ft+zt-Xt),i=r-o,a=(qt*(n-o)-Gt*i)/Jt,s=Math.sqrt(a*a+i*i)/(qt*o*(1-o)),u=s?Math.atan2(a,i)*xt-120:NaN;return new Kt(u<0?u+360:u,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,Bt,$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)*Tt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new bt(255*(t+n*(Vt*r+Ut*o)),255*(t+n*(Gt*r+Jt*o)),255*(t+n*(qt*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=yt(e)).r,(t=yt(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,u.push({i:a,x:mn(n,r)})),i=gn.lastIndex;return i180?t+=360:t-e>180&&(e+=360),i.push({i:n.push(o(n)+"rotate(",null,r)-2,x:mn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(i.rotate,a.rotate,s,u),function(e,t,n,i){e!==t?i.push({i:n.push(o(n)+"skewX(",null,r)-2,x:mn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(i.skewX,a.skewX,s,u),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:mn(e,n)},{i:s-2,x:mn(t,r)})}else 1===n&&1===r||i.push(o(i)+"scale("+n+","+r+")")}(i.scaleX,i.scaleY,a.scaleX,a.scaleY,s,u),i=a=null,function(e){for(var t,n=-1,r=u.length;++n=0&&t._call.call(null,e),t=t._next;--Gn}function rr(){Fn=(Xn=Kn.now())+Bn,Gn=Jn=0;try{nr()}finally{Gn=0,function(){for(var e,t,n=Wn,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:Wn=t);Yn=e,ir(r)}(),Fn=0}}function or(){var e=Kn.now(),t=e-Xn;t>zn&&(Bn-=t,Xn=e)}function ir(e){if(!Gn){Jn&&(Jn=clearTimeout(Jn));var t=e-Fn;t>24?(e<1/0&&(Jn=setTimeout(rr,t)),qn&&(qn=clearInterval(qn))):(qn||(Xn=Fn,qn=setInterval(or,zn)),Gn=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||Yn===this||(Yn?Yn._next=this:Wn=this,Yn=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=V("start","end","interrupt"),ur=[],lr=0,cr=1,dr=2,fr=3,pr=4,hr=5,_r=6,mr=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(u){var l,c,d,f;if(n.state!==cr)return s();for(l in o)if((f=o[l]).name===n.name){if(f.state===fr)return ar(i);f.state===pr?(f.state=_r,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[l]):+llr)throw new Error("too late");return n}function br(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>dr)throw new Error("too late");return n}function gr(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)?yr:br;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=X(e),r="transform"===n?En: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=X(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+="")?Sn:kr;return null==t?this.styleTween(e,function(e,t){var n,r,o;return function(){var i=Te(this,e),a=(this.style.removeProperty(e),Te(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=Te(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=Te(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=Te(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",function(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}(this._id))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,o=gr(this.node(),n).tween,i=0,a=o.length;i0&&(r=i-h),T<0?f=p-_:T>0&&(a=s-_),w=fo,R.attr("cursor",bo.selection),W());break;default:return}lo()},!0).on("keyup.brush",function(){switch(e.event.keyCode){case 16:D&&(y=b=D=!1,W());break;case 18:w===ho&&(k<0?c=d:k>0&&(r=i),T<0?f=p:T>0&&(a=s),w=po,W());break;case 32:w===fo&&(e.event.altKey?(k&&(c=d-h*k,r=i+h*k),T&&(f=p-_*T,a=s+_*T),w=ho):(k<0?c=d:k>0&&(r=i),T<0?f=p:T>0&&(a=s),w=po),R.attr("cursor",bo[v]),W());break;default:return}lo()},!0).on("mousemove.brush",N,!0).on("mouseup.brush",Y,!0);Ge(e.event.view)}uo(),vr(g),u.call(g),j.start()}function N(){var e=de(g);!D||y||b||(Math.abs(e[0]-I[0])>Math.abs(e[1]-I[1])?b=!0:y=!0),I=e,m=!0,lo(),W()}function W(){var e;switch(h=I[0]-C[0],_=I[1]-C[1],w){case fo:case co:k&&(h=Math.max(S-r,Math.min(L-c,h)),i=r+h,d=c+h),T&&(_=Math.max(E-a,Math.min(P-f,_)),s=a+_,p=f+_);break;case po:k<0?(h=Math.max(S-r,Math.min(L-r,h)),i=r+h,d=c):k>0&&(h=Math.max(S-c,Math.min(L-c,h)),i=r,d=c+h),T<0?(_=Math.max(E-a,Math.min(P-a,_)),s=a+_,p=f):T>0&&(_=Math.max(E-f,Math.min(P-f,_)),s=a,p=f+_);break;case ho:k&&(i=Math.max(S,Math.min(L,r-h*k)),d=Math.max(S,Math.min(L,c+h*k))),T&&(s=Math.max(E,Math.min(P,a-_*T)),p=Math.max(E,Math.min(P,f+_*T)))}d1e-6)if(Math.abs(c*s-u*l)>1e-6&&o){var f=n-i,p=r-a,h=s*s+u*u,_=f*f+p*p,m=Math.sqrt(h),y=Math.sqrt(d),b=o*Math.tan((Ho-Math.acos((h+d-_)/(2*m*y)))/2),g=b/y,v=b/m;Math.abs(g-1)>1e-6&&(this._+="L"+(e+g*l)+","+(t+g*c)),this._+="A"+o+","+o+",0,0,"+ +(c*f>l*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*u)}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),u=e+a,l=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"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%No+No),d>Wo?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):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._}},Xo.prototype=Fo.prototype={constructor:Xo,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=Fo.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=u)return a;if(o)return o=!1,i;var t,r=l;if(34===e.charCodeAt(r)){for(var s=r;s++=(i=(_+y)/2))?_=i:y=i,(c=n>=(a=(m+b)/2))?m=a:b=a,o=p,!(p=p[d=c<<1|l]))return o[d]=h,e;if(s=+e._x.call(null,p.data),u=+e._y.call(null,p.data),t===s&&n===u)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),(l=t>=(i=(_+y)/2))?_=i:y=i,(c=n>=(a=(m+b)/2))?m=a:b=a}while((d=c<<1|l)==(f=(u>=a)<<1|s>=i));return o[f]=p,o[d]=h,e}var yi=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function bi(e){return e[0]}function gi(e){return e[1]}function vi(e,t,n){var r=new wi(null==t?bi:t,null==n?gi: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 Ti=vi.prototype=wi.prototype;function xi(e){return e.x+e.vx}function Mi(e){return e.y+e.vy}function Oi(e){return e.index}function Si(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ei(e){return e.x}function Li(e){return e.y}Ti.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},Ti.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return mi(this.cover(t,n),t,n,e)},Ti.addAll=function(e){var t,n,r,o,i=e.length,a=new Array(i),s=new Array(i),u=1/0,l=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,u=o-n,l=this._root;switch(s=(t<(r+i)/2)<<1|e<(n+o)/2){case 0:do{(a=new Array(4))[s]=l,l=a}while(i=r+(u*=2),e>(o=n+u)||t>i);break;case 1:do{(a=new Array(4))[s]=l,l=a}while(i=r+(u*=2),(n=o-u)>e||t>i);break;case 2:do{(a=new Array(4))[s]=l,l=a}while(r=i-(u*=2),e>(o=n+u)||r>t);break;case 3:do{(a=new Array(4))[s]=l,l=a}while(r=i-(u*=2),(n=o-u)>e||r>t)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=o,this._y1=i,this},Ti.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},Ti.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]]},Ti.find=function(e,t,n){var r,o,i,a,s,u,l,c=this._x0,d=this._y0,f=this._x1,p=this._y1,h=[],_=this._root;for(_&&h.push(new yi(_,c,d,f,p)),null==n?n=1/0:(c=e-n,d=t-n,f=e+n,p=t+n,n*=n);u=h.pop();)if(!(!(_=u.node)||(o=u.x0)>f||(i=u.y0)>p||(a=u.x1)=y)<<1|e>=m)&&(u=h[h.length-1],h[h.length-1]=h[h.length-1-l],h[h.length-1-l]=u)}else{var b=e-+this._x.call(null,_.data),g=t-+this._y.call(null,_.data),v=b*b+g*g;if(v=(s=(h+m)/2))?h=s:m=s,(c=a>=(u=(_+y)/2))?_=u:y=u,t=p,!(p=p[d=c<<1|l]))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)},Ti.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]},ji=function(e){return(e=Ii(Math.abs(e)))?e[1]:NaN},Ai=function(e,t){var n=Ii(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 Ai(100*e,t)},r:Ai,s:function(e,t){var n=Ii(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Pi=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")+Ii(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 Ni(e){return new Wi(e)}function Wi(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],u=!!t[7],l=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(u=!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=u,this.precision=l,this.type=c}Ni.prototype=Wi.prototype,Wi.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 Yi,Vi=function(e){return e},Ui=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Gi=function(e){var t=e.grouping&&e.thousands?function(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(n.substring(o-=s,o+s)),!((u+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}(e.grouping,e.thousands):Vi,n=e.currency,r=e.decimal,o=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Vi,i=e.percent||"%";function a(e){var a=(e=Ni(e)).fill,s=e.align,u=e.sign,l=e.symbol,c=e.zero,d=e.width,f=e.comma,p=e.precision,h=e.type,_="$"===l?n[0]:"#"===l&&/[boxX]/.test(h)?"0"+h.toLowerCase():"",m="$"===l?n[1]:/[%p]/.test(h)?i:"",y=Ri[h],b=!h||/[defgprs%]/.test(h);function g(e){var n,i,l,g=_,v=m;if("c"===h)v=y(e)+v,e="";else{var w=(e=+e)<0;if(e=y(Math.abs(e),p),w&&0==+e&&(w=!1),g=(w?"("===u?u:"-":"-"===u||"("===u?"":u)+g,v=v+("s"===h?Ui[8+Pi/3]:"")+(w&&"("===u?")":""),b)for(n=-1,i=e.length;++n(l=e.charCodeAt(n))||l>57){v=(46===l?r+e.slice(n+1):e.slice(n))+v,e=e.slice(0,n);break}}f&&!c&&(e=t(e,1/0));var k=g.length+e.length+v.length,T=k>1)+g+e+v+T.slice(k);break;default:e=T+g+e+v}return o(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)),g.toString=function(){return e+""},g}return{format:a,formatPrefix:function(e,t){var n=a(((e=Ni(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ji(t)/3))),o=Math.pow(10,-r),i=Ui[8+r/3];return function(e){return n(o*e)+i}}}};function Ji(t){return Yi=Gi(t),e.format=Yi.format,e.formatPrefix=Yi.formatPrefix,Yi}Ji({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var qi=function(e){return Math.max(0,-ji(Math.abs(e)))},zi=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ji(t)/3)))-ji(Math.abs(e)))},Xi=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ji(t)-ji(e))+1},Fi=function(){return new Bi};function Bi(){this.reset()}Bi.prototype={constructor:Bi,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 Bi;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,ua=Math.cos,la=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},_a=Math.sqrt,ma=Math.tan;function ya(e){return e>1?0:e<-1?Qi:Math.acos(e)}function ba(e){return e>1?ea:e<-1?-ea:Math.asin(e)}function ga(e){return(e=pa(e/2))*e}function va(){}function wa(e,t){e&&Ta.hasOwnProperty(e.type)&&Ta[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=ua(t),a=pa(t),s=Pa*a,u=La*i+s*ua(o),l=s*r*pa(o);Ya.add(sa(l,u)),Ea=e,La=i,Pa=a}function Xa(e){return[sa(e[1],e[0]),ba(e[2])]}function Fa(e){var t=e[0],n=e[1],r=ua(n);return[r*ua(t),r*pa(t),pa(n)]}function Ba(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=_a(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=Fi(),rs={point:os,lineStart:as,lineEnd:ss,polygonStart:function(){rs.point=us,rs.lineStart=ls,rs.lineEnd=cs,ns.reset(),Ua.polygonStart()},polygonEnd:function(){Ua.polygonEnd(),rs.point=os,rs.lineStart=as,rs.lineEnd=ss,Ya<0?(Da=-(Ia=180),Ca=-(ja=90)):ns>$i?ja=90:ns<-$i&&(Ca=-90),ts[0]=Da,ts[1]=Ia}};function os(e,t){es.push(ts=[Da=e,Ia=e]),tja&&(ja=t)}function is(e,t){var n=Fa([e*oa,t*oa]);if(Na){var r=Ka(Na,n),o=[r[1],-r[0],0],i=Ka(o,r);Qa(i),i=Xa(i);var a,s=e-Aa,u=s>0?1:-1,l=i[0]*ra*u,c=ia(s)>180;c^(u*Aaja&&(ja=a):c^(u*Aa<(l=(l+360)%360-180)&&lja&&(ja=t)),c?eds(Da,Ia)&&(Ia=e):ds(e,Ia)>ds(Da,Ia)&&(Da=e):Ia>=Da?(eIa&&(Ia=e)):e>Aa?ds(Da,e)>ds(Da,Ia)&&(Ia=e):ds(e,Ia)>ds(Da,Ia)&&(Da=e)}else es.push(ts=[Da=e,Ia=e]);tja&&(ja=t),Na=n,Aa=e}function as(){rs.point=is}function ss(){ts[0]=Da,ts[1]=Ia,rs.point=os,Na=null}function us(e,t){if(Na){var n=e-Aa;ns.add(ia(n)>180?n+(n>0?360:-360):n)}else Ra=e,Ha=t;Ua.point(e,t),is(e,t)}function ls(){Ua.lineStart()}function cs(){us(Ra,Ha),Ua.lineEnd(),ia(ns)>$i&&(Da=-(Ia=180)),ts[0]=Da,ts[1]=Ia,Na=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 Js(e,t,n){return(e%=na)?t||n?Us(zs(e),Xs(t,n)):zs(e):t||n?Xs(t,n):Gs}function qs(e){return function(t,n){return[(t+=e)>Qi?t-na:t<-Qi?t+na:t,n]}}function zs(e){var t=qs(e);return t.invert=qs(-e),t}function Xs(e,t){var n=ua(e),r=pa(e),o=ua(t),i=pa(t);function a(e,t){var a=ua(t),s=ua(e)*a,u=pa(e)*a,l=pa(t),c=l*n+s*r;return[sa(u*o-c*i,s*n-l*r),ba(c*o+u*i)]}return a.invert=function(e,t){var a=ua(t),s=ua(e)*a,u=pa(e)*a,l=pa(t),c=l*o-u*i;return[sa(u*o+l*i,s*n+c*r),ba(c*n-s*r)]},a}Gs.invert=Gs;var Fs=function(e){function t(t){return(t=e(t[0]*oa,t[1]*oa))[0]*=ra,t[1]*=ra,t}return e=Js(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 Bs(e,t,n,r,o,i){if(n){var a=ua(t),s=pa(t),u=r*n;null==o?(o=t+r*na,i=t-u/2):(o=Ks(a,o),i=Ks(a,i),(r>0?oi)&&(o+=r*na));for(var l,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],u=e[1],l=t[0],c=t[1],d=0,f=1,p=l-s,h=c-u;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-u,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]=u+d*h),f<1&&(t[0]=s+f*p,t[1]=u+f*h),!0}}}}},Qs=function(e,t){return ia(e[0]-t[0])<$i&&ia(e[1]-t[1])<$i};function eu(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 tu=function(e,t,n,r,o){var i,a,s=[],u=[];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=l[i])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,l=f.z,p=!p}while(!f.v);o.lineEnd()}}};function nu(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0)do{l.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==d);else l.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 u(e.x,t.x)}function u(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 u,l,c,d,f,p,h,_,m,y,b,g=a,v=Zs(),w={point:k,lineStart:function(){w.point=T,l&&l.push(c=[]),y=!0,m=!1,h=_=NaN},lineEnd:function(){u&&(T(d,f),p&&m&&v.rejoin(),u.push(v.result())),w.point=k,m&&g.lineEnd()},polygonStart:function(){g=v,u=[],l=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=l.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=b&&t,o=(u=M(u)).length;(n||o)&&(a.polygonStart(),n&&(a.lineStart(),i(null,null,1,a),a.lineEnd()),o&&tu(u,s,t,i,a),a.polygonEnd()),g=a,u=l=c=null}};function k(e,t){o(e,t)&&g.point(e,t)}function T(i,a){var s=o(i,a);if(l&&c.push([i,a]),y)d=i,f=a,p=s,y=!1,s&&(g.lineStart(),g.point(i,a));else if(s&&m)g.point(i,a);else{var u=[h=Math.max(ou,Math.min(ru,h)),_=Math.max(ou,Math.min(ru,_))],v=[i=Math.max(ou,Math.min(ru,i)),a=Math.max(ou,Math.min(ru,a))];$s(u,v,e,t,n,r)?(m||(g.lineStart(),g.point(u[0],u[1])),g.point(v[0],v[1]),s||g.lineEnd(),b=!1):s&&(g.lineStart(),g.point(i,a),b=!1)}h=i,_=a,m=s}return w}}var au,su,uu,lu=Fi(),cu=function(e,t){var n=t[0],r=t[1],o=[pa(n),-ua(n),0],i=0,a=0;lu.reset();for(var s=0,u=e.length;s=0?1:-1,x=T*k,M=x>Qi,O=h*v;if(lu.add(sa(O*T*pa(x),_*w+O*ua(x))),i+=M?k+T*na:k,M^f>=n^b>=n){var S=Ka(Fa(d),Fa(y));Qa(S);var E=Ka(o,S);Qa(E);var L=(M^k>=0?-1:1)*ba(E[2]);(r>L||r===L&&(S[0]||S[1]))&&(a+=M^k>=0?1:-1)}}return(i<-$i||i<$i&&lu<-$i)^1&a},du=Fi(),fu={sphere:va,point:va,lineStart:function(){fu.point=hu,fu.lineEnd=pu},lineEnd:va,polygonStart:va,polygonEnd:va};function pu(){fu.point=fu.lineEnd=va}function hu(e,t){au=e*=oa,su=pa(t*=oa),uu=ua(t),fu.point=_u}function _u(e,t){e*=oa;var n=pa(t*=oa),r=ua(t),o=ia(e-au),i=ua(o),a=pa(o),s=r*a,u=uu*n-su*r*i,l=su*n+uu*r*i;du.add(sa(_a(s*s+u*u),l)),au=e,su=n,uu=r}var mu=function(e){return du.reset(),Wa(e,fu),+du},yu=[null,null],bu={type:"LineString",coordinates:yu},gu=function(e,t){return yu[0]=e,yu[1]=t,mu(bu)},vu={Feature:function(e,t){return ku(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r$i}).map(u)).concat(m(la(i/p)*p,o,p).filter(function(e){return ia(e%_)>$i}).map(l))}return b.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},b.outline=function(){return{type:"Polygon",coordinates:[c(r).concat(d(a).slice(1),c(n).reverse().slice(1),d(s).reverse().slice(1))]}},b.extent=function(e){return arguments.length?b.extentMajor(e).extentMinor(e):b.extentMinor()},b.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),b.precision(y)):[[r,s],[n,a]]},b.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),b.precision(y)):[[t,i],[e,o]]},b.step=function(e){return arguments.length?b.stepMajor(e).stepMinor(e):b.stepMinor()},b.stepMajor=function(e){return arguments.length?(h=+e[0],_=+e[1],b):[h,_]},b.stepMinor=function(e){return arguments.length?(f=+e[0],p=+e[1],b):[f,p]},b.precision=function(f){return arguments.length?(y=+f,u=Eu(i,o,90),l=Lu(t,e,y),c=Eu(s,a,90),d=Lu(r,n,y),b):y},b.extentMajor([[-180,-90+$i],[180,90-$i]]).extentMinor([[-180,-80-$i],[180,80+$i]])}var Du,Cu,Iu,ju,Au=function(e){return e},Ru=Fi(),Hu=Fi(),Nu={point:va,lineStart:va,lineEnd:va,polygonStart:function(){Nu.lineStart=Wu,Nu.lineEnd=Uu},polygonEnd:function(){Nu.lineStart=Nu.lineEnd=Nu.point=va,Ru.add(ia(Hu)),Hu.reset()},result:function(){var e=Ru/2;return Ru.reset(),e}};function Wu(){Nu.point=Yu}function Yu(e,t){Nu.point=Vu,Du=Iu=e,Cu=ju=t}function Vu(e,t){Hu.add(ju*e-Iu*t),Iu=e,ju=t}function Uu(){Vu(Du,Cu)}var Gu,Ju,qu,zu,Xu=1/0,Fu=Xu,Bu=-Xu,Ku=Bu,Zu={point:function(e,t){eBu&&(Bu=e),tKu&&(Ku=t)},lineStart:va,lineEnd:va,polygonStart:va,polygonEnd:va,result:function(){var e=[[Xu,Fu],[Bu,Ku]];return Bu=Ku=-(Fu=Xu=1/0),e}},$u=0,Qu=0,el=0,tl=0,nl=0,rl=0,ol=0,il=0,al=0,sl={point:ul,lineStart:ll,lineEnd:fl,polygonStart:function(){sl.lineStart=pl,sl.lineEnd=hl},polygonEnd:function(){sl.point=ul,sl.lineStart=ll,sl.lineEnd=fl},result:function(){var e=al?[ol/al,il/al]:rl?[tl/rl,nl/rl]:el?[$u/el,Qu/el]:[NaN,NaN];return $u=Qu=el=tl=nl=rl=ol=il=al=0,e}};function ul(e,t){$u+=e,Qu+=t,++el}function ll(){sl.point=cl}function cl(e,t){sl.point=dl,ul(qu=e,zu=t)}function dl(e,t){var n=e-qu,r=t-zu,o=_a(n*n+r*r);tl+=o*(qu+e)/2,nl+=o*(zu+t)/2,rl+=o,ul(qu=e,zu=t)}function fl(){sl.point=ul}function pl(){sl.point=_l}function hl(){ml(Gu,Ju)}function _l(e,t){sl.point=ml,ul(Gu=qu=e,Ju=zu=t)}function ml(e,t){var n=e-qu,r=t-zu,o=_a(n*n+r*r);tl+=o*(qu+e)/2,nl+=o*(zu+t)/2,rl+=o,ol+=(o=zu*e-qu*t)*(qu+e),il+=o*(zu+t),al+=3*o,ul(qu=e,zu=t)}function yl(e){this._context=e}yl.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 bl,gl,vl,wl,kl,Tl=Fi(),xl={point:va,lineStart:function(){xl.point=Ml},lineEnd:function(){bl&&Ol(gl,vl),xl.point=va},polygonStart:function(){bl=!0},polygonEnd:function(){bl=null},result:function(){var e=+Tl;return Tl.reset(),e}};function Ml(e,t){xl.point=Ol,gl=wl=e,vl=kl=t}function Ol(e,t){wl-=e,kl-=t,Tl.add(_a(wl*wl+kl*kl)),wl=e,kl=t}function Sl(){this._string=[]}function El(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Sl.prototype={_radius:4.5,_circle:El(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=El(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 Ll=function(e,t,n,r){return function(o,i){var a,s,u,l=t(i),c=o.invert(r[0],r[1]),d=Zs(),f=t(d),p=!1,h={point:_,lineStart:y,lineEnd:b,polygonStart:function(){h.point=g,h.lineStart=v,h.lineEnd=w,s=[],a=[]},polygonEnd:function(){h.point=_,h.lineStart=y,h.lineEnd=b,s=M(s);var e=cu(a,c);s.length?(p||(i.polygonStart(),p=!0),tu(s,Dl,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 _(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function m(e,t){var n=o(e,t);l.point(n[0],n[1])}function y(){h.point=m,l.lineStart()}function b(){h.point=_,l.lineEnd()}function g(e,t){u.push([e,t]);var n=o(e,t);f.point(n[0],n[1])}function v(){f.lineStart(),u=[]}function w(){g(u[0][0],u[0][1]),f.lineEnd();var e,t,n,r,o=f.clean(),l=d.result(),c=l.length;if(u.pop(),a.push(u),u=null,c)if(1&o){if(n=l[0],(t=n.length-1)>0){for(p||(i.polygonStart(),p=!0),i.lineStart(),e=0;e1&&2&o&&l.push(l.pop().concat(l.shift())),s.push(l.filter(Pl))}return h}};function Pl(e){return e.length>1}function Dl(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 Cl=Ll(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,u=ia(i-n);ia(u-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&&u>=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=ua(r))*pa(n)-pa(r)*(o=ua(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 ua(e)*ua(t)>n}function a(e,t,r){var o=Fa(e),i=Fa(t),a=[1,0,0],s=Ka(o,i),u=Ba(s,s),l=s[0],c=u-l*l;if(!c)return!r&&e;var d=n*u/c,f=-n*l/c,p=Ka(a,s),h=$a(a,d),_=$a(s,f);Za(h,_);var m=p,y=Ba(h,m),b=Ba(m,m),g=y*y-b*(Ba(h,h)-1);if(!(g<0)){var v=_a(g),w=$a(m,(-y-v)/b);if(Za(w,h),w=Xa(w),!r)return w;var k,T=e[0],x=t[0],M=e[1],O=t[1];x0^w[1]<(ia(w[0]-T)<$i?M:O):M<=w[1]&&w[1]<=O:S>Qi^(T<=w[0]&&w[0]<=x)){var P=$a(m,(-y+v)/b);return Za(P,h),[w,Xa(P)]}}}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 Ll(i,function(e){var t,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(d,f){var p,h=[d,f],_=i(d,f),m=r?_?0:s(d,f):_?s(d+(d<0?Qi:-Qi),f):0;if(!t&&(l=u=_)&&e.lineStart(),_!==u&&(!(p=a(t,h))||Qs(t,p)||Qs(h,p))&&(h[0]+=$i,h[1]+=$i,_=i(h[0],h[1])),_!==u)c=0,_?(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^_){var y;m&n||!(y=a(h,t,!0))||(c=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!_||t&&Qs(t,h)||e.point(h[0],h[1]),t=h,u=_,n=m},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return c|(l&&u)<<1}}},function(n,r,o,i){Bs(i,e,t,o,n,r)},r?[0,-e]:[-Qi,e-Qi])};function jl(e){return function(t){var n=new Al;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Al(){}function Rl(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),Wa(n,e.stream(Zu));var a=Zu.result(),s=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),u=+t[0][0]+(r-s*(a[1][0]+a[0][0]))/2,l=+t[0][1]+(o-s*(a[1][1]+a[0][1]))/2;return null!=i&&e.clipExtent(i),e.scale(150*s).translate([u,l])}function Hl(e,t,n){return Rl(e,[[0,0],t],n)}Al.prototype={constructor:Al,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 Nl=16,Wl=ua(30*oa),Yl=function(e,t){return+t?function(e,t){function n(r,o,i,a,s,u,l,c,d,f,p,h,_,m){var y=l-r,b=c-o,g=y*y+b*b;if(g>4*t&&_--){var v=a+f,w=s+p,k=u+h,T=_a(v*v+w*w+k*k),x=ba(k/=T),M=ia(ia(k)-1)<$i||ia(i-d)<$i?(i+d)/2:sa(w,v),O=e(M,x),S=O[0],E=O[1],L=S-r,P=E-o,D=b*L-y*P;(D*D/g>t||ia((y*L+b*P)/g-.5)>.3||a*f+s*p+u*h2?e[2]%360*oa:0,E()):[m*ra,y*ra,b*ra]},M.precision=function(e){return arguments.length?(x=Yl(S,T=e*e),L()):_a(T)},M.fitExtent=function(e,t){return Rl(M,e,t)},M.fitSize=function(e,t){return Hl(M,e,t)},function(){return t=e.apply(this,arguments),M.invert=t.invert&&O,E()}}function Jl(e){var t=0,n=Qi/3,r=Gl(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 ql(e,t){var n=pa(e),r=(n+pa(t))/2;if(ia(r)<$i)return function(e){var t=ua(e);function n(e,n){return[e*t,pa(n)/t]}return n.invert=function(e,n){return[e/t,ba(n*t)]},n}(e);var o=1+n*(2*r-n),i=_a(o)/r;function a(e,t){var n=_a(o-2*r*pa(t))/r;return[n*pa(e*=r),i-n*ua(e)]}return a.invert=function(e,t){var n=i-t;return[sa(e,ia(n))/r*ha(n),ba((o-(e*e+n*n)*r*r)/(2*r))]},a}var zl=function(){return Jl(ql).scale(155.424).center([0,33.6442])},Xl=function(){return zl().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function Fl(e){return function(t,n){var r=ua(t),o=ua(n),i=e(r*o);return[i*o*pa(t),i*pa(n)]}}function Bl(e){return function(t,n){var r=_a(t*t+n*n),o=e(r),i=pa(o),a=ua(o);return[sa(t*i,r*a),ba(r&&n*i/r)]}}var Kl=Fl(function(e){return _a(2/(1+e))});Kl.invert=Bl(function(e){return 2*ba(e/2)});var Zl=Fl(function(e){return(e=ya(e))&&e/pa(e)});function $l(e,t){return[e,da(ma((ea+t)/2))]}function Ql(e){var t,n,r,o=Ul(e),i=o.center,a=o.scale,s=o.translate,u=o.clipExtent,l=null;function c(){var i=Qi*a(),s=o(Fs(o.rotate()).invert([0,0]));return u(null==l?[[s[0]-i,s[1]-i],[s[0]+i,s[1]+i]]:e===$l?[[Math.max(s[0]-i,l),t],[Math.min(s[0]+i,n),r]]:[[l,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?l=t=n=r=null:(l=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==l?null:[[l,t],[n,r]]},c()}function ec(e){return ma((ea+e)/2)}function tc(e,t){var n=ua(e),r=e===t?pa(e):da(n/ua(t))/da(ec(t)/ec(e)),o=n*fa(ec(e),r)/r;if(!r)return $l;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*ua(r*e)]}return i.invert=function(e,t){var n=o-t,i=ha(r)*_a(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=ua(e),r=e===t?pa(e):(n-ua(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*ua(i)]}return i.invert=function(e,t){var n=o-t;return[sa(e,ia(n))/r*ha(n),o-ha(r)*_a(e*e+n*n)]},i}function oc(e,t){var n=ua(t),r=ua(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?Au:jl({point:function(o,i){this.stream.point(o*e+n,i*t+r)}})}function ac(e,t){return[ua(t)*pa(e),pa(t)]}function sc(e,t){var n=ua(t),r=1+ua(e)*n;return[n*pa(e)/r,pa(t)/r]}function uc(e,t){return[da(ma((ea+t)/2)),-e]}function lc(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 yc(e),u=+e.value&&(s.value=e.value),l=[s];for(null==t&&(t=hc);n=l.pop();)if(u&&(n.value=+n.data.value),(o=t(n.data))&&(a=o.length))for(n.children=new Array(a),i=a-1;i>=0;--i)l.push(r=n.children[i]=new yc(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(mc)}function hc(e){return e.children}function _c(e){e.data=e.data.data}function mc(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function yc(e){this.data=e,this.depth=this.height=0,this.parent=null}Zl.invert=Bl(function(e){return e}),$l.invert=function(e,t){return[e,2*aa(ca(t))-ea]},nc.invert=nc,oc.invert=Bl(aa),ac.invert=Bl(ba),sc.invert=Bl(function(e){return 2*aa(e)}),uc.invert=function(e,t){return[-t,2*aa(ca(e))-ea]},yc.prototype=pc.prototype={constructor:yc,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(_c)}};var bc=Array.prototype.slice,gc=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}(bc.call(e))).length,i=[];r0&&n*n>r*r+o*o}function Tc(e,t){for(var n=0;nn*n+r*r}function Lc(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 Pc(e){this._=e,this.next=null,this.previous=null}function Dc(e){if(!(o=e.length))return 0;var t,n,r,o,i,a,s,u,l,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;Sc(n,t,r=e[2]),t=new Pc(t),n=new Pc(n),r=new Pc(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;sf&&(f=s),m=c*c*_,(p=Math.max(f/m,m/d))>h){c-=s;break}h=p}y.push(a={value:c,dice:u1?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,u,l,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 ud(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function ld(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 ud(e)}ud.prototype=pd.prototype={constructor:ud,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),ld(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()},_d=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),md=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),yd=function e(t){function n(){var e=md.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(hd),bd=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,u)}catch(e){return void a.call("error",n,e)}else t=u;a.call("load",n,t)}else a.call("error",n,e)}if("undefined"==typeof XDomainRequest||"withCredentials"in u||!/^(http(s)?:)?\/\//.test(e)||(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=u.ontimeout=f:u.onreadystatechange=function(e){u.readyState>3&&f(e)},u.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?l:(l=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 u.open(t,e,!0,l,c),null==r||s.has("accept")||s.set("accept",r+",*/*"),u.setRequestHeader&&s.each(function(e,t){u.setRequestHeader(t,e)}),null!=r&&u.overrideMimeType&&u.overrideMimeType(r),null!=i&&(u.responseType=i),d>0&&(u.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,u),u.send(null==o?null:o),n},abort:function(){return u.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}},Td=kd("text/html",function(e){return document.createRange().createContextualFragment(e.responseText)}),xd=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}),Sd=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}},Ed=Sd("text/csv",ii),Ld=Sd("text/tab-separated-values",ci),Pd=Array.prototype,Dd=Pd.map,Cd=Pd.slice,Id={name:"implicit"};function jd(e){var t=Fo(),n=[],r=Id;function o(o){var i=o+"",a=t.get(i);if(!a){if(r!==Id)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=Fo();for(var r,i,a=-1,s=e.length;++a2?Vd:Yd,r=o=null,c}function c(t){return(r||(r=n(i,a,u?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,Wd,u?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=Dd.call(e,Hd),l()):i.slice()},c.range=function(e){return arguments.length?(a=Cd.call(e),l()):a.slice()},c.rangeRound=function(e){return a=Cd.call(e),s=kn,l()},c.clamp=function(e){return arguments.length?(u=!!e,l()):u},c.interpolate=function(e){return arguments.length?(s=e,l()):s},l()}var Jd=function(t,n,r){var o,i=t[0],a=t[t.length-1],s=k(i,a,null==n?10:n);switch((r=Ni(null==r?",f":r)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=r.precision||isNaN(o=zi(s,u))||(r.precision=o),e.formatPrefix(r,u);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Xi(s,Math.max(Math.abs(i),Math.abs(a))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=qi(s))||(r.precision=o-2*("%"===r.type))}return e.format(r)};function qd(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 Jd(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,o=t(),i=0,a=o.length-1,s=o[i],u=o[a];return u0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=w(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=w(s,u,n)),r>0?(o[i]=Math.floor(s/r)*r,o[a]=Math.ceil(u/r)*r,t(o)):r<0&&(o[i]=Math.ceil(s*r)/r,o[a]=Math.floor(u*r)/r,t(o)),e},e}var zd=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,uf=6048e5,lf=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=lf.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,_f=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}),mf=_f.range;function yf(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)/uf})}var bf=yf(0),gf=yf(1),vf=yf(2),wf=yf(3),kf=yf(4),Tf=yf(5),xf=yf(6),Mf=bf.range,Of=gf.range,Sf=vf.range,Ef=wf.range,Lf=kf.range,Pf=Tf.range,Df=xf.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()}),If=Cf.range,jf=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()});jf.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 Af=jf.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,Nf=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()}),Wf=Nf.range,Yf=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}),Vf=Yf.range;function Uf(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)/uf})}var Gf=Uf(0),Jf=Uf(1),qf=Uf(2),zf=Uf(3),Xf=Uf(4),Ff=Uf(5),Bf=Uf(6),Kf=Gf.range,Zf=Jf.range,$f=qf.range,Qf=zf.range,ep=Xf.range,tp=Ff.range,np=Bf.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 up(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 lp(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,u=e.shortMonths,l=bp(o),c=gp(o),d=bp(i),f=gp(i),p=bp(a),h=gp(a),_=bp(s),m=gp(s),y=bp(u),b=gp(u),g={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:jp,e:jp,H:Ap,I:Rp,j:Hp,L:Np,m:Wp,M:Yp,p:function(e){return o[+(e.getHours()>=12)]},S:Vp,U:Up,w:Gp,W:Jp,x:null,X:null,y:qp,Y:zp,Z:Xp,"%":uh},v={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Fp,e:Fp,H:Bp,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,"%":uh},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=y.exec(t.slice(n));return r?(e.m=b[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return x(e,t,n,r)},d:Sp,e:Sp,H:Lp,I:Lp,j:Ep,L:Cp,m:Op,M:Pp,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},S:Dp,U:wp,w:vp,W:kp,x:function(e,t,r){return x(e,n,t,r)},X:function(e,t,n){return x(e,r,t,n)},y:xp,Y:Tp,Z:Mp,"%":Ip};function k(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++s=u)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 g.x=k(n,g),g.X=k(r,g),g.c=k(t,g),v.x=k(n,v),v.X=k(r,v),v.c=k(t,v),{format:function(e){var t=k(e+="",g);return t.toString=function(){return e},t},parse:function(e){var t=T(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=T(e,up);return t.toString=function(){return e},t}}}var dp,fp={"-":"",_:" ",0:"0"},pp=/^\s*\d+/,hp=/^%/,_p=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function mp(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 Sp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ep(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 Lp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Pp(e,t,n){var r=pp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Dp(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 Ip(e,t,n){var r=hp.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function jp(e,t){return mp(e.getDate(),t,2)}function Ap(e,t){return mp(e.getHours(),t,2)}function Rp(e,t){return mp(e.getHours()%12||12,t,2)}function Hp(e,t){return mp(1+_f.count(jf(e),e),t,3)}function Np(e,t){return mp(e.getMilliseconds(),t,3)}function Wp(e,t){return mp(e.getMonth()+1,t,2)}function Yp(e,t){return mp(e.getMinutes(),t,2)}function Vp(e,t){return mp(e.getSeconds(),t,2)}function Up(e,t){return mp(bf.count(jf(e),e),t,2)}function Gp(e){return e.getDay()}function Jp(e,t){return mp(gf.count(jf(e),e),t,2)}function qp(e,t){return mp(e.getFullYear()%100,t,2)}function zp(e,t){return mp(e.getFullYear()%1e4,t,4)}function Xp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+mp(t/60|0,"0",2)+mp(t%60,"0",2)}function Fp(e,t){return mp(e.getUTCDate(),t,2)}function Bp(e,t){return mp(e.getUTCHours(),t,2)}function Kp(e,t){return mp(e.getUTCHours()%12||12,t,2)}function Zp(e,t){return mp(1+Yf.count(ip(e),e),t,3)}function $p(e,t){return mp(e.getUTCMilliseconds(),t,3)}function Qp(e,t){return mp(e.getUTCMonth()+1,t,2)}function eh(e,t){return mp(e.getUTCMinutes(),t,2)}function th(e,t){return mp(e.getUTCSeconds(),t,2)}function nh(e,t){return mp(Gf.count(ip(e),e),t,2)}function rh(e){return e.getUTCDay()}function oh(e,t){return mp(Jf.count(ip(e),e),t,2)}function ih(e,t){return mp(e.getUTCFullYear()%100,t,2)}function ah(e,t){return mp(e.getUTCFullYear()%1e4,t,4)}function sh(){return"+0000"}function uh(){return"%"}function lh(t){return dp=cp(t),e.timeFormat=dp.format,e.timeParse=dp.parse,e.utcFormat=dp.utcFormat,e.utcParse=dp.utcParse,dp}lh({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,_h=24*hh,mh=7*_h,yh=30*_h,bh=365*_h;function gh(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,u,l){var c=Gd(Wd,mn),d=c.invert,f=c.domain,p=l(".%L"),h=l(":%S"),_=l("%I:%M"),m=l("%I %p"),y=l("%a %d"),b=l("%b %d"),g=l("%B"),v=l("%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,_h],[o,2,2*_h],[r,1,mh],[t,1,yh],[t,3,3*yh],[e,1,bh]];function T(n){return(s(n)=1?zh:e<=-1?-zh:Math.asin(e)}function Bh(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 e_(e,t,n,r,o,i,a){var s=e-n,u=t-r,l=(a?i:-i)/Gh(s*s+u*u),c=l*u,d=-l*s,f=e+c,p=t+d,h=n+c,_=r+d,m=(f+h)/2,y=(p+_)/2,b=h-f,g=_-p,v=b*b+g*g,w=o-i,k=f*_-h*p,T=(g<0?-1:1)*Gh(Yh(0,w*w*v-k*k)),x=(k*g-b*T)/v,M=(-k*b-g*T)/v,O=(k*g+b*T)/v,S=(-k*b+g*T)/v,E=x-m,L=M-y,P=O-m,D=S-y;return E*E+L*L>P*P+D*D&&(x=O,M=S),{cx:x,cy:M,x01:-c,y01:-d,x11:x*(o/w-1),y11:M*(o/w-1)}}function t_(e){this._context=e}t_.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 n_=function(e){return new t_(e)};function r_(e){return e[0]}function o_(e){return e[1]}var i_=function(){var e=r_,t=o_,n=Rh(!0),r=null,o=n_,i=null;function a(a){var s,u,l,c=a.length,d=!1;for(null==r&&(i=o(l=Vo())),s=0;s<=c;++s)!(s=c;--d)s.point(m[d],y[d]);s.lineEnd(),s.areaEnd()}_&&(m[l]=+e(f,l,u),y[l]=+n(f,l,u),s.point(t?+t(f,l,u):m[l],r?+r(f,l,u):y[l]))}if(p)return s=null,p+""||null}function l(){return i_().defined(o).curve(a).context(i)}return u.x=function(n){return arguments.length?(e="function"==typeof n?n:Rh(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:Rh(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Rh(+e),u):t},u.y=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"==typeof e?e:Rh(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Rh(+e),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(e){return arguments.length?(o="function"==typeof e?e:Rh(!!e),u):o},u.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),u):a},u.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),u):i},u},s_=function(e,t){return te?1:t>=e?0:NaN},u_=function(e){return e},l_=d_(n_);function c_(e){this._curve=e}function d_(e){function t(t){return new c_(e(t))}return t._curve=e,t}function f_(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(d_(e)):t()._curve},e}c_.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 p_=function(){return f_(i_().curve(l_))},h_=function(){var e=a_().curve(l_),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 f_(n())},delete e.lineX0,e.lineEndAngle=function(){return f_(r())},delete e.lineX1,e.lineInnerRadius=function(){return f_(o())},delete e.lineY0,e.lineOuterRadius=function(){return f_(i())},delete e.lineY1,e.curve=function(e){return arguments.length?t(d_(e)):t()._curve},e},__=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},m_=Array.prototype.slice;function y_(e){return e.source}function b_(e){return e.target}function g_(e){var t=y_,n=b_,r=r_,o=o_,i=null;function a(){var a,s=m_.call(arguments),u=t.apply(this,s),l=n.apply(this,s);if(i||(i=a=Vo()),e(i,+r.apply(this,(s[0]=u,s)),+o.apply(this,s),+r.apply(this,(s[0]=l,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 v_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function w_(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function k_(e,t,n,r,o){var i=__(t,n),a=__(t,n=(n+o)/2),s=__(r,n),u=__(r,o);e.moveTo(i[0],i[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}var T_={draw:function(e,t){var n=Math.sqrt(t/qh);e.moveTo(n,0),e.arc(0,0,n,0,Xh)}},x_={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()}},M_=Math.sqrt(1/3),O_=2*M_,S_={draw:function(e,t){var n=Math.sqrt(t/O_),r=n*M_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},E_=Math.sin(qh/10)/Math.sin(7*qh/10),L_=Math.sin(Xh/10)*E_,P_=-Math.cos(Xh/10)*E_,D_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=L_*n,o=P_*n;e.moveTo(0,-n),e.lineTo(r,o);for(var i=1;i<5;++i){var a=Xh*i/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*o,u*r+s*o)}e.closePath()}},C_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},I_=Math.sqrt(3),j_={draw:function(e,t){var n=-Math.sqrt(t/(3*I_));e.moveTo(0,2*n),e.lineTo(-I_*n,-n),e.lineTo(I_*n,-n),e.closePath()}},A_=-.5,R_=Math.sqrt(3)/2,H_=1/Math.sqrt(12),N_=3*(H_/2+1),W_={draw:function(e,t){var n=Math.sqrt(t/N_),r=n/2,o=n*H_,i=r,a=n*H_+n,s=-i,u=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,u),e.lineTo(A_*r-R_*o,R_*r+A_*o),e.lineTo(A_*i-R_*a,R_*i+A_*a),e.lineTo(A_*s-R_*u,R_*s+A_*u),e.lineTo(A_*r+R_*o,A_*o-R_*r),e.lineTo(A_*i+R_*a,A_*a-R_*i),e.lineTo(A_*s+R_*u,A_*u-R_*s),e.closePath()}},Y_=[T_,x_,S_,C_,D_,j_,W_],V_=function(){};function U_(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 G_(e){this._context=e}function J_(e){this._context=e}function q_(e){this._context=e}function z_(e,t){this._basis=new G_(e),this._beta=t}G_.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:U_(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:U_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},J_.prototype={areaStart:V_,areaEnd:V_,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:U_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},q_.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:U_(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},z_.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,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+r*a),this._beta*t[u]+(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 X_=function e(t){function n(e){return 1===t?new G_(e):new z_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function F_(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 B_(e,t){this._context=e,this._k=(1-t)/6}B_.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:F_(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:F_(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 K_=function e(t){function n(e){return new B_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Z_(e,t){this._context=e,this._k=(1-t)/6}Z_.prototype={areaStart:V_,areaEnd:V_,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:F_(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 $_=function e(t){function n(e){return new Z_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Q_(e,t){this._context=e,this._k=(1-t)/6}Q_.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:F_(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 em=function e(t){function n(e){return new Q_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function tm(e,t,n){var r=e._x1,o=e._y1,i=e._x2,a=e._y2;if(e._l01_a>Jh){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Jh){var l=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*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,i,a,e._x2,e._y2)}function nm(e,t){this._context=e,this._alpha=t}nm.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:tm(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 rm=function e(t){function n(e){return t?new nm(e,t):new B_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function om(e,t){this._context=e,this._alpha=t}om.prototype={areaStart:V_,areaEnd:V_,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:tm(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 im=function e(t){function n(e){return t?new om(e,t):new Z_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function am(e,t){this._context=e,this._alpha=t}am.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:tm(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 sm=function e(t){function n(e){return t?new am(e,t):new Q_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function um(e){this._context=e}function lm(e){return e<0?-1:1}function cm(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(lm(i)+lm(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function dm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fm(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 pm(e){this._context=e}function hm(e){this._context=new _m(e)}function _m(e){this._context=e}function mm(e){this._context=e}function ym(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 gm=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 wm(e,t){return e[t]}var km=function(e){var t=e.map(Tm);return vm(e).sort(function(e,n){return t[e]-t[n]})};function Tm(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-u,h||!(i<0)){if(i/=h,h<0){if(i>p)return;i>f&&(f=i)}else if(h>0){if(i0)){if(i/=_,_<0){if(i0){if(i>p)return;i>f&&(f=i)}if(i=o-l,_||!(i<0)){if(i/=_,_<0){if(i>p)return;i>f&&(f=i)}else if(_>0){if(i0||p<1)||(f>0&&(e[0]=[u+f*h,l+f*_]),p<1&&(e[1]=[u+p*h,l+p*_]),!0)}}}}}function Rm(e,t,n,r,o){var i=e[1];if(i)return!0;var a,s,u=e[0],l=e.left,c=e.right,d=l[0],f=l[1],p=c[0],h=c[1],_=(d+p)/2,m=(f+h)/2;if(h===f){if(_=r)return;if(d>p){if(u){if(u[1]>=o)return}else u=[_,n];i=[_,o]}else{if(u){if(u[1]1)if(d>p){if(u){if(u[1]>=o)return}else u=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(u){if(u[1]=r)return}else u=[t,a*t+s];i=[r,a*r+s]}else{if(u){if(u[0]=-ny)){var p=u*u+l*l,h=c*c+d*d,_=(d*p-l*h)/f,m=(u*h-c*p)/f,y=Vm.pop()||new function(){Em(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=e,y.site=o,y.x=_+a,y.y=(y.cy=m+s)+Math.sqrt(_*_+m*m),e.circle=y;for(var b=null,g=Qm._;g;)if(y.yty)s=s.L;else{if(!((o=i-Km(s,a))>ty)){r>-ty?(t=s.P,n=s):o>-ty?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){$m[e.index]={site:e,halfedges:[]}}(e);var u=qm(e);if(Zm.insert(t,u),t||n){if(t===n)return Gm(t),n=qm(t.site),Zm.insert(u,n),u.edge=n.edge=Cm(t.site,u.site),Um(t),void Um(n);if(n){Gm(t),Gm(n);var l=t.site,c=l[0],d=l[1],f=e[0]-c,p=e[1]-d,h=n.site,_=h[0]-c,m=h[1]-d,y=2*(f*m-p*_),b=f*f+p*p,g=_*_+m*m,v=[(m*b-p*g)/y+c,(f*g-_*b)/y+d];jm(n.edge,l,h,v),u.edge=Cm(l,e,null,v),n.edge=Cm(e,h,null,v),Um(t),Um(n)}else u.edge=Cm(t.site,u.site)}}function Bm(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],u=n[1],l=u-t;if(!l)return s;var c=s-r,d=1/i-1/l,f=c/l;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*l)-u+l/2+o-i/2)))/d+r:(r+s)/2}function Km(e,t){var n=e.N;if(n)return Bm(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Zm,$m,Qm,ey,ty=1e-6,ny=1e-12;function ry(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function oy(e,t){return t[1]-e[1]||t[0]-e[0]}function iy(e,t){var n,r,o,i=e.sort(oy).pop();for(ey=[],$m=new Array(e.length),Zm=new Sm,Qm=new Sm;;)if(o=Ym,i&&(!o||i[1]ty||Math.abs(o[0][1]-o[1][1])>ty)||delete ey[i]}(a,s,u,l),function(e,t,n,r){var o,i,a,s,u,l,c,d,f,p,h,_,m=$m.length,y=!0;for(o=0;oty||Math.abs(_-f)>ty)&&(u.splice(s,0,ey.push(Im(a,p,Math.abs(h-e)ty?[e,Math.abs(d-e)ty?[Math.abs(f-r)ty?[n,Math.abs(d-n)ty?[Math.abs(f-t)=s)return null;var u=e-o.site[0],l=t-o.site[1],c=u*u+l*l;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 u=e-s[0],l=t-s[1],d=u*u+l*l;de?1:t>=e?0:NaN},e.deviation=l,e.extent=c,e.histogram=function(){var e=_,t=c,n=T;function r(r){var i,a,s=r.length,u=new Array(s);for(i=0;id;)f.pop(),--p;var h,_=new Array(p+1);for(i=0;i<=p;++i)(h=_[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 u,l,c,d=-1,f=n.length,p=r[o++],h=Fo(),_=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=Fo,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=yt,e.hsl=vt,e.lab=It,e.hcl=Wt,e.cubehelix=Bt,e.dispatch=V,e.drag=function(){var t,n,r,o,i=Xe,a=Fe,s=Be,u={},l=V("start","drag","end"),c=0,d=0;function f(e){e.on("mousedown.drag",p).filter(Ke).on("touchstart.drag",m).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!o&&i.apply(this,arguments)){var s=g("mouse",a.apply(this,arguments),de,this,arguments);s&&(We(e.event.view).on("mousemove.drag",h,!0).on("mouseup.drag",_,!0),Ge(e.event.view),Ve(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function h(){if(Ue(),!r){var o=e.event.clientX-t,i=e.event.clientY-n;r=o*o+i*i>d}u.mouse("drag")}function _(){We(e.event.view).on("mousemove.drag mouseup.drag",null),Je(e.event.view,r),Ue(),u.mouse("end")}function m(){if(i.apply(this,arguments)){var t,n,r=e.event.changedTouches,o=a.apply(this,arguments),s=r.length;for(t=0;tu+p||ol+p||is.index){var h=u-a.x-a.vx,_=l-a.y-a.vy,m=h*h+_*_;me.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=_i(),p+=c*c),0===d&&(d=_i(),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,u,l=0,c=e.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(e,n),t):l.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,Da=o[0],Ia=r[1])}return es=ts=null,Da===1/0||Ca===1/0?[[NaN,NaN],[NaN,NaN]]:[[Da,Ca],[Ia,ja]]},e.geoCentroid=function(e){hs=_s=ms=ys=bs=gs=vs=ws=ks=Ts=xs=0,Wa(e,Ps);var t=ks,n=Ts,r=xs,o=t*t+n*n+r*r;return o<1e-12&&(t=gs,n=vs,r=ws,_s<$i&&(t=ms,n=ys,r=bs),(o=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[sa(n,t)*ra,ba(r/_a(o))*ra]},e.geoCircle=function(){var e,t,n=Vs([0,0]),r=Vs(90),o=Vs(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,u=o.apply(this,arguments)*oa;return e=[],t=Js(-a[0]*oa,-a[1]*oa,0).invert,Bs(i,s,u,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:Vs([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"==typeof e?e:Vs(+e),a):r},a.precision=function(e){return arguments.length?(o="function"==typeof e?e:Vs(+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=iu(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&&vu.hasOwnProperty(e.type)?vu[e.type]:ku)(e,t)},e.geoDistance=gu,e.geoGraticule=Pu,e.geoGraticule10=function(){return Pu()()},e.geoInterpolate=function(e,t){var n=e[0]*oa,r=e[1]*oa,o=t[0]*oa,i=t[1]*oa,a=ua(r),s=pa(r),u=ua(i),l=pa(i),c=a*ua(n),d=a*pa(n),f=u*ua(o),p=u*pa(o),h=2*ba(_a(ga(i-r)+a*u*ga(o-n))),_=pa(h),m=h?function(e){var t=pa(e*=h)/_,n=pa(h-e)/_,r=n*c+t*f,o=n*d+t*p,i=n*s+t*l;return[sa(o,r)*ra,sa(i,_a(r*r+o*o))*ra]}:function(){return[n*ra,r*ra]};return m.distance=h,m},e.geoLength=mu,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)),Wa(e,n(r))),r.result()}return i.area=function(e){return Wa(e,n(Nu)),Nu.result()},i.measure=function(e){return Wa(e,n(xl)),xl.result()},i.bounds=function(e){return Wa(e,n(Zu)),Zu.result()},i.centroid=function(e){return Wa(e,n(sl)),sl.result()},i.projection=function(t){return arguments.length?(n=null==t?(e=null,Au):(e=t).stream,i):e},i.context=function(e){return arguments.length?(r=null==e?(t=null,new Sl):new yl(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=Xl,e.geoAlbersUsa=function(){var e,t,n,r,o,i,a=Xl(),s=zl().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=zl().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={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?u:a).invert(e)},c.stream=function(n){return e&&t===n?e:e=function(e){var t=e.length;return{point:function(n,r){for(var o=-1;++o2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=uc,e.geoRotation=Fs,e.geoStream=Wa,e.geoTransform=function(e){return{stream:jl(e)}},e.cluster=function(){var e=lc,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),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),l=s.x-e(s,u)/2,c=u.x+e(u,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-l)/(c-l)*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=Ic;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Rc(e)).eachAfter(Hc(r,.5)).eachBefore(Nc(1)):o.eachBefore(Rc(Ac)).eachAfter(Hc(Ic,1)).eachAfter(Hc(r,o.r/Math.min(t,n))).eachBefore(Nc(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=function(e){return null==e?null:Cc(e)}(t),o):e},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:jc(+e),o):r},o},e.packSiblings=function(e){return Dc(e),e},e.packEnclose=gc,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&&Yc(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=zc,t=1,n=1,r=null;function o(o){var u=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(u.eachAfter(i),u.parent.m=-u.z,u.eachBefore(a),r)o.eachBefore(s);else{var l=o,c=o,d=o;o.eachBefore(function(e){e.xc.x&&(c=e),e.depth>d.depth&&(d=e)});var f=l===c?1:e(l,c)/2,p=f-l.x,h=t/(c.x+f+p),_=n/(d.depth||1);o.eachBefore(function(e){e.x=(e.x+p)*h,e.y=e.depth*_})}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,u=i.parent.children[0],l=i.m,c=a.m,d=s.m,f=u.m;s=Fc(s),i=Xc(i),s&&i;)u=Xc(u),(a=Fc(a)).a=t,(o=s.z+d-i.z-l+e(s._,i._))>0&&(Bc(Kc(s,t,r),t,o),l+=o,c+=o),d+=s.m,l+=i.m,f+=u.m,c+=a.m;s&&!Fc(a)&&(a.t=s,a.m+=d-c),i&&!Xc(u)&&(u.t=i,u.m+=l-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=Ic,a=Ic,s=Ic,u=Ic,l=Ic;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(Wc),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=u)}for(var d=l[t],f=r/2+d,p=t+1,h=n-1;p>>1;l[_]u-i){var b=(o*y+a*m)/r;e(t,p,m,o,i,b,u),e(p,n,y,b,i,a,u)}else{var g=(i*y+u*m)/r;e(t,p,m,o,i,a,g),e(p,n,y,o,g,a,u)}}(0,u,e.value,t,n,r,o)},e.treemapDice=Yc,e.treemapSlice=$c,e.treemapSliceDice=function(e,t,n,r,o){(1&e.depth?$c:Yc)(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=_n,e.interpolateNumber=mn,e.interpolateObject=yn,e.interpolateRound=kn,e.interpolateString=vn,e.interpolateTransformCss=Sn,e.interpolateTransformSvg=En,e.interpolateZoom=Dn,e.interpolateRgb=an,e.interpolateRgbBasis=fn,e.interpolateRgbBasisClosed=pn,e.interpolateHsl=In,e.interpolateHslLong=jn,e.interpolateLab=function(e,t){var n=on((e=It(e)).l,(t=It(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=Vn,e.interpolateCubehelixLong=Un,e.quantize=function(e,t){for(var n=new Array(t),r=0;r=0;--t)l.push(e[r[i[t]][2]]);for(t=+s;ts!=l>s&&a<(u-n)*(s-r)/(l-r)+n&&(c=!c),u=n,l=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],u=0;++r0){for(;fu)break;_.push(d)}}else for(;f=1;--c)if(!((d=l*c)u)break;_.push(d)}}else _=v(f,p,Math.min(p-f,h)).map(a);return t?_.reverse():_},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)},qd(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(jf,Cf,bf,_f,pf,df,lf,of,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return wh(ip,rp,Gf,Yf,Nf,Rf,lf,of,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=Th,e.schemeCategory20b=xh,e.schemeCategory20c=Mh,e.schemeCategory20=Oh,e.interpolateCubehelixDefault=Sh,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Ph.h=360*e-100,Ph.s=1.5-1.5*t,Ph.l=.8-.9*t,Ph+""},e.interpolateWarm=Eh,e.interpolateCool=Lh,e.interpolateViridis=Ch,e.interpolateMagma=Ih,e.interpolateInferno=jh,e.interpolatePlasma=Ah,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)},qd(i)},e.creator=F,e.local=K,e.matcher=te,e.mouse=de,e.namespace=X,e.namespaces=z,e.select=We,e.selectAll=function(e){return"string"==typeof e?new He([document.querySelectorAll(e)],[document.documentElement]):new He([null==e?[]:e],Re)},e.selection=Ne,e.selector=pe,e.selectorAll=_e,e.style=Te,e.touch=Ye,e.touches=function(e,t){null==t&&(t=le().touches);for(var n=0,r=t?t.length:0,o=new Array(r);nf;if(s||(s=u=Vo()),dJh)if(h>Xh-Jh)s.moveTo(d*Wh(f),d*Uh(f)),s.arc(0,0,d,f,p,!_),c>Jh&&(s.moveTo(c*Wh(p),c*Uh(p)),s.arc(0,0,c,p,f,_));else{var m,y,b=f,g=p,v=f,w=p,k=h,T=h,x=a.apply(this,arguments)/2,M=x>Jh&&(r?+r.apply(this,arguments):Gh(c*c+d*d)),O=Vh(Hh(d-c)/2,+n.apply(this,arguments)),S=O,E=O;if(M>Jh){var L=Fh(M/c*Uh(x)),P=Fh(M/d*Uh(x));(k-=2*L)>Jh?(v+=L*=_?1:-1,w-=L):(k=0,v=w=(f+p)/2),(T-=2*P)>Jh?(b+=P*=_?1:-1,g-=P):(T=0,b=g=(f+p)/2)}var D=d*Wh(b),C=d*Uh(b),I=c*Wh(w),j=c*Uh(w);if(O>Jh){var A=d*Wh(g),R=d*Uh(g),H=c*Wh(v),N=c*Uh(v);if(hJh?function(e,t,n,r,o,i,a,s){var u=n-e,l=r-t,c=a-o,d=s-i,f=(c*(t-i)-d*(e-o))/(d*u-c*l);return[e+f*u,t+f*l]}(D,C,H,N,A,R,I,j):[I,j],Y=D-W[0],V=C-W[1],U=A-W[0],G=R-W[1],J=1/Uh(function(e){return e>1?0:e<-1?qh:Math.acos(e)}((Y*U+V*G)/(Gh(Y*Y+V*V)*Gh(U*U+G*G)))/2),q=Gh(W[0]*W[0]+W[1]*W[1]);S=Vh(O,(c-q)/(J-1)),E=Vh(O,(d-q)/(J+1))}}T>Jh?E>Jh?(m=e_(H,N,D,C,d,E,_),y=e_(A,R,I,j,d,E,_),s.moveTo(m.cx+m.x01,m.cy+m.y01),EJh&&k>Jh?S>Jh?(m=e_(I,j,A,R,c,-S,_),y=e_(D,C,H,N,c,-S,_),s.lineTo(m.cx+m.x01,m.cy+m.y01),S0&&(p+=d);for(null!=t?h.sort(function(e,n){return t(_[e],_[n])}):null!=n&&h.sort(function(e,t){return n(a[e],a[t])}),s=0,l=p?(y-f*g)/p:0;s0?d*l:0)+g,_[u]={data:a[u],index:s,value:d,startAngle:m,endAngle:c,padAngle:b};return _}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=h_,e.radialArea=h_,e.lineRadial=p_,e.radialLine=p_,e.pointRadial=__,e.linkHorizontal=function(){return g_(v_)},e.linkVertical=function(){return g_(w_)},e.linkRadial=function(){var e=g_(k_);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=Rh(T_),t=Rh(64),n=null;function r(){var r;if(n||(n=r=Vo()),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=Y_,e.symbolCircle=T_,e.symbolCross=x_,e.symbolDiamond=S_,e.symbolSquare=C_,e.symbolStar=D_,e.symbolTriangle=j_,e.symbolWye=W_,e.curveBasisClosed=function(e){return new J_(e)},e.curveBasisOpen=function(e){return new q_(e)},e.curveBasis=function(e){return new G_(e)},e.curveBundle=X_,e.curveCardinalClosed=$_,e.curveCardinalOpen=em,e.curveCardinal=K_,e.curveCatmullRomClosed=im,e.curveCatmullRomOpen=sm,e.curveCatmullRom=rm,e.curveLinearClosed=function(e){return new um(e)},e.curveLinear=n_,e.curveMonotoneX=function(e){return new pm(e)},e.curveMonotoneY=function(e){return new hm(e)},e.curveNatural=function(e){return new mm(e)},e.curveStep=function(e){return new bm(e,.5)},e.curveStepAfter=function(e){return new bm(e,1)},e.curveStepBefore=function(e){return new bm(e,0)},e.stack=function(){var e=Rh([]),t=vm,n=gm,r=wm;function o(o){var i,a,s=e.apply(this,arguments),u=o.length,l=s.length,c=new Array(l);for(i=0;i0){for(var n,r,o,i=0,a=e[0].length;i1)for(var n,r,o,i,a,s,u=0,l=e[t[0]].length;u=0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):r[0]=i},e.stackOffsetNone=gm,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=Mm,t=Om,n=null;function r(r){return new iy(r.map(function(n,o){var i=[Math.round(e(n,o,r)/ty)*ty,Math.round(t(n,o,r)/ty)*ty];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:xm(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:xm(+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=fy,o=py,i=_y,a=0,s=1/0,u=-s,l=s,c=u,d=l,f=250,p=Dn,h=[],_=V("start","zoom","end"),m=500,y=150,b=0;function g(e){e.property("__zoom",hy).on("wheel.zoom",S).on("mousedown.zoom",E).on("dblclick.zoom",L).filter(my).on("touchstart.zoom",P).on("touchmove.zoom",D).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 sy(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 sy(e.k,r,o)}function k(e,t){var n=e.invertX(t[0][0])-u,r=e.invertX(t[1][0])-l,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 T(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(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||T(i),s=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),u=this.__zoom,l="function"==typeof t?t.apply(this,e):t,c=p(u.invert(a).concat(s/u.k),l.invert(a).concat(s/l.k));return function(e){if(1===e)e=l;else{var t=c(e),n=s/t[2];e=new sy(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;rb}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),Je(e.event.view,t.moved),dy(),t.end()},!0),i=de(this),a=e.event.clientX,s=e.event.clientY;Ge(e.event.view),cy(),t.mouse=[i,this.__zoom.invert(i)],vr(this),t.start()}}function L(){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));dy(),f>0?We(this).transition().duration(f).call(x,s,n):We(this).call(g.transform,s)}}function P(){if(r.apply(this,arguments)){var n,o,i,a,s=M(this,arguments),u=e.event.changedTouches,l=u.length;for(cy(),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.selected,r=e.hasIncluded;if(void 0!==r&&r)return!0;if(n&&"all"===n[0])return!0;var o=[];return t&&t.result&&t.result.map(function(e){o=o.concat(A(e))}),t&&t.size&&t.result&&n&&n[0]&&(0,u.getItemsByProperty)(o,"id",n[0]).length};t.doesSelectionExist=v;var w=function(e,t){e((0,o.push)("/window/".concat(t,"/new")))};t.redirectToNewDocument=w;var k=function(e,t){return(e?"+":"-")+t};function T(e,t){return e?t.map(function(t){return x(e,t)}):t}function x(e,t){var n=Object.values(t.fieldsByName).map(function(t){return M(e[t.field],t)}).reduce(function(e,t){return e[t.field]=t,e},{});return Object.assign({},t,{fieldsByName:n})}function M(e,t){return e?(e.widgetType&&(t.widgetType=e.widgetType),t):t}function O(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.id,l=s.includedDocuments;t[u]=s,l&&O(l,t)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}function S(e,t,n){return e.map(function(e){var r=e.id,o=e.includedDocuments;o&&(e.includedDocuments=S(o,t,n));var i=t[r];return i?x(n,i):e})}function E(e,t){var n=[];return t.forEach(function(t){var r=e.findIndex(function(e){return e.id===t});-1!==r&&(e=e.delete(r),n.push(t))}),{rows:e,removedRows:n}}function L(e){var t=e.toRows,n=e.fromRows,r=e.columnInfosByFieldName,o=void 0===r?{}:r,i=e.changedIds;return n||i?n.length?{rows:S(t,O(n,{}),o),removedRows:[]}:E(t,i):{rows:t,removedRows:[]}}function P(e){return e?"modal":"master"}function D(e){return I((0,u.nullToEmptyStrings)(e))}function C(e){if(e){var t=0;return a.default.isMoment(e)?t=s.DateTime.fromISO(e.toISOString()).offset:(t=e instanceof Date?s.DateTime.fromISO(e.toISOString()).offset:s.DateTime.fromISO(e).offset,e=(0,a.default)(e)),e.utcOffset(t),e}return""}function I(e){var t=["Date","DateTime","Time"];return Object.keys(e).reduce(function(n,r){var o=e[r],i=t.indexOf(o.widgetType)>-1;return n[r]=i&&o.value?d({},o,{value:C(o.value)}):o,n},{})}function j(e){var t=[];return e&&e.map(function(e){t=t.concat(A(e))}),t}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||[],o=[],i=d({},e,{indent:r});if(o=o.concat([i]),n&&(r[r.length-2]=!1),e.includedDocuments)for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return r.default.get(config.API_URL+"/menu/root?depth="+t+(e?"&childrenLimit="+e:"")+(n?"&favorites=true":""))}function p(e){return r.default.get(config.API_URL+"/menu/node/"+e+"/breadcrumbMenu")}function h(e){return{type:o.SET_BREADCRUMB,breadcrumb:e}}function _(e){return{type:o.UPDATE_BREADCRUMB,node:e}}function m(){return f(6,10,!0).then(function(e){return{nodeId:"0",children:e.data.children}})}function y(e){return function(t){a||s===e||(a=!0,c("window",e).then(function(e){return v(e.data)}).then(function(n){t(h(n.reverse())),s=e,a=!1}).catch(function(){t(h([])),s=null,a=!1}))}}function b(e,t){return function(n){a||s===t||(a=!0,c(e,t).then(function(e){return v(e.data)}).then(function(e){n(h(e.reverse())),s=t,a=!1}).catch(function(){n(h([])),s=null,a=!1}))}}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=[];return e[t]?(e[t].map(function(e){var t=g(e);"object"===i(t)?n=n.concat(t):n.push(g(e))}),n):[e]}function v(e){var t=[];return e.children&&v(e.children[0]).map(function(e){t.push(e)}),t.push({nodeId:e.nodeId,caption:e.caption,type:e.type}),t}!function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(a,"breadcrumbsRequested","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(s,"breadcrumbsId","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(u,"pathRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(l,"nodePathsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(c,"elementPathRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(d,"queryPathsRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(f,"rootRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(p,"breadcrumbRequest","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(h,"setBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(_,"updateBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(m,"getRootBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(y,"getWindowBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(b,"getElementBreadcrumb","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(g,"flattenLastElem","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"),e.register(v,"flattenOneLine","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/MenuActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(t){var r=n(110),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;!function(e){e&&e.__esModule}(n(65));t.addQueryStringValueToPath=function(e,t,n){var i=r(e),a=i.pathname,s=i.search,u=i.hash;return o({pathname:a,search:s+(-1===s.indexOf("?")?"?":"&")+t+"="+n,hash:u})},t.stripQueryStringValueFromPath=function(e,t){var n=r(e),i=n.pathname,a=n.search,s=n.hash;return o({pathname:i,search:a.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=r(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var r=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substring(o),t=t.substring(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substring(i),t=t.substring(0,i)),""===t&&(t="/"),{pathname:t,search:n,hash:r}},o=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(100)("meta"),o=n(14),i=n(50),a=n(29).f,s=0,u=Object.isExtensible||function(){return!0},l=!n(16)(function(){return u(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(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return l&&d.NEED&&u(e)&&!i(e,r)&&c(e),e}}},function(e,t,n){var r=n(14);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,n){"use strict";var r=n(120),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r.a?r.a.toStringTag:void 0;var u=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o},l=Object.prototype.toString;var c=function(e){return l.call(e)},d="[object Null]",f="[object Undefined]",p=r.a?r.a.toStringTag:void 0;t.a=function(e){return null==e?void 0===e?f:d:p&&p in Object(e)?u(e):c(e)}},function(e,t,n){"use strict";var r=n(701),o="object"==typeof self&&self&&self.Object===Object&&self,i=r.a||o||Function("return this")();t.a=i},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e){e[e.OTHER=0]="OTHER",e[e.ORIENTATION=1]="ORIENTATION",e[e.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",e[e.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",e[e.ISSUE_NUMBER=4]="ISSUE_NUMBER",e[e.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",e[e.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",e[e.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",e[e.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",e[e.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",e[e.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"}(r||(r={})),t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.prototype.MathUtils=function(){},e.round=function(e){return NaN===e?0:e<=Number.MIN_SAFE_INTEGER?Number.MIN_SAFE_INTEGER:e>=Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e+(e<0?-.5:.5)|0},e.distance=function(e,t,n,r){var o=e-n,i=t-r;return Math.sqrt(o*o+i*i)},e.sum=function(e){for(var t=0,n=0,r=e.length;n!==r;n++){t+=e[n]}return t},e}();t.default=r},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(45).default);t.default=o},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireWildcard(__webpack_require__(2)),_reactAddonsCssTransitionGroup=_interopRequireDefault(__webpack_require__(209));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n-1;if(!v)return console.warn("The %c"+f,"font-weight:bold;","is unsupported type of widget."),!1;if(!u[0].displayed||!0!==u[0].displayed)return!1;var M=u[0].value&&u[0].value.description?u[0].value.description:null,O=i.map(function(e){return"form-field-"+e.field}).join(" "),S=h?"col-sm-5":"";S||(S="primary"!==a||x?"primaryLongLabels"===a?"col-sm-6":"col-sm-3":"col-sm-12 panel-title");var E=h?"col-sm-7":"";return E||(E=("primary"!==a&&!s||x?"primaryLongLabels"===a?"col-sm-6":"col-sm-9 ":"col-sm-12 ")+(i[0].devices?"form-group-flex":"")),_react.default.createElement("div",{className:(0,_classnames2.default)("form-group row ",{"form-group-table":l&&!c},O)},o||null,!s&&n&&_react.default.createElement("div",{key:"title",className:(0,_classnames2.default)("form-control-label",S),title:r||n},i[0].supportZoomInto?_react.default.createElement("span",{className:"zoom-into",onClick:function(){return p(i[0].field)}},n):n),_react.default.createElement("div",{className:E,onMouseEnter:function(){return e.handleErrorPopup(!0)},onMouseLeave:function(){return e.handleErrorPopup(!1)}},!y&&T&&_react.default.createElement("div",{className:(0,_classnames2.default)("field-warning",{"field-warning-message":T,"field-error-message":T&&T.error}),onMouseEnter:function(){return e.toggleTooltip(!0)},onMouseLeave:function(){return e.toggleTooltip(!1)}},_react.default.createElement("span",null,T.caption),_react.default.createElement("i",{className:"meta-icon-close-alt",onClick:function(){return e.clearFieldWarning(T)}}),T.message&&b&&_react.default.createElement(_Tooltips.default,{action:T.message,type:""})),_react.default.createElement("div",{className:(0,_classnames2.default)("input-body-container",{focused:g}),title:M},_react.default.createElement(_reactAddonsCssTransitionGroup.default,{transitionName:"fade",transitionEnterTimeout:200,transitionLeaveTimeout:200},m&&k&&!k.valid&&!k.initialValue&&this.renderErrorPopup(k.reason)),v),i[0].devices&&!u[0].readonly&&_react.default.createElement(_DevicesWidget.default,{devices:i[0].devices,tabIndex:1,handleChange:function(e){return d&&d(i[0].field,e)}})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),RawWidget}(_react.Component);exports.RawWidget=RawWidget,RawWidget.propTypes=_PropTypes.RawWidgetPropTypes,RawWidget.defaultProps=_PropTypes.RawWidgetDefaultProps;var _default=(0,_reactRedux.connect)(function(e){return{modalVisible:e.windowHandler.modal.visible}})(RawWidget),_default2=_default;exports.default=_default2,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).default;e&&(e.register(RawWidget,"RawWidget","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/RawWidget.js"),e.register(_default,"default","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/RawWidget.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(module,exports,__webpack_require__){"use strict";(function(module){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _propTypes=_interopRequireDefault(__webpack_require__(1)),_react=_interopRequireWildcard(__webpack_require__(2)),_reactRedux=__webpack_require__(7),_DocumentList=_interopRequireDefault(__webpack_require__(210)),_ErrorScreen=_interopRequireDefault(__webpack_require__(805)),_Modal=_interopRequireDefault(__webpack_require__(804)),_RawModal=_interopRequireDefault(__webpack_require__(796)),_Header=_interopRequireDefault(__webpack_require__(795));function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t1},i.landscape=function(){return window.innerHeight/window.innerWidth<1},i.noConflict=function(){return window.device=o,this},i.ios()?i.ipad()?f("ios ipad tablet"):i.iphone()?f("ios iphone mobile"):i.ipod()&&f("ios ipod mobile"):i.macos()?f("macos desktop"):i.android()?i.androidTablet()?f("android tablet"):f("android mobile"):i.blackberry()?i.blackberryTablet()?f("blackberry tablet"):f("blackberry mobile"):i.windows()?i.windowsTablet()?f("windows tablet"):i.windowsPhone()?f("windows mobile"):f("windows desktop"):i.fxos()?i.fxosTablet()?f("fxos tablet"):f("fxos mobile"):i.meego()?f("meego mobile"):i.nodeWebkit()?f("node-webkit"):i.television()?f("television"):i.desktop()&&f("desktop"),i.cordova()&&f("cordova"),i.onChangeOrientation=function(e){"function"==typeof e&&a.push(e)};var m="resize";function y(e){for(var t=0;tdocument.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(62),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(686),o=n(270);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){e.exports=!1},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(148),o=n(149),i=n(22),a=n(321),s=function(){function e(e,t,n){this.primitive=e,this.size=t,this.generatorBase=n;for(var o=new Int32Array(t),i=1,a=0;a=t&&(i^=e,i&=t-1);this.expTable=o;var s=new Int32Array(t);for(a=0;a32*this.bits.length){var n=e.makeArray(t);r.default.arraycopy(this.bits,0,n,0,this.bits.length),this.bits=n}},e.prototype.get=function(e){return 0!=(this.bits[Math.floor(e/32)]&1<<(31&e))},e.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(31&e)},e.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(31&e)},e.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=n[r];i&=~((1<<(31&e))-1);for(var a=n.length;0===i;){if(++r===a)return t;i=n[r]}var s=32*r+o.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,r=Math.floor(e/32),i=~n[r];i&=~((1<<(31&e))-1);for(var a=n.length;0===i;){if(++r===a)return t;i=~n[r]}var s=32*r+o.default.numberOfTrailingZeros(i);return s>t?t:s},e.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},e.prototype.setRange=function(e,t){if(tthis.size)throw new a.default;if(t!==e){t--;for(var n=Math.floor(e/32),r=Math.floor(t/32),o=this.bits,i=n;i<=r;i++){var s=(2<<(in?0:31&e));o[i]|=s}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;nthis.size)throw new a.default;if(t===e)return!0;t--;for(var r=Math.floor(e/32),o=Math.floor(t/32),i=this.bits,s=r;s<=o;s++){var u=(2<<(sr?0:31&e))&4294967295;if((i[s]&u)!==(n?u:0))return!1}return!0},e.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(31&this.size)),this.size++},e.prototype.appendBits=function(e,t){if(t<0||t>32)throw new a.default("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);this.appendBit;for(var n=t;n>0;n--)this.appendBit(1==(e>>n-1&1))},e.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);this.appendBit;for(var n=0;n>1&1431655765|(1431655765&i)<<1)>>2&858993459|(858993459&i)<<2)>>4&252645135|(252645135&i)<<4)>>8&16711935|(16711935&i)<<8)>>16&65535|(65535&i)<<16,e[t-o]=i}if(this.size!==32*n){var a=32*n-this.size,s=e[0]>>>a;for(o=1;o>>a}e[n-1]=s}this.bits=e},e.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.size===n.size&&i.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+i.default.hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,n=this.size;t-1&&t?(0,_moment.default)(t).format(_Constants.DATE_FORMAT):t}),_defineProperty(_assertThisInitialized(t),"handlePatch",function(e,n){var r=t.props,o=r.isModal,i=r.widgetType,a=r.dataId,s=r.windowType,u=r.updatePropertyValue,l=r.patch,c=r.rowId,d=r.tabId,f=r.onChange,p=r.relativeDocId,h=r.isAdvanced,_=void 0!==h&&h,m=r.viewId;isNumberField(i)&&!n&&(n="0");var y,b=t.props.entity,g=c,v=!1,w=t.parseDateBeforePatch(i,n);return"NEW"===c&&(g=p),"Button"!==i&&u(e,n,d,g,o,b),m&&(b="documentView",v=!0),y=l(b,s,a,d,g,e,w,o,_,m,v),f&&f(c,e,n,y),y}),_defineProperty(_assertThisInitialized(t),"handleChange",function(e,n){var r=t.props,o=r.updatePropertyValue,i=r.tabId,a=r.rowId,s=r.isModal,u=r.relativeDocId,l=r.widgetType,c=r.entity,d=["Date","DateTime","Time"],f=a;t.setState({edited:!0,data:n},function(){(d.includes(l)||t.validatePrecision(n))&&("NEW"===a&&(f=u),o(e,n,i,f,s,c))})}),_defineProperty(_assertThisInitialized(t),"setEditedFlag",function(e){t.setState({edited:e})}),_defineProperty(_assertThisInitialized(t),"validatePrecision",function(e){var n=t.props,r=n.widgetType,o=n.precision;return"Integer"!==r&&"Quantity"!==r||(o=0),!(o<(e.split(".")[1]||[]).length)}),_defineProperty(_assertThisInitialized(t),"handleProcess",function(e,n,r,o){(0,t.props.openModal)(e,n,"process",r,o,!1,!1)}),_defineProperty(_assertThisInitialized(t),"handleZoomInto",function(e){var n=t.props,r=n.dataId,o=n.windowType,i=n.tabId,a=n.rowId;windowActions.getZoomIntoWindow("window",o,r,i,a,e).then(function(e){var t="/window/".concat(e.data.documentPath.windowId,"/").concat(e.data.documentPath.documentId);e&&e.data&&window.open(t,"_blank")})}),_defineProperty(_assertThisInitialized(t),"handleBlurWidget",function(){var e=t.props,n=e.onBlurWidget,r=e.fieldName;n&&n(r)}),t}return _inherits(MasterWidget,_Component),_createClass(MasterWidget,[{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=e.widgetData;this.setState({data:t||n[0].value})}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this,n=this.props.widgetData,r=this.state,o=r.edited,i=r.data;o||JSON.stringify(e.widgetData[0].value)===i||JSON.stringify(n[0].value)===JSON.stringify(e.widgetData[0].value)||(this.setState({data:e.widgetData[0].value}),o?this.setState({edited:!1}):this.setState({updated:!0},function(){t.timeout=setTimeout(function(){t.setState({updated:!1})},1e3)}))}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e=this.props.handleBackdropLock,t=this.state,n=t.updated,r=t.data,o=e||function(){};return _react.default.createElement(_RawWidget.default,_extends({},this.props,{updated:n,data:r,handleFocus:function(){return o(!0)},handleBlur:function(){return o(!1)},onClickOutside:this.props.onClickOutside,handlePatch:this.handlePatch,handleChange:this.handleChange,handleProcess:this.handleProcess,setEditedFlag:this.setEditedFlag,handleZoomInto:this.handleZoomInto,onBlurWidget:this.handleBlurWidget}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MasterWidget}(_react.Component);MasterWidget.propTypes={dataEntry:_propTypes.default.bool,isOpenDatePicker:_propTypes.default.bool,openModal:_propTypes.default.func.isRequired};var _default=(0,_reactRedux.connect)(null,{openModal:windowActions.openModal,patch:windowActions.patch,updatePropertyValue:windowActions.updatePropertyValue},null,{withRef:!0})(MasterWidget),_default2=_default;exports.default=_default2,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).default;e&&(e.register(isNumberField,"isNumberField","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/MasterWidget.js"),e.register(MasterWidget,"MasterWidget","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/MasterWidget.js"),e.register(_default,"default","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/MasterWidget.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(e,t,n){var r=n(1018),o=n(1013),i=n(1011),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},function(e,t,n){var r=n(8),o=Object.prototype.hasOwnProperty,i=Array.prototype.splice,a=Object.assign||function(e,t){for(var n=s(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:p,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case u.NO_CONNECTION:return d({},t,{connectionError:n.status});case u.OPEN_MODAL:return d({},t,{modal:d({},t.modal,{visible:!0,type:n.windowType,staticModalType:n.staticModalType,dataId:n.dataId,tabId:n.tabId,rowId:n.rowId,viewId:n.viewId,title:n.title,modalType:n.modalType,isAdvanced:n.isAdvanced,viewDocumentIds:n.viewDocumentIds,triggerField:n.triggerField,parentViewId:n.parentViewId,parentViewSelectedIds:n.parentViewSelectedIds,childViewId:n.childViewId,childViewSelectedIds:n.childViewSelectedIds})});case u.OPEN_PLUGIN_MODAL:return d({},t,{pluginModal:{visible:!0,type:n.payload.type,id:n.payload.id}});case u.OPEN_RAW_MODAL:return d({},t,{rawModal:d({},t.rawModal,{visible:!0,windowId:n.windowId,viewId:n.viewId,profileId:n.profileId})});case u.UPDATE_MODAL:return d({},t,{modal:d({},t.modal,{rowId:n.rowId,dataId:n.dataId})});case u.UPDATE_RAW_MODAL:var a=n.windowId,l=n.data;return t.rawModal.windowId===a?d({},t,{rawModal:d({},t.rawModal,l)}):t;case u.CLOSE_RAW_MODAL:return d({},t,{rawModal:d({},t.rawModal,{visible:!1,windowId:null,viewId:null,profileId:null})});case u.CLOSE_PROCESS_MODAL:return"process"===t.modal.modalType?d({},t,{modal:d({},t.modal,p.modal)}):t;case u.CLOSE_MODAL:return d({},t,{modal:d({},t.modal,p.modal)});case u.CLOSE_PLUGIN_MODAL:return d({},t,{pluginModal:{visible:!1,type:"",id:null}});case u.TOGGLE_OVERLAY:return d({},t,{overlay:{visible:!1!==n.data&&!t.overlay.visible,data:n.data?d({},n.data):null}});case u.INIT_LAYOUT_SUCCESS:return d({},t,f({},n.scope,d({},t[n.scope],{layout:n.layout})));case u.INIT_DATA_SUCCESS:return d({},t,f({},n.scope,d({},t[n.scope],{data:n.data,docId:n.docId,layout:{},rowData:(0,o.Map)(),saveStatus:n.saveStatus,standardActions:(0,o.Set)(n.standardActions),validStatus:n.validStatus,includedTabsInfo:n.includedTabsInfo,websocket:n.websocket})));case u.UPDATE_MASTER_DATA:return d({},t,{master:d({},t.master,{data:d({},t.master.data,n.payload)})});case u.CLEAR_MASTER_DATA:return d({},t,{master:d({},t.master,{data:{},rowData:(0,o.Map)(),docId:void 0})});case u.SORT_TAB:return Object.assign({},t,f({},n.scope,Object.assign({},t[n.scope],{layout:Object.assign({},t[n.scope].layout,{tabs:t[n.scope].layout.tabs.map(function(e){return e.tabId===n.tabId?Object.assign({},e,{orderBy:[{fieldName:n.field,ascending:n.asc}]}):e})})})));case u.ACTIVATE_TAB:return(0,r.default)(t,f({},n.scope,{layout:{activeTab:{$set:n.tabId}}}));case u.UNSELECT_TAB:return(0,r.default)(t,f({},n.scope,{layout:{activeTab:{$set:null}}}));case u.ADD_ROW_DATA:for(var h=(0,o.Map)(),_=0,m=Object.entries(n.data);_0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,a.parsePath)(e):e;return{pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:r.state,action:t,key:n}};var l=function(e){return"[object Date]"===Object.prototype.toString.call(e)},c=t.statesAreEqual=function e(t,n){if(t===n)return!0;var o=void 0===t?"undefined":r(t);if(o!==(void 0===n?"undefined":r(n)))return!1;if("function"===o&&(0,i.default)(!1),"object"===o){if(l(t)&&l(n)&&(0,i.default)(!1),!Array.isArray(t)){var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&c(e.state,t.state)}},function(e,t,n){var r=n(43);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},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(17),o=n(29),i=n(30),a=n(21)("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){e.exports={}},function(e,t,n){var r=n(6),o=n(70),i=n(16),a=n(267),s="["+a+"]",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),c=function(e,t,n){var o={},s=i(function(){return!!a[e]()||"​…"!="​…"[e]()}),u=o[e]=s?t(d):a[e];n&&(o[n]=u),r(r.P+r.F*s,"String",o)},d=c.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=c},function(e,t,n){var r=n(29).f,o=n(50),i=n(21)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";n.r(t);var r=n(73),o=n(184),i={INIT:"@@redux/INIT"};function a(e,t,n){var s;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var u=e,l=t,c=[],d=c,f=!1;function p(){d===c&&(d=c.slice())}function h(){return l}function _(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return p(),d.push(e),function(){if(t){t=!1,p();var n=d.indexOf(e);d.splice(n,1)}}}function m(e){if(!Object(r.a)(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(f)throw new Error("Reducers may not dispatch actions.");try{f=!0,l=u(l,e)}finally{f=!1}for(var t=c=d,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(u)throw u;for(var r=!1,o={},i=0;i=0&&(n=e.isRange(s,a,!1))}return r},t.prototype.decodeRow=function(e,n,r){var l=t.findStartGuardPattern(n),h=null==r?null:r.get(i.default.NEED_RESULT_POINT_CALLBACK);if(null!=h){var _=new u.default((l[0]+l[1])/2,e);h.foundPossibleResultPoint(_)}var m=this.decodeMiddle(n,l,this.decodeRowStringBuffer),y=m.rowOffset,b=m.resultString;if(null!=h){var g=new u.default(y,e);h.foundPossibleResultPoint(g)}var v=t.decodeEnd(n,y);if(null!=h){var w=new u.default((v[0]+v[1])/2,e);h.foundPossibleResultPoint(w)}var k=v[1],T=k+(k-v[0]);if(T>=n.getSize()||!n.isRange(k,T,!1))throw new d.default;var x=b.toString();if(x.length<8)throw new f.default;if(!t.checkChecksum(x))throw new p.default;var M=(l[1]+l[0])/2,O=(v[1]+v[0])/2,S=this.getBarcodeFormat(),E=[new u.default(M,e),new u.default(O,e)],L=new a.default(x,null,0,E,S,(new Date).getTime()),P=0;try{var D=c.default.decodeRow(e,n,v[1]);L.putMetadata(s.default.UPC_EAN_EXTENSION,D.getText()),L.putAllMetadata(D.getResultMetadata()),L.addResultPoints(D.getResultPoints()),P=D.getText().length}catch(e){}var C=null==r?null:r.get(i.default.ALLOWED_EAN_EXTENSIONS);if(null!=C){var I=!1;for(var j in C)if(P.toString()===j){I=!0;break}if(!I)throw new d.default}return S===o.default.EAN_13||o.default.UPC_A,L},t.checkChecksum=function(e){return t.checkStandardUPCEANChecksum(e)},t.checkStandardUPCEANChecksum=function(e){var n=e.length;if(0===n)return!1;var r=parseInt(e.charAt(n-1),10);return t.getStandardUPCEANChecksum(e.substring(0,n-1))===r},t.getStandardUPCEANChecksum=function(e){for(var t=e.length,n=0,r=t-1;r>=0;r-=2){if((o=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||o>9)throw new f.default;n+=o}n*=3;for(r=t-2;r>=0;r-=2){var o;if((o=e.charAt(r).charCodeAt(0)-"0".charCodeAt(0))<0||o>9)throw new f.default;n+=o}return(1e3-n)%10},t.decodeEnd=function(e,n){return t.findGuardPattern(e,n,!1,t.START_END_PATTERN,new Array(t.START_END_PATTERN.length).fill(0))},t.findGuardPattern=function(e,n,r,o,i){for(var a=e.getSize(),s=0,u=n=r?e.getNextUnset(n):e.getNextSet(n),c=o.length,f=r,p=n;p=0)return a;throw new d.default},t.MAX_AVG_VARIANCE=.48,t.MAX_INDIVIDUAL_VARIANCE=.7,t.START_END_PATTERN=[1,1,1],t.MIDDLE_PATTERN=[1,1,1,1,1],t.END_PATTERN=[1,1,1,1,1,1],t.L_PATTERNS=[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],t}(l.default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(37);!function(e){e[e.Cp437=0]="Cp437",e[e.ISO8859_1=1]="ISO8859_1",e[e.ISO8859_2=2]="ISO8859_2",e[e.ISO8859_3=3]="ISO8859_3",e[e.ISO8859_4=4]="ISO8859_4",e[e.ISO8859_5=5]="ISO8859_5",e[e.ISO8859_6=6]="ISO8859_6",e[e.ISO8859_7=7]="ISO8859_7",e[e.ISO8859_8=8]="ISO8859_8",e[e.ISO8859_9=9]="ISO8859_9",e[e.ISO8859_10=10]="ISO8859_10",e[e.ISO8859_11=11]="ISO8859_11",e[e.ISO8859_13=12]="ISO8859_13",e[e.ISO8859_14=13]="ISO8859_14",e[e.ISO8859_15=14]="ISO8859_15",e[e.ISO8859_16=15]="ISO8859_16",e[e.SJIS=16]="SJIS",e[e.Cp1250=17]="Cp1250",e[e.Cp1251=18]="Cp1251",e[e.Cp1252=19]="Cp1252",e[e.Cp1256=20]="Cp1256",e[e.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",e[e.UTF8=22]="UTF8",e[e.ASCII=23]="ASCII",e[e.Big5=24]="Big5",e[e.GB18030=25]="GB18030",e[e.EUC_KR=26]="EUC_KR"}(r=t.CharacterSetValueIdentifiers||(t.CharacterSetValueIdentifiers={}));var i=function(){function e(t,n,r){for(var o=[],i=3;i=900)throw new o.default("incorect value");var n=e.VALUES_TO_ECI.get(t);if(void 0===n)throw new o.default("incorect value");return n},e.getCharacterSetECIByName=function(t){var n=e.NAME_TO_ECI.get(t);if(void 0===n)throw new o.default("incorect value");return n},e.prototype.equals=function(t){if(!(t instanceof e))return!1;var n=t;return this.getName()===n.getName()},e.VALUE_IDENTIFIER_TO_ECI=new Map,e.VALUES_TO_ECI=new Map,e.NAME_TO_ECI=new Map,e.Cp437=new e(r.Cp437,Int32Array.from([0,2]),"Cp437"),e.ISO8859_1=new e(r.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),e.ISO8859_2=new e(r.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),e.ISO8859_3=new e(r.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),e.ISO8859_4=new e(r.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),e.ISO8859_5=new e(r.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),e.ISO8859_6=new e(r.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),e.ISO8859_7=new e(r.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),e.ISO8859_8=new e(r.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),e.ISO8859_9=new e(r.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),e.ISO8859_10=new e(r.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),e.ISO8859_11=new e(r.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),e.ISO8859_13=new e(r.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),e.ISO8859_14=new e(r.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),e.ISO8859_15=new e(r.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),e.ISO8859_16=new e(r.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),e.SJIS=new e(r.SJIS,20,"SJIS","Shift_JIS"),e.Cp1250=new e(r.Cp1250,21,"Cp1250","windows-1250"),e.Cp1251=new e(r.Cp1251,22,"Cp1251","windows-1251"),e.Cp1252=new e(r.Cp1252,23,"Cp1252","windows-1252"),e.Cp1256=new e(r.Cp1256,24,"Cp1256","windows-1256"),e.UnicodeBigUnmarked=new e(r.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),e.UTF8=new e(r.UTF8,26,"UTF8","UTF-8"),e.ASCII=new e(r.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),e.Big5=new e(r.Big5,28,"Big5"),e.GB18030=new e(r.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),e.EUC_KR=new e(r.EUC_KR,30,"EUC_KR","EUC-KR"),e}();t.default=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n(44).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(75),o=n(206),i=function(){function e(e,t){this.width=e,this.height=t}return e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.isCropSupported=function(){return!1},e.prototype.crop=function(e,t,n,r){throw new o.default("This luminance source does not support cropping.")},e.prototype.isRotateSupported=function(){return!1},e.prototype.rotateCounterClockwise=function(){throw new o.default("This luminance source does not support rotation by 90 degrees.")},e.prototype.rotateCounterClockwise45=function(){throw new o.default("This luminance source does not support rotation by 45 degrees.")},e.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new r.default,n=0;n0){var d=null;(a||i)&&(d=a||i),c=_objectSpread({},c,setSelectedValue(l,d,i))}else c.selected=null;if(!c.selected&&l.size>0){var f=null;(0,_lodash.isEqual)(e.selected,a)||(f=a),f&&(c=_objectSpread({},c,setSelectedValue(l,f,i)))}}Object.keys(c).length&&this.setState(_objectSpread({},c),function(){t.focusDropdown()})}},{key:"handleClickOutside",value:function(e){var t=this.props,n=t.isFocused,r=t.onCloseDropdown,o=t.onBlur,i=t.selected,a=e.target;if(n){if(a.classList&&a.classList.contains("input-dropdown-list"))return;this.setState({selected:i||null},function(){r(),o()})}}},{key:"handleSelect",value:function(e){var t=this,n=this.props,r=n.onSelect,o=n.onCloseDropdown,i=this.state.dropdownList,a=_objectSpread({},setSelectedValue(i,e));this.setState(a,function(){null===e.key?r(null):r(e),o(),setTimeout(function(){t.focusDropdown()},0)})}},{key:"focusDropdown",value:function(){this.props.onFocus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.rank,r=t.readonly,o=t.defaultValue,i=t.selected,a=t.align,s=t.updated,u=t.loading,l=t.rowId,c=t.isModal,d=t.tabIndex,f=t.disabled,p=t.mandatory,h=t.validStatus,_=t.lookupList,m=t.isToggled,y=t.isFocused,b=t.clearable,g="",v="";return v="string"==typeof o?o:o&&o.caption,_?g=v:i&&(g=i.caption),_react.default.createElement(_reactTether.default,{attachment:"top left",targetAttachment:"bottom left",constraints:[{to:"scrollParent"},{to:"window",pin:["bottom"]}]},_react.default.createElement("div",{ref:function(t){return e.dropdown=t},className:(0,_classnames2.default)("input-dropdown-container",{"input-disabled":r,"input-dropdown-container-static":l,"input-table":l&&!c,"input-empty":!g,"lookup-dropdown":_,"select-dropdown":!_,focused:y,opened:m,"input-mandatory":!_&&p&&!i}),tabIndex:d,onFocus:r?null:this.focusDropdown,onClick:r?null:this.handleClick,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp},_react.default.createElement("div",{className:(0,_classnames2.default)("input-dropdown input-block",{"input-secondary":n,pulse:s,"input-mandatory":p&&!i,"input-error":h&&!h.valid&&!h.initialValue&&!m}),ref:function(t){return e.inputContainer=t}},_react.default.createElement("div",{className:(0,_classnames2.default)("input-editable input-dropdown-focused",_defineProperty({},"text-".concat(a),a))},_react.default.createElement("input",{type:"text",className:(0,_classnames2.default)("input-field js-input-field","font-weight-semibold",{"input-disabled":f}),readOnly:!0,tabIndex:-1,placeholder:v,value:g,disabled:r||f})),b&&i&&!r&&_react.default.createElement("div",{className:"input-icon",onClick:this.handleClear},_react.default.createElement("i",{className:"meta-icon-close-alt"})),!i&&_react.default.createElement("div",{className:"input-icon input-readonly"},_react.default.createElement("i",{className:"meta-icon-down-1"})))),y&&m&&_react.default.createElement(_SelectionDropdown.default,{loading:u,options:this.state.dropdownList,empty:"There is no choice available",selected:this.state.selected,width:this.dropdown.offsetWidth,onChange:this.handleTemporarySelection,onSelect:this.handleSelect,onCancel:this.handleCancel}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),RawList}(_react.PureComponent);exports.RawList=RawList,RawList.propTypes={filter:_propTypes.default.object,readonly:_propTypes.default.bool,clearable:_propTypes.default.bool,list:_propTypes.default.object,listHash:_propTypes.default.string,rank:_propTypes.default.any,defaultValue:_propTypes.default.any,selected:_propTypes.default.any,align:_propTypes.default.any,emptyText:_propTypes.default.string,lastProperty:_propTypes.default.any,updated:_propTypes.default.bool,loading:_propTypes.default.bool,rowId:_propTypes.default.any,isModal:_propTypes.default.bool,tabIndex:_propTypes.default.number,disabled:_propTypes.default.bool,mandatory:_propTypes.default.bool,validStatus:_propTypes.default.any,lookupList:_propTypes.default.any,initialFocus:_propTypes.default.any,doNotOpenOnFocus:_propTypes.default.bool,isFocused:_propTypes.default.bool.isRequired,isToggled:_propTypes.default.bool.isRequired,autoFocus:_propTypes.default.bool,disableAutofocus:_propTypes.default.func,onFocus:_propTypes.default.func.isRequired,onBlur:_propTypes.default.func.isRequired,onSelect:_propTypes.default.func.isRequired,onOpenDropdown:_propTypes.default.func.isRequired,onCloseDropdown:_propTypes.default.func.isRequired},RawList.defaultProps={tabIndex:-1,clearable:!0};var _default=(0,_reactOnclickoutside.default)(RawList),_default2=_default;exports.default=_default2,function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).default;e&&(e.register(setSelectedValue,"setSelectedValue","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/List/RawList.js"),e.register(RawList,"RawList","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/List/RawList.js"),e.register(_default,"default","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/components/widget/List/RawList.js"))}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:__webpack_require__(0)).leaveModule;e&&e(module)}()}).call(this,__webpack_require__(3)(module))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(892))},function(e,t,n){var r=n(476),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.setListId=o,t.setFilter=i,t.setSorting=a,t.setPagination=s,t.setListIncludedView=u,t.closeListIncludedView=l;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(500));function o(e,t){return{type:r.SET_LIST_ID,viewId:e,windowType:t}}function i(e,t){return{type:r.SET_LIST_FILTERS,filter:e,windowType:t}}function a(e,t){return{type:r.SET_LIST_SORTING,sort:e,windowType:t}}function s(e,t){return{type:r.SET_LIST_PAGINATION,page:e,windowType:t}}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.viewId,o=e.viewProfileId,i=void 0===o?null:o;return{type:r.SET_LIST_INCLUDED_VIEW,payload:{windowType:t,viewId:n,viewProfileId:i}}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowType,n=e.viewId,o=e.forceClose,i=void 0!==o&&o;return{type:r.CLOSE_LIST_INCLUDED_VIEW,payload:{windowType:t,viewId:n,forceClose:i}}}!function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).enterModule;t&&t(e)}(),function(){var e=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).default;e&&(e.register(o,"setListId","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/ListActions.js"),e.register(i,"setFilter","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/ListActions.js"),e.register(a,"setSorting","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/ListActions.js"),e.register(s,"setPagination","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/ListActions.js"),e.register(u,"setListIncludedView","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/ListActions.js"),e.register(l,"closeListIncludedView","/var/lib/jenkins/workspace/resh-webui-frontend_release-CJHGXWMUEPJJZOWIOELTHOTVGMVSRVEG6UNVXK6JWIXJ3STHXWUA/src/actions/ListActions.js"))}(),function(){var t=("undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal:n(0)).leaveModule;t&&t(e)}()}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(t){var r=n(78),o=n(68),i=n(133);e.exports={WPrefix:"_jp",currentWindowId:null,polluteGlobalNamespace:function(){e.exports.WPrefix in t||(t[e.exports.WPrefix]={})},postMessage:function(n,r){t.parent!==t&&t.parent.postMessage(o.stringify({windowId:e.exports.currentWindowId,type:n,data:r||""}),"*")},createIframe:function(e,n){var o,i,a=t.document.createElement("iframe"),s=function(){clearTimeout(o);try{a.onload=null}catch(e){}a.onerror=null},u=function(){a&&(s(),setTimeout(function(){a&&a.parentNode.removeChild(a),a=null},0),r.unloadDel(i))},l=function(e){a&&(u(),n(e))};return a.src=e,a.style.display="none",a.style.position="absolute",a.onerror=function(){l("onerror")},a.onload=function(){clearTimeout(o),o=setTimeout(function(){l("onload timeout")},2e3)},t.document.body.appendChild(a),o=setTimeout(function(){l("timeout")},15e3),i=r.unloadAdd(u),{post:function(e,t){try{a&&a.contentWindow&&setTimeout(function(){a.contentWindow.postMessage(e,t)},0)}catch(e){}},cleanup:u,loaded:s}},createHtmlfile:function(n,o){var i,a,s,u=["Active"].concat("Object").join("X"),l=new t[u]("htmlfile"),c=function(){clearTimeout(i),s.onerror=null},d=function(){l&&(c(),r.unloadDel(a),s.parentNode.removeChild(s),s=l=null,CollectGarbage())},f=function(e){l&&(d(),o(e))};l.open(),l.write(' - + diff --git a/docker-src/webui/sources/dist/info.json b/docker-src/webui/sources/dist/info.json index 62d27f8..dd059ac 100644 --- a/docker-src/webui/sources/dist/info.json +++ b/docker-src/webui/sources/dist/info.json @@ -1,10 +1,10 @@ { "build": { - "releaseVersion": "5.113.2-365+release", - "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/365/", - "jenkinsBuildNo": "365", + "releaseVersion": "5.114.2-367+release", + "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh-webui-frontend/job/release/367/", + "jenkinsBuildNo": "367", "jenkinsJobName": "metasfresh-webui-frontend/release", - "jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-365" - "gitSHA1": "2d715f6d83766c87d588755b56ad01ff1c8aefc4" + "jenkinsBuildTag": "jenkins-metasfresh-webui-frontend-release-367" + "gitSHA1": "fc3873a9b0d59e6988bfa05a4412543d8ddfee87" } } \ No newline at end of file diff --git a/webapi/Dockerfile b/webapi/Dockerfile index 720479a..fc6e5ff 100644 --- a/webapi/Dockerfile +++ b/webapi/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webapi:5.113 +FROM metasfresh/metasfresh-webapi:5.114 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 6d6cb16..6bafccc 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webui:5.113 +FROM metasfresh/metasfresh-webui:5.114 COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/