diff --git a/app/Dockerfile b/app/Dockerfile index 660efa8..7c7e44a 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-app:5.164 +FROM metasfresh/metasfresh-app:5.165 COPY sources/configs/* /opt/metasfresh/ COPY sources/start_app.sh /opt/metasfresh/ diff --git a/db/Dockerfile b/db/Dockerfile index 8436595..8972334 100644 --- a/db/Dockerfile +++ b/db/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-db:5.164 +FROM metasfresh/metasfresh-db:5.165 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 a8c85ef..a74b16b 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/repository/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.164.2-287+release/metasfresh-dist-dist-5.164.2-287+release-dist.tar.gz \ +RUN curl https://repo.metasfresh.com/repository/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.165.2-291+release/metasfresh-dist-dist-5.165.2-291+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 552780b..b179c0f 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/repository/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.164.2-287+release/metasfresh-webui-api-5.164.2-287+release.jar \ +RUN curl https://repo.metasfresh.com/repository/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.165.2-291+release/metasfresh-webui-api-5.165.2-291+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-b921dadff6e84369e553-git-751ed4f.js b/docker-src/webui/sources/dist/bundle-b921dadff6e84369e553-git-751ed4f.js new file mode 100644 index 0000000..1bbfb45 --- /dev/null +++ b/docker-src/webui/sources/dist/bundle-b921dadff6e84369e553-git-751ed4f.js @@ -0,0 +1,824 @@ +!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,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},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=937)}([function(e,t,n){"use strict";e.exports=n(1125)},function(e,t,n){e.exports=n(1156)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return Xr})),n.d(t,"b",(function(){return Nn})),n.d(t,"c",(function(){return vr})),n.d(t,"d",(function(){return uo})),n.d(t,"e",(function(){return co})),n.d(t,"f",(function(){return fo})),n.d(t,"g",(function(){return oo})),n.d(t,"h",(function(){return An})),n.d(t,"i",(function(){return On})),n.d(t,"j",(function(){return jt})),n.d(t,"k",(function(){return to})),n.d(t,"l",(function(){return ro})),n.d(t,"m",(function(){return qr})),n.d(t,"n",(function(){return xn})),n.d(t,"o",(function(){return Cn})),n.d(t,"p",(function(){return En})),n.d(t,"q",(function(){return po})),n.d(t,"r",(function(){return wn})),n.d(t,"s",(function(){return eo})),n.d(t,"t",(function(){return Pn})),n.d(t,"u",(function(){return F})),n.d(t,"v",(function(){return ce})),n.d(t,"w",(function(){return B})),n.d(t,"x",(function(){return Se})),n.d(t,"y",(function(){return Le})),n.d(t,"z",(function(){return u})),n.d(t,"A",(function(){return qt})),n.d(t,"B",(function(){return w})),n.d(t,"C",(function(){return pe})),n.d(t,"D",(function(){return kn})),n.d(t,"E",(function(){return no})),n.d(t,"F",(function(){return De})),n.d(t,"G",(function(){return Pe})),n.d(t,"H",(function(){return me})),n.d(t,"I",(function(){return N})),n.d(t,"J",(function(){return P})),n.d(t,"K",(function(){return C})),n.d(t,"L",(function(){return Kn})),n.d(t,"M",(function(){return L})),n.d(t,"N",(function(){return ie})),n.d(t,"O",(function(){return a})),n.d(t,"P",(function(){return ot})),n.d(t,"Q",(function(){return mn})),n.d(t,"R",(function(){return Dt})),n.d(t,"S",(function(){return Hn})),n.d(t,"T",(function(){return nn})),n.d(t,"U",(function(){return We})),n.d(t,"V",(function(){return V})),n.d(t,"W",(function(){return S})),n.d(t,"X",(function(){return U})),n.d(t,"Y",(function(){return be})),n.d(t,"Z",(function(){return ve})),n.d(t,"ab",(function(){return m})),n.d(t,"bb",(function(){return y})),n.d(t,"cb",(function(){return ge})),n.d(t,"db",(function(){return et})),n.d(t,"eb",(function(){return g})),n.d(t,"fb",(function(){return b})),n.d(t,"gb",(function(){return xt})),n.d(t,"hb",(function(){return Tn})),n.d(t,"ib",(function(){return R})),n.d(t,"jb",(function(){return Ln})),n.d(t,"kb",(function(){return Ht})),n.d(t,"lb",(function(){return O})),n.d(t,"mb",(function(){return nt})),n.d(t,"nb",(function(){return Jn})),n.d(t,"ob",(function(){return Rt})),n.d(t,"pb",(function(){return tn})),n.d(t,"qb",(function(){return i})),n.d(t,"rb",(function(){return d})),n.d(t,"sb",(function(){return Fr})),n.d(t,"tb",(function(){return Br})),n.d(t,"ub",(function(){return ct})),n.d(t,"vb",(function(){return T})),n.d(t,"wb",(function(){return Er})),n.d(t,"xb",(function(){return Xt})),n.d(t,"yb",(function(){return ze})),n.d(t,"zb",(function(){return H})),n.d(t,"Ab",(function(){return Ke})),n.d(t,"Bb",(function(){return Me})),n.d(t,"Cb",(function(){return mt})),n.d(t,"Db",(function(){return gn})),n.d(t,"Eb",(function(){return de})),n.d(t,"Fb",(function(){return so})),n.d(t,"Gb",(function(){return hn})),n.d(t,"Hb",(function(){return k})),n.d(t,"Ib",(function(){return c})),n.d(t,"Jb",(function(){return Oe})),n.d(t,"Kb",(function(){return Te})),n.d(t,"Lb",(function(){return _t})),n.d(t,"Mb",(function(){return pt})),n.d(t,"Nb",(function(){return p})),n.d(t,"Ob",(function(){return K})),n.d(t,"Pb",(function(){return ke})),n.d(t,"Qb",(function(){return ye})),n.d(t,"Rb",(function(){return we})),n.d(t,"Sb",(function(){return W})),n.d(t,"Tb",(function(){return _e})); +/*! +FullCalendar Core Package v4.3.1 +Docs & License: https://fullcalendar.io/ +(c) 2019 Adam Shaw +*/ +var r={className:!0,colSpan:!0,rowSpan:!0},o={"=t.left&&e.left=t.top&&e.top");document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return p(e),t}()),D}function E(e){return e=Math.max(0,e),e=Math.round(e)}function A(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,i=parseInt(n.borderBottomWidth,10)||0,s=E(e.offsetWidth-e.clientWidth-r-o),l={borderLeft:r,borderRight:o,borderTop:a,borderBottom:i,scrollbarBottom:E(e.offsetHeight-e.clientHeight-a-i),scrollbarLeft:0,scrollbarRight:0};return x()&&"rtl"===n.direction?l.scrollbarLeft=s:l.scrollbarRight=s,t&&(l.paddingLeft=parseInt(n.paddingLeft,10)||0,l.paddingRight=parseInt(n.paddingRight,10)||0,l.paddingTop=parseInt(n.paddingTop,10)||0,l.paddingBottom=parseInt(n.paddingBottom,10)||0),l}function P(e,t){void 0===t&&(t=!1);var n=C(e),r=A(e,t),o={left:n.left+r.borderLeft+r.scrollbarLeft,right:n.right-r.borderRight-r.scrollbarRight,top:n.top+r.borderTop,bottom:n.bottom-r.borderBottom-r.scrollbarBottom};return t&&(o.left+=r.paddingLeft,o.right-=r.paddingRight,o.top+=r.paddingTop,o.bottom-=r.paddingBottom),o}function C(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function j(e){return e.getBoundingClientRect().height+I(e)}function I(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function R(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function N(e){return R(e).map((function(e){return P(e)})).concat({left:window.pageXOffset,right:window.pageXOffset+document.documentElement.clientWidth,top:window.pageYOffset,bottom:window.pageYOffset+document.documentElement.clientHeight}).reduce((function(e,t){return T(e,t)||t}))}function Y(e){e.preventDefault()}function H(e,t,n,r){function o(e){var t=m(e.target,n);t&&r.call(t,e,t)}return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var z=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function W(e,t){var n=function(r){t(r),z.forEach((function(t){e.removeEventListener(t,n)}))};z.forEach((function(t){e.addEventListener(t,n)}))}var q=["sun","mon","tue","wed","thu","fri","sat"];function B(e,t){var n=ee(e);return n[2]+=7*t,te(n)}function F(e,t){var n=ee(e);return n[2]+=t,te(n)}function G(e,t){var n=ee(e);return n[6]+=t,te(n)}function U(e,t){return V(e,t)/7}function V(e,t){return(t.valueOf()-e.valueOf())/864e5}function X(e,t){return re(e)===re(t)?Math.round(V(e,t)):null}function K(e){return te([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function J(e,t,n,r){var o=te([t,0,1+Q(t,n,r)]),a=K(e),i=Math.round(V(o,a));return Math.floor(i/7)+1}function Q(e,t,n){var r=7+t-n;return-((7+te([e,0,r]).getUTCDay()-t)%7)+r-1}function Z(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function $(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function ee(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function te(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function ne(e){return!isNaN(e.valueOf())}function re(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}var oe=["years","months","days","milliseconds"],ae=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function ie(e,t){var n;return"string"==typeof e?function(e){var t=ae.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?se(e):"number"==typeof e?se(((n={})[t||"milliseconds"]=e,n)):null}function se(e){return{years:e.years||e.year||0,months:e.months||e.month||0,days:(e.days||e.day||0)+7*le(e),milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)}}function le(e){return e.weeks||e.week||0}function ue(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function ce(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function de(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function fe(e){return pe(e)/864e5}function pe(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function _e(e,t){for(var n=null,r=0;rt&&(t=r)}})),t++,e.forEach((function(e){e.style.width=t+"px"})),t}function ke(e,t){var n={position:"relative",left:-1};w(e,n),w(t,n);var r=e.getBoundingClientRect().height-t.getBoundingClientRect().height,o={position:"",left:""};return w(e,o),w(t,o),r}function Te(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",Y)}function Le(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",Y)}function Oe(e){e.addEventListener("contextmenu",Y)}function Se(e){e.removeEventListener("contextmenu",Y)}function De(e,t,n){var r,o;for(r=0;r=pe(t)&&(r=F(r,1))}return e.start&&(n=K(e.start),r&&r<=n&&(r=F(n,1))),{start:n,end:r}}function ze(e){var t=He(e);return V(t.start,t.end)>1}function We(e,t,n,r){return"year"===r?ie(n.diffWholeYears(e,t),"year"):"month"===r?ie(n.diffWholeMonths(e,t),"month"):(a=t,i=K(o=e),s=K(a),{years:0,months:0,days:Math.round(V(i,s)),milliseconds:a.valueOf()-s.valueOf()-(o.valueOf()-i.valueOf())});var o,a,i,s} +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */var qe=function(e,t){return(qe=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])})(e,t)};function Be(e,t){function n(){this.constructor=e}qe(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Fe=function(){return(Fe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;a--)if("object"==typeof(i=e[a][r])&&i)o.unshift(i);else if(void 0!==i){l[r]=i;break}o.length&&(l[r]=Ve(o))}for(n=e.length-1;n>=0;n--)for(r in s=e[n])r in l||(l[r]=s[r]);return l}function Xe(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function Ke(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function Je(e){for(var t={},n=0,r=e;na&&o.push({start:a,end:r.start}),r.end>a&&(a=r.end);return at.start)&&(null===e.start||null===t.end||e.start=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function _t(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t1)||"numeric"!==r.year&&"2-digit"!==r.year||"numeric"!==r.month&&"2-digit"!==r.month||"numeric"!==r.day&&"2-digit"!==r.day||(i=1);var s=this.format(e,n),l=this.format(t,n);if(s===l)return s;var u=Lt(function(e,t){var n={};for(var r in e)(!(r in bt)||bt[r]<=t)&&(n[r]=e[r]);return n}(r,i),o,n),c=u(e),d=u(t),f=function(e,t,n,r){var o=0;for(;o/g,">").replace(/'/g,"'").replace(/"/g,""").replace(/\n/g,"
")}function nn(e){var t=[];for(var n in e){var r=e[n];null!=r&&""!==r&&t.push(n+":"+r)}return t.join(";")}function rn(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var on={editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:null,overlap:null,allow:null,className:rn,classNames:rn,color:String,backgroundColor:String,borderColor:String,textColor:String};function an(e,t,n){var r=Ne(e,on,{},n),o=function(e,t){return Array.isArray(e)?$e(e,"",t,!0):"object"==typeof e&&e?$e([e],"",t,!0):null!=e?String(e):null}(r.constraint,t);return{startEditable:null!=r.startEditable?r.startEditable:r.editable,durationEditable:null!=r.durationEditable?r.durationEditable:r.editable,constraints:null!=o?[o]:[],overlap:r.overlap,allows:null!=r.allow?[r.allow]:[],backgroundColor:r.backgroundColor||r.color,borderColor:r.borderColor||r.color,textColor:r.textColor,classNames:r.classNames.concat(r.className)}}function sn(e,t,n,r){var o={},a={};for(var i in on){var s=e+Ee(i);o[i]=t[s],a[s]=!0}if("event"===e&&(o.editable=t.editable),r)for(var i in t)a[i]||(r[i]=t[i]);return an(o,n)}var ln={startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function un(e){return e.reduce(cn,ln)}function cn(e,t){return{startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var dn={id:String,groupId:String,title:String,url:String,rendering:String,extendedProps:null},fn={start:null,date:null,end:null,allDay:null},pn=0;function _n(e,t,n,r){var o=function(e,t){var n=null;if(e){var r=t.state.eventSources[e];n=r.allDayDefault}null==n&&(n=t.opt("allDayDefault"));return n}(t,n),a={},i=function(e,t,n,r,o){for(var a=0;a'+r+"":""+r+""}function Tn(e){return e.opt("allDayHtml")||tn(e.opt("allDayText"))}function Ln(e,t,n,r){var o,a,i=n.calendar,s=n.view,l=n.theme,u=n.dateEnv,c=[];return _t(t.activeRange,e)?(c.push("fc-"+q[e.getUTCDay()]),s.opt("monthMode")&&u.getMonth(e)!==u.getMonth(t.currentRange.start)&&c.push("fc-other-month"),a=F(o=K(i.getNow()),1),e=a?c.push("fc-future"):(c.push("fc-today"),!0!==r&&c.push(l.getClass("today")))):c.push("fc-disabled-day"),c}var On=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t.prototype.on=function(e,t){return Sn(this._handlers||(this._handlers={}),e,t),this},t.prototype.one=function(e,t){return Sn(this._oneHandlers||(this._oneHandlers={}),e,t),this},t.prototype.off=function(e,t){return this._handlers&&Dn(this._handlers,e,t),this._oneHandlers&&Dn(this._oneHandlers,e,t),this},t.prototype.trigger=function(e){for(var t=[],n=1;n=n[t]&&e=n[t]&&e0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()0},e.prototype.canScrollRight=function(){return this.getScrollLeft()=200&&i.status<400)try{var e=JSON.parse(i.responseText);r(e,i)}catch(e){o("Failure parsing JSON",i)}else o("Request failed",i)},i.onerror=function(){o("Request failed",i)},i.send(a)}function Fn(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Gn=Hn({eventSourceDefs:[{parseMeta:function(e){if("string"==typeof e)e={url:e};else if(!e||"object"!=typeof e||!e.url)return null;return{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,o=function(e,t,n){var r,o,a,i,s=n.dateEnv,l={};null==(r=e.startParam)&&(r=n.opt("startParam"));null==(o=e.endParam)&&(o=n.opt("endParam"));null==(a=e.timeZoneParam)&&(a=n.opt("timeZoneParam"));i="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Fe(l,i),l[r]=s.formatIso(t.start),l[o]=s.formatIso(t.end),"local"!==s.timeZone&&(l[a]=s.timeZone);return l}(r,e.range,e.calendar);Bn(r.method,r.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}}]});var Un=Hn({recurringTypes:[{parse:function(e,t,n){var r,o,a=n.createMarker.bind(n),i=Ne(e,{daysOfWeek:null,startTime:ie,endTime:ie,startRecur:a,endRecur:a},{},t),s=!1;for(var l in i)if(null!=i[l]){s=!0;break}if(s){var u=null;return"duration"in t&&(u=ie(t.duration),delete t.duration),!u&&i.startTime&&i.endTime&&(r=i.endTime,o=i.startTime,u={years:r.years-o.years,months:r.months-o.months,days:r.days-o.days,milliseconds:r.milliseconds-o.milliseconds}),{allDayGuess:Boolean(!i.startTime&&!i.endTime),duration:u,typeData:i}}return null},expand:function(e,t,n){var r=ct(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var o=e?Je(e):null,a=K(n.start),i=n.end,s=[];for(;a0?e[0].code:"en",n=window.FullCalendarLocalesAll||[],r=window.FullCalendarLocales||{},o=n.concat(Qe(r),e),a={en:er},i=0,s=o;i0;o--){var a=r.slice(0,o).join("-");if(t[a])return t[a]}return null}(n,t)||er;return rr(e,n,r)}(e,t):rr(e.code,[e.code],e)}function rr(e,t,n){var r=Ve([er,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var or=function(){function e(e){this.overrides=Fe({},e),this.dynamicOverrides={},this.compute()}return e.prototype.mutate=function(e,t,n){var r=n?this.dynamicOverrides:this.overrides;Fe(r,e);for(var o=0,a=t;o=1?Math.min(o,a):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=G(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),function(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Et(t,!0)))),r}(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?te(Z(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?te(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-$(ee(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ee(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?$(ee(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ee(e))*60):new Date(e.valueOf()-(t||0))},e}(),cr={id:String,allDayDefault:Boolean,eventDataTransform:Function,success:Function,failure:Function},dr=0;function fr(e,t){return!t.pluginSystem.hooks.eventSourceDefs[e.sourceDefId].ignoreRange}function pr(e,t){for(var n=t.pluginSystem.hooks.eventSourceDefs,r=n.length-1;r>=0;r--){var o=n[r].parseMeta(e);if(o){var a=_r("object"==typeof e?e:{},o,r,t);return a._raw=e,a}}return null}function _r(e,t,n,r){var o={},a=Ne(e,cr,{},o),i={},s=an(o,r,i);return a.isFetching=!1,a.latestFetchId="",a.fetchRange=null,a.publicId=String(e.id||""),a.sourceId=String(dr++),a.sourceDefId=n,a.meta=t,a.ui=s,a.extendedProps=i,a}function hr(e,t,n,r){switch(t.type){case"ADD_EVENT_SOURCES":return function(e,t,n,r){for(var o={},a=0,i=t;ae.fetchRange.end:!e.latestFetchId}(e,t,n)})),t,n)}function br(e,t,n,r){var o={};for(var a in e){var i=e[a];t[a]?o[a]=gr(i,n,r):o[a]=i}return o}function gr(e,t,n){var r=n.pluginSystem.hooks.eventSourceDefs[e.sourceDefId],o=String(mr++);return r.fetch({eventSource:e,calendar:n,range:t},(function(r){var a,i,s=r.rawEvents,l=n.opt("eventSourceSuccess");e.success&&(i=e.success(s,r.xhr)),l&&(a=l(s,r.xhr)),s=i||a||s,n.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:o,fetchRange:t,rawEvents:s})}),(function(r){var a=n.opt("eventSourceFailure");console.warn(r.message,r),e.failure&&e.failure(r),a&&a(r),n.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:o,fetchRange:t,error:r})})),Fe({},e,{isFetching:!0,latestFetchId:o})}var vr=function(){function e(e,t){this.viewSpec=e,this.options=e.options,this.dateEnv=t.dateEnv,this.calendar=t,this.initHiddenDays()}return e.prototype.buildPrev=function(e,t){var n=this.dateEnv,r=n.subtract(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,-1)},e.prototype.buildNext=function(e,t){var n=this.dateEnv,r=n.add(n.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(r,1)},e.prototype.build=function(e,t,n){var r;void 0===n&&(n=!1);var o,a,i,s,l,u,c,d,f;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(d=e,e=null!=(f=r).start&&d=f.end?new Date(f.end.valueOf()-1):d),i=this.buildCurrentRangeInfo(e,t),s=/^(year|month|week|day)$/.test(i.unit),l=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,s),u=l=this.trimHiddenDays(l),this.options.showNonCurrentDates||(u=ct(u,i.range)),o=ie(this.options.minTime),a=ie(this.options.maxTime),u=ct(u=this.adjustActiveRange(u,o,a),r),c=ft(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:s,activeRange:u,renderRange:l,minTime:o,maxTime:a,isValid:c,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){return this.getRangeOption("validRange",this.calendar.getNow())||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.viewSpec,o=this.dateEnv,a=null,i=null,s=null;return r.duration?(a=r.duration,i=r.durationUnit,s=this.buildRangeFromDuration(e,t,a,i)):(n=this.options.dayCount)?(i="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?i=o.greatestWholeUnit(s.start,s.end).unit:(i=he(a=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,a,i)),{duration:a,unit:i,range:s}},e.prototype.getFallbackDuration=function(){return ie({day:1})},e.prototype.adjustActiveRange=function(e,t,n){var r=this.dateEnv,o=e.start,a=e.end;return this.viewSpec.class.prototype.usesMinMaxTime&&(fe(t)<0&&(o=K(o),o=r.add(o,t)),fe(n)>1&&(a=F(a=K(a),-1),a=r.add(a,n))),{start:o,end:a}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,a,i,s,l,u=this.dateEnv,c=this.options.dateAlignment;function d(){i=u.startOf(e,c),s=u.add(i,n),l={start:i,end:s}}return c||((o=this.options.dateIncrement)?(a=ie(o),c=pe(a) ")),_=!1):((a=d[e])?(c=function(e){a.click&&a.click.call(g,e)},(h=r.getCustomButtonIconClass(a))||(h=r.getIconClass(e))||(m=a.text)):(u=l[e])?(n.viewsWithButtons.push(e),c=function(){o.changeView(e)},(m=u.buttonTextOverride)||(h=r.getIconClass(e))||(m=u.buttonTextDefault)):o[e]&&(c=function(){o[e]()},(m=f[e])||(h=r.getIconClass(e))||(m=p[e])),c&&(b=["fc-"+e+"-button",r.getClass("button")],m?(y=tn(m),v=""):h&&(y="",v=' aria-label="'+e+'"'),(g=i('")).addEventListener("click",c),s.push(g)))})),s.length>1){a=document.createElement("div");var h=r.getClass("buttonGroup");_&&h&&a.classList.add(h),u(a,s),c.appendChild(a)}else u(c,s)})),c},t.prototype.updateToday=function(e){this.toggleButtonEnabled("today",e)},t.prototype.updatePrev=function(e){this.toggleButtonEnabled("prev",e)},t.prototype.updateNext=function(e){this.toggleButtonEnabled("next",e)},t.prototype.updateTitle=function(e){b(this.el,"h2").forEach((function(t){t.innerText=e}))},t.prototype.updateActiveButton=function(e){var t=this.theme.getClass("buttonActive");b(this.el,"button").forEach((function(n){e&&n.classList.contains("fc-"+e+"-button")?n.classList.add(t):n.classList.remove(t)}))},t.prototype.toggleButtonEnabled=function(e,t){b(this.el,".fc-"+e+"-button").forEach((function(e){e.disabled=!t}))},t}(Rn),Hr=function(e){function t(t,n){var r=e.call(this,t)||this;r._renderToolbars=gn(r.renderToolbars),r.buildViewPropTransformers=mt(Wr),r.el=n,c(n,r.contentEl=a("div",{className:"fc-view-container"}));for(var o=r.calendar,i=0,s=o.pluginSystem.hooks.viewContainerModifiers;i1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}(e),t.titleRangeSeparator),{isEndExclusive:e.isRangeAllDay})}function Wr(e){return e.map((function(e){return new e}))}var qr=function(){function e(e){this.component=e.component}return e.prototype.destroy=function(){},e}();function Br(e){var t;return(t={})[e.component.uid]=e,t}var Fr={},Gr=function(e){function t(t){var n=e.call(this,t)||this;n.handleSegClick=function(e,t){var r=n.component,o=Ht(t);if(o&&r.isValidSegDownEl(e.target)){var a=m(e.target,".fc-has-url"),i=a?a.querySelector("a[href]").href:"";r.publiclyTrigger("eventClick",[{el:t,event:new jt(r.calendar,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.view}]),i&&!e.defaultPrevented&&(window.location.href=i)}};var r=t.component;return n.destroy=H(r.el,"click",r.fgSegSelector+","+r.bgSegSelector,n.handleSegClick),n}return Be(t,e),t}(qr),Ur=function(e){function t(t){var n=e.call(this,t)||this;n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Ht(t)&&(t.classList.add("fc-allow-mouse-resize"),n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(t.classList.remove("fc-allow-mouse-resize"),n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))};var r,o,a,i,s,l=t.component;return n.removeHoverListeners=(r=l.el,o=l.fgSegSelector+","+l.bgSegSelector,a=n.handleSegEnter,i=n.handleSegLeave,H(r,"mouseover",o,(function(e,t){if(t!==s){s=t,a(e,t);var n=function(e){s=null,i(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),l.calendar.on("eventElRemove",n.handleEventElRemove),n}return Be(t,e),t.prototype.destroy=function(){this.removeHoverListeners(),this.component.calendar.off("eventElRemove",this.handleEventElRemove)},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=Ht(n);t&&!r.isValidSegDownEl(t.target)||r.publiclyTrigger(e,[{el:n,event:new jt(this.component.calendar,o.eventRange.def,o.eventRange.instance),jsEvent:t,view:r.view}])},t}(qr),Vr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Be(t,e),t}(jn);Vr.prototype.classes={widget:"fc-unthemed",widgetHeader:"fc-widget-header",widgetContent:"fc-widget-content",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active",popoverHeader:"fc-widget-header",popoverContent:"fc-widget-content",headerRow:"fc-widget-header",dayRow:"fc-widget-content",listView:"fc-widget-content"},Vr.prototype.baseIconClass="fc-icon",Vr.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},Vr.prototype.iconOverrideOption="buttonIcons",Vr.prototype.iconOverrideCustomButtonOption="icon",Vr.prototype.iconOverridePrefix="fc-icon-";var Xr=function(){function e(e,t){var n,r,o,a=this;this.parseRawLocales=mt(tr),this.buildLocale=mt(nr),this.buildDateEnv=mt(Kr),this.buildTheme=mt(Jr),this.buildEventUiSingleBase=mt(this._buildEventUiSingleBase),this.buildSelectionConfig=mt(this._buildSelectionConfig),this.buildEventUiBySource=(n=Zr,r=Ze,o=null,function(){var e=n.apply(this,arguments);return(null===o||o!==e&&!r(o,e))&&(o=e),o}),this.buildEventUiBases=mt($r),this.interactionsStore={},this.actionQueue=[],this.isReducing=!1,this.needsRerender=!1,this.needsFullRerender=!1,this.isRendering=!1,this.renderingPauseDepth=0,this.buildDelayedRerender=mt(Qr),this.afterSizingTriggers={},this.isViewUpdated=!1,this.isDatesUpdated=!1,this.isEventsUpdated=!1,this.el=e,this.optionsManager=new or(t||{}),this.pluginSystem=new zn,this.addPluginInputs(this.optionsManager.computed.plugins||[]),this.handleOptions(this.optionsManager.computed),this.publiclyTrigger("_init"),this.hydrate(),this.calendarInteractions=this.pluginSystem.hooks.calendarInteractions.map((function(e){return new e(a)}))}return e.prototype.addPluginInputs=function(e){for(var t=function(e){for(var t=[],n=0,r=e;n"},e.prototype.detachSegs=function(e,t){var n=this.containerElsByType[e];n&&(n.forEach(p),delete this.containerElsByType[e])},e.prototype.computeSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.computeSegSizes(this.segsByType[t])},e.prototype.assignSizes=function(e){for(var t in this.segsByType)(e||this.dirtySizeFlags[t])&&this.assignSegSizes(this.segsByType[t]);this.dirtySizeFlags={}},e.prototype.computeSegSizes=function(e){},e.prototype.assignSegSizes=function(e){},e}(),oo=function(){function e(e){this.emitter=new On}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}();var ao={startTime:ie,duration:ie,create:Boolean,sourceId:String},io={create:!0};function so(e){var t={},n=Ne(e,ao,io,t);return n.leftoverProps=t,n}function lo(e,t,n,r,o,a,i,s){var l,u=a.view,c=a.dateEnv,d=a.theme,f=a.options,p=_t(t.activeRange,e),_=["fc-day-header",d.getClass("widgetHeader")];return l="function"==typeof f.columnHeaderHtml?f.columnHeaderHtml(c.toDate(e)):"function"==typeof f.columnHeaderText?tn(f.columnHeaderText(c.toDate(e))):tn(c.format(e,o)),n?_=_.concat(Ln(e,t,a,!0)):_.push("fc-"+q[e.getUTCDay()]),'1?' colspan="'+i+'"':"")+(s?" "+s:"")+">"+(p?kn(u,{date:e,forceOff:!n||1===r},l):l)+""}var uo=function(e){function t(t,n){var r=e.call(this,t)||this;return n.innerHTML="",n.appendChild(r.el=i('
')),r.thead=r.el.querySelector("thead"),r}return Be(t,e),t.prototype.destroy=function(){p(this.el)},t.prototype.render=function(e){var t=e.dates,n=e.datesRepDistinctDays,r=[];e.renderIntroHtml&&r.push(e.renderIntroHtml());for(var o=Dt(this.opt("columnHeaderFormat")||function(e,t){return!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"}}(n,t.length)),a=0,i=t;a"+r.join("")+""},t}(Rn),co=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],a=[],i=-1;n=t.length?t[t.length-1]+1:t[n]},e}(),fo=function(){function e(e,t){var n,r,o,a=e.dates;if(t){for(r=a[0].getUTCDay(),n=1;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var z=/(\[[^\[]*\])|(\\)?([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,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},B={};function F(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(B[e]=o),t&&(B[t[0]]=function(){return H(o.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function G(e,t){return e.isValid()?(t=U(t,e.localeData()),q[t]=q[t]||function(e){var t,n,r,o=e.match(z);for(t=0,n=o.length;t=0&&W.test(e);)e=e.replace(W,r),W.lastIndex=0,n-=1;return e}var V=/\d/,X=/\d\d/,K=/\d{3}/,J=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,$=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,oe=/\d+/,ae=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function ce(e,t,n){ue[e]=E(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var pe={};function _e(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=k(e)}),n=0;n68?1900:2e3)};var ge,ve=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(ke(this,e,n),o.updateOffset(this,t),this):Me(this,e)}}function Me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ke(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&be(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?be(e)?29:28:31-r%7%2}ge=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Ie(e){var t;if(e<100&&e>=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 Re(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Ne(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+Re(e,r,o);return s<=0?i=ye(a=e-1)+s:s>ye(e)?(a=e+1,i=s-ye(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ye(e,t,n){var r,o,a=Re(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+He(o=e.year()-1,t,n):i>He(e.year(),t,n)?(r=i-He(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function He(e,t,n){var r=Re(e,t,n),o=Re(e+1,t,n);return(ye(e)-r+o)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),Y("week",5),Y("isoWeek",5),ce("w",Z),ce("ww",Z,X),ce("W",Z),ce("WW",Z,X),he(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=k(e)})),F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),Y("day",11),Y("weekday",11),Y("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),he(["dd","ddd","dddd"],(function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);null!=o?t.d=o:_(n).invalidWeekday=e})),he(["d","e","E"],(function(e,t,n,r){t[r]=k(e)}));var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function Fe(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=ge.call(this._weekdaysParse,i))||-1!==(o=ge.call(this._shortWeekdaysParse,i))||-1!==(o=ge.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ge.call(this._shortWeekdaysParse,i))||-1!==(o=ge.call(this._weekdaysParse,i))||-1!==(o=ge.call(this._minWeekdaysParse,i))?o:null:-1!==(o=ge.call(this._minWeekdaysParse,i))||-1!==(o=ge.call(this._weekdaysParse,i))||-1!==(o=ge.call(this._shortWeekdaysParse,i))?o:null}var Ge=le,Ue=le,Ve=le;function Xe(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),a=this.weekdays(n,""),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);for(i.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Je(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Ke),F("k",["kk",2],0,(function(){return this.hours()||24})),F("hmm",0,0,(function(){return""+Ke.apply(this)+H(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Ke.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),Je("a",!0),Je("A",!1),j("hour","h"),Y("hour",13),ce("a",Qe),ce("A",Qe),ce("H",Z),ce("h",Z),ce("k",Z),ce("HH",Z,X),ce("hh",Z,X),ce("kk",Z,X),ce("hmm",$),ce("hmmss",ee),ce("Hmm",$),ce("Hmmss",ee),_e(["H","HH"],3),_e(["k","kk"],(function(e,t,n){var r=k(e);t[3]=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[3]=k(e),_(n).bigHour=!0})),_e("hmm",(function(e,t,n){var r=e.length-2;t[3]=k(e.substr(0,r)),t[4]=k(e.substr(r)),_(n).bigHour=!0})),_e("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=k(e.substr(0,r)),t[4]=k(e.substr(r,2)),t[5]=k(e.substr(o)),_(n).bigHour=!0})),_e("Hmm",(function(e,t,n){var r=e.length-2;t[3]=k(e.substr(0,r)),t[4]=k(e.substr(r))})),_e("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=k(e.substr(0,r)),t[4]=k(e.substr(r,2)),t[5]=k(e.substr(o))}));var Ze,$e=we("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Oe,monthsShort:Se,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Be,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function ot(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(1191)("./"+t),at(r)}catch(e){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):it(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function it(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])x("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=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=ot(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new P(A(r,t)),nt[e]&&nt[e].forEach((function(e){it(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=ot(e))return t;e=[e]}return function(e){for(var t,n,r,o,a=0;a0;){if(r=ot(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(o,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===_(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Te(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,_(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),_(e)._overflowWeeks&&-1===t&&(t=7),_(e)._overflowWeekday&&-1===t&&(t=8),_(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,r,a,i,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[2]&&null==e._a[1]&&function(e){var t,n,r,o,a,i,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,i=4,n=ut(t.GG,e._a[0],Ye(Lt(),1,4).year),r=ut(t.W,1),((o=ut(t.E,1))<1||o>7)&&(l=!0);else{a=e._locale._week.dow,i=e._locale._week.doy;var u=Ye(Lt(),a,i);n=ut(t.gg,e._a[0],u.year),r=ut(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a}r<1||r>He(n,a,i)?_(e)._overflowWeeks=!0:null!=l?_(e)._overflowWeekday=!0:(s=Ne(n,r,o,a,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=ut(e._a[0],r[0]),(e._dayOfYear>ye(i)||0===e._dayOfYear)&&(_(e)._overflowDayOfYear=!0),n=Ie(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=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[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:je).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(_(e).weekdayMismatch=!0)}}var dt=/^\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)?)?$/,ft=/^\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)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,_t=[["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}/]],ht=[["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/]],mt=/^\/?Date\((\-?\d+)/i;function yt(e){var t,n,r,o,a,i,s=e._i,l=dt.exec(s)||ft.exec(s);if(l){for(_(e).iso=!0,t=0,n=_t.length;t0&&_(e).unusedInput.push(i),s=s.slice(s.indexOf(n)+n.length),u+=n.length),B[a]?(n?_(e).empty=!1:_(e).unusedTokens.push(a),me(a,n,e)):e._strict&&!n&&_(e).unusedTokens.push(a);_(e).charsLeftOver=l-u,s.length>0&&_(e).unusedInput.push(s),e._a[3]<=12&&!0===_(e).bigHour&&e._a[3]>0&&(_(e).bigHour=void 0),_(e).parsedDateParts=e._a.slice(0),_(e).meridiem=e._meridiem,e._a[3]=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[3],e._meridiem),ct(e),lt(e)}else wt(e);else yt(e)}function kt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(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(lt(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,r,o,a;if(0===e._f.length)return _(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:m()}));function Dt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Lt();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){F(0,[e,e.length],0,t)}function nn(e,t,n,r,o){var a;return null==e?Ye(this,r,o).year:(t>(a=He(e,r,o))&&(t=a),rn.call(this,e,t,n,r,o))}function rn(e,t,n,r,o){var a=Ne(e,t,n,r,o),i=Ie(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),Y("weekYear",1),Y("isoWeekYear",1),ce("G",ae),ce("g",ae),ce("GG",Z,X),ce("gg",Z,X),ce("GGGG",ne,J),ce("gggg",ne,J),ce("GGGGG",re,Q),ce("ggggg",re,Q),he(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=k(e)})),he(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),j("quarter","Q"),Y("quarter",7),ce("Q",V),_e("Q",(function(e,t){t[1]=3*(k(e)-1)})),F("D",["DD",2],"Do","date"),j("date","D"),Y("date",9),ce("D",Z),ce("DD",Z,X),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),_e(["D","DD"],2),_e("Do",(function(e,t){t[2]=k(e.match(Z)[0])}));var on=we("Date",!0);F("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),Y("dayOfYear",4),ce("DDD",te),ce("DDDD",K),_e(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=k(e)})),F("m",["mm",2],0,"minute"),j("minute","m"),Y("minute",14),ce("m",Z),ce("mm",Z,X),_e(["m","mm"],4);var an=we("Minutes",!1);F("s",["ss",2],0,"second"),j("second","s"),Y("second",15),ce("s",Z),ce("ss",Z,X),_e(["s","ss"],5);var sn,ln=we("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),Y("millisecond",16),ce("S",te,V),ce("SS",te,X),ce("SSS",te,K),sn="SSSS";sn.length<=9;sn+="S")ce(sn,oe);function un(e,t){t[6]=k(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")_e(sn,un);var cn=we("Milliseconds",!1);F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var dn=v.prototype;function fn(e){return e}dn.add=Ut,dn.calendar=function(e,t){var n=e||Lt(),r=Rt(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(E(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Lt(n)))},dn.clone=function(){return new v(this)},dn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Rt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=I(t)){case"year":a=Xt(this,r)/12;break;case"month":a=Xt(this,r);break;case"quarter":a=Xt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:M(a)},dn.endOf=function(e){var t;if(void 0===(e=I(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:$t;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+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=G(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Lt(e).isValid())?Wt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Lt(),e)},dn.to=function(e,t){return this.isValid()&&(w(e)&&e.isValid()||Lt(e).isValid())?Wt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Lt(),e)},dn.get=function(e){return E(this[e=I(e)])?this[e]():this},dn.invalidAt=function(){return _(this).overflow},dn.isAfter=function(e,t){var n=w(e)?e:Lt(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=I(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?G(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.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)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=ve,dn.isLeapYear=function(){return be(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Ee,dn.daysInMonth=function(){return Te(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Ye(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return He(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return He(this.year(),1,4)},dn.date=on,dn.day=dn.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},dn.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")},dn.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},dn.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")},dn.hour=dn.hours=$e,dn.minute=dn.minutes=an,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=cn,dn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=It(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=Nt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?Gt(this,Wt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,o.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Nt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Nt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=It(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Lt(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Yt,dn.isUTC=Yt,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=O("dates accessor is deprecated. Use date instead.",on),dn.months=O("months accessor is deprecated. Use month instead",Ee),dn.years=O("years accessor is deprecated. Use year instead",ve),dn.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()})),dn.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=kt(e))._a){var t=e._isUTC?p(e._a):Lt(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var pn=P.prototype;function _n(e,t,n,r){var o=st(),a=p().set(r,t);return o[n](a,e)}function hn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return _n(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=_n(e,r,n,"month");return o}function mn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var o,a=st(),i=e?a._week.dow:0;if(null!=n)return _n(t,(n+i)%7,r,"day");var s=[];for(o=0;o<7;o++)s[o]=_n(t,(o+i)%7,r,"day");return s}pn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r},pn.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])},pn.invalidDate=function(){return this._invalidDate},pn.ordinal=function(e){return this._ordinal.replace("%d",e)},pn.preparse=fn,pn.postformat=fn,pn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return E(o)?o(e,t,n,r):o.replace(/%d/i,e)},pn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)},pn.set=function(e){var t,n;for(n in e)E(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)},pn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},pn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},pn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.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]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.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}},pn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ce.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Pe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},pn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||Ce.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Ae),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},pn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},pn.firstDayOfYear=function(){return this._week.doy},pn.firstDayOfWeek=function(){return this._week.dow},pn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},pn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},pn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},pn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Fe.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]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.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}},pn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=Ge),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},pn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ue),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},pn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ve),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},pn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},pn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===k(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=O("moment.lang is deprecated. Use moment.locale instead.",at),o.langData=O("moment.langData is deprecated. Use moment.localeData instead.",st);var yn=Math.abs;function bn(e,t,n,r){var o=Wt(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function gn(e){return e<0?Math.floor(e):Math.ceil(e)}function vn(e){return 4800*e/146097}function wn(e){return 146097*e/4800}function Mn(e){return function(){return this.as(e)}}var kn=Mn("ms"),Tn=Mn("s"),Ln=Mn("m"),On=Mn("h"),Sn=Mn("d"),Dn=Mn("w"),xn=Mn("M"),En=Mn("Q"),An=Mn("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Cn=Pn("milliseconds"),jn=Pn("seconds"),In=Pn("minutes"),Rn=Pn("hours"),Nn=Pn("days"),Yn=Pn("months"),Hn=Pn("years"),zn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,M:11};function qn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Bn=Math.abs;function Fn(e){return(e>0)-(e<0)||+e}function Gn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Bn(this._milliseconds)/1e3,r=Bn(this._days),o=Bn(this._months);e=M(n/60),t=M(e/60),n%=60,e%=60;var a=M(o/12),i=o%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",p=Fn(this._months)!==Fn(d)?"-":"",_=Fn(this._days)!==Fn(d)?"-":"",h=Fn(this._milliseconds)!==Fn(d)?"-":"";return f+"P"+(a?p+a+"Y":"")+(i?p+i+"M":"")+(s?_+s+"D":"")+(l||u||c?"T":"")+(l?h+l+"H":"")+(u?h+u+"M":"")+(c?h+c+"S":"")}var Un=Et.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var e=this._data;return this._milliseconds=yn(this._milliseconds),this._days=yn(this._days),this._months=yn(this._months),e.milliseconds=yn(e.milliseconds),e.seconds=yn(e.seconds),e.minutes=yn(e.minutes),e.hours=yn(e.hours),e.months=yn(e.months),e.years=yn(e.years),this},Un.add=function(e,t){return bn(this,e,t,1)},Un.subtract=function(e,t){return bn(this,e,t,-1)},Un.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=I(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+vn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(wn(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)}},Un.asMilliseconds=kn,Un.asSeconds=Tn,Un.asMinutes=Ln,Un.asHours=On,Un.asDays=Sn,Un.asWeeks=Dn,Un.asMonths=xn,Un.asQuarters=En,Un.asYears=An,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*k(this._months/12):NaN},Un._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*gn(wn(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=M(a/1e3),l.seconds=e%60,t=M(e/60),l.minutes=t%60,n=M(t/60),l.hours=n%24,i+=M(n/24),o=M(vn(i)),s+=o,i-=gn(wn(o)),r=M(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Un.clone=function(){return Wt(this)},Un.get=function(e){return e=I(e),this.isValid()?this[e+"s"]():NaN},Un.milliseconds=Cn,Un.seconds=jn,Un.minutes=In,Un.hours=Rn,Un.days=Nn,Un.weeks=function(){return M(this.days()/7)},Un.months=Yn,Un.years=Hn,Un.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Wt(e).abs(),o=zn(r.as("s")),a=zn(r.as("m")),i=zn(r.as("h")),s=zn(r.as("d")),l=zn(r.as("M")),u=zn(r.as("y")),c=o<=Wn.ss&&["s",o]||o0,c[4]=n,qn.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Un.toISOString=Gn,Un.toString=Gn,Un.toJSON=Gn,Un.locale=Kt,Un.localeData=Qt,Un.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gn),Un.lang=Jt,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ce("x",ae),ce("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(k(e))})),o.version="2.24.0",t=Lt,o.fn=dn,o.min=function(){var e=[].slice.call(arguments,0);return Dt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return Dt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=p,o.unix=function(e){return Lt(1e3*e)},o.months=function(e,t){return hn(e,t,"months")},o.isDate=u,o.locale=at,o.invalid=m,o.duration=Wt,o.isMoment=w,o.weekdays=function(e,t,n){return mn(e,t,n,"weekdays")},o.parseZone=function(){return Lt.apply(null,arguments).parseZone()},o.localeData=st,o.isDuration=At,o.monthsShort=function(e,t){return hn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return mn(e,t,n,"weekdaysMin")},o.defineLocale=it,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=(r=ot(e))&&(o=r._config),t=A(o,t),(n=new P(t)).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return S(tt)},o.weekdaysShort=function(e,t,n){return mn(e,t,n,"weekdaysShort")},o.normalizeUnits=I,o.relativeTimeRounding=function(e){return void 0===e?zn:"function"==typeof e&&(zn=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.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=dn,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){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,L=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},I={};function R(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(I[e]=o),t&&(I[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=Y(t,e.localeData()),j[t]=j[t]||function(e){var t,n,r,o=e.match(P);for(t=0,n=o.length;t=0&&C.test(e);)e=e.replace(C,r),C.lastIndex=0,n-=1;return e}var H={};function z(e,t){var n=e.toLowerCase();H[n]=H[n+"s"]=H[t]=e}function W(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function q(e){var t,n,r={};for(n in e)s(e,n)&&(t=W(n))&&(r[t]=e[n]);return r}var B={};function F(e,t){B[e]=t}function G(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function X(e,t){return function(n){return null!=n?(J(this,e,n),o.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,Z=/\d/,$=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ue=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _e(e,t,n){Q[e]=D(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Q,e)?Q[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ye,be={};function ge(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=V(e)}),n=0;n68?1900:2e3)};var Ce=X("FullYear",!0);function je(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Ie(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Re(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Ne(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+Re(e,r,o);return s<=0?i=Pe(a=e-1)+s:s>Pe(e)?(a=e+1,i=s-Pe(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ye(e,t,n){var r,o,a=Re(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+He(o=e.year()-1,t,n):i>He(e.year(),t,n)?(r=i-He(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function He(e,t,n){var r=Re(e,t,n),o=Re(e+1,t,n);return(Pe(e)-r+o)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),F("week",5),F("isoWeek",5),_e("w",re),_e("ww",re,$),_e("W",re),_e("WW",re,$),ve(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=V(e)})),R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),_e("d",re),_e("e",re),_e("E",re),_e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),_e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),_e("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["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})),ve(["d","e","E"],(function(e,t,n,r){t[r]=V(e)}));var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=pe,Ge=pe,Ue=pe;function Ve(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null}function Xe(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),a=me(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Je(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Ke),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+Ke.apply(this)+A(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Ke.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Je("a",!0),Je("A",!1),z("hour","h"),F("hour",13),_e("a",Qe),_e("A",Qe),_e("H",re),_e("h",re),_e("k",re),_e("HH",re,$),_e("hh",re,$),_e("kk",re,$),_e("hmm",oe),_e("hmmss",ae),_e("Hmm",oe),_e("Hmmss",ae),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=V(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=V(e),h(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r)),h(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(o)),h(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(o))}));var Ze,$e=X("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Te,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Be,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=at(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}a++}return Ze}(e)}function ut(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["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/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,o,a,i,s=e._i,l=ct.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=pt.length;t7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ye(Ot(),a,i),n=wt(t.gg,e._a[0],u.year),r=wt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>He(n,a,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ne(n,r,o,a,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=wt(e._a[0],r[0]),(e._dayOfYear>Pe(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ie(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=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[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:je).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,a,i,s,l=""+e._i,u=l.length,c=0;for(r=Y(e._f,e._locale).match(P)||[],t=0;t0&&h(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),c+=n.length),I[a]?(n?h(e).empty=!1:h(e).unusedTokens.push(a),we(a,n,e)):e._strict&&!n&&h(e).unusedTokens.push(a);h(e).charsLeftOver=u-c,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=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[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Mt(e),ut(e)}else vt(e);else bt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(ut(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a,i,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:y()}));function xt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e(a=He(e,r,o))&&(t=a),cn.call(this,e,t,n,r,o))}function cn(e,t,n,r,o){var a=Ne(e,t,n,r,o),i=Ie(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),_e("N",an),_e("NN",an),_e("NNN",an),_e("NNNN",(function(e,t){return t.erasNameRegex(e)})),_e("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e})),_e("y",ue),_e("yy",ue),_e("yyy",ue),_e("yyyy",ue),_e("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),_e("G",ce),_e("g",ce),_e("GG",re,$),_e("gg",re,$),_e("GGGG",se,te),_e("gggg",se,te),_e("GGGGG",le,ne),_e("ggggg",le,ne),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=V(e)})),ve(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),z("quarter","Q"),F("quarter",7),_e("Q",Z),ge("Q",(function(e,t){t[1]=3*(V(e)-1)})),R("D",["DD",2],"Do","date"),z("date","D"),F("date",9),_e("D",re),_e("DD",re,$),_e("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=V(e.match(re)[0])}));var dn=X("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),F("dayOfYear",4),_e("DDD",ie),_e("DDDD",ee),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),R("m",["mm",2],0,"minute"),z("minute","m"),F("minute",14),_e("m",re),_e("mm",re,$),ge(["m","mm"],4);var fn=X("Minutes",!1);R("s",["ss",2],0,"second"),z("second","s"),F("second",15),_e("s",re),_e("ss",re,$),ge(["s","ss"],5);var pn,_n,hn=X("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),F("millisecond",16),_e("S",ie,Z),_e("SS",ie,$),_e("SSS",ie,ee),pn="SSSS";pn.length<=9;pn+="S")_e(pn,ue);function mn(e,t){t[6]=V(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ge(pn,mn);_n=X("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var yn=w.prototype;function bn(e){return e}yn.add=Vt,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),r=Nt(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(D(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Ot(n)))},yn.clone=function(){return new w(this)},yn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=W(t)){case"year":a=Zt(this,r)/12;break;case"month":a=Zt(this,r);break;case"quarter":a=Zt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:U(a)},yn.endOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(Ot(),e)},yn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(Ot(),e)},yn.get=function(e){return D(this[e=W(e)])?this[e]():this},yn.invalidAt=function(){return h(this).overflow},yn.isAfter=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Ht,yn.isUTC=Ht,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=T("dates accessor is deprecated. Use date instead.",dn),yn.months=T("months accessor is deprecated. Use month instead",Ee),yn.years=T("years accessor is deprecated. Use year instead",Ce),yn.zone=T("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()})),yn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Tt(t))._a?(e=t._isUTC?_(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=E.prototype;function vn(e,t,n,r){var o=lt(),a=_().set(r,t);return o[n](a,e)}function wn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=vn(e,r,n,"month");return o}function Mn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=lt(),i=e?a._week.dow:0,s=[];if(null!=n)return vn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=vn(t,(o+i)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=bn,gn.postformat=bn,gn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)s(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,r,a,i=this._eras||lt("en")._eras;for(n=0,r=i.length;n=0)return l[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=_([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]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.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}},gn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Se),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=_([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]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.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}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",it),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",lt);var kn=Math.abs;function Tn(e,t,n,r){var o=qt(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 On(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var xn=Dn("ms"),En=Dn("s"),An=Dn("m"),Pn=Dn("h"),Cn=Dn("d"),jn=Dn("w"),In=Dn("M"),Rn=Dn("Q"),Nn=Dn("y");function Yn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hn=Yn("milliseconds"),zn=Yn("seconds"),Wn=Yn("minutes"),qn=Yn("hours"),Bn=Yn("days"),Fn=Yn("months"),Gn=Yn("years"),Un=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Kn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=Kn(this._milliseconds)/1e3,u=Kn(this._days),c=Kn(this._months),d=this.asSeconds();return d?(e=U(l/60),t=U(e/60),l%=60,e%=60,n=U(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=Jn(this._months)!==Jn(d)?"-":"",i=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=At.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Zn.add=function(e,t){return Tn(this,e,t,1)},Zn.subtract=function(e,t){return Tn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+On(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(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=xn,Zn.asSeconds=En,Zn.asMinutes=An,Zn.asHours=Pn,Zn.asDays=Cn,Zn.asWeeks=jn,Zn.asMonths=In,Zn.asQuarters=Rn,Zn.asYears=Nn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ln(Sn(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=U(a/1e3),l.seconds=e%60,t=U(e/60),l.minutes=t%60,n=U(t/60),l.hours=n%24,i+=U(n/24),o=U(On(i)),s+=o,i-=Ln(Sn(o)),r=U(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Zn.clone=function(){return qt(this)},Zn.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Hn,Zn.seconds=zn,Zn.minutes=Wn,Zn.hours=qn,Zn.days=Bn,Zn.weeks=function(){return U(this.days()/7)},Zn.months=Fn,Zn.years=Gn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=qt(e).abs(),a=Un(o.as("s")),i=Un(o.as("m")),s=Un(o.as("h")),l=Un(o.as("d")),u=Un(o.as("M")),c=Un(o.as("w")),d=Un(o.as("y")),f=a<=n.ss&&["s",a]||a0,f[4]=r,Xn.apply(null,f)}(this,!o,a,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Qn,Zn.toString=Qn,Zn.toJSON=Qn,Zn.locale=$t,Zn.localeData=tn,Zn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Zn.lang=en,R("X",0,0,"unix"),R("x",0,0,"valueOf"),_e("x",ce),_e("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(V(e))})), +//! moment.js +o.version="2.29.1",t=Ot,o.fn=yn,o.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(e){return Ot(1e3*e)},o.months=function(e,t){return wn(e,t,"months")},o.isDate=d,o.locale=it,o.invalid=y,o.duration=qt,o.isMoment=M,o.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},o.parseZone=function(){return Ot.apply(null,arguments).parseZone()},o.localeData=lt,o.isDuration=Pt,o.monthsShort=function(e,t){return wn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Mn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(x(tt[e]._config,t)):(null!=(r=at(e))&&(o=r._config),t=x(o,t),null==r&&(t.abbr=e),(n=new E(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return L(tt)},o.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},o.normalizeUnits=W,o.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=yn,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){(function(e){e.exports=function(){"use strict";var t,r;function o(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[];for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,L=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},I={};function R(e,t,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),e&&(I[e]=o),t&&(I[t[0]]=function(){return A(o.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function N(e,t){return e.isValid()?(t=Y(t,e.localeData()),j[t]=j[t]||function(e){var t,n,r,o=e.match(P);for(t=0,n=o.length;t=0&&C.test(e);)e=e.replace(C,r),C.lastIndex=0,n-=1;return e}var H={};function z(e,t){var n=e.toLowerCase();H[n]=H[n+"s"]=H[t]=e}function W(e){return"string"==typeof e?H[e]||H[e.toLowerCase()]:void 0}function q(e){var t,n,r={};for(n in e)s(e,n)&&(t=W(n))&&(r[t]=e[n]);return r}var B={};function F(e,t){B[e]=t}function G(e){return e%4==0&&e%100!=0||e%400==0}function U(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function V(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=U(t)),n}function X(e,t){return function(n){return null!=n?(J(this,e,n),o.updateOffset(this,t),this):K(this,e)}}function K(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&G(e.year())&&1===e.month()&&29===e.date()?(n=V(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Me(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var Q,Z=/\d/,$=/\d\d/,ee=/\d{3}/,te=/\d{4}/,ne=/[+-]?\d{6}/,re=/\d\d?/,oe=/\d\d\d\d?/,ae=/\d\d\d\d\d\d?/,ie=/\d{1,3}/,se=/\d{1,4}/,le=/[+-]?\d{1,6}/,ue=/\d+/,ce=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,fe=/Z|[+-]\d\d(?::?\d\d)?/gi,pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _e(e,t,n){Q[e]=D(t)?t:function(e,r){return e&&n?n:t}}function he(e,t){return s(Q,e)?Q[e](t._strict,t._locale):new RegExp(me(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,o){return t||n||r||o}))))}function me(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Q={};var ye,be={};function ge(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=V(e)}),n=0;n68?1900:2e3)};var Ce=X("FullYear",!0);function je(e,t,n,r,o,a,i){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,a,i),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,a,i),s}function Ie(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Re(e,t,n){var r=7+t-n;return-(7+Ie(e,0,r).getUTCDay()-t)%7+r-1}function Ne(e,t,n,r,o){var a,i,s=1+7*(t-1)+(7+n-r)%7+Re(e,r,o);return s<=0?i=Pe(a=e-1)+s:s>Pe(e)?(a=e+1,i=s-Pe(e)):(a=e,i=s),{year:a,dayOfYear:i}}function Ye(e,t,n){var r,o,a=Re(e.year(),t,n),i=Math.floor((e.dayOfYear()-a-1)/7)+1;return i<1?r=i+He(o=e.year()-1,t,n):i>He(e.year(),t,n)?(r=i-He(e.year(),t,n),o=e.year()+1):(o=e.year(),r=i),{week:r,year:o}}function He(e,t,n){var r=Re(e,t,n),o=Re(e+1,t,n);return(Pe(e)-r+o)/7}function ze(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),F("week",5),F("isoWeek",5),_e("w",re),_e("ww",re,$),_e("W",re),_e("WW",re,$),ve(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=V(e)})),R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),_e("d",re),_e("e",re),_e("E",re),_e("dd",(function(e,t){return t.weekdaysMinRegex(e)})),_e("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),_e("dddd",(function(e,t){return t.weekdaysRegex(e)})),ve(["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})),ve(["d","e","E"],(function(e,t,n,r){t[r]=V(e)}));var We="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Be="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Fe=pe,Ge=pe,Ue=pe;function Ve(e,t,n){var r,o,a,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=_([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"dddd"===t?-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:"ddd"===t?-1!==(o=ye.call(this._shortWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._minWeekdaysParse,i))?o:null:-1!==(o=ye.call(this._minWeekdaysParse,i))||-1!==(o=ye.call(this._weekdaysParse,i))||-1!==(o=ye.call(this._shortWeekdaysParse,i))?o:null}function Xe(){function e(e,t){return t.length-e.length}var t,n,r,o,a,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),r=me(this.weekdaysMin(n,"")),o=me(this.weekdaysShort(n,"")),a=me(this.weekdays(n,"")),i.push(r),s.push(o),l.push(a),u.push(r),u.push(o),u.push(a);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Je(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,Ke),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+Ke.apply(this)+A(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+Ke.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+A(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)})),Je("a",!0),Je("A",!1),z("hour","h"),F("hour",13),_e("a",Qe),_e("A",Qe),_e("H",re),_e("h",re),_e("k",re),_e("HH",re,$),_e("hh",re,$),_e("kk",re,$),_e("hmm",oe),_e("hmmss",ae),_e("Hmm",oe),_e("Hmmss",ae),ge(["H","HH"],3),ge(["k","kk"],(function(e,t,n){var r=V(e);t[3]=24===r?0:r})),ge(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),ge(["h","hh"],(function(e,t,n){t[3]=V(e),h(n).bigHour=!0})),ge("hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r)),h(n).bigHour=!0})),ge("hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(o)),h(n).bigHour=!0})),ge("Hmm",(function(e,t,n){var r=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r))})),ge("Hmmss",(function(e,t,n){var r=e.length-4,o=e.length-2;t[3]=V(e.substr(0,r)),t[4]=V(e.substr(r,2)),t[5]=V(e.substr(o))}));var Ze,$e=X("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Te,week:{dow:0,doy:6},weekdays:We,weekdaysMin:Be,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(r=at(o.slice(0,t).join("-")))return r;if(n&&n.length>=t&&rt(o,n)>=t-1)break;t--}a++}return Ze}(e)}function ut(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Me(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,h(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),h(e)._overflowWeeks&&-1===t&&(t=7),h(e)._overflowWeekday&&-1===t&&(t=8),h(e).overflow=t),e}var ct=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\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)?)?$/,ft=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_t=[["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/]],ht=/^\/?Date\((-?\d+)/i,mt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,r,o,a,i,s=e._i,l=ct.exec(s)||dt.exec(s);if(l){for(h(e).iso=!0,t=0,n=pt.length;t7)&&(l=!0)):(a=e._locale._week.dow,i=e._locale._week.doy,u=Ye(Ot(),a,i),n=wt(t.gg,e._a[0],u.year),r=wt(t.w,u.week),null!=t.d?((o=t.d)<0||o>6)&&(l=!0):null!=t.e?(o=t.e+a,(t.e<0||t.e>6)&&(l=!0)):o=a),r<1||r>He(n,a,i)?h(e)._overflowWeeks=!0:null!=l?h(e)._overflowWeekday=!0:(s=Ne(n,r,o,a,i),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(i=wt(e._a[0],r[0]),(e._dayOfYear>Pe(i)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Ie(i,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=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[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ie:je).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(h(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==o.ISO_8601)if(e._f!==o.RFC_2822){e._a=[],h(e).empty=!0;var t,n,r,a,i,s,l=""+e._i,u=l.length,c=0;for(r=Y(e._f,e._locale).match(P)||[],t=0;t0&&h(e).unusedInput.push(i),l=l.slice(l.indexOf(n)+n.length),c+=n.length),I[a]?(n?h(e).empty=!1:h(e).unusedTokens.push(a),we(a,n,e)):e._strict&&!n&&h(e).unusedTokens.push(a);h(e).charsLeftOver=u-c,l.length>0&&h(e).unusedInput.push(l),e._a[3]<=12&&!0===h(e).bigHour&&e._a[3]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[3]=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[3],e._meridiem),null!==(s=h(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),Mt(e),ut(e)}else vt(e);else bt(e)}function Tt(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(ut(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,r,o,a,i,s=!1;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;othis?this:e:y()}));function xt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function on(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function an(e,t){return t.erasAbbrRegex(e)}function sn(){var e,t,n=[],r=[],o=[],a=[],i=this.eras();for(e=0,t=i.length;e(a=He(e,r,o))&&(t=a),cn.call(this,e,t,n,r,o))}function cn(e,t,n,r,o){var a=Ne(e,t,n,r,o),i=Ie(a.year,0,a.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),_e("N",an),_e("NN",an),_e("NNN",an),_e("NNNN",(function(e,t){return t.erasNameRegex(e)})),_e("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),ge(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?h(n).era=o:h(n).invalidEra=e})),_e("y",ue),_e("yy",ue),_e("yyy",ue),_e("yyyy",ue),_e("yo",(function(e,t){return t._eraYearOrdinalRegex||ue})),ge(["y","yy","yyy","yyyy"],0),ge(["yo"],(function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,o):t[0]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),_e("G",ce),_e("g",ce),_e("GG",re,$),_e("gg",re,$),_e("GGGG",se,te),_e("gggg",se,te),_e("GGGGG",le,ne),_e("ggggg",le,ne),ve(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=V(e)})),ve(["gg","GG"],(function(e,t,n,r){t[r]=o.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),z("quarter","Q"),F("quarter",7),_e("Q",Z),ge("Q",(function(e,t){t[1]=3*(V(e)-1)})),R("D",["DD",2],"Do","date"),z("date","D"),F("date",9),_e("D",re),_e("DD",re,$),_e("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),ge(["D","DD"],2),ge("Do",(function(e,t){t[2]=V(e.match(re)[0])}));var dn=X("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),F("dayOfYear",4),_e("DDD",ie),_e("DDDD",ee),ge(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=V(e)})),R("m",["mm",2],0,"minute"),z("minute","m"),F("minute",14),_e("m",re),_e("mm",re,$),ge(["m","mm"],4);var fn=X("Minutes",!1);R("s",["ss",2],0,"second"),z("second","s"),F("second",15),_e("s",re),_e("ss",re,$),ge(["s","ss"],5);var pn,_n,hn=X("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),z("millisecond","ms"),F("millisecond",16),_e("S",ie,Z),_e("SS",ie,$),_e("SSS",ie,ee),pn="SSSS";pn.length<=9;pn+="S")_e(pn,ue);function mn(e,t){t[6]=V(1e3*("0."+e))}for(pn="S";pn.length<=9;pn+="S")ge(pn,mn);_n=X("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var yn=w.prototype;function bn(e){return e}yn.add=Vt,yn.calendar=function(e,t){1===arguments.length&&(arguments[0]?Jt(arguments[0])?(e=arguments[0],t=void 0):Qt(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Ot(),r=Nt(n,this).startOf("day"),a=o.calendarFormat(this,r)||"sameElse",i=t&&(D(t[a])?t[a].call(this,n):t[a]);return this.format(i||this.localeData().calendar(a,this,Ot(n)))},yn.clone=function(){return new w(this)},yn.diff=function(e,t,n){var r,o,a;if(!this.isValid())return NaN;if(!(r=Nt(e,this)).isValid())return NaN;switch(o=6e4*(r.utcOffset()-this.utcOffset()),t=W(t)){case"year":a=Zt(this,r)/12;break;case"month":a=Zt(this,r);break;case"quarter":a=Zt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-o)/864e5;break;case"week":a=(this-r-o)/6048e5;break;default:a=this-r}return n?a:U(a)},yn.endOf=function(e){var t,n;if(void 0===(e=W(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?on:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-nn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-nn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-nn(t,1e3)-1}return this._d.setTime(t),o.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var t=N(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?qt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(Ot(),e)},yn.to=function(e,t){return this.isValid()&&(M(e)&&e.isValid()||Ot(e).isValid())?qt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(Ot(),e)},yn.get=function(e){return D(this[e=W(e)])?this[e]():this},yn.invalidAt=function(){return h(this).overflow},yn.isAfter=function(e,t){var n=M(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=W(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?N(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(n,"Z")):N(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r="moment",o="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Ht,yn.isUTC=Ht,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=T("dates accessor is deprecated. Use date instead.",dn),yn.months=T("months accessor is deprecated. Use month instead",Ee),yn.years=T("years accessor is deprecated. Use year instead",Ce),yn.zone=T("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()})),yn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return v(t,this),(t=Tt(t))._a?(e=t._isUTC?_(t._a):Ot(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var r,o=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0;for(r=0;r0):this._isDSTShifted=!1,this._isDSTShifted}));var gn=E.prototype;function vn(e,t,n,r){var o=lt(),a=_().set(r,t);return o[n](a,e)}function wn(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=vn(e,r,n,"month");return o}function Mn(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var o,a=lt(),i=e?a._week.dow:0,s=[];if(null!=n)return vn(t,(n+i)%7,r,"day");for(o=0;o<7;o++)s[o]=vn(t,(o+i)%7,r,"day");return s}gn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=bn,gn.postformat=bn,gn.relativeTime=function(e,t,n,r){var o=this._relativeTime[n];return D(o)?o(e,t,n,r):o.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)s(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,r,a,i=this._eras||lt("en")._eras;for(n=0,r=i.length;n=0)return l[r]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?o(e.since).year():o(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Le).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Le.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var r,o,a;if(this._monthsParseExact)return De.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(o=_([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]||(a="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[r]=new RegExp(a.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}},gn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ae.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Se),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Ae.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Oe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Ye(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ze(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?ze(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?ze(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var r,o,a;if(this._weekdaysParseExact)return Ve.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=_([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]||(a="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(a.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}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Fe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ue),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},it("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===V(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),o.lang=T("moment.lang is deprecated. Use moment.locale instead.",it),o.langData=T("moment.langData is deprecated. Use moment.localeData instead.",lt);var kn=Math.abs;function Tn(e,t,n,r){var o=qt(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 On(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function Dn(e){return function(){return this.as(e)}}var xn=Dn("ms"),En=Dn("s"),An=Dn("m"),Pn=Dn("h"),Cn=Dn("d"),jn=Dn("w"),In=Dn("M"),Rn=Dn("Q"),Nn=Dn("y");function Yn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Hn=Yn("milliseconds"),zn=Yn("seconds"),Wn=Yn("minutes"),qn=Yn("hours"),Bn=Yn("days"),Fn=Yn("months"),Gn=Yn("years"),Un=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Xn(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}var Kn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,o,a,i,s,l=Kn(this._milliseconds)/1e3,u=Kn(this._days),c=Kn(this._months),d=this.asSeconds();return d?(e=U(l/60),t=U(e/60),l%=60,e%=60,n=U(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",o=d<0?"-":"",a=Jn(this._months)!==Jn(d)?"-":"",i=Jn(this._days)!==Jn(d)?"-":"",s=Jn(this._milliseconds)!==Jn(d)?"-":"",o+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var Zn=At.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Zn.add=function(e,t){return Tn(this,e,t,1)},Zn.subtract=function(e,t){return Tn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=W(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+On(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(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=xn,Zn.asSeconds=En,Zn.asMinutes=An,Zn.asHours=Pn,Zn.asDays=Cn,Zn.asWeeks=jn,Zn.asMonths=In,Zn.asQuarters=Rn,Zn.asYears=Nn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Zn._bubble=function(){var e,t,n,r,o,a=this._milliseconds,i=this._days,s=this._months,l=this._data;return a>=0&&i>=0&&s>=0||a<=0&&i<=0&&s<=0||(a+=864e5*Ln(Sn(s)+i),i=0,s=0),l.milliseconds=a%1e3,e=U(a/1e3),l.seconds=e%60,t=U(e/60),l.minutes=t%60,n=U(t/60),l.hours=n%24,i+=U(n/24),o=U(On(i)),s+=o,i-=Ln(Sn(o)),r=U(s/12),s%=12,l.days=i,l.months=s,l.years=r,this},Zn.clone=function(){return qt(this)},Zn.get=function(e){return e=W(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Hn,Zn.seconds=zn,Zn.minutes=Wn,Zn.hours=qn,Zn.days=Bn,Zn.weeks=function(){return U(this.days()/7)},Zn.months=Fn,Zn.years=Gn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,o=!1,a=Vn;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(o=e),"object"==typeof t&&(a=Object.assign({},Vn,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),n=this.localeData(),r=function(e,t,n,r){var o=qt(e).abs(),a=Un(o.as("s")),i=Un(o.as("m")),s=Un(o.as("h")),l=Un(o.as("d")),u=Un(o.as("M")),c=Un(o.as("w")),d=Un(o.as("y")),f=a<=n.ss&&["s",a]||a0,f[4]=r,Xn.apply(null,f)}(this,!o,a,n),o&&(r=n.pastFuture(+this,r)),n.postformat(r)},Zn.toISOString=Qn,Zn.toString=Qn,Zn.toJSON=Qn,Zn.locale=$t,Zn.localeData=tn,Zn.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),Zn.lang=en,R("X",0,0,"unix"),R("x",0,0,"valueOf"),_e("x",ce),_e("X",/[+-]?\d+(\.\d{1,3})?/),ge("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),ge("x",(function(e,t,n){n._d=new Date(V(e))})), +//! moment.js +o.version="2.29.1",t=Ot,o.fn=yn,o.min=function(){var e=[].slice.call(arguments,0);return xt("isBefore",e)},o.max=function(){var e=[].slice.call(arguments,0);return xt("isAfter",e)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(e){return Ot(1e3*e)},o.months=function(e,t){return wn(e,t,"months")},o.isDate=d,o.locale=it,o.invalid=y,o.duration=qt,o.isMoment=M,o.weekdays=function(e,t,n){return Mn(e,t,n,"weekdays")},o.parseZone=function(){return Ot.apply(null,arguments).parseZone()},o.localeData=lt,o.isDuration=Pt,o.monthsShort=function(e,t){return wn(e,t,"monthsShort")},o.weekdaysMin=function(e,t,n){return Mn(e,t,n,"weekdaysMin")},o.defineLocale=st,o.updateLocale=function(e,t){if(null!=t){var n,r,o=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(x(tt[e]._config,t)):(null!=(r=at(e))&&(o=r._config),t=x(o,t),null==r&&(t.abbr=e),(n=new E(t)).parentLocale=tt[e],tt[e]=n),it(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===it()&&it(e)):null!=tt[e]&&delete tt[e]);return tt[e]},o.locales=function(){return L(tt)},o.weekdaysShort=function(e,t,n){return Mn(e,t,n,"weekdaysShort")},o.normalizeUnits=W,o.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},o.relativeTimeThreshold=function(e,t){return void 0!==Vn[e]&&(void 0===t?Vn[e]:(Vn[e]=t,"s"===e&&(Vn.ss=t-1),!0))},o.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=yn,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(15),o=n(30),a=n(59),i=n(51),s=n(69),l=function(e,t,n){var u,c,d,f,p=e&l.F,_=e&l.G,h=e&l.S,m=e&l.P,y=e&l.B,b=_?r:h?r[t]||(r[t]={}):(r[t]||{}).prototype,g=_?o:o[t]||(o[t]={}),v=g.prototype||(g.prototype={});for(u in _&&(n=t),n)d=((c=!p&&b&&void 0!==b[u])?b:n)[u],f=y&&c?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,b&&i(b,u,d,e&l.U),g[u]!=d&&a(g,u,f),m&&v[u]!=d&&(v[u]=d)};r.core=o,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";n.r(t),n.d(t,"Provider",(function(){return c})),n.d(t,"connectAdvanced",(function(){return g})),n.d(t,"ReactReduxContext",(function(){return l})),n.d(t,"connect",(function(){return X}));var r=n(49),o=n(0),a=n.n(o),i=n(1),s=n.n(i),l=a.a.createContext(null),u=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var n=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===n?null:{storeState:n}}))}));var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||l;return a.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(o.Component);u.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var c=u,d=n(217),f=n(68),p=n(47),_=n(329),h=n.n(_),m=n(9),y=n.n(m),b=n(327);function g(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,s=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,u=n.methodName,c=void 0===u?"connectAdvanced":u,_=n.renderCountProp,m=void 0===_?void 0:_,g=n.shouldHandleStateChanges,v=void 0===g||g,w=n.storeKey,M=void 0===w?"store":w,k=n.withRef,T=void 0!==k&&k,L=n.forwardRef,O=void 0!==L&&L,S=n.context,D=void 0===S?l:S,x=Object(p.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);y()(void 0===m,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),y()(!T,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var E="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect";y()("store"===M,"storeKey has been removed and does not do anything. "+E);var A=D;return function(t){var n=t.displayName||t.name||"Component",i=s(n),l=Object(f.a)({},x,{getDisplayName:s,methodName:c,renderCountProp:m,shouldHandleStateChanges:v,storeKey:M,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=x.pure,p=o.Component;u&&(p=o.PureComponent);var _=function(n){function o(t){var r,o,i,s,l,c,p,_,h,m,b;return r=n.call(this,t)||this,y()(O?!t.wrapperProps[M]:!t[M],"Passing redux store in props has been removed and does not do anything. "+E),r.selectDerivedProps=function(t,n,r,a){if(u&&o===n&&i===t)return s;r===l&&c===a||(l=r,c=a,p=e(r.dispatch,a)),o=n,i=t;var d=p(t,n);return s=d},r.selectChildElement=function(e,t,n){return t===_&&n===h&&b===e||(_=t,h=n,b=e,m=a.a.createElement(e,Object(f.a)({},t,{ref:n}))),m},r.indirectRenderWrappedComponent=r.indirectRenderWrappedComponent.bind(Object(d.a)(r)),r}Object(r.a)(o,n);var s=o.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){y()(e,'Could not find "store" in the context of "'+i+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+i+" in connect options.");var n,r=e.storeState,o=e.store,a=this.props;O&&(a=this.props.wrapperProps,n=this.props.forwardedRef);var s=this.selectDerivedProps(r,a,o,l);return this.selectChildElement(t,s,n)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(b.isContextConsumer)(a.a.createElement(this.props.context.Consumer,null))?this.props.context:A;return a.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(p);if(_.WrappedComponent=t,_.displayName=i,O){var g=a.a.forwardRef((function(e,t){return a.a.createElement(_,{wrapperProps:e,forwardedRef:t})}));return g.displayName=i,g.WrappedComponent=t,h()(g,t)}return h()(_,t)}}var v=Object.prototype.hasOwnProperty;function w(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(w(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;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 I(e,t){return e===t}var R,N,Y,H,z,W,q,B,F,G,U,V,X=(Y=(N=void 0===R?{}:R).connectHOC,H=void 0===Y?g:Y,z=N.mapStateToPropsFactories,W=void 0===z?D:z,q=N.mapDispatchToPropsFactories,B=void 0===q?S:q,F=N.mergePropsFactories,G=void 0===F?E:F,U=N.selectorFactory,V=void 0===U?C:U,function(e,t,n,r){void 0===r&&(r={});var o=r,a=o.pure,i=void 0===a||a,s=o.areStatesEqual,l=void 0===s?I:s,u=o.areOwnPropsEqual,c=void 0===u?M:u,d=o.areStatePropsEqual,_=void 0===d?M:d,h=o.areMergedPropsEqual,m=void 0===h?M:h,y=Object(p.a)(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),b=j(e,W,"mapStateToProps"),g=j(t,B,"mapDispatchToProps"),v=j(n,G,"mergeProps");return H(V,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:b,initMapDispatchToProps:g,initMergeProps:v,pure:i,areStatesEqual:l,areOwnPropsEqual:c,areStatePropsEqual:_,areMergedPropsEqual:m},y))})},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,a,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,a,i,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,n){var r; +/*! + Copyright (c) 2017 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t0&&-1===s.indexOf(n))for(var p=0,_=s.length;p<_;p++){var h=s[p],m=this._normalizeKeys(h,a,e,i);if(u=f(this._registry.translations,m)){n=h;break}}return null===u&&(u=this._registry.generateMissingEntry(l.join(i))),u=this._pluralize(n,u,t.count),!1!==this._registry.interpolate&&!1!==t.interpolate&&(u=this._interpolate(u,t)),u},p.prototype.localize=function(e,t){if(!a(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",i=t.type||"datetime",s=t.format||"default";return t={locale:n,scope:o,interpolate:!1},s=this.translate(["formats",i,s],r(!0,{},t)),u(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(null==e)return[];for(var r=e.split(t),a=r.length-1;a>=0;a--)""===r[a]&&(r.splice(a,1),!0===this._registry.keepTrailingDot&&a==r.length&&(r[r.length-1]+=""+t));return r}.bind(this)(e),this._registry.normalizedKeys[t][e]},p.prototype._interpolate=function(e,t){if("string"!=typeof e)return e;try{return i(e,r({},this._registry.interpolations,t))}catch(n){if(!(this.listenerCount("error")>0))throw n;return this.emit("error",n,e,t),null}},p.prototype._resolve=function(e,t,n,o,a){if(!1===(a=a||{}).resolve)return o;var i,s;if(d(o))i=this.translate(o,r({},a,{locale:e,scope:t}));else if("function"==typeof(s=o)||"[object Function]"===Object.prototype.toString.call(s)){var l;a.object?(l=a.object,delete a.object):l=n,i=this._resolve(e,t,n,o(l,a))}else i=o;return/^missing translation:/.test(i)?null:i},p.prototype._fallback=function(e,t,n,r,a){if(a=l(a,"fallback"),o(r)){for(var i=0,s=r.length;i3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;return function(a){return a({type:c.INIT_WINDOW}),"NEW"===t?(0,h.patchRequest)({entity:"window",docType:e,docId:t}):"NEW"===r?(0,h.patchRequest)({entity:"window",docType:e,docId:t,tabId:n,rowId:r}):r?(0,h.getData)({entity:"window",docType:e,docId:t,tabId:n,rowId:r,fetchAdvancedFields:o}).catch((function(e){return e})):(0,h.getData)({entity:"window",docType:e,docId:t,fetchAdvancedFields:o}).catch((function(t){return a((0,v.getWindowBreadcrumb)(e)),a(U({data:{},docId:"notfound",includedTabsInfo:{},scope:"master",saveStatus:{saved:!0},standardActions:(0,l.Set)(),validStatus:{}})),{status:t.status,message:t.statusText}}))}}function ce(e){var t=e.windowId,n=e.docId,r=e.tabId,o=e.rowId,a=e.isModal,i=e.dispatch,s=e.title;i((0,d.createView)({windowId:t,viewType:"grid",refDocumentId:n,refTabId:r,refRowIds:[o],isModal:a})).then((function(e){var t=e.windowId,n=e.viewId;i(A({windowId:t,viewId:n,title:s}))}))}function de(e){var t=e.windowId,n=e.docId,r=e.tabId,o=e.rowId,a=e.isModal,s=e.isAdvanced,l=e.disconnected,u=e.title,c=null,d=n||"NEW";return function(e){return"SEARCH"===d?(ce({windowId:t,docId:n,tabId:r,rowId:o,isModal:a,isAdvanced:s,disconnected:l,dispatch:e,title:u}),!1):("new"===d.toLowerCase()&&(d="NEW"),e(ue(t,d,r,o,s)).then((function(n){if(!n||!n.data)return Promise.resolve(null);var u=n.data[0],f=u.includedTabsInfo,p=u.id;if(f&&!s&&Object.values(f).forEach((function(n){var r=n.tabId||n.tabid,o=(0,m.getTableId)({windowId:t,docId:p,tabId:r}),a=D({windowType:t,docId:p,tabId:r},n);e((0,M.createTabTable)(o,a))})),"NEW"===d&&!a)return e((0,i.replace)("/window/".concat(t,"/").concat(p)));var y=0;return n.data.forEach((function(e,t){e.rowId===o&&(y=t)})),"NEW"===d&&e(ae(null,p)),p=n.data[y].id,e(U({data:(0,_.parseToDisplay)(n.data[y].fieldsByName),docId:p,saveStatus:u.saveStatus,scope:(0,_.getScope)(a),standardActions:u.standardActions,validStatus:u.validStatus,includedTabsInfo:u.includedTabsInfo,websocket:u.websocketEndpoint,hasComments:u.hasComments})),a?"NEW"===o&&(e(ve(n.data,!1,"NEW")),e(we(n.data)),e(ae(u.rowId)),"inlineTab"===l&&(c=n.data[0])):e((0,v.getWindowBreadcrumb)(t)),(0,h.getLayout)("window",t,r,null,null,s).then((function(n){var r=n.data,o=r.tabs;o&&!s&&Object.values(o).forEach((function(n){var r=n.tabId,o=(0,m.getTableId)({windowId:t,docId:p,tabId:r}),a=D({windowType:t,docId:p,tabId:r},n);e((0,M.updateTabTable)(o,a))})),c&&"inlineTab"===l&&e((0,k.inlineTabAfterGetLayout)({data:r,disconnectedData:c})),e(G(r,(0,_.getScope)(a)))})).catch((function(e){return Promise.reject(e)}))})))}}var fe,pe,_e=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 he(e,t,n,r){return function(a){var i=_e(e,t,null,r);return o.default.get(i).then(function(){var i=O(regeneratorRuntime.mark((function i(s){var l,u,c;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(l=s.data,u=null,!t||!r){i.next=8;break}if(1!==r.length){i.next=8;break}return c=_e(e,t,n,r),i.next=7,o.default.get(c).then((function(e){return e.data}));case 7:u=i.sent;case 8:u&&(l.rowsData=u),a(U({data:l,docId:t,scope:"modal"}));case 10:case"end":return i.stop()}}),i)})));return function(e){return i.apply(this,arguments)}}())}}function me(e){var t=e.windowId,n=e.docId,r=e.tabId,a=e.rowId,i=e.target,s=e.verb,l=e.data;return function(e){var u=(0,h.formatParentUrl)({windowId:t,docId:n,rowId:a,target:i});if(u){if(e((0,w.updateCommentsPanelOpenFlag)(!0)),"GET"===s)return o.default.get(u).then(function(){var s=O(regeneratorRuntime.mark((function s(l){var u,c,d;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(u=l.data,c=null,!n||!a){s.next=8;break}if(1!==a.length){s.next=8;break}return d=_e(t,n,r,a),s.next=7,o.default.get(d).then((function(e){return e.data}));case 7:c=s.sent;case 8:c&&(u.rowsData=c),"comments"===i&&e((0,w.updateCommentsPanel)(u)),e(U({data:u,docId:n,scope:"modal"}));case 11:case"end":return s.stop()}}),s)})));return function(e){return s.apply(this,arguments)}}());if("POST"===s){var c=(0,p.preFormatPostDATA)({target:i,postData:{txt:l}});return o.default.post(u,c).then(function(){var o=O(regeneratorRuntime.mark((function o(s){var l;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l=s.data,"comments"===i&&(e(me({windowId:t,docId:n,tabId:r,rowId:a,target:i,verb:"GET"})),e((0,w.updateCommentsPanelTextInput)(""))),o.abrupt("return",l);case 3:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}())}}}}function ye(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,a=arguments.length>5?arguments[5]:void 0,i=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,d=arguments.length>10?arguments[10]:void 0;return function(){var f=O(regeneratorRuntime.mark((function f(p){var _,m,y,g,v,w,M;return regeneratorRuntime.wrap((function(f){for(;;)switch(f.prev=f.next){case 0:return _=Symbol(),m={entity:e,docType:t,docId:n,tabId:r,rowId:o,property:a,value:i,isAdvanced:l,viewId:u,isEdit:d},f.next=4,p(ie("pending"));case 4:return f.next=6,p({type:c.PATCH_REQUEST,symbol:_,options:m});case 6:return f.prev=6,f.next=9,(0,h.patchRequest)(m);case 9:return y=f.sent,g=y.data instanceof Array?y.data:[y.data],v=g[0],f.next=14,p(ve(g,s,o));case 14:if(!v||!v.validStatus||v.validStatus.valid||a!==v.validStatus.fieldName&&void 0!==v.validStatus.fieldName){f.next=23;break}return f.next=17,p(ie("error"));case 17:return f.next=19,p({type:c.PATCH_FAILURE,symbol:_});case 19:w=v.validStatus.reason,p((0,b.addNotification)("Error: "+w.split(" ",4).join(" ")+"...",w,5e3,"error","")),f.next=28;break;case 23:return f.next=25,p(ie("saved"));case 25:return f.next=27,p({type:c.PATCH_SUCCESS,symbol:_});case 27:return f.abrupt("return",g);case 28:f.next=41;break;case 30:return f.prev=30,f.t0=f.catch(6),f.next=34,p(ie("error"));case 34:return f.next=36,p({type:c.PATCH_FAILURE,symbol:_});case 36:return f.next=38,(0,h.getData)({entity:e,docType:t,docId:n,tabId:r,rowId:o,fetchAdvancedFields:l,viewId:u});case 38:return M=f.sent,f.next=41,p(ve(M.data,s,o));case 41:case"end":return f.stop()}}),f,null,[[6,30]])})));return function(e){return f.apply(this,arguments)}}()}function be(e){var t=e.windowId,n=e.documentId,r=e.tabId,o=e.rowId,a=e.isModal,i=e.fetchAdvancedFields;return function(e){(0,h.getData)({entity:"window",docType:t,docId:n,tabId:r,rowId:o,fetchAdvancedFields:i}).then((function(t){e(ve(t.data,a,o))}))}}function ge(e,t){return function(n){Object.keys(e).map((function(r){n("fieldsByName"===r?J("data",e[r],t):"includedTabsInfo"===r?$("master",e[r]):J(r,e[r],t))}))}}function ve(e,t,n){return function(r){("function"==typeof e.splice?e:[e]).map((function(e,o){var a=e.fieldsByName?D(D({},e),{},{fieldsByName:(0,_.parseToDisplay)(e.fieldsByName)}):e;0===o&&"NEW"===n||!(!e.rowId||t&&e.rowId)||r(ge(a,(0,_.getScope)(t&&0===o)))}))}}function we(e){return function(t){var n=function(e){e.rowId||(e.validStatus&&t(Z("master",e.validStatus)),e.saveStatus&&t(Q("master",e.saveStatus)),e.includedTabsInfo&&t($("master",e.includedTabsInfo)))};Array.isArray(e)?e.map((function(e){n(e)})):n(e)}}function Me(e){var t=e.windowId,n=e.docId,r=e.property,o=e.value,a=e.tabId,i=e.rowId,s=e.isModal,l=e.entity,u=e.tableId,c=e.disconnected,d=e.action,p=e.ret;return function(e){if(i){var h={fieldsByName:x({},"".concat(r),{value:o})};if("inlineTab"===c)return"patch"===d&&e((0,k.patchInlineTab)({ret:p,windowId:t,tabId:a,docId:n,rowId:i})),!1;e((0,M.updateTableRowProperty)({tableId:u,rowId:i,change:h}))}else a&&i||(s||e(ee(r,{value:o},(0,_.getScope)(s))),s&&l!==f.PROCESS_NAME&&e(ee(r,{value:o},"master")))}}function ke(e,t,n){var r=Math.min(Math.floor(100*n.loaded/n.total),98);e((0,b.setNotificationProgress)(t,r))}function Te(e,t,n){var r=this;return function(i){var s=a.default.translate("window.attachment.title.pending"),l=a.default.translate("window.attachment.title.done"),u=a.default.translate("window.attachment.title.error"),c=o.default.CancelToken.source();i((0,b.addNotification)(s,a.default.translate("window.attachment.uploading"),0,"primary",null,c));var d={onUploadProgress:ke.bind(r,i,s),cancelToken:c.token};o.default.post("".concat(config.API_URL,"/window/").concat(e,"/").concat(t,"/attachments"),n,d).then((function(){return i((0,b.addNotification)(l,a.default.translate("window.attachment.upload.success"),5e3,"primary"))})).finally((function(){return i((0,b.deleteNotification)(s))})).catch((function(e){o.default.isCancel(e)?i((0,b.addNotification)(u,"Upload terminated by the user",5e3,"warning","disableMouse")):i((0,b.addNotification)(u,a.default.translate("window.attachment.upload.error"),5e3,"error"))}))}}function Le(e){var t=e.ids,n=e.processType,r=e.rowId,o=e.tabId,a=e.documentType,i=e.viewId,s=e.selectedTab,l=e.childViewId,u=e.childViewSelectedIds,c=e.parentViewId,d=e.parentViewSelectedIds,p=null;return function(){var e=O(regeneratorRuntime.mark((function e(m,g){var v,w,M,k,T,L,O,S;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("pending"!==g().appHandler.processStatus){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,m((0,b.setProcessPending)());case 5:return e.prev=5,e.next=8,(0,h.getProcessData)({ids:t,processId:n,rowId:r,tabId:o,documentType:a,viewId:i,selectedTab:s,childViewId:l,childViewSelectedIds:u,parentViewId:c,parentViewSelectedIds:d});case 8:v=e.sent,e.next=18;break;case 11:return e.prev=11,e.t0=e.catch(5),e.next=15,m(oe());case 15:return e.next=17,m((0,b.setProcessSaved)());case 17:throw e.t0;case 18:if(!v.data){e.next=60;break}if(w=(0,_.parseToDisplay)(v.data.fieldsByName),p=v.data.pinstanceId,!v.data.startProcessDirectly){e.next=42;break}return e.prev=22,e.next=25,(0,h.startProcess)(n,p);case 25:return M=e.sent,T=(k=c||i)&&(0,y.findViewByViewId)(g(),k),L=T?T.windowId:a,e.next=31,m(Oe(M,n,p,L));case 31:e.next=40;break;case 33:return e.prev=33,e.t1=e.catch(22),e.next=37,m(oe());case 37:return e.next=39,m((0,b.setProcessSaved)());case 39:throw e.t1;case 40:e.next=60;break;case 42:return e.next=44,m(U({data:w,scope:"modal"}));case 44:return e.prev=44,e.next=47,(0,h.getLayout)(f.PROCESS_NAME,n);case 47:return O=e.sent,e.next=50,m((0,b.setProcessSaved)());case 50:return S=D(D({},O.data),{},{pinstanceId:p}),e.next=53,m(G(S,"modal"));case 53:e.next=60;break;case 55:return e.prev=55,e.t2=e.catch(44),e.next=59,m((0,b.setProcessSaved)());case 59:throw e.t2;case 60:case"end":return e.stop()}}),e,null,[[5,11],[22,33],[44,55]])})));return function(t,n){return e.apply(this,arguments)}}()}function Oe(e,t,n,r){return function(){var o=O(regeneratorRuntime.mark((function o(a){var s,l,c,p,_,h,y,v,w,k,T,L,O,S;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(s=e.data,l=s.error,c=s.summary,p=s.action,!l){o.next=10;break}return o.next=4,a((0,b.addNotification)("Process error",c,5e3,"error"));case 4:return o.next=6,a((0,b.setProcessSaved)());case 6:return o.next=8,a(oe());case 8:o.next=70;break;case 10:if(_=!1,!p){o.next=62;break}h=p.windowId,y=p.viewId,v=p.documentId,w=p.targetTab,o.t0=p.type,o.next="displayQRCode"===o.t0?16:"openView"===o.t0?18:"openReport"===o.t0?31:"openDocument"===o.t0?33:"openIncludedView"===o.t0?51:"closeIncludedView"===o.t0?54:"selectViewRows"===o.t0?57:62;break;case 16:return a(E({type:"qr",data:p.code})),o.abrupt("break",62);case 18:return o.next=20,a(oe());case 20:if(k="/window/".concat(h,"/?viewId=").concat(y),"NEW_TAB"!==w){o.next=24;break}return(0,u.openInNewTab)({urlPath:k,dispatch:a,actionName:b.setProcessSaved}),o.abrupt("return");case 24:if("SAME_TAB"!==w){o.next=27;break}return window.open(k,"_self"),o.abrupt("return");case 27:if("SAME_TAB_OVERLAY"!==w){o.next=30;break}return o.next=30,a(A({windowId:h,viewId:y,profileId:p.profileId}));case 30:return o.abrupt("break",62);case 31:return(0,g.openFile)(f.PROCESS_NAME,t,n,"print",p.filename),o.abrupt("break",62);case 33:return o.next=35,a(oe());case 35:if(k="/window/".concat(h,"/").concat(v),"NEW_TAB"!==w){o.next=39;break}return(0,u.openInNewTab)({urlPath:k,dispatch:a,actionName:b.setProcessSaved}),o.abrupt("return",!1);case 39:if("SAME_TAB"!==w){o.next=42;break}return window.open(k,"_self"),o.abrupt("return",!1);case 42:if(!p.modal&&"SAME_TAB_OVERLAY"!==w){o.next=48;break}return _=!0,o.next=46,a(ne({windowId:p.windowId,modalType:"window",isAdvanced:!!p.advanced&&p.advanced,dataId:p.documentId}));case 46:o.next=50;break;case 48:return o.next=50,a((0,i.push)("/window/".concat(p.windowId,"/").concat(p.documentId)));case 50:return o.abrupt("break",62);case 51:return o.next=53,a((0,d.setIncludedView)({windowId:p.windowId,viewId:p.viewId,viewProfileId:p.profileId,parentId:r}));case 53:return o.abrupt("break",62);case 54:return o.next=56,a((0,d.unsetIncludedView)({windowId:p.windowId,viewId:p.viewId}));case 56:return o.abrupt("break",62);case 57:return console.info("@TODO: `selectViewRows` - check if selection worked ok"),T=p.windowId,L=p.viewId,O=p.rowIds,S=(0,m.getTableId)({windowId:T,viewId:L}),a((0,M.updateTableSelection)({id:S,selection:O,windowId:T,viewId:L})),o.abrupt("break",62);case 62:if(!c){o.next=65;break}return o.next=65,a((0,b.addNotification)("Process",c,5e3,"primary"));case 65:return o.next=67,a((0,b.setProcessSaved)());case 67:if(_){o.next=70;break}return o.next=70,a(re());case 70:case"end":return o.stop()}}),o)})));return function(e){return o.apply(this,arguments)}}()}function Se(e){return{type:c.SET_PRINTING_OPTIONS,payload:e}}function De(){return{type:c.RESET_PRINTING_OPTIONS}}function xe(e){return{type:c.TOGGLE_PRINTING_OPTION,payload:e}}(fe="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(fe.register(E,"toggleOverlay","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(A,"openRawModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(P,"updateRawModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(C,"setRawModalTitle","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(j,"setRawModalDescription","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(I,"closeRawModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(R,"openFilterBox","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(N,"closeFilterBox","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Y,"allowOutsideClick","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(H,"disableOutsideClick","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(z,"allowShortcut","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(W,"disableShortcut","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(q,"activateTab","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(B,"unselectTab","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(F,"setUpdatedTabLayout","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(G,"initLayoutSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(U,"initDataSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(V,"updateMasterData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(X,"clearMasterData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(K,"sortTab","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(J,"updateDataProperty","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Q,"updateDataSaveStatus","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Z,"updateDataValidStatus","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register($,"updateDataIncludedTabsInfo","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ee,"updateDataFieldProperty","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(te,"noConnection","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ne,"openModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(re,"closeProcessModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(oe,"closeModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ae,"updateModal","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ie,"indicatorState","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(se,"fetchTab","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(le,"updateTabLayout","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ue,"initWindow","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ce,"createSearchWindow","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(de,"createWindow","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(_e,"getChangelogUrl","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(he,"fetchChangeLog","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(me,"callAPI","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ye,"patch","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(be,"fireUpdateData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ge,"updateData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ve,"mapDataToState","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(we,"updateStatus","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Me,"updatePropertyValue","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(ke,"handleUploadProgress","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Te,"attachFileAction","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Le,"createProcess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Oe,"handleProcessResponse","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(Se,"setPrintingOptions","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(De,"resetPrintingOptions","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js"),fe.register(xe,"togglePrintingOption","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/WindowActions.js")),(pe="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&pe(e)}).call(this,n(3)(e))},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(18);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";(function(e){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.INLINE_TAB_SHOW_MORE_FROM=t.HOME_MENU_USER_MAX_ITEMS=t.SHOW_READ_MORE_FROM=t.DEBOUNCE_TIME_SEARCH=t.TBL_CONTEXT_MENU_MAX_Y=t.TBL_CONTEXT_MENU_HEIGHT=t.F2_KEY=t.LOCAL_LANG=t.DROPUP_OFFSET_SMALL=t.DROPDOWN_OFFSET_BIG=t.DROPUP_START=t.LOCATION_SEARCH_NAME=t.PROCESS_NAME=t.TIME_REGEX_TEST=t.TIME_FIELD_TYPES=t.DATE_FIELD_FORMATS=t.DATE_FIELD_TYPES=t.DATE_FIELDS=t.DATE_TIMEZONE_FORMAT=t.TIME_FORMAT=t.DATE_FORMAT=t.SPECIAL_FIELD_TYPES=t.AMOUNT_FIELD_FORMATS_BY_PRECISION=t.AMOUNT_FIELD_TYPES=t.INITIALLY_OPEN=t.INITIALLY_CLOSED=t.VIEW_EDITOR_RENDER_MODES_ALWAYS=t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND=t.VIEW_EDITOR_RENDER_MODES_NEVER=void 0,(n="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&n(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;t.VIEW_EDITOR_RENDER_MODES_NEVER="never";t.VIEW_EDITOR_RENDER_MODES_ON_DEMAND="on-demand";t.VIEW_EDITOR_RENDER_MODES_ALWAYS="always";t.INITIALLY_CLOSED="INITIALLY_CLOSED";t.INITIALLY_OPEN="INITIALLY_OPEN";var r=["Amount","CostPrice","Quantity"];t.AMOUNT_FIELD_TYPES=r;var o=["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=o;var a=["Color"];t.SPECIAL_FIELD_TYPES=a;t.DATE_FORMAT="YYYY-MM-DD";t.TIME_FORMAT="HH:mm";t.DATE_TIMEZONE_FORMAT="YYYY-MM-DDTHH:mm:ss.SSSZ";var i=["Date","DateTime"];t.DATE_FIELDS=i;var s=["Date","DateTime","ZonedDateTime","Timestamp"];t.DATE_FIELD_TYPES=s;var l={Date:"L",ZonedDateTime:"L LTS",DateTime:"L LTS",Time:"LT",Timestamp:"L HH:mm:ss"};t.DATE_FIELD_FORMATS=l;var u=["Time"];t.TIME_FIELD_TYPES=u;var c=/^\d\d:\d\d$/;t.TIME_REGEX_TEST=c;t.PROCESS_NAME="process";t.LOCATION_SEARCH_NAME="location-area-search";t.DROPUP_START=10;t.DROPDOWN_OFFSET_BIG=250;t.DROPUP_OFFSET_SMALL=150;t.LOCAL_LANG="metasfreshLanguage";t.F2_KEY=113;t.TBL_CONTEXT_MENU_HEIGHT="300px";t.TBL_CONTEXT_MENU_MAX_Y=706;t.DEBOUNCE_TIME_SEARCH=150;t.SHOW_READ_MORE_FROM=100;t.HOME_MENU_USER_MAX_ITEMS=10;var d,f;t.INLINE_TAB_SHOW_MORE_FROM=5,(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(d.register("never","VIEW_EDITOR_RENDER_MODES_NEVER","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("on-demand","VIEW_EDITOR_RENDER_MODES_ON_DEMAND","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("always","VIEW_EDITOR_RENDER_MODES_ALWAYS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("INITIALLY_CLOSED","INITIALLY_CLOSED","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("INITIALLY_OPEN","INITIALLY_OPEN","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(r,"AMOUNT_FIELD_TYPES","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(o,"AMOUNT_FIELD_FORMATS_BY_PRECISION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(a,"SPECIAL_FIELD_TYPES","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("YYYY-MM-DD","DATE_FORMAT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("HH:mm","TIME_FORMAT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("YYYY-MM-DDTHH:mm:ss.SSSZ","DATE_TIMEZONE_FORMAT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(i,"DATE_FIELDS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(s,"DATE_FIELD_TYPES","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(l,"DATE_FIELD_FORMATS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(u,"TIME_FIELD_TYPES","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(c,"TIME_REGEX_TEST","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("process","PROCESS_NAME","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("location-area-search","LOCATION_SEARCH_NAME","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(10,"DROPUP_START","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(250,"DROPDOWN_OFFSET_BIG","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(150,"DROPUP_OFFSET_SMALL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("metasfreshLanguage","LOCAL_LANG","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(113,"F2_KEY","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register("300px","TBL_CONTEXT_MENU_HEIGHT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(706,"TBL_CONTEXT_MENU_MAX_Y","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(150,"DEBOUNCE_TIME_SEARCH","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(100,"SHOW_READ_MORE_FROM","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(10,"HOME_MENU_USER_MAX_ITEMS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js"),d.register(5,"INLINE_TAB_SHOW_MORE_FROM","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/Constants.js")),(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&f(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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,"getZoomIntoWindow",{enumerable:!0,get:function(){return r.getZoomIntoWindow}}),Object.defineProperty(t,"discardNewRequest",{enumerable:!0,get:function(){return r.discardNewRequest}}),Object.defineProperty(t,"getTabRequest",{enumerable:!0,get:function(){return r.getTabRequest}}),Object.defineProperty(t,"getTabLayoutRequest",{enumerable:!0,get:function(){return r.getTabLayoutRequest}}),Object.defineProperty(t,"startProcess",{enumerable:!0,get:function(){return r.startProcess}}),Object.defineProperty(t,"getProcessData",{enumerable:!0,get:function(){return r.getProcessData}}),Object.defineProperty(t,"formatParentUrl",{enumerable:!0,get:function(){return r.formatParentUrl}}),Object.defineProperty(t,"deleteRequest",{enumerable:!0,get:function(){return r.deleteRequest}}),Object.defineProperty(t,"browseViewRequest",{enumerable:!0,get:function(){return o.browseViewRequest}}),Object.defineProperty(t,"createViewRequest",{enumerable:!0,get:function(){return o.createViewRequest}}),Object.defineProperty(t,"deleteStaticFilter",{enumerable:!0,get:function(){return o.deleteStaticFilter}}),Object.defineProperty(t,"filterViewRequest",{enumerable:!0,get:function(){return o.filterViewRequest}}),Object.defineProperty(t,"getData",{enumerable:!0,get:function(){return o.getData}}),Object.defineProperty(t,"getRowsData",{enumerable:!0,get:function(){return o.getRowsData}}),Object.defineProperty(t,"getLayout",{enumerable:!0,get:function(){return o.getLayout}}),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,"headerPropertiesRequest",{enumerable:!0,get:function(){return o.headerPropertiesRequest}}),Object.defineProperty(t,"locationSearchRequest",{enumerable:!0,get:function(){return o.locationSearchRequest}}),Object.defineProperty(t,"locationConfigRequest",{enumerable:!0,get:function(){return o.locationConfigRequest}}),Object.defineProperty(t,"deleteViewRequest",{enumerable:!0,get:function(){return o.deleteViewRequest}}),Object.defineProperty(t,"patchRequest",{enumerable:!0,get:function(){return o.patchRequest}}),Object.defineProperty(t,"quickActionsRequest",{enumerable:!0,get:function(){return o.quickActionsRequest}}),Object.defineProperty(t,"advSearchRequest",{enumerable:!0,get:function(){return o.advSearchRequest}}),Object.defineProperty(t,"loginRequest",{enumerable:!0,get:function(){return a.loginRequest}}),Object.defineProperty(t,"localLoginRequest",{enumerable:!0,get:function(){return a.localLoginRequest}}),Object.defineProperty(t,"loginWithToken",{enumerable:!0,get:function(){return a.loginWithToken}}),Object.defineProperty(t,"loginCompletionRequest",{enumerable:!0,get:function(){return a.loginCompletionRequest}}),Object.defineProperty(t,"logoutRequest",{enumerable:!0,get:function(){return a.logoutRequest}}),Object.defineProperty(t,"resetPasswordRequest",{enumerable:!0,get:function(){return a.resetPasswordRequest}}),Object.defineProperty(t,"getResetPasswordInfo",{enumerable:!0,get:function(){return a.getResetPasswordInfo}}),Object.defineProperty(t,"resetPasswordComplete",{enumerable:!0,get:function(){return a.resetPasswordComplete}}),Object.defineProperty(t,"resetPasswordGetAvatar",{enumerable:!0,get:function(){return a.resetPasswordGetAvatar}}),Object.defineProperty(t,"getAvatar",{enumerable:!0,get:function(){return a.getAvatar}}),Object.defineProperty(t,"getUserSession",{enumerable:!0,get:function(){return a.getUserSession}}),Object.defineProperty(t,"getUserLang",{enumerable:!0,get:function(){return a.getUserLang}}),Object.defineProperty(t,"setUserLang",{enumerable:!0,get:function(){return a.setUserLang}}),Object.defineProperty(t,"getAvailableLang",{enumerable:!0,get:function(){return a.getAvailableLang}});var r=n(650),o=n(651),a=n(1205);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){(function(e,r){var o; +/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var a="Expected a function",i="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",u="[object Array]",c="[object Boolean]",d="[object Date]",f="[object Error]",p="[object Function]",_="[object GeneratorFunction]",h="[object Map]",m="[object Number]",y="[object Object]",b="[object RegExp]",g="[object Set]",v="[object String]",w="[object Symbol]",M="[object WeakMap]",k="[object ArrayBuffer]",T="[object DataView]",L="[object Float32Array]",O="[object Float64Array]",S="[object Int8Array]",D="[object Int16Array]",x="[object Int32Array]",E="[object Uint8Array]",A="[object Uint16Array]",P="[object Uint32Array]",C=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,I=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,N=/[&<>"']/g,Y=RegExp(R.source),H=RegExp(N.source),z=/<%-([\s\S]+?)%>/g,W=/<%([\s\S]+?)%>/g,q=/<%=([\s\S]+?)%>/g,B=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F=/^\w*$/,G=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U=/[\\^$.*+?()[\]{}|]/g,V=RegExp(U.source),X=/^\s+|\s+$/g,K=/^\s+/,J=/\s+$/,Q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Z=/\{\n\/\* \[wrapped with (.+)\] \*/,$=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ae=/^0b[01]+$/i,ie=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,le=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ce=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",pe="\\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",_e="[\\ud800-\\udfff]",he="["+pe+"]",me="["+fe+"]",ye="\\d+",be="[\\u2700-\\u27bf]",ge="[a-z\\xdf-\\xf6\\xf8-\\xff]",ve="[^\\ud800-\\udfff"+pe+ye+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",Me="[^\\ud800-\\udfff]",ke="(?:\\ud83c[\\udde6-\\uddff]){2}",Te="[\\ud800-\\udbff][\\udc00-\\udfff]",Le="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Oe="(?:"+ge+"|"+ve+")",Se="(?:"+Le+"|"+ve+")",De="(?:"+me+"|"+we+")"+"?",xe="[\\ufe0e\\ufe0f]?"+De+("(?:\\u200d(?:"+[Me,ke,Te].join("|")+")[\\ufe0e\\ufe0f]?"+De+")*"),Ee="(?:"+[be,ke,Te].join("|")+")"+xe,Ae="(?:"+[Me+me+"?",me,ke,Te,_e].join("|")+")",Pe=RegExp("['’]","g"),Ce=RegExp(me,"g"),je=RegExp(we+"(?="+we+")|"+Ae+xe,"g"),Ie=RegExp([Le+"?"+ge+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[he,Le,"$"].join("|")+")",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[he,Le+Oe,"$"].join("|")+")",Le+"?"+Oe+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Le+"+(?:['’](?: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_])",ye,Ee].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Ne=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["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"],He=-1,ze={};ze[L]=ze[O]=ze[S]=ze[D]=ze[x]=ze[E]=ze["[object Uint8ClampedArray]"]=ze[A]=ze[P]=!0,ze[l]=ze[u]=ze[k]=ze[c]=ze[T]=ze[d]=ze[f]=ze[p]=ze[h]=ze[m]=ze[y]=ze[b]=ze[g]=ze[v]=ze[M]=!1;var We={};We[l]=We[u]=We[k]=We[T]=We[c]=We[d]=We[L]=We[O]=We[S]=We[D]=We[x]=We[h]=We[m]=We[y]=We[b]=We[g]=We[v]=We[w]=We[E]=We["[object Uint8ClampedArray]"]=We[A]=We[P]=!0,We[f]=We[p]=We[M]=!1;var qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Be=parseFloat,Fe=parseInt,Ge="object"==typeof e&&e&&e.Object===Object&&e,Ue="object"==typeof self&&self&&self.Object===Object&&self,Ve=Ge||Ue||Function("return this")(),Xe=t&&!t.nodeType&&t,Ke=Xe&&"object"==typeof r&&r&&!r.nodeType&&r,Je=Ke&&Ke.exports===Xe,Qe=Je&&Ge.process,Ze=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Qe&&Qe.binding&&Qe.binding("util")}catch(e){}}(),$e=Ze&&Ze.isArrayBuffer,et=Ze&&Ze.isDate,tt=Ze&&Ze.isMap,nt=Ze&&Ze.isRegExp,rt=Ze&&Ze.isSet,ot=Ze&&Ze.isTypedArray;function at(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 it(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o-1}function ft(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function jt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function It(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=Ot({"À":"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"}),Nt=Ot({"&":"&","<":"<",">":">",'"':""","'":"'"});function Yt(e){return"\\"+qe[e]}function Ht(e){return Re.test(e)}function zt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Wt(e,t){return function(n){return e(t(n))}}function qt(e,t){for(var n=-1,r=e.length,o=0,a=[];++n",""":'"',"'":"'"});var Xt=function e(t){var n,r=(t=null==t?Ve:Xt.defaults(Ve.Object(),t,Xt.pick(Ve,Ye))).Array,o=t.Date,fe=t.Error,pe=t.Function,_e=t.Math,he=t.Object,me=t.RegExp,ye=t.String,be=t.TypeError,ge=r.prototype,ve=pe.prototype,we=he.prototype,Me=t["__core-js_shared__"],ke=ve.toString,Te=we.hasOwnProperty,Le=0,Oe=(n=/[^.]+$/.exec(Me&&Me.keys&&Me.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Se=we.toString,De=ke.call(he),xe=Ve._,Ee=me("^"+ke.call(Te).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ae=Je?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,qe=Ae?Ae.allocUnsafe:void 0,Ge=Wt(he.getPrototypeOf,he),Ue=he.create,Xe=we.propertyIsEnumerable,Ke=ge.splice,Qe=je?je.isConcatSpreadable:void 0,Ze=je?je.iterator:void 0,bt=je?je.toStringTag:void 0,Ot=function(){try{var e=ea(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==Ve.clearTimeout&&t.clearTimeout,Jt=o&&o.now!==Ve.Date.now&&o.now,Qt=t.setTimeout!==Ve.setTimeout&&t.setTimeout,Zt=_e.ceil,$t=_e.floor,en=he.getOwnPropertySymbols,tn=Ae?Ae.isBuffer:void 0,nn=t.isFinite,rn=ge.join,on=Wt(he.keys,he),an=_e.max,sn=_e.min,ln=o.now,un=t.parseInt,cn=_e.random,dn=ge.reverse,fn=ea(t,"DataView"),pn=ea(t,"Map"),_n=ea(t,"Promise"),hn=ea(t,"Set"),mn=ea(t,"WeakMap"),yn=ea(he,"create"),bn=mn&&new mn,gn={},vn=Sa(fn),wn=Sa(pn),Mn=Sa(_n),kn=Sa(hn),Tn=Sa(mn),Ln=je?je.prototype:void 0,On=Ln?Ln.valueOf:void 0,Sn=Ln?Ln.toString:void 0;function Dn(e){if(Fi(e)&&!Ci(e)&&!(e instanceof Pn)){if(e instanceof An)return e;if(Te.call(e,"__wrapped__"))return Da(e)}return new An(e)}var xn=function(){function e(){}return function(t){if(!Bi(t))return{};if(Ue)return Ue(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function En(){}function An(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Pn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Cn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Jn(e,t,n,r,o,a){var i,s=1&t,u=2&t,f=4&t;if(n&&(i=o?n(e,r,o,a):n(e)),void 0!==i)return i;if(!Bi(e))return e;var M=Ci(e);if(M){if(i=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Te.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return bo(e,i)}else{var C=ra(e),j=C==p||C==_;if(Ni(e))return fo(e,s);if(C==y||C==l||j&&!o){if(i=u||j?{}:aa(e),!s)return u?function(e,t){return go(e,na(e),t)}(e,function(e,t){return e&&go(t,ws(t),e)}(i,e)):function(e,t){return go(e,ta(e),t)}(e,Un(i,e))}else{if(!We[C])return o?e:{};i=function(e,t,n){var r=e.constructor;switch(t){case k:return po(e);case c:case d:return new r(+e);case T:return function(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case O:case S:case D:case x:case E:case"[object Uint8ClampedArray]":case A:case P:return _o(e,n);case h:return new r;case m:case v:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case g:return new r;case w:return o=e,On?he(On.call(o)):{}}var o}(e,C,s)}}a||(a=new Nn);var I=a.get(e);if(I)return I;a.set(e,i),Ki(e)?e.forEach((function(r){i.add(Jn(r,t,n,r,e,a))})):Gi(e)&&e.forEach((function(r,o){i.set(o,Jn(r,t,n,o,e,a))}));var R=M?void 0:(f?u?Vo:Uo:u?ws:vs)(e);return st(R||e,(function(r,o){R&&(r=e[o=r]),Bn(i,o,Jn(r,t,n,o,e,a))})),i}function Qn(e,t,n){var r=n.length;if(null==e)return!r;for(e=he(e);r--;){var o=n[r],a=t[o],i=e[o];if(void 0===i&&!(o in e)||!a(i))return!1}return!0}function Zn(e,t,n){if("function"!=typeof e)throw new be(a);return va((function(){e.apply(void 0,n)}),t)}function $n(e,t,n,r){var o=-1,a=dt,i=!0,s=e.length,l=[],u=t.length;if(!s)return l;n&&(t=pt(t,Et(n))),r?(a=ft,i=!1):t.length>=200&&(a=Pt,i=!1,t=new Rn(t));e:for(;++o-1},jn.prototype.set=function(e,t){var n=this.__data__,r=Fn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},In.prototype.clear=function(){this.size=0,this.__data__={hash:new Cn,map:new(pn||jn),string:new Cn}},In.prototype.delete=function(e){var t=Zo(this,e).delete(e);return this.size-=t?1:0,t},In.prototype.get=function(e){return Zo(this,e).get(e)},In.prototype.has=function(e){return Zo(this,e).has(e)},In.prototype.set=function(e,t){var n=Zo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.clear=function(){this.__data__=new jn,this.size=0},Nn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Nn.prototype.get=function(e){return this.__data__.get(e)},Nn.prototype.has=function(e){return this.__data__.has(e)},Nn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!pn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new In(r)}return n.set(e,t),this.size=n.size,this};var er=Mo(lr),tr=Mo(ur,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function rr(e,t,n){for(var r=-1,o=e.length;++r0&&n(s)?t>1?ar(s,t-1,n,r,o):_t(o,s):r||(o[o.length]=s)}return o}var ir=ko(),sr=ko(!0);function lr(e,t){return e&&ir(e,t,vs)}function ur(e,t){return e&&sr(e,t,vs)}function cr(e,t){return ct(t,(function(t){return zi(e[t])}))}function dr(e,t){for(var n=0,r=(t=so(t,e)).length;null!=e&&nt}function hr(e,t){return null!=e&&Te.call(e,t)}function mr(e,t){return null!=e&&t in he(e)}function yr(e,t,n){for(var o=n?ft:dt,a=e[0].length,i=e.length,s=i,l=r(i),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=pt(d,Et(t))),u=sn(d.length,u),l[s]=!n&&(t||a>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var f=-1,p=l[0];e:for(;++f=s)return l;var u=n[r];return l*("desc"==u?-1:1)}}return e.index-t.index}(e,t,n)}))}function Cr(e,t,n){for(var r=-1,o=t.length,a={};++r-1;)s!==e&&Ke.call(s,l,1),Ke.call(e,l,1);return e}function Ir(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;sa(o)?Ke.call(e,o,1):$r(e,o)}}return e}function Rr(e,t){return e+$t(cn()*(t-e+1))}function Nr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=$t(t/2))&&(e+=e)}while(t);return n}function Yr(e,t){return wa(ha(e,t,Us),e+"")}function Hr(e){return Hn(xs(e))}function zr(e,t){var n=xs(e);return Ta(n,Kn(t,0,n.length))}function Wr(e,t,n,r){if(!Bi(e))return e;for(var o=-1,a=(t=so(t,e)).length,i=a-1,s=e;null!=s&&++oa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o>>1,i=e[a];null!==i&&!Qi(i)&&(n?i<=t:i=200){var u=t?null:Yo(e);if(u)return Bt(u);i=!1,o=Pt,l=new Rn}else l=t?[]:s;e:for(;++r=r?e:Gr(e,t,n)}var co=Kt||function(e){return Ve.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function po(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function _o(e,t){var n=t?po(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ho(e,t){if(e!==t){var n=void 0!==e,r=null===e,o=e==e,a=Qi(e),i=void 0!==t,s=null===t,l=t==t,u=Qi(t);if(!s&&!u&&!a&&e>t||a&&i&&l&&!s&&!u||r&&i&&l||!n&&l||!o)return 1;if(!r&&!a&&!u&&e1?n[o-1]:void 0,i=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,i&&la(n[0],n[1],i)&&(a=o<3?void 0:a,o=1),t=he(t);++r-1?o[a?t[i]:i]:void 0}}function Do(e){return Go((function(t){var n=t.length,r=n,o=An.prototype.thru;for(e&&t.reverse();r--;){var i=t[r];if("function"!=typeof i)throw new be(a);if(o&&!s&&"wrapper"==Ko(i))var s=new An([],!0)}for(r=s?r:n;++r1&&g.reverse(),d&&us))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new Rn:void 0;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Q,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(Z);return t?t[1].split($):[]}(r),n)))}function ka(e){var t=0,n=0;return function(){var r=ln(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ta(e,t){var n=-1,r=e.length,o=r-1;for(t=void 0===t?r:t;++n1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Xa(e,n)}));function ti(e){var t=Dn(e);return t.__chain__=!0,t}function ni(e,t){return t(e)}var ri=Go((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Xn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Pn&&sa(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ni,args:[o],thisArg:void 0}),new An(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oi=vo((function(e,t,n){Te.call(e,n)?++e[n]:Vn(e,n,1)}));var ai=So(Pa),ii=So(Ca);function si(e,t){return(Ci(e)?st:er)(e,Qo(t,3))}function li(e,t){return(Ci(e)?lt:tr)(e,Qo(t,3))}var ui=vo((function(e,t,n){Te.call(e,n)?e[n].push(t):Vn(e,n,[t])}));var ci=Yr((function(e,t,n){var o=-1,a="function"==typeof t,i=Ii(e)?r(e.length):[];return er(e,(function(e){i[++o]=a?at(t,e,n):br(e,t,n)})),i})),di=vo((function(e,t,n){Vn(e,n,t)}));function fi(e,t){return(Ci(e)?pt:Sr)(e,Qo(t,3))}var pi=vo((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var _i=Yr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&la(e,t[0],t[1])?t=[]:n>2&&la(t[0],t[1],t[2])&&(t=[t[0]]),Pr(e,ar(t,1),[])})),hi=Jt||function(){return Ve.Date.now()};function mi(e,t,n){return t=n?void 0:t,zo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function yi(e,t){var n;if("function"!=typeof t)throw new be(a);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var bi=Yr((function(e,t,n){var r=1;if(n.length){var o=qt(n,Jo(bi));r|=32}return zo(e,r,t,n,o)})),gi=Yr((function(e,t,n){var r=3;if(n.length){var o=qt(n,Jo(gi));r|=32}return zo(t,r,e,n,o)}));function vi(e,t,n){var r,o,i,s,l,u,c=0,d=!1,f=!1,p=!0;if("function"!=typeof e)throw new be(a);function _(t){var n=r,a=o;return r=o=void 0,c=t,s=e.apply(a,n)}function h(e){return c=e,l=va(y,t),d?_(e):s}function m(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=i}function y(){var e=hi();if(m(e))return b(e);l=va(y,function(e){var n=t-(e-u);return f?sn(n,i-(e-c)):n}(e))}function b(e){return l=void 0,p&&r?_(e):(r=o=void 0,s)}function g(){var e=hi(),n=m(e);if(r=arguments,o=this,u=e,n){if(void 0===l)return h(u);if(f)return co(l),l=va(y,t),_(u)}return void 0===l&&(l=va(y,t)),s}return t=as(t)||0,Bi(n)&&(d=!!n.leading,i=(f="maxWait"in n)?an(as(n.maxWait)||0,t):i,p="trailing"in n?!!n.trailing:p),g.cancel=function(){void 0!==l&&co(l),c=0,r=u=o=l=void 0},g.flush=function(){return void 0===l?s:b(hi())},g}var wi=Yr((function(e,t){return Zn(e,1,t)})),Mi=Yr((function(e,t,n){return Zn(e,as(t)||0,n)}));function ki(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(ki.Cache||In),n}function Ti(e){if("function"!=typeof e)throw new be(a);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)}}ki.Cache=In;var Li=lo((function(e,t){var n=(t=1==t.length&&Ci(t[0])?pt(t[0],Et(Qo())):pt(ar(t,1),Et(Qo()))).length;return Yr((function(r){for(var o=-1,a=sn(r.length,n);++o=t})),Pi=gr(function(){return arguments}())?gr:function(e){return Fi(e)&&Te.call(e,"callee")&&!Xe.call(e,"callee")},Ci=r.isArray,ji=$e?Et($e):function(e){return Fi(e)&&pr(e)==k};function Ii(e){return null!=e&&qi(e.length)&&!zi(e)}function Ri(e){return Fi(e)&&Ii(e)}var Ni=tn||al,Yi=et?Et(et):function(e){return Fi(e)&&pr(e)==d};function Hi(e){if(!Fi(e))return!1;var t=pr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Vi(e)}function zi(e){if(!Bi(e))return!1;var t=pr(e);return t==p||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Wi(e){return"number"==typeof e&&e==rs(e)}function qi(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Bi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Fi(e){return null!=e&&"object"==typeof e}var Gi=tt?Et(tt):function(e){return Fi(e)&&ra(e)==h};function Ui(e){return"number"==typeof e||Fi(e)&&pr(e)==m}function Vi(e){if(!Fi(e)||pr(e)!=y)return!1;var t=Ge(e);if(null===t)return!0;var n=Te.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ke.call(n)==De}var Xi=nt?Et(nt):function(e){return Fi(e)&&pr(e)==b};var Ki=rt?Et(rt):function(e){return Fi(e)&&ra(e)==g};function Ji(e){return"string"==typeof e||!Ci(e)&&Fi(e)&&pr(e)==v}function Qi(e){return"symbol"==typeof e||Fi(e)&&pr(e)==w}var Zi=ot?Et(ot):function(e){return Fi(e)&&qi(e.length)&&!!ze[pr(e)]};var $i=Io(Or),es=Io((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ii(e))return Ji(e)?Ut(e):bo(e);if(Ze&&e[Ze])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ze]());var t=ra(e);return(t==h?zt:t==g?Bt:xs)(e)}function ns(e){return e?(e=as(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function os(e){return e?Kn(rs(e),0,4294967295):0}function as(e){if("number"==typeof e)return e;if(Qi(e))return NaN;if(Bi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(X,"");var n=ae.test(e);return n||se.test(e)?Fe(e.slice(2),n?2:8):oe.test(e)?NaN:+e}function is(e){return go(e,ws(e))}function ss(e){return null==e?"":Qr(e)}var ls=wo((function(e,t){if(fa(t)||Ii(t))go(t,vs(t),e);else for(var n in t)Te.call(t,n)&&Bn(e,n,t[n])})),us=wo((function(e,t){go(t,ws(t),e)})),cs=wo((function(e,t,n,r){go(t,ws(t),e,r)})),ds=wo((function(e,t,n,r){go(t,vs(t),e,r)})),fs=Go(Xn);var ps=Yr((function(e,t){e=he(e);var n=-1,r=t.length,o=r>2?t[2]:void 0;for(o&&la(t[0],t[1],o)&&(r=1);++n1),t})),go(e,Vo(e),n),r&&(n=Jn(n,7,Bo));for(var o=t.length;o--;)$r(n,t[o]);return n}));var Ls=Go((function(e,t){return null==e?{}:function(e,t){return Cr(e,t,(function(t,n){return ms(e,n)}))}(e,t)}));function Os(e,t){if(null==e)return{};var n=pt(Vo(e),(function(e){return[e]}));return t=Qo(t),Cr(e,n,(function(e,n){return t(e,n[0])}))}var Ss=Ho(vs),Ds=Ho(ws);function xs(e){return null==e?[]:At(e,vs(e))}var Es=Lo((function(e,t,n){return t=t.toLowerCase(),e+(n?As(t):t)}));function As(e){return Hs(ss(e).toLowerCase())}function Ps(e){return(e=ss(e))&&e.replace(ue,Rt).replace(Ce,"")}var Cs=Lo((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),js=Lo((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Is=To("toLowerCase");var Rs=Lo((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ns=Lo((function(e,t,n){return e+(n?" ":"")+Hs(t)}));var Ys=Lo((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Hs=To("toUpperCase");function zs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Ne.test(e)}(e)?function(e){return e.match(Ie)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Ws=Yr((function(e,t){try{return at(e,void 0,t)}catch(e){return Hi(e)?e:new fe(e)}})),qs=Go((function(e,t){return st(t,(function(t){t=Oa(t),Vn(e,t,bi(e[t],e))})),e}));function Bs(e){return function(){return e}}var Fs=Do(),Gs=Do(!0);function Us(e){return e}function Vs(e){return kr("function"==typeof e?e:Jn(e,1))}var Xs=Yr((function(e,t){return function(n){return br(n,e,t)}})),Ks=Yr((function(e,t){return function(n){return br(e,n,t)}}));function Js(e,t,n){var r=vs(t),o=cr(t,r);null!=n||Bi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=cr(t,vs(t)));var a=!(Bi(n)&&"chain"in n&&!n.chain),i=zi(e);return st(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),o=n.__actions__=bo(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,_t([this.value()],arguments))})})),e}function Qs(){}var Zs=Po(pt),$s=Po(ut),el=Po(yt);function tl(e){return ua(e)?Lt(Oa(e)):function(e){return function(t){return dr(t,e)}}(e)}var nl=jo(),rl=jo(!0);function ol(){return[]}function al(){return!1}var il=Ao((function(e,t){return e+t}),0),sl=No("ceil"),ll=Ao((function(e,t){return e/t}),1),ul=No("floor");var cl,dl=Ao((function(e,t){return e*t}),1),fl=No("round"),pl=Ao((function(e,t){return e-t}),0);return Dn.after=function(e,t){if("function"!=typeof t)throw new be(a);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Dn.ary=mi,Dn.assign=ls,Dn.assignIn=us,Dn.assignInWith=cs,Dn.assignWith=ds,Dn.at=fs,Dn.before=yi,Dn.bind=bi,Dn.bindAll=qs,Dn.bindKey=gi,Dn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ci(e)?e:[e]},Dn.chain=ti,Dn.chunk=function(e,t,n){t=(n?la(e,t,n):void 0===t)?1:an(rs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,i=0,s=r(Zt(o/t));ao?0:o+n),(r=void 0===r||r>o?o:rs(r))<0&&(r+=o),r=n>r?0:os(r);n>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Xi(t))&&!(t=Qr(t))&&Ht(e)?uo(Ut(e),0,n):e.split(t,n):[]},Dn.spread=function(e,t){if("function"!=typeof e)throw new be(a);return t=null==t?0:an(rs(t),0),Yr((function(n){var r=n[t],o=uo(n,0,t);return r&&_t(o,r),at(e,this,o)}))},Dn.tail=function(e){var t=null==e?0:e.length;return t?Gr(e,1,t):[]},Dn.take=function(e,t,n){return e&&e.length?Gr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Dn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Gr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Dn.takeRightWhile=function(e,t){return e&&e.length?to(e,Qo(t,3),!1,!0):[]},Dn.takeWhile=function(e,t){return e&&e.length?to(e,Qo(t,3)):[]},Dn.tap=function(e,t){return t(e),e},Dn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new be(a);return Bi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),vi(e,t,{leading:r,maxWait:t,trailing:o})},Dn.thru=ni,Dn.toArray=ts,Dn.toPairs=Ss,Dn.toPairsIn=Ds,Dn.toPath=function(e){return Ci(e)?pt(e,Oa):Qi(e)?[e]:bo(La(ss(e)))},Dn.toPlainObject=is,Dn.transform=function(e,t,n){var r=Ci(e),o=r||Ni(e)||Zi(e);if(t=Qo(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Bi(e)&&zi(a)?xn(Ge(e)):{}}return(o?st:lr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Dn.unary=function(e){return mi(e,1)},Dn.union=Fa,Dn.unionBy=Ga,Dn.unionWith=Ua,Dn.uniq=function(e){return e&&e.length?Zr(e):[]},Dn.uniqBy=function(e,t){return e&&e.length?Zr(e,Qo(t,2)):[]},Dn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Zr(e,void 0,t):[]},Dn.unset=function(e,t){return null==e||$r(e,t)},Dn.unzip=Va,Dn.unzipWith=Xa,Dn.update=function(e,t,n){return null==e?e:eo(e,t,io(n))},Dn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:eo(e,t,io(n),r)},Dn.values=xs,Dn.valuesIn=function(e){return null==e?[]:At(e,ws(e))},Dn.without=Ka,Dn.words=zs,Dn.wrap=function(e,t){return Oi(io(t),e)},Dn.xor=Ja,Dn.xorBy=Qa,Dn.xorWith=Za,Dn.zip=$a,Dn.zipObject=function(e,t){return oo(e||[],t||[],Bn)},Dn.zipObjectDeep=function(e,t){return oo(e||[],t||[],Wr)},Dn.zipWith=ei,Dn.entries=Ss,Dn.entriesIn=Ds,Dn.extend=us,Dn.extendWith=cs,Js(Dn,Dn),Dn.add=il,Dn.attempt=Ws,Dn.camelCase=Es,Dn.capitalize=As,Dn.ceil=sl,Dn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=as(n))==n?n:0),void 0!==t&&(t=(t=as(t))==t?t:0),Kn(as(e),t,n)},Dn.clone=function(e){return Jn(e,4)},Dn.cloneDeep=function(e){return Jn(e,5)},Dn.cloneDeepWith=function(e,t){return Jn(e,5,t="function"==typeof t?t:void 0)},Dn.cloneWith=function(e,t){return Jn(e,4,t="function"==typeof t?t:void 0)},Dn.conformsTo=function(e,t){return null==t||Qn(e,t,vs(t))},Dn.deburr=Ps,Dn.defaultTo=function(e,t){return null==e||e!=e?t:e},Dn.divide=ll,Dn.endsWith=function(e,t,n){e=ss(e),t=Qr(t);var r=e.length,o=n=void 0===n?r:Kn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},Dn.eq=xi,Dn.escape=function(e){return(e=ss(e))&&H.test(e)?e.replace(N,Nt):e},Dn.escapeRegExp=function(e){return(e=ss(e))&&V.test(e)?e.replace(U,"\\$&"):e},Dn.every=function(e,t,n){var r=Ci(e)?ut:nr;return n&&la(e,t,n)&&(t=void 0),r(e,Qo(t,3))},Dn.find=ai,Dn.findIndex=Pa,Dn.findKey=function(e,t){return gt(e,Qo(t,3),lr)},Dn.findLast=ii,Dn.findLastIndex=Ca,Dn.findLastKey=function(e,t){return gt(e,Qo(t,3),ur)},Dn.floor=ul,Dn.forEach=si,Dn.forEachRight=li,Dn.forIn=function(e,t){return null==e?e:ir(e,Qo(t,3),ws)},Dn.forInRight=function(e,t){return null==e?e:sr(e,Qo(t,3),ws)},Dn.forOwn=function(e,t){return e&&lr(e,Qo(t,3))},Dn.forOwnRight=function(e,t){return e&&ur(e,Qo(t,3))},Dn.get=hs,Dn.gt=Ei,Dn.gte=Ai,Dn.has=function(e,t){return null!=e&&oa(e,t,hr)},Dn.hasIn=ms,Dn.head=Ia,Dn.identity=Us,Dn.includes=function(e,t,n,r){e=Ii(e)?e:xs(e),n=n&&!r?rs(n):0;var o=e.length;return n<0&&(n=an(o+n,0)),Ji(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&wt(e,t,n)>-1},Dn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:rs(n);return o<0&&(o=an(r+o,0)),wt(e,t,o)},Dn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e=-9007199254740991&&e<=9007199254740991},Dn.isSet=Ki,Dn.isString=Ji,Dn.isSymbol=Qi,Dn.isTypedArray=Zi,Dn.isUndefined=function(e){return void 0===e},Dn.isWeakMap=function(e){return Fi(e)&&ra(e)==M},Dn.isWeakSet=function(e){return Fi(e)&&"[object WeakSet]"==pr(e)},Dn.join=function(e,t){return null==e?"":rn.call(e,t)},Dn.kebabCase=Cs,Dn.last=Ha,Dn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return void 0!==n&&(o=(o=rs(n))<0?an(r+o,0):sn(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):vt(e,kt,o,!0)},Dn.lowerCase=js,Dn.lowerFirst=Is,Dn.lt=$i,Dn.lte=es,Dn.max=function(e){return e&&e.length?rr(e,Us,_r):void 0},Dn.maxBy=function(e,t){return e&&e.length?rr(e,Qo(t,2),_r):void 0},Dn.mean=function(e){return Tt(e,Us)},Dn.meanBy=function(e,t){return Tt(e,Qo(t,2))},Dn.min=function(e){return e&&e.length?rr(e,Us,Or):void 0},Dn.minBy=function(e,t){return e&&e.length?rr(e,Qo(t,2),Or):void 0},Dn.stubArray=ol,Dn.stubFalse=al,Dn.stubObject=function(){return{}},Dn.stubString=function(){return""},Dn.stubTrue=function(){return!0},Dn.multiply=dl,Dn.nth=function(e,t){return e&&e.length?Ar(e,rs(t)):void 0},Dn.noConflict=function(){return Ve._===this&&(Ve._=xe),this},Dn.noop=Qs,Dn.now=hi,Dn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?Gt(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Co($t(o),n)+e+Co(Zt(o),n)},Dn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?Gt(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=cn();return sn(e+o*(t-e+Be("1e-"+((o+"").length-1))),t)}return Rr(e,t)},Dn.reduce=function(e,t,n){var r=Ci(e)?ht:St,o=arguments.length<3;return r(e,Qo(t,4),n,o,er)},Dn.reduceRight=function(e,t,n){var r=Ci(e)?mt:St,o=arguments.length<3;return r(e,Qo(t,4),n,o,tr)},Dn.repeat=function(e,t,n){return t=(n?la(e,t,n):void 0===t)?1:rs(t),Nr(ss(e),t)},Dn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Dn.result=function(e,t,n){var r=-1,o=(t=so(t,e)).length;for(o||(o=1,e=void 0);++r9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var o=xt(r,t=Qo(t));++n=a)return e;var s=n-Gt(r);if(s<1)return r;var l=i?uo(i,0,s).join(""):e.slice(0,s);if(void 0===o)return l+r;if(i&&(s+=l.length-s),Xi(o)){if(e.slice(s).search(o)){var u,c=l;for(o.global||(o=me(o.source,ss(re.exec(o))+"g")),o.lastIndex=0;u=o.exec(c);)var d=u.index;l=l.slice(0,void 0===d?s:d)}}else if(e.indexOf(Qr(o),s)!=s){var f=l.lastIndexOf(o);f>-1&&(l=l.slice(0,f))}return l+r},Dn.unescape=function(e){return(e=ss(e))&&Y.test(e)?e.replace(R,Vt):e},Dn.uniqueId=function(e){var t=++Le;return ss(e)+t},Dn.upperCase=Ys,Dn.upperFirst=Hs,Dn.each=si,Dn.eachRight=li,Dn.first=Ia,Js(Dn,(cl={},lr(Dn,(function(e,t){Te.call(Dn.prototype,t)||(cl[t]=e)})),cl),{chain:!1}),Dn.VERSION="4.17.19",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Dn[e].placeholder=Dn})),st(["drop","take"],(function(e,t){Pn.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new Pn(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},Pn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Pn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Pn.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Pn.prototype[e]=function(){return this.__filtered__?new Pn(this):this[n](1)}})),Pn.prototype.compact=function(){return this.filter(Us)},Pn.prototype.find=function(e){return this.filter(e).head()},Pn.prototype.findLast=function(e){return this.reverse().find(e)},Pn.prototype.invokeMap=Yr((function(e,t){return"function"==typeof e?new Pn(this):this.map((function(n){return br(n,e,t)}))})),Pn.prototype.reject=function(e){return this.filter(Ti(Qo(e)))},Pn.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Pn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Pn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Pn.prototype.toArray=function(){return this.take(4294967295)},lr(Pn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=Dn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(Dn.prototype[t]=function(){var t=this.__wrapped__,i=r?[1]:arguments,s=t instanceof Pn,l=i[0],u=s||Ci(t),c=function(e){var t=o.apply(Dn,_t([e],i));return r&&d?t[0]:t};u&&n&&"function"==typeof l&&1!=l.length&&(s=u=!1);var d=this.__chain__,f=!!this.__actions__.length,p=a&&!d,_=s&&!f;if(!a&&u){t=_?t:new Pn(this);var h=e.apply(t,i);return h.__actions__.push({func:ni,args:[c],thisArg:void 0}),new An(h,d)}return p&&_?e.apply(this,i):(h=this.thru(c),p?r?h.value()[0]:h.value():h)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ge[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Dn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Ci(o)?o:[],e)}return this[n]((function(n){return t.apply(Ci(n)?n:[],e)}))}})),lr(Pn.prototype,(function(e,t){var n=Dn[t];if(n){var r=n.name+"";Te.call(gn,r)||(gn[r]=[]),gn[r].push({name:t,func:n})}})),gn[xo(void 0,2).name]=[{name:"wrapper",func:void 0}],Pn.prototype.clone=function(){var e=new Pn(this.__wrapped__);return e.__actions__=bo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=bo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=bo(this.__views__),e},Pn.prototype.reverse=function(){if(this.__filtered__){var e=new Pn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Pn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ci(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Dn.prototype.plant=function(e){for(var t,n=this;n instanceof En;){var r=Da(n);r.__index__=0,r.__values__=void 0,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},Dn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Pn){var t=e;return this.__actions__.length&&(t=new Pn(this)),(t=t.reverse()).__actions__.push({func:ni,args:[Ba],thisArg:void 0}),new An(t,this.__chain__)}return this.thru(Ba)},Dn.prototype.toJSON=Dn.prototype.valueOf=Dn.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Dn.prototype.first=Dn.prototype.head,Ze&&(Dn.prototype[Ze]=function(){return this}),Dn}();Ve._=Xt,void 0===(o=function(){return Xt}.call(t,n,t,r))||(r.exports=o)}).call(this)}).call(this,n(12),n(3)(e))},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(62).default);t.default=a},function(e,t,n){"use strict";var r=n(0),o=n(1159);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 a=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,a)},function(e,t,n){var r=n(170)("wks"),o=n(97),a=n(15).Symbol,i="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=i&&a[e]||(i?a:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(71),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return(r=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])})(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(n(62).default);t.default=a},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.default=e.exports,e.exports.__esModule=!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},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(1126)},function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){e.exports=!n(16)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(17),o=n(333),a=n(87),i=Object.defineProperty;t.f=n(31)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var r=n(378);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return r.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return r.routerReducer}});var o=n(379);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return o.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return o.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return o.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return o.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return o.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return o.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return o.routerActions}});var a=s(n(1165)),i=s(n(1166));function s(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=a.default,t.routerMiddleware=i.default},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createPatchRequestPayload=_,t.toggleFullScreen=m,t.nullToEmptyStrings=y,t.getItemsByProperty=b,t.cleanupFilter=v,t.translateCaption=w,t.preFormatPostDATA=M,t.openInNewTab=k,t.getTab=T,t.updateTab=L,t.deepUnfreeze=x,t.arePropTypesIdentical=t.getQueryString=void 0;var r,o=l(n(4)),a=l(n(649)),i=l(n(11)),s=n(19);function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0?t[n]=r.join(","):r&&(t[n]=r),t}),{}))};function _(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}]:[]}t.getQueryString=p;var h=function(e,t){for(var n=0,r=Object.keys(e);n=0||(o[n]=e[n]);if(Object.getOwnPropertySymbols){var i=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)},_}(r.Component),n.displayName="OnClickOutside("+d+")",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},i}},function(e,t,n){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNotifications=w,t.getNotificationsEndpoint=M,t.markAllAsRead=k,t.markAsRead=T,t.deleteUserNotification=L,t.getImageAction=O,t.postImageAction=S,t.getMessages=D,t.createUrlAttachment=x,t.logoutSuccess=A,t.loginSuccess=P,t.enableTutorial=C,t.addNotification=j,t.setNotificationProgress=I,t.deleteNotification=R,t.clearNotifications=N,t.updateUri=Y,t.getNotificationsSuccess=H,t.readNotification=z,t.newNotification=W,t.removeNotification=q,t.readAllNotifications=B,t.deleteAllNotifications=F,t.setProcessPending=G,t.setProcessSaved=U,t.userSessionInit=V,t.userSessionUpdate=X,t.setLanguages=K,t.initKeymap=J,t.updateKeymap=Q,t.initHotkeys=Z,t.updateHotkeys=$;var o,a=_(n(43)),i=_(n(125)),s=_(n(648)),l=n(33),u=_(n(649)),c=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(39)),d=n(108),f=n(20);function p(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function _(e){return e&&e.__esModule?e:{default:e}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t0&&void 0!==arguments[0])||arguments[0];return{type:c.ENABLE_TUTORIAL,flag:e}}function j(e,t,n,r,o,a){return{type:c.ADD_NOTIFICATION,title:e,msg:t,shortMsg:o,time:n,notifType:r,id:Date.now(),onCancel:a}}function I(e,t){return{type:c.SET_NOTIFICATION_PROGRESS,key:e,progress:t}}function R(e){return{type:c.DELETE_NOTIFICATION,key:e}}function N(){return{type:c.CLEAR_NOTIFICATIONS}}function Y(e,t,n){var r=window.location.href;return function(o){var a=m(m({},t),n),i=u.default.stringify(a),s="".concat(e,"?").concat(i);r.includes("viewId")?o((0,l.push)(s)):o((0,l.replace)(s))}}function H(e,t){return{type:c.GET_NOTIFICATIONS_SUCCESS,notifications:e,unreadCount:t}}function z(e,t){return{type:c.READ_NOTIFICATION,notificationId:e,unreadCount:t}}function W(e,t){return{type:c.NEW_NOTIFICATION,notification:e,unreadCount:t}}function q(e,t){return{type:c.REMOVE_NOTIFICATION,notificationId:e,unreadCount:t}}function B(){return{type:c.READ_ALL_NOTIFICATIONS}}function F(){return{type:c.REMOVE_ALL_NOTIFICATIONS}}function G(){return{type:c.SET_PROCESS_STATE_PENDING}}function U(){return{type:c.SET_PROCESS_STATE_SAVED}}function V(e){return{type:c.USER_SESSION_INIT,me:e}}function X(e){return{type:c.USER_SESSION_UPDATE,me:e}}function K(e){return{type:c.SET_LANGUAGES,data:e}}function J(e){return{type:c.INIT_KEYMAP,payload:e}}function Q(e){return{type:c.UPDATE_KEYMAP,payload:e}}function Z(e){return{type:c.INIT_HOTKEYS,payload:e}}function $(e){return{type:c.UPDATE_HOTKEYS,payload:e}}(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(g.register(w,"getNotifications","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(M,"getNotificationsEndpoint","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(k,"markAllAsRead","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(T,"markAsRead","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(L,"deleteUserNotification","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(O,"getImageAction","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(S,"postImageAction","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(D,"getMessages","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(x,"createUrlAttachment","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(E,"initNumeralLocales","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(A,"logoutSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(P,"loginSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(C,"enableTutorial","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(j,"addNotification","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(I,"setNotificationProgress","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(R,"deleteNotification","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(N,"clearNotifications","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(Y,"updateUri","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(H,"getNotificationsSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(z,"readNotification","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(W,"newNotification","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(q,"removeNotification","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(B,"readAllNotifications","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(F,"deleteAllNotifications","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(G,"setProcessPending","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(U,"setProcessSaved","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(V,"userSessionInit","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(X,"userSessionUpdate","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(K,"setLanguages","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(J,"initKeymap","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(Q,"updateKeymap","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register(Z,"initHotkeys","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js"),g.register($,"updateHotkeys","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/AppActions.js")),(v="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&v(e)}).call(this,n(3)(e))},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";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r={NO_CONNECTION:!0,OPEN_MODAL:!0,CLOSE_MODAL:!0,CLOSE_PROCESS_MODAL:!0,UPDATE_MODAL:!0,USER_SESSION_INIT:!0,USER_SESSION_UPDATE:!0,SET_PROCESS_STATE_SAVED:!0,SET_PROCESS_STATE_PENDING:!0,INIT_WINDOW:!0,INIT_DATA_SUCCESS:!0,INIT_LAYOUT_SUCCESS:!0,UPDATE_DATA_PROPERTY:!0,UPDATE_DATA_FIELD_PROPERTY:!0,UPDATE_MASTER_DATA:!0,CLEAR_MASTER_DATA:!0,UPDATE_DATA_VALID_STATUS:!0,UPDATE_DATA_SAVE_STATUS:!0,CHANGE_INDICATOR_STATE:!0,ADD_NOTIFICATION:!0,SET_NOTIFICATION_PROGRESS:!0,DELETE_NOTIFICATION:!0,CLEAR_NOTIFICATIONS:!0,LOGIN_SUCCESS:!0,LOGOUT_SUCCESS:!0,ENABLE_TUTORIAL:!0,INIT_FILTERS_PARAMETERS:!0,DELETE_FILTERS_PARAMETERS:!0,UPDATE_FILTERS_PARAMETERS:!0,DRAGGABLE_CARD:!0,NEW_PROCESS_SUCCESS:!0,GET_NOTIFICATIONS_SUCCESS:!0,NEW_NOTIFICATION:!0,REMOVE_NOTIFICATION:!0,REMOVE_ALL_NOTIFICATIONS:!0,READ_NOTIFICATION:!0,READ_ALL_NOTIFICATIONS:!0,OPEN_PLUGIN_MODAL:!0,CLOSE_PLUGIN_MODAL:!0,OPEN_RAW_MODAL:!0,UPDATE_RAW_MODAL:!0,SET_RAW_MODAL_TITLE:!0,SET_RAW_MODAL_DESCRIPTION:!0,CLOSE_RAW_MODAL:!0,TOGGLE_OVERLAY:!0,OPEN_FILTER_BOX:!0,CLOSE_FILTER_BOX:!0,SET_LATEST_NEW_DOCUMENT:!0,ALLOW_SHORTCUT:!0,DISABLE_SHORTCUT:!0,PATCH_REQUEST:!0,PATCH_SUCCESS:!0,PATCH_FAILURE:!0,PATCH_RESET:!0,ALLOW_OUTSIDE_CLICK:!0,DISABLE_OUTSIDE_CLICK:!0,INIT_KEYMAP:!0,UPDATE_KEYMAP:!0,INIT_HOTKEYS:!0,UPDATE_HOTKEYS:!0,SET_LANGUAGES:!0,SET_PRINTING_OPTIONS:!0,RESET_PRINTING_OPTIONS:!0,TOGGLE_PRINTING_OPTION:!0};t.TOGGLE_PRINTING_OPTION=t.RESET_PRINTING_OPTIONS=t.SET_PRINTING_OPTIONS=t.SET_LANGUAGES=t.UPDATE_HOTKEYS=t.INIT_HOTKEYS=t.UPDATE_KEYMAP=t.INIT_KEYMAP=t.DISABLE_OUTSIDE_CLICK=t.ALLOW_OUTSIDE_CLICK=t.PATCH_RESET=t.PATCH_FAILURE=t.PATCH_SUCCESS=t.PATCH_REQUEST=t.DISABLE_SHORTCUT=t.ALLOW_SHORTCUT=t.SET_LATEST_NEW_DOCUMENT=t.CLOSE_FILTER_BOX=t.OPEN_FILTER_BOX=t.TOGGLE_OVERLAY=t.CLOSE_RAW_MODAL=t.SET_RAW_MODAL_DESCRIPTION=t.SET_RAW_MODAL_TITLE=t.UPDATE_RAW_MODAL=t.OPEN_RAW_MODAL=t.CLOSE_PLUGIN_MODAL=t.OPEN_PLUGIN_MODAL=t.READ_ALL_NOTIFICATIONS=t.READ_NOTIFICATION=t.REMOVE_ALL_NOTIFICATIONS=t.REMOVE_NOTIFICATION=t.NEW_NOTIFICATION=t.GET_NOTIFICATIONS_SUCCESS=t.NEW_PROCESS_SUCCESS=t.DRAGGABLE_CARD=t.UPDATE_FILTERS_PARAMETERS=t.DELETE_FILTERS_PARAMETERS=t.INIT_FILTERS_PARAMETERS=t.ENABLE_TUTORIAL=t.LOGOUT_SUCCESS=t.LOGIN_SUCCESS=t.CLEAR_NOTIFICATIONS=t.DELETE_NOTIFICATION=t.SET_NOTIFICATION_PROGRESS=t.ADD_NOTIFICATION=t.CHANGE_INDICATOR_STATE=t.UPDATE_DATA_SAVE_STATUS=t.UPDATE_DATA_VALID_STATUS=t.CLEAR_MASTER_DATA=t.UPDATE_MASTER_DATA=t.UPDATE_DATA_FIELD_PROPERTY=t.UPDATE_DATA_PROPERTY=t.INIT_LAYOUT_SUCCESS=t.INIT_DATA_SUCCESS=t.INIT_WINDOW=t.SET_PROCESS_STATE_PENDING=t.SET_PROCESS_STATE_SAVED=t.USER_SESSION_UPDATE=t.USER_SESSION_INIT=t.UPDATE_MODAL=t.CLOSE_PROCESS_MODAL=t.CLOSE_MODAL=t.OPEN_MODAL=t.NO_CONNECTION=void 0;var o=n(1198);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var a=n(1199);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var i=n(1200);Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===i[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var s=n(1201);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var l=n(1202);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var u=n(1203);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c,d=n(1204);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))})),(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&c(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;t.NO_CONNECTION="NO_CONNECTION";t.OPEN_MODAL="OPEN_MODAL";t.CLOSE_MODAL="CLOSE_MODAL";t.CLOSE_PROCESS_MODAL="CLOSE_PROCESS_MODAL";t.UPDATE_MODAL="UPDATE_MODAL";t.USER_SESSION_INIT="USER_SESSION_INIT";t.USER_SESSION_UPDATE="USER_SESSION_UPDATE";t.SET_PROCESS_STATE_SAVED="SET_PROCESS_STATE_SAVED";t.SET_PROCESS_STATE_PENDING="SET_PROCESS_STATE_PENDING";t.INIT_WINDOW="INIT_WINDOW";t.INIT_DATA_SUCCESS="INIT_DATA_SUCCESS";t.INIT_LAYOUT_SUCCESS="INIT_LAYOUT_SUCCESS";t.UPDATE_DATA_PROPERTY="UPDATE_DATA_PROPERTY";t.UPDATE_DATA_FIELD_PROPERTY="UPDATE_DATA_FIELD_PROPERTY";t.UPDATE_MASTER_DATA="UPDATE_MASTER_DATA";t.CLEAR_MASTER_DATA="CLEAR_MASTER_DATA";t.UPDATE_DATA_VALID_STATUS="UPDATE_DATA_VALID_STATUS";t.UPDATE_DATA_SAVE_STATUS="UPDATE_DATA_SAVE_STATUS";t.CHANGE_INDICATOR_STATE="CHANGE_INDICATOR_STATE";t.ADD_NOTIFICATION="ADD_NOTIFICATION";t.SET_NOTIFICATION_PROGRESS="SET_NOTIFICATION_PROGRESS";t.DELETE_NOTIFICATION="DELETE_NOTIFICATION";t.CLEAR_NOTIFICATIONS="CLEAR_NOTIFICATIONS";t.LOGIN_SUCCESS="LOGIN_SUCCESS";t.LOGOUT_SUCCESS="LOGOUT_SUCCESS";t.ENABLE_TUTORIAL="ENABLE_TUTORIAL";t.INIT_FILTERS_PARAMETERS="INIT_FILTERS_PARAMETERS";t.DELETE_FILTERS_PARAMETERS="DELETE_FILTERS_PARAMETERS";t.UPDATE_FILTERS_PARAMETERS="UPDATE_FILTERS_PARAMETERS";t.DRAGGABLE_CARD="DRAGGABLE_CARD";t.NEW_PROCESS_SUCCESS="NEW_PROCESS_SUCCESS";t.GET_NOTIFICATIONS_SUCCESS="GET_NOTIFICATIONS_SUCCESS";t.NEW_NOTIFICATION="NEW_NOTIFICATION";t.REMOVE_NOTIFICATION="REMOVE_NOTIFICATION";t.REMOVE_ALL_NOTIFICATIONS="REMOVE_ALL_NOTIFICATIONS";t.READ_NOTIFICATION="READ_NOTIFICATION";t.READ_ALL_NOTIFICATIONS="READ_ALL_NOTIFICATIONS";t.OPEN_PLUGIN_MODAL="OPEN_PLUGIN_MODAL";t.CLOSE_PLUGIN_MODAL="CLOSE_PLUGIN_MODAL";t.OPEN_RAW_MODAL="OPEN_RAW_MODAL";t.UPDATE_RAW_MODAL="UPDATE_RAW_MODAL";t.SET_RAW_MODAL_TITLE="SET_RAW_MODAL_TITLE";t.SET_RAW_MODAL_DESCRIPTION="SET_RAW_MODAL_DESCRIPTION";t.CLOSE_RAW_MODAL="CLOSE_RAW_MODAL";t.TOGGLE_OVERLAY="TOGGLE_OVERLAY";t.OPEN_FILTER_BOX="OPEN_FILTER_BOX";t.CLOSE_FILTER_BOX="CLOSE_FILTER_BOX";t.SET_LATEST_NEW_DOCUMENT="SET_LATEST_NEW_DOCUMENT";t.ALLOW_SHORTCUT="ALLOW_SHORTCUT";t.DISABLE_SHORTCUT="DISABLE_SHORTCUT";t.PATCH_REQUEST="PATCH_REQUEST";t.PATCH_SUCCESS="PATCH_SUCCESS";t.PATCH_FAILURE="PATCH_FAILURE";t.PATCH_RESET="PATCH_RESET";t.ALLOW_OUTSIDE_CLICK="ALLOW_OUTSIDE_CLICK";t.DISABLE_OUTSIDE_CLICK="DISABLE_OUTSIDE_CLICK";t.INIT_KEYMAP="INIT_KEYMAP";t.UPDATE_KEYMAP="UPDATE_KEYMAP";t.INIT_HOTKEYS="INIT_HOTKEYS";t.UPDATE_HOTKEYS="UPDATE_HOTKEYS";t.SET_LANGUAGES="SET_LANGUAGES";t.SET_PRINTING_OPTIONS="SET_PRINTING_OPTIONS";t.RESET_PRINTING_OPTIONS="RESET_PRINTING_OPTIONS";var f,p;t.TOGGLE_PRINTING_OPTION="TOGGLE_PRINTING_OPTION",(f="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(f.register("NO_CONNECTION","NO_CONNECTION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("OPEN_MODAL","OPEN_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLOSE_MODAL","CLOSE_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLOSE_PROCESS_MODAL","CLOSE_PROCESS_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_MODAL","UPDATE_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("USER_SESSION_INIT","USER_SESSION_INIT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("USER_SESSION_UPDATE","USER_SESSION_UPDATE","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_PROCESS_STATE_SAVED","SET_PROCESS_STATE_SAVED","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_PROCESS_STATE_PENDING","SET_PROCESS_STATE_PENDING","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("INIT_WINDOW","INIT_WINDOW","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("INIT_DATA_SUCCESS","INIT_DATA_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("INIT_LAYOUT_SUCCESS","INIT_LAYOUT_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_DATA_PROPERTY","UPDATE_DATA_PROPERTY","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_DATA_FIELD_PROPERTY","UPDATE_DATA_FIELD_PROPERTY","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_MASTER_DATA","UPDATE_MASTER_DATA","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLEAR_MASTER_DATA","CLEAR_MASTER_DATA","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_DATA_VALID_STATUS","UPDATE_DATA_VALID_STATUS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_DATA_SAVE_STATUS","UPDATE_DATA_SAVE_STATUS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CHANGE_INDICATOR_STATE","CHANGE_INDICATOR_STATE","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("ADD_NOTIFICATION","ADD_NOTIFICATION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_NOTIFICATION_PROGRESS","SET_NOTIFICATION_PROGRESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("DELETE_NOTIFICATION","DELETE_NOTIFICATION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLEAR_NOTIFICATIONS","CLEAR_NOTIFICATIONS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("LOGIN_SUCCESS","LOGIN_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("LOGOUT_SUCCESS","LOGOUT_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("ENABLE_TUTORIAL","ENABLE_TUTORIAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("INIT_FILTERS_PARAMETERS","INIT_FILTERS_PARAMETERS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("DELETE_FILTERS_PARAMETERS","DELETE_FILTERS_PARAMETERS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_FILTERS_PARAMETERS","UPDATE_FILTERS_PARAMETERS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("DRAGGABLE_CARD","DRAGGABLE_CARD","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("NEW_PROCESS_SUCCESS","NEW_PROCESS_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("GET_NOTIFICATIONS_SUCCESS","GET_NOTIFICATIONS_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("NEW_NOTIFICATION","NEW_NOTIFICATION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("REMOVE_NOTIFICATION","REMOVE_NOTIFICATION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("REMOVE_ALL_NOTIFICATIONS","REMOVE_ALL_NOTIFICATIONS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("READ_NOTIFICATION","READ_NOTIFICATION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("READ_ALL_NOTIFICATIONS","READ_ALL_NOTIFICATIONS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("OPEN_PLUGIN_MODAL","OPEN_PLUGIN_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLOSE_PLUGIN_MODAL","CLOSE_PLUGIN_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("OPEN_RAW_MODAL","OPEN_RAW_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_RAW_MODAL","UPDATE_RAW_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_RAW_MODAL_TITLE","SET_RAW_MODAL_TITLE","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_RAW_MODAL_DESCRIPTION","SET_RAW_MODAL_DESCRIPTION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLOSE_RAW_MODAL","CLOSE_RAW_MODAL","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("TOGGLE_OVERLAY","TOGGLE_OVERLAY","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("OPEN_FILTER_BOX","OPEN_FILTER_BOX","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("CLOSE_FILTER_BOX","CLOSE_FILTER_BOX","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_LATEST_NEW_DOCUMENT","SET_LATEST_NEW_DOCUMENT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("ALLOW_SHORTCUT","ALLOW_SHORTCUT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("DISABLE_SHORTCUT","DISABLE_SHORTCUT","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("PATCH_REQUEST","PATCH_REQUEST","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("PATCH_SUCCESS","PATCH_SUCCESS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("PATCH_FAILURE","PATCH_FAILURE","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("PATCH_RESET","PATCH_RESET","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("ALLOW_OUTSIDE_CLICK","ALLOW_OUTSIDE_CLICK","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("DISABLE_OUTSIDE_CLICK","DISABLE_OUTSIDE_CLICK","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("INIT_KEYMAP","INIT_KEYMAP","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_KEYMAP","UPDATE_KEYMAP","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("INIT_HOTKEYS","INIT_HOTKEYS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("UPDATE_HOTKEYS","UPDATE_HOTKEYS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_LANGUAGES","SET_LANGUAGES","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("SET_PRINTING_OPTIONS","SET_PRINTING_OPTIONS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("RESET_PRINTING_OPTIONS","RESET_PRINTING_OPTIONS","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js"),f.register("TOGGLE_PRINTING_OPTION","TOGGLE_PRINTING_OPTION","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/constants/ActionTypes.js")),(p="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&p(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(111),o=n(1465),a=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]),a=this.distance(e[1],e[2]),i=this.distance(e[0],e[2]);if(a>=o&&a>=i?(n=e[0],t=e[1],r=e[2]):i>=a&&i>=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=a},function(e,t,n){"use strict";var r=n(219),o="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||o||Function("return this")();t.a=a},function(e,t,n){var r=n(81);e.exports=function(e){return Object(r(e))}},function(e,t,n){e.exports=n(1129)},function(e,t,n){"use strict";var r=n(14),o=n(693);function a(){o.call(this)}r(a,o),a.prototype.removeAllListeners=function(e){e?delete this._listeners[e]:this._listeners={}},a.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))}))},a.prototype.emit=function(){var e=arguments[0],t=this._listeners[e];if(t){for(var n=arguments.length,r=new Array(n-1),o=1;o=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";var r=n(45),o=n(220),a=Object(o.a)(Object.getPrototypeOf,Object),i=n(48),s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,d=u.call(Object);t.a=function(e){if(!Object(i.a)(e)||"[object Object]"!=Object(r.a)(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==d}},function(e,t,n){var r=n(15),o=n(59),a=n(58),i=n(97)("src"),s=n(942),l=(""+s).split("toString");n(30).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var u="function"==typeof n;u&&(a(n,"name")||o(n,"name",t)),e[t]!==n&&(u&&(a(n,i)||o(n,i,e[t]?""+e[t]:l.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[i]||s.call(this)}))},function(e,t,n){var r=n(7),o=n(16),a=n(81),i=/"/g,s=function(e,t,n,r){var o=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(i,""")+'"'),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){"use strict";var r=n(367),o=Object.prototype.toString;function a(e){return"[object Array]"===o.call(e)}function i(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function u(e){return"[object Function]"===o.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}function M(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,n=e.selected,r=e.keyProperty,o=void 0===r?"id":r;if(n&&"all"===n[0])return!0;if(n&&!n.length&&t)return!0;var a=[];return t&&t.length&&t.map((function(e){a=a.concat(K(e))})),t&&t.length&&n&&n[0]&&(0,u.getItemsByProperty)(a,o,n[0]).length};t.doesSelectionExist=x;var E,A,P=function(e,t){return(e?"+":"-")+t};function C(e,t){return e?t.map((function(t){return j(e,t)})):t}function j(e,t){var n=Object.values(t.fieldsByName).map((function(t){return I(e[t.field],t)})).reduce((function(e,t){return e[t.field]=t,e}),{});return Object.assign({},t,{fieldsByName:n})}function I(e,t){return e?(e.widgetType&&(t.widgetType=e.widgetType),t):t}function R(e,t){var n,r=w(e);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.id,i=o.includedDocuments;t[a]=o,i&&R(i,t)}}catch(e){r.e(e)}finally{r.f()}return t}function N(e,t,n){return e.map((function(e){var r=e.id,o=e.includedDocuments;o&&(e.includedDocuments=N(o,t,n));var a=t[r];return a?j(n,a):e}))}function Y(e,t){var n=[],r=t.reduce((function(e,t){return e[t]=!0,e}),{});return{rows:e=e.filter((function(e){return!!r[e.id]||(n.push(e.id),!1)})),removedRows:n}}function H(e){var t=e.toRows,n=e.fromRows,r=e.columnInfosByFieldName,o=void 0===r?{}:r,a=e.changedIds;return t=(0,u.deepUnfreeze)(t),n||a?n.length?{rows:N(t,R(n,{}),o),removedRows:[]}:Y(t,a):{rows:t,removedRows:[]}}function z(e){return e?"modal":"master"}function W(e){return F((0,u.nullToEmptyStrings)(e))}function q(e){return e.match(p.TIME_REGEX_TEST)?(0,i.default)(e,"hh:mm"):e}function B(e){return i.default.locale((0,_.getCurrentActiveLocale)()),e?i.default.isMoment(e)?e:(e=q(e),(0,i.default)(e)):""}function F(e){var t=["Date","ZonedDateTime","Time","Timestamp"];return Object.keys(e).reduce((function(n,r){var o=e[r],a=t.indexOf(o.widgetType)>-1;return n[r]=a&&o.value?g(g({},o),{},{value:B(o.value)}):o,n}),{})}function G(e){var t=[];return e&&e.map((function(e){t=t.concat(K(e))})),t}function U(e,t){var n=e.split(t);return n.map((function(e,t){return n.length>2&&e&&t<2&&e.length<2&&e>0&&e<10?"0"+e:e})).join(t)}function V(e){return X.apply(this,arguments)}function X(){return(X=y(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"!=typeof t||!t.includes(".")){e.next=2;break}return e.abrupt("return",U(t,"."));case 2:if("string"!=typeof t||!t.includes("/")){e.next=4;break}return e.abrupt("return",U(t,"/"));case 4:return e.abrupt("return",t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t||[],o=[];try{e=(0,u.deepUnfreeze)(e)}catch(e){}var a=g(g({},e),{},{indent:r});if(o=o.concat([a]),n&&(r[r.length-2]=!1),e.includedDocuments)for(var i=0;i>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?i(e)+t:t}function l(){return!0}function u(e,t,n){return(0===e&&!p(e)||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function c(e,t){return f(e,t,0)}function d(e,t){return f(e,t,t)}function f(e,t,n){return void 0===e?n:p(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function p(e){return e<0||0===e&&1/e==-1/0}function _(e){return Boolean(e&&e["@@__IMMUTABLE_ITERABLE__@@"])}function h(e){return Boolean(e&&e["@@__IMMUTABLE_KEYED__@@"])}function m(e){return Boolean(e&&e["@@__IMMUTABLE_INDEXED__@@"])}function y(e){return h(e)||m(e)}var b=function(e){return _(e)?e:Y(e)},g=function(e){function t(e){return h(e)?e:H(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(b),v=function(e){function t(e){return m(e)?e:z(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(b),w=function(e){function t(e){return _(e)&&!y(e)?e:W(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(b);b.Keyed=g,b.Indexed=v,b.Set=w;function M(e){return Boolean(e&&e["@@__IMMUTABLE_SEQ__@@"])}function k(e){return Boolean(e&&e["@@__IMMUTABLE_RECORD__@@"])}function T(e){return _(e)||k(e)}var L="@@__IMMUTABLE_ORDERED__@@";function O(e){return Boolean(e&&e[L])}var S="function"==typeof Symbol&&Symbol.iterator,D=S||"@@iterator",x=function(e){this.next=e};function E(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 A(){return{value:void 0,done:!0}}function P(e){return!!I(e)}function C(e){return e&&"function"==typeof e.next}function j(e){var t=I(e);return t&&t.call(e)}function I(e){var t=e&&(S&&e[S]||e["@@iterator"]);if("function"==typeof t)return t}x.prototype.toString=function(){return"[Iterator]"},x.KEYS=0,x.VALUES=1,x.ENTRIES=2,x.prototype.inspect=x.prototype.toSource=function(){return this.toString()},x.prototype[D]=function(){return this};var R=Object.prototype.hasOwnProperty;function N(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 Y=function(e){function t(e){return null==e?U():T(e)?e.toSeq():function(e){var t=K(e);if(t)return t;if("object"==typeof e)return new B(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 a=n[t?r-++o:o++];if(!1===e(a[1],a[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 x((function(){if(o===r)return{value:void 0,done:!0};var a=n[t?r-++o:o++];return E(e,a[0],a[1])}))}return this.__iteratorUncached(e,t)},t}(b),H=function(e){function t(e){return null==e?U().toKeyedSeq():_(e)?h(e)?e.toSeq():e.fromEntrySeq():k(e)?e.toSeq():V(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Y),z=function(e){function t(e){return null==e?U():_(e)?h(e)?e.entrySeq():e.toIndexedSeq():k(e)?e.toSeq().entrySeq():X(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}(Y),W=function(e){function t(e){return(_(e)&&!y(e)?e:z(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}(Y);Y.isSeq=M,Y.Keyed=H,Y.Set=W,Y.Indexed=z,Y.prototype["@@__IMMUTABLE_SEQ__@@"]=!0;var q=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[s(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,o=0;o!==r;){var a=t?r-++o:o++;if(!1===e(n[a],a,this))break}return o},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,o=0;return new x((function(){if(o===r)return{value:void 0,done:!0};var a=t?r-++o:o++;return E(e,a,n[a])}))},t}(z),B=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 R.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length,a=0;a!==o;){var i=r[t?o-++a:a++];if(!1===e(n[i],i,this))break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length,a=0;return new x((function(){if(a===o)return{value:void 0,done:!0};var i=r[t?o-++a:a++];return E(e,i,n[i])}))},t}(H);B.prototype[L]=!0;var F,G=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=j(this._collection),r=0;if(C(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=j(this._collection);if(!C(n))return new x(A);var r=0;return new x((function(){var t=n.next();return t.done?t:E(e,r++,t.value)}))},t}(z);function U(){return F||(F=new q([]))}function V(e){var t=Array.isArray(e)?new q(e):P(e)?new G(e):void 0;if(t)return t.fromEntrySeq();if("object"==typeof e)return new B(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function X(e){var t=K(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function K(e){return N(e)?new q(e):P(e)?new G(e):void 0}function J(e){return Boolean(e&&e["@@__IMMUTABLE_MAP__@@"])}function Q(e){return J(e)&&O(e)}function Z(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function $(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!!(Z(e)&&Z(t)&&e.equals(t))}var ee="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 te(e){return e>>>1&1073741824|3221225471&e}var ne=Object.prototype.valueOf;function re(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 te(t)}(e);case"string":return e.length>de?function(e){var t=_e[e];void 0===t&&(t=oe(e),pe===fe&&(pe=0,_e={}),pe++,_e[e]=t);return t}(e):oe(e);case"object":case"function":return null===e?1108378658:"function"==typeof e.hashCode?te(e.hashCode(e)):(e.valueOf!==ne&&"function"==typeof e.valueOf&&(e=e.valueOf(e)),function(e){var t;if(le&&void 0!==(t=se.get(e)))return t;if(void 0!==(t=e[ce]))return t;if(!ie){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ce]))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=++ue,1073741824&ue&&(ue=0);if(le)se.set(e,t);else{if(void 0!==ae&&!1===ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(ie)Object.defineProperty(e,ce,{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[ce]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ce]=t}}return t}(e));case"undefined":return 1108378659;default:if("function"==typeof e.toString)return oe(e.toString());throw new Error("Value type "+typeof e+" cannot be hashed.")}}function oe(e){for(var t=0,n=0;n=0&&(p.get=function(t,n){return(t=s(this,t))>=0&&tl)return{value:void 0,done:!0};var e=o.next();return r||1===t||e.done?e:E(t,s-1,0===t?void 0:e.value[1],e)}))},p}function Te(e,t,n,r){var o=je(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var s=!0,l=0;return e.__iterate((function(e,a,u){if(!s||!(s=t.call(n,e,a,u)))return l++,o(e,r?a:l-1,i)})),l},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var s=e.__iterator(2,a),l=!0,u=0;return new x((function(){var e,a,c;do{if((e=s.next()).done)return r||1===o?e:E(o,u++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],c=d[1],l&&(l=t.call(n,c,a,i))}while(l);return 2===o?e:E(o,a,c,e)}))},o}function Le(e,t){var n=h(e),r=[e].concat(t).map((function(e){return _(e)?n&&(e=g(e)):e=n?V(e):X(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var o=r[0];if(o===e||n&&h(o)||m(e)&&m(o))return o}var a=new q(r);return n?a=a.toKeyedSeq():m(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),a}function Oe(e,t,n){var r=je(e);return r.__iterateUncached=function(o,a){if(a)return this.cacheResult().__iterate(o,a);var i=0,s=!1;return function e(l,u){l.__iterate((function(a,l){return(!t||u0}function Ee(e,t,n,r){var o=je(e),a=new q(n).map((function(e){return e.size}));return o.size=r?a.max():a.min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=n.map((function(e){return e=b(e),j(o?e.reverse():e)})),i=0,s=!1;return new x((function(){var n;return s||(n=a.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}:E(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Ae(e,t){return e===t?e:M(e)?t:e.constructor(t)}function Pe(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ce(e){return h(e)?g:m(e)?v:w}function je(e){return Object.create((h(e)?H:m(e)?z:W).prototype)}function Ie(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Y.prototype.cacheResult.call(this)}function Re(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 at(this,t,e)}function at(e,t,n){for(var o=[],a=0;a0;)t[n]=arguments[n+1];return dt(e,t)}function st(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return dt(t,n,e)}function lt(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return ct(e,t)}function ut(e,t){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return ct(t,n,e)}function ct(e,t,n){return dt(e,t,function(e){return function t(n,r,o){return qe(n)&&qe(r)?dt(n,[r],t):e?e(n,r,o):r}}(n))}function dt(e,t,n){if(!qe(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(T(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,a=r?v:g,i=r?function(t){o===e&&(o=Ue(o)),o.push(t)}:function(t,r){var a=R.call(o,r),i=a&&n?n(o[r],t,r):t;a&&i===o[r]||(o===e&&(o=Ue(o)),o[r]=i)},s=0;s0;)t[n]=arguments[n+1];return ct(this,t,e)}function _t(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ke(this,e,Pt(),(function(e){return dt(e,t)}))}function ht(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];return Ke(this,e,Pt(),(function(e){return ct(e,t)}))}function mt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function yt(){return this.__ownerID?this:this.__ensureOwner(new a)}function bt(){return this.__ensureOwner()}function gt(){return this.__altered}me.prototype.cacheResult=he.prototype.cacheResult=ye.prototype.cacheResult=be.prototype.cacheResult=Ie;var vt=function(e){function t(t){return null==t?Pt():J(t)&&!O(t)?t:Pt().withMutations((function(n){var r=e(t);He(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 Pt().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 Ct(this,e,t)},t.prototype.remove=function(e){return Ct(this,e,r)},t.prototype.deleteAll=function(e){var t=b(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):Pt()},t.prototype.sort=function(e){return rn(Se(this,e))},t.prototype.sortBy=function(e,t){return rn(Se(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 Dt(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?At(this.size,this._root,e,this.__hash):0===this.size?Pt():(this.__ownerID=e,this.__altered=!1,this)},t}(g);vt.isMap=J;var wt=vt.prototype;wt["@@__IMMUTABLE_MAP__@@"]=!0,wt.delete=wt.remove,wt.removeAll=wt.deleteAll,wt.setIn=Qe,wt.removeIn=wt.deleteIn=$e,wt.update=tt,wt.updateIn=nt,wt.merge=wt.concat=rt,wt.mergeWith=ot,wt.mergeDeep=ft,wt.mergeDeepWith=pt,wt.mergeIn=_t,wt.mergeDeepIn=ht,wt.withMutations=mt,wt.wasAltered=gt,wt.asImmutable=bt,wt["@@transducer/init"]=wt.asMutable=yt,wt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},wt["@@transducer/result"]=function(e){return e.asImmutable()};var Mt=function(e,t){this.ownerID=e,this.entries=t};Mt.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a=Ht)return function(e,t,n,r){e||(e=new a);for(var o=new Ot(e,re(n),[n,r]),i=0;i>>e)),a=this.bitmap;return 0==(a&o)?r:this.nodes[Nt(a&o-1)].get(e+5,t,n,r)},kt.prototype.update=function(e,t,n,o,a,i,s){void 0===n&&(n=re(o));var l=31&(0===t?n:n>>>t),u=1<=zt)return function(e,t,n,r,o){for(var a=0,i=new Array(32),s=0;0!==n;s++,n>>>=1)i[s]=1&n?t[a++]:void 0;return i[r]=o,new Tt(e,a+1,i)}(e,p,c,l,h);if(d&&!h&&2===p.length&&It(p[1^f]))return p[1^f];if(d&&h&&1===p.length&&It(h))return h;var m=e&&e===this.ownerID,y=d?h?c:c^u:c|u,b=d?h?Yt(p,f,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e),a=this.nodes[o];return a?a.get(e+5,t,n,r):r},Tt.prototype.update=function(e,t,n,o,a,i,s){void 0===n&&(n=re(o));var l=31&(0===t?n:n>>>t),u=a===r,c=this.nodes,d=c[l];if(u&&!d)return this;var f=jt(d,e,t+5,n,o,a,i,s);if(f===d)return this;var p=this.count;if(d){if(!f&&--p>>n),s=31&(0===n?r:r>>>n),l=i===s?[Rt(e,t,n+5,r,o)]:(a=new Ot(t,r,o),i>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function Yt(e,t,n,r){var o=r?e:Ne(e);return o[t]=n,o}var Ht=8,zt=16,Wt=8;function qt(e){return Boolean(e&&e["@@__IMMUTABLE_LIST__@@"])}var Bt=function(e){function t(t){var n=Jt();if(null==t)return n;if(qt(t))return t;var r=e(t),o=r.size;return 0===o?n:(He(o),o>0&&o<32?Kt(0,o,5,null,new Gt(r.toArray())):n.withMutations((function(e){e.setSize(o),r.forEach((function(t,n){return e.set(n,t)}))})))}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("List [","]")},t.prototype.get=function(e,t){if((e=s(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?en(e,t).set(0,n):en(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a={value:!1};t>=tn(e._capacity)?r=Qt(r,e.__ownerID,0,t,n,a):o=Qt(o,e.__ownerID,e._level,t,n,a);if(!a.value)return e;if(e.__ownerID)return e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e;return Kt(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=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Jt()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){en(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new Gt([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var s=Zt(this,e);if(!a)for(var l=0;l>>t&31;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var i=Zt(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var Ut,Vt={};function Xt(e,t){var n=e._origin,r=e._capacity,o=tn(r),a=e._tail;return i(e._root,e._level,0);function i(e,s,l){return 0===s?function(e,i){var s=i===o?a&&a.array:e&&e.array,l=i>n?0:n-i,u=r-i;u>32&&(u=32);return function(){if(l===u)return Vt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,o,a){var s,l=e&&e.array,u=a>n?0:n-a>>o,c=1+(r-a>>o);c>32&&(c=32);return function(){for(;;){if(s){var e=s();if(e!==Vt)return e;s=null}if(u===c)return Vt;var n=t?--c:u++;s=i(l&&l[n],o-5,a+(n<>>n&31,u=e&&l0){var c=e&&e.array[l],d=Qt(c,t,n-5,r,a,i);return d===c?e:((s=Zt(e,t)).array[l]=d,s)}return u&&e.array[l]===a?e:(i&&o(i),s=Zt(e,t),void 0===a&&l===s.array.length-1?s.array.pop():s.array[l]=a,s)}function Zt(e,t){return t&&e&&t===e.ownerID?e:new Gt(e?e.array.slice():[],t)}function $t(e,t){if(t>=tn(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function en(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new a,o=e._origin,i=e._capacity,s=o+t,l=void 0===n?i:n<0?i+n:o+n;if(s===o&&l===i)return e;if(s>=l)return e.clear();for(var u=e._level,c=e._root,d=0;s+d<0;)c=new Gt(c&&c.array.length?[void 0,c]:[],r),d+=1<<(u+=5);d&&(s+=d,o+=d,l+=d,i+=d);for(var f=tn(i),p=tn(l);p>=1<f?new Gt([],r):_;if(_&&p>f&&s5;y-=5){var b=f>>>y&31;m=m.array[b]=Zt(m.array[b],r)}m.array[f>>>5&31]=_}if(l=p)s-=p,l-=p,u=5,c=null,h=h&&h.removeBefore(r,0,s);else if(s>o||p>>u&31;if(g!==p>>>u&31)break;g&&(d+=(1<o&&(c=c.removeBefore(r,u,s-d)),c&&p>>5<<5}var nn,rn=function(e){function t(e){return null==e?an():Q(e)?e:an().withMutations((function(t){var n=g(e);He(n.size),n.forEach((function(e,n){return t.set(n,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("OrderedMap {","}")},t.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):an()},t.prototype.set=function(e,t){return sn(this,e,t)},t.prototype.remove=function(e){return sn(this,e,r)},t.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?on(t,n,e,this.__hash):0===this.size?an():(this.__ownerID=e,this._map=t,this._list=n,this)},t}(vt);function on(e,t,n,r){var o=Object.create(rn.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function an(){return nn||(nn=on(Pt(),Jt()))}function sn(e,t,n){var o,a,i=e._map,s=e._list,l=i.get(t),u=void 0!==l;if(n===r){if(!u)return e;s.size>=32&&s.size>=2*i.size?(o=(a=s.filter((function(e,t){return void 0!==e&&l!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(o.__ownerID=a.__ownerID=e.__ownerID)):(o=i.remove(t),a=l===s.size-1?s.pop():s.set(l,void 0))}else if(u){if(n===s.get(l)[1])return e;o=i,a=s.set(l,[t,n])}else o=i.set(t,s.size),a=s.set(s.size,[t,n]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=a,e.__hash=void 0,e):on(o,a)}rn.isOrderedMap=Q,rn.prototype[L]=!0,rn.prototype.delete=rn.prototype.remove;function ln(e){return Boolean(e&&e["@@__IMMUTABLE_STACK__@@"])}var un=function(e){function t(e){return null==e?pn():ln(e)?e:pn().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=s(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):fn(t,n)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&ln(t))return t;He(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):fn(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):pn()},t.prototype.slice=function(t,n){if(u(t,n,this.size))return this;var r=c(t,this.size);if(d(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var o=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=o,this._head=a,this.__hash=void 0,this.__altered=!0,this):fn(o,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?fn(this.size,this._head,e,this.__hash):0===this.size?pn():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new q(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 q(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new x((function(){if(r){var t=r.value;return r=r.next,E(e,n++,t)}return{value:void 0,done:!0}}))},t}(v);un.isStack=ln;var cn,dn=un.prototype;function fn(e,t,n,r){var o=Object.create(dn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function pn(){return cn||(cn=fn(0))}dn["@@__IMMUTABLE_STACK__@@"]=!0,dn.shift=dn.pop,dn.unshift=dn.push,dn.unshiftAll=dn.pushAll,dn.withMutations=mt,dn.wasAltered=gt,dn.asImmutable=bt,dn["@@transducer/init"]=dn.asMutable=yt,dn["@@transducer/step"]=function(e,t){return e.unshift(t)},dn["@@transducer/result"]=function(e){return e.asImmutable()};function _n(e){return Boolean(e&&e["@@__IMMUTABLE_SET__@@"])}function hn(e){return _n(e)&&O(e)}function mn(e,t){if(e===t)return!0;if(!_(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||h(e)!==h(t)||m(e)!==m(t)||O(e)!==O(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!y(e);if(O(e)){var o=e.entries();return t.every((function(e,t){var r=o.next().value;return r&&$(r[1],e)&&(n||$(r[0],t))}))&&o.next().done}var a=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{a=!0;var i=e;e=t,t=i}var s=!0,l=t.__iterate((function(t,o){if(n?!e.has(t):a?!$(t,e.get(o,r)):!$(e.get(o,r),t))return s=!1,!1}));return s&&e.size===l}function yn(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 bn(e){if(!e||"object"!=typeof e)return e;if(!_(e)){if(!qe(e))return e;e=Y(e)}if(h(e)){var t={};return e.__iterate((function(e,n){t[n]=bn(e)})),t}var n=[];return e.__iterate((function(e){n.push(bn(e))})),n}var gn=function(e){function t(t){return null==t?Tn():_n(t)&&!O(t)?t:Tn().withMutations((function(n){var r=e(t);He(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(g(e).keySeq())},t.intersect=function(e){return(e=b(e).toArray()).length?wn.intersect.apply(t(e.pop()),e):Tn()},t.union=function(e){return(e=b(e).toArray()).length?wn.union.apply(t(e.pop()),e):Tn()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Mn(this,this._map.set(e,e))},t.prototype.remove=function(e){return Mn(this,this._map.remove(e))},t.prototype.clear=function(){return Mn(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=[],o=[];return this.forEach((function(a){var i=e.call(t,a,a,n);i!==a&&(r.push(a),o.push(i))})),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=ee(t<<13|t>>>-13,5),t=ee((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=te((t=ee(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Wn(re(e),re(t))|0}:function(e,t){r=r+Wn(re(e),re(t))|0}:t?function(e){r=31*r+re(e)|0}:function(e){r=r+re(e)|0}),r)}(this))}});var An=b.prototype;An["@@__IMMUTABLE_ITERABLE__@@"]=!0,An[D]=An.values,An.toJSON=An.toArray,An.__toStringMapper=Be,An.inspect=An.toSource=function(){return this.toString()},An.chain=An.flatMap,An.contains=An.includes,yn(g,{flip:function(){return Ae(this,ge(this))},mapEntries:function(e,t){var n=this,r=0;return Ae(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Ae(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Pn=g.prototype;Pn["@@__IMMUTABLE_KEYED__@@"]=!0,Pn[D]=An.entries,Pn.toJSON=En,Pn.__toStringMapper=function(e,t){return Be(t)+": "+Be(e)},yn(v,{toKeyedSeq:function(){return new he(this,!1)},filter:function(e,t){return Ae(this,Me(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 Ae(this,we(this,!1))},slice:function(e,t){return Ae(this,ke(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=c(e,e<0?this.count():this.size);var r=this.slice(0,e);return Ae(this,1===n?r:r.concat(Ne(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 Ae(this,Oe(this,e,!1))},get:function(e,t){return(e=s(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=s(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function Wn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Cn["@@__IMMUTABLE_INDEXED__@@"]=!0,Cn[L]=!0,yn(w,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),w.prototype.has=An.includes,w.prototype.contains=w.prototype.includes,yn(H,g.prototype),yn(z,v.prototype),yn(W,w.prototype);var qn=function(e){function t(e){return null==e?Un():hn(e)?e:Un().withMutations((function(t){var n=w(e);He(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(g(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(gn);qn.isOrderedSet=hn;var Bn,Fn=qn.prototype;function Gn(e,t){var n=Object.create(Fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Un(){return Bn||(Bn=Gn(an()))}Fn[L]=!0,Fn.zip=Cn.zip,Fn.zipWith=Cn.zipWith,Fn.__empty=Un,Fn.__make=Gn;var Vn=function(e,t){var n,r=function(a){var i=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),l=o._indices={};o._name=t,o._keys=s,o._defaultValues=e;for(var u=0;u2?[]:void 0,{"":e})}function nr(e,t){return h(t)?t.toMap():t.toList()}var rr="4.0.0-rc.11",or={version:rr,Collection:b,Iterable:b,Seq:Y,Map:vt,OrderedMap:rn,List:Bt,Stack:un,Set:gn,OrderedSet:qn,Record:Vn,Range:On,Repeat:er,is:$,fromJS:tr,hash:re,isImmutable:T,isCollection:_,isKeyed:h,isIndexed:m,isAssociative:y,isOrdered:O,isValueObject:Z,isSeq:M,isList:qt,isMap:J,isOrderedMap:Q,isStack:ln,isSet:_n,isOrderedSet:hn,isRecord:k,get:Ge,getIn:Sn,has:Fe,hasIn:xn,merge:it,mergeDeep:lt,mergeWith:st,mergeDeepWith:ut,remove:Ve,removeIn:Ze,set:Xe,setIn:Je,update:et,updateIn:Ke},ar=b;t.default=or},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.pathRequest=f,t.nodePathsRequest=p,t.elementPathRequest=_,t.queryPathsRequest=h,t.rootRequest=m,t.breadcrumbRequest=y,t.setBreadcrumb=b,t.updateBreadcrumb=g,t.getRootBreadcrumb=v,t.getWindowBreadcrumb=w,t.getElementBreadcrumb=M,t.flattenLastElem=k,t.flattenOneLine=T;var r,o,a=(r=n(43))&&r.__esModule?r:{default:r},i=n(19),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(654));function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},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)}(o="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&o(e);var c,d;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function f(e){return a.default.get(config.API_URL+"/menu/"+e+"/path/&inclusive=true")}function p(e,t){return a.default.get(config.API_URL+"/menu/node/"+e+"?depth=2"+(t?"&childrenLimit="+t:""))}function _(e,t){return a.default.get(config.API_URL+"/menu/elementPath?type="+e+"&elementId="+t+"&inclusive=true")}function h(e,t,n){return a.default.get(config.API_URL+"/menu/queryPaths?nameQuery="+e+(t?"&childrenLimit="+t:"")+(n?"&childrenInclusive=true":""))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return a.default.get(config.API_URL+"/menu/root?depth="+t+(e?"&childrenLimit="+e:"")+(n?"&favorites=true":""))}function y(e){return a.default.get(config.API_URL+"/menu/node/"+e+"/breadcrumbMenu")}function b(e){return{type:s.SET_BREADCRUMB,breadcrumb:e}}function g(e){return{type:s.UPDATE_BREADCRUMB,node:e}}function v(){return m(i.HOME_MENU_USER_MAX_ITEMS,10,!0).then((function(e){return{nodeId:"0",children:e.data.children}}))}function w(e){return function(t){_("window",e).then((function(e){return T(e.data)})).then((function(e){t(b(e.reverse()))})).catch((function(){t(b([]))}))}}function M(e,t){return function(n){_(e,t).then((function(e){return T(e.data)})).then((function(e){n(b(e.reverse()))})).catch((function(){n(b([]))}))}}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",n=[];return e[t]?(e[t].map((function(e){var t=k(e);"object"===u(t)?n=n.concat(t):n.push(k(e))})),n):[e]}function T(e){var t=[];return e.children&&T(e.children[0]).map((function(e){t.push(e)})),t.push({nodeId:e.nodeId,caption:e.caption,type:e.type}),t}(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(f,"pathRequest","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(p,"nodePathsRequest","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(_,"elementPathRequest","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(h,"queryPathsRequest","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(m,"rootRequest","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(y,"breadcrumbRequest","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(b,"setBreadcrumb","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(g,"updateBreadcrumb","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(v,"getRootBreadcrumb","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(w,"getWindowBreadcrumb","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(M,"getElementBreadcrumb","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(k,"flattenLastElem","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js"),c.register(T,"flattenOneLine","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/MenuActions.js")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.arraycopy=function(e,t,n,r,o){for(;o--;)n[r++]=e[t++]},e.currentTimeMillis=function(){return Date.now()},e}();t.default=r},function(module,exports,__webpack_require__){"use strict";(function(module){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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _react=_interopRequireWildcard(__webpack_require__(0)),_propTypes=_interopRequireDefault(__webpack_require__(1)),_classnames=_interopRequireDefault(__webpack_require__(10)),enterModule;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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;n0?r:n)(e)}},function(e,t,n){var r=n(143),o=n(96),a=n(60),i=n(87),s=n(58),l=n(333),u=Object.getOwnPropertyDescriptor;t.f=n(31)?u:function(e,t){if(e=a(e),t=i(t,!0),l)try{return u(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){var r=n(7),o=n(30),a=n(16);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",i)}},function(e,t,n){var r=n(69),o=n(142),a=n(42),i=n(25),s=n(349);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,_){for(var h,m,y=a(t),b=o(y),g=r(s,_,3),v=i(b.length),w=0,M=n?p(t,v):l?p(t,0):void 0;v>w;w++)if((f||w in b)&&(m=g(h=b[w],w,y),e))if(n)M[w]=m;else if(m)switch(e){case 3:return!0;case 5:return h;case 6:return w;case 2:M.push(h)}else if(c)return!1;return d?-1:u||c?c:M}}},function(e,t,n){"use strict";n.r(t);var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=window.device,a={},i=[];window.device=a;var s=window.document.documentElement,l=window.navigator.userAgent.toLowerCase(),u=["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","pov_tv","hbbtv","ce-html"];function c(e,t){return-1!==e.indexOf(t)}function d(e){return c(l,e)}function f(e){return s.className.match(new RegExp(e,"i"))}function p(e){var t=null;f(e)||(t=s.className.replace(/^\s+|\s+$/g,""),s.className=t+" "+e)}function _(e){f(e)&&(s.className=s.className.replace(" "+e,""))}function h(){a.landscape()?(_("portrait"),p("landscape"),m("landscape")):(_("landscape"),p("portrait"),m("portrait")),g()}function m(e){for(var t in i)i[t](e)}a.macos=function(){return d("mac")},a.ios=function(){return a.iphone()||a.ipod()||a.ipad()},a.iphone=function(){return!a.windows()&&d("iphone")},a.ipod=function(){return d("ipod")},a.ipad=function(){var e="MacIntel"===navigator.platform&&navigator.maxTouchPoints>1;return d("ipad")||e},a.android=function(){return!a.windows()&&d("android")},a.androidPhone=function(){return a.android()&&d("mobile")},a.androidTablet=function(){return a.android()&&!d("mobile")},a.blackberry=function(){return d("blackberry")||d("bb10")||d("rim")},a.blackberryPhone=function(){return a.blackberry()&&!d("tablet")},a.blackberryTablet=function(){return a.blackberry()&&d("tablet")},a.windows=function(){return d("windows")},a.windowsPhone=function(){return a.windows()&&d("phone")},a.windowsTablet=function(){return a.windows()&&d("touch")&&!a.windowsPhone()},a.fxos=function(){return(d("(mobile")||d("(tablet"))&&d(" rv:")},a.fxosPhone=function(){return a.fxos()&&d("mobile")},a.fxosTablet=function(){return a.fxos()&&d("tablet")},a.meego=function(){return d("meego")},a.cordova=function(){return window.cordova&&"file:"===location.protocol},a.nodeWebkit=function(){return"object"===r(window.process)},a.mobile=function(){return a.androidPhone()||a.iphone()||a.ipod()||a.windowsPhone()||a.blackberryPhone()||a.fxosPhone()||a.meego()},a.tablet=function(){return a.ipad()||a.androidTablet()||a.blackberryTablet()||a.windowsTablet()||a.fxosTablet()},a.desktop=function(){return!a.tablet()&&!a.mobile()},a.television=function(){for(var e=0;e1},a.landscape=function(){return screen.orientation&&Object.prototype.hasOwnProperty.call(window,"onorientationchange")?c(screen.orientation.type,"landscape"):a.ios()&&Object.prototype.hasOwnProperty.call(window,"orientation")?90===Math.abs(window.orientation):window.innerHeight/window.innerWidth<1},a.noConflict=function(){return window.device=o,this},a.ios()?a.ipad()?p("ios ipad tablet"):a.iphone()?p("ios iphone mobile"):a.ipod()&&p("ios ipod mobile"):a.macos()?p("macos desktop"):a.android()?a.androidTablet()?p("android tablet"):p("android mobile"):a.blackberry()?a.blackberryTablet()?p("blackberry tablet"):p("blackberry mobile"):a.windows()?a.windowsTablet()?p("windows tablet"):a.windowsPhone()?p("windows mobile"):p("windows desktop"):a.fxos()?a.fxosTablet()?p("fxos tablet"):p("fxos mobile"):a.meego()?p("meego mobile"):a.nodeWebkit()?p("node-webkit"):a.television()?p("television"):a.desktop()&&p("desktop"),a.cordova()&&p("cordova"),a.onChangeOrientation=function(e){"function"==typeof e&&i.push(e)};var y="resize";function b(e){for(var t=0;t=0&&e-1?"td-lg":["Text","Address","ProductAttributes"].indexOf(t)>-1?"td-md":"td-sm";switch(n){case"S":return"td-sm";case"M":return"td-md";case"L":return"td-lg";case"XL":return"td-xl";case"XXL":return"td-xxl"}}function T(e){switch(e){case"LU":return"meta-icon-pallete";case"TU":return"meta-icon-package";case"CU":return"meta-icon-product";case"PP_Order_Receive":return"meta-icon-receipt";case"PP_Order_Issue":return"meta-icon-issue";case"PP_Order_Issue_Service":return"meta-icon-issue-service";case"M_Picking_Slot":return"meta-icon-beschaffung"}}function L(e){var t=e.fieldValue,n=e.fieldType,r=(0,c.getCurrentActiveLocale)(),o=r||null;return t?!l.default.isMoment(t)&&t.match(u.TIME_REGEX_TEST)?l.default.utc(l.default.duration(t).asMilliseconds()).locale(o).format(u.TIME_FORMAT):(0,l.default)(t).locale(o).format(M(n)):""}function O(e,t,n){if(e){var r=(0,s.default)(parseFloat(e)),o=w(t),a=o?r.format(o):r.format();if(n&&null!=parseFloat(a)){var i=/,/g;return i.test(a),i.lastIndex?a:"".concat(a).replace(".",",")}return a}return""}function S(e,t){switch(e){case"Color":var n={backgroundColor:t};return o.default.createElement("span",{className:"widget-color-display",style:n});default:return t}}function D(e){var t=e.fieldValue,n=e.fieldType,r=void 0===n?"Text":n,a=e.precision,i=void 0===a?null:a,s=e.isGerman;if(null===t)return"";switch(f(t)){case"object":return Array.isArray(t)?t.map((function(e){return D(e)})).join(" - "):u.DATE_FIELD_TYPES.includes(r)||u.TIME_FIELD_TYPES.includes(r)?L({fieldValue:t,fieldType:r}):t.caption;case"boolean":return t?o.default.createElement("i",{className:"meta-icon-checkbox-1"}):o.default.createElement("i",{className:"meta-icon-checkbox"});case"string":return u.DATE_FIELD_TYPES.includes(r)||u.TIME_FIELD_TYPES.includes(r)?L({fieldValue:t,fieldType:r}):u.AMOUNT_FIELD_TYPES.includes(r)?O(t,i,s):u.SPECIAL_FIELD_TYPES.includes(r)?S(r,t):t;default:return t}}function x(e){e.preventDefault();var t=e.target,n=t.value||t.textContent;e.clipboardData.setData("text/plain",n)}function E(e){var t=e.windowId,n=e.rowIds;n&&n.forEach((function(e){window.open("/window/".concat(t,"/").concat(e),"_blank")}))}function A(e){if(!e.restrictToMediaTypes||0===e.restrictToMediaTypes.length)return!0;var t=a.default.type,n="tablet";return"mobile"===t?n="phone":"desktop"===t&&(n="screen"),-1!==e.restrictToMediaTypes.indexOf(n)}function P(e,t){var n=e.fields?e.fields[0].field:e.field;return t&&t[n]&&t[n].viewEditorRenderMode===u.VIEW_EDITOR_RENDER_MODES_ON_DEMAND||e.viewEditorRenderMode===u.VIEW_EDITOR_RENDER_MODES_ON_DEMAND}function C(e,t){var n=e.fields[0].field,r=t&&t[n]&&t[n].viewEditorRenderMode===u.VIEW_EDITOR_RENDER_MODES_ALWAYS||e.viewEditorRenderMode===u.VIEW_EDITOR_RENDER_MODES_ALWAYS;return r="Color"!==e.widgetType&&r}function j(e,t){return e.fields.map((function(e){return t[e.field]}))}function I(e,t,n,r){var o=t.fields.reduce((function(o,a){if(e){var i=e[a.field]||null;(i=n||r&&"object"===f(i)?_(_({},i),{},{widgetType:t.widgetType,displayed:!0,readonly:!1}):_(_({},i),{},{readonly:!0}))&&o.push(i)}return o}),[]);return o.length?o:[{}]}function R(e){var t=e.widgetData,n=e.item,r=e.isEdited,o=e.isGerman;return r?null:D({fieldValue:t[0].value,fieldType:n.widgetType,precision:t[0].precision,isGerman:o})}function N(e){var t=e.widgetData,n=e.tdValue;return t[0].value&&t[0].value.description?t[0].value.description:n}function Y(e){var t=e.item,n=e.description;return"YesNo"===t.widgetType||"Switch"===t.widgetType||"Color"===t.widgetType?"":n}function H(e){var t=e.item;return!!u.DATE_FIELD_FORMATS[t.widgetType]&&M(t.widgetType)}function z(e){var t=[];return e&&e.map((function(e){t=t.concat([e.id]),e.includedDocuments&&(t=t.concat(z(e.includedDocuments)))})),t}function W(e,t){var n=null,r=e.fields&&"Lookup"===e.widgetType?e.fields.find((function(e,r){return!("Tooltip"!==e.type||!(n=t[r])||!n.value)&&e})):null;return{tooltipData:n,tooltipWidget:r}}t.tableRowPropTypes=v,(b="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(b.register(m,"containerPropTypes","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(y,"componentPropTypes","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(v,"tableRowPropTypes","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(w,"getAmountFormatByPrecision","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(M,"getDateFormat","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(k,"getSizeClass","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(T,"getIconClassName","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(L,"createDate","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(O,"createAmount","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(S,"createSpecialField","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(D,"fieldValueToString","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(x,"handleCopy","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(E,"handleOpenNewTab","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(A,"shouldRenderColumn","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(P,"isEditableOnDemand","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(C,"isCellEditable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(j,"prepareWidgetData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(I,"getCellWidgetData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(R,"getTdValue","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(N,"getDescription","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(Y,"getTdTitle","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(H,"checkIfDateField","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(z,"nestedSelect","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js"),b.register(W,"getTooltipWidget","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/utils/tableHelpers.js")),(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&g(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ShortcutProvider",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"Shortcut",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"generateHotkeys",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"TableFilterContextShortcuts",{enumerable:!0,get:function(){return i.default}});var r=s(n(1207)),o=s(n(1208)),a=s(n(1209)),i=s(n(1210));function s(e){return e&&e.__esModule?e:{default:e}}"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(133),o=n(66),a=n(293),i=n(93),s=n(26),l=function(){function e(e,t,n,r){if(this.width=e,this.height=t,this.rowSize=n,this.bits=r,null==t&&(t=e),this.height=t,e<1||t<1)throw new s.default("Both dimensions must be greater than 0");null==n&&(n=Math.floor((e+31)/32)),this.rowSize=n,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),a=0;ai){if(-1===l)l=a-i;else if(a-i!==l)throw new s.default("row lengths do not match");i=a,u++}c++}else if(t.substring(c,c+n.length)===n)c+=n.length,o[a]=!0,a++;else{if(t.substring(c,c+r.length)!==r)throw new s.default("illegal character encountered: "+t.substring(c));c+=r.length,o[a]=!1,a++}if(a>i){if(-1===l)l=a-i;else if(a-i!==l)throw new s.default("row lengths do not match");u++}for(var d=new e(l,u),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,a=0,i=this.height;athis.height||o>this.width)throw new s.default("The region must fit inside the matrix");for(var i=this.rowSize,l=this.bits,u=t;us&&(s=l),32*ui){for(d=31;c>>>d==0;)d--;32*u+d>i&&(i=32*u+d)}}}return i=0&&0===t[n];)n--;if(n<0)return null;for(var r=Math.floor(n/e),o=32*Math.floor(n%e),a=t[n],i=31;a>>>i==0;)i--;return o+=i,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&&a.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)+a.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 i.default;r.append(n);for(var o=0,a=this.height;o0){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=a},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){"use strict";if(n(31)){var r=n(98),o=n(15),a=n(16),i=n(7),s=n(181),l=n(248),u=n(69),c=n(122),d=n(96),f=n(59),p=n(123),_=n(71),h=n(25),m=n(360),y=n(100),b=n(87),g=n(58),v=n(144),w=n(18),M=n(42),k=n(240),T=n(101),L=n(103),O=n(102).f,S=n(242),D=n(97),x=n(24),E=n(74),A=n(171),P=n(145),C=n(244),j=n(120),I=n(174),R=n(121),N=n(243),Y=n(351),H=n(32),z=n(72),W=H.f,q=z.f,B=o.RangeError,F=o.TypeError,G=o.Uint8Array,U=Array.prototype,V=l.ArrayBuffer,X=l.DataView,K=E(0),J=E(2),Q=E(3),Z=E(4),$=E(5),ee=E(6),te=A(!0),ne=A(!1),re=C.values,oe=C.keys,ae=C.entries,ie=U.lastIndexOf,se=U.reduce,le=U.reduceRight,ue=U.join,ce=U.sort,de=U.slice,fe=U.toString,pe=U.toLocaleString,_e=x("iterator"),he=x("toStringTag"),me=D("typed_constructor"),ye=D("def_constructor"),be=s.CONSTR,ge=s.TYPED,ve=s.VIEW,we=E(1,(function(e,t){return Oe(P(e,e[ye]),t)})),Me=a((function(){return 1===new G(new Uint16Array([1]).buffer)[0]})),ke=!!G&&!!G.prototype.set&&a((function(){new G(1).set({})})),Te=function(e,t){var n=_(e);if(n<0||n%t)throw B("Wrong offset!");return n},Le=function(e){if(w(e)&&ge in e)return e;throw F(e+" is not a typed array!")},Oe=function(e,t){if(!w(e)||!(me in e))throw F("It is not a typed array constructor!");return new e(t)},Se=function(e,t){return De(P(e,e[ye]),t)},De=function(e,t){for(var n=0,r=t.length,o=Oe(e,r);r>n;)o[n]=t[n++];return o},xe=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},Ee=function(e){var t,n,r,o,a,i,s=M(e),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,f=S(s);if(null!=f&&!k(f)){for(i=f.call(s),r=[],t=0;!(a=i.next()).done;t++)r.push(a.value);s=r}for(d&&l>2&&(c=u(c,arguments[2],2)),t=0,n=h(s.length),o=Oe(this,n);n>t;t++)o[t]=d?c(s[t],t):s[t];return o},Ae=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Pe=!!G&&a((function(){pe.call(new G(1))})),Ce=function(){return pe.apply(Pe?de.call(Le(this)):Le(this),arguments)},je={copyWithin:function(e,t){return Y.call(Le(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Le(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Le(this),arguments)},filter:function(e){return Se(this,J(Le(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Le(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Le(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Le(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Le(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Le(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Le(this),arguments)},lastIndexOf:function(e){return ie.apply(Le(this),arguments)},map:function(e){return we(Le(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Le(this),arguments)},reduceRight:function(e){return le.apply(Le(this),arguments)},reverse:function(){for(var e,t=Le(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(Le(this),e)},subarray:function(e,t){var n=Le(this),r=n.length,o=y(e,r);return new(P(n,n[ye]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,h((void 0===t?r:y(t,r))-o))}},Ie=function(e,t){return Se(this,de.call(Le(this),e,t))},Re=function(e){Le(this);var t=Te(arguments[1],1),n=this.length,r=M(e),o=h(r.length),a=0;if(o+t>n)throw B("Wrong length!");for(;a255?255:255&r),o.v[p](n*t+o.o,r,Me)}(this,n,e)},enumerable:!0})};g?(_=n((function(e,n,r,o){c(e,_,u,"_d");var a,i,s,l,d=0,p=0;if(w(n)){if(!(n instanceof V||"ArrayBuffer"==(l=v(n))||"SharedArrayBuffer"==l))return ge in n?De(_,n):Ee.call(_,n);a=n,p=Te(r,t);var y=n.byteLength;if(void 0===o){if(y%t)throw B("Wrong length!");if((i=y-p)<0)throw B("Wrong length!")}else if((i=h(o)*t)+p>y)throw B("Wrong length!");s=i/t}else s=m(n),a=new V(i=s*t);for(f(e,"_d",{b:a,o:p,l:i,e:s,v:new X(a)});d1)))/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),i=c((a=(e%864e5+864e5)%864e5)/36e5)%24,s=c(a/6e4)%60,l=c(a/1e3)%60,u=a%1e3}}return(k=function(e){return e>-1/0&&e<1/0?(t(e),e=(n<=0||n>=1e4?(n<0?"-":"+")+M(6,n<0?-n:n):M(4,n))+"-"+M(2,r+1)+"-"+M(2,o)+"T"+M(2,i)+":"+M(2,s)+":"+M(2,l)+"."+M(3,u)+"Z",n=r=o=i=s=l=u=null):e=null,e})(e)};if(b("json-stringify")&&!b("date-serialization")){function T(e){return k(this)}var L=t.stringify;t.stringify=function(e,t,n){var r=a.prototype.toJSON;a.prototype.toJSON=T;var o=L(e,t,n);return a.prototype.toJSON=r,o}}else{var O=function(e){var t=e.charCodeAt(0),n=w[t];return n||"\\u00"+M(2,t.toString(16))},S=/[\x00-\x1f\x22\x5c]/g,D=function(e){return S.lastIndex=0,'"'+(S.test(e)?e.replace(S,O):e)+'"'},x=function(e,t,n,r,o,i,s){var l,c,d,f,p,h,y,b,g;if(m((function(){l=t[e]})),"object"==typeof l&&l&&(l.getUTCFullYear&&"[object Date]"==_.call(l)&&l.toJSON===a.prototype.toJSON?l=k(l):"function"==typeof l.toJSON&&(l=l.toJSON(e))),n&&(l=n.call(t,e,l)),null==l)return void 0===l?l:"null";switch("object"==(c=typeof l)&&(d=_.call(l)),d||c){case"boolean":case"[object Boolean]":return""+l;case"number":case"[object Number]":return l>-1/0&&l<1/0?""+l:"null";case"string":case"[object String]":return D(""+l)}if("object"==typeof l){for(y=s.length;y--;)if(s[y]===l)throw u();if(s.push(l),f=[],b=i,i+=o,"[object Array]"==d){for(h=0,y=l.length;h0)for(n>10&&(n=10),r="";r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||j();e+=P("0x"+a.slice(t,E));break;default:j()}else{if(34==o)break;for(o=a.charCodeAt(E),t=E;o>=32&&92!=o&&34!=o;)o=a.charCodeAt(++E);e+=a.slice(t,E)}if(34==a.charCodeAt(E))return E++,e;j();default:if(t=E,45==o&&(r=!0,o=a.charCodeAt(++E)),o>=48&&o<=57){for(48==o&&((o=a.charCodeAt(E+1))>=48&&o<=57)&&j(),r=!1;E=48&&o<=57);E++);if(46==a.charCodeAt(E)){for(n=++E;n57);n++);n==E&&j(),E=n}if(101==(o=a.charCodeAt(E))||69==o){for(43!=(o=a.charCodeAt(++E))&&45!=o||E++,n=E;n57);n++);n==E&&j(),E=n}return+a.slice(t,E)}r&&j();var s=a.slice(E,E+4);if("true"==s)return E+=4,!0;if("fals"==s&&101==a.charCodeAt(E+4))return E+=5,!1;if("null"==s)return E+=4,null;j()}return"$"},R=function(e){var t,n;if("$"==e&&j(),"string"==typeof e){if("@"==(g?e.charAt(0):e[0]))return e.slice(1);if("["==e){for(t=[];"]"!=(e=I());)n?","==e?"]"==(e=I())&&j():j():n=!0,","==e&&j(),t.push(R(e));return t}if("{"==e){for(t={};"}"!=(e=I());)n?","==e?"}"==(e=I())&&j():j():n=!0,","!=e&&"string"==typeof e&&"@"==(g?e.charAt(0):e[0])&&":"==I()||j(),t[e.slice(1)]=R(I());return t}j()}return e},N=function(e,t,n){var r=Y(e,t,n);void 0===r?delete e[t]:e[t]=r},Y=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(_,v,o);else v(o,(function(e){N(o,e,n)}));return n.call(e,t,o)};t.parse=function(e,t){var n,r;return E=0,A=""+e,n=R(I()),"$"!=I()&&j(),E=A=null,t&&"[object Function]"==_.call(t)?Y(((r={})[""]=n,r),"",t):n}}}return t.runInContext=c,t}if(!u||u.global!==u&&u.window!==u&&u.self!==u||(l=u),s&&!a)c(l,s);else{var d=l.JSON,f=l.JSON3,p=!1,_=c(l,l.JSON3={noConflict:function(){return p||(p=!0,l.JSON=d,l.JSON3=f,d=f=null),_}});l.JSON={parse:_.parse,stringify:_.stringify}}a&&(void 0===(o=function(){return _}.call(t,n,t,e))||(e.exports=o))}).call(this)}).call(this,n(3)(e),n(12))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=s(n(0)),a=n(326),i=s(n(1));function s(e){return e&&e.__esModule?e:{default:e}}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var l,u,c=function(e){var t=e.loaderType;return o.default.createElement("div",{className:t?"d-flex justify-content-center":"order-list-loader text-center"},!t&&o.default.createElement(a.CSSTransition,{className:"rotate",timeout:{enter:1e3,exit:1e3}},o.default.createElement("div",null,o.default.createElement("div",{className:"rotate icon-rotate"},o.default.createElement("i",{className:"meta-icon-settings"})))),t&&"bootstrap"===t&&o.default.createElement("div",{className:"spinner-border text-success",role:"status"},o.default.createElement("span",{className:"sr-only"},"Loading...")))},d=c,f=d;t.default=f,c.propTypes={loaderType:i.default.string},c.defaultProps={loaderType:null},(l="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(l.register(c,"Loader","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/components/app/Loader.js"),l.register(d,"default","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/components/app/Loader.js")),(u="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&u(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(133),o=n(46),a=n(112),i=n(40),s=n(22),l=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),l=r.getResultMetadata(),u=270;null!==l&&!0===l.get(a.default.ORIENTATION)&&(u+=l.get(a.default.ORIENTATION)%360),r.putMetadata(a.default.ORIENTATION,u);var c=r.getResultPoints();if(null!==c)for(var d=n.getHeight(),f=0;f>(d?8:5));n=d?u:15;for(var p=Math.trunc(u/2),_=0;_=u)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(a.default.ORIENTATION,180);var s=r.getResultPoints();null!==s&&(s[0]=new i.default(l-s[0].getX()-1,s[0].getY()),s[1]=new i.default(l-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=a)throw new s.default;for(var i=!e.get(t),l=0,u=t;u0&&o>=0;)t.get(--n)!==a&&(o--,a=!a);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,a=0,i=0;id?c-d:d-c;if(f>n)return Number.POSITIVE_INFINITY;l+=f}return l/o},e}();t.default=l},function(e,t,n){"use strict";var r=n(41).a.Symbol;t.a=r},function(e,t,n){var r=n(18);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){var r=n(97)("meta"),o=n(18),a=n(58),i=n(32).f,s=0,l=Object.isExtensible||function(){return!0},u=!n(16)((function(){return l(Object.preventExtensions({}))})),c=function(e){i(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(!a(e,r)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!a(e,r)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return u&&d.NEED&&l(e)&&!a(e,r)&&c(e),e}}},function(e,t,n){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;var r,o=n(107);(r=o)&&r.__esModule;t.addQueryStringValueToPath=function(e,t,n){var r=a(e),o=r.pathname,s=r.search,l=r.hash;return i({pathname:o,search:s+(-1===s.indexOf("?")?"?":"&")+t+"="+n,hash:l})},t.stripQueryStringValueFromPath=function(e,t){var n=a(e),r=n.pathname,o=n.search,s=n.hash;return i({pathname:r,search:o.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),(function(e,t,n){return"?"===t?t:n})),hash:s})},t.getQueryStringValueFromPath=function(e,t){var n=a(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var a=t.parsePath=function(e){var t,n,r=null==(n=(t=e).match(/^(https?:)?\/\/[^\/]*/))?t:t.substring(n[0].length),o="",a="",i=r.indexOf("#");-1!==i&&(a=r.substring(i),r=r.substring(0,i));var s=r.indexOf("?");return-1!==s&&(o=r.substring(s),r=r.substring(0,s)),""===r&&(r="/"),{pathname:r,search:o,hash:a}},i=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,a=(t||"")+n;return r&&"?"!==r&&(a+=r),o&&(a+=o),a}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.findViewByViewId=g,t.default=v,t.getView=t.initialState=t.viewState=void 0;var r,o=n(21),a=n(148),i=n(39);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:d,t=arguments.length>1?arguments[1]:void 0;if(!(t.payload&&t.payload.id||t.type===i.DELETE_VIEW))return e;switch(t.type){case i.FETCH_LAYOUT_PENDING:var n=t.payload,r=n.id,o=n.isModal,a=b(o),s=y(e,r,o);return l(l({},e),{},u({},"".concat(a),l(l({},e["".concat(a)]),{},u({},"".concat(r),l(l({},s),{},{layoutPending:!0,layoutNotFound:!1})))));case i.FETCH_LAYOUT_SUCCESS:var f=t.payload,p=f.id,_=f.layout,h=f.isModal,m=b(h),g=y(e,p,h);return l(l({},e),{},u({},"".concat(m),l(l({},e["".concat(m)]),{},u({},"".concat(p),l(l({},g),{},{layoutPending:!1,layoutError:!1,layout:l(l({},g.layout),_)})))));case i.FETCH_LAYOUT_ERROR:var v=t.payload,w=v.id,M=v.error,k=v.isModal,T=b(k),L=y(e,w,k);return l(l({},e),{},u({},"".concat(T),l(l({},e.views),{},u({},"".concat(w),l(l({},L),{},{layoutPending:!1,layoutError:M,layoutNotFound:!0})))));case i.FETCH_DOCUMENT_PENDING:var O=t.payload,S=O.id,D=O.isModal,x=O.websocketRefresh,E=b(D),A=y(e,S,D),P=!x;return l(l({},e),{},u({},"".concat(E),l(l({},e["".concat(E)]),{},u({},"".concat(S),l(l({},A),{},{notFound:!1,pending:P,error:null})))));case i.FETCH_DOCUMENT_SUCCESS:var C=t.payload,j=C.id,I=C.data,R=I.firstRow,N=I.headerProperties,Y=I.pageLength,H=I.size,z=I.type,W=I.viewId,q=I.windowId,B=I.orderBy,F=I.queryLimit,G=I.queryLimitHit,U=I.staticFilters,V=C.isModal,X=b(V),K=H>1?R/Y+1:1,J=y(e,j,V),Q=l(l({},J),{},{firstRow:R,headerProperties:N,pageLength:Y,type:z,viewId:W,windowId:q,orderBy:B,page:K,staticFilters:U,queryLimit:F,queryLimitHit:G,pending:!1});return l(l({},e),{},u({},"".concat(X),l(l({},e["".concat(X)]),{},u({},"".concat(j),l({},Q)))));case i.UPDATE_VIEW_DATA_ERROR:case i.FETCH_DOCUMENT_ERROR:var Z=t.payload,$=Z.id,ee=Z.error,te=Z.isModal,ne=b(te),re=y(e,$,te);return l(l({},e),{},u({},"".concat(ne),l(l({},e["".concat(ne)]),{},u({},"".concat($),l(l({},re),{},{pending:!1,notFound:!0,error:ee})))));case i.CREATE_VIEW:var oe=t.payload,ae=oe.id,ie=oe.isModal,se=b(ie),le=y(e,ae,ie);return l(l({},e),{},u({},"".concat(se),l(l({},e["".concat(se)]),{},u({},"".concat(ae),l(l({},le),{},{pending:!0,error:null})))));case i.CREATE_VIEW_SUCCESS:var ue=t.payload,ce=ue.id,de=ue.viewId,fe=ue.isModal,pe=b(fe),_e=y(e,ce,fe);return l(l({},e),{},u({},"".concat(pe),l(l({},e["".concat(pe)]),{},u({},"".concat(ce),l(l({},_e),{},{viewId:de,notFound:!1})))));case i.CREATE_VIEW_ERROR:var he=t.payload,me=he.id,ye=he.error,be=he.isModal,ge=b(be),ve=y(e,me,be);return l(l({},e),{},u({},"".concat(ge),l(l({},e["".concat(ge)]),{},u({},"".concat(me),l(l({},ve),{},{pending:!1,notFound:!0,error:ye})))));case i.UPDATE_VIEW_DATA_SUCCESS:var we=t.payload,Me=we.id,ke=we.data,Te=we.isModal,Le=b(Te),Oe=y(e,Me,Te),Se=l(l(l({},Oe),ke),{},{pending:!1,error:null,notFound:!1});return l(l({},e),{},u({},"".concat(Le),l(l({},e["".concat(Le)]),{},u({},"".concat(Me),l({},Se)))));case i.FILTER_VIEW_PENDING:var De=t.payload,xe=De.id,Ee=De.isModal,Ae=b(Ee),Pe=y(e,xe,Ee);return l(l({},e),{},u({},"".concat(Ae),l(l({},e["".concat(Ae)]),{},u({},"".concat(xe),l(l({},Pe),{},{notFound:!1,pending:!0,error:null})))));case i.FILTER_VIEW_SUCCESS:var Ce=t.payload,je=Ce.id,Ie=Ce.data,Re=Ie.filters,Ne=Ie.viewId,Ye=Ie.size,He=Ce.isModal,ze=b(He),We=y(e,je,He);return l(l({},e),{},u({},"".concat(ze),l(l({},e["".concat(ze)]),{},u({},"".concat(je),l(l({},We),{},{filters:Re,viewId:Ne,size:Ye,page:1})))));case i.FILTER_VIEW_ERROR:var qe=t.payload,Be=qe.id,Fe=qe.error,Ge=qe.isModal,Ue=b(Ge),Ve=y(e,Be,Ge);return l(l({},e),{},u({},"".concat(Ue),l(l({},e["".concat(Ue)]),{},u({},"".concat(Be),l(l({},Ve),{},{pending:!1,notFound:!0,error:Fe})))));case i.ADD_VIEW_LOCATION_DATA:var Xe=t.payload,Ke=Xe.id,Je=Xe.locationData,Qe=Xe.isModal,Ze=b(Qe),$e=y(e,Ke,Qe);return l(l({},e),{},u({},"".concat(Ze),l(l({},e["".concat(Ze)]),{},u({},"".concat(Ke),l(l({},$e),{},{locationData:Je})))));case i.FETCH_LOCATION_CONFIG_SUCCESS:var et=t.payload,tt=et.id,nt=et.data,rt=et.isModal,ot=b(rt),at=y(e,tt,rt);return nt.provider?l(l({},e),{},u({},"".concat(ot),l(l({},e["".concat(ot)]),{},u({},"".concat(tt),l(l({},at),{},{mapConfig:nt}))))):e;case i.FETCH_LOCATION_CONFIG_ERROR:var it=t.payload,st=it.id,lt=it.error,ut=it.isModal,ct=b(ut),dt=y(e,st,ut);return l(l({},e),{},u({},"".concat(ct),l(l({},e["".concat(ct)]),{},u({},"".concat(st),l(l({},dt),{},{error:lt})))));case i.TOGGLE_INCLUDED_VIEW:var ft=t.payload,pt=ft.id,_t=ft.showIncludedView,ht=ft.isModal,mt=b(ht),yt=y(e,pt,ht);return yt.windowId?l(l({},e),{},u({},"".concat(mt),l(l({},e["".concat(mt)]),{},u({},"".concat(pt),l(l({},yt),{},{isShowIncluded:!!_t,hasShowIncluded:!!_t}))))):e;case i.SET_INCLUDED_VIEW:var bt=t.payload,gt=bt.id,vt=bt.viewId,wt=bt.viewProfileId,Mt=bt.parentId;return l(l({},e),{},{includedView:l(l({},e.includedView),{},{viewId:vt,windowId:gt,viewProfileId:wt,parentId:Mt})});case i.UNSET_INCLUDED_VIEW:var kt=e.includedView,Tt=kt.windowId,Lt=kt.viewId,Ot=t.payload,St=Ot.id,Dt=Ot.viewId,xt=Ot.forceClose;return xt||Tt===St&&Lt===Dt?l(l({},e),{},{includedView:{viewId:null,windowId:null,viewProfileId:null,parentId:null}}):e;case i.DELETE_VIEW:var Et=t.payload,At=Et.id,Pt=Et.isModal,Ct=b(Pt);return At&&delete e["".concat(Ct)][At],e;case i.RESET_VIEW:var jt=t.payload,It=jt.id,Rt=jt.isModal,Nt=b(Rt),Yt=y(e,It,Rt);return Yt?l(l({},e),{},u({},"".concat(Nt),l(l({},e["".concat(Nt)]),{},u({},"".concat(It),l({},c))))):e;default:return e}}(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(c,"viewState","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(d,"initialState","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(f,"selectView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(p,"selectLocalView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(_,"getView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(y,"getLocalView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(b,"getViewType","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(g,"findViewByViewId","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js"),h.register(v,"viewHandler","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/reducers/viewHandler.js")),(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&m(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(t){var r=n(131),o={},a=!1,i=t.chrome&&t.chrome.app&&t.chrome.app.runtime;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){if(i)return null;var t=r.string(8);return o[t]=e,a&&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]}};i||e.exports.attachEvent("unload",(function(){a||(a=!0,e.exports.triggerUnloadCallbacks())}))}).call(this,n(12))},function(module,exports,__webpack_require__){"use strict";(function(module){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)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.RawWidget=void 0;var _react=_interopRequireWildcard(__webpack_require__(0)),_reactTransitionGroup=__webpack_require__(326),_moment=_interopRequireDefault(__webpack_require__(4)),_classnames=_interopRequireDefault(__webpack_require__(10)),_immutable=__webpack_require__(64),_widgetHelpers=__webpack_require__(184),_PropTypes=__webpack_require__(706),_Constants=__webpack_require__(19),_WidgetRenderer=_interopRequireDefault(__webpack_require__(1429)),_DevicesWidget=_interopRequireDefault(__webpack_require__(873)),_Tooltips=_interopRequireDefault(__webpack_require__(67)),enterModule;function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function(){return e},e}function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_typeof(e)&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=r?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function _extends(){return(_extends=Object.assign||function(e){for(var t=1;tf,k=m&&m[d];return _react.default.createElement(_WidgetRenderer.default,_extends({},t.props,{readonly:g,isMultiselect:v,widgetField:b,widgetProperties:w,showErrorBorder:M,isFocused:h,ref:t.rawWidget,charsTyped:k,onListFocus:t.handleListFocus,onBlurWithParams:t.handleBlurWithParams,onPatch:t.handlePatch,onSetWidgetType:t.setWidgetType,onHandleProcess:t.handleProcess}))}));var n=e.widgetData,r=void 0;return n&&n[0]&&(void 0!==n[0].value?r=n[0].value:n[0].status&&void 0!==n[0].status.value&&(r=n[0].status.value)),t.rawWidget=(0,_react.createRef)(null),t.state={isFocused:!1,cachedValue:r,errorPopup:!1,tooltipToggled:!1,clearedFieldWarning:!1},t}return _createClass(RawWidget,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.textSelected,r=this.rawWidget;if(r.current&&t)try{r.current.focus()}catch(e){console.error("Custom widget doesn't have 'focus' function defined")}n&&r.current.select()}},{key:"render",value:function(){var e=this,t=this.props,n=t.caption,r=t.description,o=t.captionElement,a=t.fields,i=t.type,s=t.noLabel,l=t.widgetData,u=t.rowId,c=t.isModal,d=t.handlePatch,f=t.widgetType,p=t.handleZoomInto,_=t.dataEntry,h=t.subentity,m=t.fieldFormGroupClass,y=t.fieldLabelClass,b=t.fieldInputClass,g=this.state,v=g.errorPopup,w=g.clearedFieldWarning,M=g.tooltipToggled,k=g.isFocused,T=this.renderWidget(),L=l[0],O=L.validStatus,S=L.warning,D="quickInput"===h,x=["Switch","YesNo","Label","Button"].indexOf(f)>-1;if(!T)return console.warn("The %c"+f,"font-weight:bold;","is unsupported type of widget."),!1;if(!l[0].displayed||!0!==l[0].displayed)return!1;var E,A,P=l[0].value&&l[0].value.description?l[0].value.description:null,C=a.map((function(e){return"form-field-"+e.field})).join(" "),j="";D?(E=y,A=b,j=m):((E=_?"col-sm-5":"")||(E="primary"!==i||x?"primaryLongLabels"===i?"col-sm-6":"col-sm-3":"col-sm-12 panel-title"),(A=_?"col-sm-7":"")||(A=("primary"!==i&&!s||x?"primaryLongLabels"===i?"col-sm-6":"col-sm-9 ":"col-sm-12 ")+(a[0].devices?"form-group-flex":"")));var I={};return!s&&n&&a[0].supportZoomInto&&(I.onClick=function(){return p(a[0].field)}),_react.default.createElement("div",{className:(0,_classnames.default)("form-group",j,{"form-group-table":u&&!c},C)},_react.default.createElement("div",{className:"row"},o||null,!s&&n&&_react.default.createElement("label",_extends({className:(0,_classnames.default)("form-control-label",E,{"input-zoom":D&&a[0].supportZoomInto,"zoom-into":a[0].supportZoomInto}),title:r||n},I),n),_react.default.createElement("div",{className:A,onMouseEnter:O&&!O.valid?this.showErrorPopup:void 0,onMouseLeave:this.hideErrorPopup},!w&&S&&_react.default.createElement("div",{className:(0,_classnames.default)("field-warning",{"field-warning-message":S,"field-error-message":S&&S.error}),onMouseEnter:function(){return e.toggleTooltip(!0)},onMouseLeave:function(){return e.toggleTooltip(!1)}},_react.default.createElement("span",null,S.caption),_react.default.createElement("i",{className:"meta-icon-close-alt",onClick:function(){return e.clearFieldWarning(S)}}),S.message&&M&&_react.default.createElement(_Tooltips.default,{action:S.message,type:""})),_react.default.createElement("div",{className:(0,_classnames.default)("input-body-container",{focused:k}),title:P},_react.default.createElement(_reactTransitionGroup.CSSTransition,{key:"trans_".concat(a[0].fieldName),className:"fade",timeout:{enter:200,exit:200}},_react.default.createElement("div",null,v&&O&&!O.valid&&!O.initialValue&&this.renderErrorPopup(O.reason))),T),a[0].devices&&!l[0].readonly&&_react.default.createElement(_DevicesWidget.default,{devices:a[0].devices,tabIndex:1,handleChange:function(e){return d&&d(a[0].field,e)}}))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}],[{key:"getDerivedStateFromProps",value:function(e,t){if(void 0===t.cachedValue&&e.widgetData&&e.widgetData[0]){var n=void 0;return void 0!==e.widgetData[0].value?n=e.widgetData[0].value:e.widgetData[0].status&&void 0!==e.widgetData[0].status.value&&(n=e.widgetData[0].status.value),{cachedValue:n}}return null}}]),RawWidget}(_react.PureComponent);exports.RawWidget=RawWidget,RawWidget.propTypes=_PropTypes.RawWidgetPropTypes,RawWidget.defaultProps=_PropTypes.RawWidgetDefaultProps;var _default=RawWidget,_default2=_default,reactHotLoader,leaveModule;exports.default=_default2,reactHotLoader="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0,reactHotLoader&&(reactHotLoader.register(RawWidget,"RawWidget","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/components/widget/RawWidget.js"),reactHotLoader.register(_default,"default","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/components/widget/RawWidget.js")),leaveModule="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0,leaveModule&&leaveModule(module)}).call(this,__webpack_require__(3)(module))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.append=function(e){return this.value+="string"==typeof e?e.toString():String.fromCharCode(e),this},e.prototype.length=function(){return this.value.length},e.prototype.charAt=function(e){return this.value.charAt(e)},e.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},e.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},e.prototype.toString=function(){return this.value},e.prototype.insert=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+t.length)},e}();t.default=r},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){!function(e){"use strict";var t=function(e,t){return et?1:e>=t?0:NaN},n=function(e){var n;return 1===e.length&&(n=e,e=function(e,r){return t(n(e),r)}),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[a],n)<0?r=a+1:o=a}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r>>1;e(t[a],n)>0?o=a:r=a+1}return r}}},r=n(t),o=r.right,a=r.left;function i(e,t){return[e,t]}var s=function(e){return null===e?NaN:+e},l=function(e,t){var n,r,o=e.length,a=0,i=-1,l=0,u=0;if(null==t)for(;++i1)return u/(a-1)},u=function(e,t){var n=l(e,t);return n?Math.sqrt(n):n},c=function(e,t){var n,r,o,a=e.length,i=-1;if(null==t){for(;++i=n)for(r=o=n;++in&&(r=n),o=n)for(r=o=n;++in&&(r=n),o0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(r=Math.ceil(t-e+1));++s=0?(a>=y?10:a>=b?5:a>=g?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(a>=y?10:a>=b?5:a>=g?2:1)}function M(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/o;return a>=y?o*=10:a>=b?o*=5:a>=g&&(o*=2),t=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,a=Math.floor(o),i=+n(e[a],a,e);return i+(+n(e[a+1],a+1,e)-i)*(o-a)}},L=function(e){for(var t,n,r,o=e.length,a=-1,i=0;++a=0;)for(t=(r=e[o]).length;--t>=0;)n[--i]=r[t];return n},O=function(e,t){var n,r,o=e.length,a=-1;if(null==t){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r},S=function(e){if(!(o=e.length))return[];for(var t=-1,n=O(e,D),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}}))}function W(e,t){for(var n,r=0,o=e.length;r0)for(var n,r,o=new Array(n),a=0;a=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),F.hasOwnProperty(t)?{space:F[t],local:e}:e};function U(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===B&&t.documentElement.namespaceURI===B?t.createElement(e):t.createElementNS(n,e)}}function V(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}var X=function(e){var t=G(e);return(t.local?V:U)(t)},K=0;function J(){return new Q}function Q(){this._="@"+(++K).toString(36)}Q.prototype=J.prototype={constructor:Q,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 Z=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var $=document.documentElement;if(!$.matches){var ee=$.webkitMatchesSelector||$.msMatchesSelector||$.mozMatchesSelector||$.oMatchesSelector;Z=function(e){return function(){return ee.call(this,e)}}}}var te=Z,ne={};function re(e,t,n){return e=oe(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function oe(t,n,r){return function(o){var a=e.event;e.event=o;try{t.call(this,this.__data__,n,r)}finally{e.event=a}}}function ae(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function ie(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,a=t.length;rt?1:e>=t?0:NaN}function we(e){return function(){this.removeAttribute(e)}}function Me(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ke(e,t){return function(){this.setAttribute(e,t)}}function Te(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Le(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Oe(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}ye.prototype={constructor:ye,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Se=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function De(e){return function(){this.style.removeProperty(e)}}function xe(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ee(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ae(e,t){return e.style.getPropertyValue(t)||Se(e).getComputedStyle(e,null).getPropertyValue(t)}function Pe(e){return function(){delete this[e]}}function Ce(e,t){return function(){this[e]=t}}function je(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function Ie(e){return e.trim().split(/^|\s+/)}function Re(e){return e.classList||new Ne(e)}function Ne(e){this._node=e,this._names=Ie(e.getAttribute("class")||"")}function Ye(e,t){for(var n=Re(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 nt=[null];function rt(e,t){this._groups=e,this._parents=t}function ot(){return new rt([[document.documentElement]],nt)}rt.prototype=ot.prototype={constructor:rt,select:function(e){"function"!=typeof e&&(e=pe(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o=v&&(v=g+1);!(b=m[v])&&++v<_;);y._next=b||null}}return(i=new rt(i,r))._enter=s,i._exit=l,i},enter:function(){return new rt(this._enter||this._groups.map(me),this._parents)},exit:function(){return new rt(this._exit||this._groups.map(me),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,o=n.length,a=Math.min(r,o),i=new Array(r),s=0;s=0;)(r=o[a])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ve);for(var n=this._groups,r=n.length,o=new Array(r),a=0;a1?this.each((null==t?De:"function"==typeof t?Ee:xe)(e,t,null==n?"":n)):Ae(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?Pe:"function"==typeof t?je:Ce)(e,t)):this.node()[e]},classed:function(e,t){var n=Ie(e+"");if(arguments.length<2){for(var r=Re(this.node()),o=-1,a=n.length;++o>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Tt.exec(e))?Ct(parseInt(t[1],16)):(t=Lt.exec(e))?new Nt(t[1],t[2],t[3],1):(t=Ot.exec(e))?new Nt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=St.exec(e))?jt(t[1],t[2],t[3],t[4]):(t=Dt.exec(e))?jt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=xt.exec(e))?Yt(t[1],t[2]/100,t[3]/100,1):(t=Et.exec(e))?Yt(t[1],t[2]/100,t[3]/100,t[4]):At.hasOwnProperty(e)?Ct(At[e]):"transparent"===e?new Nt(NaN,NaN,NaN,0):null}function Ct(e){return new Nt(e>>16&255,e>>8&255,255&e,1)}function jt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Nt(e,t,n,r)}function It(e){return e instanceof gt||(e=Pt(e)),e?new Nt((e=e.rgb()).r,e.g,e.b,e.opacity):new Nt}function Rt(e,t,n,r){return 1===arguments.length?It(e):new Nt(e,t,n,null==r?1:r)}function Nt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Yt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Wt(e,t,n,r)}function Ht(e){if(e instanceof Wt)return new Wt(e.h,e.s,e.l,e.opacity);if(e instanceof gt||(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),a=Math.max(t,n,r),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(n-r)/s+6*(n0&&l<1?0:i,new Wt(i,s,l,e.opacity)}function zt(e,t,n,r){return 1===arguments.length?Ht(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 qt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}yt(gt,Pt,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),yt(Nt,Rt,bt(gt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Nt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Nt(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+")")}})),yt(Wt,zt,bt(gt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,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 Nt(qt(e>=240?e-240:e+120,o,r),qt(e,o,r),qt(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 Bt=Math.PI/180,Ft=180/Math.PI,Gt=6/29,Ut=3*Gt*Gt;function Vt(e){if(e instanceof Kt)return new Kt(e.l,e.a,e.b,e.opacity);if(e instanceof nn){var t=e.h*Bt;return new Kt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Nt||(e=It(e));var n=$t(e.r),r=$t(e.g),o=$t(e.b),a=Jt((.4124564*n+.3575761*r+.1804375*o)/.95047),i=Jt((.2126729*n+.7151522*r+.072175*o)/1);return new Kt(116*i-16,500*(a-i),200*(i-Jt((.0193339*n+.119192*r+.9503041*o)/1.08883)),e.opacity)}function Xt(e,t,n,r){return 1===arguments.length?Vt(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Jt(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ut+4/29}function Qt(e){return e>Gt?e*e*e:Ut*(e-4/29)}function Zt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function $t(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function en(e){if(e instanceof nn)return new nn(e.h,e.c,e.l,e.opacity);e instanceof Kt||(e=Vt(e));var t=Math.atan2(e.b,e.a)*Ft;return new nn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function tn(e,t,n,r){return 1===arguments.length?en(e):new nn(e,t,n,null==r?1:r)}function nn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}yt(Kt,Xt,bt(gt,{brighter:function(e){return new Kt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Kt(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=1*Qt(e),new Nt(Zt(3.2404542*(t=.95047*Qt(t))-1.5371385*e-.4985314*(n=1.08883*Qt(n))),Zt(-.969266*t+1.8760108*e+.041556*n),Zt(.0556434*t-.2040259*e+1.0572252*n),this.opacity)}})),yt(nn,tn,bt(gt,{brighter:function(e){return new nn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new nn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Vt(this).rgb()}}));var rn=-.14861,on=1.78277,an=-.29227,sn=-.90649,ln=1.97294,un=ln*sn,cn=ln*on,dn=on*an-sn*rn;function fn(e){if(e instanceof _n)return new _n(e.h,e.s,e.l,e.opacity);e instanceof Nt||(e=It(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(dn*r+un*t-cn*n)/(dn+un-cn),a=r-o,i=(ln*(n-o)-an*a)/sn,s=Math.sqrt(i*i+a*a)/(ln*o*(1-o)),l=s?Math.atan2(i,a)*Ft-120:NaN;return new _n(l<0?l+360:l,s,o,e.opacity)}function pn(e,t,n,r){return 1===arguments.length?fn(e):new _n(e,t,n,null==r?1:r)}function _n(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hn(e,t,n,r,o){var a=e*e,i=a*e;return((1-3*e+3*a-i)*t+(4-6*a+3*i)*n+(1+3*e+3*a-3*i)*r+i*o)/6}yt(_n,pn,bt(gt,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new _n(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new _n(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Bt,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Nt(255*(t+n*(rn*r+on*o)),255*(t+n*(an*r+sn*o)),255*(t+n*(ln*r)),this.opacity)}}));var mn=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],a=e[r+1],i=r>0?e[r-1]:2*o-a,s=r180||n<-180?n-360*Math.round(n/360):n):bn(isNaN(e)?t:e)}function wn(e){return 1==(e=+e)?Mn: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):bn(isNaN(t)?n:t)}}function Mn(e,t){var n=t-e;return n?gn(e,n):bn(isNaN(e)?t:e)}var kn=function e(t){var n=wn(t);function r(e,t){var r=n((e=Rt(e)).r,(t=Rt(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=Mn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);function Tn(e){return function(t){var n,r,o=t.length,a=new Array(o),i=new Array(o),s=new Array(o);for(n=0;na&&(o=t.slice(a,o),s[i]?s[i]+=o:s[++i]=o),(n=n[0])===(r=r[0])?s[i]?s[i]+=r:s[++i]=r:(s[++i]=null,l.push({i:i,x:Cn(n,r)})),a=Rn.lastIndex;return a180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(o(n)+"rotate(",null,r)-2,x:Cn(e,t)})):t&&n.push(o(n)+"rotate("+t+r)}(a.rotate,i.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(o(n)+"skewX(",null,r)-2,x:Cn(e,t)}):t&&n.push(o(n)+"skewX("+t+r)}(a.skewX,i.skewX,s,l),function(e,t,n,r,a,i){if(e!==n||t!==r){var s=a.push(o(a)+"scale(",null,",",null,")");i.push({i:s-4,x:Cn(e,n)},{i:s-2,x:Cn(t,r)})}else 1===n&&1===r||a.push(o(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,i.scaleX,i.scaleY,s,l),a=i=null,function(e){for(var t,n=-1,r=l.length;++n=0&&t._call.call(null,e),t=t._next;--ir}function gr(){cr=(ur=fr.now())+dr,ir=sr=0;try{br()}finally{ir=0,function(){for(var e,t,n=nr,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:nr=t);rr=e,wr(r)}(),cr=0}}function vr(){var e=fr.now(),t=e-ur;t>1e3&&(dr-=t,ur=e)}function wr(e){if(!ir){sr&&(sr=clearTimeout(sr));var t=e-cr;t>24?(e<1/0&&(sr=setTimeout(gr,t)),lr&&(lr=clearInterval(lr))):(lr||(ur=cr,lr=setInterval(vr,1e3)),ir=1,pr(gr))}}mr.prototype=yr.prototype={constructor:mr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?_r():+n)+(null==t?0:+t),this._next||rr===this||(rr?rr._next=this:nr=this,rr=this),this._call=e,this._time=n,wr()},stop:function(){this._call&&(this._call=null,this._time=1/0,wr())}};var Mr=function(e,t,n){var r=new mr;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},kr=Y("start","end","interrupt"),Tr=[],Lr=function(e,t,n,r,o,a){var i=e.__transition;if(i){if(n in i)return}else e.__transition={};!function(e,t,n){var r,o=e.__transition;function a(l){var u,c,d,f;if(1!==n.state)return s();for(u in o)if((f=o[u]).name===n.name){if(3===f.state)return Mr(a);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete o[u]):+u0)throw new Error("too late");return n}function Sr(e,t){var n=e.__transition;if(!n||!(n=n[t])||n.state>2)throw new Error("too late");return n}function Dr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("too late");return n}var xr=function(e,t){var n,r,o,a=e.__transition,i=!0;if(a){for(o in t=null==t?null:t+"",a)(n=a[o]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),r&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete a[o]):i=!1;i&&delete e.__transition}};function Er(e,t){var n,r;return function(){var o=Sr(this,e),a=o.tween;if(a!==n)for(var i=0,s=(r=n=a).length;i=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?Or:Sr;return function(){var i=a(this,e),s=i.on;s!==r&&(o=(r=s).copy()).on(t,n),i.on=o}}var Xr=ot.prototype.constructor;function Kr(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}var Jr=0;function Qr(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Zr(e){return ot().transition(e)}function $r(){return++Jr}var eo=ot.prototype;function to(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function no(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}Qr.prototype=Zr.prototype={constructor:Qr,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=pe(e));for(var r=this._groups,o=r.length,a=new Array(o),i=0;iMath.abs(e[1]-C[1])?b=!0:y=!0),C=e,m=!0,So(),H()}function H(){var e;switch(_=C[0]-P[0],h=C[1]-P[1],w){case xo:case Do:M&&(_=Math.max(S-r,Math.min(x-c,_)),a=r+_,d=c+_),k&&(h=Math.max(D-i,Math.min(E-f,h)),s=i+h,p=f+h);break;case Eo:M<0?(_=Math.max(S-r,Math.min(x-r,_)),a=r+_,d=c):M>0&&(_=Math.max(S-c,Math.min(x-c,_)),a=r,d=c+_),k<0?(h=Math.max(D-i,Math.min(E-i,h)),s=i+h,p=f):k>0&&(h=Math.max(D-f,Math.min(E-f,h)),s=i,p=f+h);break;case Ao:M&&(a=Math.max(S,Math.min(x,r-_*M)),d=Math.max(S,Math.min(x,c+_*M))),k&&(s=Math.max(D,Math.min(E,i-h*k)),p=Math.max(D,Math.min(E,f+h*k)))}d0&&(r=a-_),k<0?f=p-h:k>0&&(i=s-h),w=xo,R.attr("cursor",Io.selection),H());break;default:return}So()}function q(){switch(e.event.keyCode){case 16:A&&(y=b=A=!1,H());break;case 18:w===Ao&&(M<0?c=d:M>0&&(r=a),k<0?f=p:k>0&&(i=s),w=Eo,H());break;case 32:w===xo&&(e.event.altKey?(M&&(c=d-_*M,r=a+_*M),k&&(f=p-h*k,i=s+h*k),w=Ao):(M<0?c=d:M>0&&(r=a),k<0?f=p:k>0&&(i=s),w=Eo),R.attr("cursor",Io[v]),H());break;default:return}So()}}function f(){var e=this.__brush||{selection:null};return e.extent=r.apply(this,arguments),e.dim=t,e}return s.move=function(e,n){e.selection?e.on("start.brush",(function(){u(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){u(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,o=u(e,arguments),a=r.selection,i=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Yn(a,i);function c(t){r.selection=1===t&&Fo(i)?null:s(t),l.call(e),o.brush()}return a&&i?c:c(1)})):e.each((function(){var e=this,r=arguments,o=e.__brush,a=t.input("function"==typeof n?n.apply(e,r):n,o.extent),i=u(e,r).beforestart();xr(e),o.selection=null==a||Fo(a)?null:a,l.call(e),i.start().brush().end()}))},c.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){le(new Lo(s,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},s.extent=function(e){return arguments.length?(r="function"==typeof e?e:To([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),s):r},s.filter=function(e){return arguments.length?(o="function"==typeof e?e:To(!!e),s):o},s.handleSize=function(e){return arguments.length?(i=+e,s):i},s.on=function(){var e=a.on.apply(a,arguments);return e===a?s:e},s}var Uo=Math.cos,Vo=Math.sin,Xo=Math.PI,Ko=Xo/2,Jo=2*Xo,Qo=Math.max;function Zo(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}var $o=Array.prototype.slice,ea=function(e){return function(){return e}},ta=Math.PI,na=2*ta,ra=na-1e-6;function oa(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function aa(){return new oa}function ia(e){return e.source}function sa(e){return e.target}function la(e){return e.radius}function ua(e){return e.startAngle}function ca(e){return e.endAngle}function da(){}function fa(e,t){var n=new da;if(e instanceof da)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,o=-1,a=e.length;if(null==t)for(;++o1e-6)if(Math.abs(c*s-l*u)>1e-6&&o){var f=n-a,p=r-i,_=s*s+l*l,h=f*f+p*p,m=Math.sqrt(_),y=Math.sqrt(d),b=o*Math.tan((ta-Math.acos((_+d-h)/(2*m*y)))/2),g=b/y,v=b/m;Math.abs(g-1)>1e-6&&(this._+="L"+(e+g*u)+","+(t+g*c)),this._+="A"+o+","+o+",0,0,"+ +(c*f>u*p)+","+(this._x1=e+v*s)+","+(this._y1=t+v*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,o,a){e=+e,t=+t;var i=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+i,u=t+s,c=1^a,d=a?r-o:o-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-u)>1e-6)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%na+na),d>ra?this._+="A"+n+","+n+",0,1,"+c+","+(e-i)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=ta)+","+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._}},da.prototype=fa.prototype={constructor:da,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 ba=fa.prototype;function ga(e,t){var n=new ya;if(e instanceof ya)e.each((function(e){n.add(e)}));else if(e){var r=-1,o=e.length;if(null==t)for(;++r=l)return i;if(o)return o=!1,a;var t,r=u;if(34===e.charCodeAt(r)){for(var s=r;s++=(a=(h+y)/2))?h=a:y=a,(c=n>=(i=(m+b)/2))?m=i:b=i,o=p,!(p=p[d=c<<1|u]))return o[d]=_,e;if(s=+e._x.call(null,p.data),l=+e._y.call(null,p.data),t===s&&n===l)return _.next=p,o?o[d]=_:e._root=_,e;do{o=o?o[d]=new Array(4):e._root=new Array(4),(u=t>=(a=(h+y)/2))?h=a:y=a,(c=n>=(i=(m+b)/2))?m=i:b=i}while((d=c<<1|u)==(f=(l>=i)<<1|s>=a));return o[f]=p,o[d]=_,e}var Ia=function(e,t,n,r,o){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=o};function Ra(e){return e[0]}function Na(e){return e[1]}function Ya(e,t,n){var r=new Ha(null==t?Ra:t,null==n?Na:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function Ha(e,t,n,r,o,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=o,this._y1=a,this._root=void 0}function za(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Wa=Ya.prototype=Ha.prototype;function qa(e){return e.x+e.vx}function Ba(e){return e.y+e.vy}function Fa(e){return e.index}function Ga(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Ua(e){return e.x}function Va(e){return e.y}Wa.copy=function(){var e,t,n=new Ha(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=za(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]=za(t));return n},Wa.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return ja(this.cover(t,n),t,n,e)},Wa.addAll=function(e){var t,n,r,o,a=e.length,i=new Array(a),s=new Array(a),l=1/0,u=1/0,c=-1/0,d=-1/0;for(n=0;nc&&(c=r),od&&(d=o));for(ce||e>o||r>t||t>a))return this;var i,s,l=o-n,u=this._root;switch(s=(t<(r+a)/2)<<1|e<(n+o)/2){case 0:do{(i=new Array(4))[s]=u,u=i}while(a=r+(l*=2),e>(o=n+l)||t>a);break;case 1:do{(i=new Array(4))[s]=u,u=i}while(a=r+(l*=2),(n=o-l)>e||t>a);break;case 2:do{(i=new Array(4))[s]=u,u=i}while(r=a-(l*=2),e>(o=n+l)||r>t);break;case 3:do{(i=new Array(4))[s]=u,u=i}while(r=a-(l*=2),(n=o-l)>e||r>t)}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=o,this._y1=a,this},Wa.data=function(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e},Wa.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]]},Wa.find=function(e,t,n){var r,o,a,i,s,l,u,c=this._x0,d=this._y0,f=this._x1,p=this._y1,_=[],h=this._root;for(h&&_.push(new Ia(h,c,d,f,p)),null==n?n=1/0:(c=e-n,d=t-n,f=e+n,p=t+n,n*=n);l=_.pop();)if(!(!(h=l.node)||(o=l.x0)>f||(a=l.y0)>p||(i=l.x1)=y)<<1|e>=m)&&(l=_[_.length-1],_[_.length-1]=_[_.length-1-u],_[_.length-1-u]=l)}else{var b=e-+this._x.call(null,h.data),g=t-+this._y.call(null,h.data),v=b*b+g*g;if(v=(s=(_+m)/2))?_=s:m=s,(c=i>=(l=(h+y)/2))?h=l:y=l,t=p,!(p=p[d=c<<1|u]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,f=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(o=p.next)&&delete p.next,r?(o?r.next=o:delete r.next,this):t?(o?t[d]=o:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[f]=p:this._root=p),this):(this._root=o,this)},Wa.removeAll=function(e){for(var t=0,n=e.length;t1?r[0]+r.slice(2):r,+e.slice(n+1)]},Qa=function(e){return(e=Ja(Math.abs(e)))?e[1]:NaN},Za=function(e,t){var n=Ja(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")},$a={"":function(e,t){e:for(var n,r=(e=e.toPrecision(t)).length,o=1,a=-1;o0&&(a=0)}return a>0?e.slice(0,a)+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 Za(100*e,t)},r:Za,s:function(e,t){var n=Ja(e,t);if(!n)return e+"";var r=n[0],o=n[1],a=o-(Xa=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,i=r.length;return a===i?r:a>i?r+new Array(a-i+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ja(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},ei=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function ti(e){return new ni(e)}function ni(e){if(!(t=ei.exec(e)))throw new Error("invalid format: "+e);var t,n=t[1]||" ",r=t[2]||">",o=t[3]||"-",a=t[4]||"",i=!!t[5],s=t[6]&&+t[6],l=!!t[7],u=t[8]&&+t[8].slice(1),c=t[9]||"";"n"===c?(l=!0,c="g"):$a[c]||(c=""),(i||"0"===n&&"="===r)&&(i=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=o,this.symbol=a,this.zero=i,this.width=s,this.comma=l,this.precision=u,this.type=c}ti.prototype=ni.prototype,ni.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var ri,oi=function(e){return e},ai=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],ii=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var o=e.length,a=[],i=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[i=(i+1)%t.length];return a.reverse().join(n)}):oi,o=e.currency,a=e.decimal,i=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(e.numerals):oi,s=e.percent||"%";function l(e){var t=(e=ti(e)).fill,n=e.align,l=e.sign,u=e.symbol,c=e.zero,d=e.width,f=e.comma,p=e.precision,_=e.type,h="$"===u?o[0]:"#"===u&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",m="$"===u?o[1]:/[%p]/.test(_)?s:"",y=$a[_],b=!_||/[defgprs%]/.test(_);function g(e){var o,s,u,g=h,v=m;if("c"===_)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?"("===l?l:"-":"-"===l||"("===l?"":l)+g,v=v+("s"===_?ai[8+Xa/3]:"")+(w&&"("===l?")":""),b)for(o=-1,s=e.length;++o(u=e.charCodeAt(o))||u>57){v=(46===u?a+e.slice(o+1):e.slice(o))+v,e=e.slice(0,o);break}}f&&!c&&(e=r(e,1/0));var M=g.length+e.length+v.length,k=M>1)+g+e+v+k.slice(M);break;default:e=k+g+e+v}return i(e)}return p=null==p?_?6:12:/[gprs]/.test(_)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),g.toString=function(){return e+""},g}return{format:l,formatPrefix:function(e,t){var n=l(((e=ti(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Qa(t)/3))),o=Math.pow(10,-r),a=ai[8+r/3];return function(e){return n(o*e)+a}}}};function si(t){return ri=ii(t),e.format=ri.format,e.formatPrefix=ri.formatPrefix,ri}si({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var li=function(e){return Math.max(0,-Qa(Math.abs(e)))},ui=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Qa(t)/3)))-Qa(Math.abs(e)))},ci=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Qa(t)-Qa(e))+1},di=function(){return new fi};function fi(){this.reset()}fi.prototype={constructor:fi,reset:function(){this.s=this.t=0},add:function(e){_i(pi,e,this.t),_i(this,pi.s,this.s),this.s?this.t+=pi.t:this.s=pi.t},valueOf:function(){return this.s}};var pi=new fi;function _i(e,t,n){var r=e.s=t+n,o=r-t,a=r-o;e.t=t-a+(n-o)}var hi=Math.PI,mi=hi/2,yi=hi/4,bi=2*hi,gi=180/hi,vi=hi/180,wi=Math.abs,Mi=Math.atan,ki=Math.atan2,Ti=Math.cos,Li=Math.ceil,Oi=Math.exp,Si=Math.log,Di=Math.pow,xi=Math.sin,Ei=Math.sign||function(e){return e>0?1:e<0?-1:0},Ai=Math.sqrt,Pi=Math.tan;function Ci(e){return e>1?0:e<-1?hi:Math.acos(e)}function ji(e){return e>1?mi:e<-1?-mi:Math.asin(e)}function Ii(e){return(e=xi(e/2))*e}function Ri(){}function Ni(e,t){e&&Hi.hasOwnProperty(e.type)&&Hi[e.type](e,t)}var Yi={Feature:function(e,t){Ni(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,a=Ti(t=(t*=vi)/2+yi),i=xi(t),s=Ui*i,l=Gi*a+s*Ti(o),u=s*r*xi(o);ns.add(ki(u,l)),Fi=e,Gi=a,Ui=i}function us(e){return[ki(e[1],e[0]),ji(e[2])]}function cs(e){var t=e[0],n=e[1],r=Ti(n);return[r*Ti(t),r*xi(t),xi(n)]}function ds(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function fs(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 ps(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function _s(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function hs(e){var t=Ai(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var ms,ys,bs=di(),gs={point:vs,lineStart:Ms,lineEnd:ks,polygonStart:function(){gs.point=Ts,gs.lineStart=Ls,gs.lineEnd=Os,bs.reset(),os.polygonStart()},polygonEnd:function(){os.polygonEnd(),gs.point=vs,gs.lineStart=Ms,gs.lineEnd=ks,ns<0?(Vi=-(Ki=180),Xi=-(Ji=90)):bs>1e-6?Ji=90:bs<-1e-6&&(Xi=-90),ys[0]=Vi,ys[1]=Ki}};function vs(e,t){ms.push(ys=[Vi=e,Ki=e]),tJi&&(Ji=t)}function ws(e,t){var n=cs([e*vi,t*vi]);if(es){var r=fs(es,n),o=fs([r[1],-r[0],0],r);hs(o),o=us(o);var a,i=e-Qi,s=i>0?1:-1,l=o[0]*gi*s,u=wi(i)>180;u^(s*QiJi&&(Ji=a):u^(s*Qi<(l=(l+360)%360-180)&&lJi&&(Ji=t)),u?eSs(Vi,Ki)&&(Ki=e):Ss(e,Ki)>Ss(Vi,Ki)&&(Vi=e):Ki>=Vi?(eKi&&(Ki=e)):e>Qi?Ss(Vi,e)>Ss(Vi,Ki)&&(Ki=e):Ss(e,Ki)>Ss(Vi,Ki)&&(Vi=e)}else ms.push(ys=[Vi=e,Ki=e]);tJi&&(Ji=t),es=n,Qi=e}function Ms(){gs.point=ws}function ks(){ys[0]=Vi,ys[1]=Ki,gs.point=vs,es=null}function Ts(e,t){if(es){var n=e-Qi;bs.add(wi(n)>180?n+(n>0?360:-360):n)}else Zi=e,$i=t;os.point(e,t),ws(e,t)}function Ls(){os.lineStart()}function Os(){Ts(Zi,$i),os.lineEnd(),wi(bs)>1e-6&&(Vi=-(Ki=180)),ys[0]=Vi,ys[1]=Ki,es=null}function Ss(e,t){return(t-=e)<0?t+360:t}function Ds(e,t){return e[0]-t[0]}function xs(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:thi?e-bi:e<-hi?e+bi:e,t]}function il(e,t,n){return(e%=bi)?t||n?ol(ll(e),ul(t,n)):ll(e):t||n?ul(t,n):al}function sl(e){return function(t,n){return[(t+=e)>hi?t-bi:t<-hi?t+bi:t,n]}}function ll(e){var t=sl(e);return t.invert=sl(-e),t}function ul(e,t){var n=Ti(e),r=xi(e),o=Ti(t),a=xi(t);function i(e,t){var i=Ti(t),s=Ti(e)*i,l=xi(e)*i,u=xi(t),c=u*n+s*r;return[ki(l*o-c*a,s*n-u*r),ji(c*o+l*a)]}return i.invert=function(e,t){var i=Ti(t),s=Ti(e)*i,l=xi(e)*i,u=xi(t),c=u*o-l*a;return[ki(l*o+u*a,s*n+c*r),ji(c*n-s*r)]},i}al.invert=al;var cl=function(e){function t(t){return(t=e(t[0]*vi,t[1]*vi))[0]*=gi,t[1]*=gi,t}return e=il(e[0]*vi,e[1]*vi,e.length>2?e[2]*vi:0),t.invert=function(t){return(t=e.invert(t[0]*vi,t[1]*vi))[0]*=gi,t[1]*=gi,t},t};function dl(e,t,n,r,o,a){if(n){var i=Ti(t),s=xi(t),l=r*n;null==o?(o=t+r*bi,a=t-l/2):(o=fl(i,o),a=fl(i,a),(r>0?oa)&&(o+=r*bi));for(var u,c=o;r>0?c>a:c1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},_l=function(e,t){return wi(e[0]-t[0])<1e-6&&wi(e[1]-t[1])<1e-6};function hl(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 ml=function(e,t,n,r,o){var a,i,s=[],l=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],i=e[t];if(_l(r,i)){for(o.lineStart(),a=0;a=0;--a)o.point((c=u[a])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}u=(f=f.o).z,p=!p}while(!f.v);o.lineEnd()}}};function yl(e){if(t=e.length){for(var t,n,r=0,o=e[0];++r0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==d);else u.point(a[0],a[1])}function i(r,o){return wi(r[0]-e)<1e-6?o>0?0:3:wi(r[0]-n)<1e-6?o>0?2:1:wi(r[1]-t)<1e-6?o>0?1:0:o>0?3:2}function s(e,t){return l(e.x,t.x)}function l(e,t){var n=i(e,1),r=i(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(i){var l,u,c,d,f,p,_,h,m,y,b,g=i,v=pl(),w={point:M,lineStart:function(){w.point=k,u&&u.push(c=[]),y=!0,m=!1,_=h=NaN},lineEnd:function(){l&&(k(d,f),p&&m&&v.rejoin(),l.push(v.result())),w.point=M,m&&g.lineEnd()},polygonStart:function(){g=v,l=[],u=[],b=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,o=u.length;nr&&(f-a)*(r-i)>(p-i)*(e-a)&&++t:p<=r&&(f-a)*(r-i)<(p-i)*(e-a)&&--t;return t}(),n=b&&t,o=(l=L(l)).length;(n||o)&&(i.polygonStart(),n&&(i.lineStart(),a(null,null,1,i),i.lineEnd()),o&&ml(l,s,t,a,i),i.polygonEnd()),g=i,l=u=c=null}};function M(e,t){o(e,t)&&g.point(e,t)}function k(a,i){var s=o(a,i);if(u&&c.push([a,i]),y)d=a,f=i,p=s,y=!1,s&&(g.lineStart(),g.point(a,i));else if(s&&m)g.point(a,i);else{var l=[_=Math.max(-1e9,Math.min(1e9,_)),h=Math.max(-1e9,Math.min(1e9,h))],v=[a=Math.max(-1e9,Math.min(1e9,a)),i=Math.max(-1e9,Math.min(1e9,i))];!function(e,t,n,r,o,a){var i,s=e[0],l=e[1],u=0,c=1,d=t[0]-s,f=t[1]-l;if(i=n-s,d||!(i>0)){if(i/=d,d<0){if(i0){if(i>c)return;i>u&&(u=i)}if(i=o-s,d||!(i<0)){if(i/=d,d<0){if(i>c)return;i>u&&(u=i)}else if(d>0){if(i0)){if(i/=f,f<0){if(i0){if(i>c)return;i>u&&(u=i)}if(i=a-l,f||!(i<0)){if(i/=f,f<0){if(i>c)return;i>u&&(u=i)}else if(f>0){if(i0&&(e[0]=s+u*d,e[1]=l+u*f),c<1&&(t[0]=s+c*d,t[1]=l+c*f),!0}}}}}(l,v,e,t,n,r)?s&&(g.lineStart(),g.point(a,i),b=!1):(m||(g.lineStart(),g.point(l[0],l[1])),g.point(v[0],v[1]),s||g.lineEnd(),b=!1)}_=a,h=i,m=s}return w}}var gl,vl,wl,Ml=di(),kl=function(e,t){var n=t[0],r=t[1],o=[xi(n),-Ti(n),0],a=0,i=0;Ml.reset();for(var s=0,l=e.length;s=0?1:-1,T=k*M,L=T>hi,O=_*v;if(Ml.add(ki(O*k*xi(T),h*w+O*Ti(T))),a+=L?M+k*bi:M,L^f>=n^b>=n){var S=fs(cs(d),cs(y));hs(S);var D=fs(o,S);hs(D);var x=(L^M>=0?-1:1)*ji(D[2]);(r>x||r===x&&(S[0]||S[1]))&&(i+=L^M>=0?1:-1)}}return(a<-1e-6||a<1e-6&&Ml<-1e-6)^1&i},Tl=di(),Ll={sphere:Ri,point:Ri,lineStart:function(){Ll.point=Sl,Ll.lineEnd=Ol},lineEnd:Ri,polygonStart:Ri,polygonEnd:Ri};function Ol(){Ll.point=Ll.lineEnd=Ri}function Sl(e,t){gl=e*=vi,vl=xi(t*=vi),wl=Ti(t),Ll.point=Dl}function Dl(e,t){e*=vi;var n=xi(t*=vi),r=Ti(t),o=wi(e-gl),a=Ti(o),i=r*xi(o),s=wl*n-vl*r*a,l=vl*n+wl*r*a;Tl.add(ki(Ai(i*i+s*s),l)),gl=e,vl=n,wl=r}var xl=function(e){return Tl.reset(),ts(e,Ll),+Tl},El=[null,null],Al={type:"LineString",coordinates:El},Pl=function(e,t){return El[0]=e,El[1]=t,xl(Al)},Cl={Feature:function(e,t){return Il(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,o=n.length;++r1e-6})).map(l)).concat(m(Li(a/p)*p,o,p).filter((function(e){return wi(e%h)>1e-6})).map(u))}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(i).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],i=+e[1][1],r>n&&(e=r,r=n,n=e),s>i&&(e=s,s=i,i=e),b.precision(y)):[[r,s],[n,i]]},b.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],o=+n[1][1],t>e&&(n=t,t=e,e=n),a>o&&(n=a,a=o,o=n),b.precision(y)):[[t,a],[e,o]]},b.step=function(e){return arguments.length?b.stepMajor(e).stepMinor(e):b.stepMinor()},b.stepMajor=function(e){return arguments.length?(_=+e[0],h=+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,l=Wl(a,o,90),u=ql(t,e,y),c=Wl(s,i,90),d=ql(r,n,y),b):y},b.extentMajor([[-180,-89.999999],[180,89.999999]]).extentMinor([[-180,-80.000001],[180,80.000001]])}var Fl,Gl,Ul,Vl,Xl=function(e){return e},Kl=di(),Jl=di(),Ql={point:Ri,lineStart:Ri,lineEnd:Ri,polygonStart:function(){Ql.lineStart=Zl,Ql.lineEnd=tu},polygonEnd:function(){Ql.lineStart=Ql.lineEnd=Ql.point=Ri,Kl.add(wi(Jl)),Jl.reset()},result:function(){var e=Kl/2;return Kl.reset(),e}};function Zl(){Ql.point=$l}function $l(e,t){Ql.point=eu,Fl=Ul=e,Gl=Vl=t}function eu(e,t){Jl.add(Vl*e-Ul*t),Ul=e,Vl=t}function tu(){eu(Fl,Gl)}var nu,ru,ou,au,iu=1/0,su=iu,lu=-iu,uu=lu,cu={point:function(e,t){elu&&(lu=e),tuu&&(uu=t)},lineStart:Ri,lineEnd:Ri,polygonStart:Ri,polygonEnd:Ri,result:function(){var e=[[iu,su],[lu,uu]];return lu=uu=-(su=iu=1/0),e}},du=0,fu=0,pu=0,_u=0,hu=0,mu=0,yu=0,bu=0,gu=0,vu={point:wu,lineStart:Mu,lineEnd:Lu,polygonStart:function(){vu.lineStart=Ou,vu.lineEnd=Su},polygonEnd:function(){vu.point=wu,vu.lineStart=Mu,vu.lineEnd=Lu},result:function(){var e=gu?[yu/gu,bu/gu]:mu?[_u/mu,hu/mu]:pu?[du/pu,fu/pu]:[NaN,NaN];return du=fu=pu=_u=hu=mu=yu=bu=gu=0,e}};function wu(e,t){du+=e,fu+=t,++pu}function Mu(){vu.point=ku}function ku(e,t){vu.point=Tu,wu(ou=e,au=t)}function Tu(e,t){var n=e-ou,r=t-au,o=Ai(n*n+r*r);_u+=o*(ou+e)/2,hu+=o*(au+t)/2,mu+=o,wu(ou=e,au=t)}function Lu(){vu.point=wu}function Ou(){vu.point=Du}function Su(){xu(nu,ru)}function Du(e,t){vu.point=xu,wu(nu=ou=e,ru=au=t)}function xu(e,t){var n=e-ou,r=t-au,o=Ai(n*n+r*r);_u+=o*(ou+e)/2,hu+=o*(au+t)/2,mu+=o,yu+=(o=au*e-ou*t)*(ou+e),bu+=o*(au+t),gu+=3*o,wu(ou=e,au=t)}function Eu(e){this._context=e}Eu.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,bi)}},result:Ri};var Au,Pu,Cu,ju,Iu,Ru=di(),Nu={point:Ri,lineStart:function(){Nu.point=Yu},lineEnd:function(){Au&&Hu(Pu,Cu),Nu.point=Ri},polygonStart:function(){Au=!0},polygonEnd:function(){Au=null},result:function(){var e=+Ru;return Ru.reset(),e}};function Yu(e,t){Nu.point=Hu,Pu=ju=e,Cu=Iu=t}function Hu(e,t){ju-=e,Iu-=t,Ru.add(Ai(ju*ju+Iu*Iu)),ju=e,Iu=t}function zu(){this._string=[]}function Wu(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}zu.prototype={_radius:4.5,_circle:Wu(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=Wu(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 qu=function(e,t,n,r){return function(o,a){var i,s,l,u=t(a),c=o.invert(r[0],r[1]),d=pl(),f=t(d),p=!1,_={point:h,lineStart:y,lineEnd:b,polygonStart:function(){_.point=g,_.lineStart=v,_.lineEnd=w,s=[],i=[]},polygonEnd:function(){_.point=h,_.lineStart=y,_.lineEnd=b,s=L(s);var e=kl(i,c);s.length?(p||(a.polygonStart(),p=!0),ml(s,Fu,e,n,a)):e&&(p||(a.polygonStart(),p=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),p&&(a.polygonEnd(),p=!1),s=i=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function h(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&a.point(t,n)}function m(e,t){var n=o(e,t);u.point(n[0],n[1])}function y(){_.point=m,u.lineStart()}function b(){_.point=h,u.lineEnd()}function g(e,t){l.push([e,t]);var n=o(e,t);f.point(n[0],n[1])}function v(){f.lineStart(),l=[]}function w(){g(l[0][0],l[0][1]),f.lineEnd();var e,t,n,r,o=f.clean(),u=d.result(),c=u.length;if(l.pop(),i.push(l),l=null,c)if(1&o){if((t=(n=u[0]).length-1)>0){for(p||(a.polygonStart(),p=!0),a.lineStart(),e=0;e1&&2&o&&u.push(u.pop().concat(u.shift())),s.push(u.filter(Bu))}return _}};function Bu(e){return e.length>1}function Fu(e,t){return((e=e.x)[0]<0?e[1]-mi-1e-6:mi-e[1])-((t=t.x)[0]<0?t[1]-mi-1e-6:mi-t[1])}var Gu=qu((function(){return!0}),(function(e){var t,n=NaN,r=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(a,i){var s=a>0?hi:-hi,l=wi(a-n);wi(l-hi)<1e-6?(e.point(n,r=(r+i)/2>0?mi:-mi),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(a,r),t=0):o!==s&&l>=hi&&(wi(n-o)<1e-6&&(n-=1e-6*o),wi(a-s)<1e-6&&(a-=1e-6*s),r=function(e,t,n,r){var o,a,i=xi(e-n);return wi(i)>1e-6?Mi((xi(t)*(a=Ti(r))*xi(n)-xi(r)*(o=Ti(t))*xi(e))/(o*a*i)):(t+r)/2}(n,r,a,i),e.point(o,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=a,r=i),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*mi,r.point(-hi,o),r.point(0,o),r.point(hi,o),r.point(hi,0),r.point(hi,-o),r.point(0,-o),r.point(-hi,-o),r.point(-hi,0),r.point(-hi,o);else if(wi(e[0]-t[0])>1e-6){var a=e[0]0,o=wi(n)>1e-6;function a(e,t){return Ti(e)*Ti(t)>n}function i(e,t,r){var o=[1,0,0],a=fs(cs(e),cs(t)),i=ds(a,a),s=a[0],l=i-s*s;if(!l)return!r&&e;var u=n*i/l,c=-n*s/l,d=fs(o,a),f=_s(o,u);ps(f,_s(a,c));var p=d,_=ds(f,p),h=ds(p,p),m=_*_-h*(ds(f,f)-1);if(!(m<0)){var y=Ai(m),b=_s(p,(-_-y)/h);if(ps(b,f),b=us(b),!r)return b;var g,v=e[0],w=t[0],M=e[1],k=t[1];w0^b[1]<(wi(b[0]-v)<1e-6?M:k):M<=b[1]&&b[1]<=k:T>hi^(v<=b[0]&&b[0]<=w)){var O=_s(p,(-_+y)/h);return ps(O,f),[b,us(O)]}}}function s(t,n){var o=r?e:hi-e,a=0;return t<-o?a|=1:t>o&&(a|=2),n<-o?a|=4:n>o&&(a|=8),a}return qu(a,(function(e){var t,n,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(d,f){var p,_=[d,f],h=a(d,f),m=r?h?0:s(d,f):h?s(d+(d<0?hi:-hi),f):0;if(!t&&(u=l=h)&&e.lineStart(),h!==l&&(!(p=i(t,_))||_l(t,p)||_l(_,p))&&(_[0]+=1e-6,_[1]+=1e-6,h=a(_[0],_[1])),h!==l)c=0,h?(e.lineStart(),p=i(_,t),e.point(p[0],p[1])):(p=i(t,_),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(o&&t&&r^h){var y;m&n||!(y=i(_,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])))}!h||t&&_l(t,_)||e.point(_[0],_[1]),t=_,l=h,n=m},lineEnd:function(){l&&e.lineEnd(),t=null},clean:function(){return c|(u&&l)<<1}}}),(function(n,r,o,a){dl(a,e,t,o,n,r)}),r?[0,-e]:[-hi,e-hi])};function Vu(e){return function(t){var n=new Xu;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xu(){}function Ku(e,t,n){var r=t[1][0]-t[0][0],o=t[1][1]-t[0][1],a=e.clipExtent&&e.clipExtent();e.scale(150).translate([0,0]),null!=a&&e.clipExtent(null),ts(n,e.stream(cu));var i=cu.result(),s=Math.min(r/(i[1][0]-i[0][0]),o/(i[1][1]-i[0][1])),l=+t[0][0]+(r-s*(i[1][0]+i[0][0]))/2,u=+t[0][1]+(o-s*(i[1][1]+i[0][1]))/2;return null!=a&&e.clipExtent(a),e.scale(150*s).translate([l,u])}function Ju(e,t,n){return Ku(e,[[0,0],t],n)}Xu.prototype={constructor:Xu,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 Qu=Ti(30*vi),Zu=function(e,t){return+t?function(e,t){function n(r,o,a,i,s,l,u,c,d,f,p,_,h,m){var y=u-r,b=c-o,g=y*y+b*b;if(g>4*t&&h--){var v=i+f,w=s+p,M=l+_,k=Ai(v*v+w*w+M*M),T=ji(M/=k),L=wi(wi(M)-1)<1e-6||wi(a-d)<1e-6?(a+d)/2:ki(w,v),O=e(L,T),S=O[0],D=O[1],x=S-r,E=D-o,A=b*x-y*E;(A*A/g>t||wi((y*x+b*E)/g-.5)>.3||i*f+s*p+l*_2?e[2]%360*vi:0,D()):[m*gi,y*gi,b*gi]},L.precision=function(e){return arguments.length?(T=Zu(S,k=e*e),x()):Ai(k)},L.fitExtent=function(e,t){return Ku(L,e,t)},L.fitSize=function(e,t){return Ju(L,e,t)},function(){return t=e.apply(this,arguments),L.invert=t.invert&&O,D()}}function nc(e){var t=0,n=hi/3,r=tc(e),o=r(t,n);return o.parallels=function(e){return arguments.length?r(t=e[0]*vi,n=e[1]*vi):[t*gi,n*gi]},o}function rc(e,t){var n=xi(e),r=(n+xi(t))/2;if(wi(r)<1e-6)return function(e){var t=Ti(e);function n(e,n){return[e*t,xi(n)/t]}return n.invert=function(e,n){return[e/t,ji(n*t)]},n}(e);var o=1+n*(2*r-n),a=Ai(o)/r;function i(e,t){var n=Ai(o-2*r*xi(t))/r;return[n*xi(e*=r),a-n*Ti(e)]}return i.invert=function(e,t){var n=a-t;return[ki(e,wi(n))/r*Ei(n),ji((o-(e*e+n*n)*r*r)/(2*r))]},i}var oc=function(){return nc(rc).scale(155.424).center([0,33.6442])},ac=function(){return oc().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};function ic(e){return function(t,n){var r=Ti(t),o=Ti(n),a=e(r*o);return[a*o*xi(t),a*xi(n)]}}function sc(e){return function(t,n){var r=Ai(t*t+n*n),o=e(r),a=xi(o),i=Ti(o);return[ki(t*a,r*i),ji(r&&n*a/r)]}}var lc=ic((function(e){return Ai(2/(1+e))}));lc.invert=sc((function(e){return 2*ji(e/2)}));var uc=ic((function(e){return(e=Ci(e))&&e/xi(e)}));function cc(e,t){return[e,Si(Pi((mi+t)/2))]}function dc(e){var t,n,r,o=ec(e),a=o.center,i=o.scale,s=o.translate,l=o.clipExtent,u=null;function c(){var a=hi*i(),s=o(cl(o.rotate()).invert([0,0]));return l(null==u?[[s[0]-a,s[1]-a],[s[0]+a,s[1]+a]]:e===cc?[[Math.max(s[0]-a,u),t],[Math.min(s[0]+a,n),r]]:[[u,Math.max(s[1]-a,t)],[n,Math.min(s[1]+a,r)]])}return o.scale=function(e){return arguments.length?(i(e),c()):i()},o.translate=function(e){return arguments.length?(s(e),c()):s()},o.center=function(e){return arguments.length?(a(e),c()):a()},o.clipExtent=function(e){return arguments.length?(null==e?u=t=n=r=null:(u=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),c()):null==u?null:[[u,t],[n,r]]},c()}function fc(e){return Pi((mi+e)/2)}function pc(e,t){var n=Ti(e),r=e===t?xi(e):Si(n/Ti(t))/Si(fc(t)/fc(e)),o=n*Di(fc(e),r)/r;if(!r)return cc;function a(e,t){o>0?t<1e-6-mi&&(t=1e-6-mi):t>mi-1e-6&&(t=mi-1e-6);var n=o/Di(fc(t),r);return[n*xi(r*e),o-n*Ti(r*e)]}return a.invert=function(e,t){var n=o-t,a=Ei(r)*Ai(e*e+n*n);return[ki(e,wi(n))/r*Ei(n),2*Mi(Di(o/a,1/r))-mi]},a}function _c(e,t){return[e,t]}function hc(e,t){var n=Ti(e),r=e===t?xi(e):(n-Ti(t))/(t-e),o=n/r+e;if(wi(r)<1e-6)return _c;function a(e,t){var n=o-t,a=r*e;return[n*xi(a),o-n*Ti(a)]}return a.invert=function(e,t){var n=o-t;return[ki(e,wi(n))/r*Ei(n),o-Ei(r)*Ai(e*e+n*n)]},a}function mc(e,t){var n=Ti(t),r=Ti(e)*n;return[n*xi(e)/r,xi(t)/r]}function yc(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?Xl:Vu({point:function(o,a){this.stream.point(o*e+n,a*t+r)}})}function bc(e,t){return[Ti(t)*xi(e),xi(t)]}function gc(e,t){var n=Ti(t),r=1+Ti(e)*n;return[n*xi(e)/r,xi(t)/r]}function vc(e,t){return[Si(Pi((mi+t)/2)),-e]}function wc(e,t){return e.parent===t.parent?1:2}function Mc(e,t){return e+t.x}function kc(e,t){return Math.max(e,t.y)}function Tc(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 Lc(e,t){var n,r,o,a,i,s=new xc(e),l=+e.value&&(s.value=e.value),u=[s];for(null==t&&(t=Oc);n=u.pop();)if(l&&(n.value=+n.data.value),(o=t(n.data))&&(i=o.length))for(n.children=new Array(i),a=i-1;a>=0;--a)u.push(r=n.children[a]=new xc(o[a])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Dc)}function Oc(e){return e.children}function Sc(e){e.data=e.data.data}function Dc(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function xc(e){this.data=e,this.depth=this.height=0,this.parent=null}uc.invert=sc((function(e){return e})),cc.invert=function(e,t){return[e,2*Mi(Oi(t))-mi]},_c.invert=_c,mc.invert=sc(Mi),bc.invert=sc(ji),gc.invert=sc((function(e){return 2*Mi(e)})),vc.invert=function(e,t){return[-t,2*Mi(Oi(e))-mi]},xc.prototype=Lc.prototype={constructor:xc,count:function(){return this.eachAfter(Tc)},each:function(e){var t,n,r,o,a=this,i=[a];do{for(t=i.reverse(),i=[];a=t.pop();)if(e(a),n=a.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 Lc(this).eachBefore(Sc)}};var Ec=Array.prototype.slice,Ac=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}(Ec.call(e))).length,a=[];r0&&n*n>r*r+o*o}function Ic(e,t){for(var n=0;nn*n+r*r}function Wc(e){var t=e._,n=e.next._,r=t.r+n.r,o=(t.x*n.r+n.x*t.r)/r,a=(t.y*n.r+n.y*t.r)/r;return o*o+a*a}function qc(e){this._=e,this.next=null,this.previous=null}function Bc(e){if(!(o=e.length))return 0;var t,n,r,o,a,i,s,l,u,c,d;if((t=e[0]).x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;Hc(n,t,r=e[2]),t=new qc(t),n=new qc(n),r=new qc(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*h,(p=Math.max(f/m,m/d))>_){c-=s;break}_=p}y.push(i={value:c,dice:l1?t:1)},n}(dd),_d=function e(t){function n(e,n,r,o,a){if((i=e._squarify)&&i.ratio===t)for(var i,s,l,u,c,d=-1,f=i.length,p=e.value;++d1?t:1)},n}(dd),hd=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function md(e,t){return e[0]-t[0]||e[1]-t[1]}function yd(e){for(var t=e.length,n=[0,1],r=2,o=2;o1&&hd(e[n[r-2]],e[n[r-1]],e[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}var bd=[].slice,gd={};function vd(e){this._size=e,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function wd(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,Td(e)}function Td(e){if(!e._active&&e._call){var t=e._data;e._data=void 0,e._call(e._error,t)}}function Ld(e){if(null==e)e=1/0;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new vd(e)}vd.prototype=Ld.prototype={constructor:vd,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=bd.call(arguments,1);return t.push(e),++this._waiting,this._tasks.push(t),wd(this),this},abort:function(){return null==this._error&&kd(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))},Td(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,Td(this),this}};var Od=function(){return Math.random()},Sd=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}(Od),Dd=function e(t){function n(e,n){var r,o;return e=null==e?0:+e,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*t()-1,a=2*t()-1,o=r*r+a*a}while(!o||o>1);return e+n*a*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(Od),xd=function e(t){function n(){var e=Dd.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(Od),Ed=function e(t){function n(e){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(o)try{t=o.call(n,l)}catch(e){return void i.call("error",n,e)}else t=l;i.call("load",n,t)}else i.call("error",n,e)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(e)&&(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=l.ontimeout=f:l.onreadystatechange=function(e){l.readyState>3&&f(e)},l.onprogress=function(e){i.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?(a=e,n):a},timeout:function(e){return arguments.length?(d=+e,n):d},user:function(e){return arguments.length<1?u:(u=null==e?null:e+"",n)},password:function(e){return arguments.length<1?c:(c=null==e?null:e+"",n)},response:function(e){return o=e,n},get:function(e,t){return n.send("GET",e,t)},post:function(e,t){return n.send("POST",e,t)},send:function(t,o,f){return l.open(t,e,!0,u,c),null==r||s.has("accept")||s.set("accept",r+",*/*"),l.setRequestHeader&&s.each((function(e,t){l.setRequestHeader(t,e)})),null!=r&&l.overrideMimeType&&l.overrideMimeType(r),null!=a&&(l.responseType=a),d>0&&(l.timeout=d),null==f&&"function"==typeof o&&(f=o,o=null),null!=f&&1===f.length&&(f=function(e){return function(t,n){e(null==t?n:null)}}(f)),null!=f&&n.on("error",f).on("load",(function(e){f(null,e)})),i.call("beforesend",n,l),l.send(null==o?null:o),n},abort:function(){return l.abort(),n},on:function(){var e=i.on.apply(i,arguments);return e===i?n:e}},null!=t){if("function"!=typeof t)throw new Error("invalid callback: "+t);return n.get(t)}return n},jd=function(e,t){return function(n,r){var o=Cd(n).mimeType(e).response(t);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return o.get(r)}return o}},Id=jd("text/html",(function(e){return document.createRange().createContextualFragment(e.responseText)})),Rd=jd("application/json",(function(e){return JSON.parse(e.responseText)})),Nd=jd("text/plain",(function(e){return e.responseText})),Yd=jd("application/xml",(function(e){var t=e.responseXML;if(!t)throw new Error("parse error");return t})),Hd=function(e,t){return function(n,r,o){arguments.length<3&&(o=r,r=null);var a=Cd(n).mimeType(e);return a.row=function(e){return arguments.length?a.response(zd(t,r=e)):r},a.row(r),o?a.get(o):a}};function zd(e,t){return function(n){return e(n.responseText,t)}}var Wd=Hd("text/csv",ka),qd=Hd("text/tab-separated-values",Da),Bd=Array.prototype,Fd=Bd.map,Gd=Bd.slice,Ud={name:"implicit"};function Vd(e){var t=fa(),n=[],r=Ud;function o(o){var a=o+"",i=t.get(a);if(!i){if(r!==Ud)return r;t.set(a,i=n.push(o))}return e[(i-1)%e.length]}return e=null==e?[]:Gd.call(e),o.domain=function(e){if(!arguments.length)return n.slice();n=[],t=fa();for(var r,a,i=-1,s=e.length;++i2?ef:$d,r=o=null,c}function c(t){return(r||(r=n(a,i,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(o||(o=n(i,a,Zd,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(a=Fd.call(e,Jd),u()):a.slice()},c.range=function(e){return arguments.length?(i=Gd.call(e),u()):i.slice()},c.rangeRound=function(e){return i=Gd.call(e),s=Hn,u()},c.clamp=function(e){return arguments.length?(l=!!e,u()):l},c.interpolate=function(e){return arguments.length?(s=e,u()):s},u()}function rf(t){var n=t.domain;return t.ticks=function(e){var t=n();return v(t[0],t[t.length-1],null==e?10:e)},t.tickFormat=function(t,r){return function(t,n,r){var o,a=t[0],i=t[t.length-1],s=M(a,i,null==n?10:n);switch((r=ti(null==r?",f":r)).type){case"s":var l=Math.max(Math.abs(a),Math.abs(i));return null!=r.precision||isNaN(o=ui(s,l))||(r.precision=o),e.formatPrefix(r,l);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=ci(s,Math.max(Math.abs(a),Math.abs(i))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=li(s))||(r.precision=o-2*("%"===r.type))}return e.format(r)}(n(),t,r)},t.nice=function(e){null==e&&(e=10);var r,o=n(),a=0,i=o.length-1,s=o[a],l=o[i];return l0?r=w(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,e):r<0&&(r=w(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,e)),r>0?(o[a]=Math.floor(s/r)*r,o[i]=Math.ceil(l/r)*r,n(o)):r<0&&(o[a]=Math.ceil(s*r)/r,o[i]=Math.floor(l*r)/r,n(o)),t},t}var of=function(e,t){var n,r=0,o=(e=e.slice()).length-1,a=e[r],i=e[o];return i0))return i;do{i.push(new Date(+n))}while(t(n,a),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 _f.setTime(+t),hf.setTime(+r),e(_f),e(hf),Math.floor(n(_f,hf))},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 yf=mf((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));yf.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?mf((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):yf:null};var bf=yf.range,gf=mf((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()})),vf=gf.range,wf=mf((function(e){e.setTime(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()})),Mf=wf.range,kf=mf((function(e){var t=6e4*e.getTimezoneOffset()%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()})),Tf=kf.range,Lf=mf((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5}),(function(e){return e.getDate()-1})),Of=Lf.range;function Sf(e){return mf((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-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}var Df=Sf(0),xf=Sf(1),Ef=Sf(2),Af=Sf(3),Pf=Sf(4),Cf=Sf(5),jf=Sf(6),If=Df.range,Rf=xf.range,Nf=Ef.range,Yf=Af.range,Hf=Pf.range,zf=Cf.range,Wf=jf.range,qf=mf((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()})),Bf=qf.range,Ff=mf((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()}));Ff.every=function(e){return isFinite(e=Math.floor(e))&&e>0?mf((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 Gf=Ff.range,Uf=mf((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()})),Vf=Uf.range,Xf=mf((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()})),Kf=Xf.range,Jf=mf((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})),Qf=Jf.range;function Zf(e){return mf((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)/6048e5}))}var $f=Zf(0),ep=Zf(1),tp=Zf(2),np=Zf(3),rp=Zf(4),op=Zf(5),ap=Zf(6),ip=$f.range,sp=ep.range,lp=tp.range,up=np.range,cp=rp.range,dp=op.range,fp=ap.range,pp=mf((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()})),_p=pp.range,hp=mf((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()}));hp.every=function(e){return isFinite(e=Math.floor(e))&&e>0?mf((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 mp=hp.range;function yp(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 bp(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 gp(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function vp(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,a=e.days,i=e.shortDays,s=e.months,l=e.shortMonths,u=Dp(o),c=xp(o),d=Dp(a),f=xp(a),p=Dp(i),_=xp(i),h=Dp(s),m=xp(s),y=Dp(l),b=xp(l),g={a:function(e){return i[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Fp,e:Fp,H:Gp,I:Up,j:Vp,L:Xp,m:Kp,M:Jp,p:function(e){return o[+(e.getHours()>=12)]},S:Qp,U:Zp,w:$p,W:e_,x:null,X:null,y:t_,Y:n_,Z:r_,"%":b_},v={a:function(e){return i[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:o_,e:o_,H:a_,I:i_,j:s_,L:l_,m:u_,M:c_,p:function(e){return o[+(e.getUTCHours()>=12)]},S:d_,U:f_,w:p_,W:__,x:null,X:null,y:h_,Y:m_,Z:y_,"%":b_},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=_[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=h.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return T(e,t,n,r)},d:Np,e:Np,H:Hp,I:Hp,j:Yp,L:qp,m:Rp,M:zp,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},S:Wp,U:Ap,w:Ep,W:Pp,x:function(e,t,r){return T(e,n,t,r)},X:function(e,t,n){return T(e,r,t,n)},y:jp,Y:Cp,Z:Ip,"%":Bp};function M(e,t){return function(n){var r,o,a,i=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s=l)return-1;if(37===(o=t.charCodeAt(i++))){if(o=t.charAt(i++),!(a=w[o in Mp?t.charAt(i++):o])||(r=a(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return g.x=M(n,g),g.X=M(r,g),g.c=M(t,g),v.x=M(n,v),v.X=M(r,v),v.c=M(t,v),{format:function(e){var t=M(e+="",g);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",yp);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e,bp);return t.toString=function(){return e},t}}}var wp,Mp={"-":"",_:" ",0:"0"},kp=/^\s*\d+/,Tp=/^%/,Lp=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function Op(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",a=o.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Ip(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 Rp(e,t,n){var r=kp.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Np(e,t,n){var r=kp.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Yp(e,t,n){var r=kp.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Hp(e,t,n){var r=kp.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zp(e,t,n){var r=kp.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Wp(e,t,n){var r=kp.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function qp(e,t,n){var r=kp.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bp(e,t,n){var r=Tp.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fp(e,t){return Op(e.getDate(),t,2)}function Gp(e,t){return Op(e.getHours(),t,2)}function Up(e,t){return Op(e.getHours()%12||12,t,2)}function Vp(e,t){return Op(1+Lf.count(Ff(e),e),t,3)}function Xp(e,t){return Op(e.getMilliseconds(),t,3)}function Kp(e,t){return Op(e.getMonth()+1,t,2)}function Jp(e,t){return Op(e.getMinutes(),t,2)}function Qp(e,t){return Op(e.getSeconds(),t,2)}function Zp(e,t){return Op(Df.count(Ff(e),e),t,2)}function $p(e){return e.getDay()}function e_(e,t){return Op(xf.count(Ff(e),e),t,2)}function t_(e,t){return Op(e.getFullYear()%100,t,2)}function n_(e,t){return Op(e.getFullYear()%1e4,t,4)}function r_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Op(t/60|0,"0",2)+Op(t%60,"0",2)}function o_(e,t){return Op(e.getUTCDate(),t,2)}function a_(e,t){return Op(e.getUTCHours(),t,2)}function i_(e,t){return Op(e.getUTCHours()%12||12,t,2)}function s_(e,t){return Op(1+Jf.count(hp(e),e),t,3)}function l_(e,t){return Op(e.getUTCMilliseconds(),t,3)}function u_(e,t){return Op(e.getUTCMonth()+1,t,2)}function c_(e,t){return Op(e.getUTCMinutes(),t,2)}function d_(e,t){return Op(e.getUTCSeconds(),t,2)}function f_(e,t){return Op($f.count(hp(e),e),t,2)}function p_(e){return e.getUTCDay()}function __(e,t){return Op(ep.count(hp(e),e),t,2)}function h_(e,t){return Op(e.getUTCFullYear()%100,t,2)}function m_(e,t){return Op(e.getUTCFullYear()%1e4,t,4)}function y_(){return"+0000"}function b_(){return"%"}function g_(t){return wp=vp(t),e.timeFormat=wp.format,e.timeParse=wp.parse,e.utcFormat=wp.utcFormat,e.utcParse=wp.utcParse,wp}g_({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 v_=Date.prototype.toISOString?function(e){return e.toISOString()}:e.utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),w_=+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");function M_(e){return new Date(e)}function k_(e){return e instanceof Date?+e:+new Date(+e)}function T_(e,t,r,o,a,i,s,l,u){var c=nf(Zd,Cn),d=c.invert,f=c.domain,p=u(".%L"),_=u(":%S"),h=u("%I:%M"),m=u("%I %p"),y=u("%a %d"),b=u("%b %d"),g=u("%B"),v=u("%Y"),w=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[a,1,36e5],[a,3,108e5],[a,6,216e5],[a,12,432e5],[o,1,864e5],[o,2,1728e5],[r,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function k(n){return(s(n)1?0:e<-1?V_:Math.acos(e)}function Q_(e){return e>=1?X_:e<=-1?-X_:Math.asin(e)}function Z_(e){return e.innerRadius}function $_(e){return e.outerRadius}function eh(e){return e.startAngle}function th(e){return e.endAngle}function nh(e){return e&&e.padAngle}function rh(e,t,n,r,o,a,i,s){var l=n-e,u=r-t,c=i-o,d=s-a,f=(c*(t-a)-d*(e-o))/(d*l-c*u);return[e+f*l,t+f*u]}function oh(e,t,n,r,o,a,i){var s=e-n,l=t-r,u=(i?a:-a)/U_(s*s+l*l),c=u*l,d=-u*s,f=e+c,p=t+d,_=n+c,h=r+d,m=(f+_)/2,y=(p+h)/2,b=_-f,g=h-p,v=b*b+g*g,w=o-a,M=f*h-_*p,k=(g<0?-1:1)*U_(B_(0,w*w*v-M*M)),T=(M*g-b*k)/v,L=(-M*b-g*k)/v,O=(M*g+b*k)/v,S=(-M*b+g*k)/v,D=T-m,x=L-y,E=O-m,A=S-y;return D*D+x*x>E*E+A*A&&(T=O,L=S),{cx:T,cy:L,x01:-c,y01:-d,x11:T*(o/w-1),y11:L*(o/w-1)}}function ah(e){this._context=e}ah.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 ih=function(e){return new ah(e)};function sh(e){return e[0]}function lh(e){return e[1]}var uh=function(){var e=sh,t=lh,n=H_(!0),r=null,o=ih,a=null;function i(i){var s,l,u,c=i.length,d=!1;for(null==r&&(a=o(u=aa())),s=0;s<=c;++s)!(s=c;--d)s.point(m[d],y[d]);s.lineEnd(),s.areaEnd()}h&&(m[u]=+e(f,u,l),y[u]=+n(f,u,l),s.point(t?+t(f,u,l):m[u],r?+r(f,u,l):y[u]))}if(p)return s=null,p+""||null}function u(){return uh().defined(o).curve(i).context(a)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:H_(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:H_(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:H_(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:H_(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:H_(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:H_(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(o="function"==typeof e?e:H_(!!e),l):o},l.curve=function(e){return arguments.length?(i=e,null!=a&&(s=i(a)),l):i},l.context=function(e){return arguments.length?(null==e?a=s=null:s=i(a=e),l):a},l},dh=function(e,t){return te?1:t>=e?0:NaN},fh=function(e){return e},ph=hh(ih);function _h(e){this._curve=e}function hh(e){function t(t){return new _h(e(t))}return t._curve=e,t}function mh(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(hh(e)):t()._curve},e}_h.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 yh=function(){return mh(uh().curve(ph))},bh=function(){var e=ch().curve(ph),t=e.curve,n=e.lineX0,r=e.lineX1,o=e.lineY0,a=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 mh(n())},delete e.lineX0,e.lineEndAngle=function(){return mh(r())},delete e.lineX1,e.lineInnerRadius=function(){return mh(o())},delete e.lineY0,e.lineOuterRadius=function(){return mh(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(hh(e)):t()._curve},e},gh=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},vh=Array.prototype.slice;function wh(e){return e.source}function Mh(e){return e.target}function kh(e){var t=wh,n=Mh,r=sh,o=lh,a=null;function i(){var i,s=vh.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||(a=i=aa()),e(a,+r.apply(this,(s[0]=l,s)),+o.apply(this,s),+r.apply(this,(s[0]=u,s)),+o.apply(this,s)),i)return a=null,i+""||null}return i.source=function(e){return arguments.length?(t=e,i):t},i.target=function(e){return arguments.length?(n=e,i):n},i.x=function(e){return arguments.length?(r="function"==typeof e?e:H_(+e),i):r},i.y=function(e){return arguments.length?(o="function"==typeof e?e:H_(+e),i):o},i.context=function(e){return arguments.length?(a=null==e?null:e,i):a},i}function Th(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,o,r,o)}function Lh(e,t,n,r,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,r,n,r,o)}function Oh(e,t,n,r,o){var a=gh(t,n),i=gh(t,n=(n+o)/2),s=gh(r,n),l=gh(r,o);e.moveTo(a[0],a[1]),e.bezierCurveTo(i[0],i[1],s[0],s[1],l[0],l[1])}var Sh={draw:function(e,t){var n=Math.sqrt(t/V_);e.moveTo(n,0),e.arc(0,0,n,0,K_)}},Dh={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()}},xh=Math.sqrt(1/3),Eh=2*xh,Ah={draw:function(e,t){var n=Math.sqrt(t/Eh),r=n*xh;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Ph=Math.sin(V_/10)/Math.sin(7*V_/10),Ch=Math.sin(K_/10)*Ph,jh=-Math.cos(K_/10)*Ph,Ih={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=Ch*n,o=jh*n;e.moveTo(0,-n),e.lineTo(r,o);for(var a=1;a<5;++a){var i=K_*a/5,s=Math.cos(i),l=Math.sin(i);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},Rh={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},Nh=Math.sqrt(3),Yh={draw:function(e,t){var n=-Math.sqrt(t/(3*Nh));e.moveTo(0,2*n),e.lineTo(-Nh*n,-n),e.lineTo(Nh*n,-n),e.closePath()}},Hh=-.5,zh=Math.sqrt(3)/2,Wh=1/Math.sqrt(12),qh=3*(Wh/2+1),Bh={draw:function(e,t){var n=Math.sqrt(t/qh),r=n/2,o=n*Wh,a=r,i=n*Wh+n,s=-a,l=i;e.moveTo(r,o),e.lineTo(a,i),e.lineTo(s,l),e.lineTo(Hh*r-zh*o,zh*r+Hh*o),e.lineTo(Hh*a-zh*i,zh*a+Hh*i),e.lineTo(Hh*s-zh*l,zh*s+Hh*l),e.lineTo(Hh*r+zh*o,Hh*o-zh*r),e.lineTo(Hh*a+zh*i,Hh*i-zh*a),e.lineTo(Hh*s+zh*l,Hh*l-zh*s),e.closePath()}},Fh=[Sh,Dh,Ah,Rh,Ih,Yh,Bh],Gh=function(){};function Uh(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 Vh(e){this._context=e}function Xh(e){this._context=e}function Kh(e){this._context=e}function Jh(e,t){this._basis=new Vh(e),this._beta=t}Vh.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:Uh(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:Uh(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Xh.prototype={areaStart:Gh,areaEnd:Gh,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:Uh(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Kh.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:Uh(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Jh.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],a=t[0],i=e[n]-o,s=t[n]-a,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(o+r*i),this._beta*t[l]+(1-this._beta)*(a+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Qh=function e(t){function n(e){return 1===t?new Vh(e):new Jh(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Zh(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 $h(e,t){this._context=e,this._k=(1-t)/6}$h.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:Zh(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:Zh(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 $h(e,t)}return n.tension=function(t){return e(+t)},n}(0);function tm(e,t){this._context=e,this._k=(1-t)/6}tm.prototype={areaStart:Gh,areaEnd:Gh,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:Zh(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 nm=function e(t){function n(e){return new tm(e,t)}return n.tension=function(t){return e(+t)},n}(0);function rm(e,t){this._context=e,this._k=(1-t)/6}rm.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:Zh(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 om=function e(t){function n(e){return new rm(e,t)}return n.tension=function(t){return e(+t)},n}(0);function am(e,t,n){var r=e._x1,o=e._y1,a=e._x2,i=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,o=(o*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,i=(i*u+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,o,a,i,e._x2,e._y2)}function im(e,t){this._context=e,this._alpha=t}im.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:am(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 im(e,t):new $h(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function lm(e,t){this._context=e,this._alpha=t}lm.prototype={areaStart:Gh,areaEnd:Gh,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:am(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 um=function e(t){function n(e){return t?new lm(e,t):new tm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function cm(e,t){this._context=e,this._alpha=t}cm.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:am(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 dm=function e(t){function n(e){return t?new cm(e,t):new rm(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function fm(e){this._context=e}function pm(e){return e<0?-1:1}function _m(e,t,n){var r=e._x1-e._x0,o=t-e._x1,a=(e._y1-e._y0)/(r||o<0&&-0),i=(n-e._y1)/(o||r<0&&-0),s=(a*o+i*r)/(r+o);return(pm(a)+pm(i))*Math.min(Math.abs(a),Math.abs(i),.5*Math.abs(s))||0}function hm(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function mm(e,t,n){var r=e._x0,o=e._y0,a=e._x1,i=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,o+s*t,a-s,i-s*n,a,i)}function ym(e){this._context=e}function bm(e){this._context=new gm(e)}function gm(e){this._context=e}function vm(e){this._context=e}function wm(e){var t,n,r=e.length-1,o=new Array(r),a=new Array(r),i=new Array(r);for(o[0]=0,a[0]=2,i[0]=e[0]+2*e[1],t=1;t=0;--t)o[t]=(i[t]-o[t+1])/a[t];for(a[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 km=function(e,t){if((o=e.length)>1)for(var n,r,o,a=1,i=e[t[0]],s=i.length;a=0;)n[t]=t;return n};function Lm(e,t){return e[t]}var Om=function(e){var t=e.map(Sm);return Tm(e).sort((function(e,n){return t[e]-t[n]}))};function Sm(e){for(var t,n=0,r=-1,o=e.length;++r0)){if(a/=f,f<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=r-l,f||!(a<0)){if(a/=f,f<0){if(a>d)return;a>c&&(c=a)}else if(f>0){if(a0)){if(a/=p,p<0){if(a0){if(a>d)return;a>c&&(c=a)}if(a=o-u,p||!(a<0)){if(a/=p,p<0){if(a>d)return;a>c&&(c=a)}else if(p>0){if(a0||d<1)||(c>0&&(e[0]=[l+c*f,u+c*p]),d<1&&(e[1]=[l+d*f,u+d*p]),!0)}}}}}function zm(e,t,n,r,o){var a=e[1];if(a)return!0;var i,s,l=e[0],u=e.left,c=e.right,d=u[0],f=u[1],p=c[0],_=c[1],h=(d+p)/2,m=(f+_)/2;if(_===f){if(h=r)return;if(d>p){if(l){if(l[1]>=o)return}else l=[h,n];a=[h,o]}else{if(l){if(l[1]1)if(d>p){if(l){if(l[1]>=o)return}else l=[(n-s)/i,n];a=[(o-s)/i,o]}else{if(l){if(l[1]=r)return}else l=[t,i*t+s];a=[r,i*r+s]}else{if(l){if(l[0]=-ly)){var p=l*l+u*u,_=c*c+d*d,h=(d*p-u*_)/f,m=(l*_-c*p)/f,y=Gm.pop()||new Um;y.arc=e,y.site=o,y.x=h+i,y.y=(y.cy=m+s)+Math.sqrt(h*h+m*m),e.circle=y;for(var b=null,g=ay._;g;)if(y.ysy)s=s.L;else{if(!((o=a-ny(s,i))>sy)){r>-sy?(t=s.P,n=s):o>-sy?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){oy[e.index]={site:e,halfedges:[]}}(e);var l=Qm(e);if(ry.insert(t,l),t||n){if(t===n)return Xm(t),n=Qm(t.site),ry.insert(l,n),l.edge=n.edge=Rm(t.site,l.site),Vm(t),void Vm(n);if(n){Xm(t),Xm(n);var u=t.site,c=u[0],d=u[1],f=e[0]-c,p=e[1]-d,_=n.site,h=_[0]-c,m=_[1]-d,y=2*(f*m-p*h),b=f*f+p*p,g=h*h+m*m,v=[(m*b-p*g)/y+c,(f*g-h*b)/y+d];Ym(n.edge,u,_,v),l.edge=Rm(u,e,null,v),n.edge=Rm(e,_,null,v),Vm(t),Vm(n)}else l.edge=Rm(t.site,l.site)}}function ty(e,t){var n=e.site,r=n[0],o=n[1],a=o-t;if(!a)return r;var i=e.P;if(!i)return-1/0;var s=(n=i.site)[0],l=n[1],u=l-t;if(!u)return s;var c=s-r,d=1/a-1/u,f=c/u;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*u)-l+u/2+o-a/2)))/d+r:(r+s)/2}function ny(e,t){var n=e.N;if(n)return ty(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var ry,oy,ay,iy,sy=1e-6,ly=1e-12;function uy(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function cy(e,t){return t[1]-e[1]||t[0]-e[0]}function dy(e,t){var n,r,o,a=e.sort(cy).pop();for(iy=[],oy=new Array(e.length),ry=new Am,ay=new Am;;)if(o=Fm,a&&(!o||a[1]sy||Math.abs(o[0][1]-o[1][1])>sy)||delete iy[a]}(i,s,l,u),function(e,t,n,r){var o,a,i,s,l,u,c,d,f,p,_,h,m=oy.length,y=!0;for(o=0;osy||Math.abs(h-f)>sy)&&(l.splice(s,0,iy.push(Nm(i,p,Math.abs(_-e)sy?[e,Math.abs(d-e)sy?[Math.abs(f-r)sy?[n,Math.abs(d-n)sy?[Math.abs(f-t)=s)return null;var l=e-o.site[0],u=t-o.site[1],c=l*l+u*u;do{o=a.cells[r=i],i=null,o.halfedges.forEach((function(n){var r=a.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var l=e-s[0],u=t-s[1],d=l*l+u*u;de?1:t>=e?0:NaN},e.deviation=u,e.extent=c,e.histogram=function(){var e=h,t=c,n=k;function r(r){var a,i,s=r.length,l=new Array(s);for(a=0;ad;)f.pop(),--p;var _,h=new Array(p+1);for(a=0;a<=p;++a)(_=h[a]=[]).x0=a>0?f[a-1]:c,_.x1=a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r},e.mean=function(e,t){var n,r=e.length,o=r,a=-1,i=0;if(null==t)for(;++a=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var l,u,c,d=-1,f=n.length,p=r[o++],_=fa(),h=i();++dr.length)return n;var i,s=o[a-1];return null!=t&&a>=r.length?i=n.entries():(i=[],n.each((function(t,n){i.push({key:n,values:e(t,a)})}))),null!=s?i.sort((function(e,t){return s(e.key,t.key)})):i}(a(e,0,ha,ma),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=ga,e.map=fa,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=Rt,e.hsl=zt,e.lab=Xt,e.hcl=tn,e.cubehelix=pn,e.dispatch=Y,e.drag=function(){var t,n,r,o,a=pt,i=_t,s=ht,l={},u=Y("start","drag","end"),c=0,d=0;function f(e){e.on("mousedown.drag",p).filter(mt).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&&a.apply(this,arguments)){var s=g("mouse",i.apply(this,arguments),de,this,arguments);s&&(at(e.event.view).on("mousemove.drag",_,!0).on("mouseup.drag",h,!0),ut(e.event.view),st(),r=!1,t=e.event.clientX,n=e.event.clientY,s("start"))}}function _(){if(lt(),!r){var o=e.event.clientX-t,a=e.event.clientY-n;r=o*o+a*a>d}l.mouse("drag")}function h(){at(e.event.view).on("mousemove.drag mouseup.drag",null),ct(e.event.view,r),lt(),l.mouse("end")}function m(){if(a.apply(this,arguments)){var t,n,r=e.event.changedTouches,o=i.apply(this,arguments),s=r.length;for(t=0;tl+p||ou+p||as.index){var _=l-i.x-i.vx,h=u-i.y-i.vy,m=_*_+h*h;me.r&&(e.r=e[t].r)}function s(){if(t){var r,o,a=t.length;for(n=new Array(a),r=0;r=i)){(e.data!==t||e.next)&&(0===c&&(p+=(c=Ca())*c),0===d&&(p+=(d=Ca())*d),p1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var o,a,i,s,l,u=0,c=e.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(e,n),t):u.on(e)}}},e.forceX=function(e){var t,n,r,o=Pa(.1);function a(e){for(var o,a=0,i=t.length;aSs(r[0],r[1])&&(r[1]=o[1]),Ss(o[0],r[1])>Ss(r[0],r[1])&&(r[0]=o[0])):a.push(r=o);for(i=-1/0,t=0,r=a[n=a.length-1];t<=n;r=o,++t)o=a[t],(s=Ss(r[1],o[0]))>i&&(i=s,Vi=o[0],Ki=r[1])}return ms=ys=null,Vi===1/0||Xi===1/0?[[NaN,NaN],[NaN,NaN]]:[[Vi,Xi],[Ki,Ji]]},e.geoCentroid=function(e){Es=As=Ps=Cs=js=Is=Rs=Ns=Ys=Hs=zs=0,ts(e,Us);var t=Ys,n=Hs,r=zs,o=t*t+n*n+r*r;return o<1e-12&&(t=Is,n=Rs,r=Ns,As<1e-6&&(t=Ps,n=Cs,r=js),(o=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[ki(n,t)*gi,ji(r/Ai(o))*gi]},e.geoCircle=function(){var e,t,n=rl([0,0]),r=rl(90),o=rl(6),a={point:function(n,r){e.push(n=t(n,r)),n[0]*=gi,n[1]*=gi}};function i(){var i=n.apply(this,arguments),s=r.apply(this,arguments)*vi,l=o.apply(this,arguments)*vi;return e=[],t=il(-i[0]*vi,-i[1]*vi,0).invert,dl(a,s,l,1),i={type:"Polygon",coordinates:[e]},e=t=null,i}return i.center=function(e){return arguments.length?(n="function"==typeof e?e:rl([+e[0],+e[1]]),i):n},i.radius=function(e){return arguments.length?(r="function"==typeof e?e:rl(+e),i):r},i.precision=function(e){return arguments.length?(o="function"==typeof e?e:rl(+e),i):o},i},e.geoClipExtent=function(){var e,t,n,r=0,o=0,a=960,i=500;return n={stream:function(n){return e&&t===n?e:e=bl(r,o,a,i)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],o=+s[0][1],a=+s[1][0],i=+s[1][1],e=t=null,n):[[r,o],[a,i]]}}},e.geoContains=function(e,t){return(e&&Cl.hasOwnProperty(e.type)?Cl[e.type]:Il)(e,t)},e.geoDistance=Pl,e.geoGraticule=Bl,e.geoGraticule10=function(){return Bl()()},e.geoInterpolate=function(e,t){var n=e[0]*vi,r=e[1]*vi,o=t[0]*vi,a=t[1]*vi,i=Ti(r),s=xi(r),l=Ti(a),u=xi(a),c=i*Ti(n),d=i*xi(n),f=l*Ti(o),p=l*xi(o),_=2*ji(Ai(Ii(a-r)+i*l*Ii(o-n))),h=xi(_),m=_?function(e){var t=xi(e*=_)/h,n=xi(_-e)/h,r=n*c+t*f,o=n*d+t*p,a=n*s+t*u;return[ki(o,r)*gi,ki(a,Ai(r*r+o*o))*gi]}:function(){return[n*gi,r*gi]};return m.distance=_,m},e.geoLength=xl,e.geoPath=function(e,t){var n,r,o=4.5;function a(e){return e&&("function"==typeof o&&r.pointRadius(+o.apply(this,arguments)),ts(e,n(r))),r.result()}return a.area=function(e){return ts(e,n(Ql)),Ql.result()},a.measure=function(e){return ts(e,n(Nu)),Nu.result()},a.bounds=function(e){return ts(e,n(cu)),cu.result()},a.centroid=function(e){return ts(e,n(vu)),vu.result()},a.projection=function(t){return arguments.length?(n=null==t?(e=null,Xl):(e=t).stream,a):e},a.context=function(e){return arguments.length?(r=null==e?(t=null,new zu):new Eu(t=e),"function"!=typeof o&&r.pointRadius(o),a):t},a.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(r.pointRadius(+e),+e),a):o},a.projection(e).context(t)},e.geoAlbers=ac,e.geoAlbersUsa=function(){var e,t,n,r,o,a,i=ac(),s=oc().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=oc().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(e,t){a=[e,t]}};function c(e){var t=e[0],i=e[1];return a=null,n.point(t,i),a||(r.point(t,i),a)||(o.point(t,i),a)}function d(){return e=t=null,c}return c.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?s:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:i).invert(e)},c.stream=function(n){return e&&t===n?e:(r=[i.stream(t=n),s.stream(n),l.stream(n)],o=r.length,e={point:function(e,t){for(var n=-1;++n2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)},e.geoTransverseMercatorRaw=vc,e.geoRotation=cl,e.geoStream=ts,e.geoTransform=function(e){return{stream:Vu(e)}},e.cluster=function(){var e=wc,t=1,n=1,r=!1;function o(o){var a,i=0;o.eachAfter((function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Mc,0)/e.length}(n),t.y=function(e){return 1+e.reduce(kc,0)}(n)):(t.x=a?i+=e(t,a):0,t.y=0,a=t)}));var s=function(e){for(var t;t=e.children;)e=t[0];return e}(o),l=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(o),u=s.x-e(s,l)/2,c=l.x+e(l,s)/2;return o.eachAfter(r?function(e){e.x=(e.x-o.x)*t,e.y=(o.y-e.y)*n}:function(e){e.x=(e.x-u)/(c-u)*t,e.y=(1-(o.y?e.y/o.y:1))*n})}return o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o},e.hierarchy=Lc,e.pack=function(){var e=null,t=1,n=1,r=Uc;function o(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Kc(e)).eachAfter(Jc(r,.5)).eachBefore(Qc(1)):o.eachBefore(Kc(Xc)).eachAfter(Jc(Uc,1)).eachAfter(Jc(r,o.r/Math.min(t,n))).eachBefore(Qc(Math.min(t,n)/(2*o.r))),o}return o.radius=function(t){return arguments.length?(e=Fc(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:Vc(+e),o):r},o},e.packSiblings=function(e){return Bc(e),e},e.packEnclose=Ac,e.partition=function(){var e=1,t=1,n=0,r=!1;function o(o){var a=o.height+1;return o.x0=o.y0=n,o.x1=e,o.y1=t/a,o.eachBefore(function(e,t){return function(r){r.children&&$c(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var o=r.x0,a=r.y0,i=r.x1-n,s=r.y1-n;i0)throw new Error("cycle");return a}return n.id=function(t){return arguments.length?(e=Gc(t),n):e},n.parentId=function(e){return arguments.length?(t=Gc(e),n):t},n},e.tree=function(){var e=od,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,a,i=new ud(e,0),s=[i];t=s.pop();)if(r=t._.children)for(t.children=new Array(a=r.length),o=a-1;o>=0;--o)s.push(n=t.children[o]=new ud(r[o],o)),n.parent=t;return(i.parent=new ud(null,0)).children=[i],i}(o);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(i),r)o.eachBefore(s);else{var u=o,c=o,d=o;o.eachBefore((function(e){e.xc.x&&(c=e),e.depth>d.depth&&(d=e)}));var f=u===c?1:e(u,c)/2,p=f-u.x,_=t/(c.x+f+p),h=n/(d.depth||1);o.eachBefore((function(e){e.x=(e.x+p)*_,e.y=e.depth*h}))}return o}function a(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,a=o.length;--a>=0;)(t=o[a]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var a=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-a):t.z=a}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,a=t,i=t,s=n,l=a.parent.children[0],u=a.m,c=i.m,d=s.m,f=l.m;s=id(s),a=ad(a),s&&a;)l=ad(l),(i=id(i)).a=t,(o=s.z+d-a.z-u+e(s._,a._))>0&&(sd(ld(s,t,r),t,o),u+=o,c+=o),d+=s.m,u+=a.m,f+=l.m,c+=i.m;s&&!id(i)&&(i.t=s,i.m+=d-c),a&&!ad(l)&&(l.t=a,l.m+=u-f,r=t)}return r}(t,o,t.parent.A||r[0])}function i(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=pd,t=!1,n=1,r=1,o=[0],a=Uc,i=Uc,s=Uc,l=Uc,u=Uc;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),o=[0],t&&e.eachBefore(Zc),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=a,c.x1=i,void(c.y1=l)}for(var d=u[t],f=r/2+d,p=t+1,_=n-1;p<_;){var h=p+_>>>1;u[h]l-a){var b=(o*y+i*m)/r;e(t,p,m,o,a,b,l),e(p,n,y,b,a,i,l)}else{var g=(a*y+l*m)/r;e(t,p,m,o,a,i,g),e(p,n,y,o,g,i,l)}}(0,l,e.value,t,n,r,o)},e.treemapDice=$c,e.treemapSlice=cd,e.treemapSliceDice=function(e,t,n,r,o){(1&e.depth?cd:$c)(e,t,n,r,o)},e.treemapSquarify=pd,e.treemapResquarify=_d,e.interpolate=Yn,e.interpolateArray=An,e.interpolateBasis=mn,e.interpolateBasisClosed=yn,e.interpolateDate=Pn,e.interpolateNumber=Cn,e.interpolateObject=jn,e.interpolateRound=Hn,e.interpolateString=Nn,e.interpolateTransformCss=Fn,e.interpolateTransformSvg=Gn,e.interpolateZoom=Xn,e.interpolateRgb=kn,e.interpolateRgbBasis=xn,e.interpolateRgbBasisClosed=En,e.interpolateHsl=Jn,e.interpolateHslLong=Qn,e.interpolateLab=function(e,t){var n=Mn((e=Xt(e)).l,(t=Xt(t)).l),r=Mn(e.a,t.a),o=Mn(e.b,t.b),a=Mn(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=o(t),e.opacity=a(t),e+""}},e.interpolateHcl=$n,e.interpolateHclLong=er,e.interpolateCubehelix=or,e.interpolateCubehelixLong=ar,e.quantize=function(e,t){for(var n=new Array(t),r=0;r=0;--t)u.push(e[r[a[t]][2]]);for(t=+s;ts!=u>s&&i<(l-n)*(s-r)/(u-r)+n&&(c=!c),l=n,u=r;return c},e.polygonLength=function(e){for(var t,n,r=-1,o=e.length,a=e[o-1],i=a[0],s=a[1],l=0;++r0){for(;fl)break;h.push(d)}}else for(;f=1;--c)if(!((d=u*c)l)break;h.push(d)}}else h=v(f,p,Math.min(p-f,_)).map(i);return t?h.reverse():h},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/i(Math.round(a(e)));return t*o0?a[t-1]:n[0],t=r?[a[r-1],n]:[a[o-1],a[o]]},s.copy=function(){return e().domain([t,n]).range(i)},rf(s)},e.scaleThreshold=function e(){var t=[.5],n=[0,1],r=1;function a(e){if(e<=e)return n[o(t,e,0,r)]}return a.domain=function(e){return arguments.length?(t=Gd.call(e),r=Math.min(t.length,n.length-1),a):t.slice()},a.range=function(e){return arguments.length?(n=Gd.call(e),r=Math.min(t.length,n.length-1),a):n.slice()},a.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},a.copy=function(){return e().domain(t).range(n)},a},e.scaleTime=function(){return T_(Ff,qf,Df,Lf,kf,wf,gf,yf,e.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},e.scaleUtc=function(){return T_(hp,pp,$f,Jf,Xf,Uf,gf,yf,e.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},e.schemeCategory10=O_,e.schemeCategory20b=S_,e.schemeCategory20c=D_,e.schemeCategory20=x_,e.interpolateCubehelixDefault=E_,e.interpolateRainbow=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return C_.h=360*e-100,C_.s=1.5-1.5*t,C_.l=.8-.9*t,C_+""},e.interpolateWarm=A_,e.interpolateCool=P_,e.interpolateViridis=I_,e.interpolateMagma=R_,e.interpolateInferno=N_,e.interpolatePlasma=Y_,e.scaleSequential=function e(t){var n=0,r=1,o=!1;function a(e){var a=(e-n)/(r-n);return t(o?Math.max(0,Math.min(1,a)):a)}return a.domain=function(e){return arguments.length?(n=+e[0],r=+e[1],a):[n,r]},a.clamp=function(e){return arguments.length?(o=!!e,a):o},a.interpolator=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return e(t).domain([n,r]).clamp(o)},rf(a)},e.creator=X,e.local=J,e.matcher=te,e.mouse=de,e.namespace=G,e.namespaces=F,e.select=at,e.selectAll=function(e){return"string"==typeof e?new rt([document.querySelectorAll(e)],[document.documentElement]):new rt([null==e?[]:e],nt)},e.selection=ot,e.selector=pe,e.selectorAll=he,e.style=Ae,e.touch=it,e.touches=function(e,t){null==t&&(t=ue().touches);for(var n=0,r=t?t.length:0,o=new Array(r);nf;if(s||(s=l=aa()),d1e-12)if(_>K_-1e-12)s.moveTo(d*q_(f),d*G_(f)),s.arc(0,0,d,f,p,!h),c>1e-12&&(s.moveTo(c*q_(p),c*G_(p)),s.arc(0,0,c,p,f,h));else{var m,y,b=f,g=p,v=f,w=p,M=_,k=_,T=i.apply(this,arguments)/2,L=T>1e-12&&(r?+r.apply(this,arguments):U_(c*c+d*d)),O=F_(z_(d-c)/2,+n.apply(this,arguments)),S=O,D=O;if(L>1e-12){var x=Q_(L/c*G_(T)),E=Q_(L/d*G_(T));(M-=2*x)>1e-12?(v+=x*=h?1:-1,w-=x):(M=0,v=w=(f+p)/2),(k-=2*E)>1e-12?(b+=E*=h?1:-1,g-=E):(k=0,b=g=(f+p)/2)}var A=d*q_(b),P=d*G_(b),C=c*q_(w),j=c*G_(w);if(O>1e-12){var I=d*q_(g),R=d*G_(g),N=c*q_(v),Y=c*G_(v);if(_1e-12?rh(A,P,N,Y,I,R,C,j):[C,j],z=A-H[0],W=P-H[1],q=I-H[0],B=R-H[1],F=1/G_(J_((z*q+W*B)/(U_(z*z+W*W)*U_(q*q+B*B)))/2),G=U_(H[0]*H[0]+H[1]*H[1]);S=F_(O,(c-G)/(F-1)),D=F_(O,(d-G)/(F+1))}}k>1e-12?D>1e-12?(m=oh(N,Y,A,P,d,D,h),y=oh(I,R,C,j,d,D,h),s.moveTo(m.cx+m.x01,m.cy+m.y01),D1e-12&&M>1e-12?S>1e-12?(m=oh(C,j,I,R,c,-S,h),y=oh(A,P,N,Y,c,-S,h),s.lineTo(m.cx+m.x01,m.cy+m.y01),S0&&(p+=d);for(null!=t?_.sort((function(e,n){return t(h[e],h[n])})):null!=n&&_.sort((function(e,t){return n(i[e],i[t])})),s=0,u=p?(y-f*g)/p:0;s0?d*u:0)+g,h[l]={data:i[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:b};return h}return i.value=function(t){return arguments.length?(e="function"==typeof t?t:H_(+t),i):e},i.sortValues=function(e){return arguments.length?(t=e,n=null,i):t},i.sort=function(e){return arguments.length?(n=e,t=null,i):n},i.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:H_(+e),i):r},i.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:H_(+e),i):o},i.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:H_(+e),i):a},i},e.areaRadial=bh,e.radialArea=bh,e.lineRadial=yh,e.radialLine=yh,e.pointRadial=gh,e.linkHorizontal=function(){return kh(Th)},e.linkVertical=function(){return kh(Lh)},e.linkRadial=function(){var e=kh(Oh);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},e.symbol=function(){var e=H_(Sh),t=H_(64),n=null;function r(){var r;if(n||(n=r=aa()),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:H_(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:H_(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},e.symbols=Fh,e.symbolCircle=Sh,e.symbolCross=Dh,e.symbolDiamond=Ah,e.symbolSquare=Rh,e.symbolStar=Ih,e.symbolTriangle=Yh,e.symbolWye=Bh,e.curveBasisClosed=function(e){return new Xh(e)},e.curveBasisOpen=function(e){return new Kh(e)},e.curveBasis=function(e){return new Vh(e)},e.curveBundle=Qh,e.curveCardinalClosed=nm,e.curveCardinalOpen=om,e.curveCardinal=em,e.curveCatmullRomClosed=um,e.curveCatmullRomOpen=dm,e.curveCatmullRom=sm,e.curveLinearClosed=function(e){return new fm(e)},e.curveLinear=ih,e.curveMonotoneX=function(e){return new ym(e)},e.curveMonotoneY=function(e){return new bm(e)},e.curveNatural=function(e){return new vm(e)},e.curveStep=function(e){return new Mm(e,.5)},e.curveStepAfter=function(e){return new Mm(e,1)},e.curveStepBefore=function(e){return new Mm(e,0)},e.stack=function(){var e=H_([]),t=Tm,n=km,r=Lm;function o(o){var a,i,s=e.apply(this,arguments),l=o.length,u=s.length,c=new Array(u);for(a=0;a0){for(var n,r,o,a=0,i=e[0].length;a1)for(var n,r,o,a,i,s,l=0,u=e[t[0]].length;l=0?(r[0]=a,r[1]=a+=o):o<0?(r[1]=i,r[0]=i+=o):r[0]=a},e.stackOffsetNone=km,e.stackOffsetSilhouette=function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],a=o.length;r0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,a=0,i=1;i1&&n.name===t)return new Qr([[e]],ko,t,+r);return null},e.interrupt=xr,e.voronoi=function(){var e=xm,t=Em,n=null;function r(r){return new dy(r.map((function(n,o){var a=[Math.round(e(n,o,r)/sy)*sy,Math.round(t(n,o,r)/sy)*sy];return a.index=o,a.data=n,a})),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:Dm(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:Dm(+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=gy,o=vy,a=My,i=0,s=1/0,l=-s,u=s,c=l,d=u,f=250,p=Xn,_=[],h=Y("start","zoom","end"),m=0;function y(e){e.property("__zoom",wy).on("wheel.zoom",L).on("mousedown.zoom",O).on("dblclick.zoom",S).filter(ky).on("touchstart.zoom",D).on("touchmove.zoom",x).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function b(e,t){return(t=Math.max(i,Math.min(s,t)))===e.k?e:new _y(t,e.x,e.y)}function g(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 _y(e.k,r,o)}function v(e,t){var n=e.invertX(t[0][0])-l,r=e.invertX(t[1][0])-u,o=e.invertY(t[0][1])-c,a=e.invertY(t[1][1])-d;return e.translate(r>n?(n+r)/2:Math.min(0,n)||Math.max(0,r),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function M(e,t,n){e.on("start.zoom",(function(){k(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){k(this,arguments).end()})).tween("zoom",(function(){var e=this,r=arguments,a=k(e,r),i=o.apply(e,r),s=n||w(i),l=Math.max(i[1][0]-i[0][0],i[1][1]-i[0][1]),u=e.__zoom,c="function"==typeof t?t.apply(e,r):t,d=p(u.invert(s).concat(l/u.k),c.invert(s).concat(l/c.k));return function(e){if(1===e)e=c;else{var t=d(e),n=l/t[2];e=new _y(n,s[0]-t[0]*n,s[1]-t[1]*n)}a.zoom(null,e)}}))}function k(e,t){for(var n,r=0,o=_.length;rm}t.zoom("mouse",v(g(t.that.__zoom,t.mouse[0]=de(t.that),t.mouse[1]),t.extent))}function u(){o.on("mousemove.zoom mouseup.zoom",null),ct(e.event.view,t.moved),by(),t.end()}}function S(){if(r.apply(this,arguments)){var t=this.__zoom,n=de(this),a=t.invert(n),i=t.k*(e.event.shiftKey?.5:2),s=v(g(b(t,i),n,a),o.apply(this,arguments));by(),f>0?at(this).transition().duration(f).call(M,s,n):at(this).call(y.transform,s)}}function D(){if(r.apply(this,arguments)){var n,o,a,i,s=k(this,arguments),l=e.event.changedTouches,u=l.length;for(yy(),o=0;odocument.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[i]=e):n=l(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(335),o=n(227).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(58),o=n(42),a=n(226)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){var r=n(24)("unscopables"),o=Array.prototype;null==o[r]&&n(59)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){var r=n(18);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,l=i(e),u=1;u=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,a=t-r;return Math.sqrt(o*o+a*a)},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;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){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(165),o=n(884),a=n(311),i=Object.defineProperty;t.f=n(115)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(213)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t0&&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,i.parsePath)(e):e,o=r.pathname||"/",a=r.search||"",l=r.hash||"",u=r.state;return{pathname:o,search:a,hash:l,state:u,action:t,key:n}};var u=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,a.default)(!1),"object"===o){if(u(t)&&u(n)&&(0,a.default)(!1),!Array.isArray(t)){var i=Object.keys(t),s=Object.keys(n);return i.length===s.length&&i.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){(e.exports=n(1192)).tz.load(n(1194))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.resetView=y,t.deleteView=b,t.addViewLocationData=C,t.updateViewSuccess=j,t.updateViewError=I,t.toggleIncludedView=R,t.setIncludedView=N,t.unsetIncludedView=Y,t.fetchDocument=H,t.createView=z,t.fetchLayout=W,t.filterView=q,t.fetchLocationConfig=B,t.showIncludedView=F,t.fetchHeaderProperties=G;var r,o=n(20),a=n(259),i=n(39),s=n(35),l=n(149),u=n(90),c=n(127),d=n(129),f=n(128);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var h,m;"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function y(e,t){return{type:i.RESET_VIEW,payload:{id:e,isModal:t}}}function b(e,t){return{type:i.DELETE_VIEW,payload:{id:e,isModal:t}}}function g(e,t,n){return{type:i.FETCH_DOCUMENT_PENDING,payload:{id:e,isModal:t,websocketRefresh:n}}}function v(e,t,n){return{type:i.FETCH_DOCUMENT_SUCCESS,payload:{id:e,data:t,isModal:n}}}function w(e,t,n){return{type:i.FETCH_DOCUMENT_ERROR,payload:{id:e,error:t,isModal:n}}}function M(e,t){return{type:i.FETCH_LAYOUT_PENDING,payload:{id:e,isModal:t}}}function k(e,t,n){return{type:i.FETCH_LAYOUT_SUCCESS,payload:{id:e,layout:t,isModal:n}}}function T(e,t,n){return{type:i.FETCH_LAYOUT_ERROR,payload:{id:e,error:t,isModal:n}}}function L(e,t){return{type:i.CREATE_VIEW,payload:{id:e,isModal:t}}}function O(e,t,n){return{type:i.CREATE_VIEW_SUCCESS,payload:{id:e,viewId:t.viewId,isModal:n}}}function S(e,t,n){return{type:i.CREATE_VIEW_ERROR,payload:{id:e,error:t,isModal:n}}}function D(e,t){return{type:i.FILTER_VIEW_PENDING,payload:{id:e,isModal:t}}}function x(e,t,n){return{type:i.FILTER_VIEW_SUCCESS,payload:{id:e,data:t,isModal:n}}}function E(e,t,n){return{type:i.FILTER_VIEW_ERROR,payload:{id:e,error:t,isModal:n}}}function A(e,t,n){return{type:i.FETCH_LOCATION_CONFIG_SUCCESS,payload:{id:e,data:t,isModal:n}}}function P(e,t,n){return{type:i.FETCH_LOCATION_CONFIG_ERROR,payload:{id:e,error:t,isModal:n}}}function C(e,t,n){return{type:i.ADD_VIEW_LOCATION_DATA,payload:{id:e,locationData:t,isModal:n}}}function j(e){var t=e.id,n=e.data,r=e.isModal;return{type:i.UPDATE_VIEW_DATA_SUCCESS,payload:{id:t,data:n,isModal:r}}}function I(e,t,n){return{type:i.UPDATE_VIEW_DATA_ERROR,payload:{id:e,error:t,isModal:n}}}function R(e,t,n){return{type:i.TOGGLE_INCLUDED_VIEW,payload:{id:e,showIncludedView:t,isModal:n}}}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowId,n=e.viewId,r=e.viewProfileId,o=void 0===r?null:r,a=e.parentId,s=void 0===a?null:a;return{type:i.SET_INCLUDED_VIEW,payload:{id:t,viewId:n,viewProfileId:o,parentId:s}}}function Y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.windowId,n=e.viewId,r=e.forceClose,o=void 0!==r&&r;return{type:i.UNSET_INCLUDED_VIEW,payload:{id:t,viewId:n,forceClose:o}}}function H(e){var t=e.windowId,n=e.viewId,r=e.page,i=e.pageLength,h=e.orderBy,m=e.isModal,y=void 0!==m&&m,b=e.websocketRefresh,M=void 0!==b&&b;return function(e,m){return e(g(t,y,M)),(0,o.browseViewRequest)({windowId:t,viewId:n,page:r,pageLength:i,orderBy:h}).then((function(r){e(v(t,r.data,y));var o=(0,s.getTableId)({windowId:t,viewId:n}),i=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a){return a(M(e,r)),(0,o.getViewLayout)(e,t,n).then((function(t){return a(k(e,t.data,r)),Promise.resolve(t.data)})).catch((function(t){return a(T(e,t,r)),Promise.reject(t)}))}}function q(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a){return a(D(e,r)),(0,o.filterViewRequest)(e,t,n).then((function(n){a(x(e,n.data,r));var o=(0,l.getEntityRelatedId)({windowId:e,viewId:t});a((0,d.deleteFilter)(o));var i=(0,s.getTableId)({windowId:e,viewId:t});return a((0,c.deleteTable)(i)),a((0,f.deleteQuickActions)(e,t)),Promise.resolve(n.data)})).catch((function(t){return a(E(e,t,r)),Promise.reject(t)}))}}function B(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return(0,o.locationConfigRequest)().then((function(r){n(A(e,r.data,t))})).catch((function(r){return n(P(e,r,t)),Promise.reject(r)}))}}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,n=e.showIncludedView,r=e.windowId,o=e.viewId,a=e.forceClose,i=e.isModal,s=e.viewProfileId;return function(e){t&&e(R(t,n,i)),n&&e(N({windowId:r,viewId:o,parentId:t,viewProfileId:s})),n||e(Y({windowId:r,viewId:o,forceClose:a}))}}function G(e){var t=e.windowId,n=e.viewId,r=e.isModal,a=void 0!==r&&r;return function(e){return(0,o.headerPropertiesRequest)({windowId:t,viewId:n}).then((function(n){var r={headerProperties:n.data};e(j({id:t,data:r,isModal:a}))})).catch((function(n){return e(I(t,n,a)),Promise.reject(n)}))}}(h="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(h.register(y,"resetView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(b,"deleteView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(g,"fetchDocumentPending","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(v,"fetchDocumentSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(w,"fetchDocumentError","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(M,"fetchLayoutPending","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(k,"fetchLayoutSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(T,"fetchLayoutError","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(L,"createViewPending","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(O,"createViewSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(S,"createViewError","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(D,"filterViewPending","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(x,"filterViewSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(E,"filterViewError","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(A,"fetchLocationConfigSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(P,"fetchLocationConfigError","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(C,"addViewLocationData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(j,"updateViewSuccess","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(I,"updateViewError","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(R,"toggleIncludedView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(N,"setIncludedView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(Y,"unsetIncludedView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(H,"fetchDocument","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(z,"createView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(W,"fetchLayout","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(q,"filterView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(B,"fetchLocationConfig","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(F,"showIncludedView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js"),h.register(G,"fetchHeaderProperties","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/ViewActions.js")),(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&m(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.deleteTable=v,t.setActiveSort=M,t.updateTabRowsData=T,t.updateTableRowProperty=L,t.clearTableData=O,t.createTableData=S,t.createGridTable=D,t.updateGridTable=x,t.updateGridTableData=E,t.createTabTable=A,t.updateTabTable=P,t.updateTabTableData=C,t.collapseTableRow=R,t.updateTableSelection=N,t.deselectTableRows=Y;var o,a=n(21),i=n(54),s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(39)),l=n(128),u=n(126),c=n(90),d=n(35);function f(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t=o&&e.includedDocuments?s=s.concat(e[a]):e.indent.length>o&&(i=i.concat(e[a]))})),r&&e(k({tableId:t,collapsedParentRows:s,collapsedRows:i}))}}function I(e){var t=e.tableId,n=e.rows;return function(e,r){var o=r().tables[t],a=o.expandedDepth,i=o.keyProperty,s=o.collapsible,l=o.collapsedRows,u=o.collapsedParentRows,c=[],d=[];s&&(n.length&&n.forEach((function(e){e.indent.length>=a&&e.includedDocuments&&!u.indexOf(e.id)?c=c.concat(e[i]):e.indent.length>a&&!l.indexOf(e.id)&&(d=d.concat(e[i]))})),e(k({tableId:t,collapsedParentRows:c,collapsedRows:d})))}}function R(e){var t=e.tableId,n=e.collapse,r=e.node;return function(e,o){var i=(0,d.getTable)(o(),t),s=(0,a.cloneDeep)(i.collapsedParentRows),l=(0,a.cloneDeep)(i.collapsedRows),u=i.keyProperty;!function e(t){if(n)s.splice(s.indexOf(t[u]),1);else{if(s.indexOf(t[u])>-1)return;s=s.concat(t[u])}t.includedDocuments&&t.includedDocuments.map((function(t){if(n)l.splice(l.indexOf(t[u]),1);else{if(l.indexOf(t[u])>-1)return;l=l.concat(t[u]),t.includedDocuments&&e(t)}}))}(r);var c={tableId:t,collapsedRows:l,collapsedParentRows:s};return e(k(c)),Promise.resolve(c)}}function N(e){var t=e.id,n=e.selection,r=e.keyProperty,o=void 0===r?"id":r,a=e.windowId,i=e.viewId,l=e.isModal;return function(e){return e({type:s.UPDATE_TABLE_SELECTION,payload:{id:t,selection:n,keyProperty:o}}),i?e(H({windowId:a,viewId:i,tableId:t,selection:n,isModal:l})):Promise.resolve(n)}}function Y(e){var t=e.id,n=e.selection,r=e.windowId,o=e.viewId,a=e.isModal;return function(e){return e({type:s.DESELECT_TABLE_ROWS,payload:{id:t,selection:n}}),o?e(H({windowId:r,viewId:o,tableId:t,selection:n,isModal:a})):Promise.resolve(n)}}function H(e){var t=e.windowId,n=e.viewId,r=e.tableId,o=e.selection,i=e.isModal;return function(e,s){var f=s(),p=f.viewHandler.includedView,_=(0,c.getView)(f,t,i).layout,h=(0,d.getTable)(f,r),m=h.selected,y=h.keyProperty,b=h.rows,g=!1,v=!0,w=!0,M=null,k=null,T={};if(0===m.length&&p.parentId===t)v=!1,g=!0,M=p.windowId,k=p.viewId;else{var L=o[o.length-1];T=(0,a.find)(b,(function(e){return e[y]===L})),M=(v=(0,a.get)(T,["supportIncludedViews"],!1))?(0,a.get)(T,["includedView","windowId"],null):null,k=v?(0,a.get)(T,["includedView","viewId"],null):null,w=(0,a.get)(_,["includedView","openOnSelect"],!1)}return e((0,u.showIncludedView)({id:t,showIncludedView:v,forceClose:g,windowId:M,viewId:k,isModal:i})),e((0,l.fetchQuickActions)({windowId:t,viewId:n,isModal:i})),Promise.resolve(w)}}(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(m.register(b,"createTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(g,"updateTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(v,"deleteTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(w,"updateTableData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(M,"setActiveSort","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(k,"collapseRows","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(T,"updateTabRowsData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(L,"updateTableRowProperty","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(O,"clearTableData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(S,"createTableData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(D,"createGridTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(x,"updateGridTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(E,"updateGridTableData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(A,"createTabTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(P,"updateTabTable","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(C,"updateTabTableData","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(j,"createCollapsedRows","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(I,"updateCollapsedRows","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(R,"collapseTableRow","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(N,"updateTableSelection","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(Y,"deselectTableRows","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js"),m.register(H,"handleToggleIncludedView","/var/lib/jenkins/workspace/metasfresh_release/frontend/src/actions/TableActions.js")),(y="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&y(e)}).call(this,n(3)(e))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.fetchQuickActions=p,t.requestQuickActions=h,t.deleteQuickActions=m,t.deleteTopActions=y,t.fetchTopActions=b;var r,o=n(20),a=n(39),i=n(260),s=n(35),l=n(90);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(r=(i=s.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n32*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),a=n[r];a&=~((1<<(31&e))-1);for(var i=n.length;0===a;){if(++r===i)return t;a=n[r]}var s=32*r+o.default.numberOfTrailingZeros(a);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),a=~n[r];a&=~((1<<(31&e))-1);for(var i=n.length;0===a;){if(++r===i)return t;a=~n[r]}var s=32*r+o.default.numberOfTrailingZeros(a);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 i.default;if(t!==e){t--;for(var n=Math.floor(e/32),r=Math.floor(t/32),o=this.bits,a=n;a<=r;a++){var s=(2<<(an?0:31&e));o[a]|=s}}},e.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;nthis.size)throw new i.default;if(t===e)return!0;t--;for(var r=Math.floor(e/32),o=Math.floor(t/32),a=this.bits,s=r;s<=o;s++){var l=(2<<(sr?0:31&e))&4294967295;if((a[s]&l)!==(n?l: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 i.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&a)<<1)>>2&858993459|(858993459&a)<<2)>>4&252645135|(252645135&a)<<4)>>8&16711935|(16711935&a)<<8)>>16&65535|(65535&a)<<16,e[t-o]=a}if(this.size!==32*n){var i=32*n-this.size,s=e[0]>>>i;for(o=1;o>>i}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&&a.default.equals(this.bits,n.bits)},e.prototype.hashCode=function(){return 31*this.size+a.default.hashCode(this.bits)},e.prototype.toString=function(){for(var e="",t=0,n=this.size;t=t&&(a^=e,a&=t-1);this.expTable=o;var s=new Int32Array(t);for(i=0;i0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(l)throw l;for(var r=!1,o={},a=0;a1&&void 0!==arguments[1]?arguments[1]:r,n=null,a=null;return function(){return o(t,n,arguments)||(a=e.apply(null,arguments)),n=arguments,a}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:l;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map((function(t){return e[t]})),(function(){for(var e=arguments.length,t=Array(e),r=0;r - + diff --git a/docker-src/webui/sources/dist/info.json b/docker-src/webui/sources/dist/info.json index e5c1e36..8b52fdc 100644 --- a/docker-src/webui/sources/dist/info.json +++ b/docker-src/webui/sources/dist/info.json @@ -1,10 +1,10 @@ { "build": { - "releaseVersion": "5.164.2-286+release", - "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh/job/release/286/", - "jenkinsBuildNo": "286", + "releaseVersion": "5.165.2-288+release", + "jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh/job/release/288/", + "jenkinsBuildNo": "288", "jenkinsJobName": "metasfresh/release", - "jenkinsBuildTag": "jenkins-metasfresh-release-286" - "gitSHA1": "e9eff6c96f6b48a613b9443f424d9c138e6f04d2" + "jenkinsBuildTag": "jenkins-metasfresh-release-288" + "gitSHA1": "751ed4f151c710192c07d9e48d791a0457853bd8" } } \ No newline at end of file diff --git a/webapi/Dockerfile b/webapi/Dockerfile index 8970a98..a776a13 100644 --- a/webapi/Dockerfile +++ b/webapi/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webapi:5.164 +FROM metasfresh/metasfresh-webapi:5.165 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 0b7658d..cf74a25 100644 --- a/webui/Dockerfile +++ b/webui/Dockerfile @@ -1,4 +1,4 @@ -FROM metasfresh/metasfresh-webui:5.164 +FROM metasfresh/metasfresh-webui:5.165 COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/