mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-25 11:50:13 +01:00
893af0a92c
* fix: set date in query string in utc format * app/vmselect: `make vmui-update` Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
2 lines
1.1 MiB
2 lines
1.1 MiB
/*! For license information please see 2.537d84e3.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonpvmui=this.webpackJsonpvmui||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(225)},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ke})),n.d(t,"b",(function(){return xt})),n.d(t,"c",(function(){return S})),n.d(t,"d",(function(){return un})),n.d(t,"e",(function(){return nn})),n.d(t,"f",(function(){return hn})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return dn})),n.d(t,"i",(function(){return H})),n.d(t,"j",(function(){return tn})),n.d(t,"k",(function(){return q})),n.d(t,"l",(function(){return K})),n.d(t,"m",(function(){return O})),n.d(t,"n",(function(){return j})),n.d(t,"o",(function(){return jt})),n.d(t,"p",(function(){return ne})),n.d(t,"q",(function(){return $})),n.d(t,"r",(function(){return tt})),n.d(t,"s",(function(){return ue})),n.d(t,"t",(function(){return rt})),n.d(t,"u",(function(){return F})),n.d(t,"v",(function(){return st})),n.d(t,"w",(function(){return ft})),n.d(t,"x",(function(){return ct})),n.d(t,"y",(function(){return kt})),n.d(t,"z",(function(){return f})),n.d(t,"A",(function(){return d})),n.d(t,"B",(function(){return Dt})),n.d(t,"C",(function(){return wt})),n.d(t,"D",(function(){return T})),n.d(t,"E",(function(){return L})),n.d(t,"F",(function(){return Ge})),n.d(t,"G",(function(){return I})),n.d(t,"H",(function(){return Rt})),n.d(t,"I",(function(){return At})),n.d(t,"J",(function(){return Lt})),n.d(t,"K",(function(){return _})),n.d(t,"L",(function(){return v})),n.d(t,"M",(function(){return u})),n.d(t,"N",(function(){return ee})),n.d(t,"O",(function(){return X})),n.d(t,"P",(function(){return J})),n.d(t,"Q",(function(){return Z})),n.d(t,"R",(function(){return re})),n.d(t,"S",(function(){return nt})),n.d(t,"T",(function(){return Mt})),n.d(t,"U",(function(){return St})),n.d(t,"V",(function(){return fn})),n.d(t,"W",(function(){return it})),n.d(t,"X",(function(){return z})),n.d(t,"Y",(function(){return C})),n.d(t,"Z",(function(){return ie})),n.d(t,"ab",(function(){return bt})),n.d(t,"bb",(function(){return en})),n.d(t,"cb",(function(){return Cn})),n.d(t,"db",(function(){return Sn})),n.d(t,"eb",(function(){return vn})),n.d(t,"fb",(function(){return mn})),n.d(t,"gb",(function(){return pn})),n.d(t,"hb",(function(){return lt})),n.d(t,"ib",(function(){return ut})),n.d(t,"jb",(function(){return at})),n.d(t,"kb",(function(){return pt})),n.d(t,"lb",(function(){return yt})),n.d(t,"mb",(function(){return Ot})),n.d(t,"nb",(function(){return jn})),n.d(t,"ob",(function(){return se})),n.d(t,"pb",(function(){return yn})),n.d(t,"qb",(function(){return On})),n.d(t,"rb",(function(){return h})),n.d(t,"sb",(function(){return xn})),n.d(t,"tb",(function(){return p})),n.d(t,"ub",(function(){return ae})),n.d(t,"vb",(function(){return g})),n.d(t,"wb",(function(){return Ye})),n.d(t,"xb",(function(){return et})),n.d(t,"yb",(function(){return pe})),n.d(t,"zb",(function(){return R})),n.d(t,"Ab",(function(){return y})),n.d(t,"Bb",(function(){return N})),n.d(t,"Cb",(function(){return b})),n.d(t,"Db",(function(){return m})),n.d(t,"Eb",(function(){return k})),n.d(t,"Fb",(function(){return Tt})),n.d(t,"Gb",(function(){return w})),n.d(t,"Hb",(function(){return bn})),n.d(t,"Ib",(function(){return ce})),n.d(t,"Jb",(function(){return G})),n.d(t,"Kb",(function(){return le})),n.d(t,"Lb",(function(){return c})),n.d(t,"Mb",(function(){return Y})),n.d(t,"Nb",(function(){return te})),n.d(t,"Ob",(function(){return _t})),n.d(t,"Pb",(function(){return x})),n.d(t,"Qb",(function(){return Ct})),n.d(t,"Rb",(function(){return cn})),n.d(t,"Sb",(function(){return ot})),n.d(t,"Tb",(function(){return Et}));var r=n(25),i=n(13),a=n(4),o=n(6),s=n(7);var c="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function l(e,t,n){var r=n||function(e){return Array.prototype.slice.call(e)},i=!1,a=[];return function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];a=r(o),i||(i=!0,c.call(window,(function(){i=!1,e.apply(t,a)})))}}function u(e,t){var n;return function(){return t?(clearTimeout(n),n=setTimeout(e,t)):e(),t}}var f=function(e){return"start"===e?"left":"end"===e?"right":"center"},d=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2},h=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t};function p(){}var v=function(){var e=0;return function(){return e++}}();function m(e){return null===e||"undefined"===typeof e}function g(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function b(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}var y=function(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)};function O(e,t){return y(e)?e:t}function x(e,t){return"undefined"===typeof e?t:e}var k=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100:e/t},w=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function j(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function S(e,t,n,r){var i,a,o;if(g(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(b(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function C(e,t){var n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function E(e){if(g(e))return e.map(E);if(b(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=E(e[n[i]]);return t}return e}function M(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function P(e,t,n,r){if(M(e)){var i=t[e],a=n[e];b(i)&&b(a)?T(i,a,r):t[e]=E(a)}}function T(e,t,n){var r=g(t)?t:[t],i=r.length;if(!b(e))return e;for(var a=(n=n||{}).merger||P,o=0;o<i;++o)if(b(t=r[o]))for(var s=Object.keys(t),c=0,l=s.length;c<l;++c)a(s[c],e,t,n);return e}function _(e,t){return T(e,t,{merger:D})}function D(e,t,n){if(M(e)){var r=t[e],i=n[e];b(r)&&b(i)?_(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=E(i))}}function A(e,t){var n=e.indexOf(".",t);return-1===n?e.length:n}function R(e,t){if(""===t)return e;for(var n=0,r=A(t,n);e&&r>n;)e=e[t.substr(n,r-n)],r=A(t,n=r+1);return e}function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var N=function(e){return"undefined"!==typeof e},I=function(e){return"function"===typeof e},z=function(e,t){if(e.size!==t.size)return!1;var n,r=Object(s.a)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0},$=Math.PI,F=2*$,B=F+$,Q=Number.POSITIVE_INFINITY,W=$/180,H=$/2,V=$/4,U=2*$/3,q=Math.log10,Y=Math.sign;function X(e){var t=Math.round(e);e=Z(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(q(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function K(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n}function G(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Z(e,t,n){return Math.abs(e-t)<n}function J(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}function ee(e,t,n){var r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function te(e){return e*($/180)}function ne(e){return e*(180/$)}function re(e){if(y(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function ie(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*$&&(a+=F),{angle:a,distance:i}}function ae(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function oe(e,t){return(e-t+B)%F-$}function se(e){return(e%F+F)%F}function ce(e,t,n,r){var i=se(e),a=se(t),o=se(n),s=se(a-i),c=se(o-i),l=se(i-a),u=se(i-o);return i===a||i===o||r&&a===o||s>c&&l<u}function le(e,t,n){return Math.max(t,Math.min(n,e))}function ue(e){return le(e,-32768,32767)}var fe=function(e){return 0===e||1===e},de=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*F/n)},he=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*F/n)+1},pe={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*H)},easeOutSine:function(e){return Math.sin(e*H)},easeInOutSine:function(e){return-.5*(Math.cos($*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return fe(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return fe(e)?e:de(e,.075,.3)},easeOutElastic:function(e){return fe(e)?e:he(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return fe(e)?e:e<.5?.5*de(2*e,t,.45):.5+.5*he(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-pe.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*pe.easeInBounce(2*e):.5*pe.easeOutBounce(2*e-1)+.5}},ve={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},me="0123456789ABCDEF",ge=function(e){return me[15&e]},be=function(e){return me[(240&e)>>4]+me[15&e]},ye=function(e){return(240&e)>>4===(15&e)};function Oe(e){var t=function(e){return ye(e.r)&&ye(e.g)&&ye(e.b)&&ye(e.a)}(e)?ge:be;return e?"#"+t(e.r)+t(e.g)+t(e.b)+(e.a<255?t(e.a):""):e}function xe(e){return e+.5|0}var ke=function(e,t,n){return Math.max(Math.min(e,n),t)};function we(e){return ke(xe(2.55*e),0,255)}function je(e){return ke(xe(255*e),0,255)}function Se(e){return ke(xe(e/2.55)/100,0,1)}function Ce(e){return ke(xe(100*e),0,100)}var Ee=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var Me=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Pe(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function Te(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function _e(e,t,n){var r,i=Pe(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function De(e){var t,n,r,i=e.r/255,a=e.g/255,o=e.b/255,s=Math.max(i,a,o),c=Math.min(i,a,o),l=(s+c)/2;return s!==c&&(r=s-c,n=l>.5?r/(2-s-c):r/(s+c),t=60*(t=s===i?(a-o)/r+(a<o?6:0):s===a?(o-i)/r+2:(i-a)/r+4)+.5),[0|t,n||0,l]}function Ae(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(je)}function Re(e,t,n){return Ae(Pe,e,t,n)}function Le(e){return(e%360+360)%360}function Ne(e){var t,n=Me.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?we(+n[5]):je(+n[5]));var i=Le(+n[2]),a=+n[3]/100,o=+n[4]/100;return{r:(t="hwb"===n[1]?function(e,t,n){return Ae(_e,e,t,n)}(i,a,o):"hsv"===n[1]?function(e,t,n){return Ae(Te,e,t,n)}(i,a,o):Re(i,a,o))[0],g:t[1],b:t[2],a:r}}}var Ie,ze={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$e={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Fe(e){Ie||((Ie=function(){var e,t,n,r,i,a={},o=Object.keys($e),s=Object.keys(ze);for(e=0;e<o.length;e++){for(r=i=o[e],t=0;t<s.length;t++)n=s[t],i=i.replace(n,ze[n]);n=parseInt($e[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}()).transparent=[0,0,0,0]);var t=Ie[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}function Be(e,t,n){if(e){var r=De(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Re(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Qe(e,t){return e?Object.assign(t||{},e):e}function We(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=je(e[3]))):(t=Qe(e,{r:0,g:0,b:0,a:1})).a=je(t.a),t}function He(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=Ee.exec(e),a=255;if(i){if(i[7]!==t){var o=+i[7];a=255&(i[8]?we(o):255*o)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?we(t):t),g:n=255&(i[4]?we(n):n),b:r=255&(i[6]?we(r):r),a:a}}}(e):Ne(e)}var Ve=function(){function e(t){if(Object(a.a)(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=We(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*ve[e[1]],g:255&17*ve[e[2]],b:255&17*ve[e[3]],a:5===n?17*ve[e[4]]:255}:7!==n&&9!==n||(t={r:ve[e[1]]<<4|ve[e[2]],g:ve[e[3]]<<4|ve[e[4]],b:ve[e[5]]<<4|ve[e[6]],a:9===n?ve[e[7]]<<4|ve[e[8]]:255})),t}(t)||Fe(t)||He(t)),this._rgb=n,this._valid=!!n}return Object(o.a)(e,[{key:"rgbString",value:function(){return this._valid?(e=this._rgb)&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(Se(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")")):this._rgb;var e}},{key:"hexString",value:function(){return this._valid?Oe(this._rgb):this._rgb}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=De(e),n=t[0],r=Ce(t[1]),i=Ce(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(Se(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):this._rgb}},{key:"mix",value:function(e,t){var n=this;if(e){var r,i=n.rgb,a=e.rgb,o=t===r?.5:t,s=2*o-1,c=i.a-a.a,l=((s*c===-1?s:(s+c)/(1+s*c))+1)/2;r=1-l,i.r=255&l*i.r+r*a.r+.5,i.g=255&l*i.g+r*a.g+.5,i.b=255&l*i.b+r*a.b+.5,i.a=o*i.a+(1-o)*a.a,n.rgb=i}return n}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=je(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=xe(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return Be(this._rgb,2,e),this}},{key:"darken",value:function(e){return Be(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return Be(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return Be(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=De(e);n[0]=Le(n[0]+t),n=Re(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}},{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=Qe(this._rgb);return e&&(e.a=Se(e.a)),e},set:function(e){this._rgb=We(e)}}]),e}();function Ue(e){return new Ve(e)}var qe=function(e){return e instanceof CanvasGradient||e instanceof CanvasPattern};function Ye(e){return qe(e)?e:Ue(e)}function Xe(e){return qe(e)?e:Ue(e).saturate(.5).darken(.1).hexString()}var Ke=Object.create(null),Ge=Object.create(null);function Ze(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;r<i;++r){var a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function Je(e,t,n){return"string"===typeof t?T(Ze(e,t),n):T(Ze(e,""),t)}var et=new(function(){function e(t){Object(a.a)(this,e),this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=function(e){return e.chart.platform.getDevicePixelRatio()},this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=function(e,t){return Xe(t.backgroundColor)},this.hoverBorderColor=function(e,t){return Xe(t.borderColor)},this.hoverColor=function(e,t){return Xe(t.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.describe(t)}return Object(o.a)(e,[{key:"set",value:function(e,t){return Je(this,e,t)}},{key:"get",value:function(e){return Ze(this,e)}},{key:"describe",value:function(e,t){return Je(Ge,e,t)}},{key:"override",value:function(e,t){return Je(Ke,e,t)}},{key:"route",value:function(e,t,n,r){var a,o=Ze(this,e),s=Ze(this,n),c="_"+t;Object.defineProperties(o,(a={},Object(i.a)(a,c,{value:o[t],writable:!0}),Object(i.a)(a,t,{enumerable:!0,get:function(){var e=this[c],t=s[r];return b(e)?Object.assign({},t,e):x(e,t)},set:function(e){this[c]=e}}),a))}}]),e}())({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function tt(e,t,n,r,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function nt(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var o,s,c,l,u,f=0,d=n.length;for(o=0;o<d;o++)if(void 0!==(l=n[o])&&null!==l&&!0!==g(l))f=tt(e,i,a,f,l);else if(g(l))for(s=0,c=l.length;s<c;s++)void 0===(u=l[s])||null===u||g(u)||(f=tt(e,i,a,f,u));e.restore();var h=a.length/2;if(h>n.length){for(o=0;o<h;o++)delete i[a[o]];a.splice(0,h)}return f}function rt(e,t,n){var r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function it(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function at(e,t,n,r){var i,a,o,s,c,l=t.pointStyle,u=t.rotation,f=t.radius,d=(u||0)*W;if(l&&"object"===typeof l&&("[object HTMLImageElement]"===(i=l.toString())||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(d),e.drawImage(l,-l.width/2,-l.height/2,l.width,l.height),void e.restore();if(!(isNaN(f)||f<=0)){switch(e.beginPath(),l){default:e.arc(n,r,f,0,F),e.closePath();break;case"triangle":e.moveTo(n+Math.sin(d)*f,r-Math.cos(d)*f),d+=U,e.lineTo(n+Math.sin(d)*f,r-Math.cos(d)*f),d+=U,e.lineTo(n+Math.sin(d)*f,r-Math.cos(d)*f),e.closePath();break;case"rectRounded":s=f-(c=.516*f),a=Math.cos(d+V)*s,o=Math.sin(d+V)*s,e.arc(n-a,r-o,c,d-$,d-H),e.arc(n+o,r-a,c,d-H,d),e.arc(n+a,r+o,c,d,d+H),e.arc(n-o,r+a,c,d+H,d+$),e.closePath();break;case"rect":if(!u){s=Math.SQRT1_2*f,e.rect(n-s,r-s,2*s,2*s);break}d+=V;case"rectRot":a=Math.cos(d)*f,o=Math.sin(d)*f,e.moveTo(n-a,r-o),e.lineTo(n+o,r-a),e.lineTo(n+a,r+o),e.lineTo(n-o,r+a),e.closePath();break;case"crossRot":d+=V;case"cross":a=Math.cos(d)*f,o=Math.sin(d)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"star":a=Math.cos(d)*f,o=Math.sin(d)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a),d+=V,a=Math.cos(d)*f,o=Math.sin(d)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o),e.moveTo(n+o,r-a),e.lineTo(n-o,r+a);break;case"line":a=Math.cos(d)*f,o=Math.sin(d)*f,e.moveTo(n-a,r-o),e.lineTo(n+a,r+o);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(d)*f,r+Math.sin(d)*f)}e.fill(),t.borderWidth>0&&e.stroke()}}function ot(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function st(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function ct(e){e.restore()}function lt(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){var a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function ut(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function ft(e,t,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=g(t)?t:[t],l=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,dt(e,s),a=0;a<c.length;++a)o=c[a],l&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),m(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(o,n,r,s.maxWidth)),e.fillText(o,n,r,s.maxWidth),ht(e,n,r,o,s),r+=i.lineHeight;e.restore()}function dt(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),m(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function ht(e,t,n,r,i){if(i.strikethrough||i.underline){var a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,c=n-a.actualBoundingBoxAscent,l=n+a.actualBoundingBoxDescent,u=i.strikethrough?(c+l)/2:l;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,u),e.lineTo(s,u),e.stroke()}}function pt(e,t){var n=t.x,r=t.y,i=t.w,a=t.h,o=t.radius;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-H,$,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,$,H,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,H,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-H,!0),e.lineTo(n+o.topLeft,r)}var vt=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),mt=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function gt(e,t){var n=(""+e).match(vt);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}function bt(e,t){var n,r={},i=b(t),a=i?Object.keys(t):t,o=b(e)?i?function(n){return x(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},c=Object(s.a)(a);try{for(c.s();!(n=c.n()).done;){var l=n.value;r[l]=+o(l)||0}}catch(u){c.e(u)}finally{c.f()}return r}function yt(e){return bt(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Ot(e){return bt(e,["topLeft","topRight","bottomLeft","bottomRight"])}function xt(e){var t=yt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function kt(e,t){e=e||{},t=t||et.font;var n=x(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=x(e.style,t.style);r&&!(""+r).match(mt)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var i={family:x(e.family,t.family),lineHeight:gt(x(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:x(e.weight,t.weight),string:""};return i.string=function(e){return!e||m(e.size)||m(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function wt(e,t,n,r){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&g(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function jt(e,t){var n=e.min,r=e.max;return{min:n-Math.abs(w(t,n)),max:r+w(t,r)}}function St(e,t,n){n=n||function(n){return e[n]<t};for(var r,i=e.length-1,a=0;i-a>1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var Ct=function(e,t,n){return St(e,n,(function(r){return e[r][t]<n}))},Et=function(e,t,n){return St(e,n,(function(r){return e[r][t]>=n}))};function Mt(e,t,n){for(var r=0,i=e.length;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}var Pt=["push","pop","shift","splice","unshift"];function Tt(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Pt.forEach((function(t){var n="_onData"+L(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var o=r.apply(this,i);return e._chartjs.listeners.forEach((function(e){"function"===typeof e[n]&&e[n].apply(e,i)})),o}})})))}function _t(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(Pt.forEach((function(t){delete e[t]})),delete e._chartjs)}}function Dt(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}function At(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};N(o)||(o=Vt("_fallback",e));var c=(t={},Object(i.a)(t,Symbol.toStringTag,"Object"),Object(i.a)(t,"_cacheable",!0),Object(i.a)(t,"_scopes",e),Object(i.a)(t,"_rootScopes",a),Object(i.a)(t,"_fallback",o),Object(i.a)(t,"_getTarget",s),Object(i.a)(t,"override",(function(t){return At([t].concat(Object(r.a)(e)),n,a,o)})),t);return new Proxy(c,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return zt(t,r,(function(){return Ht(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return Ut(e).includes(t)},ownKeys:function(e){return Ut(e)},set:function(e,t,n){return(e._storage||(e._storage=s()))[t]=n,delete e[t],delete e._keys,!0}})}function Rt(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Lt(e,r),setContext:function(t){return Rt(e,t,n,r)},override:function(i){return Rt(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return zt(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,o=e._descriptors,c=r[t];I(c)&&o.isScriptable(t)&&(c=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(a,o||r),s.delete(e),b(t)&&(t=Qt(i._scopes,i,e,t));return t}(t,c,e,n));g(c)&&c.length&&(c=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,c=n._descriptors;if(N(a.index)&&r(e))t=t[a.index%t.length];else if(b(t[0])){var l=t,u=i._scopes.filter((function(e){return e!==l}));t=[];var f,d=Object(s.a)(l);try{for(d.s();!(f=d.n()).done;){var h=Qt(u,i,e,f.value);t.push(Rt(h,a,o&&o[e],c))}}catch(p){d.e(p)}finally{d.f()}}return t}(t,c,e,o.isIndexable));It(t,c)&&(c=Rt(c,i,a&&a[t],o));return c}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,a=void 0===i?t.indexable:i,o=e._allKeys,s=void 0===o?t.allKeys:o;return{allKeys:s,scriptable:r,indexable:a,isScriptable:I(r)?r:function(){return r},isIndexable:I(a)?a:function(){return a}}}var Nt=function(e,t){return e?e+L(t):t},It=function(e,t){return b(t)&&"adapters"!==e};function zt(e,t,n){var r=e[t];return N(r)||(r=n(),N(r)&&(e[t]=r)),r}function $t(e,t,n){return I(e)?e(t,n):e}var Ft=function(e,t){return!0===e?t:"string"===typeof e?R(t,e):void 0};function Bt(e,t,n,r){var i,a=Object(s.a)(t);try{for(a.s();!(i=a.n()).done;){var o=i.value,c=Ft(n,o);if(c){e.add(c);var l=$t(c._fallback,n,c);if(N(l)&&l!==n&&l!==r)return l}else if(!1===c&&N(r)&&n!==r)return null}}catch(u){a.e(u)}finally{a.f()}return!1}function Qt(e,t,n,i){var a=t._rootScopes,o=$t(t._fallback,n,i),s=[].concat(Object(r.a)(e),Object(r.a)(a)),c=new Set;c.add(i);var l=Wt(c,s,n,o||n);return null!==l&&((!N(o)||o===n||null!==(l=Wt(c,s,o,l)))&&At(Array.from(c),[""],a,o,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(g(i)&&b(n))return n;return i}(t,n,i)})))}function Wt(e,t,n,r){for(;n;)n=Bt(e,t,n,r);return n}function Ht(e,t,n,r){var i,a,o=Object(s.a)(t);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(i=Vt(Nt(c,e),n),N(i))return It(e,i)?Qt(n,r,e,i):i}}catch(l){o.e(l)}finally{o.f()}}function Vt(e,t){var n,r=Object(s.a)(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[e];if(N(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function Ut(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=Object(s.a)(e);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=Object(s.a)(Object.keys(a).filter((function(e){return!e.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var c=i.value;n.add(c)}}catch(l){o.e(l)}finally{o.f()}}}catch(l){r.e(l)}finally{r.f()}return Array.from(n)}(e._scopes)),t}var qt=Number.EPSILON||1e-14,Yt=function(e,t){return t<e.length&&!e[t].skip&&e[t]},Xt=function(e){return"x"===e?"y":"x"};function Kt(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=ae(a,i),c=ae(o,a),l=s/(s+c),u=c/(s+c),f=r*(l=isNaN(l)?0:l),d=r*(u=isNaN(u)?0:u);return{previous:{x:a.x-f*(o.x-i.x),y:a.y-f*(o.y-i.y)},next:{x:a.x+d*(o.x-i.x),y:a.y+d*(o.y-i.y)}}}function Gt(e,t,n){for(var r,i,a,o,s,c=e.length,l=Yt(e,0),u=0;u<c-1;++u)s=l,l=Yt(e,u+1),s&&l&&(Z(t[u],0,qt)?n[u]=n[u+1]=0:(r=n[u]/t[u],i=n[u+1]/t[u],(o=Math.pow(r,2)+Math.pow(i,2))<=9||(a=3/Math.sqrt(o),n[u]=r*a*t[u],n[u+1]=i*a*t[u])))}function Zt(e,t){for(var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",o=Xt(a),s=e.length,c=Yt(e,0),l=0;l<s;++l)if(r=i,i=c,c=Yt(e,l+1),i){var u=i[a],f=i[o];r&&(n=(u-r[a])/3,i["cp1".concat(a)]=u-n,i["cp1".concat(o)]=f-n*t[l]),c&&(n=(c[a]-u)/3,i["cp2".concat(a)]=u+n,i["cp2".concat(o)]=f+n*t[l])}}function Jt(e,t,n){return Math.max(Math.min(e,n),t)}function en(e,t,n,r,i){var a,o,s,c;if(t.spanGaps&&(e=e.filter((function(e){return!e.skip}))),"monotone"===t.cubicInterpolationMode)!function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=Xt(i),o=e.length,s=Array(o).fill(0),c=Array(o),l=Yt(e,0);for(t=0;t<o;++t)if(n=r,r=l,l=Yt(e,t+1),r){if(l){var u=l[i]-r[i];s[t]=0!==u?(l[a]-r[a])/u:0}c[t]=n?l?Y(s[t-1])!==Y(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}Gt(e,s,c),Zt(e,c,i)}(e,i);else{var l=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)c=Kt(l,s=e[a],e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=c.previous.x,s.cp1y=c.previous.y,s.cp2x=c.next.x,s.cp2y=c.next.y,l=s}t.capBezierPoints&&function(e,t){var n,r,i,a,o,s=ot(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&ot(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=Jt(i.cp1x,t.left,t.right),i.cp1y=Jt(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=Jt(i.cp2x,t.left,t.right),i.cp2y=Jt(i.cp2y,t.top,t.bottom)))}(e,n)}function tn(){return"undefined"!==typeof window&&"undefined"!==typeof document}function nn(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function rn(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var an=function(e){return window.getComputedStyle(e,null)};var on=["top","right","bottom","left"];function sn(e,t,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=on[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function cn(e,t){var n=t.canvas,r=t.currentDevicePixelRatio,i=an(n),a="border-box"===i.boxSizing,o=sn(i,"padding"),s=sn(i,"border","width"),c=function(e,t){var n,r,i=e.native||e,a=i.touches,o=a&&a.length?a[0]:i,s=o.offsetX,c=o.offsetY,l=!1;if(function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)}(s,c,i.target))n=s,r=c;else{var u=t.getBoundingClientRect();n=o.clientX-u.left,r=o.clientY-u.top,l=!0}return{x:n,y:r,box:l}}(e,n),l=c.x,u=c.y,f=c.box,d=o.left+(f&&s.left),h=o.top+(f&&s.top),p=t.width,v=t.height;return a&&(p-=o.width+s.width,v-=o.height+s.height),{x:Math.round((l-d)/p*n.width/r),y:Math.round((u-h)/v*n.height/r)}}var ln=function(e){return Math.round(10*e)/10};function un(e,t,n,r){var i=an(e),a=sn(i,"margin"),o=rn(i.maxWidth,e,"clientWidth")||Q,s=rn(i.maxHeight,e,"clientHeight")||Q,c=function(e,t,n){var r,i;if(void 0===t||void 0===n){var a=nn(e);if(a){var o=a.getBoundingClientRect(),s=an(a),c=sn(s,"border","width"),l=sn(s,"padding");t=o.width-l.width-c.width,n=o.height-l.height-c.height,r=rn(s.maxWidth,a,"clientWidth"),i=rn(s.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Q,maxHeight:i||Q}}(e,t,n),l=c.width,u=c.height;if("content-box"===i.boxSizing){var f=sn(i,"border","width"),d=sn(i,"padding");l-=d.width+f.width,u-=d.height+f.height}return l=Math.max(0,l-a.width),u=Math.max(0,r?Math.floor(l/r):u-a.height),l=ln(Math.min(l,o,c.maxWidth)),u=ln(Math.min(u,s,c.maxHeight)),l&&!u&&(u=ln(l/2)),{width:l,height:u}}function fn(e,t,n){var r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=i/r,e.width=a/r;var o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(e.height,"px"),o.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}var dn=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){}return e}();function hn(e,t){var n=function(e,t){return an(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function pn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function vn(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function mn(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=pn(e,i,n),s=pn(i,a,n),c=pn(a,t,n),l=pn(o,s,n),u=pn(s,c,n);return pn(l,u,n)}var gn=new Map;function bn(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=gn.get(n);return r||(r=new Intl.NumberFormat(e,t),gn.set(n,r)),r}(t,n).format(e)}function yn(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function On(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function xn(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function kn(e){return"angle"===e?{between:ce,compare:oe,normalize:se}:{between:function(e,t,n){return e>=Math.min(t,n)&&e<=Math.max(n,t)},compare:function(e,t){return e-t},normalize:function(e){return e}}}function wn(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function jn(e,t,n){if(!n)return[e];for(var r,i,a,o=n.property,s=n.start,c=n.end,l=t.length,u=kn(o),f=u.compare,d=u.between,h=u.normalize,p=function(e,t,n){var r,i,a=n.property,o=n.start,s=n.end,c=kn(a),l=c.between,u=c.normalize,f=t.length,d=e.start,h=e.end,p=e.loop;if(p){for(d+=f,h+=f,r=0,i=f;r<i&&l(u(t[d%f][a]),o,s);++r)d--,h--;d%=f,h%=f}return h<d&&(h+=f),{start:d,end:h,loop:p,style:e.style}}(e,t,n),v=p.start,m=p.end,g=p.loop,b=p.style,y=[],O=!1,x=null,k=function(){return O||d(s,a,r)&&0!==f(s,a)},w=function(){return!O||0===f(c,r)||d(c,a,r)},j=v,S=v;j<=m;++j)(i=t[j%l]).skip||(r=h(i[o]))!==a&&(O=d(r,s,c),null===x&&k()&&(x=0===f(r,s)?j:S),null!==x&&w()&&(y.push(wn({start:x,end:j,loop:g,count:l,style:b})),x=null),S=j,a=r);return null!==x&&y.push(wn({start:x,end:m,loop:g,count:l,style:b})),y}function Sn(e,t){for(var n=[],i=e.segments,a=0;a<i.length;a++){var o=jn(i[a],e.points,t);o.length&&n.push.apply(n,Object(r.a)(o))}return n}function Cn(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var a=!!e._loop,o=function(e,t,n,r){var i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return{start:i,end:a%=t}}(n,i,a,r),s=o.start,c=o.end;return En(e,!0===r?[{start:s,end:c,loop:a}]:function(e,t,n,r){var i,a=e.length,o=[],s=t,c=e[t];for(i=t+1;i<=n;++i){var l=e[i%a];l.skip||l.stop?c.skip||(r=!1,o.push({start:t%a,end:(i-1)%a,loop:r}),t=s=l.stop?i:null):(s=i,c.skip&&(t=i)),c=l}return null!==s&&o.push({start:t%a,end:s%a,loop:r}),o}(n,s,c<s?c+i:c,!!e._fullLoop&&0===s&&c===i-1),n,t)}function En(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i,a=Mn(e.options),o=n.length,c=[],l=t[0].start,u=l,f=Object(s.a)(t);try{for(f.s();!(i=f.n()).done;){var d=i.value,h=a,p=n[l%o],v=void 0;for(u=l+1;u<=d.end;u++){var m=n[u%o];Pn(v=Mn(r.setContext({type:"segment",p0:p,p1:m,p0DataIndex:(u-1)%o,p1DataIndex:u%o,datasetIndex:e._datasetIndex})),h)&&(c.push({start:l,end:u-1,loop:d.loop,style:h}),h=v,l=u-1),p=m,h=v}l<u-1&&(c.push({start:l,end:u-1,loop:d.loop,style:v}),l=u-1)}}catch(g){f.e(g)}finally{f.f()}return c}(e,t,n,r):t}function Mn(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Pn(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(224)},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return U})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return te})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return oe})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return V})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return Y})),n.d(t,"j",(function(){return P})),n.d(t,"l",(function(){return K})),n.d(t,"m",(function(){return se})),n.d(t,"n",(function(){return W})),n.d(t,"o",(function(){return _}));var r=n(7),i=n(16),a=n(15),o=n(4),s=n(6),c=n(18);n.d(t,"k",(function(){return c.a}));var l,u=n(24),f=/\r\n?|\n/;!function(e){e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter"}(l||(l={}));var d=function(){function e(t){Object(o.a)(this,e),this.sections=t}return Object(s.a)(e,[{key:"iterGaps",value:function(e){for(var t=0,n=0,r=0;t<this.sections.length;){var i=this.sections[t++],a=this.sections[t++];a<0?(e(n,r,i),r+=i):r+=a,n+=i}}},{key:"iterChangedRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,e,t)}},{key:"composeDesc",value:function(e){return this.empty?e:e.empty?this:b(this,e)}},{key:"mapDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:g(this,e,t)}},{key:"mapPos",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.Simple,r=0,i=0,a=0;a<this.sections.length;){var o=this.sections[a++],s=this.sections[a++],c=r+o;if(s<0){if(c>e)return i+(e-r);i+=o}else{if(n!=l.Simple&&c>=e&&(n==l.TrackDel&&r<e&&c>e||n==l.TrackBefore&&r<e||n==l.TrackAfter&&c>e))return-1;if(c>e||c==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=c}if(e>r)throw new RangeError("Position ".concat(e," is out of range for changeset of length ").concat(r));return i}},{key:"mapPosStable",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=0,r=0,i=0,a=0;a<this.sections.length;){var o=this.sections[a++],s=this.sections[a++],c=n+o;if(s<0){if(c>e)return r+Math.max(0,e-n);i=r+=o}else{if(t<=0&&c>=e)return i;r+=s}n=c}return r}},{key:"touchesRange",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=0,r=0;n<this.sections.length&&r<=t;){var i=this.sections[n++],a=this.sections[n++],o=r+i;if(a>=0&&r<=t&&o>=e)return!(r<e&&o>t)||"cover";r=o}return!1}},{key:"toString",value:function(){for(var e="",t=0;t<this.sections.length;){var n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}},{key:"length",get:function(){for(var e=0,t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}},{key:"newLength",get:function(){for(var e=0,t=0;t<this.sections.length;t+=2){var n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}},{key:"empty",get:function(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}},{key:"invertedDesc",get:function(){for(var t=[],n=0;n<this.sections.length;){var r=this.sections[n++],i=this.sections[n++];i<0?t.push(r,i):t.push(i,r)}return new e(t)}}]),e}(),h=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this,e)).inserted=r,i}return Object(s.a)(n,[{key:"apply",value:function(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return m(this,(function(t,n,r,i,a){return e=e.replace(r,r+(n-t),a)}),!1),e}},{key:"mapDesc",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return g(this,e,t,!0)}},{key:"invert",value:function(e){for(var t=this.sections.slice(),r=[],i=0,a=0;i<t.length;i+=2){var o=t[i],s=t[i+1];if(s>=0){t[i]=s,t[i+1]=o;for(var l=i>>1;r.length<l;)r.push(c.a.empty);r.push(o?e.slice(a,a+o):c.a.empty)}a+=o}return new n(t,r)}},{key:"compose",value:function(e){return this.empty?e:e.empty?this:b(this,e,!0)}},{key:"map",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:g(this,e,t,!0)}},{key:"iterChanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,e,t)}},{key:"filter",value:function(e){var t=[],r=[],i=[],a=new y(this);e:for(var o=0,s=0;;){for(var c=o==e.length?1e9:e[o++];s<c||s==c&&0==a.len;){if(a.done)break e;var l=Math.min(a.len,c-s);p(i,l,-1);var u=-1==a.ins?-1:0==a.off?a.ins:0;p(t,l,u),u>0&&v(r,t,a.text),a.forward(l),s+=l}for(var f=e[o++];s<f;){if(a.done)break e;var h=Math.min(a.len,f-s);p(t,h,-1),p(i,h,-1==a.ins?-1:0==a.off?a.ins:0),a.forward(h),s+=h}}return{changes:new n(t,r),filtered:new d(i)}}},{key:"toJSON",value:function(){for(var e=[],t=0;t<this.sections.length;t+=2){var n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n,this.inserted[t>>1].toJSON()])}return e}},{key:"desc",get:function(){return new d(this.sections)}}],[{key:"of",value:function(e,t,i){var a=[],o=[],s=0,l=null;function u(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||a.length){s<t&&p(a,t-s,-1);var r=new n(a,o);l=l?l.compose(r.map(l)):r,a=[],o=[],s=0}}return function e(d){if(Array.isArray(d)){var h,m=Object(r.a)(d);try{for(m.s();!(h=m.n()).done;){e(h.value)}}catch(w){m.e(w)}finally{m.f()}}else if(d instanceof n){if(d.length!=t)throw new RangeError("Mismatched change set length (got ".concat(d.length,", expected ").concat(t,")"));u(),l=l?l.compose(d.map(l)):d}else{var g=d.from,b=d.to,y=void 0===b?g:b,O=d.insert;if(g>y||g<0||y>t)throw new RangeError("Invalid change range ".concat(g," to ").concat(y," (in doc of length ").concat(t,")"));var x=O?"string"==typeof O?c.a.of(O.split(i||f)):O:c.a.empty,k=x.length;if(g==y&&0==k)return;g<s&&u(),g>s&&p(a,g-s,-1),p(a,y-g,k),v(o,a,x),s=y}}(e),u(!l),l}},{key:"empty",value:function(e){return new n(e?[e,-1]:[],[])}},{key:"fromJSON",value:function(e){for(var t=[],r=[],i=0;i<e.length;i++){var a=e[i];if("number"==typeof a)t.push(a,-1);else if(1==a.length)t.push(a[0],0);else{for(;r.length<i;)r.push(c.a.empty);r[i]=c.a.of(a[1]),t.push(a[0],r[i].length)}}return new n(t,r)}}]),n}(d);function p(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!(0==t&&n<=0)){var i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}}function v(e,t,n){if(0!=n.length){var r=t.length-2>>1;if(r<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<r;)e.push(c.a.empty);e.push(n)}}}function m(e,t,n){for(var r=e.inserted,i=0,a=0,o=0;o<e.sections.length;){var s=e.sections[o++],l=e.sections[o++];if(l<0)i+=s,a+=s;else{for(var u=i,f=a,d=c.a.empty;u+=s,f+=l,l&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],l=e.sections[o++];t(i,u,a,f,d),i=u,a=f}}}function g(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],a=r?[]:null,o=new y(e),s=new y(t),c=0,l=0;;)if(-1==o.ins)c+=o.len,o.next();else if(-1==s.ins&&l<c){var u=Math.min(s.len,c-l);s.forward(u),p(i,u,-1),l+=u}else if(s.ins>=0&&(o.done||l<c||l==c&&(s.len<o.len||s.len==o.len&&!n))){for(p(i,s.ins,-1);c>l&&!o.done&&c+o.len<l+s.len;)c+=o.len,o.next();l+=s.len,s.next()}else{if(!(o.ins>=0)){if(o.done&&s.done)return a?new h(i,a):new d(i);throw new Error("Mismatched change set lengths")}for(var f=0,m=c+o.len;;)if(s.ins>=0&&l>c&&l+s.len<m)f+=s.ins,l+=s.len,s.next();else{if(!(-1==s.ins&&l<m))break;var g=Math.min(s.len,m-l);f+=g,s.forward(g),l+=g}p(i,f,o.ins),a&&v(a,i,o.text),c=m,o.next()}}function b(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[],i=n?[]:null,a=new y(e),o=new y(t),s=!1;;){if(a.done&&o.done)return i?new h(r,i):new d(r);if(0==a.ins)p(r,a.len,0,s),a.next();else if(0!=o.len||o.done){if(a.done||o.done)throw new Error("Mismatched change set lengths");var c=Math.min(a.len2,o.len),l=r.length;if(-1==a.ins){var u=-1==o.ins?-1:o.off?0:o.ins;p(r,c,u,s),i&&u&&v(i,r,o.text)}else-1==o.ins?(p(r,a.off?0:a.len,c,s),i&&v(i,r,a.textBit(c))):(p(r,a.off?0:a.len,o.off?0:o.ins,s),i&&!o.off&&v(i,r,o.text));s=(a.ins>c||o.ins>=0&&o.len>c)&&(s||r.length>l),a.forward2(c),o.forward(c)}else p(r,0,o.ins,s),i&&v(i,r,o.text),o.next()}}var y=function(){function e(t){Object(o.a)(this,e),this.set=t,this.i=0,this.next()}return Object(s.a)(e,[{key:"next",value:function(){var e=this.set.sections;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}},{key:"textBit",value:function(e){var t=this.set.inserted,n=this.i-2>>1;return n>=t.length&&!e?c.a.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}},{key:"forward",value:function(e){e==this.len?this.next():(this.len-=e,this.off+=e)}},{key:"forward2",value:function(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},{key:"done",get:function(){return-2==this.ins}},{key:"len2",get:function(){return this.ins<0?this.len:this.ins}},{key:"text",get:function(){var e=this.set.inserted,t=this.i-2>>1;return t>=e.length?c.a.empty:e[t]}}]),e}(),O=function(){function e(t,n,r){Object(o.a)(this,e),this.from=t,this.to=n,this.flags=r}return Object(s.a)(e,[{key:"map",value:function(t){var n=t.mapPos(this.from),r=t.mapPos(this.to);return n==this.from&&r==this.to?this:new e(n,r,this.flags)}},{key:"extend",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return x.range(e,t);var n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return x.range(this.anchor,n)}},{key:"eq",value:function(e){return this.anchor==e.anchor&&this.head==e.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}},{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var e=3&this.flags;return 3==e?null:e}},{key:"goalColumn",get:function(){var e=this.flags>>5;return 33554431==e?void 0:e}}],[{key:"fromJSON",value:function(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return x.range(e.anchor,e.head)}}]),e}(),x=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(o.a)(this,e),this.ranges=t,this.primaryIndex=n}return Object(s.a)(e,[{key:"map",value:function(t){return t.empty?this:e.create(this.ranges.map((function(e){return e.map(t)})),this.primaryIndex)}},{key:"eq",value:function(e){if(this.ranges.length!=e.ranges.length||this.primaryIndex!=e.primaryIndex)return!1;for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}},{key:"asSingle",value:function(){return 1==this.ranges.length?this:new e([this.primary])}},{key:"addRange",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.create([t].concat(this.ranges),n?0:this.primaryIndex+1)}},{key:"replaceRange",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.primaryIndex,r=this.ranges.slice();return r[n]=t,e.create(r,this.primaryIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(e){return e.toJSON()})),primaryIndex:this.primaryIndex}}},{key:"primary",get:function(){return this.ranges[this.primaryIndex]}}],[{key:"fromJSON",value:function(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.primaryIndex||t.primaryIndex>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new e(t.ranges.map((function(e){return O.fromJSON(e)})),t.primaryIndex)}},{key:"single",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return new e([e.range(t,n)],0)}},{key:"create",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==t.length)throw new RangeError("A selection needs at least one range");for(var r=0,i=0;i<t.length;i++){var a=t[i];if(a.empty?a.from<=r:a.from<r)return k(t.slice(),n);r=a.to}return new e(t,n)}},{key:"cursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new O(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!==r&&void 0!==r?r:33554431)<<5)}},{key:"range",value:function(e,t,n){var r=(null!==n&&void 0!==n?n:33554431)<<5;return t<e?new O(t,e,16|r):new O(e,t,r)}}]),e}();function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t];e.sort((function(e,t){return e.from-t.from})),t=e.indexOf(n);for(var r=1;r<e.length;r++){var i=e[r],a=e[r-1];if(i.empty?i.from<=a.to:i.from<a.to){var o=a.from,s=Math.max(i.to,a.to);r<=t&&t--,e.splice(--r,2,i.anchor>i.head?x.range(s,o):x.range(o,s))}}return new x(e,t)}function w(e,t){var n,i=Object(r.a)(e.ranges);try{for(i.s();!(n=i.n()).done;){if(n.value.to>t)throw new RangeError("Selection points outside of document")}}catch(a){i.e(a)}finally{i.f()}}var j=0,S=function(){function e(t,n,r,i){Object(o.a)(this,e),this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=j++,this.default=t([])}return Object(s.a)(e,[{key:"of",value:function(e){return new E([],this,0,e)}},{key:"compute",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new E(e,this,1,t)}},{key:"computeN",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new E(e,this,2,t)}},{key:"from",value:function(e,t){var n=this;return function(r){return D(t,n.compute([r],(function(t){return e(t.field(r))})))}}},{key:"nFrom",value:function(e,t){var n=this;return function(r){return D(t,n.computeN([r],(function(t){return e(t.field(r))})))}}}],[{key:"define",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new e(t.combine||function(e){return e},t.compareInput||function(e,t){return e===t},t.compare||(t.combine?function(e,t){return e===t}:C),!!t.static)}}]),e}();function C(e,t){return e==t||e.length==t.length&&e.every((function(e,n){return e===t[n]}))}var E=function(){function e(t,n,r,i){Object(o.a)(this,e),this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=j++}return Object(s.a)(e,[{key:"dynamicSlot",value:function(e){var t,n=this.value,i=this.facet.compareInput,a=e[this.id]>>1,o=2==this.type,s=!1,c=!1,l=[],u=Object(r.a)(this.dependencies);try{for(u.s();!(t=u.n()).done;){var f=t.value;"doc"==f?s=!0:"selection"==f?c=!0:0==(1&e[f.id])&&l.push(e[f.id])}}catch(d){u.e(d)}finally{u.f()}return function(e,t){if(!t||t.reconfigure)return e.values[a]=n(e),1;if(!(s&&t.docChanged||c&&(t.docChanged||t.selection)||l.some((function(t){return(1&I(e,t))>0}))))return 0;var r=n(e),u=t.startState.values[a];return(o?function(e,t,n){if(e.length!=t.length)return!1;for(var r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}(r,u,i):i(r,u))?0:(e.values[a]=r,1)}}}]),e}();function M(e,t,n){var i=n.map((function(t){return e[t.id]})),a=n.map((function(e){return e.type})),o=i.filter((function(e){return!(1&e)})),s=e[t.id]>>1;return function(e,n){var c,l=n?n.reconfigure?n.startState.config.address[t.id]:s<<1:null,u=null==l,f=Object(r.a)(o);try{for(f.s();!(c=f.n()).done;){1&I(e,c.value)&&(u=!0)}}catch(y){f.e(y)}finally{f.f()}if(!u)return 0;for(var d=[],h=0;h<i.length;h++){var p=z(e,i[h]);if(2==a[h]){var v,m=Object(r.a)(p);try{for(m.s();!(v=m.n()).done;){var g=v.value;d.push(g)}}catch(y){m.e(y)}finally{m.f()}}else d.push(p)}var b=t.combine(d);return null!=l&&t.compare(b,z(n.startState,l))?0:(e.values[s]=b,1)}}var P=function(){function e(t,n,r,i,a){Object(o.a)(this,e),this.id=t,this.createF=n,this.updateF=r,this.compareF=i,this.facets=a}return Object(s.a)(e,[{key:"slot",value:function(e){var t=this,n=e[this.id]>>1;return function(e,r){if(!r)return e.values[n]=t.createF(e),1;var i,a=0;if(r.reconfigure){var o=function(e,t){var n=e.config.address[t];return null==n?null:n>>1}(r.startState,t.id);i=null==o?t.createF(r.startState):r.startState.values[o],a=1}else i=r.startState.values[n];var s=t.updateF(i,r);return a||t.compareF(i,s)||(a=1),a&&(e.values[n]=s),a}}}],[{key:"define",value:function(t){var n=[],i=new e(j++,t.create,t.update,t.compare||function(e,t){return e===t},n);if(t.provide){var a,o=Object(r.a)(t.provide);try{for(o.s();!(a=o.n()).done;){var s=a.value;s instanceof S?n.push(s.compute([i],(function(e){return e.field(i)}))):n.push(s(i))}}catch(c){o.e(c)}finally{o.f()}}return i}}]),e}(),T={fallback:3,default:2,extend:1,override:0};function _(e,t){if(!T.hasOwnProperty(t))throw new RangeError("Invalid precedence: ".concat(t));return new A(e,T[t])}function D(e,t){return e?_(t,e):t}var A=function e(t,n){Object(o.a)(this,e),this.e=t,this.prec=n},R=function e(t,n){Object(o.a)(this,e),this.tag=t,this.extension=n};var L=function(){function e(t,n,r,i,a){for(Object(o.a)(this,e),this.source=t,this.replacements=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.statusTemplate=[];this.statusTemplate.length<a.length;)this.statusTemplate.push(0)}return Object(s.a)(e,[{key:"staticFacet",value:function(e){var t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}}],[{key:"resolve",value:function(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.create(null),a=arguments.length>2?arguments[2]:void 0,o=[],s=Object.create(null),c=Object(r.a)(N(t,i));try{for(c.s();!(n=c.n()).done;){var l=n.value;l instanceof P?o.push(l):(s[l.facet.id]||(s[l.facet.id]=[])).push(l)}}catch(b){c.e(b)}finally{c.f()}for(var u=Object.create(null),f=[],d=[],h=function(){var e=v[p];u[e.id]=d.length<<1,d.push((function(t){return e.slot(t)}))},p=0,v=o;p<v.length;p++)h();var m=function(e){var t=s[e],n=t[0].facet;if(t.every((function(e){return 0==e.type}))){u[n.id]=f.length<<1|1;var i=n.combine(t.map((function(e){return e.value}))),o=a?a.config.address[n.id]:null;if(null!=o){var c=z(a,o);n.compare(i,c)&&(i=c)}f.push(i)}else{var l,h=Object(r.a)(t);try{var p=function(){var e=l.value;0==e.type?(u[e.id]=f.length<<1|1,f.push(e.value)):(u[e.id]=d.length<<1,d.push((function(t){return e.dynamicSlot(t)})))};for(h.s();!(l=h.n()).done;)p()}catch(b){h.e(b)}finally{h.f()}u[n.id]=d.length<<1,d.push((function(e){return M(e,n,t)}))}};for(var g in s)m(g);return new e(t,i,d.map((function(e){return e(u)})),u,f)}}]),e}();function N(e,t){var n=[[],[],[],[]],i=new Map,a=Object.create(null);function o(e,s){var c=i.get(e);if(null!=c){if(c>=s)return;var l=n[c].indexOf(e);l>-1&&n[c].splice(l,1)}if(i.set(e,s),Array.isArray(e)){var u,f=Object(r.a)(e);try{for(f.s();!(u=f.n()).done;){o(u.value,s)}}catch(d){f.e(d)}finally{f.f()}}else if(e instanceof R){if(e.tag in a)throw new RangeError("Duplicate use of tag '".concat(String(e.tag),"' in extensions"));a[e.tag]=!0,o(t[e.tag]||e.extension,s)}else e.extension?o(e.extension,s):e instanceof A?o(e.e,e.prec):(n[s].push(e),e instanceof P&&o(e.facets,s))}o(e,T.default);var s,c,l=Object(r.a)((c=t,(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(c):[]).concat(Object.keys(c))));try{for(l.s();!(s=l.n()).done;){var u=s.value;!(u in a)&&"full"!=u&&t[u]&&(a[u]=!0,o(t[u],T.default))}}catch(f){l.e(f)}finally{l.f()}return n.reduce((function(e,t){return e.concat(t)}))}function I(e,t){if(1&t)return 2;var n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;var i=e.config.dynamicSlots[n](e,e.applying);return e.status[n]=2|i}function z(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}var $=S.define({combine:function(e){return e.some((function(e){return e}))},static:!0}),F=S.define({combine:function(e){return e.length?e[0]:void 0},static:!0}),B=S.define(),Q=S.define(),W=new u.c,H=S.define(),V=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(o.a)(this,e),this.state=t,this.options=n}return Object(s.a)(e,[{key:"textAfterPos",value:function(e){var t,n,r=null===(t=this.options)||void 0===t?void 0:t.simulateBreak;return e==r&&(null===(n=this.options)||void 0===n?void 0:n.simulateDoubleBreak)?"":this.state.sliceDoc(e,Math.min(e+100,null!=r&&r>e?r:1e9,this.state.doc.lineAt(e).to))}},{key:"countColumn",value:function(e,t){return Object(c.d)(t<0?e:e.slice(0,t),0,this.state.tabSize)}},{key:"lineIndent",value:function(e){var t,n=null===(t=this.options)||void 0===t?void 0:t.overrideIndentation;if(n){var r=n(e.from);if(r>-1)return r}var i=e.slice(0,Math.min(100,e.length));return this.countColumn(i,i.search(/\S/))}},{key:"column",value:function(e){var t,n=this.state.doc.lineAt(e),r=n.slice(0,e-n.from),i=this.countColumn(r,e-n.from),a=(null===(t=this.options)||void 0===t?void 0:t.overrideIndentation)?this.options.overrideIndentation(n.from):-1;return a>-1&&(i+=a-this.countColumn(r,r.search(/\S/))),i}},{key:"unit",get:function(){return this.state.indentUnit}}]),e}(),U=function(){function e(t,n){Object(o.a)(this,e),this.type=t,this.value=n}return Object(s.a)(e,null,[{key:"define",value:function(){return new q}}]),e}(),q=function(){function e(){Object(o.a)(this,e)}return Object(s.a)(e,[{key:"of",value:function(e){return new U(this,e)}}]),e}(),Y=function(){function e(t,n){Object(o.a)(this,e),this.type=t,this.value=n}return Object(s.a)(e,[{key:"map",value:function(t){var n=this.type.map(this.value,t);return void 0===n?void 0:n==this.value?this:new e(this.type,n)}},{key:"is",value:function(e){return this.type==e}}],[{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new X(e.map||function(e){return e})}},{key:"mapEffects",value:function(e,t){if(!e.length)return e;var n,i=[],a=Object(r.a)(e);try{for(a.s();!(n=a.n()).done;){var o=n.value.map(t);o&&i.push(o)}}catch(s){a.e(s)}finally{a.f()}return i}}]),e}(),X=function(){function e(t){Object(o.a)(this,e),this.map=t}return Object(s.a)(e,[{key:"of",value:function(e){return new Y(this,e)}}]),e}(),K=function(){function e(t,n,r,i,a,s,c){Object(o.a)(this,e),this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.reconfigure=s,this.scrollIntoView=c,this._doc=null,this._state=null,r&&w(r,n.newLength),a.some((function(t){return t.type==e.time}))||(this.annotations=a.concat(e.time.of(Date.now())))}return Object(s.a)(e,[{key:"annotation",value:function(e){var t,n=Object(r.a)(this.annotations);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.type==e)return i.value}}catch(a){n.e(a)}finally{n.f()}}},{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"docChanged",get:function(){return!this.changes.empty}}]),e}();function G(e,t){for(var n=[],r=0,i=0;;){var a=void 0,o=void 0;if(r<e.length&&(i==t.length||t[i]>=e[r]))a=e[r++],o=e[r++];else{if(!(i<t.length))return n;a=t[i++],o=t[i++]}!n.length||n[n.length-1]<a?n.push(a,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function Z(e,t,n){var r,i,a,o;return n?(i=t.changes,a=h.empty(t.changes.length),o=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),a=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(i)),{changes:o,selection:t.selection?t.selection.map(a):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:Y.mapEffects(e.effects,i).concat(Y.mapEffects(t.effects,a)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView,reconfigure:t.reconfigure?t.reconfigure.full||!e.reconfigure?t.reconfigure:Object.assign({},e.reconfigure,t.reconfigure):e.reconfigure}}function J(e,t,n){var r=t.reconfigure;r&&r.append&&((r=Object.assign({},r))["undefined"==typeof Symbol?"__append"+Math.floor(4294967295*Math.random()):Symbol("appendConf")]=r.append,r.append=void 0);var i=t.selection;return{changes:t.changes instanceof h?t.changes:h.of(t.changes||[],n,e.facet(F)),selection:i&&(i instanceof x?i:x.single(i.anchor,i.head)),effects:t.effects?Array.isArray(t.effects)?t.effects:[t.effects]:ne,annotations:t.annotations?Array.isArray(t.annotations)?t.annotations:[t.annotations]:ne,scrollIntoView:!!t.scrollIntoView,reconfigure:r}}function ee(e,t,n){var i=J(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(var a=1;a<t.length;a++){!1===t[a].filter&&(n=!1);var o=!!t[a].sequential;i=Z(i,J(e,t[a],o?i.changes.newLength:e.doc.length),o)}var s=new K(e,i.changes,i.selection,i.effects,i.annotations,i.reconfigure,i.scrollIntoView);return n?function(e){var t,n=e.startState,i=!0,a=Object(r.a)(n.facet(B));try{for(a.s();!(t=a.n()).done;){var o=(0,t.value)(e);if(!1===o){i=!1;break}Array.isArray(o)&&(i=!0===i?o:G(i,o))}}catch(p){a.e(p)}finally{a.f()}if(!0!==i){var s,c;if(!1===i)c=e.changes.invertedDesc,s=h.empty(n.doc.length);else{var l=e.changes.filter(i);s=l.changes,c=l.filtered.invertedDesc}e=new K(n,s,e.selection&&e.selection.map(c),Y.mapEffects(e.effects,c),e.annotations,e.reconfigure,e.scrollIntoView)}for(var u=n.facet(Q),f=u.length-1;f>=0;f--){var d=u[f](e);e=d instanceof K?d:Array.isArray(d)&&1==d.length&&d[0]instanceof K?d[0]:ee(n,Array.isArray(d)?d:[d],!1)}return e}(s):s}K.time=U.define(),K.userEvent=U.define(),K.addToHistory=U.define();var te,ne=[];!function(e){e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other"}(te||(te={}));var re,ie=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{re=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(ce){}function ae(e){return function(t){if(!/\S/.test(t))return te.Space;if(function(e){if(re)return re.test(e);for(var t=0;t<e.length;t++){var n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ie.test(n)))return!0}return!1}(t))return te.Word;for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return te.Word;return te.Other}}var oe=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(Object(o.a)(this,e),this.config=t,this.doc=n,this.selection=r,this.applying=null,this.status=t.statusTemplate.slice(),i&&!i.reconfigure)this.values=i.startState.values.slice();else if(this.values=t.dynamicSlots.map((function(e){return null})),i)for(var a in t.address){var s=t.address[a],c=i.startState.config.address[a];null!=c&&0==(1&s)&&(this.values[s>>1]=z(i.startState,c))}this.applying=i,i&&(i._state=this);for(var l=0;l<this.config.dynamicSlots.length;l++)I(this,l<<1);this.applying=null}return Object(s.a)(e,[{key:"field",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return I(this,n),z(this,n);if(t)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ee(this,t,!0)}},{key:"applyTransaction",value:function(t){var n=this.config;t.reconfigure&&(n=L.resolve(t.reconfigure.full||n.source,Object.assign(n.replacements,t.reconfigure,{full:void 0}),this)),new e(n,t.newDoc,t.newSelection,t)}},{key:"replaceSelection",value:function(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((function(t){return{changes:{from:t.from,to:t.to,insert:e},range:x.cursor(t.from+e.length)}}))}},{key:"changeByRange",value:function(e){for(var t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],a=1;a<t.ranges.length;a++){for(var o=e(t.ranges[a]),s=this.changes(o.changes),c=s.map(r),l=0;l<a;l++)i[l]=i[l].map(c);i.push(o.range.map(r.mapDesc(s,!0))),r=r.compose(c)}return{changes:r,selection:x.create(i,t.primaryIndex)}}},{key:"changes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t instanceof h?t:h.of(t,this.doc.length,this.facet(e.lineSeparator))}},{key:"toText",value:function(t){return c.a.of(t.split(this.facet(e.lineSeparator)||f))}},{key:"sliceDoc",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}},{key:"facet",value:function(e){var t=this.config.address[e.id];return null==t?e.default:(I(this,t),z(this,t))}},{key:"toJSON",value:function(){return{doc:this.sliceDoc(),selection:this.selection.toJSON()}}},{key:"indentString",value:function(t){var n="";if(9==this.facet(e.indentUnit).charCodeAt(0))for(;t>=this.tabSize;)n+="\t",t-=this.tabSize;for(var r=0;r<t;r++)n+=" ";return n}},{key:"phrase",value:function(t){var n,i=Object(r.a)(this.facet(e.phrases));try{for(i.s();!(n=i.n()).done;){var a=n.value;if(Object.prototype.hasOwnProperty.call(a,t))return a[t]}}catch(o){i.e(o)}finally{i.f()}return t}},{key:"charCategorizer",value:function(e){return ae(this.languageDataAt("wordChars",e).join(""))}},{key:"languageDataAt",value:function(t,n){for(var i=[],a=this.facet(e.syntax),o=a.length?0:1;o<2;o++){var s,c=this.facet(o?H:a[0].languageDataFacetAt(this,n)),l=Object(r.a)(c);try{for(l.s();!(s=l.n()).done;){var u=s.value;Object.prototype.hasOwnProperty.call(u,t)&&i.push(u[t])}}catch(f){l.e(f)}finally{l.f()}}return i}},{key:"tabSize",get:function(){return this.facet(e.tabSize)}},{key:"lineBreak",get:function(){return this.facet(e.lineSeparator)||"\n"}},{key:"indentUnit",get:function(){var t=this.facet(e.indentUnit);return 9==t.charCodeAt(0)?this.tabSize*t.length:t.length}},{key:"tree",get:function(){var t=this.facet(e.syntax);return t.length?t[0].getTree(this):u.e.empty}}],[{key:"fromJSON",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||"string"!=typeof t.doc)throw new RangeError("Invalid JSON representation for EditorState");return e.create({doc:t.doc,selection:x.fromJSON(t.selection),extensions:n.extensions})}},{key:"create",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=L.resolve(t.extensions||[]),r=t.doc instanceof c.a?t.doc:c.a.of((t.doc||"").split(n.staticFacet(e.lineSeparator)||f)),i=t.selection?t.selection instanceof x?t.selection:x.single(t.selection.anchor,t.selection.head):x.single(0);return w(i,r.length),n.staticFacet($)||(i=i.asSingle()),new e(n,r,i)}}]),e}();function se(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a={},o=Object(r.a)(e);try{for(o.s();!(n=o.n()).done;)for(var s=n.value,c=0,l=Object.keys(s);c<l.length;c++){var u=l[c],f=s[u],d=a[u];if(void 0===d)a[u]=f;else if(d===f||void 0===f);else{if(!Object.hasOwnProperty.call(i,u))throw new Error("Config merge conflict for field "+u);a[u]=i[u](d,f)}}}catch(p){o.e(p)}finally{o.f()}for(var h in t)void 0===a[h]&&(a[h]=t[h]);return a}oe.allowMultipleSelections=$,oe.indentation=S.define(),oe.tabSize=S.define({combine:function(e){return e.length?e[0]:4}}),oe.lineSeparator=F,oe.indentUnit=S.define({combine:function(e){if(!e.length)return" ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}}),oe.phrases=S.define(),oe.syntax=S.define(),oe.globalLanguageData=H,oe.foldable=S.define(),oe.changeFilter=B,oe.transactionFilter=Q},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(83);function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(57);function i(e,t){if(null==e)return{};var n,i,a=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.a=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Oe})),n.d(t,"b",(function(){return ke})),n.d(t,"c",(function(){return Re})),n.d(t,"d",(function(){return Ln})),n.d(t,"e",(function(){return jt})),n.d(t,"f",(function(){return Et})),n.d(t,"g",(function(){return xe})),n.d(t,"h",(function(){return tr})),n.d(t,"i",(function(){return gr})),n.d(t,"j",(function(){return wr})),n.d(t,"k",(function(){return Yn})),n.d(t,"l",(function(){return xt})),n.d(t,"m",(function(){return Xn})),n.d(t,"n",(function(){return Ae}));for(var r=n(13),i=n(60),a=n(30),o=n(27),s=n(16),c=n(15),l=n(25),u=n(7),f=n(4),d=n(6),h=n(20),p=n(5),v=n(61),m=n(32),g=n(18),b={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},y={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},O="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),x="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),k="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),w="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),j="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),S=O&&(w||+O[1]<57)||k&&w,C=0;C<10;C++)b[48+C]=b[96+C]=String(C);for(C=1;C<=24;C++)b[C+111]="F"+C;for(C=65;C<=90;C++)b[C]=String.fromCharCode(C+32),y[C]=String.fromCharCode(C);for(var E in b)y.hasOwnProperty(E)||(y[E]=b[E]);var M="undefined"!=typeof navigator?[navigator,document]:[{userAgent:"",vendor:"",platform:""},{documentElement:{style:{}}}],P=Object(h.a)(M,2),T=P[0],_=P[1],D=/Edge\/(\d+)/.exec(T.userAgent),A=/MSIE \d/.test(T.userAgent),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(T.userAgent),L=!!(A||R||D),N=!L&&/gecko\/(\d+)/i.test(T.userAgent),I=!L&&/Chrome\/(\d+)/.exec(T.userAgent),z="webkitFontSmoothing"in _.documentElement.style,$={mac:/Mac/.test(T.platform),ie:L,ie_version:A?_.documentMode||6:R?+R[1]:D?+D[1]:0,gecko:N,gecko_version:N?+(/Firefox\/(\d+)/.exec(T.userAgent)||[0,0])[1]:0,chrome:!!I,chrome_version:I?+I[1]:0,ios:!L&&/AppleWebKit/.test(T.userAgent)&&/Mobile\/\w+/.test(T.userAgent),android:/Android\b/.test(T.userAgent),webkit:z,safari:/Apple Computer/.test(T.vendor),webkit_version:z?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=_.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function F(e){return e.getSelection?e.getSelection():document.getSelection()}function B(e,t){if(!t.anchorNode)return!1;try{return e.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)}catch(n){return!1}}function Q(e){if(3==e.nodeType){var t=J();return t.setEnd(e,e.nodeValue.length),t.setStart(e,0),t.getClientRects()}return 1==e.nodeType?e.getClientRects():[]}function W(e,t,n,r){return!!n&&(V(e,t,n,r,-1)||V(e,t,n,r,1))}function H(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function V(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:U(e))){if("DIV"==e.nodeName)return!1;var a=e.parentNode;if(!a||1!=a.nodeType)return!1;t=H(e)+(i<0?0:1),e=a}else{if(1!=e.nodeType)return!1;e=e.childNodes[t+(i<0?-1:0)],t=i<0?U(e):0}}}function U(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function q(e,t){var n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function Y(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}var X,K=function(){function e(){Object(f.a)(this,e),this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}return Object(d.a)(e,[{key:"eq",value:function(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}},{key:"set",value:function(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}}]),e}(),G=null;function Z(e){if(e.setActive)return e.setActive();if(G)return e.focus(G);for(var t=[],n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==G?{get preventScroll(){return G={preventScroll:!0},!0}}:void 0),!G){G=!1;for(var r=0;r<t.length;){var i=t[r++],a=t[r++],o=t[r++];i.scrollTop!=a&&(i.scrollTop=a),i.scrollLeft!=o&&(i.scrollLeft=o)}}}function J(){return X||(X=document.createRange())}var ee=function(){function e(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Object(f.a)(this,e),this.node=t,this.offset=n,this.precise=r}return Object(d.a)(e,null,[{key:"before",value:function(t,n){return new e(t.parentNode,H(t),n)}},{key:"after",value:function(t,n){return new e(t.parentNode,H(t)+1,n)}}]),e}(),te=[],ne=function(){function e(){Object(f.a)(this,e),this.parent=null,this.dom=null,this.dirty=2}return Object(d.a)(e,[{key:"posBefore",value:function(e){var t,n=this.posAtStart,r=Object(u.a)(this.children);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i==e)return n;n+=i.length+i.breakAfter}}catch(a){r.e(a)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(e){return this.posBefore(e)+e.length}},{key:"coordsAt",value:function(e,t){return null}},{key:"sync",value:function(t){if(2&this.dirty){var n,r=this.dom,i=null,a=Object(u.a)(this.children);try{for(a.s();!(n=a.n()).done;){var o=n.value;if(o.dirty){var s=i?i.nextSibling:r.firstChild;!s||o.dom||e.get(s)||o.reuseDOM(s),o.sync(t),o.dirty=0}t&&t.node==r&&i!=o.dom&&(t.written=!0),ie(r,i,o.dom),i=o.dom}}catch(h){a.e(h)}finally{a.f()}var c=i?i.nextSibling:r.firstChild;for(c&&t&&t.node==r&&(t.written=!0);c;)c=re(c)}else if(1&this.dirty){var l,f=Object(u.a)(this.children);try{for(f.s();!(l=f.n()).done;){var d=l.value;d.dirty&&(d.sync(t),d.dirty=0)}}catch(h){f.e(h)}finally{f.f()}}}},{key:"reuseDOM",value:function(e){return!1}},{key:"localPosFromDOM",value:function(t,n){var r;if(t==this.dom)r=this.dom.childNodes[n];else{for(var i=0==U(t)?0:0==n?-1:1;;){var a=t.parentNode;if(a==this.dom)break;0==i&&a.firstChild!=a.lastChild&&(i=t==a.firstChild?-1:1),t=a}r=i<0?t:t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!e.get(r);)r=r.nextSibling;if(!r)return this.length;for(var o=0,s=0;;o++){var c=this.children[o];if(c.dom==r)return s;s+=c.length+c.breakAfter}}},{key:"domBoundsAround",value:function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,a=-1,o=-1,s=0,c=n;s<this.children.length;s++){var l=this.children[s],u=c+l.length;if(c<e&&u>t)return l.domBoundsAround(e,t,c);if(u>=e&&-1==r&&(r=s,i=c),u>=t&&-1==a){a=s,o=u;break}c=u+l.breakAfter}return{from:i,to:o,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length-1?this.children[a+1].dom:null}}},{key:"markDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];2&this.dirty||(this.dirty|=2,this.markParentsDirty(e))}},{key:"markParentsDirty",value:function(e){for(var t=this.parent;t;t=t.parent){if(e&&(t.dirty|=2),1&t.dirty)return;t.dirty|=1,e=!1}}},{key:"setParent",value:function(e){this.parent!=e&&(this.parent=e,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(e){this.dom=e,e.cmView=this}},{key:"replaceChildren",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:te;this.markDirty();for(var i=e;i<t;i++)this.children[i].parent=null;(n=this.children).splice.apply(n,[e,t-e].concat(Object(l.a)(r)));for(var a=0;a<r.length;a++)r[a].setParent(this)}},{key:"ignoreMutation",value:function(e){return!1}},{key:"ignoreEvent",value:function(e){return!1}},{key:"childCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length;return new ae(this.children,e,this.children.length)}},{key:"childPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}},{key:"toString",value:function(){var e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}},{key:"editorView",get:function(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}},{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"rootView",get:function(){for(var e=this;;){var t=e.parent;if(!t)return e;e=t}}}],[{key:"get",value:function(e){return e.cmView}}]),e}();function re(e){var t=e.nextSibling;return e.parentNode.removeChild(e),t}function ie(e,t,n){var r=t?t.nextSibling:e.firstChild;if(n.parentNode==e)for(;r!=n;)r=re(r);else e.insertBefore(n,r)}ne.prototype.breakAfter=0;var ae=function(){function e(t,n,r){Object(f.a)(this,e),this.children=t,this.pos=n,this.i=r,this.off=0}return Object(d.a)(e,[{key:"findPos",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;var n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}]),e}(),oe=[],se=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"become",value:function(e){return!1}},{key:"getSide",value:function(){return 0}}]),n}(ne);se.prototype.children=oe;var ce=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).text=e,r}return Object(d.a)(n,[{key:"createDOM",value:function(e){this.setDOM(e||document.createTextNode(this.text))}},{key:"sync",value:function(e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(e){return 3==e.nodeType&&(this.createDOM(e),!0)}},{key:"merge",value:function(e,t,r){return(!r||r instanceof n&&!(this.length-(t-e)+r.length>256))&&(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(t),this.markDirty(),!0)}},{key:"slice",value:function(e){return new n(this.text.slice(e))}},{key:"localPosFromDOM",value:function(e,t){return e==this.dom?t:t?this.text.length:0}},{key:"domAtPos",value:function(e){return new ee(this.dom,e)}},{key:"domBoundsAround",value:function(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(e,t){return ue(this.dom,e,t,this.length)}},{key:"length",get:function(){return this.text.length}}]),n}(se),le=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;Object(f.a)(this,n),(r=t.call(this)).mark=e,r.children=a,r.length=o;var s,c=Object(u.a)(a);try{for(c.s();!(s=c.n()).done;){var l=s.value;l.setParent(Object(i.a)(r))}}catch(d){c.e(d)}finally{c.f()}return r}return Object(d.a)(n,[{key:"createDOM",value:function(){var e=document.createElement(this.mark.tagName);if(this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(var t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);this.setDOM(e)}},{key:"sync",value:function(e){this.dom||this.createDOM(),Object(a.a)(Object(o.a)(n.prototype),"sync",this).call(this,e)}},{key:"merge",value:function(e,t,r,i,a){return(!r||!(!(r instanceof n&&r.mark.eq(this.mark))||e&&i<=0||t<this.length&&a<=0))&&(he(this,e,t,r?r.children:oe,i-1,a-1),this.markDirty(),!0)}},{key:"slice",value:function(e){return new n(this.mark,function(e,t){var n,r=[],i=0,a=Object(u.a)(e);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=i+o.length;s>t&&r.push(i<t?o.slice(t-i):o),i=s}}catch(c){a.e(c)}finally{a.f()}return r}(this.children,e),this.length-e)}},{key:"domAtPos",value:function(e){return pe(this.dom,this.children,e)}},{key:"coordsAt",value:function(e,t){return me(this,e,t)}}]),n}(se);function ue(e,t,n,r){var i=t,a=t,o=0;0==t&&n<0||t==r&&n>=0?$.chrome||$.gecko||(t?(i--,o=1):(a++,o=-1)):n<0?i--:a++;var s=J();s.setEnd(e,a),s.setStart(e,i);var c=s.getBoundingClientRect();return o?q(c,o<0):c}var fe=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(f.a)(this,n),(a=t.call(this)).widget=e,a.length=r,a.side=i,a}return Object(d.a)(n,[{key:"slice",value:function(e){return n.create(this.widget,this.length-e,this.side)}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(e,t,r,i,a){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||e>0&&i<=0||t<this.length&&a<=0))&&(this.length=e+(r?r.length:0)+(this.length-t),!0)}},{key:"become",value:function(e){return e.length==this.length&&e instanceof n&&e.side==this.side&&this.widget.constructor==e.widget.constructor&&(this.widget.eq(e.widget)||this.markDirty(!0),this.widget=e.widget,!0)}},{key:"ignoreMutation",value:function(){return!0}},{key:"ignoreEvent",value:function(e){return this.widget.ignoreEvent(e)}},{key:"domAtPos",value:function(e){return 0==e?ee.before(this.dom):ee.after(this.dom,e==this.length)}},{key:"domBoundsAround",value:function(){return null}},{key:"coordsAt",value:function(e,t){for(var n=this.dom.getClientRects(),r=null,i=e>0?n.length-1:0;r=n[i],!(e>0?0==i:i==n.length-1||r.top<r.bottom);i+=e>0?-1:1);return r}},{key:"overrideDOMText",get:function(){if(0==this.length)return g.a.empty;for(var e=this;e.parent;)e=e.parent;var t=e.editorView,n=t&&t.state.doc,r=this.posAtStart;return n?n.slice(r,r+this.length):g.a.empty}}],[{key:"create",value:function(e,t,r){return new(e.customView||n)(e,t,r)}}]),n}(se),de=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(d.a)(n,[{key:"domAtPos",value:function(e){return new ee(this.widget.text,e)}},{key:"sync",value:function(){this.dom||this.setDOM(this.widget.toDOM())}},{key:"localPosFromDOM",value:function(e,t){return t?3==e.nodeType?Math.min(t,this.length):this.length:0}},{key:"ignoreMutation",value:function(){return!1}},{key:"coordsAt",value:function(e,t){return ue(this.widget.text,e,t,this.length)}},{key:"overrideDOMText",get:function(){return null}}]),n}(fe);function he(e,t,n,r,i,a){var o,s=e.childCursor(),c=s.findPos(n,1),l=c.i,f=c.off,d=s.findPos(t,-1),h=d.i,p=d.off,v=t-n,m=Object(u.a)(r);try{for(m.s();!(o=m.n()).done;){v+=o.value.length}}catch(w){m.e(w)}finally{m.f()}e.length+=v;var g=e.children;if(h==l&&p){var b=g[h];if(1==r.length&&b.merge(p,f,r[0],i,a))return;if(0==r.length)return void b.merge(p,f,null,i,a);var y=b.slice(f);y.merge(0,0,r[r.length-1],0,a)?r[r.length-1]=y:r.push(y),l++,a=f=0}if(f){var O=g[l];r.length&&O.merge(0,f,r[r.length-1],0,a)?(r.pop(),a=0):O.merge(0,f,null,0,0)}else l<g.length&&r.length&&g[l].merge(0,0,r[r.length-1],0,a)&&(r.pop(),a=0);if(p){var x=g[h];r.length&&x.merge(p,x.length,r[0],i,0)?(r.shift(),i=0):x.merge(p,x.length,null,0,0),h++}else if(h&&r.length){var k=g[h-1];k.merge(k.length,k.length,r[0],i,0)&&(r.shift(),i=0)}for(;h<l&&r.length&&g[l-1].become(r[r.length-1]);)r.pop(),l--,a=0;for(;h<l&&r.length&&g[h].become(r[0]);)r.shift(),h++,i=0;!r.length&&h&&l<g.length&&i&&a&&g[l].merge(0,0,g[h-1],i,a)&&h--,(r.length||h!=l)&&e.replaceChildren(h,l,r)}function pe(e,t,n){for(var r=0,i=0;r<t.length;r++){var a=t[r],o=i+a.length;if(!(o==i&&a.getSide()<=0)){if(n>i&&n<o&&a.dom.parentNode==e)return a.domAtPos(n-i);if(n<=i)break;i=o}}for(;r>0;r--){var s=t[r-1].dom;if(s.parentNode==e)return ee.after(s)}return new ee(e,0)}function ve(e,t,n){var r,i=e.children;n>0&&t instanceof le&&i.length&&(r=i[i.length-1])instanceof le&&r.mark.eq(t.mark)?ve(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function me(e,t,n){for(var r=0,i=0;i<e.children.length;i++){var a=e.children[i],o=r+a.length;if(!(o==r&&a.getSide()<=0)){if(n<=0||o==e.length?o>=t:o>t)return a.coordsAt(t-r,n);r=o}}return(e.dom.lastChild||e.dom).getBoundingClientRect()}function ge(e,t){for(var n in e)"class"==n&&t.class?t.class+=" "+e.class:"style"==n&&t.style?t.style+=";"+e.style:t[n]=e[n];return t}function be(e,t){if(e==t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var i=0,a=n;i<a.length;i++){var o=a[i];if(-1==r.indexOf(o)||e[o]!==t[o])return!1}return!0}function ye(e,t,n){if(t)for(var r in t)n&&r in n||e.removeAttribute(r);if(n)for(var i in n)t&&t[i]==n[i]||e.setAttribute(i,n[i])}var Oe,xe=function(){function e(){Object(f.a)(this,e)}return Object(d.a)(e,[{key:"eq",value:function(e){return!1}},{key:"updateDOM",value:function(e){return!1}},{key:"compare",value:function(e){return this==e||this.constructor==e.constructor&&this.eq(e)}},{key:"ignoreEvent",value:function(e){return!0}},{key:"estimatedHeight",get:function(){return-1}},{key:"customView",get:function(){return null}}]),e}();!function(e){e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange"}(Oe||(Oe={}));var ke=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var o;return Object(f.a)(this,n),(o=t.call(this)).startSide=e,o.endSide=r,o.widget=i,o.spec=a,o}return Object(d.a)(n,[{key:"hasHeight",value:function(){return!!this.widget&&this.widget.estimatedHeight>-1}},{key:"heightRelevant",get:function(){return!1}}],[{key:"mark",value:function(e){return new we(e)}},{key:"widget",value:function(e){var t=e.side||0;return e.block&&(t+=200000001*(t>0?1:-1)),new Se(e,t,t,!!e.block,e.widget||null,!1)}},{key:"replace",value:function(e){var t=!!e.block,n=Ce(e),r=n.start,i=n.end;return new Se(e,t?-2e8*(r?2:1):1e8*(r?-1:1),t?2e8*(i?2:1):1e8*(i?1:-1),t,e.widget||null,!0)}},{key:"line",value:function(e){return new je(e)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return m.b.of(e,t)}}]),n}(m.d);ke.none=m.b.empty;var we=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;Object(f.a)(this,n);var i=Ce(e),a=i.start,o=i.end;return(r=t.call(this,1e8*(a?-1:1),1e8*(o?1:-1),null,e)).tagName=e.tagName||"span",r.class=e.class||"",r.attrs=e.attributes||null,r}return Object(d.a)(n,[{key:"eq",value:function(e){return this==e||e instanceof n&&this.tagName==e.tagName&&this.class==e.class&&be(this.attrs,e.attrs)}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=t)throw new RangeError("Mark decorations may not be empty");return Object(a.a)(Object(o.a)(n.prototype),"range",this).call(this,e,t)}}]),n}(ke);we.prototype.point=!1;var je=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(f.a)(this,n),t.call(this,-1e8,-1e8,null,e)}return Object(d.a)(n,[{key:"eq",value:function(e){return e instanceof n&&be(this.spec.attributes,e.spec.attributes)}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return Object(a.a)(Object(o.a)(n.prototype),"range",this).call(this,e,t)}}]),n}(ke);je.prototype.mapMode=p.h.TrackBefore,je.prototype.point=!0;var Se=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a,o,s){var c;return Object(f.a)(this,n),(c=t.call(this,r,i,o,e)).block=a,c.isReplace=s,c.mapMode=a?r<0?p.h.TrackBefore:p.h.TrackAfter:p.h.TrackDel,c}return Object(d.a)(n,[{key:"eq",value:function(e){return e instanceof n&&(t=this.widget,r=e.widget,t==r||!!(t&&r&&t.compare(r)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,r}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return Object(a.a)(Object(o.a)(n.prototype),"range",this).call(this,e,t)}},{key:"type",get:function(){return this.startSide<this.endSide?Oe.WidgetRange:this.startSide<0?Oe.WidgetBefore:Oe.WidgetAfter}},{key:"heightRelevant",get:function(){return this.block||!!this.widget&&this.widget.estimatedHeight>=5}}]),n}(ke);function Ce(e){var t=e.inclusiveStart,n=e.inclusiveEnd;return null==t&&(t=e.inclusive),null==n&&(n=e.inclusive),{start:t||!1,end:n||!1}}Se.prototype.point=!0;function Ee(e,t,n){var r=n.length-1;r>=0&&n[r]+4>e?n[r]=Math.max(n[r],t):n.push(e,t)}var Me=p.f.define({combine:function(e){return e.join(" ")}}),Pe=p.f.define({combine:function(e){return e.indexOf(!0)>-1}}),Te=v.a.newName();function _e(e){return e.replace(/\$\w[\w\.]*/g,(function(e){for(var t=e.slice(1).split("."),n="",r=1;r<=t.length;r++)n+=".cm-"+t.slice(0,r).join("-");return n}))}function De(e,t){return new v.a(t,{process:function(t){return t=_e(t),/\$/.test(t)?t.replace(/\$/,e):e+" "+t},extend:function(t,n){return t=_e(t),n.slice(0,e.length+1)==e+" "?e+" "+t.replace(/&/,n.slice(e.length+1)):t.replace(/&/,n)}})}function Ae(e){if(e.indexOf(".")<0)return"cm-"+e;for(var t=e.split("."),n="",r=1;r<=t.length;r++)n+=(n?" ":"")+"cm-"+t.slice(0,r).join("-");return n}var Re,Le=De("."+Te,{$:{position:"relative !important",boxSizing:"border-box","&$focused":{outline_fallback:"1px dotted #212121",outline:"5px auto -webkit-focus-ring-color"},display:"flex !important",flexDirection:"column"},$scroller:{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},$content:{margin:0,flexGrow:2,minHeight:"100%",display:"block",whiteSpace:"pre",boxSizing:"border-box",padding:"4px 0",outline:"none"},"$$light $content":{caretColor:"black"},"$$dark $content":{caretColor:"white"},$line:{display:"block",padding:"0 2px 0 4px"},$selectionLayer:{zIndex:-1,contain:"size style"},$selectionBackground:{position:"absolute"},"$$light $selectionBackground":{background:"#d9d9d9"},"$$dark $selectionBackground":{background:"#222"},"$$focused$light $selectionBackground":{background:"#d7d4f0"},"$$focused$dark $selectionBackground":{background:"#233"},$cursorLayer:{zIndex:100,contain:"size style",pointerEvents:"none"},"$$focused $cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{visibility:"hidden"},"100%":{}},$cursor:{position:"absolute",borderLeft:"1.2px solid #aaa",marginLeft:"-0.6px",pointerEvents:"none"},"$$focused $cursor":{borderLeft:"1.2px solid black"},$placeholder:{color:"#888",display:"inline-block"},$button:{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"3px"},"$$light $button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"$$dark $button":{backgroundImage:"linear-gradient(#555, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},$textfield:{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"$$light $textfield":{backgroundColor:"white"},"$$dark $textfield":{border:"1px solid #555",backgroundColor:"inherit"}}),Ne=Ae("line"),Ie=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(f.a)(this,n),(e=t.apply(this,arguments)).children=[],e.length=0,e.prevAttrs=void 0,e.attrs=null,e.breakAfter=0,e}return Object(d.a)(n,[{key:"merge",value:function(e,t,r,i,a,o){if(r){if(!(r instanceof n))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),he(this,e,t,r?r.children:ze,a,o),!0}},{key:"split",value:function(e){var t=new n;if(t.breakAfter=this.breakAfter,0==this.length)return t;var r=this.childPos(e),i=r.i,a=r.off;a&&(t.append(this.children[i].slice(a),0),this.children[i].merge(a,this.children[i].length,null,0,0),i++);for(var o=i;o<this.children.length;o++)t.append(this.children[o],0);for(;i>0&&0==this.children[i-1].length;)this.children[i-1].parent=null,i--;return this.children.length=i,this.markDirty(),this.length=e,t}},{key:"transferDOM",value:function(e){this.dom&&(e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}},{key:"setDeco",value:function(e){be(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}},{key:"append",value:function(e,t){ve(this,e,t)}},{key:"addLineDeco",value:function(e){var t=e.spec.attributes;t&&(this.attrs=ge(t,this.attrs||{}))}},{key:"domAtPos",value:function(e){return pe(this.dom,this.children,e)}},{key:"sync",value:function(e){this.dom||(this.setDOM(document.createElement("div")),this.dom.className=Ne,this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(ye(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add(Ne),this.prevAttrs=void 0),Object(a.a)(Object(o.a)(n.prototype),"sync",this).call(this,e);var t=this.dom.lastChild;if(!t||"BR"!=t.nodeName&&ne.get(t)instanceof fe){var r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}},{key:"measureTextSize",value:function(){if(0==this.children.length||this.length>20)return null;var e,t=0,n=Object(u.a)(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(!(r instanceof ce))return null;var i=Q(r.dom);if(1!=i.length)return null;t+=i[0].width}}catch(a){n.e(a)}finally{n.f()}return{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length}}},{key:"coordsAt",value:function(e,t){return me(this,e,t)}},{key:"match",value:function(e){return!1}},{key:"type",get:function(){return Oe.Text}}],[{key:"find",value:function(e,t){for(var r=0,i=0;;r++){var a=e.children[r],o=i+a.length;if(o>=t){if(a instanceof n)return a;if(a.length)return null}i=o+a.breakAfter}}}]),n}(ne),ze=[],$e=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(f.a)(this,n),(a=t.call(this)).widget=e,a.length=r,a.type=i,a.breakAfter=0,a}return Object(d.a)(n,[{key:"merge",value:function(e,t,r,i,a,o){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||e>0&&a<=0||t<this.length&&o<=0))&&(this.length=e+(r?r.length:0)+(this.length-t),!0)}},{key:"domAtPos",value:function(e){return 0==e?ee.before(this.dom):ee.after(this.dom,e==this.length)}},{key:"split",value:function(e){var t=this.length-e;return this.length=e,new n(this.widget,t,this.type)}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"domBoundsAround",value:function(){return null}},{key:"match",value:function(e){return e instanceof n&&e.type==this.type&&e.widget.constructor==this.widget.constructor&&(e.widget.eq(this.widget)||this.markDirty(!0),this.widget=e.widget,this.length=e.length,this.breakAfter=e.breakAfter,!0)}},{key:"children",get:function(){return ze}},{key:"overrideDOMText",get:function(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):p.k.empty}}]),n}(ne),Fe=function(){function e(t,n,r){Object(f.a)(this,e),this.doc=t,this.pos=n,this.end=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=n}return Object(d.a)(e,[{key:"posCovered",value:function(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;var e=this.content[this.content.length-1];return!e.breakAfter&&!(e instanceof $e&&e.type==Oe.WidgetBefore)}},{key:"getLine",value:function(){return this.curLine||this.content.push(this.curLine=new Ie),this.curLine}},{key:"addWidget",value:function(e){this.curLine=null,this.content.push(e)}},{key:"finish",value:function(){this.posCovered()||this.getLine()}},{key:"wrapMarks",value:function(e,t){for(var n=t.length-1;n>=0;n--)e=new le(t[n],[e],e.length);return e}},{key:"buildText",value:function(e,t,n){for(;e>0;){if(this.textOff==this.text.length){var r=this.cursor.next(this.skip),i=r.value,a=r.lineBreak,o=r.done;if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.curLine=null,e--;continue}this.text=i,this.textOff=0}var s=Math.min(this.text.length-this.textOff,e);this.getLine().append(this.wrapMarks(new ce(this.text.slice(this.textOff,this.textOff+s)),t),n),e-=s,this.textOff+=s}}},{key:"span",value:function(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}},{key:"point",value:function(e,t,n,r,i){var a=t-e;if(n instanceof Se)if(n.block){var o=n.type;o!=Oe.WidgetAfter||this.posCovered()||this.getLine(),this.addWidget(new $e(n.widget||new Be("div"),a,o))}else{var s=this.wrapMarks(fe.create(n.widget||new Be("span"),a,n.startSide),r);this.getLine().append(s,i)}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}}],[{key:"build",value:function(t,n,r,i){var a=new e(t,n,r);return a.openEnd=m.b.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(),a}}]),e}(),Be=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).tag=e,r}return Object(d.a)(n,[{key:"eq",value:function(e){return e.tag==this.tag}},{key:"toDOM",value:function(){return document.createElement(this.tag)}},{key:"updateDOM",value:function(e){return e.nodeName.toLowerCase()==this.tag}}]),n}(xe);!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(Re||(Re={}));var Qe=Re.LTR,We=Re.RTL;function He(e){for(var t=[],n=0;n<e.length;n++)t.push(1<<+e[n]);return t}var Ve=He("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),Ue=He("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333");var qe=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Ye=function(){function e(t,n,r){Object(f.a)(this,e),this.from=t,this.to=n,this.level=r}return Object(d.a)(e,[{key:"side",value:function(e,t){return this.dir==t==e?this.to:this.from}},{key:"dir",get:function(){return this.level%2?We:Qe}}],[{key:"find",value:function(e,t,n,r){for(var i=-1,a=0;a<e.length;a++){var o=e[a];if(o.from<=t&&o.to>=t){if(o.level==n)return a;(i<0||(0!=r?r<0?o.from<t:o.to>t:e[i].level>o.level))&&(i=a)}}if(i<0)throw new RangeError("Index out of range");return i}}]),e}(),Xe=[];function Ke(e,t){var n,r=e.length,i=t==Qe?1:2;if(!e||1==i&&!qe.test(e))return Ge(r);for(var a=0,o=i,s=i;a<r;a++){var c=(n=e.charCodeAt(a))<=247?Ve[n]:1424<=n&&n<=1524?2:1536<=n&&n<=1785?Ue[n-1536]:1774<=n&&n<=2220?4:8192<=n&&n<=8203||8204==n?256:1;512==c?c=o:8==c&&4==s&&(c=16),Xe[a]=4==c?2:c,7&c&&(s=c),o=c}for(var l=0,u=i,f=i;l<r;l++){var d=Xe[l];if(128==d)l<r-1&&u==Xe[l+1]&&24&u?d=Xe[l]=u:Xe[l]=256;else if(64==d){for(var h=l+1;h<r&&64==Xe[h];)h++;for(var p=l&&8==u||h<r&&8==Xe[h]?1==f?1:8:256,v=l;v<h;v++)Xe[v]=p;l=h-1}else 8==d&&1==f&&(Xe[l]=1);u=d,7&d&&(f=d)}for(var m=0;m<r;m++)if(256==Xe[m]){for(var g=m+1;g<r&&256==Xe[g];)g++;for(var b=1==(m?Xe[m-1]:i),y=b==(1==(g<r?Xe[g]:i))?b?1:2:i,O=m;O<g;O++)Xe[O]=y;m=g-1}var x=[];if(1==i)for(var k=0;k<r;){for(var w=k,j=1!=Xe[k++];k<r&&j==(1!=Xe[k]);)k++;if(j)for(var S=k;S>w;){for(var C=S,E=2!=Xe[--S];S>w&&E==(2!=Xe[S-1]);)S--;x.push(new Ye(S,C,E?2:1))}else x.push(new Ye(w,k,0))}else for(var M=0;M<r;){for(var P=M,T=2==Xe[M++];M<r&&T==(2==Xe[M]);)M++;x.push(new Ye(P,M,T?1:2))}return x}function Ge(e){return[new Ye(0,e,0)]}var Ze="";function Je(e,t,n,r,i){var a,o=r.head-e.from,s=-1;if(0==o){if(!i||!e.length)return null;t[0].level!=n&&(o=t[0].side(!1,n),s=0)}else if(o==e.length){if(i)return null;var c=t[t.length-1];c.level!=n&&(o=c.side(!0,n),s=t.length-1)}s<0&&(s=Ye.find(t,o,null!==(a=r.bidiLevel)&&void 0!==a?a:-1,r.assoc));var l=t[s];o==l.side(i,n)&&(o=(l=t[s+=i?1:-1]).side(!i,n));var u=i==(l.dir==n),f=e.findClusterBreak(o,u);if(Ze=e.slice(Math.min(o,f),Math.max(o,f)),f!=l.side(i,n))return p.d.cursor(f+e.from,u?-1:1,l.level);var d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d||l.level==n?d&&d.level<l.level?p.d.cursor(d.side(!i,n)+e.from,0,d.level):p.d.cursor(f+e.from,0,l.level):p.d.cursor(i?e.to:e.from,i?-1:1,n)}var et,tt=["pre-wrap","normal","pre-line"],nt=function(){function e(){Object(f.a)(this,e),this.doc=g.a.empty,this.lineWrapping=!1,this.direction=Re.LTR,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.lineLength=30,this.heightChanged=!1}return Object(d.a)(e,[{key:"heightForGap",value:function(e,t){var n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength)),this.lineHeight*n}},{key:"heightForLine",value:function(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}},{key:"setDoc",value:function(e){return this.doc=e,this}},{key:"mustRefresh",value:function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];a<0?i++:this.heightSamples[Math.floor(10*a)]||(r=!0,this.heightSamples[Math.floor(10*a)]=!0)}return r||tt.indexOf(t)>-1!=this.lineWrapping||this.direction!=n}},{key:"refresh",value:function(e,t,n,r,i,a){var o=tt.indexOf(e)>-1,s=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o||this.direction!=t;if(this.lineWrapping=o,this.direction=t,this.lineHeight=n,this.charWidth=r,this.lineLength=i,s){this.heightSamples={};for(var c=0;c<a.length;c++){var l=a[c];l<0?c++:this.heightSamples[Math.floor(10*l)]=!0}}return s}}]),e}(),rt=function(){function e(t,n){Object(f.a)(this,e),this.from=t,this.heights=n,this.index=0}return Object(d.a)(e,[{key:"more",get:function(){return this.index<this.heights.length}}]),e}(),it=function(){function e(t,n,r,i,a){Object(f.a)(this,e),this.from=t,this.length=n,this.top=r,this.height=i,this.type=a}return Object(d.a)(e,[{key:"join",value:function(t){var n=(Array.isArray(this.type)?this.type:[this]).concat(Array.isArray(t.type)?t.type:[t]);return new e(this.from,this.length+t.length,this.top,this.height+t.height,n)}},{key:"to",get:function(){return this.from+this.length}},{key:"bottom",get:function(){return this.top+this.height}}]),e}();!function(e){e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight"}(et||(et={}));var at=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;Object(f.a)(this,e),this.length=t,this.height=n,this.flags=r}return Object(d.a)(e,[{key:"setHeight",value:function(e,t){this.height!=t&&(Math.abs(this.height-t)>1e-4&&(e.heightChanged=!0),this.height=t)}},{key:"replace",value:function(t,n,r){return e.of(r)}},{key:"decomposeLeft",value:function(e,t){t.push(this)}},{key:"decomposeRight",value:function(e,t){t.push(this)}},{key:"applyChanges",value:function(e,t,n,r){for(var i=this,a=r.length-1;a>=0;a--){var o=r[a],s=o.fromA,c=o.toA,l=o.fromB,u=o.toB,f=i.lineAt(s,et.ByPosNoHeight,t,0,0),d=f.to>=c?f:i.lineAt(c,et.ByPosNoHeight,t,0,0);for(u+=d.to-c,c=d.to;a>0&&f.from<=r[a-1].toA;)s=r[a-1].fromA,l=r[a-1].fromB,a--,s<f.from&&(f=i.lineAt(s,et.ByPosNoHeight,t,0,0));l+=f.from-s,s=f.from;var h=ft.build(n,e,l,u);i=i.replace(s,c,h)}return i.updateHeight(n,0)}},{key:"outdated",get:function(){return(2&this.flags)>0},set:function(e){this.flags=(e?2:0)|-3&this.flags}}],[{key:"empty",value:function(){return new st(0,0)}},{key:"of",value:function(t){if(1==t.length)return t[0];for(var n=0,r=t.length,i=0,a=0;;)if(n==r)if(i>2*a){var o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else{if(!(a>2*i))break;var s=t[r];s.break?t.splice(r,1,s.left,null,s.right):t.splice(r,1,s.left,s.right),r+=2+s.break,a-=s.size}else if(i<a){var c=t[n++];c&&(i+=c.size)}else{var l=t[--r];l&&(a+=l.size)}var u=0;return null==t[n-1]?(u=1,n--):null==t[n]&&(u=1,r++),new lt(e.of(t.slice(0,n)),u,e.of(t.slice(r)))}}]),e}();at.prototype.size=1;var ot=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(f.a)(this,n),(a=t.call(this,e,r)).type=i,a}return Object(d.a)(n,[{key:"blockAt",value:function(e,t,n,r){return new it(r,this.length,n,this.height,this.type)}},{key:"lineAt",value:function(e,t,n,r,i){return this.blockAt(0,n,r,i)}},{key:"forEachLine",value:function(e,t,n,r,i,a){a(this.blockAt(0,n,r,i))}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}},{key:"toString",value:function(){return"block(".concat(this.length,")")}}]),n}(at),st=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this,e,r,Oe.Text)).collapsed=0,i.widgetHeight=0,i}return Object(d.a)(n,[{key:"replace",value:function(e,t,r){var i=r[0];return 1==r.length&&(i instanceof n||i instanceof ct&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof ct?i=new n(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):at.of(r)}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))),this.outdated=!1,this}},{key:"toString",value:function(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}]),n}(ot),ct=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){return Object(f.a)(this,n),t.call(this,e,0)}return Object(d.a)(n,[{key:"lines",value:function(e,t){var n=e.lineAt(t).number,r=e.lineAt(t+this.length).number;return{firstLine:n,lastLine:r,lineHeight:this.height/(r-n+1)}}},{key:"blockAt",value:function(e,t,n,r){var i=this.lines(t,r),a=i.firstLine,o=i.lastLine,s=i.lineHeight,c=Math.max(0,Math.min(o-a,Math.floor((e-n)/s))),l=t.line(a+c),u=l.from,f=l.length;return new it(u,f,n+s*c,s,Oe.Text)}},{key:"lineAt",value:function(e,t,n,r,i){if(t==et.ByHeight)return this.blockAt(e,n,r,i);if(t==et.ByPosNoHeight){var a=n.lineAt(e),o=a.from,s=a.to;return new it(o,s-o,0,0,Oe.Text)}var c=this.lines(n,i),l=c.firstLine,u=c.lineHeight,f=n.lineAt(e),d=f.from,h=f.length,p=f.number;return new it(d,h,r+u*(p-l),u,Oe.Text)}},{key:"forEachLine",value:function(e,t,n,r,i,a){for(var o=this.lines(n,i),s=o.firstLine,c=o.lineHeight,l=e;l<t;){var u=n.lineAt(l);l==e&&(r+=c*(u.number-s)),a(new it(u.from,u.length,r,r+=c,Oe.Text)),l=u.to+1}}},{key:"replace",value:function(e,t,r){var i=this.length-t;if(i>0){var a=r[r.length-1];a instanceof n?r[r.length-1]=new n(a.length+i):r.push(null,new n(i-1))}if(e>0){var o=r[0];o instanceof n?r[0]=new n(e+o.length):r.unshift(new n(e-1),null)}return at.of(r)}},{key:"decomposeLeft",value:function(e,t){t.push(new n(e-1),null)}},{key:"decomposeRight",value:function(e,t){t.push(null,new n(this.length-e-1))}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,a=t+this.length;if(i&&i.from<=t+this.length&&i.more){var o=[],s=Math.max(t,i.from);for(i.from>t&&o.push(new n(i.from-t-1).updateHeight(e,t));s<=a&&i.more;){var c=e.doc.lineAt(s).length;o.length&&o.push(null);var l=new st(c,i.heights[i.index++]);l.outdated=!1,o.push(l),s+=c+1}return s<=a&&o.push(null,new n(a-s).updateHeight(e,s)),e.heightChanged=!0,at.of(o)}return(r||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}},{key:"toString",value:function(){return"gap(".concat(this.length,")")}}]),n}(at),lt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(f.a)(this,n),(a=t.call(this,e.length+r+i.length,e.height+i.height,r|(e.outdated||i.outdated?2:0))).left=e,a.right=i,a.size=e.size+i.size,a}return Object(d.a)(n,[{key:"blockAt",value:function(e,t,n,r){var i=n+this.left.height;return e<i||0==this.right.height?this.left.blockAt(e,t,n,r):this.right.blockAt(e,t,i,r+this.left.length+this.break)}},{key:"lineAt",value:function(e,t,n,r,i){var a=r+this.left.height,o=i+this.left.length+this.break,s=t==et.ByHeight?e<a||0==this.right.height:e<o,c=s?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,a,o);if(this.break||(s?c.to<o:c.from>o))return c;var l=t==et.ByPosNoHeight?et.ByPosNoHeight:et.ByPos;return s?c.join(this.right.lineAt(o,l,n,a,o)):this.left.lineAt(o,l,n,r,i).join(c)}},{key:"forEachLine",value:function(e,t,n,r,i,a){var o=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e<s&&this.left.forEachLine(e,t,n,r,i,a),t>=s&&this.right.forEachLine(e,t,n,o,s,a);else{var c=this.lineAt(s,et.ByPos,n,r,i);e<c.from&&this.left.forEachLine(e,c.from-1,n,r,i,a),c.to>=e&&c.from<=t&&a(c),t>c.to&&this.right.forEachLine(c.to+1,t,n,o,s,a)}}},{key:"replace",value:function(e,t,n){var r=this.left.length+this.break;if(t<r)return this.balanced(this.left.replace(e,t,n),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));var i=[];e>0&&this.decomposeLeft(e,i);var a,o=i.length,s=Object(u.a)(n);try{for(s.s();!(a=s.n()).done;){var c=a.value;i.push(c)}}catch(f){s.e(f)}finally{s.f()}if(e>0&&ut(i,o-1),t<this.length){var l=i.length;this.decomposeRight(t,i),ut(i,l)}return at.of(i)}},{key:"decomposeLeft",value:function(e,t){var n=this.left.length;if(e<=n)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&e>=++n&&t.push(null),e>n&&this.right.decomposeLeft(e-n,t)}},{key:"decomposeRight",value:function(e,t){var n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e<n&&this.left.decomposeRight(e,t),this.break&&e<r&&t.push(null),t.push(this.right)}},{key:"balanced",value:function(e,t){return e.size>2*t.size||t.size>2*e.size?at.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}},{key:"updateHeight",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=this.left,a=this.right,o=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=o+a.length&&r.more?s=a=a.updateHeight(e,o,n,r):a.updateHeight(e,o,n),s?this.balanced(i,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}},{key:"toString",value:function(){return this.left+(this.break?" ":"-")+this.right}},{key:"break",get:function(){return 1&this.flags}}]),n}(at);function ut(e,t){var n,r;null==e[t]&&(n=e[t-1])instanceof ct&&(r=e[t+1])instanceof ct&&e.splice(t-1,3,new ct(n.length+1+r.length))}var ft=function(){function e(t,n){Object(f.a)(this,e),this.pos=t,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}return Object(d.a)(e,[{key:"span",value:function(e,t){if(this.lineStart>-1){var n=Math.min(t,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof st?r.length+=n-this.pos:(n>this.pos||!this.isCovered)&&this.nodes.push(new st(n-this.pos,-1)),this.writtenTo=n,t>n&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}},{key:"point",value:function(e,t,n){if(e<t||n.heightRelevant){var r=n.widget?Math.max(0,n.widget.estimatedHeight):0,i=t-e;n.block?this.addBlock(new ot(i,r,n.type)):(i||r>=5)&&this.addLineDeco(r,i)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}},{key:"enterLine",value:function(){if(!(this.lineStart>-1)){var e=this.oracle.doc.lineAt(this.pos),t=e.from,n=e.to;this.lineStart=t,this.lineEnd=n,this.writtenTo<t&&((this.writtenTo<t-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new st(this.pos-t,-1)),this.writtenTo=this.pos}}},{key:"blankContent",value:function(e,t){var n=new ct(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}},{key:"ensureLine",value:function(){this.enterLine();var e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof st)return e;var t=new st(0,-1);return this.nodes.push(t),t}},{key:"addBlock",value:function(e){this.enterLine(),e.type!=Oe.WidgetAfter||this.isCovered||this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,e.type!=Oe.WidgetBefore&&(this.covering=e)}},{key:"addLineDeco",value:function(e,t){var n=this.ensureLine();n.length+=t,n.collapsed+=t,n.widgetHeight=Math.max(n.widgetHeight,e),this.writtenTo=this.pos=this.pos+t}},{key:"finish",value:function(e){var t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof st||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new st(0,-1));var n,r=e,i=Object(u.a)(this.nodes);try{for(i.s();!(n=i.n()).done;){var a=n.value;a instanceof st&&a.updateHeight(this.oracle,r),r+=a?a.length:1}}catch(o){i.e(o)}finally{i.f()}return this.nodes}},{key:"isCovered",get:function(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}},{key:"minPointSize",get:function(){return 0}}],[{key:"build",value:function(t,n,r,i){var a=new e(r,t);return m.b.spans(n,r,i,a),a.finish(r)}}]),e}();function dt(e,t,n){var r=new ht;return m.b.compare(e,t,n,r),r.changes}var ht=function(){function e(){Object(f.a)(this,e),this.changes=[]}return Object(d.a)(e,[{key:"compareRange",value:function(){}},{key:"comparePoint",value:function(e,t,n,r){(e<t||n&&n.heightRelevant||r&&r.heightRelevant)&&Ee(e,t,this.changes)}},{key:"minPointSize",get:function(){return 0}}]),e}(),pt=[],vt=p.f.define(),mt=p.f.define(),gt=p.f.define(),bt=p.f.define(),yt=p.f.define(),Ot=p.f.define();function xt(e,t,n){var r=e.facet(bt);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}var kt=p.f.define({combine:function(e){return!e.length||e[0]}}),wt=function e(t,n){Object(f.a)(this,e),this.field=t,this.get=n},jt=function(){function e(){Object(f.a)(this,e)}return Object(d.a)(e,[{key:"from",value:function(e){return new wt(this,e)}}],[{key:"define",value:function(){return new e}}]),e}();jt.scrollMargins=jt.define();var St=0,Ct=p.f.define(),Et=function(){function e(t,n,r){Object(f.a)(this,e),this.id=t,this.create=n,this.fields=r,this.extension=Ct.of(this)}return Object(d.a)(e,null,[{key:"define",value:function(t,n){var r=n||{},i=r.eventHandlers,a=r.provide,o=r.decorations,s=[];if(a){var c,l=Object(u.a)(Array.isArray(a)?a:[a]);try{for(l.s();!(c=l.n()).done;){var f=c.value;s.push(f)}}catch(v){l.e(v)}finally{l.f()}}if(i&&s.push(Pt.from((function(e){return{plugin:e,handlers:i}}))),o){var d,h=Object(u.a)(Array.isArray(o)?o:[o]);try{for(h.s();!(d=h.n()).done;){var p=d.value;s.push(Mt.from(p))}}catch(v){h.e(v)}finally{h.f()}}return new e(St++,t,s)}},{key:"fromClass",value:function(t,n){return e.define((function(e){return new t(e)}),n)}}]),e}(),Mt=jt.define(),Pt=jt.define(),Tt=function(){function e(t,n){Object(f.a)(this,e),this.value=t,this.spec=n}return Object(d.a)(e,[{key:"takeField",value:function(e,t){var n,r=Object(u.a)(this.spec.fields);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.field,o=i.get;a==e&&t.push(o(this.value))}}catch(s){r.e(s)}finally{r.f()}}},{key:"update",value:function(t){if(!this.value.update)return this;try{return this.value.update(t),this}catch(n){if(xt(t.state,n,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(r){}return e.dummy}}},{key:"destroy",value:function(e){if(this.value.destroy)try{this.value.destroy()}catch(t){xt(e.state,t,"CodeMirror plugin crashed")}}}],[{key:"create",value:function(t,n){var r;try{r=t.create(n)}catch(i){return xt(n.state,i,"CodeMirror plugin crashed"),e.dummy}return new e(r,t)}}]),e}();Tt.dummy=new Tt({},Et.define((function(){return{}})));var _t=p.f.define({combine:function(e){return e.reduce((function(e,t){return ge(t,e)}),{})}}),Dt=p.f.define({combine:function(e){return e.reduce((function(e,t){return ge(t,e)}),{})}}),At=p.f.define(),Rt=p.f.define(),Lt=function(){function e(t,n,r,i){Object(f.a)(this,e),this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}return Object(d.a)(e,[{key:"join",value:function(t){return new e(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}},{key:"addToSet",value:function(e){for(var t=e.length,n=this;t>0;t--){var r=e[t-1];if(!(r.fromA>n.toA)){if(r.toA<n.fromA)break;n=n.join(r),e.splice(t-1,1)}}return e.splice(t,0,n),e}}],[{key:"extendWithRanges",value:function(t,n){if(0==n.length)return t;for(var r=[],i=0,a=0,o=0,s=0;;i++){for(var c=i==t.length?null:t[i],l=o-s,u=c?c.fromB:1e9;a<n.length&&n[a]<u;){var f=n[a],d=n[a+1],h=Math.max(s,f),p=Math.min(u,d);if(h<=p&&new e(h+l,p+l,h,p).addToSet(r),d>u)break;a+=2}if(!c)return r;new e(c.fromA,c.toA,c.fromB,c.toB).addToSet(r),o=c.toA,s=c.toB}}}]),e}(),Nt=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pt;Object(f.a)(this,e),this.view=t,this.state=n,this.transactions=r,this.flags=0,this.prevState=t.state,this.changes=p.b.empty(this.prevState.doc.length);var i,a=Object(u.a)(r);try{for(a.s();!(i=a.n()).done;){var o=i.value;this.changes=this.changes.compose(o.changes)}}catch(l){a.e(l)}finally{a.f()}var s=[];this.changes.iterChangedRanges((function(e,t,n,r){return s.push(new Lt(e,t,n,r))})),this.changedRanges=s;var c=t.hasFocus;c!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=c,this.flags),this.docChanged&&(this.flags|=2)}return Object(d.a)(e,[{key:"viewportChanged",get:function(){return(4&this.flags)>0}},{key:"heightChanged",get:function(){return(2&this.flags)>0}},{key:"geometryChanged",get:function(){return this.docChanged||(18&this.flags)>0}},{key:"focusChanged",get:function(){return(1&this.flags)>0}},{key:"docChanged",get:function(){return this.transactions.some((function(e){return e.docChanged}))}},{key:"selectionSet",get:function(){return this.transactions.some((function(e){return e.selection}))}},{key:"empty",get:function(){return 0==this.flags&&0==this.transactions.length}}]),e}();var It=function(){function e(t,n,r){Object(f.a)(this,e),this.from=t,this.to=n,this.size=r}return Object(d.a)(e,[{key:"draw",value:function(e){return ke.replace({widget:new zt(this.size,e)}).range(this.from,this.to)}}],[{key:"same",value:function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n];if(r.from!=i.from||r.to!=i.to||r.size!=i.size)return!1}return!0}}]),e}(),zt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).size=e,i.vertical=r,i}return Object(d.a)(n,[{key:"eq",value:function(e){return e.size==this.size&&e.vertical==this.vertical}},{key:"toDOM",value:function(){var e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}},{key:"estimatedHeight",get:function(){return this.vertical?this.size:-1}}]),n}(xe),$t=function(){function e(t){Object(f.a)(this,e),this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentWidth=0,this.heightOracle=new nt,this.heightMap=at.empty(),this.scrollTo=null,this.printing=!1,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1,this.heightMap=this.heightMap.applyChanges(t.facet(At),g.a.empty,this.heightOracle.setDoc(t.doc),[new Lt(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ke.set(this.lineGaps.map((function(e){return e.draw(!1)}))),this.computeVisibleRanges()}return Object(d.a)(e,[{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.state;this.state=e.state;var r=this.state.facet(At),i=e.changedRanges,a=Lt.extendWithRanges(i,dt(e.prevState.facet(At),r,e?e.changes:p.b.empty(this.state.doc.length))),o=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(r,n.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=o&&(e.flags|=2);var s=a.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.head<s.from||t.head>s.to)||!this.viewportIsAppropriate(s))&&(s=this.getViewport(0,t)),s.eq(this.viewport)||(this.viewport=s,e.flags|=4),(this.lineGaps.length||this.viewport.to-this.viewport.from>15e3)&&(e.flags|=this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes)))),this.computeVisibleRanges(),t&&(this.scrollTo=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.primary.empty&&e.state.selection.primary.assoc&&(this.mustEnforceCursorAssoc=!0)}},{key:"measure",value:function(e,t){var n=e.dom,r="",i=Re.LTR;if(!t){var a=window.getComputedStyle(n);r=a.whiteSpace,i="rtl"==a.direction?Re.RTL:Re.LTR,this.paddingTop=parseInt(a.paddingTop)||0,this.paddingBottom=parseInt(a.paddingBottom)||0}var o=this.printing?{top:-1e8,bottom:1e8,left:-1e8,right:1e8}:function(e,t){for(var n=e.getBoundingClientRect(),r=Math.max(0,n.left),i=Math.min(innerWidth,n.right),a=Math.max(0,n.top),o=Math.min(innerHeight,n.bottom),s=e.parentNode;s;)if(1==s.nodeType){if((s.scrollHeight>s.clientHeight||s.scrollWidth>s.clientWidth)&&"visible"!=window.getComputedStyle(s).overflow){var c=s.getBoundingClientRect();r=Math.max(r,c.left),i=Math.min(i,c.right),a=Math.max(a,c.top),o=Math.min(o,c.bottom)}s=s.parentNode}else{if(11!=s.nodeType)break;s=s.host}return{left:r-n.left,right:i-n.left,top:a-(n.top+t),bottom:o-(n.top+t)}}(n,this.paddingTop),s=o.top-this.pixelViewport.top,c=o.bottom-this.pixelViewport.bottom;if(this.pixelViewport=o,this.inView=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left,!this.inView)return 0;var l=e.measureVisibleLineHeights(),u=!1,f=0,d=0,h=this.heightOracle;if(!t){var p=e.dom.clientWidth;if(h.mustRefresh(l,r,i)||h.lineWrapping&&Math.abs(p-this.contentWidth)>h.charWidth){var v=e.measureTextSize(),m=v.lineHeight,g=v.charWidth;(u=h.refresh(r,i,m,g,p/g,l))&&(e.minWidth=0,d|=16)}this.contentWidth!=p&&(this.contentWidth=p,d|=16),s>0&&c>0?f=Math.max(s,c):s<0&&c<0&&(f=Math.min(s,c))}return h.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(h,0,u,new rt(this.viewport.from,l)),h.heightChanged&&(d|=2),(!this.viewportIsAppropriate(this.viewport,f)||this.scrollTo&&(this.scrollTo.head<this.viewport.from||this.scrollTo.head>this.viewport.to))&&(this.viewport=this.getViewport(f,this.scrollTo),d|=4),(this.lineGaps.length||this.viewport.to-this.viewport.from>15e3)&&(d|=this.updateLineGaps(this.ensureLineGaps(u?[]:this.lineGaps))),this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.enforceCursorAssoc()),d}},{key:"getViewport",value:function(e,t){var n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.state.doc,a=this.pixelViewport,o=a.top,s=a.bottom,c=new Ft(r.lineAt(o-1e3*n,et.ByHeight,i,0,0).from,r.lineAt(s+1e3*(1-n),et.ByHeight,i,0,0).to);if(t)if(t.head<c.from){var l=r.lineAt(t.head,et.ByPos,i,0,0).top;c=new Ft(r.lineAt(l-500,et.ByHeight,i,0,0).from,r.lineAt(l+(s-o)+500,et.ByHeight,i,0,0).to)}else if(t.head>c.to){var u=r.lineAt(t.head,et.ByPos,i,0,0).bottom;c=new Ft(r.lineAt(u-(s-o)-500,et.ByHeight,i,0,0).from,r.lineAt(u+500,et.ByHeight,i,0,0).to)}return c}},{key:"mapViewport",value:function(e,t){var n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new Ft(this.heightMap.lineAt(n,et.ByPos,this.state.doc,0,0).from,this.heightMap.lineAt(r,et.ByPos,this.state.doc,0,0).to)}},{key:"viewportIsAppropriate",value:function(e){var t=e.from,n=e.to,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this.heightMap.lineAt(t,et.ByPos,this.state.doc,0,0),a=i.top,o=this.heightMap.lineAt(n,et.ByPos,this.state.doc,0,0),s=o.bottom;return(0==t||a<=this.pixelViewport.top-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||s>=this.pixelViewport.bottom+Math.max(10,Math.min(r,250)))&&a>this.pixelViewport.top-2e3&&s<this.pixelViewport.bottom+2e3}},{key:"mapLineGaps",value:function(e,t){if(!e.length||t.empty)return e;var n,r=[],i=Object(u.a)(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;t.touchesRange(a.from,a.to)||r.push(new It(t.mapPos(a.from),t.mapPos(a.to),a.size))}}catch(o){i.e(o)}finally{i.f()}return r}},{key:"ensureLineGaps",value:function(e){var t=this,n=[];return this.heightOracle.direction!=Re.LTR||this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.state.doc,0,0,(function(r){if(!(r.length<1e4)){var i=function(e,t,n){var r=[],i=e,a=0;m.b.spans(n.facet(At),e,t,{span:function(){},point:function(e,t){e>i&&(r.push({from:i,to:e}),a+=e-i),i=t},minPointSize:20}),i<t&&(r.push({from:i,to:t}),a+=t-i);return{total:a,ranges:r}}(r.from,r.to,t.state);if(!(i.total<1e4)){var a,o;if(t.heightOracle.lineWrapping)a=r.from!=t.viewport.from?r.from:Bt(i,(t.pixelViewport.top-r.top)/r.height),o=r.to!=t.viewport.to?r.to:Bt(i,(t.pixelViewport.bottom-r.top)/r.height);else{var s=i.total*t.heightOracle.charWidth;a=Bt(i,t.pixelViewport.left/s),o=Bt(i,t.pixelViewport.right/s)}var c=t.state.selection.primary;c.from<=a&&c.to>=r.from&&(a=c.from),c.from<=r.to&&c.to>=o&&(o=c.to);var l=a-1e4,u=o+1e4;l>r.from+5e3&&n.push(Wt(e,(function(e){return e.from==r.from&&e.to>l-5e3&&e.to<l+5e3}))||new It(r.from,l,t.gapSize(r,l,!0,i))),u<r.to-5e3&&n.push(Wt(e,(function(e){return e.to==r.to&&e.from>u-5e3&&e.from<u+5e3}))||new It(u,r.to,t.gapSize(r,u,!1,i)))}}})),n}},{key:"gapSize",value:function(e,t,n,r){if(this.heightOracle.lineWrapping){var i=e.height*Qt(r,t);return n?i:e.height-i}var a=Qt(r,t);return r.total*this.heightOracle.charWidth*(n?a:1-a)}},{key:"updateLineGaps",value:function(e){var t=this;return It.same(e,this.lineGaps)?0:(this.lineGaps=e,this.lineGapDeco=ke.set(e.map((function(e){return e.draw(t.heightOracle.lineWrapping)}))),8)}},{key:"computeVisibleRanges",value:function(){var e=this.state.facet(At);this.lineGaps.length&&(e=e.concat(this.lineGapDeco));var t=[];m.b.spans(e,this.viewport.from,this.viewport.to,{span:function(e,n){t.push({from:e,to:n})},point:function(){},minPointSize:20}),this.visibleRanges=t}},{key:"lineAt",value:function(e,t){return this.heightMap.lineAt(e,et.ByPos,this.state.doc,t+this.paddingTop,0)}},{key:"lineAtHeight",value:function(e,t){return this.heightMap.lineAt(e,et.ByHeight,this.state.doc,t+this.paddingTop,0)}},{key:"blockAtHeight",value:function(e,t){return this.heightMap.blockAt(e,this.state.doc,t+this.paddingTop,0)}},{key:"forEachLine",value:function(e,t,n,r){return this.heightMap.forEachLine(e,t,this.state.doc,r+this.paddingTop,0,n)}}]),e}(),Ft=function(){function e(t,n){Object(f.a)(this,e),this.from=t,this.to=n}return Object(d.a)(e,[{key:"eq",value:function(e){return this.from==e.from&&this.to==e.to}}]),e}();function Bt(e,t){var n=e.total,r=e.ranges;if(t<=0)return r[0].from;if(t>=1)return r[r.length-1].to;for(var i=Math.floor(n*t),a=0;;a++){var o=r[a],s=o.from,c=o.to-s;if(i<=c)return s+i;i-=c}}function Qt(e,t){var n,r=0,i=Object(u.a)(e.ranges);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.from,s=a.to;if(t<=s){r+=t-o;break}r+=s-o}}catch(c){i.e(c)}finally{i.f()}return r/e.total}function Wt(e,t){var n,r=Object(u.a)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t(i))return i}}catch(a){r.e(a)}finally{r.f()}}var Ht=[],Vt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).view=e,r.viewports=Ht,r.compositionDeco=ke.none,r.decorations=[],r.minWidth=0,r.minWidthFrom=0,r.minWidthTo=0,r.impreciseAnchor=null,r.impreciseHead=null,r.setDOM(e.contentDOM),r.children=[new Ie],r.children[0].setParent(Object(i.a)(r)),r.updateInner([new Lt(0,0,0,e.state.doc.length)],r.updateDeco(),0),r}return Object(d.a)(n,[{key:"update",value:function(e){var t,n=this,r=e.changedRanges;this.minWidth>0&&r.length&&(r.every((function(e){var t=e.fromA;return e.toA<n.minWidthFrom||t>n.minWidthTo}))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=0),(null===(t=this.view.inputState)||void 0===t?void 0:t.composing)?e.transactions.length&&(this.compositionDeco=function(e,t){var n=F(e.root),r=n.focusNode&&Xt(n.focusNode,n.focusOffset,0);if(!r)return ke.none;var i,a,o=e.docView.nearest(r),s=r;if(o instanceof se){for(;o.parent instanceof se;)o=o.parent;a=(i=o.posAtStart)+o.length,s=o.dom}else{if(!(o instanceof Ie))return ke.none;for(;s.parentNode!=o.dom;)s=s.parentNode;for(var c=s.previousSibling;c&&!ne.get(c);)c=c.previousSibling;i=a=c?ne.get(c).posAtEnd:o.posAtStart}var l=t.mapPos(i,1),u=Math.max(l,t.mapPos(a,-1)),f=r.nodeValue,d=e.state;if(u-l<f.length)if(d.sliceDoc(l,Math.min(d.doc.length,l+f.length))==f)u=l+f.length;else{if(d.sliceDoc(Math.max(0,u-f.length),u)!=f)return ke.none;l=u-f.length}else if(d.sliceDoc(l,u)!=f)return ke.none;return ke.set(ke.replace({widget:new Yt(s,r)}).range(l,u))}(this.view,e.changes)):this.compositionDeco=ke.none;var i=($.ie||$.chrome)&&!this.compositionDeco.size&&e&&e.state.doc.lines!=e.prevState.doc.lines,a=this.decorations,o=this.updateDeco(),s=function(e,t,n){var r=new Gt;return m.b.compare(e,t,n,r),r.changes}(a,o,e.changes);r=Lt.extendWithRanges(r,s);var c=e.transactions.some((function(e){return"pointerselection"==e.annotation(p.l.userEvent)}));return 0==this.dirty&&0==r.length&&!(12&e.flags)&&e.state.selection.primary.from>=this.view.viewport.from&&e.state.selection.primary.to<=this.view.viewport.to?(this.updateSelection(i,c),!1):(this.updateInner(r,o,e.prevState.doc.length,i,c),!0)}},{key:"updateInner",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.updateChildren(e,t,n),this.view.observer.ignore((function(){r.dom.style.height=r.view.viewState.heightMap.height+"px",r.dom.style.minWidth=r.minWidth?r.minWidth+"px":"";var e=$.chrome?{node:F(r.view.root).focusNode,written:!1}:void 0;r.sync(e),r.dirty=0,(null===e||void 0===e?void 0:e.written)&&(i=!0),r.updateSelection(i,a),r.dom.style.height=""}))}},{key:"updateChildren",value:function(e,t,n){for(var r=this.childCursor(n),i=e.length-1;;i--){var a=i>=0?e[i]:null;if(!a)break;var o=a.fromA,s=a.toA,c=a.fromB,l=a.toB,u=Fe.build(this.view.state.doc,c,l,t),f=u.content,d=u.breakAtStart,h=u.openStart,p=u.openEnd,v=r.findPos(s,1),m=v.i,g=v.off,b=r.findPos(o,-1),y=b.i,O=b.off;this.replaceRange(y,O,m,g,f,d,h,p)}}},{key:"replaceRange",value:function(e,t,n,r,i,a,o,s){var c=this.children[e],l=i.length?i[i.length-1]:null,u=l?l.breakAfter:a;if(e!=n||a||u||!(i.length<2)||!c.merge(t,r,i.length?l:null,0==t,o,s)){var f=this.children[n];for(r<f.length||f.children.length&&0==f.children[f.children.length-1].length?(e==n&&(f=f.split(r),r=0),!u&&l&&f.merge(0,r,l,!0,0,s)?i[i.length-1]=f:((r||f.children.length&&0==f.children[0].length)&&f.merge(0,r,null,!1,0,s),i.push(f))):f.breakAfter&&(l?l.breakAfter=1:a=1),n++,c.breakAfter=a,t>0&&(!a&&i.length&&c.merge(t,c.length,i[0],!1,o,0)?c.breakAfter=i.shift().breakAfter:(t<c.length||c.children.length&&0==c.children[c.children.length-1].length)&&c.merge(t,c.length,null,!1,o,0),e++);e<n&&i.length;)if(this.children[n-1].match(i[i.length-1]))n--,i.pop();else{if(!this.children[e].match(i[0]))break;e++,i.shift()}(e<n||i.length)&&this.replaceChildren(e,n,i)}}},{key:"updateSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t||this.mayControlSelection()){var n=this.view.state.selection.primary,r=this.domAtPos(n.anchor),i=this.domAtPos(n.head),a=F(this.root);(e||!a.focusNode||$.gecko&&n.empty&&Kt(a.focusNode,a.focusOffset)||!W(r.node,r.offset,a.anchorNode,a.anchorOffset)||!W(i.node,i.offset,a.focusNode,a.focusOffset))&&this.view.observer.ignore((function(){if(n.empty){if($.gecko){var e=Kt(r.node,r.offset);if(e&&3!=e){var t=Xt(r.node,r.offset,1==e?1:-1);t&&(r=new ee(t,1==e?0:t.nodeValue.length))}}a.collapse(r.node,r.offset),null!=n.bidiLevel&&null!=a.cursorBidiLevel&&(a.cursorBidiLevel=n.bidiLevel)}else if(a.extend)a.collapse(r.node,r.offset),a.extend(i.node,i.offset);else{var o=document.createRange();if(n.anchor>n.head){var s=[i,r];r=s[0],i=s[1]}o.setEnd(i.node,i.offset),o.setStart(r.node,r.offset),a.removeAllRanges(),a.addRange(o)}})),this.impreciseAnchor=r.precise?null:new ee(a.anchorNode,a.anchorOffset),this.impreciseHead=i.precise?null:new ee(a.focusNode,a.focusOffset)}}},{key:"enforceCursorAssoc",value:function(){var e=this.view.state.selection.primary,t=F(this.root);if(e.empty&&e.assoc&&t.modify){var n=Ie.find(this,e.head);if(n){var r=n.posAtStart;if(e.head!=r&&e.head!=r+n.length){var i=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(i&&a&&!(i.bottom>a.top)){var o=this.domAtPos(e.head+e.assoc);t.collapse(o.node,o.offset),t.modify("move",e.assoc<0?"forward":"backward","lineboundary")}}}}}},{key:"mayControlSelection",value:function(){return this.view.state.facet(kt)?this.root.activeElement==this.dom:B(this.dom,F(this.root))}},{key:"nearest",value:function(e){for(var t=e;t;){var n=ne.get(t);if(n&&n.rootView==this)return n;t=t.parentNode}return null}},{key:"posFromDOM",value:function(e,t){var n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}},{key:"domAtPos",value:function(e){for(var t=this.childCursor().findPos(e,-1),n=t.i,r=t.off;n<this.children.length-1;){var i=this.children[n];if(r<i.length||i instanceof Ie)break;n++,r=0}return this.children[n].domAtPos(r)}},{key:"coordsAt",value:function(e,t){for(var n=this.length,r=this.children.length-1;;r--){var i=this.children[r],a=n-i.breakAfter-i.length;if(e>=a&&i.type!=Oe.WidgetAfter)return i.coordsAt(e-a,t);n=a}}},{key:"measureVisibleLineHeights",value:function(){for(var e=[],t=this.view.viewState.viewport,n=t.from,r=t.to,i=Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=0,o=0;o<this.children.length;o++){var s=this.children[o],c=a+s.length;if(c>r)break;if(a>=n){e.push(s.dom.getBoundingClientRect().height);var l=s.dom.scrollWidth;l>i&&(this.minWidth=i=l,this.minWidthFrom=a,this.minWidthTo=c)}a=c+s.breakAfter}return e}},{key:"measureTextSize",value:function(){var e,t=this,n=Object(u.a)(this.children);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r instanceof Ie){var i=r.measureTextSize();if(i)return i}}}catch(c){n.e(c)}finally{n.f()}var a,o,s=document.createElement("div");return s.className="cm-line",s.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((function(){t.dom.appendChild(s);var e=Q(s.firstChild)[0];a=s.getBoundingClientRect().height,o=e?e.width/27:7,s.remove()})),{lineHeight:a,charWidth:o}}},{key:"childCursor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new ae(this.children,e,t)}},{key:"computeBlockGapDeco",value:function(){var e=this.view.viewState.viewport,t=[e],n=this.view.state.selection.primary,r=n.head,i=n.anchor;if(r<e.from||r>e.to){var a=this.view.viewState.lineAt(r,0),o=a.from,s=a.to;t.push(new Ft(o,s))}if(!t.some((function(e){var t=e.from,n=e.to;return i>=t&&i<=n}))){var c=this.view.viewState.lineAt(i,0),l=c.from,u=c.to;t.push(new Ft(l,u))}this.viewports=t.sort((function(e,t){return e.from-t.from}));for(var f=[],d=0,h=0;;h++){var p=h==t.length?null:t[h],v=p?p.from-1:this.length;if(v>d){var m=this.view.viewState.lineAt(v,0).bottom-this.view.viewState.lineAt(d,0).top;f.push(ke.replace({widget:new qt(m),block:!0,inclusive:!0}).range(d,v))}if(!p)break;d=p.to+1}return ke.set(f)}},{key:"updateDeco",value:function(){return this.decorations=[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco,this.compositionDeco].concat(Object(l.a)(this.view.state.facet(At)),Object(l.a)(this.view.pluginField(Mt)))}},{key:"scrollPosIntoView",value:function(e,t){var n=this.coordsAt(e,t);if(n){var r,i=0,a=0,o=0,s=0,c=Object(u.a)(this.view.pluginField(jt.scrollMargins));try{for(c.s();!(r=c.n()).done;){var l=r.value;if(l){var f=l.left,d=l.right,h=l.top,p=l.bottom;null!=f&&(i=Math.max(i,f)),null!=d&&(a=Math.max(a,d)),null!=h&&(o=Math.max(o,h)),null!=p&&(s=Math.max(s,p))}}}catch(v){c.e(v)}finally{c.f()}!function(e,t){for(var n=e.ownerDocument.defaultView,r=e.parentNode;r;)if(1==r.nodeType){var i=void 0,a=r==document.body;if(a)i=Y(n);else{if(r.scrollHeight<=r.clientHeight&&r.scrollWidth<=r.clientWidth){r=r.parentNode;continue}var o=r.getBoundingClientRect();i={left:o.left,right:o.left+r.clientWidth,top:o.top,bottom:o.top+r.clientHeight}}var s=0,c=0;if(t.top<i.top?c=-(i.top-t.top+5):t.bottom>i.bottom&&(c=t.bottom-i.bottom+5),t.left<i.left?s=-(i.left-t.left+5):t.right>i.right&&(s=t.right-i.right+5),s||c)if(a)n.scrollBy(s,c);else{if(c){var l=r.scrollTop;r.scrollTop+=c,c=r.scrollTop-l}if(s){var u=r.scrollLeft;r.scrollLeft+=s,s=r.scrollLeft-u}t={left:t.left-s,top:t.top-c,right:t.right-s,bottom:t.bottom-c}}if(a)break;r=r.parentNode}else{if(11!=r.nodeType)break;r=r.host}}(this.dom,{left:n.left-i,top:n.top-o,right:n.right+a,bottom:n.bottom+s})}}},{key:"root",get:function(){return this.view.root}},{key:"editorView",get:function(){return this.view}},{key:"length",get:function(){return this.view.state.doc.length}}]),n}(ne),Ut=1e7,qt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).height=e,r}return Object(d.a)(n,[{key:"toDOM",value:function(){var e=document.createElement("div");return this.updateDOM(e),e}},{key:"eq",value:function(e){return e.height==this.height}},{key:"updateDOM",value:function(e){if(this.height<Ut){for(;e.lastChild;)e.lastChild.remove();e.style.height=this.height+"px"}else{e.style.height="";for(var t=this.height;t>0;t-=Ut){e.appendChild(document.createElement("div")).style.height=Math.min(t,Ut)+"px"}}return!0}},{key:"estimatedHeight",get:function(){return this.height}}]),n}(xe);var Yt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).top=e,i.text=r,i}return Object(d.a)(n,[{key:"eq",value:function(e){return this.top==e.top&&this.text==e.text}},{key:"toDOM",value:function(){return this.top}},{key:"ignoreEvent",value:function(){return!1}},{key:"customView",get:function(){return de}}]),n}(xe);function Xt(e,t,n){for(;;){if(3==e.nodeType)return e;if(1==e.nodeType&&t>0&&n<=0)t=U(e=e.childNodes[t-1]);else{if(!(1==e.nodeType&&t<e.childNodes.length&&n>=0))return null;e=e.childNodes[t],t=0}}}function Kt(e,t){return 1!=e.nodeType?0:(t&&"false"==e.childNodes[t-1].contentEditable?1:0)|(t<e.childNodes.length&&"false"==e.childNodes[t].contentEditable?2:0)}var Gt=function(){function e(){Object(f.a)(this,e),this.changes=[]}return Object(d.a)(e,[{key:"compareRange",value:function(e,t){Ee(e,t,this.changes)}},{key:"comparePoint",value:function(e,t){Ee(e,t,this.changes)}}]),e}();function Zt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function Jt(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function en(e,t){return e.top<t.bottom-1&&e.bottom>t.top+1}function tn(e,t){return t<e.top?{top:t,left:e.left,right:e.right,bottom:e.bottom}:e}function nn(e,t){return t>e.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function rn(e,t,n){for(var r,i,a,o,s,c,l,u,f=e.firstChild;f;f=f.nextSibling)for(var d=Q(f),h=0;h<d.length;h++){var p=d[h];i&&en(i,p)&&(p=tn(nn(p,i.bottom),i.top));var v=Zt(t,p),m=Jt(n,p);if(0==v&&0==m)return 3==f.nodeType?an(f,t,n):rn(f,t,n);(!r||o>m||o==m&&a>v)&&(r=f,i=p,a=v,o=m),0==v?n>p.bottom&&(!l||l.bottom<p.bottom)?(s=f,l=p):n<p.top&&(!u||u.top>p.top)&&(c=f,u=p):l&&en(l,p)?l=nn(l,p.bottom):u&&en(u,p)&&(u=tn(u,p.top))}if(l&&l.bottom>=n?(r=s,i=l):u&&u.top<=n&&(r=c,i=u),!r)return{node:e,offset:0};var g=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?an(r,g,n):a||"true"!=r.contentEditable?{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}:rn(r,g,n)}function an(e,t,n){for(var r=e.nodeValue.length,i=J(),a=0;a<r;a++){i.setEnd(e,a+1),i.setStart(e,a);for(var o=i.getClientRects(),s=0;s<o.length;s++){var c=o[s];if(c.top!=c.bottom&&(c.left-1<=t&&c.right+1>=t&&c.top-1<=n&&c.bottom+1>=n)){var l=t>=(c.left+c.right)/2,u=l;if($.chrome||$.gecko)i.setEnd(e,a),i.getBoundingClientRect().left==c.right&&(u=!l);return{node:e,offset:a+(u?1:0)}}}}return{node:e,offset:0}}function on(e,t){for(var n,r=t.x,i=t.y,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=e.contentDOM.getBoundingClientRect(),s=e.defaultLineHeight/2,c=!1;;){if((n=e.blockAtHeight(i,o.top)).top>i||n.bottom<i){if(a=n.top>i?-1:1,i=Math.min(n.bottom-s,Math.max(n.top+s,i)),c)return-1;c=!0}if(n.type==Oe.Text)break;i=a>0?n.bottom+s:n.top-s}var l=n.from;if(l<e.viewport.from)return 0==e.viewport.from?0:-1;if(l>e.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:-1;r=Math.max(o.left+1,Math.min(o.right-1,r));var u,f=e.root,d=f.elementFromPoint(r,i),h=-1;if(d&&e.contentDOM.contains(d)&&!(e.docView.nearest(d)instanceof fe))if(f.caretPositionFromPoint){var p=f.caretPositionFromPoint(r,i);p&&(u=p.offsetNode,h=p.offset)}else if(f.caretRangeFromPoint){var v=f.caretRangeFromPoint(r,i);v&&(u=v.startContainer,h=v.startOffset)}if(!u||!e.docView.dom.contains(u)){var m=Ie.find(e.docView,l),g=rn(m.dom,r,i);u=g.node,h=g.offset}return e.docView.posFromDOM(u,h)}function sn(e,t,n,r){var i=e.state.doc.lineAt(t.head),a=r&&e.lineWrapping?e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head):null;if(a){var o=e.dom.getBoundingClientRect(),s=e.posAtCoords({x:n==(e.textDirection==Re.LTR)?o.right-1:o.left+1,y:(a.top+a.bottom)/2});if(s>-1)return p.d.cursor(s,n?-1:1)}var c=Ie.find(e.docView,t.head),l=c?n?c.posAtEnd:c.posAtStart:n?i.to:i.from;return p.d.cursor(l,n?-1:1)}function cn(e,t,n,r){for(var i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),o=t,s=null;;){var c=Je(i,a,e.textDirection,o,n),l=Ze;if(!c){if(i.number==(n?e.state.doc.lines:1))return o;l="\n",i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),c=p.d.cursor(n?i.from:i.to)}if(s){if(!s(l))return o}else{if(!r)return c;s=r(l)}o=c}}var ln=function(){function e(t){var n=this;Object(f.a)(this,e),this.lastKeyCode=0,this.lastKeyTime=0,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.scrollHandlers=[],this.registeredEvents=[],this.customHandlers=[],this.composing=!1,this.compositionEndedAt=0,this.mouseSelection=null;var r=function(e){var r=dn[e];t.contentDOM.addEventListener(e,(function(i){fn(t,i)&&!n.ignoreDuringComposition(i)&&(n.mustFlushObserver(i)&&t.observer.forceFlush(),n.runCustomHandlers(e,t,i)?i.preventDefault():r(t,i))})),n.registeredEvents.push(e)};for(var i in dn)r(i);t.contentDOM.addEventListener("keydown",(function(e){t.inputState.lastKeyCode=e.keyCode,t.inputState.lastKeyTime=Date.now()})),this.notifiedFocused=t.hasFocus,this.ensureHandlers(t)}return Object(d.a)(e,[{key:"setSelectionOrigin",value:function(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}},{key:"ensureHandlers",value:function(e){var t,n=this,r=this.customHandlers=e.pluginField(Pt),i=Object(u.a)(r);try{for(i.s();!(t=i.n()).done;){var a=t.value,o=function(t){n.registeredEvents.indexOf(t)<0&&"scroll"!=t&&(n.registeredEvents.push(t),e.contentDOM.addEventListener(t,(function(r){fn(e,r)&&n.runCustomHandlers(t,e,r)&&r.preventDefault()})))};for(var s in a.handlers)o(s)}}catch(c){i.e(c)}finally{i.f()}}},{key:"runCustomHandlers",value:function(e,t,n){var r,i=Object(u.a)(this.customHandlers);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.handlers[e];if(o)try{if(o.call(a.plugin,n,t)||n.defaultPrevented)return!0}catch(s){xt(t.state,s)}}}catch(c){i.e(c)}finally{i.f()}return!1}},{key:"runScrollHandlers",value:function(e,t){var n,r=Object(u.a)(this.customHandlers);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.handlers.scroll;if(a)try{a.call(i.plugin,t,e)}catch(o){xt(e.state,o)}}}catch(s){r.e(s)}finally{r.f()}}},{key:"ignoreDuringComposition",value:function(e){return!!/^key/.test(e.type)&&(!!this.composing||!!($.safari&&e.timeStamp-this.compositionEndedAt<500)&&(this.compositionEndedAt=0,!0))}},{key:"mustFlushObserver",value:function(e){return"keydown"==e.type||"compositionend"==e.type}},{key:"startMouseSelection",value:function(e,t,n){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=new un(this,e,t,n)}},{key:"update",value:function(e){this.mouseSelection&&this.mouseSelection.update(e),this.lastKeyCode=this.lastSelectionTime=0}},{key:"destroy",value:function(){this.mouseSelection&&this.mouseSelection.destroy()}}]),e}(),un=function(){function e(t,n,r,i){Object(f.a)(this,e),this.inputState=t,this.view=n,this.startEvent=r,this.style=i;var a=n.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=r.shiftKey,this.multiple=n.state.facet(p.e.allowMultipleSelections)&&function(e,t){var n=e.state.facet(vt);return n.length?n[0](t):$.mac?t.metaKey:t.ctrlKey}(n,r),this.dragMove=function(e,t){var n=e.state.facet(mt);return n.length?n[0](t):$.mac?!t.altKey:!t.ctrlKey}(n,r),this.dragging=!!function(e,t){if(e.state.selection.primary.empty)return!1;var n=F(e.root);if(0==n.rangeCount)return!0;for(var r=n.getRangeAt(0).getClientRects(),i=0;i<r.length;i++){var a=r[i];if(a.left<=t.clientX&&a.right>=t.clientX&&a.top<=t.clientY&&a.bottom>=t.clientY)return!0}return!1}(n,r)&&null,!1===this.dragging&&(r.preventDefault(),this.select(r))}return Object(d.a)(e,[{key:"move",value:function(e){if(0==e.buttons)return this.destroy();!1===this.dragging&&this.select(e)}},{key:"up",value:function(e){null==this.dragging&&this.select(this.startEvent),this.dragging||e.preventDefault(),this.destroy()}},{key:"destroy",value:function(){var e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.inputState.mouseSelection=null}},{key:"select",value:function(e){var t=this.style.get(e,this.extend,this.multiple);t.eq(this.view.state.selection)&&t.primary.assoc==this.view.state.selection.primary.assoc||this.view.dispatch({selection:t,annotations:p.l.userEvent.of("pointerselection"),scrollIntoView:!0})}},{key:"update",value:function(e){e.docChanged&&this.dragging&&(this.dragging=this.dragging.map(e.changes)),this.style.update(e)}}]),e}();function fn(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(var n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=ne.get(r))&&n.ignoreEvent(t))return!1;return!0}var dn=Object.create(null),hn=$.ie&&$.ie_version<15||$.ios&&$.webkit_version<604;function pn(e,t){var n,r=e.state,i=1,a=r.toText(t),o=a.lines==r.selection.ranges.length;n=wn&&r.selection.ranges.every((function(e){return e.empty}))&&wn==a.toString()?{changes:r.selection.ranges.map((function(e){return r.doc.lineAt(e.from)})).filter((function(e,t,n){return 0==t||n[t-1]!=e})).map((function(e){return{from:e.from,insert:(o?a.line(i++).slice():t)+r.lineBreak}}))}:o?r.changeByRange((function(e){var t=a.line(i++);return{changes:{from:e.from,to:e.to,insert:t.slice()},range:p.d.cursor(e.from+t.length)}})):r.replaceSelection(a),e.dispatch(n,{annotations:p.l.userEvent.of("paste"),scrollIntoView:!0})}function vn(e,t,n,r){if(1==r)return p.d.cursor(t,n);if(2==r)return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(0==i.length)return p.d.cursor(t);0==a?n=1:a==i.length&&(n=-1);var o=a,s=a;n<0?o=i.findClusterBreak(a,!1):s=i.findClusterBreak(a,!0);for(var c=r(i.slice(o,s));o>0;){var l=i.findClusterBreak(o,!1);if(r(i.slice(l,o))!=c)break;o=l}for(;s<i.length;){var u=i.findClusterBreak(s,!0);if(r(i.slice(s,u))!=c)break;s=u}return p.d.range(o+i.from,s+i.from)}(e.state,t,n);var i=Ie.find(e.docView,t);if(i)return p.d.range(i.posAtStart,i.posAtEnd);var a=e.state.doc.lineAt(t),o=a.from,s=a.to;return p.d.range(o,s)}dn.keydown=function(e,t){(function(e){var t=(e.ctrlKey?1:0)|(e.metaKey?8:0)|(e.altKey?2:0)|(e.shiftKey?4:0),n=e.keyCode,r=$.mac&&1==t;return 8==n||r&&72==n||46==n||r&&68==n||27==n||t==($.mac?8:1)&&(66==n||73==n||89==n||90==n)})(t)&&t.preventDefault(),e.inputState.setSelectionOrigin("keyboardselection")},dn.touchdown=dn.touchmove=function(e){e.inputState.setSelectionOrigin("pointerselection")},dn.mousedown=function(e,t){var n,r=null,i=Object(u.a)(e.state.facet(gt));try{for(i.s();!(n=i.n()).done;){if(r=(0,n.value)(e,t))break}}catch(a){i.e(a)}finally{i.f()}r||0!=t.button||(r=function(e,t){var n=yn(e,t),r=function(e){if(!On)return e.detail;var t=xn;return xn=e,kn=!t||t.timeStamp>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(kn+1)%3:1}(t),i=e.state.selection,a=n,o=t;return{update:function(e){e.changes&&(n&&(n.pos=e.changes.mapPos(n.pos)),i=i.map(e.changes))},get:function(t,s,c){var l;if(t.clientX==o.clientX&&t.clientY==o.clientY?l=a:(l=a=yn(e,t),o=t),!l||!n)return i;var u=vn(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){var f=vn(e,n.pos,n.bias,r),d=Math.min(f.from,u.from),h=Math.max(f.to,u.to);u=d<u.from?p.d.range(d,h):p.d.range(h,d)}return s?i.replaceRange(i.primary.extend(u.from,u.to)):c?i.addRange(u):p.d.create([u])}}}(e,t)),r&&(e.root.activeElement!=e.contentDOM&&e.observer.ignore((function(){return Z(e.contentDOM)})),e.inputState.startMouseSelection(e,t,r))};var mn=function(e,t){return e>=t.top&&e<=t.bottom},gn=function(e,t,n){return mn(t,n)&&e>=n.left&&e<=n.right};function bn(e,t,n,r){var i=Ie.find(e.docView,t);if(!i)return 1;var a=t-i.posAtStart;if(0==a)return 1;if(a==i.length)return-1;var o=i.coordsAt(a,-1);if(o&&gn(n,r,o))return-1;var s=i.coordsAt(a,1);return s&&gn(n,r,s)?1:o&&mn(r,o)?-1:1}function yn(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY});return n<0?null:{pos:n,bias:bn(e,n,t.clientX,t.clientY)}}var On=$.ie&&$.ie_version<=11,xn=null,kn=0;dn.dragstart=function(e,t){var n=e.state.selection.primary,r=e.inputState.mouseSelection;r&&(r.dragging=n),t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove")},dn.drop=function(e,t){if(t.dataTransfer){var n=e.posAtCoords({x:t.clientX,y:t.clientY}),r=t.dataTransfer.getData("Text");if(!(n<0)&&r){t.preventDefault();var i=e.inputState.mouseSelection,a=i&&i.dragging&&i.dragMove?{from:i.dragging.from,to:i.dragging.to}:null,o={from:n,insert:r},s=e.state.changes(a?[a,o]:o);e.focus(),e.dispatch({changes:s,selection:{anchor:s.mapPos(n,-1),head:s.mapPos(n,1)},annotations:p.l.userEvent.of("drop")})}}},dn.paste=function(e,t){e.observer.flush();var n=hn?null:t.clipboardData,r=n&&n.getData("text/plain");r?(pn(e,r),t.preventDefault()):function(e){var t=e.dom.parentNode;if(t){var n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((function(){e.focus(),n.remove(),pn(e,n.value)}),50)}}(e)};var wn=null;function jn(e){e.docView.compositionDeco.size&&e.update([])}dn.copy=dn.cut=function(e,t){var n=function(e){var t,n=[],r=[],i=!1,a=Object(u.a)(e.selection.ranges);try{for(a.s();!(t=a.n()).done;){var o=t.value;o.empty||(n.push(e.sliceDoc(o.from,o.to)),r.push(o))}}catch(h){a.e(h)}finally{a.f()}if(!n.length){var s,c=-1,l=Object(u.a)(e.selection.ranges);try{for(l.s();!(s=l.n()).done;){var f=s.value.from,d=e.doc.lineAt(f);d.number>c&&(n.push(d.slice()),r.push({from:d.from,to:Math.min(e.doc.length,d.to+1)})),c=d.number}}catch(h){l.e(h)}finally{l.f()}i=!0}return{text:n.join(e.lineBreak),ranges:r,linewise:i}}(e.state),r=n.text,i=n.ranges,a=n.linewise;if(r){wn=a?r:null;var o=hn?null:t.clipboardData;o?(t.preventDefault(),o.clearData(),o.setData("text/plain",r)):function(e,t){var n=e.dom.parentNode;if(n){var r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((function(){r.remove(),e.focus()}),50)}}(e,r),"cut"==t.type&&e.dispatch({changes:i,scrollIntoView:!0,annotations:p.l.userEvent.of("cut")})}},dn.focus=dn.blur=function(e){setTimeout((function(){e.hasFocus!=e.inputState.notifiedFocused&&e.update([])}),10)},dn.beforeprint=function(e){e.viewState.printing=!0,e.requestMeasure(),setTimeout((function(){e.viewState.printing=!1,e.requestMeasure()}),2e3)},dn.compositionstart=dn.compositionupdate=function(e){e.inputState.composing||(e.docView.compositionDeco.size&&(e.observer.flush(),jn(e)),e.inputState.composing=!0)},dn.compositionend=function(e){e.inputState.composing=!1,e.inputState.compositionEndedAt=Date.now(),setTimeout((function(){e.inputState.composing||jn(e)}),50)};var Sn={childList:!0,characterData:!0,subtree:!0,characterDataOldValue:!0},Cn=$.ie&&$.ie_version<=11,En=function(){function e(t,n,r){var i=this;Object(f.a)(this,e),this.view=t,this.onChange=n,this.onScrollChanged=r,this.active=!1,this.ignoreSelection=new K,this.delayedFlush=-1,this.queue=[],this.scrollTargets=[],this.intersection=null,this.intersecting=!1,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver((function(e){var t,n=Object(u.a)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;i.queue.push(r)}}catch(a){n.e(a)}finally{n.f()}$.ie&&$.ie_version<=11&&e.some((function(e){return"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length}))?i.flushSoon():i.flush()})),Cn&&(this.onCharData=function(e){i.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),i.flushSoon()}),this.onSelectionChange=function(){if(i.view.root.activeElement==i.dom){if($.ie&&$.ie_version<=11&&!i.view.state.selection.primary.empty){var e=F(i.view.root);if(e.focusNode&&W(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return i.flushSoon()}i.flush()}},this.start(),this.onScroll=this.onScroll.bind(this),window.addEventListener("scroll",this.onScroll),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver((function(e){i.parentCheck<0&&(i.parentCheck=setTimeout(i.listenForScroll.bind(i),1e3)),e[e.length-1].intersectionRatio>0!=i.intersecting&&(i.intersecting=!i.intersecting,i.onScrollChanged(document.createEvent("Event")))}),{}),this.intersection.observe(this.dom)),this.listenForScroll()}return Object(d.a)(e,[{key:"onScroll",value:function(e){this.intersecting&&(this.flush(),this.onScrollChanged(e))}},{key:"listenForScroll",value:function(){this.parentCheck=-1;for(var e=0,t=null,n=this.dom;n;)if(1==n.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==n?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(n),n=n.parentNode;else{if(11!=n.nodeType)break;n=n.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){var r,i=Object(u.a)(this.scrollTargets);try{for(i.s();!(r=i.n()).done;){r.value.removeEventListener("scroll",this.onScroll)}}catch(s){i.e(s)}finally{i.f()}var a,o=Object(u.a)(this.scrollTargets=t);try{for(o.s();!(a=o.n()).done;){a.value.addEventListener("scroll",this.onScroll)}}catch(s){o.e(s)}finally{o.f()}}}},{key:"ignore",value:function(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}},{key:"start",value:function(){this.active||(this.observer.observe(this.dom,Sn),this.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange),Cn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}},{key:"stop",value:function(){this.active&&(this.active=!1,this.observer.disconnect(),this.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange),Cn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}},{key:"clearSelection",value:function(){this.ignoreSelection.set(F(this.view.root))}},{key:"clear",value:function(){this.observer.takeRecords(),this.queue.length=0,this.clearSelection()}},{key:"flushSoon",value:function(){var e=this;this.delayedFlush<0&&(this.delayedFlush=window.setTimeout((function(){e.delayedFlush=-1,e.flush()}),20))}},{key:"forceFlush",value:function(){this.delayedFlush>=0&&(window.clearTimeout(this.delayedFlush),this.delayedFlush=-1,this.flush())}},{key:"flush",value:function(){var e=this;if(!(this.delayedFlush>=0)){var t,n=this.queue,r=Object(u.a)(this.observer.takeRecords());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i)}}catch(m){r.e(m)}finally{r.f()}n.length&&(this.queue=[]);var a=F(this.view.root),o=!this.ignoreSelection.eq(a)&&B(this.dom,a);if(0!=n.length||o){var s,c=-1,l=-1,f=!1,d=Object(u.a)(n);try{for(d.s();!(s=d.n()).done;){var h=s.value,p=this.readMutation(h);p&&(p.typeOver&&(f=!0),-1==c?(c=p.from,l=p.to):(c=Math.min(p.from,c),l=Math.max(p.to,l)))}}catch(m){d.e(m)}finally{d.f()}var v=this.view.state;(c>-1||o)&&this.onChange(c,l,f),this.view.state==v&&(this.view.docView.dirty&&(this.ignore((function(){return e.view.docView.sync()})),this.view.docView.dirty=0),this.view.docView.updateSelection()),this.clearSelection()}}}},{key:"readMutation",value:function(e){var t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty(),"childList"==e.type){var n=Mn(t,e.previousSibling||e.target.previousSibling,-1),r=Mn(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}}},{key:"destroy",value:function(){this.stop(),this.intersection&&this.intersection.disconnect();var e,t=Object(u.a)(this.scrollTargets);try{for(t.s();!(e=t.n()).done;){e.value.removeEventListener("scroll",this.onScroll)}}catch(n){t.e(n)}finally{t.f()}window.removeEventListener("scroll",this.onScroll),clearTimeout(this.parentCheck)}}]),e}();function Mn(e,t,n){for(;t;){var r=ne.get(t);if(r&&r.parent==e)return r;var i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}var Pn="\ufdda";function Tn(e,t,n,r){var i,a,o,s=e.state.selection.primary;if(t>-1&&(o=e.docView.domBoundsAround(t,n,0))){var c=o,l=c.from,u=c.to,f=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e,t){var n=[];if(t.activeElement!=e)return n;var r=F(t),i=r.anchorNode,a=r.anchorOffset,o=r.focusNode,s=r.focusOffset;i&&(n.push(new An(i,a)),o==i&&s==a||n.push(new An(o,s)));return n}(e.contentDOM,e.root),d=new _n(f);d.readRange(o.startDOM,o.endDOM),a=function(e,t){if(0==e.length)return null;var n=e[0].pos,r=2==e.length?e[1].pos:n;return n>-1&&r>-1?p.d.single(n+t,r+t):null}(f,l);var h=s.from,v=null;8===e.inputState.lastKeyCode&&e.inputState.lastKeyTime>Date.now()-100&&(h=s.to,v="end");var m=function(e,t,n,r){var i=Math.min(e.length,t.length),a=0;for(;a<i&&e.charCodeAt(a)==t.charCodeAt(a);)a++;if(a==i&&e.length==t.length)return null;var o=e.length,s=t.length;for(;o>0&&s>0&&e.charCodeAt(o-1)==t.charCodeAt(s-1);)o--,s--;if("end"==r){n-=o+Math.max(0,a-Math.min(o,s))-a}if(o<a&&e.length<t.length){s=(a-=n<=a&&n>=o?a-n:0)+(s-o),o=a}else if(s<a){o=(a-=n<=a&&n>=s?a-n:0)+(o-s),s=a}return{from:a,toA:o,toB:s}}(e.state.doc.sliceString(l,u,Pn),d.text,h-l,v);m&&(i={from:l+m.from,to:l+m.toA,insert:p.k.of(d.text.slice(m.from,m.toB).split(Pn))})}else if(e.hasFocus){var g=F(e.root),b=e.docView,y=b.impreciseHead,O=b.impreciseAnchor,x=y&&y.node==g.focusNode&&y.offset==g.focusOffset?e.state.selection.primary.head:e.docView.posFromDOM(g.focusNode,g.focusOffset),k=O&&O.node==g.anchorNode&&O.offset==g.anchorOffset?e.state.selection.primary.anchor:function(e){var t=e.isCollapsed;return t&&$.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t}(g)?x:e.docView.posFromDOM(g.anchorNode,g.anchorOffset);x==s.head&&k==s.anchor||(a=p.d.single(k,x))}if(i||a)if(!i&&r&&!s.empty&&a&&a.primary.empty&&(i={from:s.from,to:s.to,insert:e.state.doc.slice(s.from,s.to)}),i){var w=e.state;if($.android&&(i.from==s.from&&i.to==s.to&&1==i.insert.length&&2==i.insert.lines&&Rn(e,"Enter",10)||i.from==s.from-1&&i.to==s.to&&0==i.insert.length&&Rn(e,"Backspace",8)||i.from==s.from&&i.to==s.to+1&&0==i.insert.length&&Rn(e,"Delete",46)))return;var j,S=i.insert.toString();if(e.state.facet(Ot).some((function(t){return t(e,i.from,i.to,S)})))return;if(i.from>=s.from&&i.to<=s.to&&i.to-i.from>=(s.to-s.from)/3){var C=s.from<i.from?w.doc.sliceString(s.from,i.from,Pn):"",E=s.to>i.to?w.doc.sliceString(i.to,s.to,Pn):"";j=w.replaceSelection(p.k.of((C+i.insert.sliceString(0,void 0,Pn)+E).split(Pn)))}else{var M=w.changes(i);j={changes:M,selection:a&&!w.selection.primary.eq(a.primary)&&a.primary.to<=M.newLength?w.selection.replaceRange(a.primary):void 0}}e.dispatch(j,{scrollIntoView:!0,annotations:p.l.userEvent.of("input")})}else if(a&&!a.primary.eq(s)){var P,T=!1;e.inputState.lastSelectionTime>Date.now()-50&&("keyboardselection"==e.inputState.lastSelectionOrigin?T=!0:P=p.l.userEvent.of(e.inputState.lastSelectionOrigin)),e.dispatch({selection:a,scrollIntoView:T,annotations:P})}}var _n=function(){function e(t){Object(f.a)(this,e),this.points=t,this.text=""}return Object(d.a)(e,[{key:"readRange",value:function(e,t){if(e){for(var n=e.parentNode,r=e;;){this.findPointBefore(n,r),this.readNode(r);var i=r.nextSibling;if(i==t)break;var a=ne.get(r),o=ne.get(i);((a?a.breakAfter:Dn(r))||(o?o.breakAfter:Dn(i))&&("BR"!=r.nodeName||r.cmIgnore))&&(this.text+=Pn),r=i}this.findPointBefore(n,t)}}},{key:"readNode",value:function(e){if(!e.cmIgnore){var t,n=ne.get(e),r=n&&n.overrideDOMText;null!=r?t=r.sliceString(0,void 0,Pn):3==e.nodeType?t=e.nodeValue:"BR"==e.nodeName?t=e.nextSibling?Pn:"":1==e.nodeType&&this.readRange(e.firstChild,null),null!=t&&(this.findPointIn(e,t.length),this.text+=t)}}},{key:"findPointBefore",value:function(e,t){var n,r=Object(u.a)(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}}catch(a){r.e(a)}finally{r.f()}}},{key:"findPointIn",value:function(e,t){var n,r=Object(u.a)(this.points);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t))}}catch(a){r.e(a)}finally{r.f()}}}]),e}();function Dn(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}var An=function e(t,n){Object(f.a)(this,e),this.node=t,this.offset=n,this.pos=-1};function Rn(e,t,n){var r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);e.contentDOM.dispatchEvent(i);var a=new KeyboardEvent("keyup",r);return e.contentDOM.dispatchEvent(a),i.defaultPrevented||a.defaultPrevented}var Ln=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(f.a)(this,e),this.plugins=[],this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.className=Ae("scroller"),this.scrollDOM.appendChild(this.contentDOM),this.dom=document.createElement("div"),this.dom.appendChild(this.scrollDOM),this._dispatch=n.dispatch||function(e){return t.update([e])},this.dispatch=this.dispatch.bind(this),this.root=n.root||document,this.viewState=new $t(n.state||p.e.create()),this.plugins=this.state.facet(Ct).map((function(e){return Tt.create(e,t)})),this.observer=new En(this,(function(e,n,r){return Tn(t,e,n,r)}),(function(e){t.inputState.runScrollHandlers(t,e),t.measure()})),this.docView=new Vt(this),this.inputState=new ln(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,$n(),this.requestMeasure(),n.parent&&n.parent.appendChild(this.dom)}return Object(d.a)(e,[{key:"dispatch",value:function(){var e;this._dispatch(1==arguments.length&&(arguments.length<=0?void 0:arguments[0])instanceof p.l?arguments.length<=0?void 0:arguments[0]:(e=this.state).update.apply(e,arguments))}},{key:"update",value:function(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");this.updateState=2;var t,n=this.state,r=Object(u.a)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.startState!=n)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=i.state}}catch(f){r.e(f)}finally{r.f()}var a=new Nt(this,n,e),o=e.some((function(e){return e.scrollIntoView}))?n.selection.primary:null;this.viewState.update(a,o),this.bidiCache=Qn.update(this.bidiCache,a.changes),a.empty||this.updatePlugins(a);var s=this.docView.update(a);this.state.facet(Rt)!=this.styleModules&&this.mountStyles(),this.updateAttrs(),this.updateState=0,(s||o||this.viewState.mustEnforceCursorAssoc)&&this.requestMeasure();var c,l=Object(u.a)(this.state.facet(yt));try{for(l.s();!(c=l.n()).done;){(0,c.value)(a)}}catch(f){l.e(f)}finally{l.f()}}},{key:"setState",value:function(e){var t=this;if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");this.updateState=2;var n,r=Object(u.a)(this.plugins);try{for(r.s();!(n=r.n()).done;){n.value.destroy(this)}}catch(i){r.e(i)}finally{r.f()}this.viewState=new $t(e),this.plugins=e.facet(Ct).map((function(e){return Tt.create(e,t)})),this.docView=new Vt(this),this.inputState.ensureHandlers(this),this.mountStyles(),this.updateAttrs(),this.bidiCache=[],this.updateState=0,this.requestMeasure()}},{key:"updatePlugins",value:function(e){var t=e.prevState.facet(Ct),n=e.state.facet(Ct);if(t!=n){var r,i=[],a=[],o=Object(u.a)(n);try{for(o.s();!(r=o.n()).done;){var s=r.value,c=t.indexOf(s);if(c<0)i.push(Tt.create(s,this));else{var l=this.plugins[c].update(e);a.push(l),i.push(l)}}}catch(v){o.e(v)}finally{o.f()}var f,d=Object(u.a)(this.plugins);try{for(d.s();!(f=d.n()).done;){var h=f.value;a.indexOf(h)<0&&h.destroy(this)}}catch(v){d.e(v)}finally{d.f()}this.plugins=i,this.inputState.ensureHandlers(this)}else for(var p=0;p<this.plugins.length;p++)this.plugins[p]=this.plugins[p].update(e)}},{key:"measure",value:function(){var e=this;this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled),this.measureScheduled=-1;for(var t=null,n=0;;n++){this.updateState=1;var r=this.viewState.measure(this.docView,n>0),i=this.measureRequests;if(!r&&!i.length&&null==this.viewState.scrollTo)break;if(this.measureRequests=[],n>5){console.warn("Viewport failed to stabilize");break}var a=i.map((function(t){try{return t.read(e)}catch(n){return xt(e.state,n),Bn}})),o=new Nt(this,this.state);o.flags|=r,t?t.flags|=r:t=o,this.updateState=2,this.updatePlugins(o),r&&this.docView.update(o);for(var s=0;s<i.length;s++)if(a[s]!=Bn)try{i[s].write(a[s],this)}catch(f){xt(this.state,f)}if(this.viewState.scrollTo&&(this.docView.scrollPosIntoView(this.viewState.scrollTo.head,this.viewState.scrollTo.assoc),this.viewState.scrollTo=null),!(4&r)&&0==this.measureRequests.length)break}if(this.updateState=0,this.measureScheduled=-1,t){var c,l=Object(u.a)(this.state.facet(yt));try{for(l.s();!(c=l.n()).done;){(0,c.value)(t)}}catch(d){l.e(d)}finally{l.f()}}}},{key:"updateAttrs",value:function(){var e=ge(this.state.facet(_t),{class:Ae("wrap")+(this.hasFocus?" cm-focused ":" ")+this.themeClasses});ye(this.dom,this.editorAttrs,e),this.editorAttrs=e;var t=ge(this.state.facet(Dt),{spellcheck:"false",contenteditable:String(this.state.facet(kt)),class:Ae("content"),style:"".concat($.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"});ye(this.contentDOM,this.contentAttrs,t),this.contentAttrs=t}},{key:"mountStyles",value:function(){this.styleModules=this.state.facet(Rt),v.a.mount(this.root,this.styleModules.concat(Le).reverse())}},{key:"domAtPos",value:function(e){return this.docView.domAtPos(e)}},{key:"posAtDOM",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(e,t)}},{key:"readMeasured",value:function(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure()}},{key:"requestMeasure",value:function(e){var t=this;if(this.measureScheduled<0&&(this.measureScheduled=requestAnimationFrame((function(){return t.measure()}))),e){if(null!=e.key)for(var n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key)return void(this.measureRequests[n]=e);this.measureRequests.push(e)}}},{key:"pluginField",value:function(e){var t,n=[],r=Object(u.a)(this.plugins);try{for(r.s();!(t=r.n()).done;){t.value.takeField(e,n)}}catch(i){r.e(i)}finally{r.f()}return n}},{key:"plugin",value:function(e){var t,n=Object(u.a)(this.plugins);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.spec==e)return r.value}}catch(i){n.e(i)}finally{n.f()}return null}},{key:"blockAtHeight",value:function(e,t){return this.readMeasured(),this.viewState.blockAtHeight(e,In(t,this.contentDOM))}},{key:"visualLineAtHeight",value:function(e,t){return this.readMeasured(),this.viewState.lineAtHeight(e,In(t,this.contentDOM))}},{key:"visualLineAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.viewState.lineAt(e,t)}},{key:"viewportLines",value:function(e,t){var n=this.viewport,r=n.from,i=n.to;this.viewState.forEachLine(r,i,e,In(t,this.contentDOM))}},{key:"moveByChar",value:function(e,t,n){return cn(this,e,t,n)}},{key:"moveByGroup",value:function(e,t){var n=this;return cn(this,e,t,(function(t){return function(e,t,n){var r=e.state.charCategorizer(t),i=r(n);return function(e){var t=r(e);return i==p.c.Space&&(i=t),i==t}}(n,e.head,t)}))}},{key:"moveToLineBoundary",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return sn(this,e,t,n)}},{key:"moveVertically",value:function(e,t,n){return function(e,t,n,r){var i,a=t.head,o=n?1:-1;if(a==(n?e.state.doc.length:0))return p.d.cursor(a);var s=e.coordsAtPos(a);if(s)for(var c=e.dom.getBoundingClientRect(),l=null!==(i=t.goalColumn)&&void 0!==i?i:s.left-c.left,u=c.left+l,f=null!==r&&void 0!==r?r:5,d=o<0?s.top:s.bottom,h=0;h<50;h+=10){var v=on(e,{x:u,y:d+(f+h)*o},o);if(v<0)break;if(v!=a)return p.d.cursor(v,void 0,void 0,l)}var m=e.state.doc,b=m.lineAt(a),y=e.state.tabSize,O=t.goalColumn,x=0;if(null==O){for(var k=m.iterRange(b.from,a);!k.next().done;)x=Object(g.d)(k.value,x,y);O=x*e.defaultCharacterWidth}else x=Math.round(O/e.defaultCharacterWidth);if(o<0&&0==b.from)return p.d.cursor(0);if(o>0&&b.to==m.length)return p.d.cursor(b.to);for(var w=m.line(b.number+o),j=w.from,S=0,C=m.iterRange(w.from,w.to);S>=x&&!C.next().done;){var E=Object(g.e)(C.value,S,x,y),M=E.offset;S=x-E.leftOver,j+=M}return p.d.cursor(j,void 0,void 0,O)}(this,e,t,n)}},{key:"scrollPosIntoView",value:function(e){this.viewState.scrollTo=p.d.cursor(e),this.requestMeasure()}},{key:"posAtCoords",value:function(e){return this.readMeasured(),on(this,e)}},{key:"coordsAtPos",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();var n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;var r=this.state.doc.lineAt(e),i=this.bidiSpans(r),a=i[Ye.find(i,e-r.from,-1,t)];return q(n,a.dir==Re.LTR==t>0)}},{key:"bidiSpans",value:function(e){if(e.length>Nn)return Ge(e.length);var t,n=this.textDirection,r=Object(u.a)(this.bidiCache);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.from==e.from&&i.dir==n)return i.order}}catch(o){r.e(o)}finally{r.f()}var a=Ke(e.slice(),this.textDirection);return this.bidiCache.push(new Qn(e.from,e.to,n,a)),a}},{key:"focus",value:function(){var e=this;this.observer.ignore((function(){Z(e.contentDOM),e.docView.updateSelection()}))}},{key:"destroy",value:function(){var e,t=Object(u.a)(this.plugins);try{for(t.s();!(e=t.n()).done;){e.value.destroy(this)}}catch(n){t.e(n)}finally{t.f()}this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&cancelAnimationFrame(this.measureScheduled)}},{key:"state",get:function(){return this.viewState.state}},{key:"viewport",get:function(){return this.viewState.viewport}},{key:"visibleRanges",get:function(){return this.viewState.visibleRanges}},{key:"inView",get:function(){return this.viewState.inView}},{key:"composing",get:function(){return this.inputState.composing}},{key:"themeClasses",get:function(){return Te+" "+(this.state.facet(Pe)?"cm-dark":"cm-light")+" "+this.state.facet(Me)}},{key:"contentHeight",get:function(){return this.viewState.heightMap.height+this.viewState.paddingTop+this.viewState.paddingBottom}},{key:"defaultCharacterWidth",get:function(){return this.viewState.heightOracle.charWidth}},{key:"defaultLineHeight",get:function(){return this.viewState.heightOracle.lineHeight}},{key:"textDirection",get:function(){return this.viewState.heightOracle.direction}},{key:"lineWrapping",get:function(){return this.viewState.heightOracle.lineWrapping}},{key:"hasFocus",get:function(){return this.root.activeElement==this.contentDOM}}],[{key:"domEventHandlers",value:function(e){return Et.define((function(){return{}}),{eventHandlers:e})}},{key:"theme",value:function(e,t){var n=v.a.newName(),r=[Me.of(n),Rt.of(De(".".concat(Te,".").concat(n),e))];return t&&t.dark&&r.push(Pe.of(!0)),r}},{key:"baseTheme",value:function(e){return Object(p.o)(Rt.of(De("."+Te,e)),"fallback")}}]),e}();Ln.styleModule=Rt,Ln.inputHandler=Ot,Ln.exceptionSink=bt,Ln.updateListener=yt,Ln.editable=kt,Ln.dragMovesSelection=mt,Ln.clickAddsSelectionRange=vt,Ln.mouseSelectionStyle=gt,Ln.decorations=At,Ln.lineWrapping=Ln.theme({$content:{whiteSpace:"pre-wrap"}}),Ln.contentAttributes=Dt,Ln.editorAttributes=_t;var Nn=4096;function In(e,t){return null==e?t.getBoundingClientRect().top:e}var zn=-1;function $n(){window.addEventListener("resize",(function(){-1==zn&&(zn=setTimeout(Fn,50))}))}function Fn(){zn=-1;for(var e=document.querySelectorAll(".cm-content"),t=0;t<e.length;t++){var n=ne.get(e[t]);n&&n.editorView.requestMeasure()}}var Bn={},Qn=function(){function e(t,n,r,i){Object(f.a)(this,e),this.from=t,this.to=n,this.dir=r,this.order=i}return Object(d.a)(e,null,[{key:"update",value:function(t,n){if(n.empty)return t;for(var r=[],i=t.length?t[t.length-1].dir:Re.LTR,a=Math.max(0,t.length-10);a<t.length;a++){var o=t[a];o.dir!=i||n.touchesRange(o.from,o.to)||r.push(new e(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.order))}return r}}]),e}(),Wn="undefined"==typeof navigator?"key":/Mac/.test(navigator.platform)?"mac":/Win/.test(navigator.platform)?"win":/Linux|X11/.test(navigator.platform)?"linux":"key";function Hn(e,t){var n,r,i,a,o=e.split(/-(?!$)/),s=o[o.length-1];"Space"==s&&(s=" ");for(var c=0;c<o.length-1;++c){var l=o[c];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))n=!0;else if(/^(c|ctrl|control)$/i.test(l))r=!0;else if(/^s(hift)?$/i.test(l))i=!0;else{if(!/^mod$/i.test(l))throw new Error("Unrecognized modifier name: "+l);"mac"==t?a=!0:r=!0}}return n&&(s="Alt-"+s),r&&(s="Ctrl-"+s),a&&(s="Meta-"+s),i&&(s="Shift-"+s),s}function Vn(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}var Un=p.f.define(),qn=Ln.domEventHandlers({keydown:function(e,t){return Zn(t.state.facet(Un),e,t,"editor")}});function Yn(e,t){return[qn,Un.of(Gn(e,t))]}function Xn(e,t,n){return Zn(e.state.facet(Un),t,e,n)}var Kn=null;function Gn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wn,r=Object.create(null),i=Object.create(null),a=function(e,t){var n=i[e];if(null==n)i[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=function(e,t,i,o){for(var s=r[e]||(r[e]=Object.create(null)),c=t.split(/ (?!$)/).map((function(e){return Hn(e,n)})),l=function(t){var n=c.slice(0,t).join(" ");a(n,!0),s[n]||(s[n]={preventDefault:!0,commands:[function(t){var r=Kn={view:t,prefix:n,scope:e};return setTimeout((function(){Kn==r&&(Kn=null)}),4e3),!0}]})},u=1;u<c.length;u++)l(u);var f=c.join(" ");a(f,!1);var d=s[f]||(s[f]={preventDefault:!1,commands:[]});d.commands.push(i),o&&(d.preventDefault=!0)},s=Object(u.a)(e);try{for(s.s();!(t=s.n()).done;){var c=t.value,l=c[n]||c.key;if(l){var f,d=Object(u.a)(c.scope?c.scope.split(" "):["editor"]);try{for(d.s();!(f=d.n()).done;){var h=f.value;o(h,l,c.run,c.preventDefault),c.shift&&o(h,"Shift-"+l,c.shift,c.preventDefault)}}catch(p){d.e(p)}finally{d.f()}}}}catch(p){s.e(p)}finally{s.f()}return r}function Zn(e,t,n,r){var i=function(e){var t=!(S&&(e.ctrlKey||e.altKey||e.metaKey)||(x||j)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?y:b)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),a=1==i.length&&" "!=i,o="";Kn&&Kn.view==n&&Kn.scope==r&&(o=Kn.prefix+" ",Kn=null);var s,c=!!o,l=function(e){if(e){var t,r=Object(u.a)(e.commands);try{for(r.s();!(t=r.n()).done;){if((0,t.value)(n))return!0}}catch(i){r.e(i)}finally{r.f()}e.preventDefault&&(c=!0)}return!1},f=Object(u.a)(e);try{for(f.s();!(s=f.n()).done;){var d=s.value[r],h=void 0;if(d){if(l(d[o+Vn(i,t,!a)]))return!0;if(a&&(t.shiftKey||t.altKey||t.metaKey)&&(h=b[t.keyCode])&&h!=i){if(l(d[o+Vn(h,t,!0)]))return!0}else if(a&&t.shiftKey&&l(d[o+Vn(i,t,!0)]))return!0}}}catch(p){f.e(p)}finally{f.f()}return c}var Jn=!$.ios,er=p.f.define({combine:function(e){return Object(p.m)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:function(e,t){return Math.min(e,t)},drawRangeCursor:function(e,t){return e||t}})}});function tr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[er.of(e),rr,ar]}var nr=function(){function e(t,n,r,i,a){Object(f.a)(this,e),this.left=t,this.top=n,this.width=r,this.height=i,this.className=a}return Object(d.a)(e,[{key:"draw",value:function(){var e=document.createElement("div");return e.className=this.className,e.style.left=this.left+"px",e.style.top=this.top+"px",this.width>=0&&(e.style.width=this.width+"px"),e.style.height=this.height+"px",e}},{key:"eq",value:function(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}}]),e}(),rr=Et.fromClass(function(){function e(t){Object(f.a)(this,e),this.view=t,this.rangePieces=[],this.cursors=[],this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.selectionLayer=t.scrollDOM.appendChild(document.createElement("div")),this.selectionLayer.className=Ae("selectionLayer"),this.selectionLayer.setAttribute("aria-hidden","true"),this.cursorLayer=t.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className=Ae("cursorLayer"),this.cursorLayer.setAttribute("aria-hidden","true"),t.requestMeasure(this.measureReq),this.setBlinkRate()}return Object(d.a)(e,[{key:"setBlinkRate",value:function(){this.cursorLayer.style.animationDuration=this.view.state.facet(er).cursorBlinkRate+"ms"}},{key:"update",value:function(e){var t=e.prevState.facet(er)!=e.state.facet(er);(t||e.selectionSet||e.geometryChanged||e.viewportChanged)&&this.view.requestMeasure(this.measureReq),e.transactions.some((function(e){return e.scrollIntoView}))&&(this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),t&&this.setBlinkRate()}},{key:"readPos",value:function(){var e,t=this,n=this.view.state,r=n.facet(er),i=n.selection.ranges.map((function(e){return e.empty?[]:function(e,t){if(t.to<=e.viewport.from||t.from>=e.viewport.to)return[];var n=Math.max(t.from,e.viewport.from),r=Math.min(t.to,e.viewport.to),i=e.textDirection==Re.LTR,a=e.contentDOM,o=a.getBoundingClientRect(),s=sr(e),c=window.getComputedStyle(a.firstChild),l=o.left+parseInt(c.paddingLeft),f=o.right-parseInt(c.paddingRight),d=e.visualLineAt(n),h=e.visualLineAt(r);if(d.from==h.from)return y(O(t.from,t.to));var v=O(t.from,null),m=O(null,t.to),g=[];return d.to<h.from-1?g.push(b(l,v.bottom,f,m.top)):v.bottom<m.top&&m.top-v.bottom<4&&(v.bottom=m.top=(v.bottom+m.top)/2),y(v).concat(g).concat(y(m));function b(e,t,n,r){return new nr(e-s.left,t-s.top,n-e,r-t,or)}function y(e){for(var t=e.top,n=e.bottom,r=e.horizontal,i=[],a=0;a<r.length;a+=2)i.push(b(r[a],t,r[a+1],n));return i}function O(t,n){var r=1e9,a=-1e9,o=[];function s(t,n,s,c,u){var d=e.coordsAtPos(t,1),h=e.coordsAtPos(s,-1);r=Math.min(d.top,h.top,r),a=Math.max(d.bottom,h.bottom,a),u==Re.LTR?o.push(i&&n?l:d.left,i&&c?f:h.right):o.push(!i&&c?l:h.left,!i&&n?f:d.right)}var c,d=null!==t&&void 0!==t?t:e.moveToLineBoundary(p.d.cursor(n,1),!1).head,h=null!==n&&void 0!==n?n:e.moveToLineBoundary(p.d.cursor(t,-1),!0).head,v=Object(u.a)(e.visibleRanges);try{for(v.s();!(c=v.n()).done;){var m=c.value;if(m.to>d&&m.from<h)for(var g=Math.max(m.from,d),b=Math.min(m.to,h);;){var y,O=e.state.doc.lineAt(g),x=Object(u.a)(e.bidiSpans(O));try{for(x.s();!(y=x.n()).done;){var k=y.value,w=k.from+O.from,j=k.to+O.from;if(w>=b)break;j>g&&s(Math.max(w,g),null==t&&w<=d,Math.min(j,b),null==n&&j>=h,k.dir)}}catch(C){x.e(C)}finally{x.f()}if((g=O.to+1)>=b)break}}}catch(C){v.e(C)}finally{v.f()}if(0==o.length){var S=e.coordsAtPos(d,-1);r=Math.min(S.top,r),a=Math.max(S.bottom,a)}return{top:r,bottom:a,horizontal:o}}}(t.view,e)})).reduce((function(e,t){return e.concat(t)})),a=[],o=Object(u.a)(n.selection.ranges);try{for(o.s();!(e=o.n()).done;){var s=e.value,c=s==n.selection.primary;if(s.empty?!c||Jn:r.drawRangeCursor){var l=ur(this.view,s,c);l&&a.push(l)}}}catch(f){o.e(f)}finally{o.f()}return{rangePieces:i,cursors:a}}},{key:"drawSel",value:function(e){var t=this,n=e.rangePieces,r=e.cursors;if(n.length!=this.rangePieces.length||n.some((function(e,n){return!e.eq(t.rangePieces[n])}))){this.selectionLayer.textContent="";var i,a=Object(u.a)(n);try{for(a.s();!(i=a.n()).done;){var o=i.value;this.selectionLayer.appendChild(o.draw())}}catch(f){a.e(f)}finally{a.f()}this.rangePieces=n}if(r.length!=this.cursors.length||r.some((function(e,n){return!e.eq(t.cursors[n])}))){this.cursorLayer.textContent="";var s,c=Object(u.a)(r);try{for(c.s();!(s=c.n()).done;){var l=s.value;this.cursorLayer.appendChild(l.draw())}}catch(f){c.e(f)}finally{c.f()}this.cursors=r}}},{key:"destroy",value:function(){this.selectionLayer.remove(),this.cursorLayer.remove()}}]),e}()),ir={$content:{"& ::selection":{backgroundColor:"transparent !important"}}};Jn&&(ir.$content.caretColor="transparent !important");var ar=Object(p.o)(Ln.theme(ir),"override"),or=Ae("selectionBackground");function sr(e){var t=e.scrollDOM.getBoundingClientRect();return{left:t.left-e.scrollDOM.scrollLeft,top:t.top-e.scrollDOM.scrollTop}}var cr=Ae("cursor.primary"),lr=Ae("cursor.secondary");function ur(e,t,n){var r=e.coordsAtPos(t.head,t.assoc||1);if(!r)return null;var i=sr(e);return new nr(r.left-i.left,r.top-i.top,-1,r.bottom-r.top,n?cr:lr)}var fr=/[\0-\x08\n-\x1F\x7F-\x9F\xAD\u061C\u200B\u200C\u200E\u200F\u2028\u2029\uFEFF\uFFF9-\uFFFC]/g,dr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"},hr=null;function pr(){if(null==hr&&"undefined"!=typeof document&&document.body){var e=document.body.style;hr=null!=(e.tabSize||e.MozTabSize)}return hr||!1}var vr=null!=/x/.unicode?"gu":"g",mr=p.f.define({combine:function(e){var t=Object(p.m)(e,{render:null,specialChars:fr,addSpecialChars:null});return(t.replaceTabs=!pr())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,vr)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,vr)),t}});function gr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[mr.of(e),br];return pr()||t.push(kr),t}var br=Et.fromClass(function(){function e(t){Object(f.a)(this,e),this.view=t,this.decorations=ke.none,this.decorationCache=Object.create(null),this.recompute()}return Object(d.a)(e,[{key:"update",value:function(e){var t=e.prevState.facet(mr)!=e.state.facet(mr);t&&(this.decorationCache=Object.create(null)),(t||e.changes.length||e.viewportChanged)&&this.recompute()}},{key:"recompute",value:function(){var e,t=[],n=Object(u.a)(this.view.visibleRanges);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.from,a=r.to;this.getDecorationsFor(i,a,t)}}catch(o){n.e(o)}finally{n.f()}this.decorations=ke.set(t)}},{key:"getDecorationsFor",value:function(e,t,n){for(var r,i=this.view.state.facet(mr),a=this.view.state.doc,o=e,s=a.iterRange(e,t);!s.next().done;){if(!s.lineBreak)for(;r=i.specialChars.exec(s.value);){var c=Object(g.b)(r[0],0),l=void 0;if(null!=c){if(9==c){var u=a.lineAt(o+r.index),f=this.view.state.tabSize,d=Object(g.d)(a.sliceString(u.from,o+r.index),0,f);l=ke.replace({widget:new Or((f-d%f)*this.view.defaultCharacterWidth)})}else l=this.decorationCache[c]||(this.decorationCache[c]=ke.replace({widget:new yr(i,c)}));n.push(l.range(o+r.index,o+r.index+r[0].length))}}o+=s.value.length}}}]),e}(),{decorations:function(e){return e.decorations}});var yr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).options=e,i.code=r,i}return Object(d.a)(n,[{key:"eq",value:function(e){return e.code==this.code}},{key:"toDOM",value:function(){var e,t=((e=this.code)>=32?null:10==e?"\u2424":String.fromCharCode(9216+e))||"\u2022",n="Control character "+(dr[this.code]||this.code),r=this.options.render&&this.options.render(this.code,n,t);if(r)return r;var i=document.createElement("span");return i.textContent=t,i.title=n,i.setAttribute("aria-label",n),i.style.color="red",i}},{key:"ignoreEvent",value:function(){return!1}}]),n}(xe),Or=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).width=e,r}return Object(d.a)(n,[{key:"eq",value:function(e){return e.width==this.width}},{key:"toDOM",value:function(){var e=document.createElement("span");return e.textContent="\t",e.className=xr,e.style.width=this.width+"px",e}},{key:"ignoreEvent",value:function(){return!1}}]),n}(xe),xr=v.a.newName(),kr=Ln.styleModule.of(new v.a(Object(r.a)({},"."+xr,{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"})));function wr(){return p.e.transactionFilter.of((function(e){if(!e.docChanged||"input"!=e.annotation(p.l.userEvent))return e;var t=e.startState.languageDataAt("indentOnInput",e.startState.selection.primary.head);if(!t.length)return e;var n=e.newDoc,r=e.newSelection.primary.head,i=n.lineAt(r);if(r>i.from+200)return e;var a=n.sliceString(i.from,r);if(!t.some((function(e){return e.test(a)})))return e;var o,s=e.state,c=-1,f=[],d=Object(u.a)(s.selection.ranges);try{var h=function(){var e=o.value.head,t=s.doc.lineAt(e);if(t.from==c)return"continue";c=t.from;var n=Math.max.apply(Math,Object(l.a)(s.facet(p.e.indentation).map((function(e){return e(new p.g(s),t.from)}))));if(n<0)return"continue";var r=/^\s*/.exec(t.slice(0,Math.min(t.length,200)))[0],i=s.indentString(n);r!=i&&f.push({from:t.from,to:t.from+r.length,insert:i})};for(d.s();!(o=d.n()).done;)h()}catch(v){d.e(v)}finally{d.f()}return f.length?[e,{changes:f}]:e}))}},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=n.n(a),s=(n(12),n(113)),c=n.n(s),l=n(345),u=n(376),f=n(204),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var a=t.defaultTheme,s=t.withTheme,d=void 0!==s&&s,h=t.name,p=Object(i.a)(t,["defaultTheme","withTheme","name"]);var v=h,m=Object(l.a)(e,Object(r.a)({defaultTheme:a,Component:n,name:h||n.displayName,classNamePrefix:v},p)),g=o.a.forwardRef((function(e,t){e.classes;var s,c=e.innerRef,l=Object(i.a)(e,["classes","innerRef"]),p=m(Object(r.a)(Object(r.a)({},n.defaultProps),e)),v=l;return("string"===typeof h||d)&&(s=Object(f.a)()||a,h&&(v=Object(u.a)({theme:s,name:h,props:l})),d&&!v.theme&&(v.theme=s)),o.a.createElement(n,Object(r.a)({ref:c||t,classes:p},v))}));return c()(g,n),g}},h=n(69);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:h.a},t))}},function(e,t,n){e.exports=n(230)()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(13);function i(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 a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(27);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(60);function o(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?Object(a.a)(e):t}function s(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=Object(r.a)(e);if(t){var a=Object(r.a)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},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 i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(205);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return O})),n.d(t,"d",(function(){return x})),n.d(t,"e",(function(){return k})),n.d(t,"f",(function(){return y}));for(var r=n(30),i=n(27),a=n(16),o=n(15),s=n(7),c=n(4),l=n(6),u="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((function(e){return e?parseInt(e,36):1})),f=1;f<u.length;f++)u[f]+=u[f-1];function d(e){for(var t=1;t<u.length;t+=2)if(u[t]>e)return u[t-1]<=e;return!1}function h(e){return e>=127462&&e<=127487}function p(e,t){if(t==e.length)return t;t&&m(e.charCodeAt(t))&&g(e.charCodeAt(t-1))&&t--;var n=b(e,t);for(t+=O(n);t<e.length;){var r=b(e,t);if(8205==n||8205==r||d(r))t+=O(r),n=r;else{if(!h(r))break;for(var i=0,a=t-2;a>=0&&h(b(e,a));)i++,a-=2;if(i%2==0)break;t+=2}}return t}function v(e,t){for(;t>0;){var n=p(e,t-2);if(n<t)return n;t--}return 0}function m(e){return e>=56320&&e<57344}function g(e){return e>=55296&&e<56320}function b(e,t){var n=e.charCodeAt(t);if(!g(n)||t+1==e.length)return n;var r=e.charCodeAt(t+1);return m(r)?r-56320+(n-55296<<10)+65536:n}function y(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function O(e){return e<65536?1:2}function x(e,t,n){for(var r=0;r<e.length;)9==e.charCodeAt(r)?(t+=n-t%n,r++):(t++,r=p(e,r));return t}function k(e,t,n,r){for(var i=0;i<e.length;){if(t>=n)return{offset:i,leftOver:0};t+=9==e.charCodeAt(i)?r-t%r:1,i=p(e,i)}return{offset:e.length,leftOver:n-t}}var w=function(){function e(){Object(c.a)(this,e)}return Object(l.a)(e,[{key:"lineAt",value:function(e){if(e<0||e>this.length)throw new RangeError("Invalid position ".concat(e," in document of length ").concat(this.length));var t,n=Object(s.a)(j);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.doc==this&&r.from<=e&&r.to>=e)return r}}catch(i){n.e(i)}finally{n.f()}return C(this.lineInner(e,!1,1,0).finish(this))}},{key:"line",value:function(e){if(e<1||e>this.lines)throw new RangeError("Invalid line number ".concat(e," in ").concat(this.lines,"-line document"));var t,n=Object(s.a)(j);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.doc==this&&r.number==e)return r}}catch(i){n.e(i)}finally{n.f()}return C(this.lineInner(e,!0,1,0).finish(this))}},{key:"replace",value:function(e,t,n){var r=[];return this.decompose(0,e,r),r.push(n),this.decompose(t,this.length,r),M.from(r,this.length-(t-e)+n.length)}},{key:"append",value:function(e){return 0==this.length?e:0==e.length?this:M.from([this,e],this.length+e.length)}},{key:"slice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=[];return this.decompose(e,t,n),M.from(n,t-e)}},{key:"eq",value:function(e){return this==e||function(e,t){if(e.length!=t.length||e.lines!=t.lines)return!1;for(var n=new D(e),r=new D(t),i=0,a=0;;){if(n.lineBreak!=r.lineBreak||n.done!=r.done)return!1;if(n.done)return!0;if(n.lineBreak)n.next(),r.next(),i=a=0;else{var o=n.value.slice(i),s=r.value.slice(a);if(o.length==s.length){if(o!=s)return!1;n.next(),r.next(),i=a=0}else if(o.length>s.length){if(o.slice(0,s.length)!=s)return!1;i+=s.length,r.next(),a=0}else{if(s.slice(0,o.length)!=o)return!1;a+=o.length,n.next(),i=0}}}}(this,e)}},{key:"iter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new D(this,e)}},{key:"iterRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new A(this,e,t)}},{key:"iterLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new R(this,e)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){for(var e=[],t=this.iterLines();!t.next().done;)e.push(t.value);return e}}],[{key:"of",value:function(t){if(0==t.length)throw new RangeError("A document must have at least one line");if(1==t.length&&!t[0]&&e.empty)return e.empty;var n=P(t);return n<1024?new E(t,n):M.from(E.split(t,[]),n)}}]),e}();"undefined"!=typeof Symbol&&(w.prototype[Symbol.iterator]=function(){return this.iter()});var j=[],S=-1;function C(e){return j[S=(S+1)%10]=e}var E=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P(e);return Object(c.a)(this,n),(r=t.call(this)).text=e,r.length=i,r}return Object(l.a)(n,[{key:"lineInner",value:function(e,t,n,r){for(var i=0;;i++){var a=this.text[i],o=r+a.length;if((t?n:o)>=e)return new L(r,o,n,a);r=o+1,n++}}},{key:"decompose",value:function(e,t,r){r.push(new n(_(this.text,e,t),Math.min(t,this.length)-Math.max(0,e)))}},{key:"lastLineLength",value:function(){return this.text[this.text.length-1].length}},{key:"firstLineLength",value:function(){return this.text[0].length}},{key:"replace",value:function(e,t,a){var o=this.length+a.length-(t-e);return o>=1024||!(a instanceof n)?Object(r.a)(Object(i.a)(n.prototype),"replace",this).call(this,e,t,a):new n(T(this.text,T(a.text,_(this.text,0,e)),t),o)}},{key:"sliceString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,a=0;i<=t&&a<this.text.length;a++){var o=this.text[a],s=i+o.length;i>e&&a&&(r+=n),e<s&&t>i&&(r+=o.slice(Math.max(0,e-i),t-i)),i=s+1}return r}},{key:"flatten",value:function(e){e[e.length-1]+=this.text[0];for(var t=1;t<this.text.length;t++)e.push(this.text[t])}},{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}}],[{key:"split",value:function(e,t){var r,i=[],a=-1,o=Object(s.a)(e);try{for(o.s();!(r=o.n()).done;)for(var c=r.value;;){var l=a+c.length+1;if(l<512){a=l,i.push(c);break}var u=512-a-1,f=c.charCodeAt(u);f>=56320&&f<57344&&u++,i.push(c.slice(0,u)),t.push(new n(i,512)),c=c.slice(u),a=-1,i=[]}}catch(d){o.e(d)}finally{o.f()}return-1!=a&&t.push(new n(i,a)),t}}]),n}(w),M=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,r){var i;Object(c.a)(this,n),(i=t.call(this)).children=e,i.length=r,i.lines=1;var a,o=Object(s.a)(e);try{for(o.s();!(a=o.n()).done;){var l=a.value;i.lines+=l.lines-1}}catch(u){o.e(u)}finally{o.f()}return i}return Object(l.a)(n,[{key:"lineInner",value:function(e,t,n,r){for(var i=0;;i++){var a=this.children[i],o=r+a.length,s=n+a.lines-1;if((t?s:o)>=e){var c=a.lineInner(e,t,n,r),l=void 0;return c.from==r&&(l=this.lineLengthTo(i))&&(c.from-=l,c.content=null),c.to==o&&(l=this.lineLengthFrom(i+1))&&(c.to+=l,c.content=null),c}r=o,n=s}}},{key:"decompose",value:function(e,t,n){for(var r=0,i=0;i<t&&r<this.children.length;r++){var a=this.children[r],o=i+a.length;e<o&&t>i&&(i>=e&&o<=t?n.push(a):a.decompose(e-i,t-i,n)),i=o}}},{key:"lineLengthTo",value:function(e){for(var t=0,n=e-1;n>=0;n--){var r=this.children[n];if(r.lines>1)return t+r.lastLineLength();t+=r.length}return t}},{key:"lastLineLength",value:function(){return this.lineLengthTo(this.children.length)}},{key:"lineLengthFrom",value:function(e){for(var t=0,n=e;n<this.children.length;n++){var r=this.children[n];if(r.lines>1)return t+r.firstLineLength();t+=r.length}return t}},{key:"firstLineLength",value:function(){return this.lineLengthFrom(0)}},{key:"replace",value:function(e,t,a){if(a.length<512&&t-e<512)for(var o=a.length-(t-e),s=0,c=0;s<this.children.length;s++){var l=this.children[s],u=c+l.length;if(e>=c&&t<=u&&l.length+o<this.length+o>>2&&l.length+o>0){var f=this.children.slice();return f[s]=l.replace(e-c,t-c,a),new n(f,this.length+o)}c=u}return Object(r.a)(Object(i.a)(n.prototype),"replace",this).call(this,e,t,a)}},{key:"sliceString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,a=0;a<t&&i<this.children.length;i++){var o=this.children[i],s=a+o.length;if(e<s&&t>a){var c=o.sliceString(e-a,t-a,n);if(e>=a&&t<=s)return c;r+=c}a=s}return r}},{key:"flatten",value:function(e){var t,n=Object(s.a)(this.children);try{for(n.s();!(t=n.n()).done;){t.value.flatten(e)}}catch(r){n.e(r)}finally{n.f()}}}],[{key:"from",value:function(e,t){if(!e.every((function(e){return e instanceof w})))throw new Error("NOP");if(t<1024){var r,i=[""],a=Object(s.a)(e);try{for(a.s();!(r=a.n()).done;){r.value.flatten(i)}}catch(g){a.e(g)}finally{a.f()}return new E(i,t)}var o=Math.max(512,t>>3),c=o<<1,l=o>>1,u=[],f=0,d=[];function h(e){var t,r=e.length;if(r)if(r>c&&e instanceof n){var i,a=Object(s.a)(e.children);try{for(a.s();!(i=a.n()).done;){h(i.value)}}catch(g){a.e(g)}finally{a.f()}}else r>l&&(f>l||0==f)?(p(),u.push(e)):e instanceof E&&f>0&&(t=d[d.length-1])instanceof E&&e.length+t.length<=512?(f+=r,d[d.length-1]=new E(T(e.text,t.text.slice()),e.length+t.length)):(f+r>o&&p(),f+=r,d.push(e))}function p(){0!=f&&(u.push(1==d.length?d[0]:n.from(d,f)),f=0,d.length=0)}var v,m=Object(s.a)(e);try{for(m.s();!(v=m.n()).done;){h(v.value)}}catch(g){m.e(g)}finally{m.f()}return p(),1==u.length?u[0]:new n(u,t)}}]),n}(w);function P(e){var t,n=-1,r=Object(s.a)(e);try{for(r.s();!(t=r.n()).done;){n+=t.value.length+1}}catch(i){r.e(i)}finally{r.f()}return n}function T(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,i=0,a=0,o=!0;a<e.length&&i<=r;a++){var s=e[a],c=i+s.length;c>=n&&(c>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(t[t.length-1]+=s,o=!1):t.push(s)),i=c+1}return t}function _(e,t,n){return T(e,[""],t,n)}w.empty=w.of([""]);var D=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Object(c.a)(this,e),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?0:t instanceof E?t.text.length:t.children.length]}return Object(l.a)(e,[{key:"next",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;;){var t=this.nodes.length-1;if(t<0)return this.done=!0,this.value="",this.lineBreak=!1,this;var n=this.nodes[t],r=this.offsets[t];if(n instanceof E){if(r!=(this.dir>0?0:n.text.length)&&!this.lineBreak){if(this.lineBreak=!0,0==e)return this.value="\n",this;e--;continue}var i=n.text[r-(this.dir<0?1:0)];if(this.offsets[t]=r+=this.dir,r==(this.dir>0?n.text.length:0)&&(this.nodes.pop(),this.offsets.pop()),this.lineBreak=!1,i.length>Math.max(0,e))return this.value=0==e?i:this.dir>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else if(r==(this.dir>0?n.children.length:0))this.nodes.pop(),this.offsets.pop();else{var a=n.children[this.dir>0?r:r-1],o=a.length;this.offsets[t]=r+this.dir,e>o?e-=o:(this.nodes.push(a),this.offsets.push(this.dir>0?0:a instanceof E?a.text.length:a.children.length))}}}}]),e}(),A=function(){function e(t,n,r){Object(c.a)(this,e),this.value="",this.cursor=new D(t,n>r?-1:1),n>r?(this.skip=t.length-n,this.limit=n-r):(this.skip=n,this.limit=r-n)}return Object(l.a)(e,[{key:"next",value:function(){if(this.limit<=0)this.limit=-1;else{var e=this.cursor.next(this.skip),t=e.value,n=e.lineBreak,r=e.done;this.skip=0,this.value=t;var i=n?1:t.length;i>this.limit&&(this.value=this.cursor.dir>0?t.slice(0,this.limit):t.slice(i-this.limit)),r||0==this.value.length?this.limit=-1:this.limit-=this.value.length}return this}},{key:"lineBreak",get:function(){return this.cursor.lineBreak}},{key:"done",get:function(){return this.limit<0}}]),e}(),R=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(c.a)(this,e),this.value="",this.done=!1,this.cursor=t.iter(),this.skip=n}return Object(l.a)(e,[{key:"next",value:function(){if(this.cursor.done)return this.done=!0,this.value="",this;for(this.value="";;){var e=this.cursor.next(this.skip),t=e.value,n=e.lineBreak,r=e.done;if(this.skip=0,r||n)return this;this.value+=t}}},{key:"lineBreak",get:function(){return!1}}]),e}(),L=function(){function e(t,n,r,i){Object(c.a)(this,e),this.from=t,this.to=n,this.number=r,this.content=i}return Object(l.a)(e,[{key:"slice",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;if(e==t)return"";if("string"==typeof this.content)return this.content.slice(e,t);this.content||(this.content=new N(this.doc,this.from));var n=this.content.slice(e,t);return 0==e&&t==this.length&&(this.content=n),n}},{key:"finish",value:function(e){return this.doc=e,this}},{key:"findClusterBreak",value:function(e,t){if(e<0||e>this.length)throw new RangeError("Invalid position given to Line.findClusterBreak");var n,r;return"string"==this.content?(n=this.from,r=this.content):(n=Math.max(0,e-256),r=this.slice(n,Math.min(this.length,n+512))),(t?p:v)(r,e-n)+n}},{key:"length",get:function(){return this.to-this.from}}]),e}(),N=function(){function e(t,n){Object(c.a)(this,e),this.doc=t,this.start=n,this.cursor=null,this.strings=null}return Object(l.a)(e,[{key:"slice",value:function(e,t){this.cursor||(this.cursor=this.doc.iter(),this.strings=[this.cursor.next(this.start).value]);for(var n="",r=0,i=0;;i++){if(i==this.strings.length){var a=this.cursor.next().value;if(!a)return n;this.strings.push(a)}var o=this.strings[i],s=r;if(!((r+=o.length)<=e)&&(n+=o.slice(Math.max(0,e-s),Math.min(o.length,t-s)),r>=t))return n}}}]),e}()},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(83);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(c){i=!0,a=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||Object(r.a)(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(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(205);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function a(e){if(e.type)return e;if("#"===e.charAt(0))return a(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function o(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e){var t="hsl"===(e=a(e)).type?a(function(e){var t=(e=a(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},l="rgb",u=[Math.round(255*c(0)),Math.round(255*c(8)),Math.round(255*c(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),o({type:l,values:u})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?f(e,t):d(e,t)}function u(e,t){return e=a(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,o(e)}function f(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function d(e,t){if(e=a(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return o(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(38);function a(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return p})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return y}));var r=n(16),i=n(15),a=n(7),o=n(4),s=n(6),c=1024,l=function(){function e(t,n){Object(o.a)(this,e),this.enter=t,this.leave=n,this.result=void 0}return Object(s.a)(e,[{key:"doEnter",value:function(e,t,n){var r=this.enter(e,t,n);return void 0===r||(!1!==r&&(this.result=r),!1)}},{key:"done",get:function(){return void 0!==this.result}}]),e}(),u=0,f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.deserialize;Object(o.a)(this,e),this.id=u++,this.deserialize=n||function(){throw new Error("This node type doesn't define a deserialize function")}}return Object(s.a)(e,[{key:"set",value:function(e,t){return e[this.id]=t,e}},{key:"add",value:function(e){return new d(this,"function"==typeof e?e:h.match(e))}}],[{key:"string",value:function(){return new e({deserialize:function(e){return e}})}},{key:"number",value:function(){return new e({deserialize:Number})}},{key:"flag",value:function(){return new e({deserialize:function(){return!0}})}}]),e}();f.error=f.flag(),f.skipped=f.flag(),f.closedBy=new f({deserialize:function(e){return e.split(" ")}}),f.openedBy=new f({deserialize:function(e){return e.split(" ")}}),f.top=f.flag();var d=function e(t,n){Object(o.a)(this,e),this.prop=t,this.f=n},h=function(){function e(t,n,r){Object(o.a)(this,e),this.name=t,this.props=n,this.id=r}return Object(s.a)(e,[{key:"prop",value:function(e){return this.props[e.id]}}],[{key:"match",value:function(e){var t=Object.create(null);for(var n in e){var r,i=Object(a.a)(n.split(" "));try{for(i.s();!(r=i.n()).done;){var o=r.value;t[o]=e[n]}}catch(s){i.e(s)}finally{i.f()}}return function(e){return t[e.name]}}}]),e}();h.none=new h("",Object.create(null),0);var p=function(){function e(t){Object(o.a)(this,e),this.types=t;for(var n=0;n<t.length;n++)if(t[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node group")}return Object(s.a)(e,[{key:"extend",value:function(){for(var t=[],n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o,s=Object(a.a)(this.types);try{for(s.s();!(o=s.n()).done;){var c,l=o.value,u=null,f=Object(a.a)(r);try{for(f.s();!(c=f.n()).done;){var d=c.value,p=d.f(l);if(void 0!==p){if(!u)for(var v in u=Object.create(null),l.props)u[v]=l.props[v];u[d.prop.id]=p}}}catch(m){f.e(m)}finally{f.f()}t.push(u?new h(l.name,u,l.id):l)}}catch(m){s.e(m)}finally{s.f()}return new e(t)}}]),e}(),v=function(){function e(){Object(o.a)(this,e)}return Object(s.a)(e,[{key:"resolve",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.resolveAt(e);if(0!=t)for(;;){var r=t<0?n.childBefore(e):n.childAfter(e);if(!r||(t<0?r.end:r.start)!=e)break;n=r}return n}},{key:"name",get:function(){return this.type.name}},{key:"depth",get:function(){for(var e=0,t=this.parent;t;t=t.parent)e++;return e}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}},{key:"firstChild",get:function(){return this.childAfter(this.start-1)}},{key:"lastChild",get:function(){return this.childBefore(this.end+1)}}]),e}(),m=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i,a){var s;return Object(o.a)(this,n),(s=t.call(this)).type=e,s.children=r,s.positions=i,s.length=a,s}return Object(s.a)(n,[{key:"toString",value:function(){var e=this.children.map((function(e){return e.toString()})).join();return this.name?(/\W/.test(this.name)&&!this.type.prop(f.error)?JSON.stringify(this.name):this.name)+(e.length?"("+e+")":""):e}},{key:"partial",value:function(e,t,r,i,a){for(var o=0;o<this.children.length;o++){var s=this.positions[o];if(s>t)break;var c=this.children[o],l=s+c.length;l<e||(e<=s&&t>=l?(i.push(c),a.push(s+r)):c instanceof n&&c.partial(e-s,t-s,r+s,i,a))}}},{key:"applyChanges",value:function(e){if(0==e.length)return this;var t=[],r=[];function i(e,t,n){var r=-1;return e.iterate({from:t,to:n<0?0:e.length,enter:function(){return r<0&&void 0},leave:function(e,i,a){r<0&&(n<0?a<=t:i>=t)&&!e.prop(f.error)&&(r=n<0?Math.min(t,a-1):Math.max(t,i+1))}}),r>-1?r:n<0?0:e.length}for(var a=0,o=0,s=0;;o++){var c=o==e.length?null:e[o],l=c?i(this,c.fromA,-1):this.length;if(l>s&&this.partial(s,l,a,t,r),!c)break;s=i(this,c.toA,1),a+=c.toB-c.fromB-(c.toA-c.fromA)}return new n(h.none,t,r,this.length+a)}},{key:"cut",value:function(e){if(e>=this.length)return this;for(var t=[],r=[],i=0;i<this.children.length;i++){var a=this.positions[i];if(a>=e)break;var o=this.children[i],s=a+o.length;t.push(s<=e?o:o.cut(e-a)),r.push(a)}return new n(this.type,t,r,e)}},{key:"iterate",value:function(e){var t=e.from,n=void 0===t?this.start:t,r=e.to,i=void 0===r?this.end:r,a=e.enter,o=e.leave,s=new l(a,o);return this.iterInner(n,i,0,s),s.result}},{key:"iterInner",value:function(e,t,n,r){if(!this.type.name||r.doEnter(this.type,n,n+this.length)){if(e<=t)for(var i=0;i<this.children.length&&!r.done;i++){var a=this.children[i],o=this.positions[i]+n,s=o+a.length;if(o>t)break;s<e||a.iterInner(e,t,o,r)}else for(var c=this.children.length-1;c>=0&&!r.done;c--){var l=this.children[c],u=this.positions[c]+n;if(u+l.length<t)break;u>e||l.iterInner(e,t,u,r)}r.leave&&this.type.name&&r.leave(this.type,n,n+this.length)}}},{key:"resolveAt",value:function(e){if(g==this)for(var t=b;;){var n=t.parent;if(!n)break;if(t.start<e&&t.end>e)return t.resolve(e);t=n}return g=this,b=this.resolveInner(e,0,this)}},{key:"childBefore",value:function(e){return this.findChild(e,-1,0,this)}},{key:"childAfter",value:function(e){return this.findChild(e,1,0,this)}},{key:"findChild",value:function(e,t,r,i){for(var a=0;a<this.children.length;a++){var o=this.positions[a]+r,s=-1;if(o>=e)if(t<0&&a>0)s=a-1;else{if(!(t>0))break;s=a}if(s<0&&(o+this.children[a].length>e||t<0&&a==this.children.length-1)&&(s=a),s>=0){var c=this.children[s],l=this.positions[s]+r;if(0==c.length&&l==e)continue;if(c instanceof n)return c.type.name?new O(c,l,i):c.findChild(e,t,l,i);var u=c.findIndex(e,t,l,0,c.buffer.length);if(u>-1)return new x(c,l,u,i)}}return null}},{key:"resolveInner",value:function(e,t,n){var r=this.findChild(e,0,t,n);return r?r.resolveAt(e):n}},{key:"append",value:function(e){if(e.children.length&&e.positions[0]<this.length)throw new Error("Can't append overlapping trees");return new n(this.type,this.children.concat(e.children),this.positions.concat(e.positions),e.length)}},{key:"balance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return this.children.length<=w?this:S(this.type,h.none,this.children,this.positions,0,this.children.length,0,e,this.length)}},{key:"start",get:function(){return 0}},{key:"end",get:function(){return this.length}}],[{key:"build",value:function(e){return j(e)}}]),n}(v);m.empty=new m(h.none,[],[],0),m.prototype.parent=null;var g=m.empty,b=m.empty,y=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.none;Object(o.a)(this,e),this.buffer=t,this.length=n,this.group=r,this.type=i}return Object(s.a)(e,[{key:"toString",value:function(){for(var e=[],t=0;t<this.buffer.length;)t=this.childToString(t,e);return e.join(",")}},{key:"childToString",value:function(e,t){var n=this.buffer[e],r=this.buffer[e+3],i=this.group.types[n],a=i.name;if(/\W/.test(a)&&!i.prop(f.error)&&(a=JSON.stringify(a)),r>(e+=4)){for(var o=[];e<r;)e=this.childToString(e,o);a+="("+o.join(",")+")"}return t.push(a),e}},{key:"cut",value:function(t){for(var n=0;n<this.buffer.length&&this.buffer[n+1]<t;)n+=4;for(var r=new Uint16Array(n),i=0;i<n;i+=4)r[i]=this.buffer[i],r[i+1]=this.buffer[i+1],r[i+2]=Math.min(t,this.buffer[i+2]),r[i+3]=Math.min(this.buffer[i+3],n);return new e(r,Math.min(t,this.length),this.group)}},{key:"iterate",value:function(e){var t=e.from,n=void 0===t?0:t,r=e.to,i=void 0===r?this.length:r,a=e.enter,o=e.leave,s=new l(a,o);return this.iterInner(n,i,0,s),s.result}},{key:"iterInner",value:function(e,t,n,r){if(e<=t)for(var i=0;i<this.buffer.length;)i=this.iterChild(e,t,n,i,r);else this.iterRev(e,t,n,0,this.buffer.length,r)}},{key:"iterChild",value:function(e,t,n,r,i){var a=this.group.types[this.buffer[r++]],o=this.buffer[r++]+n,s=this.buffer[r++]+n,c=this.buffer[r++];if(o>t)return this.buffer.length;if(s>=e&&i.doEnter(a,o,s)){for(;r<c&&!i.done;)r=this.iterChild(e,t,n,r,i);i.leave&&i.leave(a,o,s)}return c}},{key:"parentNodesByEnd",value:function(e,t){for(var n=this,r=[],i=function e(t){var i=n.buffer[t+3];if(i==t+4)return i;for(var a=t+4;a<i;)a=e(a);return r.push(t),i},a=e;a<t;)a=i(a);return r}},{key:"iterRev",value:function(e,t,n,r,i,a){var o=this,s=this.parentNodesByEnd(r,i),c=-1,l=-1,u=function(){s.length>0?(c=s.pop(),l=o.buffer[c+3]):l=-1};u();e:for(var f=i;f>r&&!a.done;){for(;l==f;){var d=c,h=this.buffer[d],p=this.buffer[d+1]+n,v=this.buffer[d+2]+n;if(u(),p<=e&&v>=t&&!a.doEnter(this.group.types[h],p,v)){for(f=d;l>d;)u();continue e}}var m=this.buffer[--f],g=this.buffer[--f]+n,b=this.buffer[--f]+n,y=this.buffer[--f];b>e||g<t||(m!=f+4||a.doEnter(this.group.types[y],b,g))&&a.leave&&a.leave(this.group.types[y],b,g)}}},{key:"findIndex",value:function(e,t,n,r,i){for(var a=-1,o=r,s=this.buffer;o<i;){var c=s[o+1]+n,l=s[o+2]+n,u=c==l&&c==e;if(c>=e){if(t>0&&!u)return o;break}if(l>e)return o;u||(a=o),o=s[o+3]}return t<0?a:-1}}]),e}(),O=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i){var a;return Object(o.a)(this,n),(a=t.call(this)).node=e,a.start=r,a.parent=i,a}return Object(s.a)(n,[{key:"resolveAt",value:function(e){return e<=this.start||e>=this.end?this.parent.resolveAt(e):this.node.resolveInner(e,this.start,this)}},{key:"childBefore",value:function(e){return this.node.findChild(e,-1,this.start,this)}},{key:"childAfter",value:function(e){return this.node.findChild(e,1,this.start,this)}},{key:"toString",value:function(){return this.node.toString()}},{key:"iterate",value:function(e){var t=e.from,n=void 0===t?this.start:t,r=e.to,i=void 0===r?this.end:r,a=e.enter,o=e.leave,s=new l(a,o);return this.node.iterInner(n,i,this.start,s),s.result}},{key:"type",get:function(){return this.node.type}},{key:"end",get:function(){return this.start+this.node.length}}]),n}(v),x=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e,r,i,a){var s;return Object(o.a)(this,n),(s=t.call(this)).buffer=e,s.bufferStart=r,s.index=i,s.parent=a,s}return Object(s.a)(n,[{key:"childBefore",value:function(e){var t=this.buffer.findIndex(e,-1,this.bufferStart,this.index+4,this.endIndex);return t<0?null:new n(this.buffer,this.bufferStart,t,this)}},{key:"childAfter",value:function(e){var t=this.buffer.findIndex(e,1,this.bufferStart,this.index+4,this.endIndex);return t<0?null:new n(this.buffer,this.bufferStart,t,this)}},{key:"iterate",value:function(e){var t=e.from,n=void 0===t?this.start:t,r=e.to,i=void 0===r?this.end:r,a=e.enter,o=e.leave,s=new l(a,o);return n<=i?this.buffer.iterChild(n,i,this.bufferStart,this.index,s):this.buffer.iterRev(n,i,this.bufferStart,this.index,this.endIndex,s),s.result}},{key:"resolveAt",value:function(e){if(e<=this.start||e>=this.end)return this.parent.resolveAt(e);var t=this.buffer.findIndex(e,0,this.bufferStart,this.index+4,this.endIndex);return t<0?this:new n(this.buffer,this.bufferStart,t,this).resolveAt(e)}},{key:"toString",value:function(){var e=[];return this.buffer.childToString(this.index,e),e.join("")}},{key:"type",get:function(){return this.buffer.group.types[this.buffer.buffer[this.index]]}},{key:"start",get:function(){return this.buffer.buffer[this.index+1]+this.bufferStart}},{key:"end",get:function(){return this.buffer.buffer[this.index+2]+this.bufferStart}},{key:"endIndex",get:function(){return this.buffer.buffer[this.index+3]}}]),n}(v),k=function(){function e(t,n){Object(o.a)(this,e),this.buffer=t,this.index=n}return Object(s.a)(e,[{key:"next",value:function(){this.index-=4}},{key:"fork",value:function(){return new e(this.buffer,this.index)}},{key:"id",get:function(){return this.buffer[this.index-4]}},{key:"start",get:function(){return this.buffer[this.index-3]}},{key:"end",get:function(){return this.buffer[this.index-2]}},{key:"size",get:function(){return this.buffer[this.index-1]}},{key:"pos",get:function(){return this.index}}]),e}(),w=8;function j(e){var t=e.buffer,n=e.group,r=e.topID,i=void 0===r?0:r,a=e.maxBufferLength,o=void 0===a?c:a,s=e.reused,l=void 0===s?[]:s,u=e.minRepeatType,f=void 0===u?n.types.length:u,d=Array.isArray(t)?new k(t,t.length):t,p=n.types;function v(e,t,r,i,a){for(var s=d.id,c=d.start,u=d.end,b=d.size;s==a;)d.next(),s=d.id,c=d.start,u=d.end,b=d.size;var O=c-e;if(b<0)return r.push(l[s]),i.push(O),void d.next();var x,k,j=p[s];if(u-c<=o&&(k=function(e,t){var n=d.fork(),r=0,i=0,a=0,s=n.end-o,c={size:0,start:0,skip:0};e:for(var l=n.pos-e;n.pos>l;)if(n.id!=t){var u=n.size,h=n.pos-u;if(u<0||h<l||n.start<s)break;var p=n.id>=f?4:0,v=n.start;for(n.next();n.pos>h;){if(n.size<0)break e;n.id>=f&&(p+=4),n.next()}i=v,r+=u,a+=p}else c.size=r,c.start=i,c.skip=a,a+=4,r+=4,n.next();(t<0||r==e)&&(c.size=r,c.start=i,c.skip=a);return c.size>4?c:void 0}(d.pos-t,a))){for(var C=new Uint16Array(k.size-k.skip),E=d.pos-k.size,M=C.length;d.pos>E;)M=g(k.start,C,M,a);x=new y(C,u-k.start,n,a<0?h.none:p[a]),O=k.start-e}else{var P=d.pos-b;d.next();for(var T=[],_=[],D=s>=f?s:-1;d.pos>P;)v(c,P,T,_,D);T.reverse(),_.reverse(),x=D>-1&&T.length>w?S(j,j,T,_,0,T.length,0,o,u-c):new m(j,T,_,u-c)}r.push(x),i.push(O)}function g(e,t,n,r){var i=d.id,a=d.start,o=d.end,s=d.size;if(d.next(),i==r)return n;var c=n;if(s>4)for(var l=d.pos-(s-4);d.pos>l;)n=g(e,t,n,r);return i<f&&(t[--n]=c,t[--n]=o-e,t[--n]=a-e,t[--n]=i),n}for(var b=[],O=[];d.pos>0;)v(0,0,b,O,-1);var x=b.length?O[0]+b[0].length:0;return new m(n.types[i],b.reverse(),O.reverse(),x)}function S(e,t,n,r,i,a,o,s,c){var l=[],u=[];if(c<=s)for(var f=i;f<a;f++)l.push(n[f]),u.push(r[f]-o);else for(var d=Math.max(s,Math.ceil(1.5*c/w)),p=i;p<a;){var v=p,g=r[p];for(p++;p<a;p++){if(r[p]+n[p].length-g>d)break}if(p==v+1){var b=n[v];if(b instanceof m&&b.type==t&&b.length>d<<1){for(var y=0;y<b.children.length;y++)l.push(b.children[y]),u.push(b.positions[y]+g-o);continue}l.push(b)}else if(p==v+1)l.push(n[v]);else{var O=S(t,t,n,r,v,p,g,s,r[p-1]+n[p-1].length-g);t==h.none||C(O.children,t)||(O=new m(h.none,O.children,O.positions,O.length)),l.push(O)}u.push(g-o)}return new m(e,l,u,c)}function C(e,t){var n,r=Object(a.a)(e);try{for(r.s();!(n=r.n()).done;){if(n.value.type==t)return!0}}catch(i){r.e(i)}finally{r.f()}return!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(92);var i=n(83);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(226)},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(107);var i=n(84),a=n(108);function o(e,t){return Object(r.a)(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(c){i=!0,a=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}(e,t)||Object(i.a)(e,t)||Object(a.a)()}},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(27);function i(e,t,n){return(i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function a(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"d",(function(){return s}));var r=n(7),i=n(4),a=n(6),o=n(5),s=function(){function e(){Object(i.a)(this,e)}return Object(a.a)(e,[{key:"eq",value:function(e){return this==e}},{key:"range",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new c(e,t,this)}}]),e}();s.prototype.startSide=s.prototype.endSide=0,s.prototype.point=!1,s.prototype.mapMode=o.h.TrackDel;var c=function e(t,n,r){Object(i.a)(this,e),this.from=t,this.to=n,this.value=r};function l(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}var u=500,f=1e9,d=function(){function e(t,n,r,a){Object(i.a)(this,e),this.from=t,this.to=n,this.value=r,this.maxPoint=a}return Object(a.a)(e,[{key:"findIndex",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t*f,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;if(e<=0)return r;for(var i=t<0?this.to:this.from,a=r,o=i.length;;){if(a==o)return a;var s=a+o>>1,c=i[s]-e||(t<0?this.value[s].startSide:this.value[s].endSide)-n;if(s==a)return c>=0?a:o;c>=0?o=s:a=s+1}}},{key:"between",value:function(e,t,n,r){for(var i=this.findIndex(t,-1),a=this.findIndex(n,1,void 0,i);i<a;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}},{key:"map",value:function(t,n){for(var r=[],i=[],a=[],o=-1,s=-1,c=0;c<this.value.length;c++){var l=this.value[c],u=this.from[c]+t,f=this.to[c]+t,d=void 0,h=void 0;if(u==f){var p=n.mapPos(u,l.startSide,l.mapMode);if(p<0)continue;d=h=p}else if((d=n.mapPos(u,l.startSide))>(h=n.mapPos(f,l.endSide))||d==h&&l.startSide>0&&l.endSide<=0)continue;(h-d||l.endSide-l.startSide)<0||(o<0&&(o=d),l.point&&(s=Math.max(s,h-d)),r.push(l),i.push(d-o),a.push(h-o))}return{mapped:r.length?new e(i,a,r,s):null,pos:o}}},{key:"length",get:function(){return this.to[this.to.length-1]}}]),e}(),h=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.empty,a=arguments.length>3?arguments[3]:void 0;Object(i.a)(this,e),this.chunkPos=t,this.chunk=n,this.nextLayer=r,this.maxPoint=a}return Object(a.a)(e,[{key:"chunkEnd",value:function(e){return this.chunkPos[e]+this.chunk[e].length}},{key:"update",value:function(t){var n=t.add,r=void 0===n?[]:n,i=t.sort,a=void 0!==i&&i,o=t.filter,s=t.filterFrom,u=void 0===s?0:s,f=t.filterTo,d=void 0===f?this.length:f;if(0==r.length&&!o)return this;if(a&&r.slice().sort(l),this==e.empty)return r.length?e.of(r):this;for(var h=new v(this,null,-1).goto(0),m=0,g=[],b=new p;h.value||m<r.length;)if(m<r.length&&(h.from-r[m].from||h.startSide-r[m].value.startSide)>=0){var y=r[m++];b.addInner(y.from,y.to,y.value)||g.push(y)}else 1==h.rangeIndex&&h.chunkIndex<this.chunk.length&&(m==r.length||this.chunkEnd(h.chunkIndex)<r[m].from)&&(!o||u>this.chunkEnd(h.chunkIndex)||d<this.chunkPos[h.chunkIndex])&&b.addChunk(this.chunkPos[h.chunkIndex],this.chunk[h.chunkIndex])?h.nextChunk():((!o||u>h.to||d<h.from||o(h.from,h.to,h.value))&&(b.addInner(h.from,h.to,h.value)||g.push(new c(h.from,h.to,h.value))),h.next());return b.finishInner(this.nextLayer!=e.empty||g.length?this.nextLayer.update({add:g,filter:o,filterFrom:u,filterTo:d}):e.empty)}},{key:"map",value:function(t){if(0==t.length||this==e.empty)return this;for(var n=[],r=[],i=-1,a=0;a<this.chunk.length;a++){var o=this.chunkPos[a],s=this.chunk[a],c=t.touchesRange(o,o+s.length);if(!1===c)i=Math.max(i,s.maxPoint),n.push(s),r.push(t.mapPos(o));else if(!0===c){var l=s.map(o,t),u=l.mapped,f=l.pos;u&&(i=Math.max(i,u.maxPoint),n.push(u),r.push(f))}}var d=this.nextLayer.map(t);return 0==n.length?d:new e(r,n,d,i)}},{key:"between",value:function(t,n,r){if(this!=e.empty){for(var i=0;i<this.chunk.length;i++){var a=this.chunkPos[i],o=this.chunk[i];if(n>=a&&t<=a+o.length&&!1===o.between(a,t-a,n-a,r))return}this.nextLayer.between(t,n,r)}}},{key:"iter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return m.from([this]).goto(e)}},{key:"length",get:function(){var e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}},{key:"size",get:function(){if(this==e.empty)return 0;var t,n=this.nextLayer.size,i=Object(r.a)(this.chunk);try{for(i.s();!(t=i.n()).done;){n+=t.value.value.length}}catch(a){i.e(a)}finally{i.f()}return n}}],[{key:"iter",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return m.from(e).goto(t)}},{key:"compare",value:function(t,n,i,a){var o,s=null!==(o=a.minPointSize)&&void 0!==o?o:-1,c=t.filter((function(t){return t.maxPoint>=500||t!=e.empty&&n.indexOf(t)<0&&t.maxPoint>=s})),l=n.filter((function(n){return n.maxPoint>=500||n!=e.empty&&t.indexOf(n)<0&&n.maxPoint>=s})),f=function(e,t){var n,i=new Map,a=Object(r.a)(e);try{for(a.s();!(n=a.n()).done;)for(var o=n.value,s=0;s<o.chunk.length;s++)o.chunk[s].maxPoint<u&&i.set(o.chunk[s],o.chunkPos[s])}catch(p){a.e(p)}finally{a.f()}var c,l=new Set,f=Object(r.a)(t);try{for(f.s();!(c=f.n()).done;)for(var d=c.value,h=0;h<d.chunk.length;h++)i.get(d.chunk[h])==d.chunkPos[h]&&l.add(d.chunk[h])}catch(p){f.e(p)}finally{f.f()}return l}(c,l),d=new b(c,f,s),h=new b(l,f,s);i.iterGaps((function(e,t,n){return y(d,e,h,t,n,a)})),i.empty&&0==i.length&&y(d,0,h,0,0,a)}},{key:"spans",value:function(e,t,n,r){for(var i,a=new b(e,null,null!==(i=r.minPointSize)&&void 0!==i?i:-1).goto(t),o=t,s=a.openStart;;){var c=Math.min(a.to,n);if(a.point?(r.point(o,c,a.point,a.activeForPoint(a.to),s),s=a.openEnd(c)+(a.to>c?1:0)):c>o&&(r.span(o,c,a.active,s),s=a.openEnd(c)),a.to>n)break;o=a.to,a.next()}return s}},{key:"of",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=new p,a=Object(r.a)(e instanceof c?[e]:n?e.slice().sort(l):e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i.add(o.from,o.to,o.value)}}catch(s){a.e(s)}finally{a.f()}return i.finish()}}]),e}();h.empty=new h([],[],null,-1),h.empty.nextLayer=h.empty;var p=function(){function e(){Object(i.a)(this,e),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-f,this.lastTo=-f,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return Object(a.a)(e,[{key:"finishChunk",value:function(e){this.chunks.push(new d(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(t,n,r){this.addInner(t,n,r)||(this.nextLayer||(this.nextLayer=new e)).add(t,n,r)}},{key:"addInner",value:function(e,t,n){var r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}},{key:"addChunk",value:function(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);var n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}},{key:"finish",value:function(){return this.finishInner(h.empty)}},{key:"finishInner",value:function(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;var t=new h(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}]),e}();var v=function(){function e(t,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;Object(i.a)(this,e),this.layer=t,this.skip=n,this.minPoint=r,this.rank=a}return Object(a.a)(e,[{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-f;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}},{key:"gotoInner",value:function(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){var r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}var i=this.chunkIndex==this.layer.chunk.length?0:this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],-1,t);(!n||this.rangeIndex<i)&&(this.rangeIndex=i),this.next()}},{key:"forward",value:function(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}},{key:"next",value:function(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=f,this.value=null;break}var e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],++this.rangeIndex==t.value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}if(this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}},{key:"nextChunk",value:function(){this.chunkIndex++,this.rangeIndex=0,this.next()}},{key:"compare",value:function(e){return this.from-e.from||this.startSide-e.startSide||this.to-e.to||this.endSide-e.endSide}},{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}}]),e}(),m=function(){function e(t){Object(i.a)(this,e),this.heap=t}return Object(a.a)(e,[{key:"goto",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-f,i=Object(r.a)(this.heap);try{for(i.s();!(t=i.n()).done;){var a=t.value;a.goto(e,n)}}catch(s){i.e(s)}finally{i.f()}for(var o=this.heap.length>>1;o>=0;o--)g(this.heap,o);return this.next(),this}},{key:"forward",value:function(e,t){var n,i=Object(r.a)(this.heap);try{for(i.s();!(n=i.n()).done;){n.value.forward(e,t)}}catch(o){i.e(o)}finally{i.f()}for(var a=this.heap.length>>1;a>=0;a--)g(this.heap,a);(this.to-e||this.value.endSide-t)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=f,this.value=null,this.rank=-1;else{var e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),g(this.heap,0)}}},{key:"startSide",get:function(){return this.value?this.value.startSide:0}}],[{key:"from",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],a=0;a<t.length;a++)for(var o=t[a];o!=h.empty;o=o.nextLayer)o.maxPoint>=r&&i.push(new v(o,n,r,a));return 1==i.length?i[0]:new e(i)}}]),e}();function g(e,t){for(var n=e[t];;){var r=1+(t<<1);if(r>=e.length)break;var i=e[r];if(r+1<e.length&&i.compare(e[r+1])>=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}var b=function(){function e(t,n,r){Object(i.a)(this,e),this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-f,this.endSide=0,this.openStart=-1,this.cursor=m.from(t,n,r)}return Object(a.a)(e,[{key:"goto",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-f;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}},{key:"forward",value:function(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}},{key:"removeActive",value:function(e){x(this.active,e),x(this.activeTo,e),x(this.activeRank,e),this.minActive=w(this.active,this.activeTo)}},{key:"addActive",value:function(e){for(var t=0,n=this.cursor,r=n.value,i=n.to,a=n.rank;t<this.activeRank.length&&this.activeRank[t]<=a;)t++;k(this.active,t,r),k(this.activeTo,t,i),k(this.activeRank,t,a),e&&k(e,t,this.cursor.from),this.minActive=w(this.active,this.activeTo)}},{key:"next",value:function(){var e=this.to;this.point=null;for(var t=this.openStart<0?[]:null,n=0;;){var r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),t&&x(t,r)}else{if(!this.cursor.value){this.to=this.endSide=f;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var i=this.cursor.value;if(i.point){this.point=i,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=i.endSide,this.cursor.from<e&&(n=1),this.cursor.next(),this.to>e&&this.forward(this.to,this.endSide);break}this.addActive(t),this.cursor.next()}}if(t){for(var a=0;a<t.length&&t[a]<e;)a++;this.openStart=a+n}}},{key:"activeForPoint",value:function(e){if(!this.active.length)return this.active;for(var t=[],n=0;n<this.active.length&&!(this.activeRank[n]>this.pointRank);n++)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>this.point.endSide)&&t.push(this.active[n]);return t}},{key:"openEnd",value:function(e){for(var t=0;t<this.activeTo.length&&this.activeTo[t]>e;)t++;return t}}]),e}();function y(e,t,n,r,i,a){e.goto(t),n.goto(r);for(var o=r+i,s=r,c=r-t;;){var l=e.to+c-n.to||e.endSide-n.endSide,u=l<0?e.to+c:n.to,f=Math.min(u,o);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))||a.comparePoint(s,f,e.point,n.point):f>s&&!O(e.active,n.active)&&a.compareRange(s,f,e.active,n.active),u>o)break;s=u,l<=0&&e.next(),l>=0&&n.next()}}function O(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function x(e,t){for(var n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function k(e,t,n){for(var r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function w(e,t){for(var n=-1,r=f,i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o}));var r=n(0),i=(n(12),Object(r.createContext)(null)),a=function(e){var t=e.utils,n=e.children,a=e.locale,o=e.libInstance,s=Object(r.useMemo)((function(){return new t({locale:a,instance:o})}),[t,o,a]);return Object(r.createElement)(i.Provider,{value:s,children:n})};function o(){var e=Object(r.useContext)(i);return function(e){if(!e)throw new Error("Can not find utils in context. You either a) forgot to wrap your component tree in MuiPickersUtilsProvider; or b) mixed named and direct file imports. Recommendation: use named imports from the module index.")}(e),e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(4),i=n(6),a=n(7),o=n(10),s=n(5),c=s.f.define({combine:function(e){var t,n,r,i=Object(a.a)(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;t=t||o.topContainer,n=n||o.bottomContainer}}catch(s){i.e(s)}finally{i.f()}return{topContainer:t,bottomContainer:n}}});function l(e){var t=[d,m];return e&&t.push(c.of(e)),t}var u=s.f.define();function f(e,t){var n=e.plugin(d),r=e.state.facet(u).indexOf(t);return n&&r>-1?n.panels[r]:null}var d=o.f.fromClass(function(){function e(t){Object(r.a)(this,e),this.specs=t.state.facet(u),this.panels=this.specs.map((function(e){return e(t)}));var n=t.state.facet(c);this.top=new p(t,!0,n.topContainer),this.bottom=new p(t,!1,n.bottomContainer),this.top.sync(this.panels.filter((function(e){return e.top}))),this.bottom.sync(this.panels.filter((function(e){return!e.top})));var i,o=Object(a.a)(this.panels);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.dom.className+=" "+h(s),s.mount&&s.mount()}}catch(l){o.e(l)}finally{o.f()}}return Object(i.a)(e,[{key:"update",value:function(e){var t=e.state.facet(c);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new p(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new p(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var n=e.state.facet(u);if(n!=this.specs){var r,i=[],o=[],s=[],l=[],f=Object(a.a)(n);try{for(f.s();!(r=f.n()).done;){var d=r.value,v=this.specs.indexOf(d),m=void 0;v<0?(m=d(e.view),l.push(m)):(m=this.panels[v]).update&&m.update(e),i.push(m),(m.top?o:s).push(m)}}catch(w){f.e(w)}finally{f.f()}this.specs=n,this.panels=i,this.top.sync(o),this.bottom.sync(s);for(var g=0,b=l;g<b.length;g++){var y=b[g];y.dom.className+=" "+h(y),y.mount&&y.mount()}}else{var O,x=Object(a.a)(this.panels);try{for(x.s();!(O=x.n()).done;){var k=O.value;k.update&&k.update(e)}}catch(w){x.e(w)}finally{x.f()}}}},{key:"destroy",value:function(){this.top.sync([]),this.bottom.sync([])}}]),e}(),{provide:o.e.scrollMargins.from((function(e){return{top:e.top.scrollMargin(),bottom:e.bottom.scrollMargin()}}))});function h(e){return Object(o.n)(e.style?"panel.".concat(e.style):"panel")}var p=function(){function e(t,n,i){Object(r.a)(this,e),this.view=t,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}return Object(i.a)(e,[{key:"sync",value:function(e){this.panels=e,this.syncDOM()}},{key:"syncDOM",value:function(){if(0!=this.panels.length){if(!this.dom){this.dom=document.createElement("div"),this.dom.className=Object(o.n)(this.top?"panels.top":"panels.bottom"),this.dom.style[this.top?"top":"bottom"]="0";var e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}var t,n=this.dom.firstChild,r=Object(a.a)(this.panels);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.dom.parentNode==this.dom){for(;n!=i.dom;)n=v(n);n=n.nextSibling}else this.dom.insertBefore(i.dom,n)}}catch(s){r.e(s)}finally{r.f()}for(;n;)n=v(n)}else this.dom&&(this.dom.remove(),this.dom=void 0)}},{key:"scrollMargin",value:function(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-this.view.scrollDOM.getBoundingClientRect().top:this.view.scrollDOM.getBoundingClientRect().bottom-this.dom.getBoundingClientRect().top)}},{key:"syncClasses",value:function(){if(this.container&&this.classes!=this.view.themeClasses){var e,t=Object(a.a)(this.classes.split(" "));try{for(t.s();!(e=t.n()).done;){var n=e.value;n&&this.container.classList.remove(n)}}catch(s){t.e(s)}finally{t.f()}var r,i=Object(a.a)((this.classes=this.view.themeClasses).split(" "));try{for(i.s();!(r=i.n()).done;){var o=r.value;o&&this.container.classList.add(o)}}catch(s){i.e(s)}finally{i.f()}}}}]),e}();function v(e){var t=e.nextSibling;return e.remove(),t}var m=o.d.baseTheme({$panels:{boxSizing:"border-box",position:"sticky",left:0,right:0},"$$light $panels":{backgroundColor:"#f5f5f5",color:"black"},"$$light $panels.top":{borderBottom:"1px solid #ddd"},"$$light $panels.bottom":{borderTop:"1px solid #ddd"},"$$dark $panels":{backgroundColor:"#333338",color:"white"}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(0),a=n.n(i),o=n(207);function s(e,t){var n=function(t,n){return a.a.createElement(o.a,Object(r.a)({ref:n},t),e)};return n.muiName=o.a.muiName,a.a.memo(a.a.forwardRef(n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(204),i=(n(0),n(69));function a(){return Object(r.a)()||i.a}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(59);function a(){return r.useContext(i.a)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(8),i={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}t.a={easing:i,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,s=void 0===n?a.standard:n,c=t.easing,l=void 0===c?i.easeInOut:c,u=t.delay,f=void 0===u?0:u;Object(r.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:o(s)," ").concat(l," ").concat("string"===typeof f?f:o(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}}},function(e,t,n){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",f="year",d="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},b={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(i,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:f,w:c,d:s,D:d,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",O={};O[y]=m;var x=function(e){return e instanceof S},k=function(e,t,n){var r;if(!e)return y;if("string"==typeof e)O[e]&&(r=e),t&&(O[e]=t,r=e);else{var i=e.name;O[i]=e,r=i}return!n&&r&&(y=r),r||!n&&y},w=function(e,t){if(x(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},j=b;j.l=k,j.i=x,j.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function m(e){this.$L=k(e.locale,null,!0),this.parse(e)}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(j.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var i=r[2]-1||0,a=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return j},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return w(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<w(e)},g.$g=function(e,t,n){return j.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,r=!!j.u(t)||t,u=j.p(e),h=function(e,t){var i=j.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},p=function(e,t){return j.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,m=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case f:return r?h(1,0):h(31,11);case l:return r?h(1,m):h(0,m+1);case c:var y=this.$locale().weekStart||0,O=(v<y?v+7:v)-y;return h(r?g-O:g+(6-O),m);case s:case d:return p(b+"Hours",0);case o:return p(b+"Minutes",1);case a:return p(b+"Seconds",2);case i:return p(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var n,c=j.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[s]=u+"Date",n[d]=u+"Date",n[l]=u+"Month",n[f]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[c],p=c===s?this.$D+(t-this.$W):t;if(c===l||c===f){var v=this.clone().set(d,1);v.$d[h](p),v.init(),this.$d=v.set(d,Math.min(this.$D,v.daysInMonth())).$d}else h&&this.$d[h](p);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[j.p(e)]()},g.add=function(r,u){var d,h=this;r=Number(r);var p=j.p(u),v=function(e){var t=w(h);return j.w(t.date(t.date()+Math.round(e*r)),h)};if(p===l)return this.set(l,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return v(1);if(p===c)return v(7);var m=(d={},d[a]=t,d[o]=n,d[i]=e,d)[p]||1,g=this.$d.getTime()+r*m;return j.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=j.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=function(e,n,i,a){return e&&(e[n]||e(t,r))||i[n].substr(0,a)},f=function(e){return j.s(a%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},p={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:j.s(s+1,2,"0"),MMM:u(n.monthsShort,s,l,3),MMMM:u(l,s),D:this.$D,DD:j.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,c,2),ddd:u(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(a),HH:j.s(a,2,"0"),h:f(1),hh:f(2),a:d(a,o,!0),A:d(a,o,!1),m:String(o),mm:j.s(o,2,"0"),s:String(this.$s),ss:j.s(this.$s,2,"0"),SSS:j.s(this.$ms,3,"0"),Z:i};return r.replace(v,(function(e,t){return t||p[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(r,d,h){var p,v=j.p(d),m=w(r),g=(m.utcOffset()-this.utcOffset())*t,b=this-m,y=j.m(this,m);return y=(p={},p[f]=y/12,p[l]=y,p[u]=y/3,p[c]=(b-g)/6048e5,p[s]=(b-g)/864e5,p[o]=b/n,p[a]=b/t,p[i]=b/e,p)[v]||b,h?y:j.a(y)},g.daysInMonth=function(){return this.endOf(l).$D},g.$locale=function(){return O[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return j.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),C=S.prototype;return w.prototype=C,[["$ms",r],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",f],["$D",d]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||(e(t,S,w),e.$i=!0),w},w.locale=k,w.isDayjs=x,w.unix=function(e){return w(1e3*e)},w.en=O[y],w.Ls=O,w.p={},w}()},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return yt})),n.d(t,"b",(function(){return Z})),n.d(t,"d",(function(){return cr}));var r=n(14),i=n(60),a=n(30),o=n(27),s=n(16),c=n(15),l=n(20),u=n(13),f=n(7),d=n(25),h=n(4),p=n(6),v=n(1);n.d(t,"c",(function(){return v.xb}));var m=new(function(){function e(){Object(h.a)(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Object(p.a)(e,[{key:"_notify",value:function(e,t,n,r){var i=t.listeners[r],a=t.duration;i.forEach((function(r){return r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)})}))}},{key:"_refresh",value:function(){var e=this;e._request||(e._running=!0,e._request=v.Lb.call(window,(function(){e._update(),e._request=null,e._running&&e._refresh()})))}},{key:"_update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),t=this,n=0;t._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,c=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(e),c=!0):(o[s]=o[o.length-1],o.pop());c&&(i.draw(),t._notify(i,r,e,"progress")),o.length||(r.running=!1,t._notify(i,r,e,"complete"),r.initial=!1),n+=o.length}})),t._lastDate=e,0===n&&(t._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,Object(d.a)(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}()),g="transparent",b={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=Object(v.wb)(e||g),i=r.valid&&Object(v.wb)(t||g);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},y=function(){function e(t,n,r,i){Object(h.a)(this,e);var a=n[r];i=Object(v.C)([t.to,i,a,t.from]);var o=Object(v.C)([t.from,a,i]);this._active=!0,this._fn=t.fn||b[t.type||typeof o],this._easing=v.yb[t.easing]||v.yb.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}return Object(p.a)(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){var r=this;if(r._active){r._notify(!1);var i=r._target[r._prop],a=n-r._start,o=r._duration-a;r._start=n,r._duration=Math.floor(Math.max(o,e.duration)),r._total+=a,r._loop=!!e.loop,r._to=Object(v.C)([e.to,t,i,e.from]),r._from=Object(v.C)([e.from,i,t])}}},{key:"cancel",value:function(){var e=this;e._active&&(e.tick(Date.now()),e._active=!1,e._notify(!1))}},{key:"tick",value:function(e){var t,n=this,r=e-n._start,i=n._duration,a=n._prop,o=n._from,s=n._loop,c=n._to;if(n._active=o!==c&&(s||r<i),!n._active)return n._target[a]=c,void n._notify(!0);r<0?n._target[a]=o:(t=r/i%2,t=s&&t>1?2-t:t,t=n._easing(Math.min(1,Math.max(0,t))),n._target[a]=n._fn(o,c,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}();v.xb.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});var O=Object.keys(v.xb.animation);v.xb.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),v.xb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),v.xb.describe("animations",{_fallback:"animation"}),v.xb.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:function(e){return 0|e}}}}});var x=function(){function e(t,n){Object(h.a)(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return Object(p.a)(e,[{key:"configure",value:function(e){if(Object(v.Cb)(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];if(Object(v.Cb)(r)){var i,a={},o=Object(f.a)(O);try{for(o.s();!(i=o.n()).done;){var s=i.value;a[s]=r[s]}}catch(c){o.e(c)}finally{o.f()}(Object(v.vb)(r.properties)&&r.properties||[n]).forEach((function(e){e!==n&&t.has(e)||t.set(e,a)}))}}))}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(e.options.$animations,n).then((function(){e.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,i=[],a=e.$animations||(e.$animations={}),o=Object.keys(t),s=Date.now();for(n=o.length-1;n>=0;--n){var c=o[n];if("$"!==c.charAt(0))if("options"!==c){var l=t[c],u=a[c],f=r.get(c);if(u){if(f&&u.active()){u.update(f,l,s);continue}u.cancel()}f&&f.duration?(a[c]=u=new y(f,e,c,l),i.push(u)):e[c]=l}else i.push.apply(i,Object(d.a)(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(m.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function k(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:i,end:r?i:a}}function w(e,t){var n,r,i=[],a=e._getSortedDatasetMetas(t);for(n=0,r=a.length;n<r;++n)i.push(a[n].index);return i}function j(e,t,n,r){var i,a,o,s,c=e.keys,l="single"===r.mode;if(null!==t){for(i=0,a=c.length;i<a;++i){if((o=+c[i])===n){if(r.all)continue;break}s=e.values[o],Object(v.Ab)(s)&&(l||0===t||Object(v.Mb)(t)===Object(v.Mb)(s))&&(t+=s)}return t}}function S(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function C(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function E(e,t,n){var r,i=Object(f.a)(t.getMatchingVisibleMetas("bar").reverse());try{for(i.s();!(r=i.n()).done;){var a=r.value,o=e[a.index];if(n&&o>0||!n&&o<0)return a.index}}catch(s){i.e(s)}finally{i.f()}return null}function M(e,t){for(var n,r=e.chart,i=e._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,c=i.index,l=o.axis,u=s.axis,f=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,s,i),d=t.length,h=0;h<d;++h){var p=t[h],v=p[l],m=p[u];(n=(p._stacks||(p._stacks={}))[u]=C(a,f,v))[c]=m,n._top=E(n,s,!0),n._bottom=E(n,s,!1)}}function P(e,t){var n=e.scales;return Object.keys(n).filter((function(e){return n[e].axis===t})).shift()}function T(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;var i,a=Object(f.a)(t);try{for(a.s();!(i=a.n()).done;){var o=i.value._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n]}}catch(s){a.e(s)}finally{a.f()}}}var _=function(e){return"reset"===e||"none"===e},D=function(e,t){return t?e:Object.assign({},e)},A=function(){function e(t,n){Object(h.a)(this,e),this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.$context=void 0,this._syncList=[],this.initialize()}return Object(p.a)(e,[{key:"initialize",value:function(){var e=this,t=e._cachedMeta;e.configure(),e.linkScales(),t._stacked=S(t.vScale,t),e.addElements()}},{key:"updateIndex",value:function(e){this.index!==e&&T(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this,t=e.chart,n=e._cachedMeta,r=e.getDataset(),i=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},a=n.xAxisID=Object(v.Pb)(r.xAxisID,P(t,"x")),o=n.yAxisID=Object(v.Pb)(r.yAxisID,P(t,"y")),s=n.rAxisID=Object(v.Pb)(r.rAxisID,P(t,"r")),c=n.indexAxis,l=n.iAxisID=i(c,a,o,s),u=n.vAxisID=i(c,o,a,s);n.xScale=e.getScaleForId(a),n.yScale=e.getScaleForId(o),n.rScale=e.getScaleForId(s),n.iScale=e.getScaleForId(l),n.vScale=e.getScaleForId(u)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&Object(v.Ob)(this._data,this),e._stacked&&T(e)}},{key:"_dataCheck",value:function(){var e=this,t=e.getDataset(),n=t.data||(t.data=[]),r=e._data;if(Object(v.Cb)(n))e._data=function(e){var t,n,r,i=Object.keys(e),a=new Array(i.length);for(t=0,n=i.length;t<n;++t)r=i[t],a[t]={x:r,y:e[r]};return a}(n);else if(r!==n){if(r){Object(v.Ob)(r,e);var i=e._cachedMeta;T(i),i._parsed=[]}n&&Object.isExtensible(n)&&Object(v.Fb)(n,e),e._syncList=[],e._data=n}}},{key:"addElements",value:function(){var e=this,t=e._cachedMeta;e._dataCheck(),e.datasetElementType&&(t.dataset=new e.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this,n=t._cachedMeta,r=t.getDataset(),i=!1;t._dataCheck();var a=n._stacked;n._stacked=S(n.vScale,n),n.stack!==r.stack&&(i=!0,T(n),n.stack=r.stack),t._resyncElements(e),(i||a!==n._stacked)&&M(t,n._parsed)}},{key:"configure",value:function(){var e=this,t=e.chart.config,n=t.datasetScopeKeys(e._type),r=t.getOptionScopes(e.getDataset(),n,!0);e.options=t.createResolver(r,e.getContext()),e._parsing=e.options.parsing}},{key:"parse",value:function(e,t){var n,r,i,a=this,o=a._cachedMeta,s=a._data,c=o.iScale,l=o._stacked,u=c.axis,f=0===e&&t===s.length||o._sorted,d=e>0&&o._parsed[e-1];if(!1===a._parsing)o._parsed=s,o._sorted=!0,i=s;else{i=Object(v.vb)(s[e])?a.parseArrayData(o,s,e,t):Object(v.Cb)(s[e])?a.parseObjectData(o,s,e,t):a.parsePrimitiveData(o,s,e,t);for(n=0;n<t;++n)o._parsed[n+e]=r=i[n],f&&((null===r[u]||d&&r[u]<d[u])&&(f=!1),d=r);o._sorted=f}l&&M(a,i)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var i,a,o,s=e.iScale,c=e.vScale,l=s.axis,f=c.axis,d=s.getLabels(),h=s===c,p=new Array(r);for(i=0,a=r;i<a;++i){var v;o=i+n,p[i]=(v={},Object(u.a)(v,l,h||s.parse(d[o],o)),Object(u.a)(v,f,c.parse(t[o],o)),v)}return p}},{key:"parseArrayData",value:function(e,t,n,r){var i,a,o,s,c=e.xScale,l=e.yScale,u=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],u[i]={x:c.parse(s[0],o),y:l.parse(s[1],o)};return u}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,c=e.xScale,l=e.yScale,u=this._parsing,f=u.xAxisKey,d=void 0===f?"x":f,h=u.yAxisKey,p=void 0===h?"y":h,m=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],m[i]={x:c.parse(Object(v.zb)(s,d),o),y:l.parse(Object(v.zb)(s,p),o)};return m}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,i=this._cachedMeta,a=t[e.axis];return j({keys:w(r,!0),values:t._stacks[e.axis]},a,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var i=n[t.axis],a=null===i?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,e.min=Math.min(e.min,a),e.max=Math.max(e.max,a),a=j(r,i,this._cachedMeta.index,{all:!0})),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}},{key:"getMinMax",value:function(e,t){var n,r,i,a,o=this,s=o._cachedMeta,c=s._parsed,l=s._sorted&&e===s.iScale,u=c.length,f=o._getOtherScale(e),d=t&&s._stacked&&{keys:w(o.chart,!0),values:null},h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},p=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,i=t.minDefined,a=t.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:a?r:Number.POSITIVE_INFINITY}}(f),m=p.min,g=p.max;function b(){return i=c[n],r=i[e.axis],a=i[f.axis],!Object(v.Ab)(r)||m>a||g<a}for(n=0;n<u&&(b()||(o.updateRangeFromParsed(h,e,i,d),!l));++n);if(l)for(n=u-1;n>=0;--n)if(!b()){o.updateRangeFromParsed(h,e,i,d);break}return h}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,a=[];for(t=0,n=i.length;t<n;++t)r=i[t][e.axis],Object(v.Ab)(r)&&a.push(r);return a}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(e){var t=this,n=t._cachedMeta;t.configure(),t._cachedDataOpts={},t.update(e||"default"),n._clip=function(e){var t,n,r,i;return Object(v.Cb)(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}(Object(v.Pb)(t.options.clip,function(e,t,n){if(!1===n)return!1;var r=k(e,n),i=k(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(n.xScale,n.yScale,t.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this,n=t._ctx,r=t.chart,i=t._cachedMeta,a=i.data||[],o=r.chartArea,s=[],c=t._drawStart||0,l=t._drawCount||a.length-c;for(i.dataset&&i.dataset.draw(n,o,c,l),e=c;e<c+l;++e){var u=a[e];u.hidden||(u.active?s.push(u):u.draw(n,o))}for(e=0;e<s.length;++e)s[e].draw(n,o)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,i=this,a=i.getDataset();if(e>=0&&e<i._cachedMeta.data.length){var o=i._cachedMeta.data[e];(r=o.$context||(o.$context=function(e,t,n){return Object.assign(Object.create(e),{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(i.getContext(),e,o))).parsed=i.getParsed(e),r.raw=a.data[e],r.index=r.dataIndex=e}else(r=i.$context||(i.$context=function(e,t){return Object.assign(Object.create(e),{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(i.chart.getContext(),i.index))).dataset=a,r.index=r.datasetIndex=i.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2?arguments[2]:void 0,r=this,i="active"===t,a=r._cachedDataOpts,o=e+"-"+t,s=a[o],c=r.enableOptionSharing&&Object(v.Bb)(n);if(s)return D(s,c);var l=r.chart.config,u=l.datasetElementScopeKeys(r._type,e),f=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=l.getOptionScopes(r.getDataset(),u),h=Object.keys(v.xb.elements[e]),p=function(){return r.getContext(n,i)},m=l.resolveNamedOptions(d,h,p,f);return m.$shared&&(m.$shared=c,a[o]=Object.freeze(D(m,c))),m}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this,a=i.chart,o=i._cachedDataOpts,s="animation-".concat(t),c=o[s];if(c)return c;if(!1!==a.options.animation){var l=i.chart.config,u=l.datasetAnimationScopeKeys(i._type,t),f=l.getOptionScopes(i.getDataset(),u);r=l.createResolver(f,i.getContext(e,n,t))}var d=new x(a,r&&r.animations);return r&&r._cacheable&&(o[s]=Object.freeze(d)),d}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||_(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){_(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!_(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this,r=n._data,i=n._cachedMeta.data,a=Object(f.a)(n._syncList);try{for(a.s();!(t=a.n()).done;){var o=Object(l.a)(t.value,3),s=o[0],c=o[1],u=o[2];n[s](c,u)}}catch(v){a.e(v)}finally{a.f()}n._syncList=[];var d=i.length,h=r.length,p=Math.min(h,d);p&&n.parse(0,p),h>d?n._insertElements(d,h-d,e):h<d&&n._removeElements(h,d-h)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this,a=i._cachedMeta,o=a.data,s=e+t,c=function(e){for(e.length+=t,n=e.length-1;n>=s;n--)e[n]=e[n-t]};for(c(o),n=e;n<s;++n)o[n]=new i.dataElementType;i._parsing&&c(a._parsed),i.parse(e,t),r&&i.updateElements(o,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&T(n,r)}n.data.splice(e,t)}},{key:"_sync",value:function(e){if(this._parsing)this._syncList.push(e);else{var t=Object(l.a)(e,3),n=t[0],r=t[1],i=t[2];this[n](r,i)}}},{key:"_onDataPush",value:function(){var e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){this._sync(["_removeElements",e,t]),this._sync(["_insertElements",e,arguments.length-2])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),e}();function R(e){var t,n,r,i,a=function(e){if(!e._cache.$bar){for(var t=e.getMatchingVisibleMetas("bar"),n=[],r=0,i=t.length;r<i;r++)n=n.concat(t[r].controller.getAllParsedValues(e));e._cache.$bar=Object(v.B)(n.sort((function(e,t){return e-t})))}return e._cache.$bar}(e),o=e._length,s=function(){32767!==r&&-32768!==r&&(Object(v.Bb)(i)&&(o=Math.min(o,Math.abs(r-i)||o)),i=r)};for(t=0,n=a.length;t<n;++t)r=e.getPixelForValue(a[t]),s();for(i=void 0,t=0,n=e.ticks.length;t<n;++t)r=e.getPixelForTick(t),s();return o}function L(e,t,n,r){return Object(v.vb)(e)?function(e,t,n,r){var i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),c=o,l=s;Math.abs(o)>Math.abs(s)&&(c=s,l=o),t[n.axis]=l,t._custom={barStart:c,barEnd:l,start:i,end:a,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function N(e,t,n,r){var i,a,o,s,c=e.iScale,l=e.vScale,u=c.getLabels(),f=c===l,d=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[c.axis]=f||c.parse(u[i],i),d.push(L(s,o,l,i));return d}function I(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function z(e,t,n,r){var i=t.borderSkipped,a={};if(i){var o=function(e){var t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}(e),s=o.start,c=o.end,l=o.reverse,u=o.top,f=o.bottom;"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=u:(n._bottom||0)===r?i=f:(a[$(f,s,c,l)]=!0,i=u)),a[$(i,s,c,l)]=!0,e.borderSkipped=a}else e.borderSkipped=a}function $(e,t,n,r){var i,a,o;return r?(o=n,e=F(e=(i=e)===(a=t)?o:i===o?a:i,n,t)):e=F(e,t,n),e}function F(e,t,n){return"start"===e?t:"end"===e?n:e}A.defaults={},A.prototype.datasetElementType=null,A.prototype.dataElementType=null;var B=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return N(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return N(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,c=e.iScale,l=e.vScale,u=this._parsing,f=u.xAxisKey,d=void 0===f?"x":f,h=u.yAxisKey,p=void 0===h?"y":h,m="x"===c.axis?d:p,g="x"===l.axis?d:p,b=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[c.axis]=c.parse(Object(v.zb)(s,m),i),b.push(L(Object(v.zb)(s,g),o,l,i));return b}},{key:"updateRangeFromParsed",value:function(e,t,r,i){Object(a.a)(Object(o.a)(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,i);var s=r._custom;s&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,s.min),e.max=Math.max(e.max,s.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e),a=i._custom,o=I(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}},{key:"initialize",value:function(){var e=this;e.enableOptionSharing=!0,Object(a.a)(Object(o.a)(n.prototype),"initialize",this).call(this),e._cachedMeta.stack=e.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){var i=this,a="reset"===r,o=i.index,s=i._cachedMeta.vScale,c=s.getBasePixel(),l=s.isHorizontal(),u=i._getRuler(),f=i.resolveDataElementOptions(t,r),d=i.getSharedOptions(f),h=i.includeOptions(r,d);i.updateSharedOptions(d,r,f);for(var p=t;p<t+n;p++){var m=i.getParsed(p),g=a||Object(v.Db)(m[s.axis])?{base:c,head:c}:i._calculateBarValuePixels(p),b=i._calculateBarIndexPixels(p,u),y=(m._stacks||{})[s.axis],O={horizontal:l,base:g.base,enableBorderRadius:!y||I(m._custom)||o===y._top||o===y._bottom,x:l?g.head:b.center,y:l?b.center:g.head,height:l?b.size:Math.abs(g.size),width:l?Math.abs(g.size):b.size};h&&(O.options=d||i.resolveDataElementOptions(p,e[p].active?"active":r)),z(O,O.options||e[p].options,y,o),i.updateElement(e[p],p,O,r)}}},{key:"_getStacks",value:function(e,t){var n,r,i=this._cachedMeta.iScale,a=i.getMatchingVisibleMetas(this._type),o=i.options.stacked,s=a.length,c=[];for(n=0;n<s;++n)if((r=a[n]).controller.options.grouped){if("undefined"!==typeof t){var l=r.controller.getParsed(t)[r.controller._cachedMeta.vScale.axis];if(Object(v.Db)(l)||isNaN(l))continue}if((!1===o||-1===c.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&c.push(r.stack),r.index===e)break}return c.length||c.push(void 0),c}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var e,t,n=this,r=n.options,i=n._cachedMeta,a=i.iScale,o=[];for(e=0,t=i.data.length;e<t;++e)o.push(a.getPixelForValue(n.getParsed(e)[a.axis],e));var s=r.barThickness;return{min:s||R(a),pixels:o,start:a._startPixel,end:a._endPixel,stackCount:n._getStackCount(),scale:a,grouped:r.grouped,ratio:s?1:r.categoryPercentage*r.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this,i=r._cachedMeta,a=i.vScale,o=i._stacked,s=r.options,c=s.base,l=s.minBarLength,u=c||0,f=r.getParsed(e),d=f._custom,h=I(d),p=f[a.axis],m=0,g=o?r.applyStack(a,f,o):p;g!==p&&(m=g-p,g=p),h&&(p=d.barStart,g=d.barEnd-d.barStart,0!==p&&Object(v.Mb)(p)!==Object(v.Mb)(d.barEnd)&&(m=0),m+=p);var b=Object(v.Db)(c)||h?m:c,y=a.getPixelForValue(b);if(n=(t=r.chart.getDataVisibility(e)?a.getPixelForValue(m+g):y)-y,Math.abs(n)<l&&(n=function(e,t,n){return 0!==e?Object(v.Mb)(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,a,u)*l,p===u&&(y-=n/2),t=y+n),y===a.getPixelForValue(u)){var O=Object(v.Mb)(n)*a.getLineWidthForValue(u)/2;y+=O,n-=O}return{size:n,base:y,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=this,a=t.scale,o=i.options,s=o.skipNull,c=Object(v.Pb)(o.maxBarThickness,1/0);if(t.grouped){var l=s?i._getStackCount(e):t.stackCount,u="flex"===o.barThickness?function(e,t,n,r){var i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,c=n.categoryPercentage;null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o);var l=a-(a-Math.min(o,s))/2*c;return{chunk:Math.abs(s-o)/2*c/r,ratio:n.barPercentage,start:l}}(e,t,o,l):function(e,t,n,r){var i,a,o=n.barThickness;return Object(v.Db)(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,o,l),f=i._getStackIndex(i.index,i._cachedMeta.stack,s?e:void 0);n=u.start+u.chunk*f+u.chunk/2,r=Math.min(c,u.chunk*u.ratio)}else n=a.getPixelForValue(i.getParsed(e)[a.axis],e),r=Math.min(c,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this,t=e._cachedMeta,n=t.vScale,r=t.data,i=r.length,a=0;a<i;++a)null!==e.getParsed(a)[n.axis]&&r[a].draw(e._ctx)}}]),n}(A);B.id="bar",B.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},B.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var Q=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Object(a.a)(Object(o.a)(n.prototype),"initialize",this).call(this)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s=e.xScale,c=e.yScale,l=this._parsing,u=l.xAxisKey,f=void 0===u?"x":u,d=l.yAxisKey,h=void 0===d?"y":d,p=[];for(i=n,a=n+r;i<a;++i)o=t[i],p.push({x:s.parse(Object(v.zb)(o,f),i),y:c.parse(Object(v.zb)(o,h),i),_custom:o&&o.r&&+o.r});return p}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta,t=e.data,n=e._parsed,r=0,i=t.length-1;i>=0;--i)r=Math.max(r,t[i].size()/2,n[i]._custom);return r>0&&r}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.xScale,r=t.yScale,i=this.getParsed(e),a=n.getLabelForValue(i.x),o=r.getLabelForValue(i.y),s=i._custom;return{label:t.label,value:"("+a+", "+o+(s?", "+s:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this,a="reset"===r,o=i._cachedMeta,s=o.iScale,c=o.vScale,l=i.resolveDataElementOptions(t,r),u=i.getSharedOptions(l),f=i.includeOptions(r,u),d=s.axis,h=c.axis,p=t;p<t+n;p++){var v=e[p],m=!a&&i.getParsed(p),g={},b=g[d]=a?s.getPixelForDecimal(.5):s.getPixelForValue(m[d]),y=g[h]=a?c.getBasePixel():c.getPixelForValue(m[h]);g.skip=isNaN(b)||isNaN(y),f&&(g.options=i.resolveDataElementOptions(p,v.active?"active":r),a&&(g.options.radius=0)),i.updateElement(v,p,g,r)}i.updateSharedOptions(u,r,l)}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),i=Object(a.a)(Object(o.a)(n.prototype),"resolveDataElementOptions",this).call(this,e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));var s=i.radius;return"active"!==t&&(i.radius=0),i.radius+=Object(v.Pb)(r&&r._custom,s),i}}]),n}(A);Q.id="bubble",Q.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},Q.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var W=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(h.a)(this,n),(i=t.call(this,e,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return Object(p.a)(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n,r,i=this.getDataset().data,a=this._cachedMeta;for(n=e,r=e+t;n<r;++n)a._parsed[n]=+i[n]}},{key:"_getRotation",value:function(){return Object(v.Nb)(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return Object(v.Nb)(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=v.u,t=-v.u,n=this,r=0;r<n.chart.data.datasets.length;++r)if(n.chart.isDatasetVisible(r)){var i=n.chart.getDatasetMeta(r).controller,a=i._getRotation(),o=i._getCircumference();e=Math.min(e,a),t=Math.max(t,a+o)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t=this,n=t.chart.chartArea,r=t._cachedMeta,i=r.data,a=t.getMaxBorderWidth()+t.getMaxOffset(i)+t.options.spacing,o=Math.max((Math.min(n.width,n.height)-a)/2,0),s=Math.min(Object(v.Eb)(t.options.cutout,o),1),c=t._getRingWeight(t.index),l=t._getRotationExtents(),u=l.circumference,f=function(e,t,n){var r=1,i=1,a=0,o=0;if(t<v.u){var s=e,c=s+t,l=Math.cos(s),u=Math.sin(s),f=Math.cos(c),d=Math.sin(c),h=function(e,t,r){return Object(v.Ib)(e,s,c,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return Object(v.Ib)(e,s,c,!0)?-1:Math.min(t,t*n,r,r*n)},m=h(0,l,f),g=h(v.i,u,d),b=p(v.q,l,f),y=p(v.q+v.i,u,d);r=(m-b)/2,i=(g-y)/2,a=-(m+b)/2,o=-(g+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}(l.rotation,u,s),d=f.ratioX,h=f.ratioY,p=f.offsetX,m=f.offsetY,g=(n.width-a)/d,b=(n.height-a)/h,y=Math.max(Math.min(g,b)/2,0),O=Object(v.Gb)(t.options.radius,y),x=(O-Math.max(O*s,0))/t._getVisibleDatasetWeightTotal();t.offsetX=p*O,t.offsetY=m*O,r.total=t.calculateTotal(),t.outerRadius=O-x*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-x*c,0),t.updateElements(i,0,i.length,e)}},{key:"_circumference",value:function(e,t){var n=this,r=n.options,i=n._cachedMeta,a=n._getCircumference();return t&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===i._parsed[e]||i.data[e].hidden?0:n.calculateCircumference(i._parsed[e]*a/v.u)}},{key:"updateElements",value:function(e,t,n,r){var i,a=this,o="reset"===r,s=a.chart,c=s.chartArea,l=s.options.animation,u=(c.left+c.right)/2,f=(c.top+c.bottom)/2,d=o&&l.animateScale,h=d?0:a.innerRadius,p=d?0:a.outerRadius,v=a.resolveDataElementOptions(t,r),m=a.getSharedOptions(v),g=a.includeOptions(r,m),b=a._getRotation();for(i=0;i<t;++i)b+=a._circumference(i,o);for(i=t;i<t+n;++i){var y=a._circumference(i,o),O=e[i],x={x:u+a.offsetX,y:f+a.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:p,innerRadius:h};g&&(x.options=m||a.resolveDataElementOptions(i,O.active?"active":r)),b+=y,a.updateElement(O,i,x,r)}a.updateSharedOptions(m,r,v)}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var i=t._parsed[e];null===i||isNaN(i)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?v.u*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Object(v.Hb)(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,a,o=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t<n;++t)if(s.isDatasetVisible(t)){e=(r=s.getDatasetMeta(t)).data,(i=r.controller)!==this&&i.configure();break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(a=i.resolveDataElementOptions(t)).borderAlign&&(o=Math.max(o,a.borderWidth||0,a.hoverBorderWidth||0));return o}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var i=this.resolveDataElementOptions(n);t=Math.max(t,i.offset||0,i.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(Object(v.Pb)(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(A);W.id="doughnut",W.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},W.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},W.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){var t=e.label,n=": "+e.formattedValue;return Object(v.vb)(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var H=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Object(a.a)(Object(o.a)(n.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this,n=t._cachedMeta,r=n.dataset,i=n.data,a=void 0===i?[]:i,o=n._dataset,s=t.chart._animationsDisabled,c=function(e,t,n){var r=t.length,i=0,a=r;if(e._sorted){var o=e.iScale,s=e._parsed,c=o.axis,l=o.getUserBounds(),u=l.min,f=l.max,d=l.minDefined,h=l.maxDefined;d&&(i=Object(v.Kb)(Math.min(Object(v.Qb)(s,o.axis,u).lo,n?r:Object(v.Qb)(t,c,o.getPixelForValue(u)).lo),0,r-1)),a=h?Object(v.Kb)(Math.max(Object(v.Qb)(s,o.axis,f).hi+1,n?0:Object(v.Qb)(t,c,o.getPixelForValue(f)).hi+1),i,r)-i:r-i}return{start:i,count:a}}(n,a,s),l=c.start,u=c.count;t._drawStart=l,t._drawCount=u,function(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;var a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}(n)&&(l=0,u=a.length),r._datasetIndex=t.index,r._decimated=!!o._decimated,r.points=a;var f=t.resolveDatasetElementOptions(e);t.options.showLine||(f.borderWidth=0),f.segment=t.options.segment,t.updateElement(r,void 0,{animated:!s,options:f},e),t.updateElements(a,l,u,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this,a="reset"===r,o=i._cachedMeta,s=o.iScale,c=o.vScale,l=o._stacked,u=i.resolveDataElementOptions(t,r),f=i.getSharedOptions(u),d=i.includeOptions(r,f),h=s.axis,p=c.axis,m=i.options.spanGaps,g=Object(v.Jb)(m)?m:Number.POSITIVE_INFINITY,b=i.chart._animationsDisabled||a||"none"===r,y=t>0&&i.getParsed(t-1),O=t;O<t+n;++O){var x=e[O],k=i.getParsed(O),w=b?x:{},j=Object(v.Db)(k[p]),S=w[h]=s.getPixelForValue(k[h],O),C=w[p]=a||j?c.getBasePixel():c.getPixelForValue(l?i.applyStack(c,k,l):k[p],O);w.skip=isNaN(S)||isNaN(C)||j,w.stop=O>0&&k[h]-y[h]>g,w.parsed=k,d&&(w.options=f||i.resolveDataElementOptions(O,x.active?"active":r)),b||i.updateElement(x,O,w,r),y=k}i.updateSharedOptions(f,r,u)}},{key:"getMaxOverflow",value:function(){var e=this,t=e._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;var a=i[0].size(e.resolveDataElementOptions(0)),o=i[i.length-1].size(e.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),Object(a.a)(Object(o.a)(n.prototype),"draw",this).call(this)}}]),n}(A);H.id="line",H.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},H.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var V=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(h.a)(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return Object(p.a)(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Object(v.Hb)(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"_updateRadius",value:function(){var e=this,t=e.chart,n=t.chartArea,r=t.options,i=Math.min(n.right-n.left,n.bottom-n.top),a=Math.max(i/2,0),o=(a-Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0))/t.getVisibleDatasetCount();e.outerRadius=a-o*e.index,e.innerRadius=e.outerRadius-o}},{key:"updateElements",value:function(e,t,n,r){var i,a=this,o="reset"===r,s=a.chart,c=a.getDataset(),l=s.options.animation,u=a._cachedMeta.rScale,f=u.xCenter,d=u.yCenter,h=u.getIndexAngle(0)-.5*v.q,p=h,m=360/a.countVisibleElements();for(i=0;i<t;++i)p+=a._computeAngle(i,r,m);for(i=t;i<t+n;i++){var g=e[i],b=p,y=p+a._computeAngle(i,r,m),O=s.getDataVisibility(i)?u.getDistanceFromCenterForValue(c.data[i]):0;p=y,o&&(l.animateScale&&(O=0),l.animateRotate&&(b=y=h));var x={x:f,y:d,innerRadius:0,outerRadius:O,startAngle:b,endAngle:y,options:a.resolveDataElementOptions(i,g.active?"active":r)};a.updateElement(g,i,x,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this.getDataset(),n=this._cachedMeta,r=0;return n.data.forEach((function(n,i){!isNaN(t.data[i])&&e.chart.getDataVisibility(i)&&r++})),r}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?Object(v.Nb)(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(A);V.id="polarArea",V.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},V.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels.pointStyle;return t.labels.map((function(t,r){var i=e.getDatasetMeta(0).controller.getStyle(r);return{text:t,fillStyle:i.backgroundColor,strokeStyle:i.borderColor,lineWidth:i.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(r),index:r}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}},tooltip:{callbacks:{title:function(){return""},label:function(e){return e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};var U=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return n}(W);U.id="pie",U.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var q=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"update",value:function(e){var t=this,n=t._cachedMeta,r=n.dataset,i=n.data||[],a=n.iScale.getLabels();if(r.points=i,"resize"!==e){var o=t.resolveDatasetElementOptions(e);t.options.showLine||(o.borderWidth=0);var s={_loop:!0,_fullLoop:a.length===i.length,options:o};t.updateElement(r,void 0,s,e)}t.updateElements(i,0,i.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this,a=i.getDataset(),o=i._cachedMeta.rScale,s="reset"===r,c=t;c<t+n;c++){var l=e[c],u=i.resolveDataElementOptions(c,l.active?"active":r),f=o.getPointPositionForValue(c,a.data[c]),d=s?o.xCenter:f.x,h=s?o.yCenter:f.y,p={x:d,y:h,angle:f.angle,skip:isNaN(d)||isNaN(h),options:u};i.updateElement(l,c,p,r)}}}]),n}(A);q.id="radar",q.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},q.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var Y=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return n}(H);Y.id="scatter",Y.defaults={showLine:!1,fill:!1},Y.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:function(){return""},label:function(e){return"("+e.label+", "+e.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var X=Object.freeze({__proto__:null,BarController:B,BubbleController:Q,DoughnutController:W,LineController:H,PolarAreaController:V,PieController:U,RadarController:q,ScatterController:Y});function K(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var G=function(){function e(t){Object(h.a)(this,e),this.options=t||{}}return Object(p.a)(e,[{key:"formats",value:function(){return K()}},{key:"parse",value:function(e,t){return K()}},{key:"format",value:function(e,t){return K()}},{key:"add",value:function(e,t,n){return K()}},{key:"diff",value:function(e,t,n){return K()}},{key:"startOf",value:function(e,t,n){return K()}},{key:"endOf",value:function(e,t){return K()}}]),e}();G.override=function(e){Object.assign(G.prototype,e)};var Z={_date:G};function J(e,t){return"native"in e?{x:e.x,y:e.y}:Object(v.Rb)(e,t)}function ee(e,t,n,r){var i=e.controller,a=e.data,o=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&o&&a.length){var c=s._reversePixels?v.Tb:v.Qb;if(!r)return c(a,t,n);if(i._sharedOptions){var l=a[0],u="function"===typeof l.getRange&&l.getRange(t);if(u){var f=c(a,t,n-u),d=c(a,t,n+u);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:a.length-1}}function te(e,t,n,r,i){for(var a=e.getSortedVisibleDatasetMetas(),o=n[t],s=0,c=a.length;s<c;++s)for(var l=a[s],u=l.index,f=l.data,d=ee(a[s],t,o,i),h=d.lo,p=d.hi,v=h;v<=p;++v){var m=f[v];m.skip||r(m,u,v)}}function ne(e,t,n,r){var i=[];if(!Object(v.Sb)(t,e.chartArea,e._minPadding))return i;return te(e,n,t,(function(e,n,a){e.inRange(t.x,t.y,r)&&i.push({element:e,datasetIndex:n,index:a})}),!0),i}function re(e,t,n,r,i){var a=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}(n),o=Number.POSITIVE_INFINITY,s=[];if(!Object(v.Sb)(t,e.chartArea,e._minPadding))return s;return te(e,n,t,(function(n,c,l){if(!r||n.inRange(t.x,t.y,i)){var u=n.getCenterPoint(i);if(Object(v.Sb)(u,e.chartArea,e._minPadding)||n.inRange(t.x,t.y,i)){var f=a(t,u);f<o?(s=[{element:n,datasetIndex:c,index:l}],o=f):f===o&&s.push({element:n,datasetIndex:c,index:l})}}})),s}function ie(e,t,n,r){var i=J(t,e),a=[],o=n.axis,s="x"===o?"inXRange":"inYRange",c=!1;return function(e,t){for(var n,r,i,a=e.getSortedVisibleDatasetMetas(),o=0,s=a.length;o<s;++o){var c=a[o];n=c.index;for(var l=0,u=(r=c.data).length;l<u;++l)(i=r[l]).skip||t(i,n,l)}}(e,(function(e,t,n){e[s](i[o],r)&&a.push({element:e,datasetIndex:t,index:n}),e.inRange(i.x,i.y,r)&&(c=!0)})),n.intersect&&!c?[]:a}var ae={modes:{index:function(e,t,n,r){var i=J(t,e),a=n.axis||"x",o=n.intersect?ne(e,i,a,r):re(e,i,a,!1,r),s=[];return o.length?(e.getSortedVisibleDatasetMetas().forEach((function(e){var t=o[0].index,n=e.data[t];n&&!n.skip&&s.push({element:n,datasetIndex:e.index,index:t})})),s):[]},dataset:function(e,t,n,r){var i=J(t,e),a=n.axis||"xy",o=n.intersect?ne(e,i,a,r):re(e,i,a,!1,r);if(o.length>0){var s=o[0].datasetIndex,c=e.getDatasetMeta(s).data;o=[];for(var l=0;l<c.length;++l)o.push({element:c[l],datasetIndex:s,index:l})}return o},point:function(e,t,n,r){return ne(e,J(t,e),n.axis||"xy",r)},nearest:function(e,t,n,r){return re(e,J(t,e),n.axis||"xy",n.intersect,r)},x:function(e,t,n,r){return n.axis="x",ie(e,t,n,r)},y:function(e,t,n,r){return n.axis="y",ie(e,t,n,r)}}},oe=["left","top","right","bottom"];function se(e,t){return e.filter((function(e){return e.pos===t}))}function ce(e,t){return e.filter((function(e){return-1===oe.indexOf(e.pos)&&e.box.axis===t}))}function le(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function ue(e,t){var n,r,i,a=function(e){var t,n={},r=Object(f.a)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.stack,o=i.pos,s=i.stackWeight;if(a&&oe.includes(o)){var c=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});c.count++,c.weight+=s}}}catch(l){r.e(l)}finally{r.f()}return n}(e),o=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var c=(i=e[n]).box.fullSize,l=a[i.stack],u=l&&i.stackWeight/l.weight;i.horizontal?(i.width=u?u*o:c&&t.availableWidth,i.height=s):(i.width=o,i.height=u?u*s:c&&t.availableHeight)}return a}function fe(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function de(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function he(e,t,n,r){var i=n.pos,a=n.box,o=e.maxPadding;if(!Object(v.Cb)(i)){n.size&&(e[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?a.height:a.width),n.size=s.size/s.count,e[i]+=n.size}a.getPadding&&de(o,a.getPadding());var c=Math.max(0,t.outerWidth-fe(o,e,"left","right")),l=Math.max(0,t.outerHeight-fe(o,e,"top","bottom")),u=c!==e.w,f=l!==e.h;return e.w=c,e.h=l,n.horizontal?{same:u,other:f}:{same:f,other:u}}function pe(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function ve(e,t,n,r){var i,a,o,s,c,l,u=[];for(i=0,a=e.length,c=0;i<a;++i){(s=(o=e[i]).box).update(o.width||t.w,o.height||t.h,pe(o.horizontal,t));var f=he(t,n,o,r),d=f.same,h=f.other;c|=d&&u.length,l=l||h,s.fullSize||u.push(o)}return c&&ve(u,t,n,r)||l}function me(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function ge(e,t,n,r){var i,a=n.padding,o=t.x,s=t.y,c=Object(f.a)(e);try{for(c.s();!(i=c.n()).done;){var l=i.value,u=l.box,d=r[l.stack]||{count:1,placed:0,weight:1},h=l.stackWeight/d.weight||1;if(l.horizontal){var p=t.w*h,m=d.size||u.height;Object(v.Bb)(d.start)&&(s=d.start),u.fullSize?me(u,a.left,s,n.outerWidth-a.right-a.left,m):me(u,t.left+d.placed,s,p,m),d.start=s,d.placed+=p,s=u.bottom}else{var g=t.h*h,b=d.size||u.width;Object(v.Bb)(d.start)&&(o=d.start),u.fullSize?me(u,o,a.top,b,n.outerHeight-a.bottom-a.top):me(u,o,t.top+d.placed,b,g),d.start=o,d.placed+=g,o=u.right}}}catch(y){c.e(y)}finally{c.f()}t.x=o,t.y=s}v.xb.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var be=function(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(e){t.draw(e)}}]},e.boxes.push(t)},ye=function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},Oe=function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},xe=function(e,t,n,r){if(e){var i=Object(v.b)(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=function(e){var t=function(e){var t,n,r,i,a,o,s=[];for(t=0,n=(e||[]).length;t<n;++t){var c=r=e[t];i=c.position;var l=c.options;a=l.stack;var u=l.stackWeight;o=void 0===u?1:u,s.push({index:t,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:o})}return s}(e),n=le(t.filter((function(e){return e.box.fullSize})),!0),r=le(se(t,"left"),!0),i=le(se(t,"right")),a=le(se(t,"top"),!0),o=le(se(t,"bottom")),s=ce(t,"x"),c=ce(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(c).concat(o).concat(s),chartArea:se(t,"chartArea"),vertical:r.concat(i).concat(c),horizontal:a.concat(o).concat(s)}}(e.boxes),c=s.vertical,l=s.horizontal;Object(v.c)(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var u=c.reduce((function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1}),0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),d=Object.assign({},i);de(d,Object(v.b)(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),p=ue(c.concat(l),f);ve(s.fullSize,h,f,p),ve(c,h,f,p),ve(l,h,f,p)&&ve(c,h,f,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),ge(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,ge(s.rightAndBottom,h,f,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},Object(v.c)(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h)}))}},ke=function(){function e(){Object(h.a)(this,e)}return Object(p.a)(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}}]),e}(),we=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}}]),n}(ke),je={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Se=function(e){return null===e||""===e};var Ce=!!v.h&&{passive:!0};function Ee(e,t,n){e.canvas.removeEventListener(t,n,Ce)}function Me(e,t,n){var r=e.canvas,i=r&&Object(v.e)(r)||r,a=new MutationObserver((function(e){var t=Object(v.e)(i);e.forEach((function(e){for(var r=0;r<e.addedNodes.length;r++){var a=e.addedNodes[r];a!==i&&a!==t||n(e.target)}}))}));return a.observe(document,{childList:!0,subtree:!0}),a}function Pe(e,t,n){var r=e.canvas,i=r&&Object(v.e)(r);if(i){var a=new MutationObserver((function(e){e.forEach((function(e){for(var t=0;t<e.removedNodes.length;t++)if(e.removedNodes[t]===r){n();break}}))}));return a.observe(i,{childList:!0}),a}}var Te=new Map,_e=0;function De(){var e=window.devicePixelRatio;e!==_e&&(_e=e,Te.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function Ae(e,t,n){var r=e.canvas,i=r&&Object(v.e)(r);if(i){var a=Object(v.g)((function(e,t){var r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),o=new ResizeObserver((function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)}));return o.observe(i),function(e,t){Te.size||window.addEventListener("resize",De),Te.set(e,t)}(e,a),o}}function Re(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Te.delete(e),Te.size||window.removeEventListener("resize",De)}(e)}function Le(e,t,n){var r=e.canvas,i=Object(v.g)((function(t){null!==e.ctx&&n(function(e,t){var n=je[e.type]||e.type,r=Object(v.Rb)(e,t),i=r.x,a=r.y;return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==a?a:null}}(t,e))}),e,(function(e){var t=e[0];return[t,t.offsetX,t.offsetY]}));return function(e,t,n){e.addEventListener(t,n,Ce)}(r,t,i),i}var Ne=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e.$chartjs={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Se(i)){var a=Object(v.f)(e,"width");void 0!==a&&(e.width=a)}if(Se(r))if(""===e.style.height)e.height=e.width/(t||2);else{var o=Object(v.f)(e,"height");void 0!==o&&(e.height=o)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t.$chartjs)return!1;var n=t.$chartjs.initial;["height","width"].forEach((function(e){var r=n[e];Object(v.Db)(r)?t.removeAttribute(e):t.setAttribute(e,r)}));var r=n.style||{};return Object.keys(r).forEach((function(e){t.style[e]=r[e]})),t.width=t.width,delete t.$chartjs,!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),i={attach:Me,detach:Pe,resize:Ae}[t]||Le;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:Re,detach:Re,resize:Re}[t]||Ee)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return Object(v.d)(e,t,n,r)}},{key:"isAttached",value:function(e){var t=Object(v.e)(e);return!(!t||!t.isConnected)}}]),n}(ke);var Ie=function(){function e(){Object(h.a)(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return Object(p.a)(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return Object(v.Jb)(this.x)&&Object(v.Jb)(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return n;var i={};return e.forEach((function(e){i[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),i}}]),e}();Ie.defaults={},Ie.defaultRoutes=void 0;var ze={values:function(e){return Object(v.vb)(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,a=e;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=Object(v.k)(Math.abs(a)),c=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(l,this.options.ticks.format),Object(v.Hb)(e,i,l)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(Object(v.k)(e)));return 1===r||2===r||5===r?ze.numeric.call(this,e,t,n):""}};var $e={formatters:ze};function Fe(e,t){var n=e.options.ticks,r=n.maxTicksLimit||function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),i=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],a=i.length,o=i[0],s=i[a-1],c=[];if(a>r)return function(e,t,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===o&&(t.push(e[i]),o=n[++a*r])}(t,c,i,a/r),c;var l=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),i=t.length/n;if(!r)return Math.max(i,1);for(var a=Object(v.l)(r),o=0,s=a.length-1;o<s;o++){var c=a[o];if(c>i)return c}return Math.max(i,1)}(i,t,r);if(a>0){var u,f,d=a>1?Math.round((s-o)/(a-1)):null;for(Be(t,c,l,Object(v.Db)(d)?0:o-d,o),u=0,f=a-1;u<f;u++)Be(t,c,l,i[u],i[u+1]);return Be(t,c,l,s,Object(v.Db)(d)?t.length:s+d),c}return Be(t,c,l),c}function Be(e,t,n,r,i){var a,o,s,c=Object(v.Pb)(r,0),l=Math.min(Object(v.Pb)(i,e.length),e.length),u=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=c;s<0;)u++,s=Math.round(c+u*n);for(o=Math.max(c,0);o<l;o++)o===s&&(t.push(e[o]),u++,s=Math.round(c+u*n))}v.xb.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.color},offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:$e.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),v.xb.route("scale.ticks","color","","color"),v.xb.route("scale.grid","color","","borderColor"),v.xb.route("scale.grid","borderColor","","borderColor"),v.xb.route("scale.title","color","","color"),v.xb.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e}}),v.xb.describe("scales",{_fallback:"scale"}),v.xb.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var Qe=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function We(e,t){for(var n=[],r=e.length/t,i=e.length,a=0;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function He(e,t,n){var r,i=e.ticks.length,a=Math.min(t,i-1),o=e._startPixel,s=e._endPixel,c=1e-6,l=e.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(l-o,s-l):0===t?(e.getPixelForTick(1)-l)/2:(l-e.getPixelForTick(a-1))/2,(l+=a<t?r:-r)<o-c||l>s+c)))return l}function Ve(e){return e.drawTicks?e.tickLength:0}function Ue(e,t){if(!e.display)return 0;var n=Object(v.y)(e.font,t),r=Object(v.b)(e.padding);return(Object(v.vb)(e.text)?e.text.length:1)*n.lineHeight+r.height}function qe(e,t,n){var r=Object(v.z)(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var Ye=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return Object(p.a)(n,[{key:"init",value:function(e){var t=this;t.options=e.setContext(t.getContext()),t.axis=e.axis,t._userMin=t.parse(e.min),t._userMax=t.parse(e.max),t._suggestedMin=t.parse(e.suggestedMin),t._suggestedMax=t.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=Object(v.m)(e,Number.POSITIVE_INFINITY),t=Object(v.m)(t,Number.NEGATIVE_INFINITY),n=Object(v.m)(n,Number.POSITIVE_INFINITY),r=Object(v.m)(r,Number.NEGATIVE_INFINITY),{min:Object(v.m)(e,n),max:Object(v.m)(t,r),minDefined:Object(v.Ab)(e),maxDefined:Object(v.Ab)(t)}}},{key:"getMinMax",value:function(e){var t,n=this,r=n.getUserBounds(),i=r.min,a=r.max,o=r.minDefined,s=r.maxDefined;if(o&&s)return{min:i,max:a};for(var c=n.getMatchingVisibleMetas(),l=0,u=c.length;l<u;++l)t=c[l].controller.getMinMax(n,e),o||(i=Math.min(i,t.min)),s||(a=Math.max(a,t.max));return{min:Object(v.m)(i,Object(v.m)(a,i)),max:Object(v.m)(a,Object(v.m)(i,a))}}},{key:"getPadding",value:function(){var e=this;return{left:e.paddingLeft||0,top:e.paddingTop||0,right:e.paddingRight||0,bottom:e.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){Object(v.n)(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this,i=r.options.ticks,a=i.sampleSize;r.beforeUpdate(),r.maxWidth=e,r.maxHeight=t,r._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),r.ticks=null,r._labelSizes=null,r._gridLineItems=null,r._labelItems=null,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r._maxLength=r.isHorizontal()?r.width+n.left+n.right:r.height+n.top+n.bottom,r._dataLimitsCached||(r.beforeDataLimits(),r.determineDataLimits(),r.afterDataLimits(),r._range=Object(v.o)(r,r.options.grace),r._dataLimitsCached=!0),r.beforeBuildTicks(),r.ticks=r.buildTicks()||[],r.afterBuildTicks();var o=a<r.ticks.length;r._convertTicksToLabels(o?We(r.ticks,a):r.ticks),r.configure(),r.beforeCalculateLabelRotation(),r.calculateLabelRotation(),r.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(r.ticks=Fe(r,r.ticks),r._labelSizes=null),o&&r._convertTicksToLabels(r.ticks),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this,r=n.options.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,r=!r),n._startPixel=e,n._endPixel=t,n._reversePixels=r,n._length=t-e,n._alignToPixels=n.options.alignToPixels}},{key:"afterUpdate",value:function(){Object(v.n)(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Object(v.n)(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0}},{key:"afterSetDimensions",value:function(){Object(v.n)(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){var t=this;t.chart.notifyPlugins(e,t.getContext()),Object(v.n)(t.options[e],[t])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){Object(v.n)(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,i=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=Object(v.n)(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Object(v.n)(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Object(v.n)(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this,i=r.options,a=i.ticks,o=r.ticks.length,s=a.minRotation||0,c=a.maxRotation,l=s;if(!r._isVisible()||!a.display||s>=c||o<=1||!r.isHorizontal())r.labelRotation=s;else{var u=r._getLabelSizes(),f=u.widest.width,d=u.highest.height,h=Object(v.Kb)(r.chart.width-f,0,r.maxWidth);f+6>(e=i.offset?r.maxWidth/o:h/(o-1))&&(e=h/(o-(i.offset?.5:1)),t=r.maxHeight-Ve(i.grid)-a.padding-Ue(i.title,r.chart.options.font),n=Math.sqrt(f*f+d*d),l=Object(v.p)(Math.min(Math.asin(Object(v.Kb)((u.highest.height+6)/e,-1,1)),Math.asin(Object(v.Kb)(t/n,-1,1))-Math.asin(Object(v.Kb)(d/n,-1,1)))),l=Math.max(s,Math.min(c,l))),r.labelRotation=l}}},{key:"afterCalculateLabelRotation",value:function(){Object(v.n)(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){Object(v.n)(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e=this,t={width:0,height:0},n=e.chart,r=e.options,i=r.ticks,a=r.title,o=r.grid,s=e._isVisible(),c=e.isHorizontal();if(s){var l=Ue(a,n.options.font);if(c?(t.width=e.maxWidth,t.height=Ve(o)+l):(t.height=e.maxHeight,t.width=Ve(o)+l),i.display&&e.ticks.length){var u=e._getLabelSizes(),f=u.first,d=u.last,h=u.widest,p=u.highest,m=2*i.padding,g=Object(v.Nb)(e.labelRotation),b=Math.cos(g),y=Math.sin(g);if(c){var O=i.mirror?0:y*h.width+b*p.height;t.height=Math.min(e.maxHeight,t.height+O+m)}else{var x=i.mirror?0:b*h.width+y*p.height;t.width=Math.min(e.maxWidth,t.width+x+m)}e._calculatePadding(f,d,y,b)}}e._handleMargins(),c?(e.width=e._length=n.width-e._margins.left-e._margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e._margins.top-e._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this,a=i.options,o=a.ticks,s=o.align,c=o.padding,l=a.position,u=0!==i.labelRotation,f="top"!==l&&"x"===i.axis;if(i.isHorizontal()){var d=i.getPixelForTick(0)-i.left,h=i.right-i.getPixelForTick(i.ticks.length-1),p=0,v=0;u?f?(p=r*e.width,v=n*t.height):(p=n*e.height,v=r*t.width):"start"===s?v=t.width:"end"===s?p=e.width:(p=e.width/2,v=t.width/2),i.paddingLeft=Math.max((p-d+c)*i.width/(i.width-d),0),i.paddingRight=Math.max((v-h+c)*i.width/(i.width-h),0)}else{var m=t.height/2,g=e.height/2;"start"===s?(m=0,g=e.height):"end"===s&&(m=t.height,g=0),i.paddingTop=m+c,i.paddingBottom=g+c}}},{key:"_handleMargins",value:function(){var e=this;e._margins&&(e._margins.left=Math.max(e.paddingLeft,e._margins.left),e._margins.top=Math.max(e.paddingTop,e._margins.top),e._margins.right=Math.max(e.paddingRight,e._margins.right),e._margins.bottom=Math.max(e.paddingBottom,e._margins.bottom))}},{key:"afterFit",value:function(){Object(v.n)(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n,r=this;for(r.beforeTickToLabelConversion(),r.generateTickLabels(e),t=0,n=e.length;t<n;t++)Object(v.Db)(e[t].label)&&(e.splice(t,1),n--,t--);r.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this,t=e._labelSizes;if(!t){var n=e.options.ticks.sampleSize,r=e.ticks;n<r.length&&(r=We(r,n)),e._labelSizes=t=e._computeLabelSizes(r,r.length)}return t}},{key:"_computeLabelSizes",value:function(e,t){var n,r,i,a,o,s,c,l,u,f,d,h=this.ctx,p=this._longestTextCache,m=[],g=[],b=0,y=0;for(n=0;n<t;++n){if(a=e[n].label,o=this._resolveTickFontOptions(n),h.font=s=o.string,c=p[s]=p[s]||{data:{},gc:[]},l=o.lineHeight,u=f=0,Object(v.Db)(a)||Object(v.vb)(a)){if(Object(v.vb)(a))for(r=0,i=a.length;r<i;++r)d=a[r],Object(v.Db)(d)||Object(v.vb)(d)||(u=Object(v.r)(h,c.data,c.gc,u,d),f+=l)}else u=Object(v.r)(h,c.data,c.gc,u,a),f=l;m.push(u),g.push(f),b=Math.max(u,b),y=Math.max(f,y)}!function(e,t){Object(v.c)(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}(p,t);var O=m.indexOf(b),x=g.indexOf(y),k=function(e){return{width:m[e]||0,height:g[e]||0}};return{first:k(0),last:k(t-1),widest:k(O),highest:k(x),widths:m,heights:g}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){var t=this;t._reversePixels&&(e=1-e);var n=t._startPixel+e*t._length;return Object(v.s)(t._alignToPixels?Object(v.t)(t.chart,n,0):n)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t,n,r=this,i=r.ticks||[];if(e>=0&&e<i.length){var a=i[e];return a.$context||(a.$context=function(e,t,n){return Object.assign(Object.create(e),{tick:n,index:t,type:"tick"})}(r.getContext(),e,a))}return r.$context||(r.$context=(t=r.chart.getContext(),n=r,Object.assign(Object.create(t),{scale:n,type:"scale"})))}},{key:"_tickSize",value:function(){var e=this,t=e.options.ticks,n=Object(v.Nb)(e.labelRotation),r=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),a=e._getLabelSizes(),o=t.autoSkipPadding||0,s=a?a.widest.width+o:0,c=a?a.highest.height+o:0;return e.isHorizontal()?c*r>s*i?s/r:c/i:c*i<s*r?c/r:s/i}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,a,o,s,c,l,u,f,d,h=this,p=h.axis,m=h.chart,g=h.options,b=g.grid,y=g.position,O=b.offset,x=h.isHorizontal(),k=h.ticks.length+(O?1:0),w=Ve(b),j=[],S=b.setContext(h.getContext()),C=S.drawBorder?S.borderWidth:0,E=C/2,M=function(e){return Object(v.t)(m,e,C)};if("top"===y)t=M(h.bottom),o=h.bottom-w,c=t-E,u=M(e.top)+E,d=e.bottom;else if("bottom"===y)t=M(h.top),u=e.top,d=M(e.bottom)-E,o=t+E,c=h.top+w;else if("left"===y)t=M(h.right),a=h.right-w,s=t-E,l=M(e.left)+E,f=e.right;else if("right"===y)t=M(h.left),l=e.left,f=M(e.right)-E,a=t+E,s=h.left+w;else if("x"===p){if("center"===y)t=M((e.top+e.bottom)/2+.5);else if(Object(v.Cb)(y)){var P=Object.keys(y)[0],T=y[P];t=M(h.chart.scales[P].getPixelForValue(T))}u=e.top,d=e.bottom,c=(o=t+E)+w}else if("y"===p){if("center"===y)t=M((e.left+e.right)/2);else if(Object(v.Cb)(y)){var _=Object.keys(y)[0],D=y[_];t=M(h.chart.scales[_].getPixelForValue(D))}s=(a=t-E)-w,l=e.left,f=e.right}var A=Object(v.Pb)(g.ticks.maxTicksLimit,k),R=Math.max(1,Math.ceil(k/A));for(n=0;n<k;n+=R){var L=b.setContext(h.getContext(n)),N=L.lineWidth,I=L.color,z=b.borderDash||[],$=L.borderDashOffset,F=L.tickWidth,B=L.tickColor,Q=L.tickBorderDash||[],W=L.tickBorderDashOffset;void 0!==(r=He(h,n,O))&&(i=Object(v.t)(m,r,N),x?a=s=l=f=i:o=c=u=d=i,j.push({tx1:a,ty1:o,tx2:s,ty2:c,x1:l,y1:u,x2:f,y2:d,width:N,color:I,borderDash:z,borderDashOffset:$,tickWidth:F,tickColor:B,tickBorderDash:Q,tickBorderDashOffset:W}))}return h._ticksLength=k,h._borderValue=t,j}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,a,o,s,c,l,u,f,d=this,h=d.axis,p=d.options,m=p.position,g=p.ticks,b=d.isHorizontal(),y=d.ticks,O=g.align,x=g.crossAlign,k=g.padding,w=g.mirror,j=Ve(p.grid),S=j+k,C=w?-k:S,E=-Object(v.Nb)(d.labelRotation),M=[],P="middle";if("top"===m)a=d.bottom-C,o=d._getXAxisLabelAlignment();else if("bottom"===m)a=d.top+C,o=d._getXAxisLabelAlignment();else if("left"===m){var T=d._getYAxisLabelAlignment(j);o=T.textAlign,i=T.x}else if("right"===m){var _=d._getYAxisLabelAlignment(j);o=_.textAlign,i=_.x}else if("x"===h){if("center"===m)a=(e.top+e.bottom)/2+S;else if(Object(v.Cb)(m)){var D=Object.keys(m)[0],A=m[D];a=d.chart.scales[D].getPixelForValue(A)+S}o=d._getXAxisLabelAlignment()}else if("y"===h){if("center"===m)i=(e.left+e.right)/2-S;else if(Object(v.Cb)(m)){var R=Object.keys(m)[0],L=m[R];i=d.chart.scales[R].getPixelForValue(L)}o=d._getYAxisLabelAlignment(j).textAlign}"y"===h&&("start"===O?P="top":"end"===O&&(P="bottom"));var N=d._getLabelSizes();for(t=0,n=y.length;t<n;++t){r=y[t].label;var I=g.setContext(d.getContext(t));s=d.getPixelForTick(t)+g.labelOffset,l=(c=d._resolveTickFontOptions(t)).lineHeight;var z=(u=Object(v.vb)(r)?r.length:1)/2,$=I.color,F=I.textStrokeColor,B=I.textStrokeWidth;b?(i=s,f="top"===m?"near"===x||0!==E?-u*l+l/2:"center"===x?-N.highest.height/2-z*l+l:-N.highest.height+l/2:"near"===x||0!==E?l/2:"center"===x?N.highest.height/2-z*l:N.highest.height-u*l,w&&(f*=-1)):(a=s,f=(1-u)*l/2);var Q=void 0;if(I.showLabelBackdrop){var W=Object(v.b)(I.backdropPadding),H=N.heights[t],V=N.widths[t],U=a+f-W.top,q=i-W.left;switch(P){case"middle":U-=H/2;break;case"bottom":U-=H}switch(o){case"center":q-=V/2;break;case"right":q-=V}Q={left:q,top:U,width:V+W.width,height:H+W.height,color:I.backdropColor}}M.push({rotation:E,label:r,font:c,color:$,strokeColor:F,strokeWidth:B,textOffset:f,textAlign:o,textBaseline:P,translation:[i,a],backdrop:Q})}return M}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-Object(v.Nb)(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align&&(r="right"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this,i=r.options,a=i.position,o=i.ticks,s=o.crossAlign,c=o.mirror,l=o.padding,u=e+l,f=r._getLabelSizes().widest.width;return"left"===a?c?(n=r.right+l,"near"===s?t="left":"center"===s?(t="center",n+=f/2):(t="right",n+=f)):(n=r.right-u,"near"===s?t="right":"center"===s?(t="center",n-=f/2):(t="left",n=r.left)):"right"===a?c?(n=r.left+l,"near"===s?t="right":"center"===s?(t="center",n-=f/2):(t="left",n-=f)):(n=r.left+u,"near"===s?t="left":"center"===s?(t="center",n+=f/2):(t="right",n=r.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){var e=this;if(!e.options.ticks.mirror){var t=e.chart,n=e.options.position;return"left"===n||"right"===n?{top:0,left:e.left,bottom:t.height,right:e.right}:"top"===n||"bottom"===n?{top:e.top,left:0,bottom:e.bottom,right:t.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,a=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this,n=t.options.grid;if(!t._isVisible()||!n.display)return 0;var r=t.ticks.findIndex((function(t){return t.value===e}));return r>=0?n.setContext(t.getContext(r)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this,i=r.options.grid,a=r.ctx,o=r._gridLineItems||(r._gridLineItems=r._computeGridLineItems(e)),s=function(e,t,n){n.width&&n.color&&(a.save(),a.lineWidth=n.width,a.strokeStyle=n.color,a.setLineDash(n.borderDash||[]),a.lineDashOffset=n.borderDashOffset,a.beginPath(),a.moveTo(e.x,e.y),a.lineTo(t.x,t.y),a.stroke(),a.restore())};if(i.display)for(t=0,n=o.length;t<n;++t){var c=o[t];i.drawOnChartArea&&s({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),i.drawTicks&&s({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this,t=e.chart,n=e.ctx,r=e.options.grid,i=r.setContext(e.getContext()),a=r.drawBorder?i.borderWidth:0;if(a){var o,s,c,l,u=r.setContext(e.getContext(0)).lineWidth,f=e._borderValue;e.isHorizontal()?(o=Object(v.t)(t,e.left,a)-a/2,s=Object(v.t)(t,e.right,u)+u/2,c=l=f):(c=Object(v.t)(t,e.top,a)-a/2,l=Object(v.t)(t,e.bottom,u)+u/2,o=s=f),n.save(),n.lineWidth=i.borderWidth,n.strokeStyle=i.borderColor,n.beginPath(),n.moveTo(o,c),n.lineTo(s,l),n.stroke(),n.restore()}}},{key:"drawLabels",value:function(e){var t=this;if(t.options.ticks.display){var n=t.ctx,r=t._computeLabelArea();r&&Object(v.v)(n,r);var i,a,o=t._labelItems||(t._labelItems=t._computeLabelItems(e));for(i=0,a=o.length;i<a;++i){var s=o[i],c=s.font,l=s.label;s.backdrop&&(n.fillStyle=s.backdrop.color,n.fillRect(s.backdrop.left,s.backdrop.top,s.backdrop.width,s.backdrop.height));var u=s.textOffset;Object(v.w)(n,l,0,u,c,s)}r&&Object(v.x)(n)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,i=t.reverse;if(r.display){var a=Object(v.y)(r.font),o=Object(v.b)(r.padding),s=r.align,c=a.lineHeight/2;"bottom"===n||"center"===n||Object(v.Cb)(n)?(c+=o.bottom,Object(v.vb)(r.text)&&(c+=a.lineHeight*(r.text.length-1))):c+=o.top;var l=function(e,t,n,r){var i,a,o,s=e.top,c=e.left,l=e.bottom,u=e.right,f=e.chart,d=f.chartArea,h=f.scales,p=0,m=l-s,g=u-c;if(e.isHorizontal()){if(a=Object(v.A)(r,c,u),Object(v.Cb)(n)){var b=Object.keys(n)[0],y=n[b];o=h[b].getPixelForValue(y)+m-t}else o="center"===n?(d.bottom+d.top)/2+m-t:Qe(e,n,t);i=u-c}else{if(Object(v.Cb)(n)){var O=Object.keys(n)[0],x=n[O];a=h[O].getPixelForValue(x)-g+t}else a="center"===n?(d.left+d.right)/2-g+t:Qe(e,n,t);o=Object(v.A)(r,l,s),p="left"===n?-v.i:v.i}return{titleX:a,titleY:o,maxWidth:i,rotation:p}}(this,c,n,s),u=l.titleX,f=l.titleY,d=l.maxWidth,h=l.rotation;Object(v.w)(e,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:qe(s,n,i),textBaseline:"middle",translation:[u,f]})}}},{key:"draw",value:function(e){var t=this;t._isVisible()&&(t.drawBackground(),t.drawGrid(e),t.drawBorder(),t.drawTitle(),t.drawLabels(e))}},{key:"_layers",value:function(){var e=this,t=e.options,r=t.ticks&&t.ticks.z||0,i=Object(v.Pb)(t.grid&&t.grid.z,-1);return e._isVisible()&&e.draw===n.prototype.draw?[{z:i,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:i+1,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this,i=r.chart.getSortedVisibleDatasetMetas(),a=r.axis+"AxisID",o=[];for(t=0,n=i.length;t<n;++t){var s=i[t];s[a]!==r.id||e&&s.type!==e||o.push(s)}return o}},{key:"_resolveTickFontOptions",value:function(e){var t=this.options.ticks.setContext(this.getContext(e));return Object(v.y)(t.font)}},{key:"_maxDigits",value:function(){var e=this,t=e._resolveTickFontOptions(0).lineHeight;return(e.isHorizontal()?e.width:e.height)/t}}]),n}(Ie),Xe=function(){function e(t,n,r){Object(h.a)(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return Object(p.a)(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=this,r=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(r)&&(t=n.register(r));var i=n.items,a=e.id,o=n.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in i||(i[a]=e,function(e,t,n){var r=Object(v.D)(Object.create(null),[n?v.xb.get(n):{},v.xb.get(t),e.defaults]);v.xb.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((function(n){var r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),c=o.join(".");v.xb.route(a,i,c,s)}))}(t,e.defaultRoutes);e.descriptors&&v.xb.describe(t,e.descriptors)}(e,o,t),n.override&&v.xb.override(e.id,e.overrides)),o}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in v.xb[r]&&(delete v.xb[r][n],this.override&&delete v.a[n])}}]),e}();var Ke=new(function(){function e(){Object(h.a)(this,e),this.controllers=new Xe(A,"datasets",!0),this.elements=new Xe(Ie,"elements"),this.plugins=new Xe(Object,"plugins"),this.scales=new Xe(Ye,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Object(p.a)(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;Object(d.a)(t).forEach((function(t){var i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):Object(v.c)(t,(function(t){var i=n||r._getRegistryForType(t);r._exec(e,i,t)}))}))}},{key:"_exec",value:function(e,t,n){var r=Object(v.E)(e);Object(v.n)(n["before"+r],[],n),t[e](n),Object(v.n)(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}()),Ge=function(){function e(){Object(h.a)(this,e),this._init=[]}return Object(p.a)(e,[{key:"notify",value:function(e,t,n,r){var i=this;"beforeInit"===t&&(i._init=i._createDescriptors(e,!0),i._notify(i._init,e,"install"));var a=r?i._descriptors(e).filter(r):i._descriptors(e),o=i._notify(a,e,t,n);return"destroy"===t&&(i._notify(a,e,"stop"),i._notify(i._init,e,"uninstall")),o}},{key:"_notify",value:function(e,t,n,r){r=r||{};var i,a=Object(f.a)(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin,c=s[n],l=[t,r,o.options];if(!1===Object(v.n)(c,l,s)&&r.cancelable)return!1}}catch(u){a.e(u)}finally{a.f()}return!0}},{key:"invalidate",value:function(){Object(v.Db)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=Object(v.Pb)(n.options&&n.options.plugins,{}),i=function(e){for(var t=[],n=Object.keys(Ke.plugins.items),r=0;r<n.length;r++)t.push(Ke.getPlugin(n[r]));for(var i=e.plugins||[],a=0;a<i.length;a++){var o=i[a];-1===t.indexOf(o)&&t.push(o)}return t}(n);return!1!==r||t?function(e,t,n,r){for(var i=[],a=e.getContext(),o=0;o<t.length;o++){var s=t[o],c=Ze(n[s.id],r);null!==c&&i.push({plugin:s,options:Je(e.config,s,c,a)})}return i}(e,i,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.plugin.id===t.plugin.id}))}))};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function Ze(e,t){return t||!1!==e?!0===e?{}:e:null}function Je(e,t,n,r){var i=e.pluginScopeKeys(t),a=e.getOptionScopes(n,i);return e.createResolver(a,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function et(e,t){var n=v.xb.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function tt(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(n=t.position)||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0)||e.charAt(0).toLowerCase();var n}function nt(e){var t=e.options||(e.options={});t.plugins=Object(v.Pb)(t.plugins,{}),t.scales=function(e,t){var n=v.a[e.type]||{scales:{}},r=t.scales||{},i=et(e.type,t),a=Object.create(null),o=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e],s=tt(e,t),c=function(e,t){return e===t?"_index_":"_value_"}(s,i),l=n.scales||{};a[s]=a[s]||e,o[e]=Object(v.K)(Object.create(null),[{axis:s},t,l[s],l[c]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,s=n.indexAxis||et(i,t),c=(v.a[i]||{}).scales||{};Object.keys(c).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,s),i=n[t+"AxisID"]||a[t]||t;o[i]=o[i]||Object.create(null),Object(v.K)(o[i],[{axis:t},r[i],c[e]])}))})),Object.keys(o).forEach((function(e){var t=o[e];Object(v.K)(t,[v.xb.scales[t.type],v.xb.scale])})),o}(e,t)}function rt(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var it=new Map,at=new Set;function ot(e,t){var n=it.get(e);return n||(n=t(),it.set(e,n),at.add(n)),n}var st=function(e,t,n){var r=Object(v.zb)(t,n);void 0!==r&&e.add(r)},ct=function(){function e(t){Object(h.a)(this,e),this._config=function(e){return(e=e||{}).data=rt(e.data),nt(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Object(p.a)(e,[{key:"update",value:function(){var e=this._config;this.clearCache(),nt(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return ot(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return ot("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return ot("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return ot("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(Object(d.a)(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return st(s,e,t)}))),t.forEach((function(e){return st(s,r,e)})),t.forEach((function(e){return st(s,v.a[i]||{},e)})),t.forEach((function(e){return st(s,v.xb,e)})),t.forEach((function(e){return st(s,v.F,e)}))}));var c=Array.from(s);return 0===c.length&&c.push(Object.create(null)),at.has(t)&&a.set(t,c),c}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,v.a[t]||{},v.xb.datasets[t]||{},{type:t},v.xb,v.F]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=lt(this._resolverCache,e,r),o=a.resolver,s=a.subPrefixes,c=o;if(ut(o,t)){i.$shared=!1,n=Object(v.G)(n)?n():n;var l=this.createResolver(e,n,s);c=Object(v.H)(o,n,l)}var u,d=Object(f.a)(t);try{for(d.s();!(u=d.n()).done;){var h=u.value;i[h]=c[h]}}catch(p){d.e(p)}finally{d.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=lt(this._resolverCache,e,n),a=i.resolver;return Object(v.Cb)(t)?Object(v.H)(a,t,void 0,r):a}},{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=rt(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}}]),e}();function lt(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),a=r.get(i);a||(a={resolver:Object(v.I)(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,a));return a}function ut(e,t){var n,r=Object(v.J)(e),i=r.isScriptable,a=r.isIndexable,o=Object(f.a)(t);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(i(s)&&Object(v.G)(e[s])||a(s)&&Object(v.vb)(e[s]))return!0}}catch(c){o.e(c)}finally{o.f()}return!1}var ft=["top","bottom","left","right","chartArea"];function dt(e,t){return"top"===e||"bottom"===e||-1===ft.indexOf(e)&&"x"===t}function ht(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function pt(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Object(v.n)(n&&n.onComplete,[e],t)}function vt(e){var t=e.chart,n=t.options.animation;Object(v.n)(n&&n.onProgress,[e],t)}function mt(e){return Object(v.j)()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var gt={},bt=function(e){var t=mt(e);return Object.values(gt).filter((function(e){return e.canvas===t})).pop()},yt=function(){function e(t,n){var r=this;Object(h.a)(this,e);var i=this,a=this.config=new ct(n),o=mt(t),s=bt(o);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas can be reused.");var c=a.createResolver(a.chartOptionScopes(),i.getContext());this.platform=new(a.platform||function(e){return!Object(v.j)()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?we:Ne}(o));var l=i.platform.acquireContext(o,c.aspectRatio),u=l&&l.canvas,f=u&&u.height,d=u&&u.width;this.id=Object(v.L)(),this.ctx=l,this.canvas=u,this.width=d,this.height=f,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ge,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(v.M)((function(){return r.update("resize")}),c.resizeDelay||0),gt[i.id]=i,l&&u?(m.listen(i,"complete",pt),m.listen(i,"progress",vt),i._initialize(),i.attached&&i.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Object(p.a)(e,[{key:"_initialize",value:function(){var e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Object(v.V)(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}},{key:"clear",value:function(){return Object(v.W)(this.canvas,this.ctx),this}},{key:"stop",value:function(){return m.stop(this),this}},{key:"resize",value:function(e,t){m.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this,r=n.options,i=n.canvas,a=r.maintainAspectRatio&&n.aspectRatio,o=n.platform.getMaximumSize(i,e,t,a),s=r.devicePixelRatio||n.platform.getDevicePixelRatio();n.width=o.width,n.height=o.height,n._aspectRatio=n.aspectRatio,Object(v.V)(n,s,!0)&&(n.notifyPlugins("resize",{size:o}),Object(v.n)(r.onResize,[n,o],n),n.attached&&n._doResize()&&n.render())}},{key:"ensureScalesHaveIDs",value:function(){var e=this.options.scales||{};Object(v.c)(e,(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=e.options,n=t.scales,r=e.scales,i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),a=[];n&&(a=a.concat(Object.keys(n).map((function(e){var t=n[e],r=tt(e,t),i="r"===r,a="x"===r;return{options:t,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),Object(v.c)(a,(function(n){var a=n.options,o=a.id,s=tt(o,a),c=Object(v.Pb)(a.type,n.dtype);void 0!==a.position&&dt(a.position,s)===dt(n.dposition)||(a.position=n.dposition),i[o]=!0;var l=null;o in r&&r[o].type===c?l=r[o]:(l=new(Ke.getScale(c))({id:o,type:c,ctx:e.ctx,chart:e}),r[l.id]=l);l.init(a,t)})),Object(v.c)(i,(function(e,t){e||delete r[t]})),Object(v.c)(r,(function(t){Oe(e,t,t.options),be(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this,t=e._metasets,n=e.data.datasets.length,r=t.length;if(t.sort((function(e,t){return e.index-t.index})),r>n){for(var i=n;i<r;++i)e._destroyDatasetMeta(i);t.splice(n,r-n)}e._sortedMetasets=t.slice(0).sort(ht("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=e._metasets,n=e.data.datasets;t.length>n.length&&delete e._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=this,r=[],i=n.data.datasets;for(n._removeUnreferencedMetasets(),e=0,t=i.length;e<t;e++){var a=i[e],o=n.getDatasetMeta(e),s=a.type||n.config.type;if(o.type&&o.type!==s&&(n._destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=s,o.indexAxis=a.indexAxis||et(s,n.options),o.order=a.order||0,o.index=e,o.label=""+a.label,o.visible=n.isDatasetVisible(e),o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var c=Ke.getController(s),l=v.xb.datasets[s],u=l.datasetElementType,f=l.dataElementType;Object.assign(c.prototype,{dataElementType:Ke.getElement(f),datasetElementType:u&&Ke.getElement(u)}),o.controller=new c(n,e),r.push(o.controller)}}return n._updateMetasets(),r}},{key:"_resetElements",value:function(){var e=this;Object(v.c)(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),e)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this,n=t.config;n.update(),t._options=n.createResolver(n.chartOptionScopes(),t.getContext()),Object(v.c)(t.scales,(function(e){ye(t,e)}));var r=t._animationsDisabled=!t.options.animation;t.ensureScalesHaveIDs(),t.buildOrUpdateScales();var i=new Set(Object.keys(t._listeners)),a=new Set(t.options.events);if(Object(v.X)(i,a)&&!!this._responsiveListeners===t.options.responsive||(t.unbindEvents(),t.bindEvents()),t._plugins.invalidate(),!1!==t.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var o=t.buildOrUpdateControllers();t.notifyPlugins("beforeElementsUpdate");for(var s=0,c=0,l=t.data.datasets.length;c<l;c++){var u=t.getDatasetMeta(c).controller,f=!r&&-1===o.indexOf(u);u.buildOrUpdateElements(f),s=Math.max(+u.getMaxOverflow(),s)}t._minPadding=s,t._updateLayout(s),r||Object(v.c)(o,(function(e){e.reset()})),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(ht("z","_idx")),t._lastEvent&&t._eventHandler(t._lastEvent,!0),t.render()}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==t.notifyPlugins("beforeLayout",{cancelable:!0})){xe(t,t.width,t.height,e);var n=t.chartArea,r=n.width<=0||n.height<=0;t._layers=[],Object(v.c)(t.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,Object(d.a)(e._layers())))}),t),t._layers.forEach((function(e,t){e._idx=t})),t.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){var t=this,n="function"===typeof e;if(!1!==t.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var r=0,i=t.data.datasets.length;r<i;++r)t._updateDataset(r,n?e({datasetIndex:r}):e);t.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this,r=n.getDatasetMeta(e),i={meta:r,index:e,mode:t,cancelable:!0};!1!==n.notifyPlugins("beforeDatasetUpdate",i)&&(r.controller._update(t),i.cancelable=!1,n.notifyPlugins("afterDatasetUpdate",i))}},{key:"render",value:function(){var e=this;!1!==e.notifyPlugins("beforeRender",{cancelable:!0})&&(m.has(e)?e.attached&&!m.running(e)&&m.start(e):(e.draw(),pt({chart:e})))}},{key:"draw",value:function(){var e,t=this;if(t._resizeBeforeDraw){var n=t._resizeBeforeDraw,r=n.width,i=n.height;t._resize(r,i),t._resizeBeforeDraw=null}if(t.clear(),!(t.width<=0||t.height<=0)&&!1!==t.notifyPlugins("beforeDraw",{cancelable:!0})){var a=t._layers;for(e=0;e<a.length&&a[e].z<=0;++e)a[e].draw(t.chartArea);for(t._drawDatasets();e<a.length;++e)a[e].draw(t.chartArea);t.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,i=[];for(t=0,n=r.length;t<n;++t){var a=r[t];e&&!a.visible||i.push(a)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){var e=this;if(!1!==e.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var t=e.getSortedVisibleDatasetMetas(),n=t.length-1;n>=0;--n)e._drawDataset(t[n]);e.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this,n=t.ctx,r=e._clip,i=!r.disabled,a=t.chartArea,o={meta:e,index:e.index,cancelable:!0};!1!==t.notifyPlugins("beforeDatasetDraw",o)&&(i&&Object(v.v)(n,{left:!1===r.left?0:a.left-r.left,right:!1===r.right?t.width:a.right+r.right,top:!1===r.top?0:a.top-r.top,bottom:!1===r.bottom?t.height:a.bottom+r.bottom}),e.controller.draw(),i&&Object(v.x)(n),o.cancelable=!1,t.notifyPlugins("afterDatasetDraw",o))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=ae.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context={chart:this,type:"chart"})}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=this,i=n?"show":"hide",a=r.getDatasetMeta(e),o=a.controller._resolveAnimations(void 0,i);Object(v.Bb)(t)?(a.data[t].hidden=!n,r.update()):(r.setDatasetVisibility(e,n),o.update(a,{visible:n}),r.update((function(t){return t.datasetIndex===e?i:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this,n=t._metasets&&t._metasets[e];n&&n.controller&&(n.controller._destroy(),delete t._metasets[e])}},{key:"destroy",value:function(){var e,t,n=this,r=n.canvas,i=n.ctx;for(n.stop(),m.remove(n),e=0,t=n.data.datasets.length;e<t;++e)n._destroyDatasetMeta(e);n.config.clearCache(),r&&(n.unbindEvents(),Object(v.W)(r,i),n.platform.releaseContext(i),n.canvas=null,n.ctx=null),n.notifyPlugins("destroy"),delete gt[n.id]}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=e._listeners,n=e.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};Object(v.c)(e.options.events,(function(i){return function(r,i){n.addEventListener(e,r,i),t[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var e=this;e._responsiveListeners||(e._responsiveListeners={});var t,n=e._responsiveListeners,r=e.platform,i=function(t,i){r.addEventListener(e,t,i),n[t]=i},a=function(t,i){n[t]&&(r.removeEventListener(e,t,i),delete n[t])},o=function(t,n){e.canvas&&e.resize(t,n)},s=function n(){a("attach",n),e.attached=!0,e.resize(),i("resize",o),i("detach",t)};t=function(){e.attached=!1,a("resize",o),i("attach",s)},r.isAttached(e.canvas)?s():t()}},{key:"unbindEvents",value:function(){var e=this;Object(v.c)(e._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),e._listeners={},Object(v.c)(e._responsiveListeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),e._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,i,a,o=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+o+"DatasetHoverStyle"](),i=0,a=e.length;i<a;++i){var s=(r=e[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=t._active||[],r=e.map((function(e){var n=e.datasetIndex,r=e.index,i=t.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!Object(v.Y)(r,n)&&(t._active=r,t._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this,i=r.options.hover,a=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index}))}))},o=a(t,e),s=n?e:a(e,t);o.length&&r.updateHoverStyle(o,i.mode,!1),s.length&&i.mode&&r.updateHoverStyle(s,i.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r=this,i={event:e,replay:t,cancelable:!0},a=function(t){return(t.options.events||n.options.events).includes(e.type)};if(!1!==r.notifyPlugins("beforeEvent",i,a)){var o=r._handleEvent(e,t);return i.cancelable=!1,r.notifyPlugins("afterEvent",i,a),(o||i.changed)&&r.render(),r}}},{key:"_handleEvent",value:function(e,t){var n,r=this,i=r._active,a=void 0===i?[]:i,o=r.options,s=o.hover,c=t,l=[],u=null;return"mouseout"!==e.type&&(l=r.getElementsAtEventForMode(e,s.mode,s,c),u="click"===e.type?r._lastEvent:e),r._lastEvent=null,Object(v.Sb)(e,r.chartArea,r._minPadding)&&(Object(v.n)(o.onHover,[e,l,r],r),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||Object(v.n)(o.onClick,[e,l,r],r)),((n=!Object(v.Y)(l,a))||t)&&(r._active=l,r._updateHoverStyles(l,a,t)),r._lastEvent=u,n}},{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,i=this.height,a=this._aspectRatio;return Object(v.Db)(t)?n&&a?a:i?r/i:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}}]),e}(),Ot=function(){return Object(v.c)(yt.instances,(function(e){return e._plugins.invalidate()}))},xt=!0;function kt(e,t,n){var r=t.startAngle,i=t.pixelMargin,a=t.x,o=t.y,s=t.outerRadius,c=t.innerRadius,l=i/s;e.beginPath(),e.arc(a,o,s,r-l,n+l),c>i?(l=i/c,e.arc(a,o,c,n+l,r-l,!0)):e.arc(a,o,i,n+v.i,r-v.i),e.closePath(),e.clip()}function wt(e,t,n,r){var i,a=(i=e.options.borderRadius,Object(v.ab)(i,["outerStart","outerEnd","innerStart","innerEnd"])),o=(n-t)/2,s=Math.min(o,r*t/2),c=function(e){var t=(n-Math.min(o,e))*r/2;return Object(v.Kb)(e,0,Math.min(o,t))};return{outerStart:c(a.outerStart),outerEnd:c(a.outerEnd),innerStart:Object(v.Kb)(a.innerStart,0,s),innerEnd:Object(v.Kb)(a.innerEnd,0,s)}}function jt(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function St(e,t,n,r,i){var a=t.x,o=t.y,s=t.startAngle,c=t.pixelMargin,l=t.innerRadius,u=Math.max(t.outerRadius+r+n-c,0),f=l>0?l+r+n+c:0,d=0,h=i-s;if(r){var p=((l>0?l-r:0)+(u>0?u-r:0))/2;d=(h-(0!==p?h*p/(p+r):h))/2}var m=(h-Math.max(.001,h*u-n/v.q)/u)/2,g=s+m+d,b=i-m-d,y=wt(t,f,u,b-g),O=y.outerStart,x=y.outerEnd,k=y.innerStart,w=y.innerEnd,j=u-O,S=u-x,C=g+O/j,E=b-x/S,M=f+k,P=f+w,T=g+k/M,_=b-w/P;if(e.beginPath(),e.arc(a,o,u,C,E),x>0){var D=jt(S,E,a,o);e.arc(D.x,D.y,x,E,b+v.i)}var A=jt(P,b,a,o);if(e.lineTo(A.x,A.y),w>0){var R=jt(P,_,a,o);e.arc(R.x,R.y,w,b+v.i,_+Math.PI)}if(e.arc(a,o,f,b-w/f,g+k/f,!0),k>0){var L=jt(M,T,a,o);e.arc(L.x,L.y,k,T+Math.PI,g-v.i)}var N=jt(j,g,a,o);if(e.lineTo(N.x,N.y),O>0){var I=jt(j,C,a,o);e.arc(I.x,I.y,O,g-v.i,C)}e.closePath()}function Ct(e,t,n,r,i){var a=t.options,o="inner"===a.borderAlign;a.borderWidth&&(o?(e.lineWidth=2*a.borderWidth,e.lineJoin="round"):(e.lineWidth=a.borderWidth,e.lineJoin="bevel"),t.fullCircles&&function(e,t,n){var r,i=t.x,a=t.y,o=t.startAngle,s=t.pixelMargin,c=t.fullCircles,l=Math.max(t.outerRadius-s,0),u=t.innerRadius+s;for(n&&kt(e,t,o+v.u),e.beginPath(),e.arc(i,a,u,o+v.u,o,!0),r=0;r<c;++r)e.stroke();for(e.beginPath(),e.arc(i,a,l,o,o+v.u),r=0;r<c;++r)e.stroke()}(e,t,o),o&&kt(e,t,i),St(e,t,n,r,i),e.stroke())}Object.defineProperties(yt,{defaults:{enumerable:xt,value:v.xb},instances:{enumerable:xt,value:gt},overrides:{enumerable:xt,value:v.a},registry:{enumerable:xt,value:Ke},version:{enumerable:xt,value:"3.5.1"},getChart:{enumerable:xt,value:bt},register:{enumerable:xt,value:function(){Ke.add.apply(Ke,arguments),Ot()}},unregister:{enumerable:xt,value:function(){Ke.remove.apply(Ke,arguments),Ot()}}});var Et=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign(Object(i.a)(r),e),r}return Object(p.a)(n,[{key:"inRange",value:function(e,t,n){var r=this.getProps(["x","y"],n),i=Object(v.Z)(r,{x:e,y:t}),a=i.angle,o=i.distance,s=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),c=s.startAngle,l=s.endAngle,u=s.innerRadius,f=s.outerRadius,d=s.circumference,h=this.options.spacing/2;return(d>=v.u||Object(v.Ib)(a,c,l))&&(o>=u+h&&o<=f+h)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),n=t.x,r=t.y,i=t.startAngle,a=t.endAngle,o=t.innerRadius,s=t.outerRadius,c=this.options,l=c.offset,u=(i+a)/2,f=(o+s+c.spacing+l)/2;return{x:n+Math.cos(u)*f,y:r+Math.sin(u)*f}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this,n=t.options,r=t.circumference,i=(n.offset||0)/2,a=(n.spacing||0)/2;if(t.pixelMargin="inner"===n.borderAlign?.33:0,t.fullCircles=r>v.u?Math.floor(r/v.u):0,!(0===r||t.innerRadius<0||t.outerRadius<0)){e.save();var o=0;if(i){o=i/2;var s=(t.startAngle+t.endAngle)/2;e.translate(Math.cos(s)*o,Math.sin(s)*o),t.circumference>=v.q&&(o=i)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;var c=function(e,t,n,r){var i=t.fullCircles,a=t.startAngle,o=t.circumference,s=t.endAngle;if(i){St(e,t,n,r,a+v.u);for(var c=0;c<i;++c)e.fill();isNaN(o)||(s=a+o%v.u,o%v.u===0&&(s+=v.u))}return St(e,t,n,r,s),e.fill(),s}(e,t,o,a);Ct(e,t,o,a,c),e.restore()}}}]),n}(Ie);function Mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Object(v.Pb)(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Object(v.Pb)(n.borderDash,t.borderDash)),e.lineDashOffset=Object(v.Pb)(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Object(v.Pb)(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Object(v.Pb)(n.borderWidth,t.borderWidth),e.strokeStyle=Object(v.Pb)(n.borderColor,t.borderColor)}function Pt(e,t,n){e.lineTo(n.x,n.y)}function Tt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,a=void 0===i?0:i,o=n.end,s=void 0===o?r-1:o,c=t.start,l=t.end,u=Math.max(a,c),f=Math.min(s,l),d=a<c&&s<c||a>l&&s>l;return{count:r,start:u,loop:t.loop,ilen:f<u&&!d?r+f-u:f-u}}function _t(e,t,n,r){var i,a,o,s=t.points,c=t.options,l=Tt(s,n,r),u=l.count,f=l.start,d=l.loop,h=l.ilen,p=function(e){return e.stepped?v.hb:e.tension||"monotone"===e.cubicInterpolationMode?v.ib:Pt}(c),m=r||{},g=m.move,b=void 0===g||g,y=m.reverse;for(i=0;i<=h;++i)(a=s[(f+(y?h-i:i))%u]).skip||(b?(e.moveTo(a.x,a.y),b=!1):p(e,o,a,y,c.stepped),o=a);return d&&p(e,o,a=s[(f+(y?h:0))%u],y,c.stepped),!!d}function Dt(e,t,n,r){var i,a,o,s,c,l,u=t.points,f=Tt(u,n,r),d=f.count,h=f.start,p=f.ilen,v=r||{},m=v.move,g=void 0===m||m,b=v.reverse,y=0,O=0,x=function(e){return(h+(b?p-e:e))%d},k=function(){s!==c&&(e.lineTo(y,c),e.lineTo(y,s),e.lineTo(y,l))};for(g&&(a=u[x(0)],e.moveTo(a.x,a.y)),i=0;i<=p;++i)if(!(a=u[x(i)]).skip){var w=a.x,j=a.y,S=0|w;S===o?(j<s?s=j:j>c&&(c=j),y=(O*y+w)/++O):(k(),e.lineTo(w,j),o=S,O=0,s=c=j),l=j}k()}function At(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?Dt:_t}Et.id="arc",Et.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Et.defaultRoutes={backgroundColor:"backgroundColor"};var Rt="function"===typeof Path2D;function Lt(e,t,n,r){Rt&&1===t.segments.length?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),Mt(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,a=t.segments,o=t.options,s=At(t),c=Object(f.a)(a);try{for(c.s();!(i=c.n()).done;){var l=i.value;Mt(e,o,l.style),e.beginPath(),s(e,t,l,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(u){c.e(u)}finally{c.f()}}(e,t,n,r)}var Nt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(Object(i.a)(r),e),r}return Object(p.a)(n,[{key:"updateControlPoints",value:function(e,t){var n=this,r=n.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!n._pointsUpdated){var i=r.spanGaps?n._loop:n._fullLoop;Object(v.bb)(n._points,r,e,i,t),n._pointsUpdated=!0}}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this,r=n.options,i=e[t],a=n.points,o=Object(v.db)(n,{property:t,start:i,end:i});if(o.length){var s,c,l=[],u=function(e){return e.stepped?v.eb:e.tension||"monotone"===e.cubicInterpolationMode?v.fb:v.gb}(r);for(s=0,c=o.length;s<c;++s){var f=o[s],d=f.start,h=f.end,p=a[d],m=a[h];if(p!==m){var g=u(p,m,Math.abs((i-p[t])/(m[t]-p[t])),r.stepped);g[t]=e[t],l.push(g)}else l.push(p)}return 1===l.length?l[0]:l}}},{key:"pathSegment",value:function(e,t,n){return At(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this,i=r.segments,a=At(r),o=r._loop;t=t||0,n=n||r.points.length-t;var s,c=Object(f.a)(i);try{for(c.s();!(s=c.n()).done;){o&=a(e,r,s.value,{start:t,end:t+n-1})}}catch(l){c.e(l)}finally{c.f()}return!!o}},{key:"draw",value:function(e,t,n,r){var i=this,a=i.options||{};(i.points||[]).length&&a.borderWidth&&(e.save(),Lt(e,i,n,r),e.restore(),i.animated&&(i._pointsUpdated=!1,i._path=void 0))}},{key:"points",set:function(e){var t=this;t._points=e,delete t._segments,delete t._path,t._pointsUpdated=!1},get:function(){return this._points}},{key:"segments",get:function(){return this._segments||(this._segments=Object(v.cb)(this,this.options.segment))}}]),n}(Ie);function It(e,t,n,r){var i=e.options,a=e.getProps([n],r)[n];return Math.abs(t-a)<i.radius+i.hitRadius}Nt.id="line",Nt.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Nt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Nt.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var zt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).options=void 0,r.parsed=void 0,r.skip=void 0,r.stop=void 0,e&&Object.assign(Object(i.a)(r),e),r}return Object(p.a)(n,[{key:"inRange",value:function(e,t,n){var r=this.options,i=this.getProps(["x","y"],n),a=i.x,o=i.y;return Math.pow(e-a,2)+Math.pow(t-o,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return It(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return It(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this,r=n.options;n.skip||r.radius<.1||!Object(v.Sb)(n,t,n.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Object(v.jb)(e,r,n.x,n.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(Ie);function $t(e,t){var n,r,i,a,o,s=e.getProps(["x","y","base","width","height"],t),c=s.x,l=s.y,u=s.base,f=s.width,d=s.height;return e.horizontal?(o=d/2,n=Math.min(c,u),r=Math.max(c,u),i=l-o,a=l+o):(n=c-(o=f/2),r=c+o,i=Math.min(l,u),a=Math.max(l,u)),{left:n,top:i,right:r,bottom:a}}function Ft(e,t,n,r){return e?0:Object(v.Kb)(t,n,r)}function Bt(e){var t=$t(e),n=t.right-t.left,r=t.bottom-t.top,i=function(e,t,n){var r=e.options.borderWidth,i=e.borderSkipped,a=Object(v.lb)(r);return{t:Ft(i.top,a.top,0,n),r:Ft(i.right,a.right,0,t),b:Ft(i.bottom,a.bottom,0,n),l:Ft(i.left,a.left,0,t)}}(e,n/2,r/2),a=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,a=Object(v.mb)(i),o=Math.min(t,n),s=e.borderSkipped,c=r||Object(v.Cb)(i);return{topLeft:Ft(!c||s.top||s.left,a.topLeft,0,o),topRight:Ft(!c||s.top||s.right,a.topRight,0,o),bottomLeft:Ft(!c||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:Ft(!c||s.bottom||s.right,a.bottomRight,0,o)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function Qt(e,t,n,r){var i=null===t,a=null===n,o=e&&!(i&&a)&&$t(e,r);return o&&(i||t>=o.left&&t<=o.right)&&(a||n>=o.top&&n<=o.bottom)}function Wt(e,t){e.rect(t.x,t.y,t.w,t.h)}function Ht(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}zt.id="point",zt.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},zt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Vt=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,e&&Object.assign(Object(i.a)(r),e),r}return Object(p.a)(n,[{key:"draw",value:function(e){var t,n=this.options,r=Bt(this),i=r.inner,a=r.outer,o=(t=a.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?v.kb:Wt,s=.33;e.save(),a.w===i.w&&a.h===i.h||(e.beginPath(),o(e,Ht(a,s,i)),e.clip(),o(e,Ht(i,-.33,a)),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),o(e,Ht(i,s,a)),e.fillStyle=n.backgroundColor,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return Qt(this,e,t,n)}},{key:"inXRange",value:function(e,t){return Qt(this,e,null,t)}},{key:"inYRange",value:function(e,t){return Qt(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,a=t.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(Ie);Vt.id="bar",Vt.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Vt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Ut=Object.freeze({__proto__:null,ArcElement:Et,LineElement:Nt,PointElement:zt,BarElement:Vt});function qt(e){if(e._decimated){var t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{value:t})}}function Yt(e){e.data.datasets.forEach((function(e){qt(e)}))}var Xt={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:function(e,t,n){if(n.enabled){var i=e.width;e.data.datasets.forEach((function(t,a){var o=t._data,s=t.indexAxis,c=e.getDatasetMeta(a),l=o||t.data;if("y"!==Object(v.C)([s,e.options.indexAxis])&&"line"===c.type){var u=e.scales[c.xAxisID];if(("linear"===u.type||"time"===u.type)&&!e.options.parsing){var f=function(e,t){var n=t.length,r=0,i=e.iScale,a=i.getUserBounds(),o=a.min,s=a.max,c=a.minDefined,l=a.maxDefined;return c&&(r=Object(v.Kb)(Object(v.Qb)(t,i.axis,o).lo,0,n-1)),{start:r,count:l?Object(v.Kb)(Object(v.Qb)(t,i.axis,s).hi+1,r,n)-r:n-r}}(c,l),d=f.start,h=f.count;if(h<=(n.threshold||4*i))qt(t);else{var p;switch(Object(v.Db)(o)&&(t._data=l,delete t.data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(e){this._data=e}})),n.algorithm){case"lttb":p=function(e,t,n,r,i){var a=i.samples||r;if(a>=n)return e.slice(t,t+n);var o,s,c,l,u,f=[],d=(n-2)/(a-2),h=0,p=t+n-1,v=t;for(f[h++]=e[v],o=0;o<a-2;o++){var m=0,g=0,b=void 0,y=Math.floor((o+1)*d)+1+t,O=Math.min(Math.floor((o+2)*d)+1,n)+t,x=O-y;for(b=y;b<O;b++)m+=e[b].x,g+=e[b].y;m/=x,g/=x;var k=Math.floor(o*d)+1+t,w=Math.min(Math.floor((o+1)*d)+1,n)+t,j=e[v],S=j.x,C=j.y;for(c=l=-1,b=k;b<w;b++)(l=.5*Math.abs((S-m)*(e[b].y-C)-(S-e[b].x)*(g-C)))>c&&(c=l,s=e[b],u=b);f[h++]=s,v=u}return f[h++]=e[p],f}(l,d,h,i,n);break;case"min-max":p=function(e,t,n,i){var a,o,s,c,l,u,f,d,h,p,m=0,g=0,b=[],y=t+n-1,O=e[t].x,x=e[y].x-O;for(a=t;a<t+n;++a){s=((o=e[a]).x-O)/x*i,c=o.y;var k=0|s;if(k===l)c<h?(h=c,u=a):c>p&&(p=c,f=a),m=(g*m+o.x)/++g;else{var w=a-1;if(!Object(v.Db)(u)&&!Object(v.Db)(f)){var j=Math.min(u,f),S=Math.max(u,f);j!==d&&j!==w&&b.push(Object(r.a)(Object(r.a)({},e[j]),{},{x:m})),S!==d&&S!==w&&b.push(Object(r.a)(Object(r.a)({},e[S]),{},{x:m}))}a>0&&w!==d&&b.push(e[w]),b.push(o),l=k,g=0,h=p=c,u=f=d=a}}return b}(l,d,h,i);break;default:throw new Error("Unsupported decimation algorithm '".concat(n.algorithm,"'"))}t._decimated=p}}}}))}else Yt(e)},destroy:function(e){Yt(e)}};function Kt(e,t,n){var r=function(e){var t=e.options,n=t.fill,r=Object(v.Pb)(n&&n.target,n);return void 0===r&&(r=!!t.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(e);if(Object(v.Cb)(r))return!isNaN(r.value)&&r;var i=parseFloat(r);return Object(v.Ab)(i)&&Math.floor(i)===i?("-"!==r[0]&&"+"!==r[0]||(i=t+i),!(i===t||i<0||i>=n)&&i):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}var Gt=function(){function e(t){Object(h.a)(this,e),this.x=t.x,this.y=t.y,this.radius=t.radius}return Object(p.a)(e,[{key:"pathSegment",value:function(e,t,n){var r=this.x,i=this.y,a=this.radius;return t=t||{start:0,end:v.u},e.arc(r,i,a,t.end,t.start,!0),!n.bounds}},{key:"interpolate",value:function(e){var t=this.x,n=this.y,r=this.radius,i=e.angle;return{x:t+Math.cos(i)*r,y:n+Math.sin(i)*r,angle:i}}}]),e}();function Zt(e){return(e.scale||{}).getPointPositionForValue?function(e){var t,n,r,i=e.scale,a=e.fill,o=i.options,s=i.getLabels().length,c=[],l=o.reverse?i.max:i.min,u=o.reverse?i.min:i.max;if(r="start"===a?l:"end"===a?u:Object(v.Cb)(a)?a.value:i.getBaseValue(),o.grid.circular)return n=i.getPointPositionForValue(0,l),new Gt({x:n.x,y:n.y,radius:i.getDistanceFromCenterForValue(r)});for(t=0;t<s;++t)c.push(i.getPointPositionForValue(t,r));return c}(e):function(e){var t,n=e.scale,r=void 0===n?{}:n,i=e.fill,a=null;return"start"===i?a=r.bottom:"end"===i?a=r.top:Object(v.Cb)(i)?a=r.getPixelForValue(i.value):r.getBasePixel&&(a=r.getBasePixel()),Object(v.Ab)(a)?{x:(t=r.isHorizontal())?a:null,y:t?null:a}:null}(e)}function Jt(e,t,n){for(;t>e;t--){var r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function en(e){var t=e.chart,n=e.scale,r=e.index,i=e.line,a=[],o=i.segments,s=i.points,c=function(e,t){for(var n=[],r=e.getSortedVisibleDatasetMetas(),i=0;i<r.length;i++){var a=r[i];if(a.index===t)break;tn(a)&&n.unshift(a.dataset)}return n}(t,r);c.push(an({x:null,y:n.bottom},i));for(var l=0;l<o.length;l++)for(var u=o[l],f=u.start;f<=u.end;f++)nn(a,s[f],c);return new Nt({points:a,options:{}})}var tn=function(e){return"line"===e.type&&!e.hidden};function nn(e,t,n){for(var r=[],i=0;i<n.length;i++){var a=rn(n[i],t,"x"),o=a.first,s=a.last,c=a.point;if(!(!c||o&&s))if(o)r.unshift(c);else if(e.push(c),!s)break}e.push.apply(e,r)}function rn(e,t,n){var r=e.interpolate(t,n);if(!r)return{};for(var i=r[n],a=e.segments,o=e.points,s=!1,c=!1,l=0;l<a.length;l++){var u=a[l],f=o[u.start][n],d=o[u.end][n];if(i>=f&&i<=d){s=i===f,c=i===d;break}}return{first:s,last:c,point:r}}function an(e,t){var n=[],r=!1;return Object(v.vb)(e)?(r=!0,n=e):n=function(e,t){var n=e||{},r=n.x,i=void 0===r?null:r,a=n.y,o=void 0===a?null:a,s=t.points,c=[];return t.segments.forEach((function(e){var t=e.start,n=e.end;n=Jt(t,n,s);var r=s[t],a=s[n];null!==o?(c.push({x:r.x,y:o}),c.push({x:a.x,y:o})):null!==i&&(c.push({x:i,y:r.y}),c.push({x:i,y:a.y}))})),c}(e,t),n.length?new Nt({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function on(e,t,n){var r,i=e[t].fill,a=[t];if(!n)return i;for(;!1!==i&&-1===a.indexOf(i);){if(!Object(v.Ab)(i))return i;if(!(r=e[i]))return!1;if(r.visible)return i;a.push(i),i=r.fill}return!1}function sn(e,t,n){e.beginPath(),t.path(e),e.lineTo(t.last().x,n),e.lineTo(t.first().x,n),e.closePath(),e.clip()}function cn(e,t,n,r){if(!r){var i=t[e],a=n[e];return"angle"===e&&(i=Object(v.ob)(i),a=Object(v.ob)(a)),{property:e,start:i,end:a}}}function ln(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function un(e,t,n){var r=t.chart.chartArea,i=r.top,a=r.bottom,o=n||{},s=o.property,c=o.start,l=o.end;"x"===s&&(e.beginPath(),e.rect(c,i,l-c,a-i),e.clip())}function fn(e,t,n,r){var i=t.interpolate(n,r);i&&e.lineTo(i.x,i.y)}function dn(e,t){var n,r=t.line,i=t.target,a=t.property,o=t.color,s=t.scale,c=function(e,t,n){var r,i=e.segments,a=e.points,o=t.points,s=[],c=Object(f.a)(i);try{for(c.s();!(r=c.n()).done;){var l=r.value,d=l.start,h=l.end;h=Jt(d,h,a);var p=cn(n,a[d],a[h],l.loop);if(t.segments){var m,g=Object(v.db)(t,p),b=Object(f.a)(g);try{for(b.s();!(m=b.n()).done;){var y,O=m.value,x=cn(n,o[O.start],o[O.end],O.loop),k=Object(v.nb)(l,a,x),w=Object(f.a)(k);try{for(w.s();!(y=w.n()).done;){var j=y.value;s.push({source:j,target:O,start:Object(u.a)({},n,ln(p,x,"start",Math.max)),end:Object(u.a)({},n,ln(p,x,"end",Math.min))})}}catch(S){w.e(S)}finally{w.f()}}}catch(S){b.e(S)}finally{b.f()}}else s.push({source:l,target:p,start:a[d],end:a[h]})}}catch(S){c.e(S)}finally{c.f()}return s}(r,i,a),l=Object(f.a)(c);try{for(l.s();!(n=l.n()).done;){var d=n.value,h=d.source,p=d.target,m=d.start,g=d.end,b=h.style,y=(b=void 0===b?{}:b).backgroundColor,O=void 0===y?o:y,x=!0!==i;e.save(),e.fillStyle=O,un(e,s,x&&cn(a,m,g)),e.beginPath();var k=!!r.pathSegment(e,h),w=void 0;if(x){k?e.closePath():fn(e,i,g,a);var j=!!i.pathSegment(e,p,{move:k,reverse:!0});(w=k&&j)||fn(e,i,m,a)}e.closePath(),e.fill(w?"evenodd":"nonzero"),e.restore()}}catch(S){l.e(S)}finally{l.f()}}function hn(e,t,n){var r=function(e){var t=e.chart,n=e.fill,r=e.line;if(Object(v.Ab)(n))return function(e,t){var n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}(t,n);if("stack"===n)return en(e);if("shape"===n)return!0;var i=Zt(e);return i instanceof Gt?i:an(i,r)}(t),i=t.line,a=t.scale,o=t.axis,s=i.options,c=s.fill,l=s.backgroundColor,u=c||{},f=u.above,d=void 0===f?l:f,h=u.below,p=void 0===h?l:h;r&&i.points.length&&(Object(v.v)(e,n),function(e,t){var n=t.line,r=t.target,i=t.above,a=t.below,o=t.area,s=t.scale,c=n._loop?"angle":t.axis;e.save(),"x"===c&&a!==i&&(sn(e,r,o.top),dn(e,{line:n,target:r,color:i,scale:s,property:c}),e.restore(),e.save(),sn(e,r,o.bottom)),dn(e,{line:n,target:r,color:a,scale:s,property:c}),e.restore()}(e,{line:i,target:r,above:d,below:p,area:n,scale:a,axis:o}),Object(v.x)(e))}var pn={id:"filler",afterDatasetsUpdate:function(e,t,n){var r,i,a,o,s=(e.data.datasets||[]).length,c=[];for(i=0;i<s;++i)o=null,(a=(r=e.getDatasetMeta(i)).dataset)&&a.options&&a instanceof Nt&&(o={visible:e.isDatasetVisible(i),index:i,fill:Kt(a,i,s),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:a}),r.$filler=o,c.push(o);for(i=0;i<s;++i)(o=c[i])&&!1!==o.fill&&(o.fill=on(c,i,n.propagate))},beforeDraw:function(e,t,n){for(var r="beforeDraw"===n.drawTime,i=e.getSortedVisibleDatasetMetas(),a=e.chartArea,o=i.length-1;o>=0;--o){var s=i[o].$filler;s&&(s.line.updateControlPoints(a,s.axis),r&&hn(e.ctx,s,a))}},beforeDatasetsDraw:function(e,t,n){if("beforeDatasetsDraw"===n.drawTime)for(var r=e.getSortedVisibleDatasetMetas(),i=r.length-1;i>=0;--i){var a=r[i].$filler;a&&hn(e.ctx,a,e.chartArea)}},beforeDatasetDraw:function(e,t,n){var r=t.meta.$filler;r&&!1!==r.fill&&"beforeDatasetDraw"===n.drawTime&&hn(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},vn=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,a=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),a=Math.min(a,t)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(t,r)}},mn=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Object(p.a)(n,[{key:"update",value:function(e,t,n){var r=this;r.maxWidth=e,r.maxHeight=t,r._margins=n,r.setDimensions(),r.buildLabels(),r.fit()}},{key:"setDimensions",value:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=e._margins.left,e.right=e.width):(e.height=e.maxHeight,e.top=e._margins.top,e.bottom=e.height)}},{key:"buildLabels",value:function(){var e=this,t=e.options.labels||{},n=Object(v.n)(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),e.options.reverse&&n.reverse(),e.legendItems=n}},{key:"fit",value:function(){var e=this,t=e.options,n=e.ctx;if(t.display){var r,i,a=t.labels,o=Object(v.y)(a.font),s=o.size,c=e._computeTitleHeight(),l=vn(a,s),u=l.boxWidth,f=l.itemHeight;n.font=o.string,e.isHorizontal()?(r=e.maxWidth,i=e._fitRows(c,s,u,f)+10):(i=e.maxHeight,r=e._fitCols(c,s,u,f)+10),e.width=Math.min(r,t.maxWidth||e.maxWidth),e.height=Math.min(i,t.maxHeight||e.maxHeight)}else e.width=e.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this,a=i.ctx,o=i.maxWidth,s=i.options.labels.padding,c=i.legendHitBoxes=[],l=i.lineWidths=[0],u=r+s,f=e;a.textAlign="left",a.textBaseline="middle";var d=-1,h=-u;return i.legendItems.forEach((function(e,i){var p=n+t/2+a.measureText(e.text).width;(0===i||l[l.length-1]+p+2*s>o)&&(f+=u,l[l.length-(i>0?0:1)]=0,h+=u,d++),c[i]={left:0,top:h,row:d,width:p,height:r},l[l.length-1]+=p+s})),f}},{key:"_fitCols",value:function(e,t,n,r){var i=this,a=i.ctx,o=i.maxHeight,s=i.options.labels.padding,c=i.legendHitBoxes=[],l=i.columnSizes=[],u=o-e,f=s,d=0,h=0,p=0,v=0;return i.legendItems.forEach((function(e,i){var o=n+t/2+a.measureText(e.text).width;i>0&&h+r+2*s>u&&(f+=d+s,l.push({width:d,height:h}),p+=d+s,v++,d=h=0),c[i]={left:p,top:h,col:v,width:o,height:r},d=Math.max(d,o),h+=r+s})),f+=d,l.push({width:d,height:h}),f}},{key:"adjustHitBoxes",value:function(){var e=this;if(e.options.display){var t=e._computeTitleHeight(),n=e.legendHitBoxes,r=e.options,i=r.align,a=r.labels.padding,o=r.rtl,s=Object(v.pb)(o,e.left,e.width);if(this.isHorizontal()){var c,l=0,u=Object(v.A)(i,e.left+a,e.right-e.lineWidths[l]),d=Object(f.a)(n);try{for(d.s();!(c=d.n()).done;){var h=c.value;l!==h.row&&(l=h.row,u=Object(v.A)(i,e.left+a,e.right-e.lineWidths[l])),h.top+=e.top+t+a,h.left=s.leftForLtr(s.x(u),h.width),u+=h.width+a}}catch(O){d.e(O)}finally{d.f()}}else{var p,m=0,g=Object(v.A)(i,e.top+t+a,e.bottom-e.columnSizes[m].height),b=Object(f.a)(n);try{for(b.s();!(p=b.n()).done;){var y=p.value;y.col!==m&&(m=y.col,g=Object(v.A)(i,e.top+t+a,e.bottom-e.columnSizes[m].height)),y.top=g,y.left+=e.left+a,y.left=s.leftForLtr(s.x(y.left),y.width),g+=y.height+a}}catch(O){b.e(O)}finally{b.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){var e=this;if(e.options.display){var t=e.ctx;Object(v.v)(t,e),e._draw(),Object(v.x)(t)}}},{key:"_draw",value:function(){var e,t=this,n=t.options,r=t.columnSizes,i=t.lineWidths,a=t.ctx,o=n.align,s=n.labels,c=v.xb.color,l=Object(v.pb)(n.rtl,t.left,t.width),u=Object(v.y)(s.font),f=s.color,d=s.padding,h=u.size,p=h/2;t.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=u.string;var m=vn(s,h),g=m.boxWidth,b=m.boxHeight,y=m.itemHeight,O=t.isHorizontal(),x=this._computeTitleHeight();e=O?{x:Object(v.A)(o,t.left+d,t.right-i[0]),y:t.top+d+x,line:0}:{x:t.left+d,y:Object(v.A)(o,t.top+x+d,t.bottom-r[0].height),line:0},Object(v.qb)(t.ctx,n.textDirection);var k=y+d;t.legendItems.forEach((function(m,w){a.strokeStyle=m.fontColor||f,a.fillStyle=m.fontColor||f;var j=a.measureText(m.text).width,S=l.textAlign(m.textAlign||(m.textAlign=s.textAlign)),C=g+p+j,E=e.x,M=e.y;l.setWidth(t.width),O?w>0&&E+C+d>t.right&&(M=e.y+=k,e.line++,E=e.x=Object(v.A)(o,t.left+d,t.right-i[e.line])):w>0&&M+k>t.bottom&&(E=e.x=E+r[e.line].width+d,e.line++,M=e.y=Object(v.A)(o,t.top+x+d,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(g)||g<=0||isNaN(b)||b<0)){a.save();var r=Object(v.Pb)(n.lineWidth,1);if(a.fillStyle=Object(v.Pb)(n.fillStyle,c),a.lineCap=Object(v.Pb)(n.lineCap,"butt"),a.lineDashOffset=Object(v.Pb)(n.lineDashOffset,0),a.lineJoin=Object(v.Pb)(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=Object(v.Pb)(n.strokeStyle,c),a.setLineDash(Object(v.Pb)(n.lineDash,[])),s.usePointStyle){var i={radius:g*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=l.xPlus(e,g/2),u=t+p;Object(v.jb)(a,i,o,u)}else{var f=t+Math.max((h-b)/2,0),d=l.leftForLtr(e,g),m=Object(v.mb)(n.borderRadius);a.beginPath(),Object.values(m).some((function(e){return 0!==e}))?Object(v.kb)(a,{x:d,y:f,w:g,h:b,radius:m}):a.rect(d,f,g,b),a.fill(),0!==r&&a.stroke()}a.restore()}}(l.x(E),M,m),E=Object(v.rb)(S,E+g+p,O?E+C:t.right,n.rtl),function(e,t,n){Object(v.w)(a,n.text,e,t+y/2,u,{strikethrough:n.hidden,textAlign:l.textAlign(n.textAlign)})}(l.x(E),M,m),O?e.x+=C+d:e.y+=k})),Object(v.sb)(t.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this,t=e.options,n=t.title,r=Object(v.y)(n.font),i=Object(v.b)(n.padding);if(n.display){var a,o=Object(v.pb)(t.rtl,e.left,e.width),s=e.ctx,c=n.position,l=r.size/2,u=i.top+l,f=e.left,h=e.width;if(this.isHorizontal())h=Math.max.apply(Math,Object(d.a)(e.lineWidths)),a=e.top+u,f=Object(v.A)(t.align,f,e.right-h);else{var p=e.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);a=u+Object(v.A)(t.align,e.top,e.bottom-p-t.labels.padding-e._computeTitleHeight())}var m=Object(v.A)(c,f,f+h);s.textAlign=o.textAlign(Object(v.z)(c)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Object(v.w)(s,n.text,m,a,r)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=Object(v.y)(e.font),n=Object(v.b)(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(i=a.legendHitBoxes,n=0;n<i.length;++n)if(e>=(r=i[n]).left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height)return a.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this,n=t.options;if(function(e,t){if("mousemove"===e&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,n)){var r,i,a=t._getLegendItemAt(e.x,e.y);if("mousemove"===e.type){var o=t._hoveredItem,s=(i=a,null!==(r=o)&&null!==i&&r.datasetIndex===i.datasetIndex&&r.index===i.index);o&&!s&&Object(v.n)(n.onLeave,[e,o,t],t),t._hoveredItem=a,a&&!s&&Object(v.n)(n.onHover,[e,a,t],t)}else a&&Object(v.n)(n.onClick,[e,a,t],t)}}}]),n}(Ie);var gn={id:"legend",_element:mn,start:function(e,t,n){var r=e.legend=new mn({ctx:e.ctx,options:n,chart:e});Oe(e,r,n),be(e,r)},stop:function(e){ye(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;Oe(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,a=n.textAlign,o=n.color;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),s=Object(v.b)(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(s.width+s.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:a||n.textAlign,borderRadius:0,datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}},bn=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).chart=e.chart,r.options=e.options,r.ctx=e.ctx,r._padding=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return Object(p.a)(n,[{key:"update",value:function(e,t){var n=this,r=n.options;if(n.left=0,n.top=0,r.display){n.width=n.right=e,n.height=n.bottom=t;var i=Object(v.vb)(r.text)?r.text.length:1;n._padding=Object(v.b)(r.padding);var a=i*Object(v.y)(r.font).lineHeight+n._padding.height;n.isHorizontal()?n.height=a:n.width=a}else n.width=n.height=n.right=n.bottom=0}},{key:"isHorizontal",value:function(){var e=this.options.position;return"top"===e||"bottom"===e}},{key:"_drawArgs",value:function(e){var t,n,r,i=this.top,a=this.left,o=this.bottom,s=this.right,c=this.options,l=c.align,u=0;return this.isHorizontal()?(n=Object(v.A)(l,a,s),r=i+e,t=s-a):("left"===c.position?(n=a+e,r=Object(v.A)(l,o,i),u=-.5*v.q):(n=s-e,r=Object(v.A)(l,i,o),u=.5*v.q),t=o-i),{titleX:n,titleY:r,maxWidth:t,rotation:u}}},{key:"draw",value:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var r=Object(v.y)(n.font),i=r.lineHeight/2+e._padding.top,a=e._drawArgs(i),o=a.titleX,s=a.titleY,c=a.maxWidth,l=a.rotation;Object(v.w)(t,n.text,0,0,r,{color:n.color,maxWidth:c,rotation:l,textAlign:Object(v.z)(n.align),textBaseline:"middle",translation:[o,s]})}}}]),n}(Ie);var yn={id:"title",_element:bn,start:function(e,t,n){!function(e,t){var n=new bn({ctx:e.ctx,options:t,chart:e});Oe(e,n,t),be(e,n),e.titleBlock=n}(e,n)},stop:function(e){var t=e.titleBlock;ye(e,t),delete e.titleBlock},beforeUpdate:function(e,t,n){var r=e.titleBlock;Oe(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},On=new WeakMap,xn={id:"subtitle",start:function(e,t,n){var r=new bn({ctx:e.ctx,options:n,chart:e});Oe(e,r,n),be(e,r),On.set(e,r)},stop:function(e){ye(e,On.get(e)),On.delete(e)},beforeUpdate:function(e,t,n){var r=On.get(e);Oe(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},kn={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t].element;if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(e,t){if(!e.length)return!1;var n,r,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var c=e[n].element;if(c&&c.hasValue()){var l=c.getCenterPoint(),u=Object(v.ub)(t,l);u<s&&(s=u,i=c)}}if(i){var f=i.tooltipPosition();a=f.x,o=f.y}return{x:a,y:o}}};function wn(e,t){return t&&(Object(v.vb)(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function jn(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Sn(e,t){var n=t.element,r=t.datasetIndex,i=t.index,a=e.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,c=o.value;return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:c,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Cn(e,t){var n=e._chart.ctx,r=e.body,i=e.footer,a=e.title,o=t.boxWidth,s=t.boxHeight,c=Object(v.y)(t.bodyFont),l=Object(v.y)(t.titleFont),u=Object(v.y)(t.footerFont),f=a.length,d=i.length,h=r.length,p=Object(v.b)(t.padding),m=p.height,g=0,b=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(b+=e.beforeBody.length+e.afterBody.length,f&&(m+=f*l.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),b)&&(m+=h*(t.displayColors?Math.max(s,c.lineHeight):c.lineHeight)+(b-h)*c.lineHeight+(b-1)*t.bodySpacing);d&&(m+=t.footerMarginTop+d*u.lineHeight+(d-1)*t.footerSpacing);var y=0,O=function(e){g=Math.max(g,n.measureText(e).width+y)};return n.save(),n.font=l.string,Object(v.c)(e.title,O),n.font=c.string,Object(v.c)(e.beforeBody.concat(e.afterBody),O),y=t.displayColors?o+2:0,Object(v.c)(r,(function(e){Object(v.c)(e.before,O),Object(v.c)(e.lines,O),Object(v.c)(e.after,O)})),y=0,n.font=u.string,Object(v.c)(e.footer,O),n.restore(),{width:g+=p.width,height:m}}function En(e,t,n,r){var i=n.x,a=n.width,o=e.width,s=e.chartArea,c=s.left,l=s.right,u="center";return"center"===r?u=i<=(c+l)/2?"left":"right":i<=a/2?u="left":i>=o-a/2&&(u="right"),function(e,t,n,r){var i=r.x,a=r.width,o=n.caretSize+n.caretPadding;return"left"===e&&i+a+o>t.width||"right"===e&&i-a-o<0||void 0}(u,e,t,n)&&(u="center"),u}function Mn(e,t,n){var r=t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:t.xAlign||En(e,t,n,r),yAlign:r}}function Pn(e,t,n,r){var i=e.caretSize,a=e.caretPadding,o=e.cornerRadius,s=n.xAlign,c=n.yAlign,l=i+a,u=o+a,f=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s),d=function(e,t,n){var r=e.y,i=e.height;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,c,l);return"center"===c?"left"===s?f+=l:"right"===s&&(f-=l):"left"===s?f-=u:"right"===s&&(f+=u),{x:Object(v.Kb)(f,0,r.width-t.width),y:Object(v.Kb)(d,0,r.height-t.height)}}function Tn(e,t,n){var r=Object(v.b)(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function _n(e){return wn([],jn(e))}function Dn(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var An=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this)).opacity=0,r._active=[],r._chart=e._chart,r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return Object(p.a)(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this,t=e._cachedAnimations;if(t)return t;var n=e._chart,r=e.options.setContext(e.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new x(e._chart,i);return i._cacheable&&(e._cachedAnimations=Object.freeze(a)),a}},{key:"getContext",value:function(){var e,t,n,r=this;return r.$context||(r.$context=(e=r._chart.getContext(),t=r,n=r._tooltipItems,Object.assign(Object.create(e),{tooltip:t,tooltipItems:n,type:"tooltip"})))}},{key:"getTitle",value:function(e,t){var n=this,r=t.callbacks,i=r.beforeTitle.apply(n,[e]),a=r.title.apply(n,[e]),o=r.afterTitle.apply(n,[e]),s=[];return s=wn(s,jn(i)),s=wn(s,jn(a)),s=wn(s,jn(o))}},{key:"getBeforeBody",value:function(e,t){return _n(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return Object(v.c)(e,(function(e){var t={before:[],lines:[],after:[]},a=Dn(r,e);wn(t.before,jn(a.beforeLabel.call(n,e))),wn(t.lines,a.label.call(n,e)),wn(t.after,jn(a.afterLabel.call(n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return _n(t.callbacks.afterBody.apply(this,[e]))}},{key:"getFooter",value:function(e,t){var n=this,r=t.callbacks,i=r.beforeFooter.apply(n,[e]),a=r.footer.apply(n,[e]),o=r.afterFooter.apply(n,[e]),s=[];return s=wn(s,jn(i)),s=wn(s,jn(a)),s=wn(s,jn(o))}},{key:"_createItems",value:function(e){var t,n,r=this,i=r._active,a=r._chart.data,o=[],s=[],c=[],l=[];for(t=0,n=i.length;t<n;++t)l.push(Sn(r._chart,i[t]));return e.filter&&(l=l.filter((function(t,n,r){return e.filter(t,n,r,a)}))),e.itemSort&&(l=l.sort((function(t,n){return e.itemSort(t,n,a)}))),Object(v.c)(l,(function(t){var n=Dn(e.callbacks,t);o.push(n.labelColor.call(r,t)),s.push(n.labelPointStyle.call(r,t)),c.push(n.labelTextColor.call(r,t))})),r.labelColors=o,r.labelPointStyles=s,r.labelTextColors=c,r.dataPoints=l,l}},{key:"update",value:function(e,t){var n,r=this,i=r.options.setContext(r.getContext()),a=r._active,o=[];if(a.length){var s=kn[i.position].call(r,a,r._eventPosition);o=r._createItems(i),r.title=r.getTitle(o,i),r.beforeBody=r.getBeforeBody(o,i),r.body=r.getBody(o,i),r.afterBody=r.getAfterBody(o,i),r.footer=r.getFooter(o,i);var c=r._size=Cn(r,i),l=Object.assign({},s,c),u=Mn(r._chart,i,l),f=Pn(i,l,u,r._chart);r.xAlign=u.xAlign,r.yAlign=u.yAlign,n={opacity:1,x:f.x,y:f.y,width:c.width,height:c.height,caretX:s.x,caretY:s.y}}else 0!==r.opacity&&(n={opacity:0});r._tooltipItems=o,r.$context=void 0,n&&r._resolveAnimations().update(r,n),e&&i.external&&i.external.call(r,{chart:r._chart,tooltip:r,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,i,a,o,s,c,l=this.xAlign,u=this.yAlign,f=n.cornerRadius,d=n.caretSize,h=e.x,p=e.y,v=t.width,m=t.height;return"center"===u?(s=p+m/2,"left"===l?(i=(r=h)-d,o=s+d,c=s-d):(i=(r=h+v)+d,o=s-d,c=s+d),a=r):(i="left"===l?h+f+d:"right"===l?h+v-f-d:this.caretX,"top"===u?(s=(o=p)-d,r=i-d,a=i+d):(s=(o=p+m)+d,r=i+d,a=i-d),c=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:c}}},{key:"drawTitle",value:function(e,t,n){var r,i,a,o=this,s=o.title,c=s.length;if(c){var l=Object(v.pb)(n.rtl,o.x,o.width);for(e.x=Tn(o,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=Object(v.y)(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,a=0;a<c;++a)t.fillText(s[a],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,a+1===c&&(e.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(e,t,n,r,i){var a=this,o=a.labelColors[n],s=a.labelPointStyles[n],c=i.boxHeight,l=i.boxWidth,u=Object(v.y)(i.bodyFont),f=Tn(a,"left",i),d=r.x(f),h=c<u.lineHeight?(u.lineHeight-c)/2:0,p=t.y+h;if(i.usePointStyle){var m={radius:Math.min(l,c)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},g=r.leftForLtr(d,l)+l/2,b=p+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Object(v.jb)(e,m,g,b),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Object(v.jb)(e,m,g,b)}else{e.lineWidth=o.borderWidth||1,e.strokeStyle=o.borderColor,e.setLineDash(o.borderDash||[]),e.lineDashOffset=o.borderDashOffset||0;var y=r.leftForLtr(d,l),O=r.leftForLtr(r.xPlus(d,1),l-2),x=Object(v.mb)(o.borderRadius);Object.values(x).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Object(v.kb)(e,{x:y,y:p,w:l,h:c,radius:x}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Object(v.kb)(e,{x:O,y:p+1,w:l-2,h:c-2,radius:x}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(y,p,l,c),e.strokeRect(y,p,l,c),e.fillStyle=o.backgroundColor,e.fillRect(O,p+1,l-2,c-2))}e.fillStyle=a.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,a,o,s,c,l,u=this,f=u.body,d=n.bodySpacing,h=n.bodyAlign,p=n.displayColors,m=n.boxHeight,g=n.boxWidth,b=Object(v.y)(n.bodyFont),y=b.lineHeight,O=0,x=Object(v.pb)(n.rtl,u.x,u.width),k=function(n){t.fillText(n,x.x(e.x+O),e.y+y/2),e.y+=y+d},w=x.textAlign(h);for(t.textAlign=h,t.textBaseline="middle",t.font=b.string,e.x=Tn(u,w,n),t.fillStyle=n.bodyColor,Object(v.c)(u.beforeBody,k),O=p&&"right"!==w?"center"===h?g/2+1:g+2:0,o=0,c=f.length;o<c;++o){for(r=f[o],i=u.labelTextColors[o],t.fillStyle=i,Object(v.c)(r.before,k),a=r.lines,p&&a.length&&(u._drawColorBox(t,e,o,x,n),y=Math.max(b.lineHeight,m)),s=0,l=a.length;s<l;++s)k(a[s]),y=b.lineHeight;Object(v.c)(r.after,k)}O=0,y=b.lineHeight,Object(v.c)(u.afterBody,k),e.y-=d}},{key:"drawFooter",value:function(e,t,n){var r,i,a=this,o=a.footer,s=o.length;if(s){var c=Object(v.pb)(n.rtl,a.x,a.width);for(e.x=Tn(a,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=c.textAlign(n.footerAlign),t.textBaseline="middle",r=Object(v.y)(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<s;++i)t.fillText(o[i],c.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var i=this.xAlign,a=this.yAlign,o=e.x,s=e.y,c=n.width,l=n.height,u=r.cornerRadius;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+u,s),"top"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+c-u,s),t.quadraticCurveTo(o+c,s,o+c,s+u),"center"===a&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+c,s+l-u),t.quadraticCurveTo(o+c,s+l,o+c-u,s+l),"bottom"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+u,s+l),t.quadraticCurveTo(o,s+l,o,s+l-u),"center"===a&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(o,s+u),t.quadraticCurveTo(o,s,o+u,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this,n=t._chart,r=t.$animations,i=r&&r.x,a=r&&r.y;if(i||a){var o=kn[e.position].call(t,t._active,t._eventPosition);if(!o)return;var s=t._size=Cn(t,e),c=Object.assign({},o,t._size),l=Mn(n,e,c),u=Pn(e,c,l,n);i._to===u.x&&a._to===u.y||(t.xAlign=l.xAlign,t.yAlign=l.yAlign,t.width=s.width,t.height=s.height,t.caretX=o.x,t.caretY=o.y,t._resolveAnimations().update(t,u))}}},{key:"draw",value:function(e){var t=this,n=t.options.setContext(t.getContext()),r=t.opacity;if(r){t._updateAnimationTarget(n);var i={width:t.width,height:t.height},a={x:t.x,y:t.y};r=Math.abs(r)<.001?0:r;var o=Object(v.b)(n.padding),s=t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length;n.enabled&&s&&(e.save(),e.globalAlpha=r,t.drawBackground(a,e,i,n),Object(v.qb)(e,n.textDirection),a.y+=o.top,t.drawTitle(a,e,n),t.drawBody(a,e,n),t.drawFooter(a,e,n),Object(v.sb)(e,n.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=n._active,i=e.map((function(e){var t=e.datasetIndex,r=e.index,i=n._chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[r],index:r}})),a=!Object(v.Y)(r,i),o=n._positionChanged(i,t);(a||o)&&(n._active=i,n._eventPosition=t,n.update(!0))}},{key:"handleEvent",value:function(e,t){var n,r=this,i=r.options,a=r._active||[],o=[];"mouseout"!==e.type&&(o=r._chart.getElementsAtEventForMode(e,i.mode,i,t),i.reverse&&o.reverse());var s=r._positionChanged(o,e);return(n=t||!Object(v.Y)(o,a)||s)&&(r._active=o,(i.enabled||i.external)&&(r._eventPosition={x:e.x,y:e.y},r.update(!0,t))),n}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,i=this.options,a=kn[i.position].call(this,e,t);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(Ie);An.positioners=kn;var Rn={id:"tooltip",_element:An,positioners:kn,afterInit:function(e,t,n){n&&(e.tooltip=new An({_chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip,n={tooltip:t};!1!==e.notifyPlugins("beforeTooltipDraw",n)&&(t&&t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n))},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.bodyFont.size},multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:v.tb,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:v.tb,beforeBody:v.tb,beforeLabel:v.tb,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return Object(v.Db)(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:v.tb,afterBody:v.tb,beforeFooter:v.tb,footer:v.tb,afterFooter:v.tb}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},Ln=Object.freeze({__proto__:null,Decimation:Xt,Filler:pn,Legend:gn,SubTitle:xn,Title:yn,Tooltip:Rn});function Nn(e,t,n){var r=e.indexOf(t);return-1===r?function(e,t,n){return"string"===typeof t?e.push(t)-1:isNaN(t)?null:n}(e,t,n):r!==e.lastIndexOf(t)?n:r}var In=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r}return Object(p.a)(n,[{key:"parse",value:function(e,t){if(Object(v.Db)(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:Object(v.Kb)(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:Nn(n,e,Object(v.Pb)(t,e)),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this,t=e.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=e.getMinMax(!0),a=i.min,o=i.max;"ticks"===e.options.bounds&&(n||(a=0),r||(o=e.getLabels().length-1)),e.min=a,e.max=o}},{key:"buildTicks",value:function(){var e=this,t=e.min,n=e.max,r=e.options.offset,i=[],a=e.getLabels();a=0===t&&n===a.length-1?a:a.slice(t,n+1),e._valueRange=Math.max(a.length-(r?0:1),1),e._startValue=e.min-(r?.5:0);for(var o=t;o<=n;o++)i.push({value:o});return i}},{key:"getLabelForValue",value:function(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}},{key:"configure",value:function(){var e=this;Object(a.a)(Object(o.a)(n.prototype),"configure",this).call(this),e.isHorizontal()||(e._reversePixels=!e._reversePixels)}},{key:"getPixelForValue",value:function(e){var t=this;return"number"!==typeof e&&(e=t.parse(e)),null===e?NaN:t.getPixelForDecimal((e-t._startValue)/t._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){var t=this;return Math.round(t._startValue+t.getDecimalForPixel(e)*t._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(Ye);function zn(e,t,n){var r=n.horizontal,i=n.minRotation,a=Object(v.Nb)(i),o=(r?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}In.id="category",In.defaults={ticks:{callback:In.prototype.getLabelForValue}};var $n=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return Object(p.a)(n,[{key:"parse",value:function(e,t){return Object(v.Db)(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this,t=e.options.beginAtZero,n=e.getUserBounds(),r=n.minDefined,i=n.maxDefined,a=e.min,o=e.max,s=function(e){return a=r?a:e},c=function(e){return o=i?o:e};if(t){var l=Object(v.Mb)(a),u=Object(v.Mb)(o);l<0&&u<0?c(0):l>0&&u>0&&s(0)}if(a===o){var f=1;(o>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(f=Math.abs(.05*o)),c(o+f),t||s(a-f)}e.min=a,e.max=o}},{key:"getTickLimit",value:function(){var e,t=this,n=t.options.ticks,r=n.maxTicksLimit,i=n.stepSize;return i?e=Math.ceil(t.max/i)-Math.floor(t.min/i)+1:(e=t.computeTickLimit(),r=r||11),r&&(e=Math.min(r,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=t.ticks,r=e.getTickLimit(),i=function(e,t){var n,r,i,a,o=[],s=e.bounds,c=e.step,l=e.min,u=e.max,f=e.precision,d=e.count,h=e.maxTicks,p=e.maxDigits,m=e.includeBounds,g=c||1,b=h-1,y=t.min,O=t.max,x=!Object(v.Db)(l),k=!Object(v.Db)(u),w=!Object(v.Db)(d),j=(O-y)/(p+1),S=Object(v.O)((O-y)/b/g)*g;if(S<1e-14&&!x&&!k)return[{value:y},{value:O}];(a=Math.ceil(O/S)-Math.floor(y/S))>b&&(S=Object(v.O)(a*S/b/g)*g),Object(v.Db)(f)||(n=Math.pow(10,f),S=Math.ceil(S*n)/n),"ticks"===s?(r=Math.floor(y/S)*S,i=Math.ceil(O/S)*S):(r=y,i=O),x&&k&&c&&Object(v.P)((u-l)/c,S/1e3)?(S=(u-l)/(a=Math.round(Math.min((u-l)/S,h))),r=l,i=u):w?S=((i=k?u:i)-(r=x?l:r))/(a=d-1):(a=(i-r)/S,a=Object(v.Q)(a,Math.round(a),S/1e3)?Math.round(a):Math.ceil(a));var C=Math.max(Object(v.R)(S),Object(v.R)(r));n=Math.pow(10,Object(v.Db)(f)?C:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var E=0;for(x&&(m&&r!==l?(o.push({value:l}),r<l&&E++,Object(v.Q)(Math.round((r+E*S)*n)/n,l,zn(l,j,e))&&E++):r<l&&E++);E<a;++E)o.push({value:Math.round((r+E*S)*n)/n});return k&&m&&i!==u?Object(v.Q)(o[o.length-1].value,u,zn(u,j,e))?o[o.length-1].value=u:o.push({value:u}):k&&i!==u||o.push({value:i}),o}({maxTicks:r=Math.max(2,r),bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:e._maxDigits(),horizontal:e.isHorizontal(),minRotation:n.minRotation||0,includeBounds:!1!==n.includeBounds},e._range||e);return"ticks"===t.bounds&&Object(v.N)(i,e,"value"),t.reverse?(i.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),i}},{key:"configure",value:function(){var e=this,t=e.ticks,r=e.min,i=e.max;if(Object(a.a)(Object(o.a)(n.prototype),"configure",this).call(this),e.options.offset&&t.length){var s=(i-r)/Math.max(t.length-1,1)/2;r-=s,i+=s}e._startValue=r,e._endValue=i,e._valueRange=i-r}},{key:"getLabelForValue",value:function(e){return Object(v.Hb)(e,this.chart.options.locale)}}]),n}(Ye),Fn=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){return Object(h.a)(this,n),t.apply(this,arguments)}return Object(p.a)(n,[{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!0),n=t.min,r=t.max;e.min=Object(v.Ab)(n)?n:0,e.max=Object(v.Ab)(r)?r:1,e.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this,t=e.isHorizontal(),n=t?e.width:e.height,r=Object(v.Nb)(e.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=e._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.lineHeight/i))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}($n);function Bn(e){return 1===e/Math.pow(10,Math.floor(Object(v.k)(e)))}Fn.id="linear",Fn.defaults={ticks:{callback:$e.formatters.numeric}};var Qn=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return Object(p.a)(n,[{key:"parse",value:function(e,t){var n=$n.prototype.parse.apply(this,[e,t]);if(0!==n)return Object(v.Ab)(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!0),n=t.min,r=t.max;e.min=Object(v.Ab)(n)?Math.max(0,n):null,e.max=Object(v.Ab)(r)?Math.max(0,r):null,e.options.beginAtZero&&(e._zero=!0),e.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this,t=e.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=e.min,a=e.max,o=function(e){return i=n?i:e},s=function(e){return a=r?a:e},c=function(e,t){return Math.pow(10,Math.floor(Object(v.k)(e))+t)};i===a&&(i<=0?(o(1),s(10)):(o(c(i,-1)),s(c(a,1)))),i<=0&&o(c(a,-1)),a<=0&&s(c(i,1)),e._zero&&e.min!==e._suggestedMin&&i===c(e.min,0)&&o(c(i,-1)),e.min=i,e.max=a}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=function(e,t){var n=Math.floor(Object(v.k)(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],a=Object(v.m)(e.min,Math.pow(10,Math.floor(Object(v.k)(t.min)))),o=Math.floor(Object(v.k)(a)),s=Math.floor(a/Math.pow(10,o)),c=o<0?Math.pow(10,Math.abs(o)):1;do{i.push({value:a,major:Bn(a)}),10===++s&&(s=1,c=++o>=0?1:c),a=Math.round(s*Math.pow(10,o)*c)/c}while(o<n||o===n&&s<r);var l=Object(v.m)(e.max,a);return i.push({value:l,major:Bn(a)}),i}({min:e._userMin,max:e._userMax},e);return"ticks"===t.bounds&&Object(v.N)(n,e,"value"),t.reverse?(n.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":Object(v.Hb)(e,this.chart.options.locale)}},{key:"configure",value:function(){var e=this,t=e.min;Object(a.a)(Object(o.a)(n.prototype),"configure",this).call(this),e._startValue=Object(v.k)(t),e._valueRange=Object(v.k)(e.max)-Object(v.k)(t)}},{key:"getPixelForValue",value:function(e){var t=this;return void 0!==e&&0!==e||(e=t.min),null===e||isNaN(e)?NaN:t.getPixelForDecimal(e===t.min?0:(Object(v.k)(e)-t._startValue)/t._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this,n=t.getDecimalForPixel(e);return Math.pow(10,t._startValue+n*t._valueRange)}}]),n}(Ye);function Wn(e){var t=e.ticks;if(t.display&&e.display){var n=Object(v.b)(t.backdropPadding);return Object(v.Pb)(t.font&&t.font.size,v.xb.font.size)+n.height}return 0}function Hn(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Vn(e){for(var t,n,r,i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={},o=[],s=[],c=e.getLabels().length,l=0;l<c;l++){var u=e.options.pointLabels.setContext(e.getPointLabelContext(l));s[l]=u.padding;var f=e.getPointPosition(l,e.drawingArea+s[l]),d=Object(v.y)(u.font),h=(t=e.ctx,n=d,r=e._pointLabels[l],r=Object(v.vb)(r)?r:[r],{w:Object(v.S)(t,n.string,r),h:r.length*n.lineHeight});o[l]=h;var p=e.getIndexAngle(l),m=Object(v.p)(p),g=Hn(m,f.x,h.w,0,180),b=Hn(m,f.y,h.h,90,270);g.start<i.l&&(i.l=g.start,a.l=p),g.end>i.r&&(i.r=g.end,a.r=p),b.start<i.t&&(i.t=b.start,a.t=p),b.end>i.b&&(i.b=b.end,a.b=p)}e._setReductions(e.drawingArea,i,a),e._pointLabelItems=function(e,t,n){for(var r=[],i=e.getLabels().length,a=e.options,o=Wn(a),s=e.getDistanceFromCenterForValue(a.ticks.reverse?e.min:e.max),c=0;c<i;c++){var l=0===c?o/2:0,u=e.getPointPosition(c,s+l+n[c]),f=Object(v.p)(e.getIndexAngle(c)),d=t[c],h=Yn(u.y,d.h,f),p=Un(f),m=qn(u.x,d.w,p);r.push({x:u.x,y:h,textAlign:p,left:m,top:h,right:m+d.w,bottom:h+d.h})}return r}(e,o,s)}function Un(e){return 0===e||180===e?"center":e<180?"left":"right"}function qn(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function Yn(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function Xn(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,v.u);else{var a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(var o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}function Kn(e){return Object(v.Jb)(e)?e:0}Qn.id="logarithmic",Qn.defaults={ticks:{callback:$e.formatters.logarithmic,major:{enabled:!0}}};var Gn=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this,e)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return Object(p.a)(n,[{key:"setDimensions",value:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=Wn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2}},{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!1),n=t.min,r=t.max;e.min=Object(v.Ab)(n)&&!isNaN(n)?n:0,e.max=Object(v.Ab)(r)&&!isNaN(r)?r:0,e.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/Wn(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;$n.prototype.generateTickLabels.call(t,e),t._pointLabels=t.getLabels().map((function(e,n){var r=Object(v.n)(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""}))}},{key:"fit",value:function(){var e=this,t=e.options;t.display&&t.pointLabels.display?Vn(e):e.setCenterPoint(0,0,0,0)}},{key:"_setReductions",value:function(e,t,n){var r=this,i=t.l/Math.sin(n.l),a=Math.max(t.r-r.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=Kn(i),a=Kn(a),o=Kn(o),s=Kn(s),r.drawingArea=Math.max(e/2,Math.min(Math.floor(e-(i+a)/2),Math.floor(e-(o+s)/2))),r.setCenterPoint(i,a,o,s)}},{key:"setCenterPoint",value:function(e,t,n,r){var i=this,a=i.width-t-i.drawingArea,o=e+i.drawingArea,s=n+i.drawingArea,c=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+c)/2+i.top+i.paddingTop)}},{key:"getIndexAngle",value:function(e){var t=v.u/this.getLabels().length,n=this.options.startAngle||0;return Object(v.ob)(e*t+Object(v.Nb)(n))}},{key:"getDistanceFromCenterForValue",value:function(e){var t=this;if(Object(v.Db)(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.reverse?(t.max-e)*n:(e-t.min)*n}},{key:"getValueForDistanceFromCenter",value:function(e){if(Object(v.Db)(e))return NaN;var t=this,n=e/(t.drawingArea/(t.max-t.min));return t.options.reverse?t.max-n:t.min+n}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return Object.assign(Object.create(e),{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=this,r=n.getIndexAngle(e)-v.i;return{x:Math.cos(r)*t+n.xCenter,y:Math.sin(r)*t+n.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this,t=e.options,n=t.backgroundColor,r=t.grid.circular;if(n){var i=e.ctx;i.save(),i.beginPath(),Xn(e,e.getDistanceFromCenterForValue(e._endValue),r,e.getLabels().length),i.closePath(),i.fillStyle=n,i.fill(),i.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,i=r.ctx,a=r.options,o=a.angleLines,s=a.grid,c=r.getLabels().length;if(a.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,i=t-1;i>=0;i--){var a=r.setContext(e.getPointLabelContext(i)),o=Object(v.y)(a.font),s=e._pointLabelItems[i],c=s.x,l=s.y,u=s.textAlign,f=s.left,d=s.top,h=s.right,p=s.bottom,m=a.backdropColor;if(!Object(v.Db)(m)){var g=Object(v.b)(a.backdropPadding);n.fillStyle=m,n.fillRect(f-g.left,d-g.top,h-f+g.width,p-d+g.height)}Object(v.w)(n,e._pointLabels[i],c,l+o.lineHeight/2,o,{color:a.color,textAlign:u,textBaseline:"middle"})}}(r,c),s.display&&r.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var i=s.setContext(r.getContext(n-1));!function(e,t,n,r){var i=e.ctx,a=t.circular,o=t.color,s=t.lineWidth;!a&&!r||!o||!s||n<0||(i.save(),i.strokeStyle=o,i.lineWidth=s,i.setLineDash(t.borderDash),i.lineDashOffset=t.borderDashOffset,i.beginPath(),Xn(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(r,i,t,c)}})),o.display){for(i.save(),e=r.getLabels().length-1;e>=0;e--){var l=o.setContext(r.getPointLabelContext(e)),u=l.color,f=l.lineWidth;f&&u&&(i.lineWidth=f,i.strokeStyle=u,i.setLineDash(l.borderDash),i.lineDashOffset=l.borderDashOffset,t=r.getDistanceFromCenterForValue(a.ticks.reverse?r.min:r.max),n=r.getPointPosition(e,t),i.beginPath(),i.moveTo(r.xCenter,r.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=e.ctx,n=e.options,r=n.ticks;if(r.display){var i,a,o=e.getIndexAngle(0);t.save(),t.translate(e.xCenter,e.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",e.ticks.forEach((function(o,s){if(0!==s||n.reverse){var c=r.setContext(e.getContext(s)),l=Object(v.y)(c.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),c.showLabelBackdrop){t.font=l.string,a=t.measureText(o.label).width,t.fillStyle=c.backdropColor;var u=Object(v.b)(c.backdropPadding);t.fillRect(-a/2-u.left,-i-l.size/2-u.top,a+u.width,l.size+u.height)}Object(v.w)(t,o.label,0,-i,l,{color:c.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}($n);Gn.id="radialLinear",Gn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:$e.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5}},Gn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},Gn.descriptors={angleLines:{_fallback:"grid"}};var Zn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Jn=Object.keys(Zn);function er(e,t){return e-t}function tr(e,t){if(Object(v.Db)(t))return null;var n=e._adapter,r=e._parseOpts,i=r.parser,a=r.round,o=r.isoWeekday,s=t;return"function"===typeof i&&(s=i(s)),Object(v.Ab)(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!Object(v.Jb)(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function nr(e,t,n,r){for(var i=Jn.length,a=Jn.indexOf(e);a<i-1;++a){var o=Zn[Jn[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return Jn[a]}return Jn[i-1]}function rr(e,t,n){if(n){if(n.length){var r=Object(v.U)(n,t),i=r.lo,a=r.hi;e[n[i]>=t?n[i]:n[a]]=!0}}else e[t]=!0}function ir(e,t,n){var r,i,a=[],o={},s=t.length;for(r=0;r<s;++r)o[i=t[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,r){var i,a,o=e._adapter,s=+o.startOf(t[0].value,r),c=t[t.length-1].value;for(i=s;i<=c;i=+o.add(i,1,r))(a=n[i])>=0&&(t[a].major=!0);return t}(e,a,o,n):a}var ar=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return Object(p.a)(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),i=this._adapter=new Z._date(e.adapters.date);Object(v.K)(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},Object(a.a)(Object(o.a)(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:tr(this,e)}},{key:"beforeLayout",value:function(){Object(a.a)(Object(o.a)(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this,t=e.options,n=e._adapter,r=t.time.unit||"day",i=e.getUserBounds(),a=i.min,o=i.max,s=i.minDefined,c=i.maxDefined;function l(e){s||isNaN(e.min)||(a=Math.min(a,e.min)),c||isNaN(e.max)||(o=Math.max(o,e.max))}s&&c||(l(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(e.getMinMax(!1))),a=Object(v.Ab)(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),o=Object(v.Ab)(o)&&!isNaN(o)?o:+n.endOf(Date.now(),r)+1,e.min=Math.min(a,o-1),e.max=Math.max(a+1,o)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this,t=e.options,n=t.time,r=t.ticks,i="labels"===r.source?e.getLabelTimestamps():e._generate();"ticks"===t.bounds&&i.length&&(e.min=e._userMin||i[0],e.max=e._userMax||i[i.length-1]);var a=e.min,o=e.max,s=Object(v.T)(i,a,o);return e._unit=n.unit||(r.autoSkip?nr(n.minUnit,e.min,e.max,e._getLabelCapacity(a)):function(e,t,n,r,i){for(var a=Jn.length-1;a>=Jn.indexOf(n);a--){var o=Jn[a];if(Zn[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return Jn[n?Jn.indexOf(n):0]}(e,s.length,n.minUnit,e.min,e.max)),e._majorUnit=r.major.enabled&&"year"!==e._unit?function(e){for(var t=Jn.indexOf(e)+1,n=Jn.length;t<n;++t)if(Zn[Jn[t]].common)return Jn[t]}(e._unit):void 0,e.initOffsets(i),t.reverse&&s.reverse(),ir(e,s,e._majorUnit)}},{key:"initOffsets",value:function(e){var t,n,r=this,i=0,a=0;r.options.offset&&e.length&&(t=r.getDecimalForValue(e[0]),i=1===e.length?1-t:(r.getDecimalForValue(e[1])-t)/2,n=r.getDecimalForValue(e[e.length-1]),a=1===e.length?n:(n-r.getDecimalForValue(e[e.length-2]))/2);var o=e.length<3?.5:.25;i=Object(v.Kb)(i,0,o),a=Object(v.Kb)(a,0,o),r._offsets={start:i,end:a,factor:1/(i+1+a)}}},{key:"_generate",value:function(){var e,t,n=this,r=n._adapter,i=n.min,a=n.max,o=n.options,s=o.time,c=s.unit||nr(s.minUnit,i,a,n._getLabelCapacity(i)),l=Object(v.Pb)(s.stepSize,1),u="week"===c&&s.isoWeekday,f=Object(v.Jb)(u)||!0===u,d={},h=i;if(f&&(h=+r.startOf(h,"isoWeek",u)),h=+r.startOf(h,f?"day":c),r.diff(a,i,c)>1e5*l)throw new Error(i+" and "+a+" are too far apart with stepSize of "+l+" "+c);var p="data"===o.ticks.source&&n.getDataTimestamps();for(e=h,t=0;e<a;e=+r.add(e,l,c),t++)rr(d,e,p);return e!==a&&"ticks"!==o.bounds&&1!==t||rr(d,e,p),Object.keys(d).sort((function(e,t){return e-t})).map((function(e){return+e}))}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var i=this,a=i.options,o=a.time.displayFormats,s=i._unit,c=i._majorUnit,l=s&&o[s],u=c&&o[c],f=n[t],d=c&&u&&f&&f.major,h=i._adapter.format(e,r||(d?u:l)),p=a.ticks.callback;return p?Object(v.n)(p,[h,t,n],i):h}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){var t=this;return null===e?NaN:(e-t.min)/(t.max-t.min)}},{key:"getPixelForValue",value:function(e){var t=this,n=t._offsets,r=t.getDecimalForValue(e);return t.getPixelForDecimal((n.start+r)*n.factor)}},{key:"getValueForPixel",value:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end;return t.min+r*(t.max-t.min)}},{key:"_getLabelSize",value:function(e){var t=this,n=t.options.ticks,r=t.ctx.measureText(e).width,i=Object(v.Nb)(t.isHorizontal()?n.maxRotation:n.minRotation),a=Math.cos(i),o=Math.sin(i),s=t._resolveTickFontOptions(0).size;return{w:r*a+s*o,h:r*o+s*a}}},{key:"_getLabelCapacity",value:function(e){var t=this,n=t.options.time,r=n.displayFormats,i=r[n.unit]||r.millisecond,a=t._tickFormatFunction(e,0,ir(t,[e],t._majorUnit),i),o=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h)-1;return s>0?s:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this,r=n._cache.data||[];if(r.length)return r;var i=n.getMatchingVisibleMetas();if(n._normalized&&i.length)return n._cache.data=i[0].controller.getAllParsedValues(n);for(e=0,t=i.length;e<t;++e)r=r.concat(i[e].controller.getAllParsedValues(n));return n._cache.data=n.normalize(r)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this,r=n._cache.labels||[];if(r.length)return r;var i=n.getLabels();for(e=0,t=i.length;e<t;++e)r.push(tr(n,i[e]));return n._cache.labels=n._normalized?r:n.normalize(r)}},{key:"normalize",value:function(e){return Object(v.B)(e.sort(er))}}]),n}(Ye);function or(e,t,n){var r,i,a,o,s=0,c=e.length-1;if(n){if(t>=e[s].pos&&t<=e[c].pos){var l=Object(v.Qb)(e,"pos",t);s=l.lo,c=l.hi}var u=e[s];r=u.pos,a=u.time;var f=e[c];i=f.pos,o=f.time}else{if(t>=e[s].time&&t<=e[c].time){var d=Object(v.Qb)(e,"time",t);s=d.lo,c=d.hi}var h=e[s];r=h.time,a=h.pos;var p=e[c];i=p.time,o=p.pos}var m=i-r;return m?a+(o-a)*(t-r)/m:a}ar.id="time",ar.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var sr=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;return Object(h.a)(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Object(p.a)(n,[{key:"initOffsets",value:function(){var e=this,t=e._getTimestampsForTable(),r=e._table=e.buildLookupTable(t);e._minPos=or(r,e.min),e._tableRange=or(r,e.max)-e._minPos,Object(a.a)(Object(o.a)(n.prototype),"initOffsets",this).call(this,t)}},{key:"buildLookupTable",value:function(e){var t,n,r,i,a,o=this.min,s=this.max,c=[],l=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=o&&i<=s&&c.push(i);if(c.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(t=0,n=c.length;t<n;++t)a=c[t+1],r=c[t-1],i=c[t],Math.round((a+r)/2)!==i&&l.push({time:i,pos:t/(n-1)});return l}},{key:"_getTimestampsForTable",value:function(){var e=this,t=e._cache.all||[];if(t.length)return t;var n=e.getDataTimestamps(),r=e.getLabelTimestamps();return t=n.length&&r.length?e.normalize(n.concat(r)):n.length?n:r,t=e._cache.all=t}},{key:"getDecimalForValue",value:function(e){return(or(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this,n=t._offsets,r=t.getDecimalForPixel(e)/n.factor-n.end;return or(t._table,r*t._tableRange+t._minPos,!0)}}]),n}(ar);sr.id="timeseries",sr.defaults=ar.defaults;var cr=[X,Ut,Ln,Object.freeze({__proto__:null,CategoryScale:In,LinearScale:Fn,LogarithmicScale:Qn,RadialLinearScale:Gn,TimeScale:ar,TimeSeriesScale:sr})]},,function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(235);function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=a?Object.getOwnPropertyDescriptor(e,o):null;s&&(s.get||s.set)?Object.defineProperty(n,o,s):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(55)},function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=this,s=function(){e.apply(o,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){return e.scrollTop};function i(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}},function(e,t,n){var r=n(158),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t,n){"use strict";n.r(t),n.d(t,"capitalize",(function(){return r.a})),n.d(t,"createChainedFunction",(function(){return i.a})),n.d(t,"createSvgIcon",(function(){return a.a})),n.d(t,"debounce",(function(){return o.a})),n.d(t,"deprecatedPropType",(function(){return s})),n.d(t,"isMuiElement",(function(){return c.a})),n.d(t,"ownerDocument",(function(){return l.a})),n.d(t,"ownerWindow",(function(){return u.a})),n.d(t,"requirePropFactory",(function(){return f.a})),n.d(t,"setRef",(function(){return d.a})),n.d(t,"unsupportedProp",(function(){return h.a})),n.d(t,"useControlled",(function(){return p.a})),n.d(t,"useEventCallback",(function(){return v.a})),n.d(t,"useForkRef",(function(){return m.a})),n.d(t,"unstable_useId",(function(){return g.a})),n.d(t,"useIsFocusVisible",(function(){return b.a}));var r=n(17),i=n(40),a=n(36),o=n(51);function s(e,t){return function(){return null}}var c=n(85),l=n(29),u=n(68),f=n(129),d=n(38),h=n(130),p=n(56),v=n(31),m=n(23),g=n(106),b=n(67)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),a=r.useState(n),o=a[0],s=a[1];return[i?t:o,r.useCallback((function(e){i||s(e)}),[])]}},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(93);var i=n(111),a=n(84);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(0),i=r.createContext();function a(){return r.useContext(i)}t.a=i},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var r=n(4),i=n(6),a="undefined"==typeof Symbol?"__\u037c":Symbol.for("\u037c"),o="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"==typeof e?window:e,c=function(){function e(t,n){Object(r.a)(this,e),this.rules=[];var i=n||{},a=i.process,o=i.extend;function s(e){if(/^@/.test(e))return[e];var t=e.split(",");return a?t.map(a):t}function c(e,t,n){var r=[],i=/^@(\w+)\b/.exec(e[0]);if(i&&null==t)return n.push(e[0]+";");var a=function(a){var l=t[a];if(/&/.test(a))c(e.map((function(e){return o?o(a,e):a.replace(/&/,e)})),l,n);else if(l&&"object"==typeof l){if(!i)throw new RangeError("The value of a property ("+a+") should be a primitive value.");c("keyframes"==i[1]?[a]:s(a),l,r)}else null!=l&&r.push(a.replace(/_.*/,"").replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))+": "+l+";")};for(var l in t)a(l);(r.length||i&&"keyframes"==i[1])&&n.push(e.join(",")+" {"+r.join(" ")+"}")}for(var l in t)c(s(l),t[l],this.rules)}return Object(i.a)(e,null,[{key:"newName",value:function(){var e=s[a]||1;return s[a]=e+1,"\u037c"+e.toString(36)}},{key:"mount",value:function(e,t){(e[o]||new u(e)).mount(Array.isArray(t)?t:[t])}}]),e}(),l=null,u=function(){function e(t){if(Object(r.a)(this,e),t.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(l)return t.adoptedStyleSheets=[l.sheet].concat(t.adoptedStyleSheets),t[o]=l;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),l=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");var n=t.head||t;n.insertBefore(this.styleTag,n.firstChild)}this.modules=[],t[o]=this}return Object(i.a)(e,[{key:"mount",value:function(e){for(var t=this.sheet,n=0,r=0,i=0;i<e.length;i++){var a=e[i],o=this.modules.indexOf(a);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,a),t)for(var s=0;s<a.rules.length;s++)t.insertRule(a.rules[s],n++)}else{for(;r<o;)n+=this.modules[r++].rules.length;n+=a.rules.length,r++}}if(!t){for(var c="",l=0;l<this.modules.length;l++)c+=this.modules[l].rules.join("\n")+"\n";this.styleTag.textContent=c}}}]),e}()}).call(this,n(90))},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return m}));var r=n(7),i=n(5),a=n(10),o=n(24),s=a.d.baseTheme({$matchingBracket:{color:"#0b0"},$nonmatchingBracket:{color:"#a22"}}),c=1e4,l="()[]{}",u=i.f.define({combine:function(e){return Object(i.m)(e,{afterCursor:!0,brackets:l,maxScanDistance:c})}}),f=a.b.mark({class:Object(a.n)("matchingBracket")}),d=a.b.mark({class:Object(a.n)("nonmatchingBracket")}),h=[i.j.define({create:function(){return a.b.none},update:function(e,t){if(!t.docChanged&&!t.selection)return e;var n,i=[],o=t.state.facet(u),s=Object(r.a)(t.state.selection.ranges);try{for(s.s();!(n=s.n()).done;){var c=n.value;if(c.empty){var l=m(t.state,c.head,-1,o)||c.head>0&&m(t.state,c.head-1,1,o)||o.afterCursor&&(m(t.state,c.head,1,o)||c.head<t.state.doc.length&&m(t.state,c.head+1,-1,o));if(l){var h=l.matched?f:d;i.push(h.range(l.start.from,l.start.to)),l.end&&i.push(h.range(l.end.from,l.end.to))}}}}catch(p){s.e(p)}finally{s.f()}return a.b.set(i,!0)},provide:[a.d.decorations]}),s];function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[u.of(e),h]}function v(e,t,n){var r=e.prop(t<0?o.c.openedBy:o.c.closedBy);if(r)return r;if(1==e.name.length){var i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function m(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.maxScanDistance||c,o=i.brackets||l,s=e.tree,u=s.resolve(t,n);return(r=v(u.type,n,o))?g(e,t,n,u,r,o):b(e,t,n,s,u.type,a,o)}function g(e,t,n,r,i,a){var o=r.parent,s={from:r.start,to:r.end},c=0;return o&&o.iterate({from:n<0?r.start:r.end,to:n<0?o.start:o.end,enter:function(e,t,o){if(!(n<0?o>r.start:t<r.end)){if(0==c&&i.indexOf(e.name)>-1)return{start:s,end:{from:t,to:o},matched:!0};if(v(e,n,a))c++;else if(v(e,-n,a)&&0==--c)return{start:s,end:{from:t,to:o},matched:!1};return!1}}})||{start:s,matched:!1}}function b(e,t,n,r,i,a,o){var s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),c=o.indexOf(s);if(c<0||c%2==0!=n>0)return null;for(var l={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),f=0,d=0;!u.next().done&&d<=a;){var h=u.value;n<0&&(d+=h.length);for(var p=t+d*n,v=n>0?0:h.length-1,m=n>0?h.length:-1;v!=m;v+=n){var g=o.indexOf(h[v]);if(!(g<0||r.resolve(p+v,1).type!=i))if(g%2==0==n>0)f++;else{if(1==f)return{start:l,end:{from:p+v,to:p+v+1},matched:g>>1==c>>1};f--}}n>0&&(d+=h.length)}return u.done?{start:l,matched:!1}:null}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n(26),a=!0,o=!1,s=null,c={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function u(){a=!1}function f(){"hidden"===this.visibilityState&&o&&(a=!0)}function d(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return a||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!c[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function h(){o=!0,window.clearTimeout(s),s=window.setTimeout((function(){o=!1}),100)}function p(){return{isFocusVisible:d,onBlurVisible:h,ref:r.useCallback((function(e){var t,n=i.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",u,!0),t.addEventListener("pointerdown",u,!0),t.addEventListener("touchstart",u,!0),t.addEventListener("visibilitychange",f,!0))}),[])}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(29);function i(e){return Object(r.a)(e).defaultView||window}},function(e,t,n){"use strict";var r=n(199),i=Object(r.a)();t.a=i},function(e,t,n){"use strict";var r=n(344);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},,function(e,t,n){"use strict";e.exports=n(232)},function(e,t,n){var r=n(247),i=n(252);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function a(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return J})),n.d(t,"b",(function(){return ee})),n.d(t,"c",(function(){return K}));n(20);var r=n(25),i=n(16),a=n(15),o=n(7),s=n(4),c=n(6),l=n(94),u=n(5),f=n(10),d=n(18),h=function(){function e(t,n,r){Object(s.a)(this,e),this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}return Object(c.a)(e,[{key:"tokenBefore",value:function(e){for(var t=this.state.tree.resolve(this.pos,-1);t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.start,to:this.pos,text:this.state.sliceDoc(t.start,this.pos),type:t.type}:null}},{key:"matchBefore",value:function(e){var t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.slice(n-t.from,this.pos-t.from),i=r.search(m(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}},{key:"addEventListener",value:function(e,t){this.abortListeners&&this.abortListeners.push(t)}},{key:"aborted",get:function(){return null==this.abortListeners}}]),e}(),p=function e(t,n,r){Object(s.a)(this,e),this.completion=t,this.source=n,this.match=r};function v(e){return e.selection.primary.head}function m(e,t){var n,r=e.source,i=t&&"^"!=r[0],a="$"!=r[r.length-1];return i||a?new RegExp("".concat(i?"^":"","(?:").concat(r,")").concat(a?"$":""),null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}function g(e,t){var n=t.completion.apply||t.completion.label,r=t.source;"string"==typeof n?e.dispatch({changes:{from:r.from,to:r.to,insert:n},selection:{anchor:r.from+n.length}}):n(e,t.completion,r.from,r.to)}var b=function(){function e(t){Object(s.a)(this,e),this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(var n=0;n<t.length;){var r=Object(d.b)(t,n),i=Object(d.c)(r);this.chars.push(r);var a=t.slice(n,n+i),o=a.toUpperCase();this.folded.push(Object(d.b)(o==a?a.toLowerCase():o,0)),n+=i}this.astral=t.length!=this.chars.length}return Object(c.a)(e,[{key:"match",value:function(e){if(0==this.pattern.length)return[0];if(e.length<this.pattern.length)return null;var t=this.chars,n=this.folded,r=this.any,i=this.precise,a=this.byWord;if(1==t.length){var o=Object(d.b)(e,0);return o==t[0]?[0,0,Object(d.c)(o)]:o==n[0]?[-200,0,Object(d.c)(o)]:null}var s=e.indexOf(this.pattern);if(0==s)return[0,0,this.pattern.length];var c=t.length,l=0;if(s<0){for(var u=0,f=Math.min(e.length,200);u<f&&l<c;){var h=Object(d.b)(e,u);h!=t[l]&&h!=n[l]||(r[l++]=u),u+=Object(d.c)(h)}if(l<c)return null}for(var p=0,v=0,m=!1,g=0,b=-1,y=-1,O=0,x=Math.min(e.length,200),k=0;O<x&&v<c;){var w=Object(d.b)(e,O);s<0&&(p<c&&w==t[p]&&(i[p++]=O),g<c&&(w==t[g]||w==n[g]?(0==g&&(b=O),y=O,g++):g=0));var j=void 0,S=w<255?w>=48&&w<=57||w>=97&&w<=122?2:w>=65&&w<=90?1:0:(j=Object(d.f)(w))!=j.toLowerCase()?1:j!=j.toUpperCase()?2:0;(1==S||0==k&&0!=S&&(this.chars[v]==w||this.folded[v]==w&&(m=!0)))&&(a[v++]=O),k=S,O+=Object(d.c)(w)}return v==c&&0==a[0]?this.result((m?-200:0)-100,a,e):g==c&&0==b?[-200,0,y]:s>-1?[-700,s,s+this.pattern.length]:g==c?[-900,b,y]:v==c?this.result((m?-200:0)-100-700,a,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}},{key:"result",value:function(e,t,n){var r,i=[e],a=1,s=Object(o.a)(t);try{for(s.s();!(r=s.n()).done;){var c=r.value,l=c+(this.astral?Object(d.c)(Object(d.b)(n,c)):1);a>1&&i[a-1]==c?i[a-1]=l:(i[a++]=c,i[a++]=l)}}catch(u){s.e(u)}finally{s.f()}return i}}]),e}(),y=u.f.define({combine:function(e){return Object(u.m)(e,{activateOnTyping:!0,override:null,maxRenderedOptions:100})}}),O=f.d.baseTheme({"$tooltip.autocomplete":{"& > ul":{fontFamily:"monospace",overflowY:"auto",whiteSpace:"nowrap",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{cursor:"pointer",padding:"1px 1em 1px 3px",lineHeight:1.2},"& > li[aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"}}},"$completionListIncompleteTop:before, $completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},"$tooltip.completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},"$tooltip.completionInfo.left":{right:"100%"},"$tooltip.completionInfo.right":{left:"100%"},"$$light $snippetField":{backgroundColor:"#ddd"},"$$dark $snippetField":{backgroundColor:"#333"},$snippetFieldPosition:{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},$completionMatchedText:{textDecoration:"underline"},$completionDetail:{marginLeft:"0.5em",fontStyle:"italic"},$completionIcon:{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},"$completionIcon.function, $completionIcon.method":{"&:after":{content:"'\u0192'"}},"$completionIcon.class":{"&:after":{content:"'\u25cb'"}},"$completionIcon.interface":{"&:after":{content:"'\u25cc'"}},"$completionIcon.variable":{"&:after":{content:"'\ud835\udc65'"}},"$completionIcon.constant":{"&:after":{content:"'\ud835\udc36'"}},"$completionIcon.type":{"&:after":{content:"'\ud835\udc61'"}},"$completionIcon.enum":{"&:after":{content:"'\u222a'"}},"$completionIcon.property":{"&:after":{content:"'\u25a1'"}},"$completionIcon.keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},"$completionIcon.namespace":{"&:after":{content:"'\u25a2'"}},"$completionIcon.text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});function x(e,t,n){var r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true");for(var i=n.from;i<n.to;i++){var a=e[i],o=a.completion,s=a.match,c=r.appendChild(document.createElement("li"));c.id=t+"-"+i;var l=c.appendChild(document.createElement("div"));l.className=Object(f.n)("completionIcon"+(o.type?"."+o.type:"")),l.setAttribute("aria-hidden","true");var u=c.appendChild(document.createElement("span"));u.className=Object(f.n)("completionLabel");for(var d=o.label,h=o.detail,p=0,v=1;v<s.length;){var m=s[v++],g=s[v++];m>p&&u.appendChild(document.createTextNode(d.slice(p,m)));var b=u.appendChild(document.createElement("span"));b.appendChild(document.createTextNode(d.slice(m,g))),b.className=Object(f.n)("completionMatchedText"),p=g}if(p<d.length&&u.appendChild(document.createTextNode(d.slice(p))),h){var y=c.appendChild(document.createElement("span"));y.className=Object(f.n)("completionDetail"),y.textContent=h}c.setAttribute("role","option")}return n.from&&r.classList.add(Object(f.n)("completionListIncompleteTop")),n.to<e.length&&r.classList.add(Object(f.n)("completionListIncompleteBottom")),r}function k(e,t,n){if(e<=n)return{from:0,to:e};if(t<=e>>1){var r=Math.floor(t/n);return{from:r*n,to:(r+1)*n}}var i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}var w=function(){function e(t,n){var r=this;Object(s.a)(this,e),this.view=t,this.stateField=n,this.info=null,this.placeInfo={read:function(){return r.measureInfo()},write:function(e){return r.positionInfo(e)},key:this};var i=t.state.field(n),a=i.open,o=a.options,c=a.selected,l=t.state.facet(y);this.range=k(o.length,c,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.addEventListener("mousedown",(function(e){for(var n=r.range.from,i=e.target;i&&i!=r.list&&i.parentNode!=r.list;)i=i.parentNode;for(;i=i.previousSibling;)n++;n>=0&&n<o.length&&g(t,o[n]),e.preventDefault()})),this.list=this.dom.appendChild(x(o,i.id,this.range)),this.list.addEventListener("scroll",(function(){r.info&&r.view.requestMeasure(r.placeInfo)}))}return Object(c.a)(e,[{key:"mount",value:function(){this.updateSel()}},{key:"update",value:function(e){e.state.field(this.stateField)!=e.prevState.field(this.stateField)&&this.updateSel()}},{key:"positioned",value:function(){this.info&&this.view.requestMeasure(this.placeInfo)}},{key:"updateSel",value:function(){var e=this,t=this.view.state.field(this.stateField),n=t.open;if((n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=k(n.options.length,n.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(x(n.options,t.id,this.range)),this.list.addEventListener("scroll",(function(){e.info&&e.view.requestMeasure(e.placeInfo)}))),this.updateSelectedOption(n.selected)){this.info&&(this.info.remove(),this.info=null);var r=n.options[n.selected];r.completion.info&&(this.info=this.dom.appendChild(function(e){var t=document.createElement("div");t.className=Object(f.n)("tooltip.completionInfo");var n=e.completion.info;return"string"==typeof n?t.textContent=n:t.appendChild(n(e.completion)),t}(r)),this.view.requestMeasure(this.placeInfo))}}},{key:"updateSelectedOption",value:function(e){for(var t=null,n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected");return t&&function(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect();r.top<n.top?e.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(e.scrollTop+=r.bottom-n.bottom)}(this.list,t),t}},{key:"measureInfo",value:function(){var e=this.dom.querySelector("[aria-selected]");if(!e)return null;var t=this.dom.getBoundingClientRect(),n=e.getBoundingClientRect().top-t.top;if(n<0||n>this.list.clientHeight-10)return null;var r=this.view.textDirection==f.c.RTL,i=t.left,a=innerWidth-t.right;return r&&i<Math.min(300,a)?r=!1:!r&&a<Math.min(300,i)&&(r=!0),{top:n,left:r}}},{key:"positionInfo",value:function(e){this.info&&e&&(this.info.style.top=e.top+"px",this.info.classList.toggle("cm-tooltip-completionInfo-left",e.left),this.info.classList.toggle("cm-tooltip-completionInfo-right",!e.left))}}]),e}();var j=function(){function e(t,n,r,i,a){Object(s.a)(this,e),this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a}return Object(c.a)(e,[{key:"setSelected",value:function(t,n){return t==this.selected||t>=this.options.length?this:new e(this.options,C(n,t),this.tooltip,this.timestamp,t)}},{key:"map",value:function(t){return new e(this.options,this.attrs,[Object.assign(Object.assign({},this.tooltip[0]),{pos:t.mapPos(this.tooltip[0].pos)})],this.timestamp,this.selected)}}],[{key:"build",value:function(t,n,r,i){var a=function(e,t){var n,r=[],i=Object(o.a)(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.hasResult()){var s,c=new b(t.sliceDoc(a.from,a.to)),l=void 0,u=Object(o.a)(a.result.options);try{for(u.s();!(s=u.n()).done;){var f=s.value;(l=c.match(f.label))&&(null!=f.boost&&(l[0]+=f.boost),r.push(new p(f,a,l)))}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){i.e(d)}finally{i.f()}return r.sort(P),r.length>300?r.slice(0,300):r}(t,n);if(!a.length)return null;var s,c=0;if(i)for(var l=i.options[i.selected].completion,u=0;u<a.length&&!c;u++)a[u].completion==l&&(c=u);return new e(a,C(r,c),[{pos:t.reduce((function(e,t){return t.hasResult()?Math.min(e,t.from):e}),1e8),style:"autocomplete",create:(s=L,function(e){return new w(e,s)})}],i?i.timestamp:Date.now(),c)}}]),e}(),S=function(){function e(t,n,r){Object(s.a)(this,e),this.active=t,this.id=n,this.open=r}return Object(c.a)(e,[{key:"update",value:function(t){var n=this,r=t.state,i=r.facet(y),a=(i.override||r.languageDataAt("autocomplete",v(r))).map((function(e){return(n.active.find((function(t){return t.source==e}))||new T(e,0,!1)).update(t,i)}));a.length==this.active.length&&a.every((function(e,t){return e==n.active[t]}))&&(a=this.active);var s,c=t.selection||a.some((function(e){return e.hasResult()&&t.changes.touchesRange(e.from,e.to)}))||!function(e,t){if(e==t)return!0;for(var n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;var i=n==e.length,a=r==t.length;if(i||a)return i==a;if(e[n++].result!=t[r++].result)return!1}}(a,this.active)?j.build(a,r,this.id,this.open):this.open&&t.docChanged?this.open.map(t.changes):this.open,l=Object(o.a)(t.effects);try{for(l.s();!(s=l.n()).done;){var u=s.value;u.is(R)&&(c=c&&c.setSelected(u.value,this.id))}}catch(f){l.e(f)}finally{l.f()}return a==this.active&&c==this.open?this:new e(a,this.id,c)}},{key:"tooltip",get:function(){return this.open?this.open.tooltip:M}},{key:"attrs",get:function(){return this.open?this.open.attrs:E}}],[{key:"start",value:function(){return new e(M,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}}]),e}();function C(e,t){return{"aria-autocomplete":"list","aria-activedescendant":e+"-"+t,"aria-owns":e}}var E={"aria-autocomplete":"list"},M=[];function P(e,t){var n=t.match[0]-e.match[0];if(n)return n;var r=e.completion.label,i=t.completion.label;return r<i?-1:r==i?0:1}var T=function(){function e(t,n,r){Object(s.a)(this,e),this.source=t,this.state=n,this.explicit=r}return Object(c.a)(e,[{key:"hasResult",value:function(){return!1}},{key:"update",value:function(t,n){var r=t.annotation(u.l.userEvent),i=this;"input"==r||"delete"==r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&0!=i.state&&(i=new e(i.source,0,!1));var a,s=Object(o.a)(t.effects);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c.is(D))i=c.value?new e(i.source,1,!0):new e(i.source,0,!1);else if(c.is(A)){var l,f=Object(o.a)(c.value);try{for(f.s();!(l=f.n()).done;){var d=l.value;d.source==i.source&&(i=d)}}catch(h){f.e(h)}finally{f.f()}}}}catch(h){s.e(h)}finally{s.f()}return i}},{key:"handleUserEvent",value:function(t,n,r){return"delete"!=n&&r.activateOnTyping?new e(this.source,1,!1):this}},{key:"handleChange",value:function(t){return t.changes.touchesRange(v(t.startState))?new e(this.source,0,!1):this}}]),e}(),_=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e,r,i,a,o,c){var l;return Object(s.a)(this,n),(l=t.call(this,e,2,r)).result=i,l.from=a,l.to=o,l.span=c,l}return Object(c.a)(n,[{key:"hasResult",value:function(){return!0}},{key:"handleUserEvent",value:function(e,t,r){var i=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),o=v(e.state);return(this.explicit?o<i:o<=i)||o>a?new T(this.source,"input"==t&&r.activateOnTyping?1:0,!1):this.span&&(i==a||this.span.test(e.state.sliceDoc(i,a)))?new n(this.source,this.explicit,this.result,i,a,this.span):new T(this.source,1,this.explicit)}},{key:"handleChange",value:function(e){return e.changes.touchesRange(this.from,this.to)?new T(this.source,0,!1):new n(this.source,this.explicit,this.result,e.changes.mapPos(this.from),e.changes.mapPos(this.to,1),this.span)}},{key:"map",value:function(e){return new n(this.source,this.explicit,this.result,e.mapPos(this.from),e.mapPos(this.to,1),this.span)}}]),n}(T),D=u.i.define(),A=u.i.define({map:function(e,t){return e.map((function(e){return e.hasResult()&&!t.empty?e.map(t):e}))}}),R=u.i.define(),L=u.j.define({create:function(){return S.start()},update:function(e,t){return e.update(t)},provide:[l.b.nFrom((function(e){return e.tooltip})),f.d.contentAttributes.from((function(e){return e.attrs}))]});function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return function(n){var r=n.state.field(L,!1);if(!r||!r.open||Date.now()-r.open.timestamp<75)return!1;var i,a=1;"page"==t&&(i=n.dom.querySelector(".cm-tooltip-autocomplete"))&&(a=Math.max(2,Math.floor(i.offsetHeight/i.firstChild.offsetHeight)));var o=r.open.selected+a*(e?1:-1),s=r.open.options.length;return o<0?o="page"==t?0:s-1:o>=s&&(o="page"==t?s-1:0),n.dispatch({effects:R.of(o)}),!0}}var I=function(e){var t=e.state.field(L,!1);return!(!t||!t.open||Date.now()-t.open.timestamp<75)&&(g(e,t.open.options[t.open.selected]),!0)},z=function e(t,n){Object(s.a)(this,e),this.source=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0},$=f.f.fromClass(function(){function e(t){Object(s.a)(this,e),this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1;var n,r=Object(o.a)(t.state.field(L).active);try{for(r.s();!(n=r.n()).done;){var i=n.value;1==i.state&&this.startQuery(i)}}catch(a){r.e(a)}finally{r.f()}}return Object(c.a)(e,[{key:"update",value:function(e){var t=this,n=e.state.field(L);if(e.selectionSet||e.docChanged||e.prevState.field(L)!=n){for(var i=e.transactions.some((function(e){var t=e.annotation(u.l.userEvent);return(e.selection||e.docChanged)&&"input"!=t&&"delete"!=t})),a=0;a<this.running.length;a++){var s=this.running[a];if(i||s.updates.length+e.transactions.length>50&&s.time-Date.now()>1e3){var c,l=Object(o.a)(s.context.abortListeners);try{for(l.s();!(c=l.n()).done;){var d=c.value;try{d()}catch(p){Object(f.l)(this.view.state,p)}}}catch(v){l.e(v)}finally{l.f()}s.context.abortListeners=null,this.running.splice(a--,1)}else{var h;(h=s.updates).push.apply(h,Object(r.a)(e.transactions))}}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=n.active.some((function(e){return 1==e.state&&!t.running.some((function(t){return t.source==e.source}))}))?setTimeout((function(){return t.startUpdate()}),50):-1}}},{key:"startUpdate",value:function(){var e=this;this.debounceUpdate=-1;var t,n=this.view.state.field(L),r=Object(o.a)(n.active);try{var i=function(){var n=t.value;1!=n.state||e.running.some((function(e){return e.source==n.source}))||e.startQuery(n)};for(r.s();!(t=r.n()).done;)i()}catch(a){r.e(a)}finally{r.f()}}},{key:"startQuery",value:function(e){var t=this,n=this.view.state,r=v(n),i=new h(n,r,e.explicit),a=new z(e.source,i);this.running.push(a),Promise.resolve(e.source(i)).then((function(e){a.context.aborted||(a.done=e||null,t.scheduleAccept())}),(function(e){t.view.dispatch({effects:D.of(!1)}),Object(f.l)(t.view.state,e)}))}},{key:"scheduleAccept",value:function(){var e=this;this.running.every((function(e){return void 0!==e.done}))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((function(){return e.accept()}),50))}},{key:"accept",value:function(){var e,t=this;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;for(var n=[],r=this.view.state.facet(y),i=function(i){var s=t.running[i];if(void 0===s.done)return a=i,"continue";if(t.running.splice(i--,1),s.done){var c,l=new _(s.source,s.context.explicit,s.done,s.done.from,null!==(e=s.done.to)&&void 0!==e?e:v(s.updates.length?s.updates[0].startState:t.view.state),s.done.span?m(s.done.span,!0):null),u=Object(o.a)(s.updates);try{for(u.s();!(c=u.n()).done;){var f=c.value;l=l.update(f,r)}}catch(y){u.e(y)}finally{u.f()}if(l.hasResult())return n.push(l),a=i,"continue"}var d=t.view.state.field(L).active.find((function(e){return e.source==s.source}));if(d&&1==d.state)if(null==s.done){var h,p=new T(s.source,0,!1),g=Object(o.a)(s.updates);try{for(g.s();!(h=g.n()).done;){var b=h.value;p=p.update(b,r)}}catch(y){g.e(y)}finally{g.f()}1!=p.state&&n.push(p)}else t.startQuery(d);a=i},a=0;a<this.running.length;a++)i(a);n.length&&this.view.dispatch({effects:A.of(n)})}}]),e}()),F=function e(t,n,r,i){Object(s.a)(this,e),this.field=t,this.line=n,this.from=r,this.to=i},B=function(){function e(t,n,r){Object(s.a)(this,e),this.field=t,this.from=n,this.to=r}return Object(c.a)(e,[{key:"map",value:function(t){return new e(this.field,t.mapPos(this.from,-1),t.mapPos(this.to,1))}}]),e}(),Q=function(){function e(t,n){Object(s.a)(this,e),this.lines=t,this.fieldPositions=n}return Object(c.a)(e,[{key:"instantiate",value:function(e,t){var n,r=[],i=[t],a=e.doc.lineAt(t),s=/^\s*/.exec(a.slice(0,Math.min(100,a.length)))[0],c=Object(o.a)(this.lines);try{for(c.s();!(n=c.n()).done;){var l=n.value;if(r.length){for(var f=s,d=/^\t*/.exec(l)[0].length,h=0;h<d;h++)f+=e.facet(u.e.indentUnit);i.push(t+f.length-d),l=f+l.slice(d)}r.push(l),t+=l.length+1}}catch(p){c.e(p)}finally{c.f()}return{text:r,ranges:this.fieldPositions.map((function(e){return new B(e.field,i[e.line]+e.from,i[e.line]+e.to)}))}}}],[{key:"parse",value:function(t){var n,r,i=[],a=[],s=[],c=Object(o.a)(t.split(/\r\n?|\n/));try{for(c.s();!(r=c.n()).done;){for(var l=r.value;n=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(l);){for(var u=n[1]?+n[1]:null,f=n[2]||n[3],d=-1,h=0;h<i.length;h++)(f?i[h].name==f:null!=u&&i[h].seq==u)&&(d=h);if(d<0){for(var p=0;p<i.length&&(null==u||null!=i[p].seq&&i[p].seq<u);)p++;i.splice(p,0,{seq:u,name:f||null}),d=p}s.push(new F(d,a.length,n.index,n.index+f.length)),l=l.slice(0,n.index)+f+l.slice(n.index+n[0].length)}a.push(l)}}catch(v){c.e(v)}finally{c.f()}return new e(a,s)}}]),e}(),W=f.b.widget({widget:new(function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"toDOM",value:function(){var e=document.createElement("span");return e.className=Object(f.n)("snippetFieldPosition"),e}},{key:"ignoreEvent",value:function(){return!1}}]),n}(f.g))}),H=f.b.mark({class:Object(f.n)("snippetField")}),V=function(){function e(t,n){Object(s.a)(this,e),this.ranges=t,this.active=n,this.deco=f.b.set(t.map((function(e){return(e.from==e.to?W:H).range(e.from,e.to)})))}return Object(c.a)(e,[{key:"map",value:function(t){return new e(this.ranges.map((function(e){return e.map(t)})),this.active)}},{key:"selectionInsideField",value:function(e){var t=this;return e.ranges.every((function(e){return t.ranges.some((function(n){return n.field==t.active&&n.from<=e.from&&n.to>=e.to}))}))}}]),e}(),U=u.i.define({map:function(e,t){return e&&e.map(t)}}),q=u.i.define(),Y=u.j.define({create:function(){return null},update:function(e,t){var n,r=Object(o.a)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is(U))return i.value;if(i.is(q)&&e)return new V(e.ranges,i.value)}}catch(a){r.e(a)}finally{r.f()}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:[f.d.decorations.from((function(e){return e?e.deco:f.b.none}))]});function X(e,t){return u.d.create(e.filter((function(e){return e.field==t})).map((function(e){return u.d.range(e.from,e.to)})))}function K(e){var t=Q.parse(e);return function(e,n,r,i){var a=t.instantiate(e.state,r),o=a.text,s=a.ranges,c={changes:{from:r,to:i,insert:u.k.of(o)}};s.length&&(c.selection=X(s,0)),s.length>1&&(c.effects=U.of(new V(s,0)),void 0===e.state.field(Y,!1)&&(c.reconfigure={append:[Y,Z,O]})),e.dispatch(e.state.update(c))}}function G(e){return function(t){var n=t.state,r=t.dispatch,i=n.field(Y,!1);if(!i||e<0&&0==i.active)return!1;var a=i.active+e,o=e>0&&!i.ranges.some((function(t){return t.field==a+e}));return r(n.update({selection:X(i.ranges,a),effects:U.of(o?null:new V(i.ranges,a))})),!0}}var Z=Object(u.o)(Object(f.k)([{key:"Tab",run:G(1),shift:G(-1)},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch;return!!t.field(Y,!1)&&(n(t.update({effects:U.of(null)})),!0)}}]),"override");function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[L,y.of(e),$,O,Object(l.c)(),Object(u.o)(Object(f.k)([{key:"ArrowDown",run:N(!0)},{key:"ArrowUp",run:N(!1)},{key:"PageDown",run:N(!0,"page")},{key:"PageUp",run:N(!1,"page")},{key:"Enter",run:I}]),"override")]}var ee=[{key:"Mod-Space",run:function(e){return!!e.state.field(L,!1)&&(e.dispatch({effects:D.of(!0)}),!0)}},{key:"Escape",run:function(e){var t=e.state.field(L,!1);return!(!t||!t.active.some((function(e){return 0!=e.state})))&&(e.dispatch({effects:D.of(!1)}),!0)}}]},,,function(e,t,n){var r=n(99),i=n(248),a=n(249),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},function(e,t,n){var r=n(133),i=n(138);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(92);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(93);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){var r;!function(i,a,o,s){"use strict";var c,l=["","webkit","Moz","MS","ms","o"],u=a.createElement("div"),f=Math.round,d=Math.abs,h=Date.now;function p(e,t,n){return setTimeout(x(e,n),t)}function v(e,t,n){return!!Array.isArray(e)&&(m(e,n[t],n),!0)}function m(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==s)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function g(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",a=i.console&&(i.console.warn||i.console.log);return a&&a.call(i.console,r,n),e.apply(this,arguments)}}c="function"!==typeof Object.assign?function(e){if(e===s||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==s&&null!==r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var b=g((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&e[r[i]]===s)&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),y=g((function(e,t){return b(e,t,!0)}),"merge","Use `assign`.");function O(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&c(r,n)}function x(e,t){return function(){return e.apply(t,arguments)}}function k(e,t){return"function"==typeof e?e.apply(t&&t[0]||s,t):e}function w(e,t){return e===s?t:e}function j(e,t,n){m(M(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){m(M(t),(function(t){e.removeEventListener(t,n,!1)}))}function C(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function E(e,t){return e.indexOf(t)>-1}function M(e){return e.trim().split(/\s+/g)}function P(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function T(e){return Array.prototype.slice.call(e,0)}function _(e,t,n){for(var r=[],i=[],a=0;a<e.length;){var o=t?e[a][t]:e[a];P(i,o)<0&&r.push(e[a]),i[a]=o,a++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function D(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),a=0;a<l.length;){if((r=(n=l[a])?n+i:t)in e)return r;a++}return s}var A=1;function R(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}var L="ontouchstart"in i,N=D(i,"PointerEvent")!==s,I=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),z="touch",$="mouse",F=24,B=["x","y"],Q=["clientX","clientY"];function W(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){k(e.options.enable,[e])&&n.handler(t)},this.init()}function H(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,a=1&t&&r-i===0,o=12&t&&r-i===0;n.isFirst=!!a,n.isFinal=!!o,a&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=V(t));i>1&&!n.firstMultiple?n.firstMultiple=V(t):1===i&&(n.firstMultiple=!1);var a=n.firstInput,o=n.firstMultiple,c=o?o.center:a.center,l=t.center=U(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=K(c,l),t.distance=X(c,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},a=e.prevInput||{};1!==t.eventType&&4!==a.eventType||(i=e.prevDelta={x:a.deltaX||0,y:a.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=Y(t.deltaX,t.deltaY);var u=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=u.x,t.overallVelocityY=u.y,t.overallVelocity=d(u.x)>d(u.y)?u.x:u.y,t.scale=o?(f=o.pointers,p=r,X(p[0],p[1],Q)/X(f[0],f[1],Q)):1,t.rotation=o?function(e,t){return K(t[1],t[0],Q)+K(e[1],e[0],Q)}(o.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,a,o=e.lastInterval||t,c=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(c>25||o.velocity===s)){var l=t.deltaX-o.deltaX,u=t.deltaY-o.deltaY,f=q(c,l,u);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,a=Y(l,u),e.lastInterval=t}else n=o.velocity,r=o.velocityX,i=o.velocityY,a=o.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=a}(n,t);var f,p;var v=e.element;C(t.srcEvent.target,v)&&(v=t.srcEvent.target);t.target=v}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function V(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:f(e.pointers[n].clientX),clientY:f(e.pointers[n].clientY)},n++;return{timeStamp:h(),pointers:t,center:U(t),deltaX:e.deltaX,deltaY:e.deltaY}}function U(e){var t=e.length;if(1===t)return{x:f(e[0].clientX),y:f(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:f(n/t),y:f(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function Y(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function X(e,t,n){n||(n=B);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function K(e,t,n){n||(n=B);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}W.prototype={handler:function(){},init:function(){this.evEl&&j(this.element,this.evEl,this.domHandler),this.evTarget&&j(this.target,this.evTarget,this.domHandler),this.evWin&&j(R(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(R(this.element),this.evWin,this.domHandler)}};var G={mousedown:1,mousemove:2,mouseup:4},Z="mousedown",J="mousemove mouseup";function ee(){this.evEl=Z,this.evWin=J,this.pressed=!1,W.apply(this,arguments)}O(ee,W,{handler:function(e){var t=G[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:$,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:z,3:"pen",4:$,5:"kinect"},re="pointerdown",ie="pointermove pointerup pointercancel";function ae(){this.evEl=re,this.evWin=ie,W.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}i.MSPointerEvent&&!i.PointerEvent&&(re="MSPointerDown",ie="MSPointerMove MSPointerUp MSPointerCancel"),O(ae,W,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=te[r],a=ne[e.pointerType]||e.pointerType,o=a==z,s=P(t,e.pointerId,"pointerId");1&i&&(0===e.button||o)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:a,srcEvent:e}),n&&t.splice(s,1))}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},se="touchstart",ce="touchstart touchmove touchend touchcancel";function le(){this.evTarget=se,this.evWin=ce,this.started=!1,W.apply(this,arguments)}function ue(e,t){var n=T(e.touches),r=T(e.changedTouches);return 12&t&&(n=_(n.concat(r),"identifier",!0)),[n,r]}O(le,W,{handler:function(e){var t=oe[e.type];if(1===t&&(this.started=!0),this.started){var n=ue.call(this,e,t);12&t&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:z,srcEvent:e})}}});var fe={touchstart:1,touchmove:2,touchend:4,touchcancel:8},de="touchstart touchmove touchend touchcancel";function he(){this.evTarget=de,this.targetIds={},W.apply(this,arguments)}function pe(e,t){var n=T(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,a,o=T(e.changedTouches),s=[],c=this.target;if(a=n.filter((function(e){return C(e.target,c)})),1===t)for(i=0;i<a.length;)r[a[i].identifier]=!0,i++;for(i=0;i<o.length;)r[o[i].identifier]&&s.push(o[i]),12&t&&delete r[o[i].identifier],i++;return s.length?[_(a.concat(s),"identifier",!0),s]:void 0}O(he,W,{handler:function(e){var t=fe[e.type],n=pe.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:z,srcEvent:e})}});function ve(){W.apply(this,arguments);var e=x(this.handler,this);this.touch=new he(this.manager,e),this.mouse=new ee(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function me(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,ge.call(this,t)):12&e&&ge.call(this,t)}function ge(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function be(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],a=Math.abs(t-i.x),o=Math.abs(n-i.y);if(a<=25&&o<=25)return!0}return!1}O(ve,W,{handler:function(e,t,n){var r=n.pointerType==z,i=n.pointerType==$;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)me.call(this,t,n);else if(i&&be.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ye=D(u.style,"touchAction"),Oe=ye!==s,xe="compute",ke="auto",we="manipulation",je="none",Se="pan-x",Ce="pan-y",Ee=function(){if(!Oe)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||i.CSS.supports("touch-action",n)})),e}();function Me(e,t){this.manager=e,this.set(t)}Me.prototype={set:function(e){e==xe&&(e=this.compute()),Oe&&this.manager.element.style&&Ee[e]&&(this.manager.element.style[ye]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return m(this.manager.recognizers,(function(t){k(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(E(e,je))return je;var t=E(e,Se),n=E(e,Ce);if(t&&n)return je;if(t||n)return t?Se:Ce;if(E(e,we))return we;return ke}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=E(r,je)&&!Ee.none,a=E(r,Ce)&&!Ee["pan-y"],o=E(r,Se)&&!Ee["pan-x"];if(i){var s=1===e.pointers.length,c=e.distance<2,l=e.deltaTime<250;if(s&&c&&l)return}if(!o||!a)return i||a&&6&n||o&&n&F?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Pe=32;function Te(e){this.options=c({},this.defaults,e||{}),this.id=A++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function _e(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function De(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function Ae(e,t){var n=t.manager;return n?n.get(e):e}function Re(){Te.apply(this,arguments)}function Le(){Re.apply(this,arguments),this.pX=null,this.pY=null}function Ne(){Re.apply(this,arguments)}function Ie(){Te.apply(this,arguments),this._timer=null,this._input=null}function ze(){Re.apply(this,arguments)}function $e(){Re.apply(this,arguments)}function Fe(){Te.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Be(e,t){return(t=t||{}).recognizers=w(t.recognizers,Be.defaults.preset),new Qe(e,t)}Te.prototype={defaults:{},set:function(e){return c(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(v(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Ae(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return v(e,"dropRecognizeWith",this)||(e=Ae(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(v(e,"requireFailure",this))return this;var t=this.requireFail;return-1===P(t,e=Ae(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(v(e,"dropRequireFailure",this))return this;e=Ae(e,this);var t=P(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+_e(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+_e(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=Pe},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=c({},e);if(!k(this.options.enable,[this,t]))return this.reset(),void(this.state=Pe);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},O(Re,Te,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:Pe}}),O(Le,Re,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push(Ce),e&F&&t.push(Se),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,a=e.deltaX,o=e.deltaY;return i&t.direction||(6&t.direction?(i=0===a?1:a<0?2:4,n=a!=this.pX,r=Math.abs(e.deltaX)):(i=0===o?1:o<0?8:16,n=o!=this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},attrTest:function(e){return Re.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=De(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),O(Ne,Re,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),O(Ie,Te,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ke]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!i)this.reset();else if(1&e.eventType)this.reset(),this._timer=p((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return Pe},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),O(ze,Re,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[je]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),O($e,Re,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Le.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:n&F&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=De(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),O(Fe,Te,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[we]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&i&&n){if(4!=e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<t.interval,o=!this.pCenter||X(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,o&&a?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=p((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return Pe},failTimeout:function(){return this._timer=p((function(){this.state=Pe}),this.options.interval,this),Pe},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Be.VERSION="2.0.7",Be.defaults={domEvents:!1,touchAction:xe,enable:!0,inputTarget:null,inputClass:null,preset:[[ze,{enable:!1}],[Ne,{enable:!1},["rotate"]],[$e,{direction:6}],[Le,{direction:6},["swipe"]],[Fe],[Fe,{event:"doubletap",taps:2},["tap"]],[Ie]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Qe(e,t){var n;this.options=c({},Be.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(N?ae:I?he:L?ve:ee))(n,H),this.touchAction=new Me(this,this.options.touchAction),We(this,!0),m(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function We(e,t){var n,r=e.element;r.style&&(m(e.options.cssProps,(function(i,a){n=D(r.style,a),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Qe.prototype={set:function(e){return c(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var a=0;a<r.length;)n=r[a],2===t.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(i=t.curRecognizer=n),a++}},get:function(e){if(e instanceof Te)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(v(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(v(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=P(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==s&&t!==s){var n=this.handlers;return m(M(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(e!==s){var n=this.handlers;return m(M(e),(function(e){t?n[e]&&n[e].splice(P(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=a.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&We(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Be,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Pe,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:F,DIRECTION_ALL:30,Manager:Qe,Input:W,TouchAction:Me,TouchInput:he,MouseInput:ee,PointerEventInput:ae,TouchMouseInput:ve,SingleTouchInput:le,Recognizer:Te,AttrRecognizer:Re,Tap:Fe,Pan:Le,Swipe:$e,Pinch:Ne,Rotate:ze,Press:Ie,on:j,off:S,each:m,merge:y,extend:b,assign:c,inherit:O,bindFn:x,prefixed:D}),("undefined"!==typeof i?i:"undefined"!==typeof self?self:{}).Hammer=Be,(r=function(){return Be}.call(t,n,t,e))===s||(e.exports=r)}(window,document)},,,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return u}));var r=n(7),i=n(4),a=n(6),o=n(10),s=n(5),c=o.f.fromClass(function(){function e(t){var n=this;Object(i.a)(this,e),this.view=t,this.inView=!0,this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.tooltips=t.state.facet(f),this.tooltipViews=this.tooltips.map((function(e){return n.createTooltip(e)}))}return Object(a.a)(e,[{key:"update",value:function(e){var t=e.state.facet(f);if(t==this.tooltips){var n,i=Object(r.a)(this.tooltipViews);try{for(i.s();!(n=i.n()).done;){var a=n.value;a.update&&a.update(e)}}catch(m){i.e(m)}finally{i.f()}}else{for(var o=[],s=0;s<t.length;s++){for(var c=t[s],l=-1,u=0;u<this.tooltips.length;u++)this.tooltips[u].create==c.create&&(l=u);if(l<0)o[s]=this.createTooltip(c);else{var d=o[s]=this.tooltipViews[l];d.update&&d.update(e)}}var h,p=Object(r.a)(this.tooltipViews);try{for(p.s();!(h=p.n()).done;){var v=h.value;o.indexOf(v)<0&&v.dom.remove()}}catch(m){p.e(m)}finally{p.f()}this.tooltips=t,this.tooltipViews=o,this.maybeMeasure()}}},{key:"createTooltip",value:function(e){var t=e.create(this.view);return t.dom.className=Object(o.n)("tooltip"+(e.style?"."+e.style:"")),this.view.dom.appendChild(t.dom),t.mount&&t.mount(this.view),t}},{key:"destroy",value:function(){var e,t=Object(r.a)(this.tooltipViews);try{for(t.s();!(e=t.n()).done;){e.value.dom.remove()}}catch(n){t.e(n)}finally{t.f()}}},{key:"readMeasure",value:function(){var e=this;return{editor:this.view.dom.getBoundingClientRect(),pos:this.tooltips.map((function(t){return e.view.coordsAtPos(t.pos)})),size:this.tooltipViews.map((function(e){return e.dom.getBoundingClientRect()})),innerWidth:window.innerWidth,innerHeight:window.innerHeight}}},{key:"writeMeasure",value:function(e){for(var t=e.editor,n=0;n<this.tooltipViews.length;n++){var r=this.tooltips[n],i=this.tooltipViews[n],a=i.dom,s=e.pos[n],c=e.size[n];if(!s||s.bottom<=t.top||s.top>=t.bottom||s.right<=t.left||s.left>=t.right)a.style.top="-10000px";else{var l=c.right-c.left,u=c.bottom-c.top,f=this.view.textDirection==o.c.LTR?Math.min(s.left,e.innerWidth-l):Math.max(0,s.left-l),d=!!r.above;!r.strictSide&&(d?s.top-(c.bottom-c.top)<0:s.bottom+(c.bottom-c.top)>e.innerHeight)&&(d=!d),a.style.top=(d?s.top-u:s.bottom)+"px",a.style.left=f+"px",a.classList.toggle("cm-tooltip-above",d),a.classList.toggle("cm-tooltip-below",!d),i.positioned&&i.positioned()}}}},{key:"maybeMeasure",value:function(){this.tooltips.length&&((this.view.inView||this.inView)&&this.view.requestMeasure(this.measureReq),this.inView=this.view.inView)}}]),e}(),{eventHandlers:{scroll:function(){this.maybeMeasure()}}}),l=o.d.baseTheme({$tooltip:{position:"fixed",border:"1px solid #ddd",backgroundColor:"#f5f5f5",zIndex:100}});function u(){return[c,l]}var f=s.f.define(),d=function(){function e(t,n,r,a){Object(i.a)(this,e),this.view=t,this.source=n,this.field=r,this.setHover=a,this.lastMouseMove=null,this.hoverTimeout=-1,this.mouseInside=!1,this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseenter",this.mouseenter=this.mouseenter.bind(this)),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}return Object(a.a)(e,[{key:"checkHover",value:function(){var e=this;if(this.hoverTimeout=-1,this.mouseInside&&!this.active){var t=Date.now(),n=this.lastMouseMove;if(t-n.timeStamp<750)this.hoverTimeout=setTimeout(this.checkHover,750-(t-n.timeStamp));else{var r=this.view.contentDOM.contains(n.target)?this.view.posAtCoords({x:n.clientX,y:n.clientY}):-1,i=r<0?null:this.source(this.view,(function(t,i){return t<=r&&i>=r&&(t==i||h(e.view,t,i,n.clientX,n.clientY))}));i&&this.view.dispatch({effects:this.setHover.of(i)})}}}},{key:"mousemove",value:function(e){var t;this.lastMouseMove=e,this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,750));var n=this.active;if(n&&!function(e){for(var t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}(e.target)){var r=n.pos,i=null!==(t=n.end)&&void 0!==t?t:r;(r==i?this.view.posAtCoords({x:e.clientX,y:e.clientY})==r:h(this.view,r,i,e.clientX,e.clientY,10))||this.view.dispatch({effects:this.setHover.of(null)})}}},{key:"mouseenter",value:function(){this.mouseInside=!0}},{key:"mouseleave",value:function(){this.mouseInside=!1,this.active&&this.view.dispatch({effects:this.setHover.of(null)})}},{key:"destroy",value:function(){this.view.dom.removeEventListener("mouseenter",this.mouseenter),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},{key:"active",get:function(){return this.view.state.field(this.field)}}]),e}();function h(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=document.createRange(),s=e.domAtPos(t),c=e.domAtPos(n);o.setEnd(c.node,c.offset),o.setStart(s.node,s.offset);for(var l=o.getClientRects(),u=0;u<l.length;u++){var f=l[u],d=Math.max(f.top-i,i-f.bottom,f.left-r,r-f.right);if(d<=a)return!0}return!1}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=s.i.define(),i=s.j.define({create:function(){return null},update:function(e,i){if(e&&t.hideOnChange&&(i.docChanged||i.selection))return null;var a,o=Object(r.a)(i.effects);try{for(o.s();!(a=o.n()).done;){var c=a.value;if(c.is(n))return c.value}}catch(f){o.e(f)}finally{o.f()}if(e&&i.docChanged){var l=i.changes.mapPos(e.pos,-1,s.h.TrackDel);if(l<0)return null;var u=Object.assign(Object.create(null),e);return u.pos=l,null!=e.end&&(u.end=i.changes.mapPos(e.end)),u}return e},provide:[f.nFrom((function(e){return e?[e]:[]}))]});return[i,o.f.define((function(t){return new d(t,e,i,n)})),u()]}},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(17),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},u=a.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,f=e.className,d=e.color,h=void 0===d?"initial":d,p=e.component,v=e.display,m=void 0===v?"initial":v,g=e.gutterBottom,b=void 0!==g&&g,y=e.noWrap,O=void 0!==y&&y,x=e.paragraph,k=void 0!==x&&x,w=e.variant,j=void 0===w?"body1":w,S=e.variantMapping,C=void 0===S?l:S,E=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),M=p||(k?"p":C[j]||l[j])||"span";return a.createElement(M,Object(r.a)({className:Object(o.a)(u.root,f,"inherit"!==j&&u[j],"initial"!==h&&u["color".concat(Object(c.a)(h))],O&&u.noWrap,b&&u.gutterBottom,k&&u.paragraph,"inherit"!==s&&u["align".concat(Object(c.a)(s))],"initial"!==m&&u["display".concat(Object(c.a)(m))]),ref:t},E))}));t.a=Object(s.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(26)),s=n(9),c=n(23),l=n(31),u=n(11),f=n(67),d=n(58),h=n(417),p="undefined"===typeof window?a.useEffect:a.useLayoutEffect;var v=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,o=e.rippleY,c=e.rippleSize,u=e.in,f=e.onExited,d=void 0===f?function(){}:f,h=e.timeout,v=a.useState(!1),m=v[0],g=v[1],b=Object(s.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:c,height:c,top:-c/2+o,left:-c/2+i},O=Object(s.a)(t.child,m&&t.childLeaving,r&&t.childPulsate),x=Object(l.a)(d);return p((function(){if(!u){g(!0);var e=setTimeout(x,h);return function(){clearTimeout(e)}}}),[x,u,h]),a.createElement("span",{className:b,style:y},a.createElement("span",{className:O}))},m=a.forwardRef((function(e,t){var n=e.center,o=void 0!==n&&n,c=e.classes,l=e.className,u=Object(i.a)(e,["center","classes","className"]),f=a.useState([]),p=f[0],m=f[1],g=a.useRef(0),b=a.useRef(null);a.useEffect((function(){b.current&&(b.current(),b.current=null)}),[p]);var y=a.useRef(!1),O=a.useRef(null),x=a.useRef(null),k=a.useRef(null);a.useEffect((function(){return function(){clearTimeout(O.current)}}),[]);var w=a.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,o=e.cb;m((function(e){return[].concat(Object(d.a)(e),[a.createElement(v,{key:g.current,classes:c,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),g.current+=1,b.current=o}),[c]),j=a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,a=t.center,s=void 0===a?o||t.pulsate:a,c=t.fakeElement,l=void 0!==c&&c;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var u,f,d,h=l?null:k.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(p.width/2),f=Math.round(p.height/2);else{var v=e.touches?e.touches[0]:e,m=v.clientX,g=v.clientY;u=Math.round(m-p.left),f=Math.round(g-p.top)}if(s)(d=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(d+=1);else{var b=2*Math.max(Math.abs((h?h.clientWidth:0)-u),u)+2,j=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(b,2)+Math.pow(j,2))}e.touches?null===x.current&&(x.current=function(){w({pulsate:i,rippleX:u,rippleY:f,rippleSize:d,cb:n})},O.current=setTimeout((function(){x.current&&(x.current(),x.current=null)}),80)):w({pulsate:i,rippleX:u,rippleY:f,rippleSize:d,cb:n})}}),[o,w]),S=a.useCallback((function(){j({},{pulsate:!0})}),[j]),C=a.useCallback((function(e,t){if(clearTimeout(O.current),"touchend"===e.type&&x.current)return e.persist(),x.current(),x.current=null,void(O.current=setTimeout((function(){C(e,t)})));x.current=null,m((function(e){return e.length>0?e.slice(1):e})),b.current=t}),[]);return a.useImperativeHandle(t,(function(){return{pulsate:S,start:j,stop:C}}),[S,j,C]),a.createElement("span",Object(r.a)({className:Object(s.a)(c.root,l),ref:k},u),a.createElement(h.a,{component:null,exit:!0},p))})),g=Object(u.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(a.memo(m)),b=a.forwardRef((function(e,t){var n=e.action,u=e.buttonRef,d=e.centerRipple,h=void 0!==d&&d,p=e.children,v=e.classes,m=e.className,b=e.component,y=void 0===b?"button":b,O=e.disabled,x=void 0!==O&&O,k=e.disableRipple,w=void 0!==k&&k,j=e.disableTouchRipple,S=void 0!==j&&j,C=e.focusRipple,E=void 0!==C&&C,M=e.focusVisibleClassName,P=e.onBlur,T=e.onClick,_=e.onFocus,D=e.onFocusVisible,A=e.onKeyDown,R=e.onKeyUp,L=e.onMouseDown,N=e.onMouseLeave,I=e.onMouseUp,z=e.onTouchEnd,$=e.onTouchMove,F=e.onTouchStart,B=e.onDragLeave,Q=e.tabIndex,W=void 0===Q?0:Q,H=e.TouchRippleProps,V=e.type,U=void 0===V?"button":V,q=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),Y=a.useRef(null);var X=a.useRef(null),K=a.useState(!1),G=K[0],Z=K[1];x&&G&&Z(!1);var J=Object(f.a)(),ee=J.isFocusVisible,te=J.onBlurVisible,ne=J.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return Object(l.a)((function(r){return t&&t(r),!n&&X.current&&X.current[e](r),!0}))}a.useImperativeHandle(n,(function(){return{focusVisible:function(){Z(!0),Y.current.focus()}}}),[]),a.useEffect((function(){G&&E&&!w&&X.current.pulsate()}),[w,E,G]);var ie=re("start",L),ae=re("stop",B),oe=re("stop",I),se=re("stop",(function(e){G&&e.preventDefault(),N&&N(e)})),ce=re("start",F),le=re("stop",z),ue=re("stop",$),fe=re("stop",(function(e){G&&(te(e),Z(!1)),P&&P(e)}),!1),de=Object(l.a)((function(e){Y.current||(Y.current=e.currentTarget),ee(e)&&(Z(!0),D&&D(e)),_&&_(e)})),he=function(){var e=o.findDOMNode(Y.current);return y&&"button"!==y&&!("A"===e.tagName&&e.href)},pe=a.useRef(!1),ve=Object(l.a)((function(e){E&&!pe.current&&G&&X.current&&" "===e.key&&(pe.current=!0,e.persist(),X.current.stop(e,(function(){X.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),A&&A(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!x&&(e.preventDefault(),T&&T(e))})),me=Object(l.a)((function(e){E&&" "===e.key&&X.current&&G&&!e.defaultPrevented&&(pe.current=!1,e.persist(),X.current.stop(e,(function(){X.current.pulsate(e)}))),R&&R(e),T&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&T(e)})),ge=y;"button"===ge&&q.href&&(ge="a");var be={};"button"===ge?(be.type=U,be.disabled=x):("a"===ge&&q.href||(be.role="button"),be["aria-disabled"]=x);var ye=Object(c.a)(u,t),Oe=Object(c.a)(ne,Y),xe=Object(c.a)(ye,Oe),ke=a.useState(!1),we=ke[0],je=ke[1];a.useEffect((function(){je(!0)}),[]);var Se=we&&!w&&!x;return a.createElement(ge,Object(r.a)({className:Object(s.a)(v.root,m,G&&[v.focusVisible,M],x&&v.disabled),onBlur:fe,onClick:T,onFocus:de,onKeyDown:ve,onKeyUp:me,onMouseDown:ie,onMouseLeave:se,onMouseUp:oe,onDragLeave:ae,onTouchEnd:le,onTouchMove:ue,onTouchStart:ce,ref:xe,tabIndex:x?-1:W},be,q),p,Se?a.createElement(g,Object(r.a)({ref:X,center:h},H)):null)}));t.a=Object(u.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(b)},function(e,t,n){var r=n(237),i=n(238),a=n(239),o=n(240),s=n(241);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(91);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(54).Symbol;e.exports=r},function(e,t,n){var r=n(74)(Object,"create");e.exports=r},function(e,t,n){var r=n(261);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(169),i=n(293),a=n(82);e.exports=function(e){return a(e)?r(e):i(e)}},function(e,t,n){var r=n(81),i=n(75);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(104);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=r.useState(e),n=t[0],i=t[1],a=e||n;return r.useEffect((function(){null==n&&i("mui-".concat(Math.round(1e5*Math.random())))}),[n]),a}},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(58),n(2);var r=n(64),i=(n(12),n(70),{xs:0,sm:600,md:960,lg:1280,xl:1920}),a={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(i[e],"px)")}};function o(e,t,n){if(Array.isArray(t)){var i=e.theme.breakpoints||a;return t.reduce((function(e,r,a){return e[i.up(i.keys[a])]=n(t[a]),e}),{})}if("object"===Object(r.a)(t)){var o=e.theme.breakpoints||a;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(73),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=u(n);f&&(o=o.concat(f(n)));for(var s=c(t),v=c(n),m=0;m<o.length;++m){var g=o[m];if(!a[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var b=d(n,g);try{l(t,g,b)}catch(y){}}}}return t}},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for;t.a=r?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(e,t,n){"use strict";var r=n(2),i=n(28),a=n(8),o=n(0),s=(n(12),n(9)),c=n(56),l=n(42),u=n(11),f=n(208),d=o.forwardRef((function(e,t){var n=e.autoFocus,u=e.checked,d=e.checkedIcon,h=e.classes,p=e.className,v=e.defaultChecked,m=e.disabled,g=e.icon,b=e.id,y=e.inputProps,O=e.inputRef,x=e.name,k=e.onBlur,w=e.onChange,j=e.onFocus,S=e.readOnly,C=e.required,E=e.tabIndex,M=e.type,P=e.value,T=Object(a.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),_=Object(c.a)({controlled:u,default:Boolean(v),name:"SwitchBase",state:"checked"}),D=Object(i.a)(_,2),A=D[0],R=D[1],L=Object(l.a)(),N=m;L&&"undefined"===typeof N&&(N=L.disabled);var I="checkbox"===M||"radio"===M;return o.createElement(f.a,Object(r.a)({component:"span",className:Object(s.a)(h.root,p,A&&h.checked,N&&h.disabled),disabled:N,tabIndex:null,role:void 0,onFocus:function(e){j&&j(e),L&&L.onFocus&&L.onFocus(e)},onBlur:function(e){k&&k(e),L&&L.onBlur&&L.onBlur(e)},ref:t},T),o.createElement("input",Object(r.a)({autoFocus:n,checked:u,defaultChecked:v,className:h.input,disabled:N,id:I&&b,name:x,onChange:function(e){var t=e.target.checked;R(t),w&&w(e,t)},readOnly:S,ref:O,required:C,tabIndex:E,type:M,value:P},y)),A?d:g)}));t.a=Object(u.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(d)},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return ie}));var r=n(7),i=n(5),a=n(18),o=n(10),s=n(66),c=n(24);function l(e,t){return i.d.create(e.ranges.map(t),e.primaryIndex)}function u(e,t){return e.update({selection:t,scrollIntoView:!0,annotations:i.l.userEvent.of("keyboardselection")})}function f(e,t){var n=e.state,r=e.dispatch,i=l(n.selection,t);return!i.eq(n.selection)&&(r(u(n,i)),!0)}function d(e,t){return i.d.cursor(t?e.to:e.from)}function h(e,t){return f(e,(function(n){return n.empty?e.moveByChar(n,t):d(n,t)}))}var p=function(e){return h(e,e.textDirection!=o.c.LTR)},v=function(e){return h(e,e.textDirection==o.c.LTR)};function m(e,t){return f(e,(function(n){return n.empty?e.moveByGroup(n,t):d(n,t)}))}function g(e,t,n){if(t.type.prop(n))return!0;var r=t.end-t.start;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.start,t.end)))||t.firstChild}function b(e,t,n){for(var r=e.tree.resolve(t.head),a=n?c.c.closedBy:c.c.openedBy,o=t.head;;){var l=n?r.childAfter(o):r.childBefore(o);if(!l)break;g(e,l,a)?r=l:o=n?l.end:l.start}var u,f;return f=r.type.prop(a)&&(u=n?Object(s.b)(e,r.start,1):Object(s.b)(e,r.end,-1))&&u.matched?n?u.end.to:u.end.from:n?r.end:r.start,i.d.cursor(f,n?-1:1)}function y(e,t){return f(e,(function(n){return n.empty?e.moveVertically(n,t):d(n,t)}))}var O=function(e){return y(e,!1)},x=function(e){return y(e,!0)};function k(e,t){return f(e,(function(n){return n.empty?e.moveVertically(n,t,e.dom.clientHeight):d(n,t)}))}var w=function(e){return k(e,!1)},j=function(e){return k(e,!0)};function S(e,t,n){var r=e.visualLineAt(t.head),a=e.moveToLineBoundary(t,n);if(a.head==t.head&&a.head!=(n?r.to:r.from)&&(a=e.moveToLineBoundary(t,n,!1)),!n&&a.head==r.from&&r.length){var o=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&t.head>r.from+o&&(a=i.d.cursor(r.from+o))}return a}var C=function(e){return f(e,(function(t){return i.d.cursor(e.visualLineAt(t.head).from,1)}))},E=function(e){return f(e,(function(t){return i.d.cursor(e.visualLineAt(t.head).to,-1)}))};function M(e,t,n){var r=!1,a=l(e.selection,(function(t){var a=Object(s.b)(e,t.head,-1)||Object(s.b)(e,t.head,1)||t.head>0&&Object(s.b)(e,t.head-1,1)||t.head<e.doc.length&&Object(s.b)(e,t.head+1,-1);if(!a||!a.end)return t;r=!0;var o=a.start.from==t.head?a.end.to:a.end.from;return n?i.d.range(t.anchor,o):i.d.cursor(o)}));return!!r&&(t(u(e,a)),!0)}function P(e,t){var n=l(e.state.selection,(function(e){var n=t(e);return i.d.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(u(e.state,n)),!0)}function T(e,t){return P(e,(function(n){return e.moveByChar(n,t)}))}var _=function(e){return T(e,e.textDirection!=o.c.LTR)},D=function(e){return T(e,e.textDirection==o.c.LTR)};function A(e,t){return P(e,(function(n){return e.moveByGroup(n,t)}))}function R(e,t){return P(e,(function(n){return e.moveVertically(n,t)}))}var L=function(e){return R(e,!1)},N=function(e){return R(e,!0)};function I(e,t){return P(e,(function(n){return e.moveVertically(n,t,e.dom.clientHeight)}))}var z=function(e){return I(e,!1)},$=function(e){return I(e,!0)},F=function(e){return P(e,(function(t){return i.d.cursor(e.visualLineAt(t.head).from)}))},B=function(e){return P(e,(function(t){return i.d.cursor(e.visualLineAt(t.head).to)}))},Q=function(e){var t=e.state;return(0,e.dispatch)(u(t,{anchor:0})),!0},W=function(e){var t=e.state;return(0,e.dispatch)(u(t,{anchor:t.doc.length})),!0},H=function(e){var t=e.state;return(0,e.dispatch)(u(t,{anchor:t.selection.primary.anchor,head:0})),!0},V=function(e){var t=e.state;return(0,e.dispatch)(u(t,{anchor:t.selection.primary.anchor,head:t.doc.length})),!0};function U(e,t){var n=e.state.changeByRange((function(e){var n=e.from,r=e.to;if(n==r){var a=t(n);n=Math.min(n,a),r=Math.max(r,a)}return n==r?{range:e}:{changes:{from:n,to:r},range:i.d.cursor(n)}}));return!n.changes.empty&&(e.dispatch(n,{scrollIntoView:!0,annotations:i.l.userEvent.of("delete")}),!0)}var q=function(e,t,n){return U(e,(function(r){var i,o,s=e.state,c=s.doc.lineAt(r);if(!t&&r>c.from&&r<c.from+200&&!/[^ \t]/.test(i=c.slice(0,r-c.from))){if("\t"==i[i.length-1])return r-1;for(var l=Object(a.d)(i,0,s.tabSize)%s.indentUnit||s.indentUnit,u=0;u<l&&" "==i[i.length-1-u];u++)r--;return r}if(n){var f=c.slice(r-c.from+(t?0:-2),r-c.from+(t?2:0)),d=f?Object(a.c)(Object(a.b)(f,0)):1;o=t?Math.min(s.doc.length,r+d):Math.max(0,r-d)}else o=c.findClusterBreak(r-c.from,t)+c.from;return o==r&&c.number!=(t?s.doc.lines:1)&&(o+=t?1:-1),o}))},Y=function(e){return q(e,!0,!1)},X=function(e,t){return U(e,(function(n){for(var r=e.state,a=r.doc.lineAt(n),o=r.charCategorizer(n),s=null;;){var c=void 0,l=void 0;if(n==(t?a.to:a.from)){if(a.number==(t?r.doc.lines:1))break;a=r.doc.line(a.number+(t?1:-1)),c=t?a.from:a.to,l="\n"}else c=a.findClusterBreak(n-a.from,t)+a.from,l=a.slice(Math.min(n,c)-a.from,Math.max(n,c)-a.from);var u=o(l);if(null!=s&&u!=s)break;u!=i.c.Space&&(s=u),n=c}return n}))},K=function(e){return X(e,!1)},G=function(e){return X(e,!0)};function Z(e){var t,n=[],i=-1,a=Object(r.a)(e.selection.ranges);try{for(a.s();!(t=a.n()).done;){var o=t.value,s=e.doc.lineAt(o.from),c=e.doc.lineAt(o.to);i==s.number?n[n.length-1].to=c.to:n.push({from:s.from,to:c.to}),i=c.number}}catch(l){a.e(l)}finally{a.f()}return n}function J(e,t,n){var i,a=[],o=Object(r.a)(Z(e));try{for(o.s();!(i=o.n()).done;){var s=i.value;if(n?s.to!=e.doc.length:0!=s.from){var c=e.doc.lineAt(n?s.to+1:s.from-1);n?a.push({from:s.to,to:c.to},{from:s.from,insert:c.slice()+e.lineBreak}):a.push({from:c.from,to:s.from},{from:s.to,insert:e.lineBreak+c.slice()})}}}catch(l){o.e(l)}finally{o.f()}return!!a.length&&(t(e.update({changes:a,scrollIntoView:!0})),!0)}function ee(e,t,n){var i,a=[],o=Object(r.a)(Z(e));try{for(o.s();!(i=o.n()).done;){var s=i.value;n?a.push({from:s.from,insert:e.doc.slice(s.from,s.to)+e.lineBreak}):a.push({from:s.to,insert:e.lineBreak+e.doc.slice(s.from,s.to)})}}catch(c){o.e(c)}finally{o.f()}return t(e.update({changes:a,scrollIntoView:!0})),!0}function te(e,t){var n,a=Object(r.a)(e.state.facet(i.e.indentation));try{for(a.s();!(n=a.n()).done;){var o=(0,n.value)(e,t);if(o>-1)return o}}catch(s){a.e(s)}finally{a.f()}return-1}function ne(e,t){var n=-1;return e.changeByRange((function(r){for(var a=[],o=e.doc.lineAt(r.from);o.number>n&&(t(o,a,r),n=o.number),!(r.to<=o.to);)o=e.doc.lineAt(o.to+1);var s=e.changes(a);return{changes:a,range:i.d.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}var re=[{key:"ArrowLeft",run:p,shift:_},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:function(e){return m(e,e.textDirection!=o.c.LTR)},shift:function(e){return A(e,e.textDirection!=o.c.LTR)}},{mac:"Cmd-ArrowLeft",run:C,shift:F},{key:"ArrowRight",run:v,shift:D},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:function(e){return m(e,e.textDirection==o.c.LTR)},shift:function(e){return A(e,e.textDirection==o.c.LTR)}},{mac:"Cmd-ArrowRight",run:E,shift:B},{key:"ArrowUp",run:O,shift:L},{mac:"Cmd-ArrowUp",run:Q,shift:H},{mac:"Ctrl-ArrowUp",run:w,shift:z},{key:"ArrowDown",run:x,shift:N},{mac:"Cmd-ArrowDown",run:W,shift:V},{mac:"Ctrl-ArrowDown",run:j,shift:$},{key:"PageUp",run:w,shift:z},{key:"PageDown",run:j,shift:$},{key:"Home",run:function(e){return f(e,(function(t){return S(e,t,!1)}))},shift:function(e){return P(e,(function(t){return S(e,t,!1)}))}},{key:"Mod-Home",run:Q,shift:H},{key:"End",run:function(e){return f(e,(function(t){return S(e,t,!0)}))},shift:function(e){return P(e,(function(t){return S(e,t,!0)}))}},{key:"Mod-End",run:W,shift:V},{key:"Enter",run:function(e){var t=e.state,n=e.dispatch,r=t.changeByRange((function(e){var n=e.from,r=e.to,o=n==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};var n,r=e.tree.resolve(t),i=r.childBefore(t),a=r.childAfter(t);return i&&a&&i.end<=t&&a.start>=t&&(n=i.type.prop(c.c.closedBy))&&n.indexOf(a.name)>-1?{from:i.end,to:a.start}:null}(t,n),s=new i.g(t,{simulateBreak:n,simulateDoubleBreak:!!o}),l=te(s,n);l<0&&(l=/^\s*/.exec(t.doc.lineAt(n).slice(0,50))[0].length);for(var u=t.doc.lineAt(n);r<u.to&&/\s/.test(u.slice(r-u.from,r+1-u.from));)r++;o?(n=o.from,r=o.to):n>u.from&&n<u.from+100&&!/\S/.test(u.slice(0,n))&&(n=u.from);var f=["",t.indentString(l)];return o&&f.push(t.indentString(s.lineIndent(u))),{changes:{from:n,to:r,insert:a.a.of(f)},range:i.d.cursor(n+1+l)}}));return n(t.update(r,{scrollIntoView:!0})),!0}},{key:"Mod-a",run:function(e){var t=e.state;return(0,e.dispatch)(t.update({selection:{anchor:0,head:t.doc.length},annotations:i.l.userEvent.of("keyboardselection")})),!0}},{key:"Backspace",run:function(e){return q(e,!1,!0)}},{key:"Delete",run:Y},{key:"Mod-Backspace",mac:"Alt-Backspace",run:K},{key:"Mod-Delete",mac:"Alt-Delete",run:G}].concat([{key:"Ctrl-b",run:p,shift:_},{key:"Ctrl-f",run:v,shift:D},{key:"Ctrl-p",run:O,shift:L},{key:"Ctrl-n",run:x,shift:N},{key:"Ctrl-a",run:C,shift:F},{key:"Ctrl-e",run:E,shift:B},{key:"Ctrl-d",run:Y},{key:"Ctrl-h",run:function(e){return q(e,!1,!1)}},{key:"Ctrl-k",run:function(e){return U(e,(function(t){var n=e.visualLineAt(t).to;return t<n?n:Math.max(e.state.doc.length,t+1)}))}},{key:"Alt-d",run:G},{key:"Ctrl-Alt-h",run:K},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch,r=t.changeByRange((function(e){return{changes:{from:e.from,to:e.to,insert:a.a.of(["",""])},range:i.d.cursor(e.from)}}));return n(t.update(r,{scrollIntoView:!0,annotations:i.l.userEvent.of("input")})),!0}},{key:"Ctrl-t",run:function(e){var t=e.state,n=e.dispatch,r=t.changeByRange((function(e){if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};var n=e.from,r=t.doc.lineAt(n),a=n==r.from?n-1:r.findClusterBreak(n-r.from,!1)+r.from,o=n==r.to?n+1:r.findClusterBreak(n-r.from,!0)+r.from;return{changes:{from:a,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(a,n))},range:i.d.cursor(o)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0})),!0)}},{key:"Alt-f",run:function(e){return m(e,!0)},shift:function(e){return A(e,!0)}},{key:"Alt-b",run:function(e){return m(e,!1)},shift:function(e){return A(e,!1)}},{key:"Alt-<",run:Q},{key:"Alt->",run:W},{key:"Ctrl-v",run:j},{key:"Alt-v",run:w}].map((function(e){return{mac:e.key,run:e.run,shift:e.shift}}))),ie=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return f(e,(function(t){return b(e.state,t,e.textDirection!=o.c.LTR)}))},shift:function(e){return P(e,(function(t){return b(e.state,t,e.textDirection!=o.c.LTR)}))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return f(e,(function(t){return b(e.state,t,e.textDirection==o.c.LTR)}))},shift:function(e){return P(e,(function(t){return b(e.state,t,e.textDirection==o.c.LTR)}))}},{key:"Alt-ArrowUp",run:function(e){return J(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return ee(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return J(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return ee(e.state,e.dispatch,!0)}},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch,r=t.selection,a=null;return r.ranges.length>1?a=new i.d([r.primary]):r.primary.empty||(a=new i.d([i.d.cursor(r.primary.head)])),!!a&&(n(u(t,a)),!0)}},{key:"Mod-l",run:function(e){var t=e.state,n=e.dispatch,r=Z(t).map((function(e){var n=e.from,r=e.to;return i.d.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:new i.d(r),annotations:i.l.userEvent.of("keyboardselection")})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=l(t.selection,(function(e){for(var n,r=t.tree.resolve(e.head,1);!(r.start<e.from&&r.end>=e.to||r.end>e.to&&r.start<=e.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent);)r=r.parent;return i.d.range(r.end,r.start)}));return n(u(t,r)),!0}},{key:"Mod-[",run:function(e){var t=e.state;return(0,e.dispatch)(t.update(ne(t,(function(e,n){var r=e.slice(0,Math.min(e.length,200)),i=/^\s*/.exec(r)[0];if(i){for(var o=Object(a.d)(i,0,t.tabSize),s=t.indentString(Math.max(0,o-t.indentUnit)),c=0;c<i.length&&c<s.length&&i.charCodeAt(c)==s.charCodeAt(c);)c++;n.push({from:e.from+c,to:e.from+i.length,insert:s.slice(c)})}})))),!0}},{key:"Mod-]",run:function(e){var t=e.state;return(0,e.dispatch)(t.update(ne(t,(function(e,n){n.push({from:e.from,insert:t.facet(i.e.indentUnit)})})))),!0}},{key:"Mod-Alt-\\",run:function(e){var t=e.state,n=e.dispatch,r=Object.create(null),a=new i.g(t,{overrideIndentation:function(e){var t=r[e];return null==t?-1:t}}),o=ne(t,(function(e,n,i){var o=te(a,e.from);if(!(o<0)){var s=/^\s*/.exec(e.slice(0,Math.min(e.length,200)))[0],c=t.indentString(o);(s!=c||i.from<e.from+s.length)&&(r[e.from]=o,n.push({from:e.from,to:e.from+s.length,insert:c}))}}));return o.changes.empty||n(t.update(o)),!0}},{key:"Shift-Mod-k",run:function(e){var t=e.state,n=t.changes(Z(t).map((function(e){var n=e.from,r=e.to;return n>0?n--:r<t.doc.length&&r++,{from:n,to:r}}))),r=l(t.selection,(function(t){return e.moveVertically(t,!0)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0}),!0}},{key:"Shift-Mod-\\",run:function(e){return M(e.state,e.dispatch,!1)}}].concat(re)},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return p}));var r=n(7),i=n(4),a=n(6),o=n(24),s=n(61),c=n(10),l=n(5),u=n(32),f=new(function(){function e(t){var n=this;Object(i.a)(this,e),this.typeNames=[""],this.typeIDs=Object.create(null),this.prop=new o.c,this.flags=t.flags,this.types=t.types,this.flagMask=Math.pow(2,this.flags.length)-1,this.typeShift=this.flags.length;var a=t.subtypes||0,s=[void 0];this.typeIDs[""]=0;var c,l=1,u=Object(r.a)(t.types);try{for(u.s();!(c=u.n()).done;){var f=c.value,d=/^([\w\-]+)(?:=([\w-]+))?$/.exec(f);if(!d)throw new RangeError("Invalid type name "+f);var h=l++;this.typeNames[h]=d[1],this.typeIDs[d[1]]=h,s[h]=d[2];for(var p=0;p<a;p++){var v=l++,m=d[1]+"#"+(p+1);this.typeNames[v]=m,this.typeIDs[m]=v,s[v]=d[1]}}}catch(g){u.e(g)}finally{u.f()}if(this.parents=s.map((function(e){if(null==e)return 0;var t=n.typeIDs[e];if(null==t)throw new RangeError("Unknown parent type '".concat(e,"' specified"));return t})),this.flags.length>30||this.typeNames.length>Math.pow(2,30-this.flags.length))throw new RangeError("Too many style tag flags to fit in a 30-bit integer")}return Object(a.a)(e,[{key:"get",value:function(e){var t,n=0,i=Object(r.a)(e.split(" "));try{for(i.s();!(t=i.n()).done;){var a=t.value;if(a){var o=this.flags.indexOf(a);if(o>-1)n+=1<<o;else{var s=this.typeIDs[a];if(null==s)throw new RangeError("Unknown tag type '".concat(a,"'"));if(n>>this.typeShift)throw new RangeError("Multiple tag types specified in '".concat(e,"'"));n+=s<<this.typeShift}}}}catch(c){i.e(c)}finally{i.f()}return n}},{key:"getWithMode",value:function(e){var t="+"==e[0]?1:"!"==e[0]?0:2;return{mode:t,tag:this.get(2==t?e:e.slice(1))}}},{key:"addTagProp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getWithMode(e),r=n.mode,i=n.tag;return this.prop.set(t,new h(i,r,d))}},{key:"add",value:function(e){var t=Object.create(null);for(var n in e){var i,a=e[n],o=this.getWithMode(a),s=o.mode,c=o.tag,l=Object(r.a)(n.split(" "));try{for(l.s();!(i=l.n()).done;){var u=i.value.split("/"),f=u[u.length-1],p=u.length>1?u.slice(0,u.length-1).map((function(e){return"*"==e?null:e})):d,v=new h(c,s,p);t[f]=v.sort(t[f])}}catch(m){l.e(m)}finally{l.f()}}return this.prop.add(t)}},{key:"highlighter",value:function(e){var t=this,n=new m(this,e);return[Object(l.o)(c.f.define((function(e){return new g(e,t.prop,n)}),{decorations:function(e){return e.decorations}}),"fallback"),c.d.styleModule.of(n.module)]}},{key:"specificity",value:function(e){for(var t=e&this.flagMask,n=0,r=1;r<=this.flags.length;r++)t&1<<r&&n++;for(var i=e>>this.typeShift;i;i=this.parents[i])n+=/#/.test(this.typeNames[i])?500:1e3;return n}}]),e}())({flags:["invalid","meta","standard","definition","constant","local","control","link","strong","emphasis","monospace","changed","inserted","deleted"],subtypes:7,types:["comment","lineComment=comment","blockComment=comment","docComment=comment","name","variableName=name","typeName=name","propertyName=name","className=name","labelName=name","functionName=name","namespace=name","literal","string=literal","docString=string","character=string","number=literal","integer=number","float=number","bool=literal","regexp=literal","escape=literal","color=literal","content","heading=content","list=content","quote=content","keyword","self=keyword","null=keyword","atom=keyword","unit=keyword","modifier=keyword","operatorKeyword=keyword","operator","derefOperator=operator","arithmeticOperator=operator","logicOperator=operator","bitwiseOperator=operator","compareOperator=operator","updateOperator=operator","typeOperator=operator","punctuation","separator=punctuation","bracket=punctuation","angleBracket=bracket","squareBracket=bracket","paren=bracket","brace=bracket"]}),d=[],h=function(){function e(t,n,r,a){Object(i.a)(this,e),this.tag=t,this.mode=n,this.context=r,this.next=a}return Object(a.a)(e,[{key:"sort",value:function(e){return!e||e.context.length<this.context.length?(this.next=e,this):(e.next=this.sort(e.next),e)}}]),e}(),p=function(e){return f.add(e)},v=function e(t,n,r,a){Object(i.a)(this,e),this.type=t,this.flags=n,this.specificity=r,this.cls=a},m=function(){function e(t,n){Object(i.a)(this,e),this.tags=t,this.cache=Object.create(null);var a=Object.create(null),o=[];for(var c in n){var l=s.a.newName();a["."+l]=n[c];var u,f=Object(r.a)(c.split(/\s*,\s*/));try{for(f.s();!(u=f.n()).done;){var d=u.value,h=t.get(d);o.push(new v(h>>t.typeShift,h&t.flagMask,t.specificity(h),l))}}catch(p){f.e(p)}finally{f.f()}}this.rules=o.sort((function(e,t){return t.specificity-e.specificity})),this.module=new s.a(a)}return Object(a.a)(e,[{key:"match",value:function(e){var t=this.cache[e];if(null!=t)return t;for(var n="",i=e>>this.tags.typeShift,a=e&this.tags.flagMask;;){var o,s=Object(r.a)(this.rules);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c.type==i&&(c.flags&a)==c.flags&&(n&&(n+=" "),n+=c.cls,a&=~c.flags,i))break}}catch(l){s.e(l)}finally{s.f()}if(!i)break;i=this.tags.parents[i]}return this.cache[e]=n}}]),e}(),g=function(){function e(t,n,r){Object(i.a)(this,e),this.prop=n,this.styling=r,this.nodeStack=[""],this.classStack=[""],this.inheritStack=[""],this.tree=t.state.tree,this.decorations=this.buildDeco(t.visibleRanges,this.tree)}return Object(a.a)(e,[{key:"update",value:function(e){var t=e.state.facet(l.e.syntax);t.length?t[0].parsePos(e.state)<e.view.viewport.to?this.decorations=this.decorations.map(e.changes):(this.tree!=t[0].getTree(e.state)||e.viewportChanged)&&(this.tree=t[0].getTree(e.state),this.decorations=this.buildDeco(e.view.visibleRanges,this.tree)):this.decorations=c.b.none}},{key:"buildDeco",value:function(e,t){var n,i,a,o=this,s=new u.c;function l(e,t){e>n&&t&&s.add(n,e,c.b.mark({class:t})),n=e}var f,d=this.nodeStack,h=this.classStack,p=this.inheritStack,v=Object(r.a)(e);try{var m=function(){var e=f.value,r=e.from,s=e.to;i="",a=0,n=r,t.iterate({from:r,to:s,enter:function(e,t){a++;for(var n=p[a-1],r=n,s=e.prop(o.prop),c=!1;s;){if(!s.context.length||b(s.context,d,a)){var u=o.styling.match(s.tag);u&&(r&&(r+=" "),r+=u,1==s.mode?n=r:0==s.mode&&(c=!0));break}s=s.next}if(r!=i&&(l(t,i),i=r),c)return a--,!1;h[a]=r,p[a]=n,d[a]=e.name},leave:function(e,t,n){a--;var r=h[a];r!=i&&(l(Math.min(s,n),i),i=r)}})};for(v.s();!(f=v.n()).done;)m()}catch(g){v.e(g)}finally{v.f()}return s.finish()}}]),e}();function b(e,t,n){if(e.length>n-1)return!1;for(var r=n-1,i=e.length-1;i>=0;i--,r--){var a=e[i];if(a&&a!=t[r])return!1}return!0}var y,O=(y={deleted:{textDecoration:"line-through"},inserted:{textDecoration:"underline"},link:{textDecoration:"underline"},strong:{fontWeight:"bold"},emphasis:{fontStyle:"italic"},keyword:{color:"#708"},"atom, bool":{color:"#219"},number:{color:"#164"},string:{color:"#a11"},"regexp, escape, string#2":{color:"#e40"},"variableName definition":{color:"#00f"},typeName:{color:"#085"},className:{color:"#167"},"name#2":{color:"#256"},"propertyName definition":{color:"#00c"},comment:{color:"#940"},meta:{color:"#555"},invalid:{color:"#f00"}},f.highlighter(y))},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S}));var r=n(16),i=n(15),a=n(6),o=n(7),s=n(4),c=n(10),l=n(5),u=n(94),f=n(35),d=function e(t,n,r){Object(s.a)(this,e),this.from=t,this.to=n,this.diagnostic=r},h=function e(t,n,r){Object(s.a)(this,e),this.diagnostics=t,this.panel=n,this.selected=r};function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,e.length,(function(e,n,i){var a=i.spec;if(!t||a.diagnostic==t)return r=new d(e,n,a.diagnostic),!1})),r}function v(e){return e.field(y,!1)?void 0:{append:[y,c.d.decorations.compute([y],(function(e){var t=e.field(y),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?c.b.set([O.range(n.from,n.to)]):c.b.none})),Object(f.b)(),Object(u.a)(x),_]}}var m=l.i.define(),g=l.i.define(),b=l.i.define(),y=l.j.define({create:function(){return new h(c.b.none,null,null)},update:function(e,t){if(t.docChanged){var n=e.diagnostics.map(t.changes),r=null;if(e.selected){var i=t.changes.mapPos(e.selected.from,1);r=p(n,e.selected.diagnostic,i)||p(n,null,i)}e=new h(n,e.panel,r)}var a,s=Object(o.a)(t.effects);try{for(s.s();!(a=s.n()).done;){var l=a.value;if(l.is(m)){var u=c.b.set(l.value.map((function(e){return e.from<e.to?c.b.mark({attributes:{class:Object(c.n)("lintRange."+e.severity)},diagnostic:e}).range(e.from,e.to):c.b.widget({widget:new E(e),diagnostic:e}).range(e.from)})));e=new h(u,e.panel,p(u))}else l.is(g)?e=new h(e.diagnostics,l.value?P.open:null,e.selected):l.is(b)&&(e=new h(e.diagnostics,e.panel,l.value))}}catch(f){s.e(f)}finally{s.f()}return e},provide:[f.c.nFrom((function(e){return e.panel?[e.panel]:[]})),c.d.decorations.from((function(e){return e.diagnostics}))]}),O=c.b.mark({class:Object(c.n)("lintRange.active")});function x(e,t){var n=e.state.field(y).diagnostics,r=[],i=2e8,a=0;return n.between(0,e.state.doc.length,(function(e,n,o){var s=o.spec;t(e,n)&&(r.push(s.diagnostic),i=Math.min(e,i),a=Math.max(n,a))})),r.length?{pos:i,end:a,above:e.state.doc.lineAt(i).to<a,style:"lint",create:function(){var t,n=document.createElement("ul"),i=Object(o.a)(r);try{for(i.s();!(t=i.n()).done;){var a=t.value;n.appendChild(C(e,a))}}catch(s){i.e(s)}finally{i.f()}return{dom:n}}}:null}var k=function(e){var t=e.state.field(y,!1);return!(!t||!t.panel)&&(e.dispatch({effects:g.of(!1)}),!0)},w=[{key:"Mod-Shift-m",run:function(e){var t=e.state.field(y,!1);t&&t.panel||e.dispatch({effects:g.of(!0),reconfigure:v(e.state)});var n=Object(f.a)(e,P.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0}},{key:"F8",run:function(e){var t=e.state.field(y,!1);if(!t)return!1;var n=e.state.selection.primary,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(!(r=t.diagnostics.iter(0)).value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],j=500;function S(e){return c.f.fromClass(function(){function t(e){Object(s.a)(this,t),this.view=e,this.lintTime=Date.now()+j,this.set=!0,this.run=this.run.bind(this),setTimeout(this.run,j)}return Object(a.a)(t,[{key:"run",value:function(){var t=this,n=Date.now();if(n<this.lintTime-10)setTimeout(this.run,this.lintTime-n);else{this.set=!1;var r=this.view.state;Promise.resolve(e(this.view)).then((function(e){var n,i;t.view.state.doc==r.doc&&(e.length||(null===(i=null===(n=t.view.state.field(y,!1))||void 0===n?void 0:n.diagnostics)||void 0===i?void 0:i.size))&&t.view.dispatch(function(e,t){return{effects:m.of(t),reconfigure:v(e)}}(t.view.state,e))}),(function(e){Object(c.l)(t.view.state,e)}))}}},{key:"update",value:function(e){e.docChanged&&(this.lintTime=Date.now()+j,this.set||(this.set=!0,setTimeout(this.run,j)))}}]),t}())}function C(e,t){var n=document.createElement("li");if(n.textContent=t.message,n.className=Object(c.n)("diagnostic."+t.severity),t.actions){var r,i=Object(o.a)(t.actions);try{var a=function(){var i=r.value,a=n.appendChild(document.createElement("button"));a.className=Object(c.n)("diagnosticAction"),a.textContent=i.name,a.onclick=a.onmousedown=function(n){n.preventDefault();var r=p(e.state.field(y).diagnostics,t);r&&i.apply(e,r.from,r.to)}};for(i.s();!(r=i.n()).done;)a()}catch(s){i.e(s)}finally{i.f()}}return n}var E=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).diagnostic=e,r}return Object(a.a)(n,[{key:"eq",value:function(e){return e.diagnostic==this.diagnostic}},{key:"toDOM",value:function(){var e=document.createElement("span");return e.className=Object(c.n)("lintPoint."+this.diagnostic.severity),e}}]),n}(c.g),M=function e(t,n){Object(s.a)(this,e),this.diagnostic=n,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=C(t,n),this.dom.setAttribute("role","option")},P=function(){function e(t){var n=this;Object(s.a)(this,e),this.view=t,this.items=[],this.dom=document.createElement("div"),this.list=this.dom.appendChild(document.createElement("ul")),this.list.tabIndex=0,this.list.setAttribute("role","listbox"),this.list.setAttribute("aria-label",this.view.state.phrase("Diagnostics")),this.list.addEventListener("keydown",(function(e){27==e.keyCode?(e.preventDefault(),k(n.view),n.view.focus()):38==e.keyCode?(e.preventDefault(),n.moveSelection((n.selectedIndex-1+n.items.length)%n.items.length)):40==e.keyCode?(e.preventDefault(),n.moveSelection((n.selectedIndex+1)%n.items.length)):36==e.keyCode?(e.preventDefault(),n.moveSelection(0)):35==e.keyCode?(e.preventDefault(),n.moveSelection(n.items.length-1)):13==e.keyCode&&(e.preventDefault(),n.view.focus())})),this.list.addEventListener("click",(function(e){for(var t=0;t<n.items.length;t++)n.items[t].dom.contains(e.target)&&n.moveSelection(t)}));var r=this.dom.appendChild(document.createElement("button"));r.setAttribute("name","close"),r.setAttribute("aria-label",this.view.state.phrase("close")),r.textContent="\xd7",r.addEventListener("click",(function(){return k(n.view)})),this.update()}return Object(a.a)(e,[{key:"update",value:function(){var e=this,t=this.view.state.field(y),n=t.diagnostics,r=t.selected,i=0,a=!1,o=null;for(n.between(0,this.view.state.doc.length,(function(t,n,s){for(var c,l=s.spec,u=-1,f=i;f<e.items.length;f++)if(e.items[f].diagnostic==l.diagnostic){u=f;break}u<0?(c=new M(e.view,l.diagnostic),e.items.splice(i,0,c),a=!0):(c=e.items[u],u>i&&(e.items.splice(i,u-i),a=!0)),r&&c.diagnostic==r.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),i++}));i<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)a=!0,this.items.pop();0==this.items.length&&(this.items.push(new M(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),a=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:function(){return{sel:o.dom.getBoundingClientRect(),panel:e.list.getBoundingClientRect()}},write:function(t){var n=t.sel,r=t.panel;n.top<r.top?e.list.scrollTop-=r.top-n.top:n.bottom>r.bottom&&(e.list.scrollTop+=n.bottom-r.bottom)}})):this.items.length||this.list.removeAttribute("aria-activedescendant"),a&&this.sync()}},{key:"sync",value:function(){var e=this.list.firstChild;function t(){var t=e;e=t.nextSibling,t.remove()}var n,r=Object(o.a)(this.items);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e)}}catch(a){r.e(a)}finally{r.f()}for(;e;)t();this.list.firstChild||this.list.appendChild(C(this.view,{severity:"info",message:this.view.state.phrase("No diagnostics")}))}},{key:"moveSelection",value:function(e){if(0!=this.items.length){var t=p(this.view.state.field(y).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:b.of(t)})}}},{key:"selectedIndex",get:function(){var e=this.view.state.field(y).selected;if(!e)return-1;for(var t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}},{key:"style",get:function(){return"lint"}}],[{key:"open",value:function(t){return new e(t)}}]),e}();function T(e){var t='<svg xmlns="http://www.w3.org/2000/svg" width="6" height="3">\n <path d="m0 3 l2 -2 l1 0 l2 2 l1 0" stroke="'.concat(e,'" fill="none" stroke-width=".7"/>\n </svg>');return"url('data:image/svg+xml;base64,".concat(btoa(t),"')")}var _=c.d.baseTheme({$diagnostic:{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block"},"$diagnostic.error":{borderLeft:"5px solid #d11"},"$diagnostic.warning":{borderLeft:"5px solid orange"},"$diagnostic.info":{borderLeft:"5px solid #999"},$diagnosticAction:{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},$lintRange:{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x"},"$lintRange.error":{backgroundImage:T("#d11")},"$lintRange.warning":{backgroundImage:T("orange")},"$lintRange.info":{backgroundImage:T("#999")},"$lintRange.active":{backgroundColor:"#ffdd9980"},$lintPoint:{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},"$lintPoint.warning":{"&:after":{borderBottomColor:"orange"}},"$lintPoint.info":{"&:after":{borderBottomColor:"#999"}},"$panel.lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd"},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"$tooltip.lint":{padding:0,margin:0}})},function(e,t,n){"use strict";function r(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(167),i=n(166),a=n(170),o=n(82),s=n(102),c=n(103),l=Object.prototype.hasOwnProperty,u=a((function(e,t){if(s(t)||o(t))i(t,c(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=u},function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return k}));var r=n(24);n.d(t,"a",(function(){return r.c}));var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};var a,o=function(){function e(e,t,n,r,i,a,o,s,c){this.cx=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=i,this.score=a,this.buffer=o,this.bufferBase=s,this.parent=c}return e.prototype.toString=function(){return"["+this.stack.filter((function(e,t){return t%3==0})).concat(this.state)+"]@"+this.pos+(this.score?"!"+this.score:"")},e.start=function(t,n,r){return void 0===r&&(r=0),new e(t,[],n,r,r,0,[],0,null)},e.prototype.pushState=function(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e},e.prototype.reduce=function(e){var t=e>>19,n=65535&e,r=this.cx.parser,i=r.dynamicPrecedence(n);if(i&&(this.score+=i),0==t)return n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,4,!0),void this.pushState(r.getGoto(this.state,n,!0),this.reducePos);var a=this.stack.length-3*(t-1)-(262144&e?6:0),o=this.stack[a-2],s=this.stack[a-1],c=this.bufferBase+this.buffer.length-s;if(n<r.minRepeatTerm||131072&e){var l=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,o,l,c+4,!0)}if(262144&e)this.state=this.stack[a];else{var u=this.stack[a-3];this.state=r.getGoto(u,n,!0)}for(;this.stack.length>a;)this.stack.pop()},e.prototype.storeNode=function(e,t,n,r,i){if(void 0===r&&(r=4),void 0===i&&(i=!1),0==e){var a=this,o=this.buffer.length;if(0==o&&a.parent&&(o=a.bufferBase-a.parent.bufferBase,a=a.parent),o>0&&0==a.buffer[o-4]&&a.buffer[o-1]>-1){if(t==n)return;if(a.buffer[o-2]>=t)return void(a.buffer[o-2]=n)}}if(i&&this.pos!=n){var s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>n;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,r>4&&(r-=4);this.buffer[s]=e,this.buffer[s+1]=t,this.buffer[s+2]=n,this.buffer[s+3]=r}else this.buffer.push(e,t,n,r)},e.prototype.shift=function(e,t,n){if(131072&e)this.pushState(65535&e,this.pos);else if(0==(262144&e)){var r=this.pos,i=e,a=this.cx.parser;(n>this.pos||t<=a.maxNode)&&(this.pos=n,a.stateFlag(i,1)||(this.reducePos=n)),this.pushState(i,r),t<=a.maxNode&&this.buffer.push(t,r,n,4)}else t<=this.cx.parser.maxNode&&this.buffer.push(t,this.pos,n,4),this.pos=n},e.prototype.apply=function(e,t,n){65536&e?this.reduce(e):this.shift(e,t,n)},e.prototype.useNode=function(e,t){var n=this.cx.reused.length-1;(n<0||this.cx.reused[n]!=e)&&(this.cx.reused.push(e),n++);var r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1)},e.prototype.split=function(){for(var t=this,n=t.buffer.length;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;for(var r=t.buffer.slice(n),i=t.bufferBase+n;t&&i==t.bufferBase;)t=t.parent;return new e(this.cx,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,t)},e.prototype.recoverByDelete=function(e,t){var n=e<=this.cx.parser.maxNode;n&&this.storeNode(e,this.pos,t),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=200},e.prototype.canShift=function(e){for(var t=new s(this);;){var n=this.cx.parser.stateSlot(t.top,4)||this.cx.parser.hasAction(t.top,e);if(0==(65536&n))return!0;if(0==n)return!1;t.reduce(n)}},Object.defineProperty(e.prototype,"ruleStart",{get:function(){for(var e=this.state,t=this.stack.length;;){var n=this.cx.parser.stateSlot(e,5);if(!(65536&n))return 0;if(t-=3*(n>>19),(65535&n)<this.cx.parser.minRepeatTerm)return this.stack[t+1];e=this.stack[t]}},enumerable:!0,configurable:!0}),e.prototype.startOf=function(e){for(var t=this.state,n=this.stack.length,r=this.cx.parser;;){var i=r.stateSlot(t,5),a=i>>19,o=65535&i;if(e.indexOf(o)>-1){var s=n-3*(i>>19);return this.stack[s+1]}if(0==n)return-1;0==a?(n-=3,t=this.stack[n]):(n-=3*(a-1),t=r.getGoto(this.stack[n-3],o,!0))}},e.prototype.recoverByInsert=function(e){var t=this;if(this.stack.length>=300)return[];var n=this.cx.parser.nextStates(this.state);if(n.length>4||this.stack.length>=120){var r=n.filter((function(n){return n!=t.state&&t.cx.parser.hasAction(n,e)}));if(this.stack.length<120)for(var i=0;r.length<4&&i<n.length;i++)r.indexOf(n[i])<0&&r.push(n[i]);n=r}var a=[];for(i=0;i<n.length&&a.length<4;i++)if(n[i]!=this.state){var o=this.split();o.storeNode(0,o.pos,o.pos,4,!0),o.pushState(n[i],this.pos),o.score-=200,a.push(o)}return a},e.prototype.forceReduce=function(){var e=this.cx.parser.stateSlot(this.state,5);return 0!=(65536&e)&&(this.cx.parser.validAction(this.state,e)||(this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100),this.reduce(e),!0)},e.prototype.forceAll=function(){for(;!this.cx.parser.stateFlag(this.state,2)&&this.forceReduce(););return this},Object.defineProperty(e.prototype,"deadEnd",{get:function(){if(3!=this.stack.length)return!1;var e=this.cx.parser;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)},enumerable:!0,configurable:!0}),e.prototype.restart=function(){this.state=this.stack[0],this.stack.length=0},e.prototype.sameState=function(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(var t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0},e.prototype.toTree=function(){return r.e.build({buffer:c.create(this),group:this.cx.parser.group,topID:this.cx.topTerm,maxBufferLength:this.cx.maxBufferLength,reused:this.cx.reused,minRepeatType:this.cx.parser.minRepeatTerm})},Object.defineProperty(e.prototype,"parser",{get:function(){return this.cx.parser},enumerable:!0,configurable:!0}),e.prototype.dialectEnabled=function(e){return this.cx.dialect.flags[e]},e}();!function(e){e[e.Token=200]="Token",e[e.Reduce=100]="Reduce",e[e.MaxNext=4]="MaxNext",e[e.MaxInsertStackDepth=300]="MaxInsertStackDepth",e[e.DampenInsertStackDepth=120]="DampenInsertStackDepth"}(a||(a={}));var s=function(){function e(e){this.stack=e,this.top=e.state,this.rest=e.stack,this.offset=this.rest.length}return e.prototype.reduce=function(e){var t=65535&e,n=e>>19;0==n?(this.rest==this.stack.stack&&(this.rest=this.rest.slice()),this.rest.push(this.top,0,0),this.offset+=3):this.offset-=3*(n-1);var r=this.stack.cx.parser.getGoto(this.rest[this.offset-3],t,!0);this.top=r},e}(),c=function(){function e(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}return e.create=function(t){return new e(t,t.bufferBase+t.buffer.length,t.buffer.length)},e.prototype.maybeNext=function(){var e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)},Object.defineProperty(e.prototype,"id",{get:function(){return this.buffer[this.index-4]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this.buffer[this.index-3]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this.buffer[this.index-2]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.buffer[this.index-1]},enumerable:!0,configurable:!0}),e.prototype.next=function(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()},e.prototype.fork=function(){return new e(this.stack,this.pos,this.index)},e}(),l=function(){function e(){this.start=-1,this.value=-1,this.end=-1}return e.prototype.accept=function(e,t){this.value=e,this.end=t},e}(),u=function(){function e(e,t){void 0===t&&(t=e.length),this.string=e,this.length=t}return e.prototype.get=function(e){return e<0||e>=this.length?-1:this.string.charCodeAt(e)},e.prototype.read=function(e,t){return this.string.slice(e,Math.min(this.length,t))},e.prototype.clip=function(t){return new e(this.string,t)},e}(),f=function(){function e(e,t){this.data=e,this.id=t}return e.prototype.token=function(e,t,n){!function(e,t,n,r,i){var a=0,o=1<<i,s=r.cx.dialect;e:for(var c=n.start;0!=(o&e[a]);){for(var l=e[a+1],u=a+3;u<l;u+=2)if((e[u+1]&o)>0){var f=e[u];if(s.allows(f)&&(-1==n.value||n.value==f||r.cx.parser.overrides(f,n.value))){n.accept(f,c);break}}for(var d=t.get(c++),h=0,p=e[a+2];h<p;){var v=h+p>>1,m=l+v+(v<<1),g=e[m],b=e[m+1];if(d<g)p=v;else{if(!(d>=b)){a=e[m+2];continue e}h=v+1}}break}}(this.data,e,t,n,this.id)},e}();f.prototype.contextual=f.prototype.fallback=f.prototype.extend=!1;function d(e,t){if(void 0===t&&(t=Uint16Array),"string"!=typeof e)return e;for(var n=null,r=0,i=0;r<e.length;){for(var a=0;;){var o=e.charCodeAt(r++),s=!1;if(126==o){a=65535;break}o>=92&&o--,o>=34&&o--;var c=o-32;if(c>=46&&(c-=46,s=!0),a+=c,s)break;a*=46}n?n[i++]=a:n=new t(a)}return n}var h="undefined"!=typeof e&&/\bparse\b/.test(Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}).LOG),p=null,v=function(){function e(e){this.start=[0],this.index=[0],this.nextStart=0,this.trees=[e]}return e.prototype.nodeAt=function(e){if(e<this.nextStart)return null;for(;;){var t=this.trees.length-1;if(t<0)return this.nextStart=1e9,null;var n=this.trees[t],i=this.index[t];if(i!=n.children.length){var a=n.children[i],o=this.start[t]+n.positions[i];if(o>=e)return o==e?a:null;a instanceof r.f?(this.index[t]++,this.nextStart=o+a.length):(this.index[t]++,o+a.length>=e&&(this.trees.push(a),this.start.push(o),this.index.push(0)))}else this.trees.pop(),this.start.pop(),this.index.pop()}},e}(),m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.extended=-1,t.mask=0,t}return function(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.clear=function(e){this.start=e,this.value=this.extended=-1},t}(l),g=new l,b=function(){function e(e){this.tokens=[],this.mainToken=g,this.actions=[],this.tokens=e.tokenizers.map((function(e){return new m}))}return e.prototype.getActions=function(e,t){for(var n=0,r=null,i=e.cx.parser,a=i.tokenizers,o=i.stateSlot(e.state,3),s=0;s<a.length;s++)if(0!=(1<<s&o)){var c=a[s],l=this.tokens[s];if((!r||c.fallback)&&((c.contextual||l.start!=e.pos||l.mask!=o)&&(this.updateCachedToken(l,c,e,t),l.mask=o),0!=l.value)){var u=n;if(l.extended>-1&&(n=this.addActions(e,l.extended,l.end,n)),n=this.addActions(e,l.value,l.end,n),!c.extend&&(r=l,n>u))break}}for(;this.actions.length>n;)this.actions.pop();return r||((r=g).start=e.pos,e.pos==t.length?r.accept(e.cx.parser.eofTerm,e.pos):r.accept(0,e.pos+1)),this.mainToken=r,this.actions},e.prototype.updateCachedToken=function(e,t,n,r){if(e.clear(n.pos),t.token(r,e,n),e.value>-1){for(var i=n.cx.parser,a=0;a<i.specialized.length;a++)if(i.specialized[a]==e.value){var o=i.specializers[a](r.read(e.start,e.end),n);if(o>=0&&n.cx.dialect.allows(o>>1)){0==(1&o)?e.value=o>>1:e.extended=o>>1;break}}}else n.pos==r.length?e.accept(n.cx.parser.eofTerm,n.pos):e.accept(0,n.pos+1)},e.prototype.putAction=function(e,t,n,r){for(var i=0;i<r;i+=3)if(this.actions[i]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r},e.prototype.addActions=function(e,t,n,r){for(var i=e.state,a=e.cx.parser,o=a.data,s=0;s<2;s++)for(var c=a.stateSlot(i,s?2:1);;c+=3){if(65535==o[c]){if(1!=o[c+1]){0==r&&2==o[c+1]&&(r=this.putAction(w(o,c+1),t,n,r));break}c=w(o,c+2)}o[c]==t&&(r=this.putAction(w(o,c+1),t,n,r))}return r},e}(),y=function(e,t,n,r,i,a,o){void 0===a&&(a=null),void 0===o&&(o=-1),this.parser=e,this.maxBufferLength=t,this.input=n,this.topTerm=r,this.dialect=i,this.parent=a,this.wrapType=o,this.reused=[],this.tokens=new b(e)},O=function(){function e(e,t,n){void 0===n&&(n={}),this.pos=0,this.recovering=0,this.tokenCount=0,this.nextStackID=9812;var i=n.cache,a=void 0===i?void 0:i,s=n.strict,c=void 0!==s&&s,l=n.bufferLength,u=void 0===l?r.a:l,f=n.top,d=void 0===f?void 0:f,h=n.dialect,p=d?e.topRules[d]:e.defaultTop;if(!p)throw new RangeError("Invalid top rule name "+d);this.stacks=[o.start(new y(e,u,t,p[1],e.parseDialect(h)),p[0])],this.strict=c,this.cache=a?new v(a):null}return e.prototype.putStack=function(e){this.stacks.push(e),(this.pos<0||e.pos<this.pos)&&(this.pos=e.pos)},e.prototype.putStackDedup=function(e){for(var t=0;t<this.stacks.length;t++){var n=this.stacks[t];if(n.pos==e.pos&&n.sameState(e))return void(this.stacks[t].score<e.score&&(this.stacks[t]=e))}this.putStack(e)},e.prototype.advance=function(){var e=this.stacks,t=this.pos;this.stacks=[],this.pos=-1;for(var n=null,r=null,i=0;i<e.length;i++)for(var a=e[i];;){if(a.pos>t)this.putStack(a);else{var o=this.advanceStack(a,e);if(o){a=o;continue}n||(n=[],r=[]),n.push(a);var s=a.cx.tokens.mainToken;r.push(s.value,s.end)}break}if(!this.stacks.length){var c;if(c=n&&function(e){for(var t=null,n=0,r=e;n<r.length;n++){var i=r[n];i.pos==i.cx.input.length&&i.cx.parser.stateFlag(i.state,2)&&(!t||t.score<i.score)&&(t=i)}return t}(n))return c.toTree();if(this.strict)throw h&&n&&console.log("Stuck with token "+n[0].cx.parser.getName(n[0].cx.tokens.mainToken.value)),new SyntaxError("No parse at "+t);this.recovering||(this.recovering=5)}if(this.recovering&&n&&(c=this.runRecovery(n,r)))return c.forceAll().toTree();if(this.recovering){var l=1==this.recovering?1:3*this.recovering;this.stacks.length>l&&(this.stacks.sort((function(e,t){return t.score-e.score})),this.stacks.length=l),this.stacks.some((function(e){return e.reducePos>t}))&&this.recovering--}else if(this.stacks.length>1)e:for(i=0;i<this.stacks.length-1;i++){a=this.stacks[i];for(var u=i+1;u<this.stacks.length;u++){var f=this.stacks[u];if(a.sameState(f)||a.buffer.length>200&&f.buffer.length>200){if(!((a.score-f.score||a.buffer.length-f.buffer.length)>0)){this.stacks.splice(i--,1);continue e}this.stacks.splice(u--,1)}}}return this.tokenCount++,null},e.prototype.advanceStack=function(e,t){var n=e.pos,i=e.cx,a=i.input,s=i.parser,c=h?this.stackID(e)+" -> ":"";if(this.cache)for(var l=this.cache.nodeAt(n);l;){var u=s.group.types[l.type.id]==l.type?s.getGoto(e.state,l.type.id):-1;if(u>-1)return e.useNode(l,u),h&&console.log(c+this.stackID(e)+" (via reuse of "+s.getName(l.type.id)+")"),e;if(!(l instanceof r.e)||0==l.children.length||l.positions[0]>0)break;var f=l.children[0];if(!(f instanceof r.e))break;l=f}var d=s.startNested(e.state);e:if(d>-1){var p=s.nested[d],v=p.grammar,m=p.end,g=p.placeholder,b=void 0,O=null,x=void 0,k=void 0,w=void 0,j=void 0;if("function"==typeof v){var S=v(a,e);if(S.stay)break e;O=S.parseNode,x=S.parser,k=S.top,w=S.dialect,b=S.filterEnd,j=S.wrapType}else x=v;var C=this.scanForNestEnd(e,m,b),E=e.cx.input.clip(C);if(O||!x){var M=O?O(E,e.pos):r.e.empty;return M.length!=C-e.pos&&(M=new r.e(M.type,M.children,M.positions,C-e.pos)),null!=j&&(M=new r.e(s.group.types[j],[M],[0],M.length)),e.useNode(M,s.getGoto(e.state,g,!0)),e}var P=k?x.topRules[k]:x.defaultTop,T=o.start(new y(x,e.cx.maxBufferLength,E,P[1],x.parseDialect(w),e,j),P[0],e.pos);return h&&console.log(c+this.stackID(T)+" (nested)"),T}var _=s.stateSlot(e.state,4);if(_>0)return e.reduce(_),h&&console.log(c+this.stackID(e)+" (via always-reduce "+s.getName(65535&_)+")"),e;for(var D=e.cx.tokens.getActions(e,a),A=0;A<D.length;){var R=D[A++],L=D[A++],N=(C=D[A++],A==D.length||!t),I=N?e:e.split();if(I.apply(R,L,C),h&&console.log(c+this.stackID(I)+" (via "+(0==(65536&R)?"shift":"reduce of "+s.getName(65535&R))+" for "+s.getName(L)+" @ "+n+(I==e?"":", split")+")"),N)return I;I.pos>n?this.putStack(I):t.push(I)}return e.cx.parent&&e.pos==a.length?this.finishNested(e):null},e.prototype.advanceFully=function(e){for(var t=e.pos;;){var n=this.advanceStack(e,null);if(!n)return e;if(n.pos>t)return this.putStackDedup(n),null;e=n}},e.prototype.runRecovery=function(e,t){for(var n=null,r=!1,i=0;i<e.length;i++){var a=e[i],o=t[i<<1],s=t[1+(i<<1)],c=h?this.stackID(a)+" -> ":"";if(a.deadEnd){if(r)continue;if(r=!0,a.restart(),h&&console.log(c+this.stackID(a)+" (restarted)"),!(d=this.advanceFully(a)))continue;a=d}for(var l=a.split(),u=c,f=0;l.forceReduce()&&f<10;f++){var d;if(h&&console.log(u+this.stackID(l)+" (via force-reduce)"),!(d=this.advanceFully(l)))break;l=d,h&&(u=this.stackID(d)+" -> ")}for(var p=0,v=a.recoverByInsert(o);p<v.length;p++){var m=v[p];h&&console.log(c+this.stackID(m)+" (via recover-insert)"),this.advanceFully(m)}a.cx.input.length>a.pos?(s==a.pos&&(s++,o=0),a.recoverByDelete(o,s),h&&console.log(c+this.stackID(a)+" (via recover-delete "+a.cx.parser.getName(o)+")"),this.putStackDedup(a)):a.cx.parent||n&&!(n.score<a.score)||(n=a)}return n},e.prototype.forceFinish=function(){return this.stacks[0].split().forceAll().toTree()},Object.defineProperty(e.prototype,"badness",{get:function(){return this.stacks.length?-this.stacks[0].score/(200*this.tokenCount):0},enumerable:!0,configurable:!0}),e.prototype.scanForNestEnd=function(e,t,n){for(var r=e.cx.input,i=e.pos;i<r.length;i++)if(g.start=i,g.value=-1,t.token(r,g,e),g.value>-1&&(!n||n(r.read(i,g.end))))return i;return r.length},e.prototype.finishNested=function(e){if(-2==e.cx.wrapType)return null;var t=e.cx.parent,n=e.forceAll().toTree(),i=t.cx.parser,a=i.nested[i.startNested(t.state)];return n=new r.e(n.type,n.children,n.positions.map((function(e){return e-t.pos})),e.pos-t.pos),e.cx.wrapType>-1&&(n=new r.e(i.group.types[e.cx.wrapType],[n],[0],n.length)),e.cx.wrapType=-2,t.useNode(n,i.getGoto(t.state,a.placeholder,!0)),h&&console.log(this.stackID(t)+" (via unnest "+(e.cx.wrapType>-1?i.getName(e.cx.wrapType):n.type.name)+")"),t},e.prototype.stackID=function(e){var t=(p||(p=new WeakMap)).get(e);return t||p.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e},e}(),x=function(){function e(e,t,n){this.source=e,this.flags=t,this.disabled=n}return e.prototype.allows=function(e){return!this.disabled||0==this.disabled[e]},e}(),k=function(){function e(e){this.nextStateCache=[],this.cachedDialect=null;var t=d(e.tokenData),n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(var i=0;i<e.repeatNodeCount;i++)n.push("");var a=[];for(i=0;i<n.length;i++)a.push(j);function o(e,t,n){a[e]==j&&(a[e]=Object.create(null)),t.set(a[e],t.deserialize(String(n)))}if(o(0,r.c.error,""),e.nodeProps)for(var s=0,c=e.nodeProps;s<c.length;s++){var l=c[s],u=l[0];for(i=1;i<l.length;i+=2)o(l[i],u,l[i+1])}if(this.specialized=new Uint16Array(e.specialized?e.specialized.length:0),this.specializers=[],e.specialized)for(i=0;i<e.specialized.length;i++)this.specialized[i]=e.specialized[i].term,this.specializers[i]=e.specialized[i].get;this.states=d(e.states,Uint32Array),this.data=d(e.stateData),this.goto=d(e.goto),this.group=new r.b(n.map((function(e,t){return new r.d(e,a[t],t)}))),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map((function(e){return"number"==typeof e?new f(t,e):e})),this.topRules=e.topRules,this.nested=(e.nested||[]).map((function(e){var t=e[0],n=e[1],r=e[2],i=e[3];return{name:t,grammar:n,end:new f(d(r),0),placeholder:i}})),this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.group.types.length-1;i=0;for(var h=this.states.length/6;i<h;i++)this.nextStateCache[i]=null}return e.prototype.parse=function(e,t){"string"==typeof e&&(e=new u(e));for(var n=new O(this,e,t);;){var r=n.advance();if(r)return r}},e.prototype.startParse=function(e,t){return"string"==typeof e&&(e=new u(e)),new O(this,e,t)},e.prototype.getGoto=function(e,t,n){void 0===n&&(n=!1);var r=this.goto;if(t>=r[0])return-1;for(var i=r[t+1];;){var a=r[i++],o=1&a,s=r[i++];if(o&&n)return s;for(var c=i+(a>>1);i<c;i++)if(r[i]==e)return s;if(o)return-1}},e.prototype.hasAction=function(e,t){for(var n=this.data,r=0;r<2;r++)for(var i=this.stateSlot(e,r?2:1),a=void 0;;i+=3){if(65535==(a=n[i])){if(1!=n[i+1]){if(2==n[i+1])return w(n,i+2);break}a=n[i=w(n,i+2)]}if(a==t||0==a)return w(n,i+1)}return 0},e.prototype.stateSlot=function(e,t){return this.states[6*e+t]},e.prototype.stateFlag=function(e,t){return(this.stateSlot(e,0)&t)>0},e.prototype.startNested=function(e){var t=this.stateSlot(e,0);return 4&t?t>>10:-1},e.prototype.validAction=function(e,t){if(t==this.stateSlot(e,4))return!0;for(var n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n]){if(1!=this.data[n+1])return!1;n=w(this.data,n+2)}if(t==w(this.data,n+1))return!0}},e.prototype.nextStates=function(e){var t=this.nextStateCache[e];if(t)return t;for(var n=[],r=this.stateSlot(e,1);;r+=3){if(65535==this.data[r]){if(1!=this.data[r+1])break;r=w(this.data,r+2)}0==(1&this.data[r+2])&&n.indexOf(this.data[r+1])<0&&n.push(this.data[r+1])}for(var i=this.goto,a=i[0],o=0;o<a;o++)for(var s=i[o+1];;){for(var c=i[s++],l=i[s++],u=s+(c>>1);s<u;s++)i[s]==e&&n.indexOf(l)<0&&n.push(l);if(1&c)break}return this.nextStateCache[e]=n},e.prototype.overrides=function(e,t){var n=S(this.data,this.tokenPrecTable,t);return n<0||S(this.data,this.tokenPrecTable,e)<n},e.prototype.withNested=function(e){return this.copy({nested:this.nested.map((function(t){return Object.prototype.hasOwnProperty.call(e,t.name)?{name:t.name,grammar:e[t.name],end:t.end,placeholder:t.placeholder}:t}))})},e.prototype.withProps=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this.copy({group:(e=this.group).extend.apply(e,t)})},e.prototype.withTokenizer=function(e,t){return this.copy({tokenizers:this.tokenizers.map((function(n){return n==e?t:n}))})},e.prototype.copy=function(t){for(var n=Object.create(e.prototype),r=0,i=Object.keys(this);r<i.length;r++){var a=i[r];n[a]=a in t?t[a]:this[a]}return n},e.prototype.getName=function(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.group.types[e].name||e)},Object.defineProperty(e.prototype,"eofTerm",{get:function(){return this.maxNode+1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasNested",{get:function(){return this.nested.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultTop",{get:function(){return this.topRules[Object.keys(this.topRules)[0]]},enumerable:!0,configurable:!0}),e.prototype.dynamicPrecedence=function(e){var t=this.dynamicPrecedences;return null==t?0:t[e]||0},Object.defineProperty(e.prototype,"topType",{get:function(){return this.group.types[this.defaultTop[1]]},enumerable:!0,configurable:!0}),e.prototype.parseDialect=function(e){if(this.cachedDialect&&this.cachedDialect.source==e)return this.cachedDialect;var t=Object.keys(this.dialects),n=t.map((function(){return!1}));if(e)for(var r=0,i=e.split(" ");r<i.length;r++){var a=i[r];(l=t.indexOf(a))>=0&&(n[l]=!0)}for(var o=null,s=0;s<t.length;s++)if(!n[s])for(var c=this.dialects[t[s]],l=void 0;65535!=(l=this.data[c++]);)(o||(o=new Uint8Array(this.maxTerm+1)))[l]=1;return this.cachedDialect=new x(e,n,o)},e.deserialize=function(t){return new e(t)},e}();function w(e,t){return e[t]|e[t+1]<<16}k.TokenGroup=f;var j=Object.create(null);function S(e,t,n){for(var r=t,i=void 0;65535!=(i=e[r]);r++)if(i==n)return r-t;return-1}}).call(this,n(339))},function(e,t,n){"use strict";var r=n(57),i=n(52),a=(n(12),n(0)),o=n.n(a),s=n(26),c=n.n(s),l=!1,u=n(86),f="unmounted",d="exited",h="entering",p="entered",v="exiting",m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=d,r.appearStatus=h):i=p:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==p&&(t=h):n!==h&&n!==p||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===h?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[c.a.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||l?this.safeSetState({status:p},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:h},(function(){t.props.onEntering(a,o),t.onTransitionEnd(u,(function(){t.safeSetState({status:p},(function(){t.props.onEntered(a,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:c.a.findDOMNode(this);t&&!l?(this.props.onExit(r),this.safeSetState({status:v},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return o.a.createElement(u.a.Provider,{value:null},"function"===typeof n?n(e,i):o.a.cloneElement(o.a.Children.only(n),i))},t}(o.a.Component);function g(){}m.contextType=u.a,m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=f,m.EXITED=d,m.ENTERING=h,m.ENTERED=p,m.EXITING=v;t.a=m},,,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===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(i){return!1}}()?Object.assign:function(e,t){for(var n,s,c=o(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(c[s[f]]=n[s[f]])}}return c}},function(e,t,n){"use strict";function r(e){return function(){return null}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r,i){return null}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(97),i=n(242),a=n(243),o=n(244),s=n(245),c=n(246);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=i,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t,n){var r=n(74)(n(54),"Map");e.exports=r},function(e,t,n){var r=n(81),i=n(62);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(253),i=n(260),a=n(262),o=n(263),s=n(264);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(161);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(274),i=n(75),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(54),i=n(276),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||i;e.exports=c}).call(this,n(136)(e))},function(e,t,n){var r=n(278),i=n(279),a=n(280),o=a&&a.isTypedArray,s=o?i(o):r;e.exports=s},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){e.exports=function(e){return e}},function(e,t,n){var r=n(63),i=n(104),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(o.test(e)||!a.test(e)||null!=t&&e in Object(t))}},function(e,t,n){(function(t){var n="__lodash_hash_undefined__",r="[object Function]",i="[object GeneratorFunction]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,s=/^\./,c=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,l=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,f="object"==typeof t&&t&&t.Object===Object&&t,d="object"==typeof self&&self&&self.Object===Object&&self,h=f||d||Function("return this")();var p=Array.prototype,v=Function.prototype,m=Object.prototype,g=h["__core-js_shared__"],b=function(){var e=/[^.]+$/.exec(g&&g.keys&&g.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),y=v.toString,O=m.hasOwnProperty,x=m.toString,k=RegExp("^"+y.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),w=h.Symbol,j=p.splice,S=N(h,"Map"),C=N(Object,"create"),E=w?w.prototype:void 0,M=E?E.toString:void 0;function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function D(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!==n&&r!==r)return i;return-1}function A(e,t){for(var n,r=0,i=(t=function(e,t){if(F(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||Q(e))return!0;return o.test(e)||!a.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:F(n=t)?n:I(n)).length;null!=e&&r<i;)e=e[z(t[r++])];return r&&r==i?e:void 0}function R(e){return!(!B(e)||(t=e,b&&b in t))&&(function(e){var t=B(e)?x.call(e):"";return t==r||t==i}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?k:u).test(function(e){if(null!=e){try{return y.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e));var t}function L(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}P.prototype.clear=function(){this.__data__=C?C(null):{}},P.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},P.prototype.get=function(e){var t=this.__data__;if(C){var r=t[e];return r===n?void 0:r}return O.call(t,e)?t[e]:void 0},P.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:O.call(t,e)},P.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?n:t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,n=D(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),!0)},T.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},T.prototype.has=function(e){return D(this.__data__,e)>-1},T.prototype.set=function(e,t){var n=this.__data__,r=D(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new P,map:new(S||T),string:new P}},_.prototype.delete=function(e){return L(this,e).delete(e)},_.prototype.get=function(e){return L(this,e).get(e)},_.prototype.has=function(e){return L(this,e).has(e)},_.prototype.set=function(e,t){return L(this,e).set(e,t),this};var I=$((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Q(e))return M?M.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return s.test(e)&&n.push(""),e.replace(c,(function(e,t,r,i){n.push(r?i.replace(l,"$1"):t||e)})),n}));function z(e){if("string"==typeof e||Q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function $(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o),o};return n.cache=new($.Cache||_),n}$.Cache=_;var F=Array.isArray;function B(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Q(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==x.call(e)}e.exports=function(e,t,n){var r=null==e?void 0:A(e,t);return void 0===r?n:r}}).call(this,n(90))},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,s="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),u=Object.prototype.toString,f=Math.max,d=Math.min,h=function(){return l.Date.now()};function p(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==u.call(e)}(e))return NaN;if(p(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=p(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var s=i.test(e);return s||a.test(e)?o(e.slice(2),s?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,s,c,l=0,u=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function y(e){return l=e,s=setTimeout(x,t),u?b(e):o}function O(e){var n=e-c;return void 0===c||n>=t||n<0||m&&e-l>=a}function x(){var e=h();if(O(e))return k(e);s=setTimeout(x,function(e){var n=t-(e-c);return m?d(n,a-(e-l)):n}(e))}function k(e){return s=void 0,g&&r?b(e):(r=i=void 0,o)}function w(){var e=h(),n=O(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return y(c);if(m)return s=setTimeout(x,t),b(c)}return void 0===s&&(s=setTimeout(x,t)),o}return t=v(t)||0,p(n)&&(u=!!n.leading,a=(m="maxWait"in n)?f(v(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g),w.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},w.flush=function(){return void 0===s?o:k(h())},w}}).call(this,n(90))},function(e,t,n){e.exports=n(340)},,,,,,,,,,function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)"undefined"!==typeof e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],l=a[c];"object"===typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:c}),n.push(l))}return function(e){for(var t;e.length;){var n=e.pop();if(t=n.obj[n.prop],Array.isArray(t)){for(var r=[],i=0;i<t.length;++i)"undefined"!==typeof t[i]&&r.push(t[i]);n.obj[n.prop]=r}}return t}(t)},decode:function(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}},encode:function(e){if(0===e.length)return e;for(var t="string"===typeof e?e:String(e),n="",r=0;r<t.length;++r){var a=t.charCodeAt(r);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?n+=t.charAt(r):a<128?n+=i[a]:a<2048?n+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?n+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(r+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(r)),n+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return n},isBuffer:function(e){return null!==e&&"undefined"!==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,i){if(!n)return t;if("object"!==typeof n){if(Array.isArray(t))t.push(n);else{if("object"!==typeof t)return[t,n];(i.plainObjects||i.allowPrototypes||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if("object"!==typeof t)return[t].concat(n);var o=t;return Array.isArray(t)&&!Array.isArray(n)&&(o=a(t,i)),Array.isArray(t)&&Array.isArray(n)?(n.forEach((function(n,a){r.call(t,a)?t[a]&&"object"===typeof t[a]?t[a]=e(t[a],n,i):t.push(n):t[a]=n})),t):Object.keys(n).reduce((function(t,a){var o=n[a];return r.call(t,a)?t[a]=e(t[a],o,i):t[a]=o,t}),o)}}},function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g;e.exports={default:"RFC3986",formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(90))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(t){}try{return e+""}catch(t){}}return""}},function(e,t,n){var r=n(135),i=n(91);e.exports=function(e,t,n){(void 0!==n&&!i(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t,n){var r=n(74),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=i},function(e,t,n){var r=n(54).Uint8Array;e.exports=r},function(e,t,n){var r=n(164)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(167),i=n(135);e.exports=function(e,t,n,a){var o=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),o?i(n,l,u):r(n,l,u)}return n}},function(e,t,n){var r=n(135),i=n(91),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];a.call(e,t)&&i(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(169),i=n(283),a=n(82);e.exports=function(e){return a(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(282),i=n(137),a=n(63),o=n(139),s=n(141),c=n(140),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),u=!n&&i(e),f=!n&&!u&&o(e),d=!n&&!u&&!f&&c(e),h=n||u||f||d,p=h?r(e.length,String):[],v=p.length;for(var m in e)!t&&!l.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||p.push(m);return p}},function(e,t,n){var r=n(285),i=n(292);e.exports=function(e){return r((function(t,n){var r=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,s&&i(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++r<a;){var c=n[r];c&&e(t,c,r,o)}return t}))}},function(e,t,n){var r=n(296),i=n(320),a=n(142),o=n(63),s=n(331);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(298),i=n(75);e.exports=function e(t,n,a,o,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!==t&&n!==n:r(t,n,a,o,e,s))}},function(e,t,n){var r=n(299),i=n(302),a=n(303);e.exports=function(e,t,n,o,s,c){var l=1&n,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var d=c.get(e),h=c.get(t);if(d&&h)return d==t&&h==e;var p=-1,v=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],b=t[p];if(o)var y=l?o(b,g,p,t,e,c):o(g,b,p,e,t,c);if(void 0!==y){if(y)continue;v=!1;break}if(m){if(!i(t,(function(e,t){if(!a(m,t)&&(g===e||s(g,e,n,o,c)))return m.push(t)}))){v=!1;break}}else if(g!==b&&!s(g,b,n,o,c)){v=!1;break}}return c.delete(e),c.delete(t),v}},function(e,t,n){var r=n(62);e.exports=function(e){return e===e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(177),i=n(105);e.exports=function(e,t){for(var n=0,a=(t=r(t,e)).length;null!=e&&n<a;)e=e[i(t[n++])];return n&&n==a?e:void 0}},function(e,t,n){var r=n(63),i=n(143),a=n(322),o=n(325);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:a(o(e))}},function(e,t,n){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,i=36e5,a=864e5,o=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2592e6,l=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,u={years:s,months:c,days:a,hours:i,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},f=function(e){return e instanceof b},d=function(e,t,n){return new b(e,n,t.$l)},h=function(e){return t.p(e)+"s"},p=function(e){return e<0},v=function(e){return p(e)?Math.ceil(e):Math.floor(e)},m=function(e){return Math.abs(e)},g=function(e,t){return e?p(e)?{negative:!0,format:""+m(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}},b=function(){function p(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return d(e*u[h(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[h(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var i=e.match(l);if(i){var a=i.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=a[0],this.$d.months=a[1],this.$d.weeks=a[2],this.$d.days=a[3],this.$d.hours=a[4],this.$d.minutes=a[5],this.$d.seconds=a[6],this.calMilliseconds(),this}}return this}var m=p.prototype;return m.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*u[n]}),0)},m.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=v(e/s),e%=s,this.$d.months=v(e/c),e%=c,this.$d.days=v(e/a),e%=a,this.$d.hours=v(e/i),e%=i,this.$d.minutes=v(e/r),e%=r,this.$d.seconds=v(e/n),e%=n,this.$d.milliseconds=e},m.toISOString=function(){var e=g(this.$d.years,"Y"),t=g(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=g(n,"D"),i=g(this.$d.hours,"H"),a=g(this.$d.minutes,"M"),o=this.$d.seconds||0;this.$d.milliseconds&&(o+=this.$d.milliseconds/1e3);var s=g(o,"S"),c=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,l=i.format||a.format||s.format?"T":"",u=(c?"-":"")+"P"+e.format+t.format+r.format+l+i.format+a.format+s.format;return"P"===u||"-P"===u?"P0D":u},m.toJSON=function(){return this.toISOString()},m.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(o,(function(e,t){return t||String(r[e])}))},m.as=function(e){return this.$ms/u[h(e)]},m.get=function(e){var t=this.$ms,n=h(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?v(t/u[n]):this.$d[n],0===t?0:t},m.add=function(e,t,n){var r;return r=t?e*u[h(t)]:f(e)?e.$ms:d(e,this).$ms,d(this.$ms+r*(n?-1:1),this)},m.subtract=function(e,t){return this.add(e,t,!0)},m.locale=function(e){var t=this.clone();return t.$l=e,t},m.clone=function(){return d(this.$ms,this)},m.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},m.milliseconds=function(){return this.get("milliseconds")},m.asMilliseconds=function(){return this.as("milliseconds")},m.seconds=function(){return this.get("seconds")},m.asSeconds=function(){return this.as("seconds")},m.minutes=function(){return this.get("minutes")},m.asMinutes=function(){return this.as("minutes")},m.hours=function(){return this.get("hours")},m.asHours=function(){return this.as("hours")},m.days=function(){return this.get("days")},m.asDays=function(){return this.as("days")},m.weeks=function(){return this.get("weeks")},m.asWeeks=function(){return this.as("weeks")},m.months=function(){return this.get("months")},m.asMonths=function(){return this.as("months")},m.years=function(){return this.get("years")},m.asYears=function(){return this.as("years")},p}();return function(n,r,i){e=i,t=i().$utils(),i.duration=function(e,t){var n=i.locale();return d(e,{$l:n},t)},i.isDuration=f;var a=r.prototype.add,o=r.prototype.subtract;r.prototype.add=function(e,t){return f(e)&&(e=e.asMilliseconds()),a.bind(this)(e,t)},r.prototype.subtract=function(e,t){return f(e)&&(e=e.asMilliseconds()),o.bind(this)(e,t)}}}()},function(e,t,n){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof r&&null===(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(r)))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=o,s.$u=0===r,s;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var f=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),i=a(e).local();return d.call(r,i,t,n)}}}()},function(e,t,n){"use strict";var r=n(233),i=n(234),a=n(157);e.exports={formats:a,parse:i,stringify:r}},function(e,t,n){"use strict";(function(e){var n="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function a(e){return e&&"[object Function]"==={}.toString.call(e)}function o(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=o(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(e){return 11===e?u:10===e?f:u||f}function h(e){if(!e)return document.documentElement;for(var t=d(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===o(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function v(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||h(e.firstElementChild)===e)}(o)?o:h(o);var s=p(e);return s.host?v(s.host,t):v(e,p(t).host)}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=m(t,"top"),i=m(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],d(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function O(e){var t=e.body,n=e.documentElement,r=d(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var x=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),w=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function S(e){return j({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};try{if(d(10)){t=e.getBoundingClientRect();var n=m(e,"top"),r=m(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(h){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?O(e.ownerDocument):{},s=a.width||e.clientWidth||i.width,c=a.height||e.clientHeight||i.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var f=o(e);l-=b(f,"x"),u-=b(f,"y"),i.width-=l,i.height-=u}return S(i)}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===t.nodeName,a=C(e),s=C(t),l=c(e),u=o(t),f=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=S({top:a.top-s.top-f,left:a.left-s.left-h,width:a.width,height:a.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var v=parseFloat(u.marginTop),m=parseFloat(u.marginLeft);p.top-=f-v,p.bottom-=f-v,p.left-=h-m,p.right-=h-m,p.marginTop=v,p.marginLeft=m}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=g(p,t)),p}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=E(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:m(n),s=t?0:m(n,"left"),c={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return S(c)}function P(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===o(e,"position"))return!0;var n=s(e);return!!n&&P(n)}function T(e){if(!e||!e.parentElement||d())return document.documentElement;for(var t=e.parentElement;t&&"none"===o(t,"transform");)t=t.parentElement;return t||document.documentElement}function _(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=i?T(e):v(e,l(t));if("viewport"===r)a=M(o,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var f=E(u,o,i);if("HTML"!==u.nodeName||P(o))a=f;else{var d=O(e.ownerDocument),h=d.height,p=d.width;a.top+=f.top-f.marginTop,a.bottom=h+f.top,a.left+=f.left-f.marginLeft,a.right=p+f.left}}var m="number"===typeof(n=n||0);return a.left+=m?n:n.left||0,a.top+=m?n:n.top||0,a.right-=m?n:n.right||0,a.bottom-=m?n:n.bottom||0,a}function D(e){return e.width*e.height}function A(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=_(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},c=Object.keys(s).map((function(e){return j({key:e},s[e],{area:D(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,f=e.split("-")[1];return u+(f?"-"+f:"")}function R(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?T(t):v(t,l(n));return E(n,i,r)}function L(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function I(e,t,n){n=n.split("-")[0];var r=L(e),i={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",c=a?"height":"width",l=a?"width":"height";return i[o]=t[o]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[N(s)],i}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function $(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&a(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))})),t}function F(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=R(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=A(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=I(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=$(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function B(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function Q(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if("undefined"!==typeof document.body.style[a])return a}return null}function W(){return this.state.isDestroyed=!0,B(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Q("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(e){var t=e.ownerDocument;return t?t.defaultView:window}function V(e,t,n,r){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||V(c(a.parentNode),t,n,r),r.push(a)}function U(e,t,n,r){n.updateBound=r,H(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return V(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function q(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,H(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function X(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&X(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var G=n&&/Firefox/i.test(navigator.userAgent);function Z(e,t,n){var r=z(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}var J=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ee=J.slice(3);function te(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}var ne="flip",re="clockwise",ie="counterclockwise";function ae(e,t,n,r){var i=[0,0],a=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=o.indexOf(z(o,(function(e){return-1!==e.search(/,|\s/)})));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[o.slice(0,s).concat([o[s].split(c)[0]]),[o[s].split(c)[1]].concat(o.slice(s+1))]:[o];return(l=l.map((function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[t]/100*a}if("vh"===o||"vw"===o)return("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a;return a}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){X(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:w({},c,a[c]),end:w({},c,a[c]+a[l]-o[l])};e.offsets.popper=j({},o,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],c=void 0;return c=X(+n)?[+n,0]:ae(n,a,o,s),"left"===s?(a.top+=c[0],a.left-=c[1]):"right"===s?(a.top+=c[0],a.left+=c[1]):"top"===s?(a.left+=c[0],a.top-=c[1]):"bottom"===s&&(a.left+=c[0],a.top+=c[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=Q("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var c=_(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),w({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),w({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=j({},u,f[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",c=o?"left":"top",l=o?"width":"height";return n[s]<a(r[c])&&(e.offsets.popper[c]=a(r[c])-n[l]),n[c]>a(r[s])&&(e.offsets.popper[c]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!Z(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,s=a.popper,c=a.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",v=L(r)[u];c[p]-v<s[d]&&(e.offsets.popper[d]-=s[d]-(c[p]-v)),c[d]+v>s[p]&&(e.offsets.popper[d]+=c[d]+v-s[p]),e.offsets.popper=S(e.offsets.popper);var m=c[d]+c[u]/2-v/2,g=o(e.instance.popper),b=parseFloat(g["margin"+f]),y=parseFloat(g["border"+f+"Width"]),O=m-e.offsets.popper[d]-b-y;return O=Math.max(Math.min(s[u]-v,O),0),e.arrowElement=r,e.offsets.arrow=(w(n={},d,Math.round(O)),w(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(B(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=_(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=N(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case ne:o=[r,i];break;case re:o=te(r);break;case ie:o=te(r,!0);break;default:o=t.behavior}return o.forEach((function(s,c){if(r!==s||o.length===c+1)return e;r=e.placement.split("-")[0],i=N(r);var l=e.offsets.popper,u=e.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(u.left)||"right"===r&&f(l.left)<f(u.right)||"top"===r&&f(l.bottom)>f(u.top)||"bottom"===r&&f(l.top)<f(u.bottom),h=f(l.left)<f(n.left),p=f(l.right)>f(n.right),v=f(l.top)<f(n.top),m=f(l.bottom)>f(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&v||"bottom"===r&&m,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===a&&h||b&&"end"===a&&p||!b&&"start"===a&&v||!b&&"end"===a&&m),O=!!t.flipVariationsByContent&&(b&&"start"===a&&p||b&&"end"===a&&h||!b&&"start"===a&&m||!b&&"end"===a&&v),x=y||O;(d||g||x)&&(e.flipped=!0,(d||g)&&(r=o[c+1]),x&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=j({},e.offsets.popper,I(e.instance.popper,e.offsets.reference,e.placement)),e=$(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=N(t),e.offsets.popper=S(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!Z(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:t.gpuAcceleration,s=h(e.instance.popper),c=C(s),l={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,a=Math.round,o=Math.floor,s=function(e){return e},c=a(i.width),l=a(r.width),u=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?u||f||c%2===l%2?a:o:s,h=t?a:s;return{left:d(c%2===1&&l%2===1&&!f&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:d(r.right)}}(e,window.devicePixelRatio<2||!G),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=Q("transform"),v=void 0,m=void 0;if(m="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,v="right"===d?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,o&&p)l[p]="translate3d("+v+"px, "+m+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var g="bottom"===f?-1:1,b="right"===d?-1:1;l[f]=m*g,l[d]=v*b,l.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=j({},y,e.attributes),e.styles=j({},l,e.styles),e.arrowStyles=j({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var a=R(i,t,e,n.positionFixed),o=A(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},se=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};x(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=j({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(j({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=j({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return j({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&a(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return q.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();se.Utils=("undefined"!==typeof window?window:e).PopperUtils,se.placements=J,se.Defaults=oe,t.a=se}).call(this,n(90))},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"}),"Equalizer");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"}),"ShowChart");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"Code");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5v11zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2zM3 19c0 1.1.9 2 2 2h3V10H3v9z"}),"TableChart");t.default=o},function(e,t,n){var r=n(236),i=n(170)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t,n){var r=n(295)(n(334));e.exports=r},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"}),"Lock");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"PlayCircleOutline");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"}),"Security");t.default=o},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");t.default=o},function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(l){return void n(l)}s.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,c,"next",e)}function c(e){r(o,i,a,s,c,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(48),i=n(49);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(50)).default)(a.createElement("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4l6 6v10c0 1.1-.9 2-2 2H7.99C6.89 23 6 22.1 6 21l.01-14c0-1.1.89-2 1.99-2h7zm-1 7h5.5L14 6.5V12z"}),"FileCopy");t.default=o},function(e,t,n){"use strict";var r=n(44),i=n.n(r),a=n(197),o=n.n(a),s=n(198),c=n.n(s);i.a.extend(o.a),i.a.extend(c.a);var l=function(){function e(e){var t=void 0===e?{}:e,n=t.locale,r=t.instance,a=t.dayjs;this.yearFormat="YYYY",this.yearMonthFormat="MMMM YYYY",this.dateTime12hFormat="MMMM Do hh:mm a",this.dateTime24hFormat="MMMM Do HH:mm",this.time12hFormat="hh:mm A",this.time24hFormat="HH:mm",this.dateFormat="MMMM Do",this.dayjs=function(e,t){return t?function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.apply(void 0,n).locale(t)}:e}(r||a||i.a,n),this.locale=n}return e.prototype.parse=function(e,t){return""===e?null:this.dayjs(e,t)},e.prototype.date=function(e){return null===e?null:this.dayjs(e)},e.prototype.isValid=function(e){return this.dayjs(e).isValid()},e.prototype.isNull=function(e){return null===e},e.prototype.getDiff=function(e,t,n,r){return e.diff(t,n,r)},e.prototype.isAfter=function(e,t){return e.isAfter(t)},e.prototype.isBefore=function(e,t){return e.isBefore(t)},e.prototype.isAfterDay=function(e,t){return e.isAfter(t,"day")},e.prototype.isBeforeDay=function(e,t){return e.isBefore(t,"day")},e.prototype.isBeforeYear=function(e,t){return e.isBefore(t,"year")},e.prototype.isAfterYear=function(e,t){return e.isAfter(t,"year")},e.prototype.startOfDay=function(e){return e.clone().startOf("day")},e.prototype.endOfDay=function(e){return e.clone().endOf("day")},e.prototype.format=function(e,t){return this.dayjs(e).format(t)},e.prototype.formatNumber=function(e){return e},e.prototype.getHours=function(e){return e.hour()},e.prototype.addDays=function(e,t){return t<0?e.clone().subtract(Math.abs(t),"day"):e.clone().add(t,"day")},e.prototype.setMonth=function(e,t){return e.clone().set("month",t)},e.prototype.setHours=function(e,t){return e.clone().set("hour",t)},e.prototype.getMinutes=function(e){return e.minute()},e.prototype.setMinutes=function(e,t){return e.clone().set("minute",t)},e.prototype.getSeconds=function(e){return e.second()},e.prototype.setSeconds=function(e,t){return e.clone().set("second",t)},e.prototype.getMonth=function(e){return e.month()},e.prototype.isSameDay=function(e,t){return e.isSame(t,"day")},e.prototype.isSameMonth=function(e,t){return e.isSame(t,"month")},e.prototype.isSameYear=function(e,t){return e.isSame(t,"year")},e.prototype.isSameHour=function(e,t){return e.isSame(t,"hour")},e.prototype.getMeridiemText=function(e){return"am"===e?"AM":"PM"},e.prototype.startOfMonth=function(e){return e.clone().startOf("month")},e.prototype.endOfMonth=function(e){return e.clone().endOf("month")},e.prototype.getNextMonth=function(e){return e.clone().add(1,"month")},e.prototype.getPreviousMonth=function(e){return e.clone().subtract(1,"month")},e.prototype.getMonthArray=function(e){for(var t=[e.clone().startOf("year")];t.length<12;){var n=t[t.length-1];t.push(this.getNextMonth(n))}return t},e.prototype.getMonthText=function(e){return this.format(e,"MMMM")},e.prototype.getYear=function(e){return e.year()},e.prototype.setYear=function(e,t){return e.clone().set("year",t)},e.prototype.mergeDateAndTime=function(e,t){return this.setMinutes(this.setHours(e,this.getHours(t)),this.getMinutes(t))},e.prototype.getWeekdays=function(){var e=this,t=this.dayjs().startOf("week");return[0,1,2,3,4,5,6].map((function(n){return e.format(t.add(n,"day"),"dd")}))},e.prototype.isEqual=function(e,t){return null===e&&null===t||this.dayjs(e).isSame(t)},e.prototype.getWeekArray=function(e){for(var t=this.dayjs(e).clone().startOf("month").startOf("week"),n=this.dayjs(e).clone().endOf("month").endOf("week"),r=0,i=t,a=[];i.isBefore(n);){var o=Math.floor(r/7);a[o]=a[o]||[],a[o].push(i),i=i.clone().add(1,"day"),r+=1}return a},e.prototype.getYearRange=function(e,t){for(var n=this.dayjs(e).startOf("year"),r=this.dayjs(t).endOf("year"),i=[],a=n;a.isBefore(r);)i.push(a),a=a.clone().add(1,"year");return i},e.prototype.getCalendarHeaderText=function(e){return this.format(e,"MMMM YYYY")},e.prototype.getYearText=function(e){return this.format(e,"YYYY")},e.prototype.getDatePickerHeaderText=function(e){return this.format(e,"ddd, MMM D")},e.prototype.getDateTimePickerHeaderText=function(e){return this.format(e,"MMM D")},e.prototype.getDayText=function(e){return this.format(e,"D")},e.prototype.getHourText=function(e,t){return this.format(e,t?"hh":"HH")},e.prototype.getMinuteText=function(e){return this.format(e,"mm")},e.prototype.getSecondText=function(e){return this.format(e,"ss")},e}();t.a=l},function(e,t,n){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-:/.()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,i=/\d*[^\s\d-_:/()]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var n,r=a.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(e){var t=l("months"),n=(l("monthsShort")||t.map((function(e){return e.substr(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function d(n){var r,i;r=n,i=a&&a.formats;for(var o=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=f[l],d=u&&u[0],h=u&&u[1];o[c]=h?{regex:d,parser:h}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=o[n];if("string"==typeof i)r+=i.length;else{var a=i.regex,c=i.parser,l=e.substr(r),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var s=o[1];if("string"==typeof s){var c=!0===o[2],l=!0===o[3],u=c||l,f=o[2];l&&(f=o[2]),a=this.$locale(),!c&&f&&(a=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),i=r.year,a=r.month,o=r.day,s=r.hours,c=r.minutes,l=r.seconds,u=r.milliseconds,f=r.zone,h=new Date,p=o||(i||a?1:h.getDate()),v=i||h.getFullYear(),m=0;i&&!a||(m=a>0?a-1:h.getMonth());var g=s||0,b=c||0,y=l||0,O=u||0;return f?new Date(Date.UTC(v,m,p,g,b,y,O+60*f.offset*1e3)):n?new Date(Date.UTC(v,m,p,g,b,y,O)):new Date(v,m,p,g,b,y,O)}catch(e){return new Date("")}}(t,s,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var h=s.length,p=1;p<=h;p+=1){o[1]=s[p-1];var v=n.apply(this,o);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}p===h&&(this.$d=new Date(""))}else i.call(this,e)}}}()},function(e,t,n){e.exports=function(){"use strict";return function(e,t,n){var r=t.prototype,i=r.format;n.en.ordinal=function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"},r.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return i.bind(this)(e);var r=this.$utils(),a=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return i.bind(this)(a)}}}()},function(e,t,n){"use strict";var r=n(19),i=n(8),a=n(344),o=n(2),s=["xs","sm","md","lg","xl"];function c(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,a=void 0===r?"px":r,c=e.step,l=void 0===c?5:c,u=Object(i.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(a,")")}function d(e,t){var r=s.indexOf(t);return r===s.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(a,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[s[r+1]]?n[s[r+1]]:t)-l/100).concat(a,")")}return Object(o.a)({keys:s,values:n,up:f,down:function(e){var t=s.indexOf(e)+1,r=n[s[t]];return t===s.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-l/100).concat(a,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},u)}function l(e,t,n){var i;return Object(o.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object(o.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(o.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var u=n(205),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},v={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},m={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},g={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},b={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},y=n(22),O={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},x={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,r){var i=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(y.e)(e.main,i):"dark"===t&&(e.dark=Object(y.a)(e.main,a)))}function w(e){var t=e.primary,n=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,r=e.secondary,s=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,c=e.error,l=void 0===c?{light:v[300],main:v[500],dark:v[700]}:c,w=e.warning,j=void 0===w?{light:m[300],main:m[500],dark:m[700]}:w,S=e.info,C=void 0===S?{light:g[300],main:g[500],dark:g[700]}:S,E=e.success,M=void 0===E?{light:b[300],main:b[500],dark:b[700]}:E,P=e.type,T=void 0===P?"light":P,_=e.contrastThreshold,D=void 0===_?3:_,A=e.tonalOffset,R=void 0===A?.2:A,L=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function N(e){return Object(y.d)(e,x.text.primary)>=D?x.text.primary:O.text.primary}var I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(o.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(u.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(u.a)(5,JSON.stringify(e.main)));return k(e,"light",n,R),k(e,"dark",r,R),e.contrastText||(e.contrastText=N(e.main)),e},z={dark:x,light:O};return Object(a.a)(Object(o.a)({common:f,type:T,primary:I(n),secondary:I(s,"A400","A200","A700"),error:I(l),warning:I(j),info:I(C),success:I(M),grey:d,contrastThreshold:D,getContrastText:N,augmentColor:I,tonalOffset:R},z[T]),L)}function j(e){return Math.round(1e5*e)/1e5}var S={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function E(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?C:r,c=n.fontSize,l=void 0===c?14:c,u=n.fontWeightLight,f=void 0===u?300:u,d=n.fontWeightRegular,h=void 0===d?400:d,p=n.fontWeightMedium,v=void 0===p?500:p,m=n.fontWeightBold,g=void 0===m?700:m,b=n.htmlFontSize,y=void 0===b?16:b,O=n.allVariants,x=n.pxToRem,k=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var w=l/14,E=x||function(e){return"".concat(e/y*w,"rem")},M=function(e,t,n,r,i){return Object(o.a)({fontFamily:s,fontWeight:e,fontSize:E(t),lineHeight:n},s===C?{letterSpacing:"".concat(j(r/t),"em")}:{},i,O)},P={h1:M(f,96,1.167,-1.5),h2:M(f,60,1.2,-.5),h3:M(h,48,1.167,0),h4:M(h,34,1.235,.25),h5:M(h,24,1.334,0),h6:M(v,20,1.6,.15),subtitle1:M(h,16,1.75,.15),subtitle2:M(v,14,1.57,.1),body1:M(h,16,1.5,.15),body2:M(h,14,1.43,.15),button:M(v,14,1.75,.4,S),caption:M(h,12,1.66,.4),overline:M(h,12,2.66,1,S)};return Object(a.a)(Object(o.a)({htmlFontSize:y,pxToRem:E,round:j,fontFamily:s,fontSize:l,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:v,fontWeightBold:g},P),k,{clone:!1})}function M(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var P=["none",M(0,2,1,-1,0,1,1,0,0,1,3,0),M(0,3,1,-2,0,2,2,0,0,1,5,0),M(0,3,3,-2,0,3,4,0,0,1,8,0),M(0,2,4,-1,0,4,5,0,0,1,10,0),M(0,3,5,-1,0,5,8,0,0,1,14,0),M(0,3,5,-1,0,6,10,0,0,1,18,0),M(0,4,5,-2,0,7,10,1,0,2,16,1),M(0,5,5,-3,0,8,10,1,0,3,14,2),M(0,5,6,-3,0,9,12,1,0,3,16,2),M(0,6,6,-3,0,10,14,1,0,4,18,3),M(0,6,7,-4,0,11,15,1,0,4,20,3),M(0,7,8,-4,0,12,17,2,0,5,22,4),M(0,7,8,-4,0,13,19,2,0,5,24,4),M(0,7,9,-4,0,14,21,2,0,5,26,4),M(0,8,9,-5,0,15,22,2,0,6,28,5),M(0,8,10,-5,0,16,24,2,0,6,30,5),M(0,8,11,-5,0,17,26,2,0,6,32,5),M(0,9,11,-5,0,18,28,2,0,7,34,6),M(0,9,12,-6,0,19,29,2,0,7,36,6),M(0,10,13,-6,0,20,31,3,0,8,38,7),M(0,10,13,-6,0,21,33,3,0,8,40,7),M(0,10,14,-6,0,22,35,3,0,8,42,7),M(0,11,14,-7,0,23,36,3,0,9,44,8),M(0,11,15,-7,0,24,38,3,0,9,46,8)],T={borderRadius:4},_=n(423);function D(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(_.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var A=n(43),R=n(112);t.a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,s=e.palette,u=void 0===s?{}:s,f=e.spacing,d=e.typography,h=void 0===d?{}:d,p=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),v=w(u),m=c(n),g=D(f),b=Object(a.a)({breakpoints:m,direction:"ltr",mixins:l(m,g,o),overrides:{},palette:v,props:{},shadows:P,typography:E(v,h),spacing:g,shape:T,transitions:A.a,zIndex:R.a},p),y=arguments.length,O=new Array(y>1?y-1:0),x=1;x<y;x++)O[x-1]=arguments[x];return b=O.reduce((function(e,t){return Object(a.a)(e,t)}),b)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return we}));var r=n(4),i=n(6),a=n(7),o=n(13),s=n(16),c=n(15),l=n(24),u=n(5),f=n(10),d=new l.c;function h(e){return u.e.indentation.of((function(t,n){return function(e,t,n){for(var r=t.resolve(n),i=r,a=n;;){var o=i.childBefore(a);if(!o)break;o.type.prop(l.c.error)&&o.start==o.end?(r=i,a=o.start):a=(i=o).end+1}for(;r;r=r.parent){var s=p(r);if(s)return s(new m(e,n,r))}return-1}(t,e.getTree(t.state),n)}))}function p(e){var t=e.type.prop(d);if(t)return t;var n,r=e.firstChild;if(r&&(n=r.type.prop(l.c.closedBy))){var i=e.lastChild,a=i&&n.indexOf(i.name)>-1;return function(e){return b(e,!0,1,void 0,a&&!function(e){var t,n;return e.pos==(null===(t=e.options)||void 0===t?void 0:t.simulateBreak)&&(null===(n=e.options)||void 0===n?void 0:n.simulateDoubleBreak)}(e)?i.start:void 0)}}return null==e.parent?v:null}function v(){return 0}var m=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e,i,a){var o;return Object(r.a)(this,n),(o=t.call(this,e.state,e.options)).pos=i,o.node=a,o}return Object(i.a)(n,[{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){for(var e=this.state.doc.lineAt(this.node.start);;){for(var t=this.node.resolve(e.from);t.parent&&t.parent.start==t.start;)t=t.parent;if(g(t,this.node))break;e=this.state.doc.lineAt(t.start)}return this.lineIndent(e)}}]),n}(u.g);function g(e,t){for(var n=t;n;n=n.parent)if(e==n)return!0;return!1}function b(e,t,n,r,i){var a=e.textAfter,o=a.match(/^\s*/)[0].length,s=r&&a.slice(o,o+r.length)==r||i==e.pos+o,c=t?function(e){var t,n=e.node,r=n.childAfter(n.start),i=n.lastChild;if(!r)return null;for(var a=null===(t=e.options)||void 0===t?void 0:t.simulateBreak,o=e.state.doc.lineAt(r.start),s=null==a||a<=o.from?o.to:Math.min(o.to,a),c=r.end;;){var u=n.childAfter(c);if(!u||u==i)return null;if(!u.type.prop(l.c.skipped))return u.start<s?r:null;c=u.end}}(e):null;return c?s?e.column(c.start):e.column(c.end):e.baseIndent+(s?0:e.unit*n)}var y=new l.c;var O=function(){function e(t,n,i){var a=this;Object(r.a)(this,e),this.parser=t,this.dialect=n,this.languageData=i;var o,s=u.i.define();this.field=u.j.define({create:function(e){return j.advance(l.e.empty,a,e.doc)},update:function(e,t){return e.apply(t,a,s)}}),this.extension=[u.e.syntax.of(this),this.field,f.f.define((function(e){return new E(e,a,s)})),h(this),(o=this,u.e.foldable.of((function(e,t,n){for(var r=null,i=o.getTree(e).resolve(n);i;i=i.parent)if(!(i.end<=n||i.start>n)){if(r&&i.start<t)break;var a=i.type.prop(y);if(a){var s=a(i,e);s&&s.from<=n&&s.from>=t&&s.to>n&&(r=s)}}return r})))]}return Object(i.a)(e,[{key:"withDialect",value:function(t){return new e(this.parser,t,this.languageData)}},{key:"getTree",value:function(e){return e.field(this.field).tree}},{key:"parsePos",value:function(e){return e.field(this.field).upto}},{key:"ensureTree",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,r=e.field(this.field);if(r.upto>=t)return r.updatedTree;if(r.parse||r.startParse(this,e.doc),r.parse.pos<t){var i=k(r.parse,n,t);if(i)return r.stopParse(i,e.doc.length)}return r.parse.pos<t?null:r.stopParse()}},{key:"languageDataFacetAt",value:function(e,t){if(this.parser.hasNested)for(var n=this.getTree(e).resolve(t,-1);n;){var r=n.type.prop(u.n);if(r)return r;n=n.parent}return this.languageData}}],[{key:"define",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u.f.define({combine:n.languageData?function(e){return e.concat(n.languageData)}:void 0});return new e(t.withProps(u.n.add(Object(o.a)({},t.topType.name,r))),n.dialect||"",r)}}]),e}(),x=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;Object(r.a)(this,e),this.doc=t,this.length=n,this.cursorPos=0,this.string="",this.cursor=t.iter()}return Object(i.a)(e,[{key:"get",value:function(e){if(e>=this.length)return-1;var t=this.cursorPos-this.string.length;return(e<t||e>=this.cursorPos)&&(e<this.cursorPos&&(this.cursor=this.doc.iter(),this.cursorPos=0),this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,t=this.cursorPos-this.string.length),this.string.charCodeAt(e-t)}},{key:"read",value:function(e,t){var n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}},{key:"clip",value:function(t){return new e(this.doc,t)}}]),e}();function k(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e6,r=Date.now()+t;;){var i=e.advance();if(i)return i;if(e.pos>n||Date.now()>r)return null}}function w(e,t){var n=e.forceFinish(),r=n.applyChanges([{fromA:e.pos,toA:n.length,fromB:e.pos,toB:n.length}]).append(t.applyChanges([{fromA:0,toA:e.pos,fromB:0,toB:e.pos}]));return{parsed:n,cache:r}}var j=function(){function e(t,n,i){Object(r.a)(this,e),this.tree=t,this.upto=n,this.cache=i,this.parse=null,this.updatedTree=t}return Object(i.a)(e,[{key:"apply",value:function(t,n,r){var i,o=Object(a.a)(t.effects);try{for(o.s();!(i=o.n()).done;){var s=i.value;if(s.is(r))return s.value}}catch(l){o.e(l)}finally{o.f()}if(!t.docChanged)return this;var c=[];return t.changes.iterChangedRanges((function(e,t,n,r){return c.push({fromA:e,toA:t,fromB:n,toB:r})})),e.advance((this.parse?w(this.parse,this.updatedTree).cache:this.cache).applyChanges(c),n,t.state.doc)}},{key:"startParse",value:function(e,t){this.parse=e.parser.startParse(new x(t),{cache:this.cache,dialect:e.dialect})}},{key:"stopParse",value:function(e,t){if(e)this.cache=e;else{var n=w(this.parse,this.updatedTree);e=n.parsed,this.cache=n.cache}return this.updatedTree=e,this.upto=null!==t&&void 0!==t?t:this.parse.pos,this.parse=null,e}}],[{key:"advance",value:function(t,n,r){var i=n.parser.startParse(new x(r),{cache:t,dialect:n.dialect}),a=k(i,25);if(a)return new e(a,r.length,a);var o=w(i,t);return new e(o.parsed,i.pos,o.cache)}}]),e}(),S="undefined"!=typeof window&&window.requestIdleCallback||function(e,t){var n=t.timeout;return setTimeout(e,n)},C="undefined"!=typeof window&&window.cancelIdleCallback||clearTimeout,E=function(){function e(t,n,i){Object(r.a)(this,e),this.view=t,this.syntax=n,this.setSyntax=i,this.working=-1,this.work=this.work.bind(this),this.scheduleWork()}return Object(i.a)(e,[{key:"update",value:function(e){e.docChanged&&this.scheduleWork()}},{key:"scheduleWork",value:function(){if(!(this.working>-1)){var e=this.view.state;e.field(this.syntax.field).upto>=e.doc.length||(this.working=S(this.work,{timeout:200}))}}},{key:"work",value:function(e){this.working=-1;var t=this.view.state,n=t.field(this.syntax.field);if(!(n.upto>=t.doc.length)){n.parse||n.startParse(this.syntax,t.doc);var r=k(n.parse,e?Math.max(25,e.timeRemaining()):100);if(r||n.parse.badness>.8){var i=n.stopParse(r,t.doc.length);this.view.dispatch({effects:this.setSyntax.of(new j(i,t.doc.length,n.cache))})}else this.scheduleWork()}}},{key:"destroy",value:function(){this.working>=0&&C(this.working)}}]),e}(),M=n(124),P={bool:1,ignoring:2,on:3,group_left:4,group_right:5,offset:6},T={avg:7,bottomk:8,count:9,count_values:10,group:11,max:12,min:13,quantile:14,stddev:15,stdvar:16,sum:17,topk:18,by:19,without:20,and:21,or:22,unless:23},_={__proto__:null,absent_over_time:257,absent:259,abs:261,avg_over_time:263,ceil:265,changes:267,clamp_max:269,clamp_min:271,count_over_time:273,days_in_month:275,day_of_month:277,day_of_week:279,delta:281,deriv:283,exp:285,floor:287,histogram_quantile:289,holt_winters:291,hour:293,idelta:295,increase:297,irate:299,label_replace:301,label_join:303,ln:305,log10:307,log2:309,max_over_time:311,min_over_time:313,minute:315,month:317,predict_linear:319,quantile_over_time:321,rate:323,resets:325,round:327,scalar:329,sort:331,sort_desc:333,sqrt:335,stddev_over_time:337,stdvar_over_time:339,sum_over_time:341,timestamp:343,time:345,vector:347,year:349},D=M.b.deserialize({states:"2SO%jQPOOOOQO'#Cx'#CxO%nQPO'#CwQ'QQQOOOOQO'#De'#DeO%tQPO'#DdO%jQPO'#ElOOQO'#Ep'#EpO%jQPO'#EoOOQO'#Er'#ErO'UQSO'#EsO'^QQO'#EqOOQO'#Eq'#EqOOQO'#Cv'#CvOOQO'#Df'#DfOOQO'#Dh'#DhOOQO'#Di'#DiOOQO'#Dj'#DjOOQO'#Dk'#DkOOQO'#Dl'#DlOOQO'#Dm'#DmOOQO'#Dn'#DnOOQO'#Do'#DoOOQO'#Dp'#DpOOQO'#Dq'#DqOOQO'#Dr'#DrOOQO'#Ds'#DsOOQO'#Dt'#DtOOQO'#Du'#DuOOQO'#Dv'#DvOOQO'#Dw'#DwOOQO'#Dx'#DxOOQO'#Dy'#DyOOQO'#Dz'#DzOOQO'#D{'#D{OOQO'#D|'#D|OOQO'#D}'#D}OOQO'#EO'#EOOOQO'#EP'#EPOOQO'#EQ'#EQOOQO'#ER'#EROOQO'#ES'#ESOOQO'#ET'#ETOOQO'#EU'#EUOOQO'#EV'#EVOOQO'#EW'#EWOOQO'#EX'#EXOOQO'#EY'#EYOOQO'#EZ'#EZOOQO'#E['#E[OOQO'#E]'#E]OOQO'#E^'#E^OOQO'#E_'#E_OOQO'#E`'#E`OOQO'#Ea'#EaOOQO'#Eb'#EbOOQO'#Ec'#EcOOQO'#Ed'#EdOOQO'#Ee'#EeOOQO'#Ef'#EfOOQO'#Eg'#EgO(qQPO'#CyO(vQPO'#DOO%tQPO,59cO(}QQO,59cO/OQPO,59lO/OQPO,59lO/OQPO,59lO/OQPO,59lO/OQPO,59lO/SQQO,5;SO/XQQO,5;VOOQO,5:O,5:OO/^QQO,5;WO/eQQO,5;ZO0uQPO'#EuO1TQPO,5;_OOQO'#Et'#EtOOQO,5;_,5;_OOQO,5;],5;]O1]QSO'#CzOOQO,59e,59eO1eQPO,59jO1mQQO'#DPOOQO,59j,59jOOQO1G.}1G.}OOQO'#DU'#DUO6XQPO'#DTO6cQPO'#DTOOQO'#DS'#DSO%jQPO1G/WO%jQPO1G/WO%jQPO1G/WO%jQPO1G/WO%jQPO1G/WO6mQSO1G0nOOQO1G0q1G0qOOQO1G0r1G0rOOQO'#Ev'#EvO6uQPO,5;aO6zQSO1G0yOOQO1G0y1G0yOOQO'#C|'#C|O7SQPO,59fOOQO'#C{'#C{OOQO,59f,59fO%jQPO,59kOOQO1G/U1G/UO(qQPO,59qO7[QPO,59oO<sQQO7+$rO=QQQO7+$rO>]QQO7+$rO>sQQO7+$rO@XQQO7+$rOOQO7+&Y7+&YO@oQQO7+&`OOQO1G0{1G0{OOQO1G0z1G0zOOQO7+&e7+&eO@wQSO1G/QOOQO1G/Q1G/QOAPQQO1G/VOOQO1G/]1G/]OOQO'#DW'#DWOOQO1G/Z1G/ZOOQO<<Iz<<IzOAZQPO<<IzOOQO1G/R1G/ROOQO7+$l7+$lOOQOAN?fAN?f",stateData:"A`~O#pOShOS~OVPOWPOXPOYPOZPO[PO]PO^PO_PO`POaPObPO!ZXO#^]O#a]O#qUO#t^O#u_O#v`O#waO#xbO#ycO#zdO#{eO#|fO#}gO$OhO$PiO$QjO$RkO$SlO$TmO$UnO$VoO$WpO$XqO$YrO$ZsO$[tO$]uO$^vO$_wO$`xO$ayO$bzO$c{O$d|O$e}O$f!OO$g!PO$h!QO$i!RO$j!SO$k!TO$l!UO$m!VO$n!WO$o!XO$p!YO$q!ZO$r![O$s!]O$t!^O$xVO$yVO$zYO~O~PYOc!_Od!_O#q!`O~OU!iOe!fOf!gOg!fOu!cO{!cO|!cO}!cO!O!dO!P!dO!Q!eO!R!eO!S!eO!T!eO!U!eO!V!eO$u!hO~O~P%yOq!mO${!pO~O$zYOU#eXe#eXf#eXg#eXu#eX{#eX|#eX}#eX!O#eX!P#eX!Q#eX!R#eX!S#eX!T#eX!U#eX!V#eX#n#eX$u#eX#s#eX#r#eX~O#q!rO~O#s!vO~PYOc!_Od!_OUkaekafkagkauka{ka|ka}ka!Oka!Pka!Qka!Rka!Ska!Tka!Uka!Vka#nka$uka#ska#rka~OP!xOQxPRxPVxPWxPXxPYxPZxP[xP]xP^xP_xP`xPaxPbxP!ZxP#^xP#axP#qxP#txP#uxP#vxP#wxP#xxP#yxP#zxP#{xP#|xP#}xP$OxP$PxP$QxP$RxP$SxP$TxP$UxP$VxP$WxP$XxP$YxP$ZxP$[xP$]xP$^xP$_xP$`xP$axP$bxP$cxP$dxP$exP$fxP$gxP$hxP$ixP$jxP$kxP$lxP$mxP$nxP$oxP$pxP$qxP$rxP$sxP$txP$xxP$yxP$zxP~O~P*eO#]#RO~O#]#SO~O#s#TO~P%yOu!cOU#cae#caf#cag#ca{#ca|#ca}#ca!O#ca!P#ca!Q#ca!R#ca!S#ca!T#ca!U#ca!V#ca#n#ca$u#ca#s#ca#r#ca~O!V#UO#k#UO#l#UO#m#UO~O#r#WO${#XO~Oq#YO#s#]O~O#r#^O#s#_O~O#rsX#ssX~P%yOVwXWwXXwXYwXZwX[wX]wX^wX_wX`wXawXbwX!ZwX#^wX#awX#qwX#twX#uwX#vwX#wwX#xwX#ywX#zwX#{wX#|wX#}wX$OwX$PwX$QwX$RwX$SwX$TwX$UwX$VwX$WwX$XwX$YwX$ZwX$[wX$]wX$^wX$_wX$`wX$awX$bwX$cwX$dwX$ewX$fwX$gwX$hwX$iwX$jwX$kwX$lwX$mwX$nwX$owX$pwX$qwX$rwX$swX$twX$xwX$ywX$zwX~OQ#`OR#`O~P1wOS#aOT#aO~P1wO$v#gO$w#hO~O#a#iO~Oq!mO${#kO~O#r#lO#s#mO~O#q!rOVzPWzPXzPYzPZzP[zP]zP^zP_zP`zPazPbzP!ZzP#^zP#azP#tzP#uzP#vzP#wzP#xzP#yzP#zzP#{zP#|zP#}zP$OzP$PzP$QzP$RzP$SzP$TzP$UzP$VzP$WzP$XzP$YzP$ZzP$[zP$]zP$^zP$_zP$`zP$azP$bzP$czP$dzP$ezP$fzP$gzP$hzP$izP$jzP$kzP$lzP$mzP$nzP$ozP$pzP$qzP$rzP$szP$tzP$xzP$yzP$zzP~Ou!cOUtqetqftqgtq!Otq!Ptq!Qtq!Rtq!Stq!Ttq!Utq!Vtq#ntq$utq#stq#rtq~O{tq|tq}tq~P;lO{!cO|!cO}!cO~P;lOu!cO{!cO|!cO}!cO!O!dO!P!dOUtqetqftqgtq#ntq$utq#stq#rtq~O!Qtq!Rtq!Stq!Ttq!Utq!Vtq~P=_O!Q!eO!R!eO!S!eO!T!eO!U!eO!V!eO~P=_Oe!fOg!fOu!cO{!cO|!cO}!cO!O!dO!P!dO!Q!eO!R!eO!S!eO!T!eO!U!eO!V!eO~OUtqftq#ntq$utq#stq#rtq~P?ZO#]#sO$v#rO~Oq#YO#s#uO~O#rsi#ssi~P%yO$v#vO~O",goto:"(Q#kPPPPPPPPPPPPPPPPPPPPPPPPPP#l$[$h$t$z%T%WP%^%g$[P%j%y&Q&X&`PPPPPPPPPPP$[&c&oP&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o&o$[PP$[$[P$[$[&{$['X'e't'w'}QROQ!kUQ!lWQ!u!`Q#b!|Q#c!}Q#d#OQ#e#PQ#f#QR#n#^e]OUW!`!|!}#O#P#Q#^eQOUW!`!|!}#O#P#Q#^Q!aQR!w!bQ!s!_Q#o#`R#p#aR#Z!rQ#[!rR#t#lQ!bQQ!jTR!w!aR!t!`Q!|!cQ!}!dQ#O!eQ#P!fR#Q!gZ!{!c!d!e!f!gZ!y!c!d!e!f!gZ!z!c!d!e!f!gR#q#aeTOUW!`!|!}#O#P#Q#^eSOUW!`!|!}#O#P#Q#^eWOUW!`!|!}#O#P#Q#^eZOUW!`!|!}#O#P#Q#^d[OUW!`!|!}#O#P#Q#^R!qZR!nYQ!oYR#j#WR#V!m",nodeNames:"\u26a0 Bool Ignoring On GroupLeft GroupRight Offset Avg Bottomk Count CountValues Group Max Min Quantile Stddev Stdvar Sum Topk By Without And Or Unless LineComment Expr AggregateExpr AggregateOp AggregateModifier GroupingLabels GroupingLabelList GroupingLabel LabelName FunctionCallBody FunctionCallArgs BinaryExpr Pow BinModifier GroupModifiers BoolModifier OnOrIgnoring MaybeGroupingLabels Mul Div Mod Add Sub Eql Gte Gtr Lte Lss Neq FunctionCall FunctionIdentifier AbsentOverTime Identifier Absent Abs AvgOverTime Ceil Changes ClampMax ClampMin CountOverTime DaysInMonth DayOfMonth DayOfWeek Delta Deriv Exp Floor HistogramQuantile HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin Ln Log10 Log2 MaxOverTime MinOverTime Minute Month PredictLinear QuantileOverTime Rate Resets Round Scalar Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Timestamp Time Vector Year MatrixSelector Duration NumberLiteral OffsetExpr ParenExpr StringLiteral SubqueryExpr UnaryExpr UnaryOp VectorSelector MetricIdentifier LabelMatchers LabelMatchList LabelMatcher MatchOp EqlSingle EqlRegex NeqRegex",maxTerm:181,nodeProps:[[M.a.skipped,24,!0],[M.a.top,25,!0]],repeatNodeCount:0,tokenData:"! b~RvX^#ipq#iqr$^rs$qst%euv%pwx%uxy&dyz&iz{&n{|&s|}&z}!O'P!O!P'W!P!Q(W!Q!R(]!R![)c![!]LW!^!_MS!_!`Ma!`!aMv!c!}NT!}#ONk#P#QNp#Q#RNu#R#SNT#S#TNz#T#oNT#o#p! W#q#r! ]#y#z#i$f$g#i#BY#BZ#i$IS$I_#i$I|$JO#i$JT$JU#i$KV$KW#i&FU&FV#i~#nY#p~X^#ipq#i#y#z#i$f$g#i#BY#BZ#i$IS$I_#i$I|$JO#i$JT$JU#i$KV$KW#i&FU&FV#i~$aQ!_!`$g#r#s$l~$lO!V~~$qO#m~~$vU#a~OY$qZr$qrs%Ys#O$q#O#P%_#P~$q~%_O#a~~%bPO~$q~%jQh~OY%eZ~%e~%uO}~~%zU#a~OY%uZw%uwx%Yx#O%u#O#P&^#P~%u~&aPO~%u~&iO#q~~&nO#s~~&sO{~R&zO$yP!OQ~'PO#r~R'WO$xP!PQP'ZP!Q!['^P'cR#^P!Q!['^!g!h'l#X#Y'lP'oR{|'x}!O'x!Q![(OP'{P!Q![(OP(TP#^P!Q![(O~(]O|~R(bZ#^P!O!P)T!Q![)c!g!h'l#W#X*W#X#Y'l#[#].f#a#b0i#g#h1o#k#l2W#l#mKl#m#n:mP)YR#^P!Q![)T!g!h'l#X#Y'lR)hY#^P!O!P)T!Q![)c!g!h'l#W#X*W#X#Y'l#[#].f#a#b0i#g#h1o#k#l2W#m#n:mQ*]P#]Q!Q![*`Q*cS!Q![*`#[#]*o#a#b,w#g#h-}Q*tP#]Q!Q![*wQ*zR!Q![*w#a#b+T#g#h,`Q+YQ#]Q!Q![+`#g#h+rQ+cR!Q![+`#a#b+l#g#h+wQ+oP#g#h+rQ+wO#]QQ+|P#]Q!Q![,PQ,SQ!Q![,P#a#b,YQ,]P#g#h+rQ,eP#]Q!Q![,hQ,kQ!Q![,h#a#b,qQ,tP#g#h+rQ,|Q#]Q!Q![-S#g#h+rQ-VR!Q![-S#a#b-`#g#h-fQ-cP#g#h+rQ-kP#]Q!Q![-nQ-qQ!Q![-n#a#b-wQ-zP#g#h+rQ.SP#]Q!Q![.VQ.YQ!Q![.V#a#b.`Q.cP#g#h+rQ.kP#]Q!Q![.nQ.qR!Q![.n#a#b.z#g#h0QQ/PQ#]Q!Q![/V#g#h+rQ/YR!Q![/V#a#b/c#g#h/iQ/fP#g#h+rQ/nP#]Q!Q![/qQ/tQ!Q![/q#a#b/zQ/}P#g#h+rQ0VP#]Q!Q![0YQ0]Q!Q![0Y#a#b0cQ0fP#g#h+rQ0nQ#]Q!Q![0t#g#h+rQ0wR!Q![0t#a#b1Q#g#h1WQ1TP#g#h+rQ1]P#]Q!Q![1`Q1cQ!Q![1`#a#b1iQ1lP#g#h+rQ1tP#]Q!Q![1wQ1zQ!Q![1w#a#b2QQ2TP#g#h+rQ2]P#]Q!Q![2`Q2cT!Q![2`#W#X2r#[#]6{#a#b9O#g#h:UQ2wP#]Q!Q![2zQ2}S!Q![2z#[#]3Z#a#b5^#g#h6dQ3`P#]Q!Q![3cQ3fR!Q![3c#a#b3o#g#h4uQ3tQ#]Q!Q![3z#g#h+rQ3}R!Q![3z#a#b4W#g#h4^Q4ZP#g#h+rQ4cP#]Q!Q![4fQ4iQ!Q![4f#a#b4oQ4rP#g#h+rQ4zP#]Q!Q![4}Q5QQ!Q![4}#a#b5WQ5ZP#g#h+rQ5cQ#]Q!Q![5i#g#h+rQ5lR!Q![5i#a#b5u#g#h5{Q5xP#g#h+rQ6QP#]Q!Q![6TQ6WQ!Q![6T#a#b6^Q6aP#g#h+rQ6iP#]Q!Q![6lQ6oQ!Q![6l#a#b6uQ6xP#g#h+rQ7QP#]Q!Q![7TQ7WR!Q![7T#a#b7a#g#h8gQ7fQ#]Q!Q![7l#g#h+rQ7oR!Q![7l#a#b7x#g#h8OQ7{P#g#h+rQ8TP#]Q!Q![8WQ8ZQ!Q![8W#a#b8aQ8dP#g#h+rQ8lP#]Q!Q![8oQ8rQ!Q![8o#a#b8xQ8{P#g#h+rQ9TQ#]Q!Q![9Z#g#h+rQ9^R!Q![9Z#a#b9g#g#h9mQ9jP#g#h+rQ9rP#]Q!Q![9uQ9xQ!Q![9u#a#b:OQ:RP#g#h+rQ:ZP#]Q!Q![:^Q:aQ!Q![:^#a#b:gQ:jP#g#h+rQ:rP#]Q!Q![:uQ:xU!Q![:u#W#X;[#[#]?e#a#bAh#g#hBn#k#lCVQ;aP#]Q!Q![;dQ;gS!Q![;d#[#];s#a#b=v#g#h>|Q;xP#]Q!Q![;{Q<OR!Q![;{#a#b<X#g#h=_Q<^Q#]Q!Q![<d#g#h+rQ<gR!Q![<d#a#b<p#g#h<vQ<sP#g#h+rQ<{P#]Q!Q![=OQ=RQ!Q![=O#a#b=XQ=[P#g#h+rQ=dP#]Q!Q![=gQ=jQ!Q![=g#a#b=pQ=sP#g#h+rQ={Q#]Q!Q![>R#g#h+rQ>UR!Q![>R#a#b>_#g#h>eQ>bP#g#h+rQ>jP#]Q!Q![>mQ>pQ!Q![>m#a#b>vQ>yP#g#h+rQ?RP#]Q!Q![?UQ?XQ!Q![?U#a#b?_Q?bP#g#h+rQ?jP#]Q!Q![?mQ?pR!Q![?m#a#b?y#g#hAPQ@OQ#]Q!Q![@U#g#h+rQ@XR!Q![@U#a#b@b#g#h@hQ@eP#g#h+rQ@mP#]Q!Q![@pQ@sQ!Q![@p#a#b@yQ@|P#g#h+rQAUP#]Q!Q![AXQA[Q!Q![AX#a#bAbQAeP#g#h+rQAmQ#]Q!Q![As#g#h+rQAvR!Q![As#a#bBP#g#hBVQBSP#g#h+rQB[P#]Q!Q![B_QBbQ!Q![B_#a#bBhQBkP#g#h+rQBsP#]Q!Q![BvQByQ!Q![Bv#a#bCPQCSP#g#h+rQC[P#]Q!Q![C_QCbT!Q![C_#W#XCq#[#]Gz#a#bI}#g#hKTQCvP#]Q!Q![CyQC|S!Q![Cy#[#]DY#a#bF]#g#hGcQD_P#]Q!Q![DbQDeR!Q![Db#a#bDn#g#hEtQDsQ#]Q!Q![Dy#g#h+rQD|R!Q![Dy#a#bEV#g#hE]QEYP#g#h+rQEbP#]Q!Q![EeQEhQ!Q![Ee#a#bEnQEqP#g#h+rQEyP#]Q!Q![E|QFPQ!Q![E|#a#bFVQFYP#g#h+rQFbQ#]Q!Q![Fh#g#h+rQFkR!Q![Fh#a#bFt#g#hFzQFwP#g#h+rQGPP#]Q!Q![GSQGVQ!Q![GS#a#bG]QG`P#g#h+rQGhP#]Q!Q![GkQGnQ!Q![Gk#a#bGtQGwP#g#h+rQHPP#]Q!Q![HSQHVR!Q![HS#a#bH`#g#hIfQHeQ#]Q!Q![Hk#g#h+rQHnR!Q![Hk#a#bHw#g#hH}QHzP#g#h+rQISP#]Q!Q![IVQIYQ!Q![IV#a#bI`QIcP#g#h+rQIkP#]Q!Q![InQIqQ!Q![In#a#bIwQIzP#g#h+rQJSQ#]Q!Q![JY#g#h+rQJ]R!Q![JY#a#bJf#g#hJlQJiP#g#h+rQJqP#]Q!Q![JtQJwQ!Q![Jt#a#bJ}QKQP#g#h+rQKYP#]Q!Q![K]QK`Q!Q![K]#a#bKfQKiP#g#h+rPKoR!Q![Kx!c!iKx#T#ZKxPK}R#^P!Q![Kx!c!iKx#T#ZKxVL_T$wS!ZR!Q![Ln![!]Ln!c!}Ln#R#SLn#T#oLnRLsT!ZR!Q![Ln![!]Ln!c!}Ln#R#SLn#T#oLn~MXP!U~!_!`M[~MaO!T~~MfQ#kP!_!`Ml#r#sMqQMqO!QQ~MvO#l~~M{P!S~!_!`NO~NTO!R~VN[T!ZRqS!Q![NT![!]Ln!c!}NT#R#SNT#T#oNT~NpO$u~~NuO$v~~NzOu~~N}RO#SNz#S#T%Y#T~Nz~! ]O$z~~! bO${~",tokenizers:[0,1,2],topRules:{"@top":[0,25]},specialized:[{term:57,get:function(e,t){return function(e,t){return P[e.toLowerCase()]||-1}(e)<<1}},{term:57,get:function(e,t){return function(e,t){return T[e.toLowerCase()]||-1}(e)<<1|1}},{term:57,get:function(e){return _[e]||-1}}],tokenPrec:0}),A=26,R=36,L=38,N=39,I=104,z=107,$=109,F=113,B=117,Q=119,W=n(118),H=n(20),V=n(25);function U(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return n.unshift(e.type.id),e.iterate({enter:function(t,r,a){if(t.id!==n[i]&&t.name!==n[i])return!1;if(++i>=n.length){var o=e.resolve(a,-1);if(o.type.id===t.id&&o.start===r&&o.end===a)return o;for(o=e.resolve(r,1);o&&(o.type.id!==t.id||o.start!==r||o.end!==a);)o=o.parent;return o}}})}function q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.unshift(e.type.id);var i=0,a=e.iterate({enter:function(t){if(t.id!==e.type.id||0!==i)return n.some((function(e){return t.id===e||t.name===e}));i++}});return void 0!==a&&a}function Y(e,t,n){var r=[];return function e(r,i){var a=null===r||void 0===r?void 0:r.firstChild,o=null===r||void 0===r?void 0:r.lastChild;a&&a.type.id===t&&e(a,i),o&&o.type.id===n&&i.push(o)}(e,r),r}var X,K=n(78),G=[{label:"^"},{label:"*"},{label:"/"},{label:"%"},{label:"+"},{label:"-"},{label:"=="},{label:">="},{label:">"},{label:"<"},{label:"<="},{label:"!="},{label:"and"},{label:"or"},{label:"unless"}],Z=[{label:"avg",detail:"aggregation",info:"Calculate the average over dimensions",type:"keyword"},{label:"bottomk",detail:"aggregation",info:"Smallest k elements by sample value",type:"keyword"},{label:"count",detail:"aggregation",info:"Count number of elements in the vector",type:"keyword"},{label:"count_values",detail:"aggregation",info:"Count number of elements with the same value",type:"keyword"},{label:"group",detail:"aggregation",info:"Group series, while setting the sample value to 1",type:"keyword"},{label:"max",detail:"aggregation",info:"Select maximum over dimensions",type:"keyword"},{label:"min",detail:"aggregation",info:"Select minimum over dimensions",type:"keyword"},{label:"quantile",detail:"aggregation",info:"Calculate \u03c6-quantile (0 \u2264 \u03c6 \u2264 1) over dimensions",type:"keyword"},{label:"stddev",detail:"aggregation",info:"Calculate population standard deviation over dimensions",type:"keyword"},{label:"stdvar",detail:"aggregation",info:"Calculate population standard variance over dimensions",type:"keyword"},{label:"sum",detail:"aggregation",info:"Calculate sum over dimensions",type:"keyword"},{label:"topk",detail:"aggregation",info:"Largest k elements by sample value",type:"keyword"}],J=[{label:"sum(rate(__input_vector__[5m]))",type:"function",detail:"snippet",info:"Sum over rates of increase",apply:Object(K.c)("sum(rate(${__input_vector__}[5m]))")},{label:"histogram_quantile(__quantile__, sum by(le) (rate(__histogram_metric__[5m])))",type:"function",detail:"snippet",info:"Approximate a quantile value from an aggregated histogram",apply:Object(K.c)("histogram_quantile(${__quantile__}, sum by(le) (rate(${__histogram_metric__}[5m])))")},{label:'label_replace(__input_vector__, "__dst__", "__replacement__", "__src__", "__regex__")',type:"function",detail:"snippet",info:"Set or replace a label value in an input vector",apply:Object(K.c)('label_replace(${__input_vector__}, "${__dst__}", "${__replacement__}", "${__src__}", "${__regex__}")')}],ee={matchOp:[{label:"="},{label:"!="},{label:"=~"},{label:"!~"}],binOp:G,duration:[{label:"y"},{label:"w"},{label:"d"},{label:"h"},{label:"m"},{label:"s"},{label:"ms"}],binOpModifier:[{label:"on",info:"Match only on specified labels",type:"keyword"},{label:"ignoring",info:"Ignore specified labels for matching",type:"keyword"},{label:"group_left",info:"Allow many-to-one matching",type:"keyword"},{label:"group_right",info:"Allow one-to-many matching",type:"keyword"}],functionIdentifier:[{label:"abs",detail:"function",info:"Return absolute values of input series",type:"function"},{label:"absent",detail:"function",info:"Determine whether input vector is empty",type:"function"},{label:"absent_over_time",detail:"function",info:"Determine whether input range vector is empty",type:"function"},{label:"avg_over_time",detail:"function",info:"Average series values over time",type:"function"},{label:"ceil",detail:"function",info:"Round up values of input series to nearest integer",type:"function"},{label:"changes",detail:"function",info:"Return number of value changes in input series over time",type:"function"},{label:"clamp_max",detail:"function",info:"Limit the value of input series to a maximum",type:"function"},{label:"clamp_min",detail:"function",info:"Limit the value of input series to a minimum",type:"function"},{label:"count_over_time",detail:"function",info:"Count the number of values for each input series",type:"function"},{label:"days_in_month",detail:"function",info:"Return the number of days in current month for provided timestamps",type:"function"},{label:"day_of_month",detail:"function",info:"Return the day of the month for provided timestamps",type:"function"},{label:"day_of_week",detail:"function",info:"Return the day of the week for provided timestamps",type:"function"},{label:"delta",detail:"function",info:"Calculate the difference between beginning and end of a range vector (for gauges)",type:"function"},{label:"deriv",detail:"function",info:"Calculate the per-second derivative over series in a range vector (for gauges)",type:"function"},{label:"exp",detail:"function",info:"Calculate exponential function for input vector values",type:"function"},{label:"floor",detail:"function",info:"Round down values of input series to nearest integer",type:"function"},{label:"histogram_quantile",detail:"function",info:"Calculate quantiles from histogram buckets",type:"function"},{label:"holt_winters",detail:"function",info:"Calculate smoothed value of input series",type:"function"},{label:"hour",detail:"function",info:"Return the hour of the day for provided timestamps",type:"function"},{label:"idelta",detail:"function",info:"Calculate the difference between the last two samples of a range vector (for counters)",type:"function"},{label:"increase",detail:"function",info:"Calculate the increase in value over a range of time (for counters)",type:"function"},{label:"irate",detail:"function",info:"Calculate the per-second increase over the last two samples of a range vector (for counters)",type:"function"},{label:"label_replace",detail:"function",info:"Set or replace label values",type:"function"},{label:"label_join",detail:"function",info:"Join together label values into new label",type:"function"},{label:"ln",detail:"function",info:"Calculate natural logarithm of input series",type:"function"},{label:"log10",detail:"function",info:"Calulcate base-10 logarithm of input series",type:"function"},{label:"log2",detail:"function",info:"Calculate base-2 logarithm of input series",type:"function"},{label:"max_over_time",detail:"function",info:"Return the maximum value over time for input series",type:"function"},{label:"min_over_time",detail:"function",info:"Return the minimum value over time for input series",type:"function"},{label:"minute",detail:"function",info:"Return the minute of the hour for provided timestamps",type:"function"},{label:"month",detail:"function",info:"Return the month for provided timestamps",type:"function"},{label:"predict_linear",detail:"function",info:"Predict the value of a gauge into the future",type:"function"},{label:"quantile_over_time",detail:"function",info:"Calculate value quantiles over time for input series",type:"function"},{label:"rate",detail:"function",info:"Calculate per-second increase over a range vector (for counters)",type:"function"},{label:"resets",detail:"function",info:"Return number of value decreases (resets) in input series of time",type:"function"},{label:"round",detail:"function",info:"Round values of input series to nearest integer",type:"function"},{label:"scalar",detail:"function",info:"Convert single-element series vector into scalar value",type:"function"},{label:"sort",detail:"function",info:"Sort input series ascendingly by value",type:"function"},{label:"sort_desc",detail:"function",info:"Sort input series descendingly by value",type:"function"},{label:"sqrt",detail:"function",info:"Return the square root for input series",type:"function"},{label:"stddev_over_time",detail:"function",info:"Calculate the standard deviation within input series over time",type:"function"},{label:"stdvar_over_time",detail:"function",info:"Calculate the standard variation within input series over time",type:"function"},{label:"sum_over_time",detail:"function",info:"Calculate the sum over the values of input series over time",type:"function"},{label:"time",detail:"function",info:"Return the Unix timestamp at the current evaluation time",type:"function"},{label:"timestamp",detail:"function",info:"Return the Unix timestamp for the samples in the input vector",type:"function"},{label:"vector",detail:"function",info:"Convert a scalar value into a single-element series vector",type:"function"},{label:"year",detail:"function",info:"Return the year for provided timestamps",type:"function"}],aggregateOp:Z,aggregateOpModifier:[{label:"by",info:"Keep the listed labels, remove all others.",type:"keyword"},{label:"without",info:"Remove the listed labels, preserve all others.",type:"keyword"}]};function te(e,t){var n=function(e,t){for(var n=e;n&&n.type.id!==t;)n=n.parent;return n}(e,F);return n&&(n=U(n,114,57))?t.sliceDoc(n.start,n.end):""}function ne(e,t){var n,r,i,a,o,s,c,l,u,f,d,h,p,v,m,g,b,y=[];switch(t.type.id){case 0:if((null===(n=t.parent)||void 0===n?void 0:n.type.id)===z){y.push({kind:X.Duration});break}if((null===(r=t.parent)||void 0===r?void 0:r.type.id)===I){y.push({kind:X.Duration});break}var O=e.sliceDoc(t.start,t.end);G.filter((function(e){return e.label.includes(O)})).length>0&&y.push({kind:X.BinOp});break;case 57:if(0===(null===(i=t.parent)||void 0===i?void 0:i.type.id)){if(27===(null===(a=t.parent.parent)||void 0===a?void 0:a.type.id)){y.push({kind:X.AggregateOpModifier},{kind:X.BinOp});break}if((null===(o=t.parent.parent)||void 0===o?void 0:o.type.id)===F){var x=te(t,e);Z.filter((function(e){return e.label===x})).length>0&&y.push({kind:X.AggregateOpModifier}),y.push({kind:X.BinOp},{kind:X.Offset});break}}var k=null===(l=null===(c=null===(s=t.parent)||void 0===s?void 0:s.parent)||void 0===c?void 0:c.parent)||void 0===l?void 0:l.parent;if(!k){y.push({kind:X.MetricName},{kind:X.Function},{kind:X.Aggregation});break}(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;""===e.name&&e.type.id>0&&i++;var a=0,o=e.iterate({enter:function(t){if(t.id!==e.type.id||0!==i)return(t.id===n[a]||t.name===n[a])&&++a>=n.length;i++}});return void 0!==o&&o})(k,A,A)?k.type.id!==R||q(k,0)?(k.type.id!==R||k.type.id===R&&q(k,0))&&y.push({kind:X.BinOp},{kind:X.Offset}):y.push({kind:X.MetricName},{kind:X.Function},{kind:X.Aggregation},{kind:X.BinOpModifier}):y.push({kind:X.MetricName},{kind:X.Function},{kind:X.Aggregation});break;case 30:y.push({kind:X.LabelName});break;case 115:y.push({kind:X.LabelName,metricName:te(t,e)});break;case 33:32===(null===(u=t.parent)||void 0===u?void 0:u.type.id)?y.push({kind:X.LabelName}):(null===(f=t.parent)||void 0===f?void 0:f.type.id)===B&&y.push({kind:X.LabelName,metricName:te(t,e)});break;case B:33===(null===(d=t.firstChild)||void 0===d?void 0:d.type.id)&&0===(null===(h=t.lastChild)||void 0===h?void 0:h.type.id)&&null===(null===(p=t.lastChild)||void 0===p?void 0:p.firstChild)&&y.push({kind:X.MatchOp});break;case $:if((null===(v=t.parent)||void 0===v?void 0:v.type.id)===B){var w="";33===(null===(m=t.parent.firstChild)||void 0===m?void 0:m.type.id)&&(w=e.sliceDoc(t.parent.firstChild.start,t.parent.firstChild.end));var j=te(t,e);y.push({kind:X.LabelValue,metricName:j,labelName:w})}break;case 105:case z:y.push({kind:X.Duration});break;case 34:y.push({kind:X.MetricName},{kind:X.Function},{kind:X.Aggregation});break;case 53:118===(null===(g=t.parent)||void 0===g?void 0:g.type.id)?y.push({kind:X.MatchOp}):(null===(b=t.parent)||void 0===b?void 0:b.type.id)===R&&y.push({kind:X.BinOp});break;case Q:case 120:case 121:case 118:y.push({kind:X.MatchOp});break;case 37:case 43:case 44:case 45:case 46:case 47:case 48:case 49:case 50:case 51:case 52:case 21:case 23:case 22:case R:y.push({kind:X.BinOp})}return y}!function(e){e[e.MetricName=0]="MetricName",e[e.LabelName=1]="LabelName",e[e.LabelValue=2]="LabelValue",e[e.Function=3]="Function",e[e.Aggregation=4]="Aggregation",e[e.BinOpModifier=5]="BinOpModifier",e[e.BinOp=6]="BinOp",e[e.MatchOp=7]="MatchOp",e[e.AggregateOpModifier=8]="AggregateOpModifier",e[e.Duration=9]="Duration",e[e.Offset=10]="Offset"}(X||(X={}));var re=function(){function e(t){Object(r.a)(this,e),this.prometheusClient=t}return Object(i.a)(e,[{key:"promQL",value:function(e){var t,n=this,r=e.state,i=e.pos,o=r.tree.resolve(i,-1),s=ne(r,o),c=Promise.resolve([]),l=!1,u=!0,f=Object(a.a)(s);try{var d=function(){var e=t.value;switch(e.kind){case X.Aggregation:c=c.then((function(e){return e.concat(ee.aggregateOp)}));break;case X.Function:c=c.then((function(e){return e.concat(ee.functionIdentifier)}));break;case X.BinOpModifier:c=c.then((function(e){return e.concat(ee.binOpModifier)}));break;case X.BinOp:c=c.then((function(e){return e.concat(ee.binOp)}));break;case X.MatchOp:c=c.then((function(e){return e.concat(ee.matchOp)}));break;case X.AggregateOpModifier:c=c.then((function(e){return e.concat(ee.aggregateOpModifier)}));break;case X.Duration:u=!1,c=c.then((function(e){return e.concat(ee.duration)}));break;case X.Offset:c=c.then((function(e){return e.concat([{label:"offset"}])}));break;case X.MetricName:c=c.then((function(e){return l=!0,n.autocompleteMetricName(e)}));break;case X.LabelName:c=c.then((function(t){return n.autocompleteLabelName(t,e.metricName)}));break;case X.LabelValue:c=c.then((function(t){return n.autocompleteLabelValue(t,e.labelName,e.metricName)}))}};for(f.s();!(t=f.n()).done;)d()}catch(h){f.e(h)}finally{f.f()}return c.then((function(e){return function(e,t,n){var r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],i=e;return arguments.length>3&&void 0!==arguments[3]&&arguments[3]&&i.push.apply(i,Object(V.a)(J)),{from:t,to:n,options:i,span:r?/^[a-zA-Z0-9_:]+$/:void 0}}(e,function(e,t){var n,r,i,a,o,s,c=e.start;return 30===e.type.id||115===e.type.id||34===e.type.id||e.type.id===$&&(null===(n=e.parent)||void 0===n?void 0:n.type.id)===B?c++:e.type.id===B&&33===(null===(r=e.firstChild)||void 0===r?void 0:r.type.id)&&0===(null===(i=e.lastChild)||void 0===i?void 0:i.type.id)&&null===(null===(a=e.lastChild)||void 0===a?void 0:a.firstChild)?c=e.lastChild.start:e.type.id!==z&&(0!==e.type.id||(null===(o=e.parent)||void 0===o?void 0:o.type.id)!==z&&(null===(s=e.parent)||void 0===s?void 0:s.type.id)!==I)||(c=t),c}(o,i),i,l,u)}))}},{key:"autocompleteMetricName",value:function(e){var t=this;if(!this.prometheusClient)return e;var n=new Map;return this.prometheusClient.labelValues("__name__").then((function(e){var r,i,o=Object(a.a)(e);try{for(o.s();!(i=o.n()).done;){var s=i.value;n.set(s,{label:s,type:"constant"})}}catch(c){o.e(c)}finally{o.f()}if(e.length<=1e4)return null===(r=t.prometheusClient)||void 0===r?void 0:r.metricMetadata()})).then((function(t){if(t){var r,i=Object(a.a)(n);try{for(i.s();!(r=i.n()).done;){var o=Object(H.a)(r.value,2),s=o[0],c=o[1],l=t.get(s.replace(/(_count|_sum|_bucket)$/,""));if(l)if(l.length>1){var u,f=Object(a.a)(l);try{for(f.s();!(u=f.n()).done;){var d=u.value;""===c.detail?c.detail=d.type:c.detail!==d.type&&(c.detail="unknown",c.info="multiple different definitions for this metric"),""===c.info?c.info=d.help:c.info!==d.help&&(c.info="multiple different definitions for this metric")}}catch(m){f.e(m)}finally{f.f()}}else if(1===l.length){var h=l[0],p=h.type,v=h.help;"histogram"!==p&&"summary"!==p||(s.endsWith("_count")&&(p="counter",v="The total number of observations for: ".concat(v)),s.endsWith("_sum")&&(p="counter",v="The total sum of observations for: ".concat(v)),s.endsWith("_bucket")&&(p="counter",v="The total count of observations for a bucket in the histogram: ".concat(v))),c.detail=p,c.info=v}}}catch(m){i.e(m)}finally{i.f()}}return e.concat(Array.from(n.values()))}))}},{key:"autocompleteLabelName",value:function(e,t){return this.prometheusClient?this.prometheusClient.labelNames(t).then((function(t){return e.concat(t.map((function(e){return{label:e,type:"constant"}})))})):e}},{key:"autocompleteLabelValue",value:function(e,t,n){return this.prometheusClient&&t?this.prometheusClient.labelValues(t,n).then((function(t){return e.concat(t.map((function(e){return{label:e,type:"text"}})))})):e}}]),e}(),ie="/api/v1/label/:name/values",ae=function(){function e(){Object(r.a)(this,e),this.completeAssociation=new Map,this.metricMetadata=new Map,this.labelValues=new Map,this.labelNames=[]}return Object(i.a)(e,[{key:"setAssociation",value:function(e,t){var n=this.completeAssociation.get(e);n||(n=new Map,this.completeAssociation.set(e,n));for(var r=0,i=Object.entries(t);r<i.length;r++){var a=Object(H.a)(i[r],2),o=a[0],s=a[1];if("__name__"!==o){var c=n.get(o);void 0===c?n.set(o,new Set([s])):c.add(s)}}}},{key:"setMetricMetadata",value:function(e,t){this.metricMetadata.set(e,t)}},{key:"getMetricMetadata",value:function(){return this.metricMetadata}},{key:"setLabelNames",value:function(e){this.labelNames=e}},{key:"getLabelNames",value:function(e){if(!e||0===e.length)return this.labelNames;var t=this.completeAssociation.get(e);return t?Array.from(t.keys()):[]}},{key:"setLabelValues",value:function(e,t){this.labelValues.set(e,t)}},{key:"getLabelValues",value:function(e,t){if(!t||0===t.length){var n=this.labelValues.get(e);return n||[]}var r=this.completeAssociation.get(t);if(r){var i=r.get(e);return i?Array.from(i):[]}return[]}}]),e}(),oe=400,se=422,ce=503,le=function(){function e(t,n,i,a){Object(r.a)(this,e),this.lookbackInterval=432e5,this.fetchFn=function(e,t){return fetch(e,t)},this.cache=new ae,this.url=t,this.errorHandler=n,i&&(this.lookbackInterval=i),a&&(this.fetchFn=a)}return Object(i.a)(e,[{key:"labelNames",value:function(e){var t=this;if(this.cache.getLabelNames(e)&&this.cache.getLabelNames(e).length>0)return Promise.resolve(this.cache.getLabelNames(e));var n=new Date,r=new Date(n.getTime()-this.lookbackInterval);if(void 0===e||""===e){var i=new URLSearchParams({start:r.toISOString(),end:n.toISOString()});return this.fetchAPI("".concat("/api/v1/labels","?").concat(i)).then((function(e){return t.cache.setLabelNames(e),e})).catch((function(e){return t.errorHandler&&t.errorHandler(e),[]}))}return this.series(e,r,n).then((function(n){return t.cache.getLabelNames(e)}))}},{key:"labelValues",value:function(e,t){var n=this;if(this.cache.getLabelValues(e,t)&&this.cache.getLabelValues(e,t).length>0)return Promise.resolve(this.cache.getLabelValues(e,t));var r=new Date,i=new Date(r.getTime()-this.lookbackInterval);if(!t||0===t.length){var a=new URLSearchParams({start:i.toISOString(),end:r.toISOString()});return this.fetchAPI("".concat(ie.replace(/:name/gi,e),"?").concat(a)).then((function(t){return n.cache.setLabelValues(e,t),t})).catch((function(e){return n.errorHandler&&n.errorHandler(e),[]}))}return this.series(t,i,r).then((function(r){return n.cache.getLabelValues(e,t)}))}},{key:"metricMetadata",value:function(){var e=this;return this.cache.getMetricMetadata()&&this.cache.getMetricMetadata().size>0?Promise.resolve(this.cache.getMetricMetadata()):this.fetchAPI("/api/v1/metadata").then((function(t){for(var n=0,r=Object.entries(t);n<r.length;n++){var i=Object(H.a)(r[n],2),a=i[0],o=i[1];e.cache.setMetricMetadata(a,o)}return e.cache.getMetricMetadata()})).catch((function(t){return e.errorHandler&&e.errorHandler(t),new Map}))}},{key:"series",value:function(e,t,n){var r=this,i=new URLSearchParams({start:t.toISOString(),end:n.toISOString(),"match[]":e});return this.fetchAPI("".concat("/api/v1/series","?").concat(i)).then((function(t){return t.forEach((function(t){r.cache.setAssociation(e,t)})),t})).catch((function(e){return r.errorHandler&&r.errorHandler(e),[]}))}},{key:"fetchAPI",value:function(e){return this.fetchFn(this.url+e).then((function(e){if(!e.ok&&![oe,se,ce].includes(e.status))throw new Error(e.statusText);return e})).then((function(e){return e.json()})).then((function(e){if("error"===e.status)throw new Error(void 0!==e.error?e.error:'missing "error" field in response JSON');if(void 0===e.data)throw new Error('missing "data" field in response JSON');return e.data}))}}]),e}();function ue(e){return(null===e||void 0===e?void 0:e.prometheusClient)?new re(e.prometheusClient):(null===e||void 0===e?void 0:e.url)?new re(new le(e.url,e.httpErrorHandler,e.lookbackInterval,e.fetchFn)):new re}var fe,de,he=n(119);!function(e){e.none="none",e.vector="vector",e.scalar="scalar",e.matrix="matrix",e.string="string"}(de||(de={}));var pe,ve=(fe={},Object(o.a)(fe,59,{name:"abs",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,58,{name:"absent",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,56,{name:"absent_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,60,{name:"avg_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,61,{name:"ceil",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,62,{name:"changes",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,63,{name:"clamp_max",argTypes:[de.vector,de.scalar],variadic:0,returnType:de.vector}),Object(o.a)(fe,64,{name:"clamp_min",argTypes:[de.vector,de.scalar],variadic:0,returnType:de.vector}),Object(o.a)(fe,65,{name:"count_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,66,{name:"days_in_month",argTypes:[de.vector],variadic:1,returnType:de.vector}),Object(o.a)(fe,67,{name:"day_of_month",argTypes:[de.vector],variadic:1,returnType:de.vector}),Object(o.a)(fe,68,{name:"day_of_week",argTypes:[de.vector],variadic:1,returnType:de.vector}),Object(o.a)(fe,69,{name:"delta",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,70,{name:"deriv",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,71,{name:"exp",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,72,{name:"floor",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,73,{name:"histogram_quantile",argTypes:[de.scalar,de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,74,{name:"holt_winters",argTypes:[de.matrix,de.scalar,de.scalar],variadic:0,returnType:de.vector}),Object(o.a)(fe,75,{name:"hour",argTypes:[de.vector],variadic:1,returnType:de.vector}),Object(o.a)(fe,76,{name:"idelta",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,77,{name:"increase",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,78,{name:"irate",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,79,{name:"label_replace",argTypes:[de.vector,de.string,de.string,de.string,de.string],variadic:0,returnType:de.vector}),Object(o.a)(fe,80,{name:"label_join",argTypes:[de.vector,de.string,de.string,de.string],variadic:-1,returnType:de.vector}),Object(o.a)(fe,81,{name:"ln",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,82,{name:"log10",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,83,{name:"log2",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,84,{name:"max_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,85,{name:"min_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,86,{name:"minute",argTypes:[de.vector],variadic:1,returnType:de.vector}),Object(o.a)(fe,87,{name:"month",argTypes:[de.vector],variadic:1,returnType:de.vector}),Object(o.a)(fe,88,{name:"predict_linear",argTypes:[de.matrix,de.scalar],variadic:0,returnType:de.vector}),Object(o.a)(fe,89,{name:"quantile_over_time",argTypes:[de.scalar,de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,90,{name:"rate",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,91,{name:"resets",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,92,{name:"round",argTypes:[de.vector,de.scalar],variadic:1,returnType:de.vector}),Object(o.a)(fe,93,{name:"scalar",argTypes:[de.vector],variadic:0,returnType:de.scalar}),Object(o.a)(fe,94,{name:"sort",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,95,{name:"sort_desc",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,96,{name:"sqrt",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,97,{name:"stddev_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,98,{name:"stdvar_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,99,{name:"sum_over_time",argTypes:[de.matrix],variadic:0,returnType:de.vector}),Object(o.a)(fe,101,{name:"time",argTypes:[],variadic:0,returnType:de.scalar}),Object(o.a)(fe,100,{name:"timestamp",argTypes:[de.vector],variadic:0,returnType:de.vector}),Object(o.a)(fe,102,{name:"vector",argTypes:[de.scalar],variadic:0,returnType:de.vector}),Object(o.a)(fe,103,{name:"year",argTypes:[de.vector],variadic:1,returnType:de.vector}),fe);function me(e){return ve[e]}function ge(e){var t;if(!e)return de.none;switch(e.type.id){case A:return ge(e.firstChild);case 27:case F:return de.vector;case z:return ge(e.firstChild);case $:return de.string;case 106:return de.scalar;case I:case 110:return de.matrix;case 108:case 111:return ge(U(e,A));case R:var n=ge(e.firstChild),r=ge(e.lastChild);return n===de.scalar&&r===de.scalar?de.scalar:de.vector;case 54:var i=null===(t=e.firstChild)||void 0===t?void 0:t.firstChild;return i?me(i.type.id).returnType:de.none;default:return de.none}}!function(e){e.CardOneToOne="one-to-one",e.CardManyToOne="many-to-one",e.CardOneToMany="one-to-many",e.CardManyToMany="many-to-many"}(pe||(pe={}));var be=function(){function e(t,n,i){Object(r.a)(this,e),this.type=t,this.name=n,this.value=i}return Object(i.a)(e,[{key:"matchesEmpty",value:function(){switch(this.type){case Q:return""===this.value;case 53:return""!==this.value;default:return!1}}}]),e}();function ye(e,t){var n=[];return e.forEach((function(e){n.push(function(e,t){var n=new be(0,"","");return e.iterate({enter:function(e,r,i){switch(e.id){case B:return;case 33:n.name=t.sliceDoc(r,i);break;case 118:return;case Q:case 53:case 120:case 121:n.type=e.id;break;case $:n.value=t.sliceDoc(r,i).slice(1,-1)}return!1}}),n}(e,t))})),n}var Oe=function(){function e(t){Object(r.a)(this,e),this.tree=t.tree,this.state=t,this.diagnostics=[]}return Object(i.a)(e,[{key:"getDiagnostics",value:function(){return this.diagnostics.sort((function(e,t){return e.from-t.from}))}},{key:"analyze",value:function(){this.checkAST(this.tree.firstChild),this.diagnoseAllErrorNodes()}},{key:"diagnoseAllErrorNodes",value:function(){var e=this;this.tree.iterate({enter:function(t,n,r){if(0===t.id&&r!==e.tree.end){var i=e.tree.resolve(n,-1);e.diagnostics.push({severity:"error",message:"unexpected expression",from:i.start,to:i.end})}}})}},{key:"checkAST",value:function(e){if(!e)return de.none;switch(e.type.id){case A:return this.checkAST(e.firstChild);case 27:this.checkAggregationExpr(e);break;case R:this.checkBinaryExpr(e);break;case 54:this.checkCallFunction(e);break;case 108:this.checkAST(U(e,A));break;case 111:var t=this.checkAST(U(e,A));t!==de.scalar&&t!==de.vector&&this.addDiagnostic(e,"unary expression only allowed on expressions of type scalar or instant vector, got ".concat(t));break;case 110:var n=this.checkAST(U(e,A));n!==de.vector&&this.addDiagnostic(e,"subquery is only allowed on instant vector, got ".concat(n," in ").concat(e.name," instead"));break;case I:this.checkAST(U(e,A));break;case F:this.checkVectorSelector(e)}return ge(e)}},{key:"checkAggregationExpr",value:function(e){var t,n=null===(t=e.firstChild)||void 0===t?void 0:t.firstChild;if(n){var r=U(e,34,35,A);if(r){this.expectType(r,de.vector,"aggregation expression");var i=U(e,34,35,35,A);if(18===n.type.id||8===n.type.id||14===n.type.id){if(!i)return void this.addDiagnostic(e,"no parameter found");this.expectType(i,de.scalar,"aggregation parameter")}if(10===n.type.id){if(!i)return void this.addDiagnostic(e,"no parameter found");this.expectType(i,de.string,"aggregation parameter")}}else this.addDiagnostic(e,"unable to find the parameter for the expression")}else this.addDiagnostic(e,"aggregation operator expected in aggregation expression but got nothing")}},{key:"checkBinaryExpr",value:function(e){var t=e.firstChild,n=e.lastChild;if(t&&n){var r=this.checkAST(t),i=this.checkAST(n),o=U(e,L,N,40,1),s=q(e,48,53,51,52,49,50),c=q(e,21,22,23);o?s||this.addDiagnostic(e,"bool modifier can only be used on comparison operators"):s&&r===de.scalar&&i===de.scalar&&this.addDiagnostic(e,"comparisons between scalars must use BOOL modifier");var l=function(e,t){if(!t||t.type.id!==R)return null;var n={card:pe.CardOneToOne,matchingLabels:[],on:!1,include:[]},r=U(t,L,N,41,3),i=U(t,L,N,41,2);if(r||i){n.on=null!==r&&void 0!==r;var o=Y(U(t,L,N,41,30),31,32);if(o.length>0){var s,c=Object(a.a)(o);try{for(c.s();!(s=c.n()).done;){var l=s.value;n.matchingLabels.push(e.sliceDoc(l.start,l.end))}}catch(m){c.e(m)}finally{c.f()}}}var u=U(t,L,N,4),f=U(t,L,N,5);if(u||f){n.card=u?pe.CardManyToOne:pe.CardOneToMany;var d=Y(U(t,L,N,42,30),31,32);if(d.length>0){var h,p=Object(a.a)(d);try{for(p.s();!(h=p.n()).done;){var v=h.value;n.include.push(e.sliceDoc(v.start,v.end))}}catch(m){p.e(m)}finally{p.f()}}}return q(t,21,22,23)&&n.card===pe.CardOneToOne&&(n.card=pe.CardManyToMany),n}(this.state,e);if(null!==l&&l.on){var u,f=Object(a.a)(l.matchingLabels);try{for(f.s();!(u=f.n()).done;){var d,h=u.value,p=Object(a.a)(l.include);try{for(p.s();!(d=p.n()).done;){h===d.value&&this.addDiagnostic(e,'label "'.concat(h,'" must not occur in ON and GROUP clause at once'))}}catch(v){p.e(v)}finally{p.f()}}}catch(v){f.e(v)}finally{f.f()}}r!==de.scalar&&r!==de.vector&&this.addDiagnostic(t,"binary expression must contain only scalar and instant vector types"),i!==de.scalar&&i!==de.vector&&this.addDiagnostic(n,"binary expression must contain only scalar and instant vector types"),r===de.vector&&i===de.vector||null===l?c&&((null===l||void 0===l?void 0:l.card)!==pe.CardOneToMany&&(null===l||void 0===l?void 0:l.card)!==pe.CardManyToOne||this.addDiagnostic(e,"no grouping allowed for set operations"),(null===l||void 0===l?void 0:l.card)!==pe.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")):l.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"),r!==de.scalar&&i!==de.scalar||!c||this.addDiagnostic(e,"set operator not allowed in binary scalar expression")}else this.addDiagnostic(e,"left or right expression is missing in binary expression")}},{key:"checkCallFunction",value:function(e){var t,n=null===(t=e.firstChild)||void 0===t?void 0:t.firstChild;if(n){var r=Y(U(e,34),35,A),i=me(n.type.id),a=i.argTypes.length;if(0===i.variadic)r.length!==a&&this.addDiagnostic(e,"expected ".concat(a," argument(s) in call to ").concat(i.name,", got ").concat(r.length));else{var o=a-1;if(o>r.length)this.addDiagnostic(e,"expected at least ".concat(o," argument(s) in call to ").concat(i.name,", got ").concat(r.length));else{var s=o+i.variadic;i.variadic>0&&s<r.length&&this.addDiagnostic(e,"expected at most ".concat(s," argument(s) in call to ").concat(i.name,", got ").concat(r.length))}}for(var c=0,l=0;l<r.length;l++){if((c=l)>=i.argTypes.length){if(0===i.variadic)break;c=i.argTypes.length-1}this.expectType(r[l],i.argTypes[c],"call to function ".concat(i.name))}}else this.addDiagnostic(e,"function not defined")}},{key:"checkVectorSelector",value:function(e){var t=ye(Y(U(e,115,116),116,B),this.state),n="",r=U(e,114,57);if(r&&(n=this.state.sliceDoc(r.start,r.end)),""!==n){var i=t.find((function(e){return"__name__"===e.name}));i&&this.addDiagnostic(e,"metric name must not be set twice: ".concat(n," or ").concat(i.value)),t.push(new be(Q,"__name__",n))}t.every((function(e){return e.matchesEmpty()}))&&this.addDiagnostic(e,"vector selector must contain at least one non-empty matcher")}},{key:"expectType",value:function(e,t,n){var r=this.checkAST(e);r!==t&&this.addDiagnostic(e,"expected type ".concat(t," in ").concat(n,", got ").concat(r))}},{key:"addDiagnostic",value:function(e,t){this.diagnostics.push({severity:"error",message:t,from:e.start,to:e.end})}}]),e}(),xe=function(){function e(){Object(r.a)(this,e)}return Object(i.a)(e,[{key:"promQL",value:function(){return function(e){var t=new Oe(e.state);return t.analyze(),t.getDiagnostics()}}}]),e}();var ke=O.define(D.withProps(Object(W.b)({LineComment:"comment",LabelName:"labelName",StringLiteral:"string",NumberLiteral:"number",Duration:"number","Abs Absent AbsentOverTime AvgOverTime Ceil Changes ClampMax ClampMin CountOverTime DaysInMonth DayOfMonth DayOfWeek Delta Deriv Exp Floor HistogramQuantile HoltWinters Hour Idelta Increase Irate LabelReplace LabelJoin Ln Log10 Log2 MaxOverTime MinOverTime Minute Month PredictLinear QuantileOverTime Rate Resets Round Scalar Sort SortDesc Sqrt StddevOverTime StdvarOverTime SumOverTime Time Timestamp Vector Year":"functionName","Avg Bottomk Count Count_values Group Max Min Quantile Stddev Stdvar Sum Topk":"operatorKeyword","By Without Bool On Ignoring GroupLeft GroupRight Offset":"modifier","And Unless Or":"logicOperator","Sub Add Mul Mod Div Eql Neq Lte Lss Gte Gtr EqlRegex EqlSingle NeqRegex Pow":"operator",UnaryOp:"arithmeticOperator","( )":"paren","[ ]":"squareBracket","{ }":"brace","\u26a0":"invalid"})),{languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}),we=function(){function e(){Object(r.a)(this,e),this.complete=ue(),this.lint=new xe,this.enableLinter=!0,this.enableCompletion=!0}return Object(i.a)(e,[{key:"setComplete",value:function(e){return this.complete=ue(e),this}},{key:"activateCompletion",value:function(e){return this.enableCompletion=e,this}},{key:"activateLinter",value:function(e){return this.enableLinter=e,this}},{key:"asExtension",value:function(){var e,t,n=this,r=[ke];if(this.enableCompletion){var i=ke.languageData.of({autocomplete:function(e){return n.complete.promQL(e)}});r=r.concat(i)}return this.enableLinter&&(r=r.concat((e=this.lint.promQL,t=this.lint,Object(he.b)(e.call(t))))),r}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return Pt}));var r=n(25),i=n(10),a=n(5),o=n(7),s=n(4),c=n(6),l=a.a.define(),u=a.a.define(),f=a.f.define(),d=a.f.define({combine:function(e){return Object(a.m)(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}}),h=a.j.define({create:function(){return M.empty},update:function(e,t){var n=t.state.facet(d),r=t.annotation(l);if(r){var i=O.fromTransaction(t),o=r.side,s=0==o?e.undone:e.done;return s=i?x(s,s.length,n.minDepth,i):j(s,t.startState.selection),new M(0==o?r.rest:s,0==o?s:r.rest)}var c=t.annotation(u);if("full"!=c&&"before"!=c||(e=e.isolate()),!1===t.annotation(a.l.addToHistory))return t.changes.length?e.addMapping(t.changes.desc):e;var f=O.fromTransaction(t),h=t.annotation(a.l.time),p=t.annotation(a.l.userEvent);return f?e=e.addChanges(f,h,p,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,h,p,n.newGroupDelay)),"full"!=c&&"after"!=c||(e=e.isolate()),e}});function p(e,t){return function(n){var r=n.state,i=n.dispatch,a=r.field(h,!1);if(!a)return!1;var o=a.pop(e,r,t);return!!o&&(i(o),!0)}}var v=p(0,!1),m=p(1,!1),g=p(0,!0),b=p(1,!0);function y(e){return function(t){var n=t.field(h,!1);if(!n)return 0;var r=0==e?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}y(0),y(1);var O=function(){function e(t,n,r,i,a){Object(s.a)(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}return Object(c.a)(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}}],[{key:"fromTransaction",value:function(t){var n,r=w,i=Object(o.a)(t.startState.facet(f));try{for(i.s();!(n=i.n()).done;){var a=(0,n.value)(t);a.length&&(r=r.concat(a))}}catch(s){i.e(s)}finally{i.f()}return!r.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),r,void 0,t.startState.selection,w)}},{key:"selection",value:function(t){return new e(void 0,w,void 0,void 0,t)}}]),e}();function x(e,t,n,r){var i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function k(e,t){return e.length?t.length?e.concat(t):e:t}var w=[];function j(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),x(e,e.length-1,1e9,n.setSelAfter(r)))}return[O.selection([t])]}function S(e){var t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function C(e,t){if(!e.length)return e;for(var n=e.length,r=w;n;){var i=E(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){var a=e.slice(0,n);return a[n-1]=i,a}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[O.selection(r)]:w}function E(e,t,n){var r=k(e.selectionsAfter.length?e.selectionsAfter.map((function(e){return e.map(t)})):w,n);if(!e.changes)return O.selection(r);var i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new O(i,a.i.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}var M=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;Object(s.a)(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return Object(c.a)(e,[{key:"isolate",value:function(){return this.prevTime?new e(this.done,this.undone):this}},{key:"addChanges",value:function(t,n,r,i,a){var o=this.done,s=o[o.length-1];return new e(o=s&&s.changes&&n-this.prevTime<i&&!s.selectionsAfter.length&&s.changes.length&&t.changes&&function(e,t){var n=[],r=!1;return e.iterChangedRanges((function(e,t){return n.push(e,t)})),t.iterChangedRanges((function(e,t,i,a){for(var o=0;o<n.length;){var s=n[o++],c=n[o++];a>=s&&i<=c&&(r=!0)}})),r}(s.changes,t.changes)?x(o,o.length-1,a,new O(t.changes.compose(s.changes),k(t.effects,s.effects),s.mapped,s.startSelection,w)):x(o,o.length,a,t),w,n,r)}},{key:"addSelection",value:function(t,n,r,i){var a,o,s=this.done.length?this.done[this.done.length-1].selectionsAfter:w;return s.length>0&&n-this.prevTime<i&&"keyboardselection"==r&&this.prevUserEvent==r&&(a=s[s.length-1],o=t,a.ranges.length==o.ranges.length&&0===a.ranges.filter((function(e,t){return e.empty!=o.ranges[t].empty})).length)?this:new e(j(this.done,t),this.undone,n,r)}},{key:"addMapping",value:function(t){return new e(C(this.done,t),C(this.undone,t),this.prevTime,this.prevUserEvent)}},{key:"pop",value:function(e,t,n){var r=0==e?this.done:this.undone;if(0==r.length)return null;var i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:l.of({side:e,rest:S(r)})});if(i.changes){var a=1==r.length?w:r.slice(0,r.length-1);return i.mapped&&(a=C(a,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:l.of({side:e,rest:a}),filter:!1})}return null}}]),e}();M.empty=new M(w,w);var P=[{key:"Mod-z",run:v,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:m,preventDefault:!0},{key:"Mod-u",run:g,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:b,preventDefault:!0}],T=n(16),_=n(15),D=n(32),A=function(e){Object(T.a)(n,e);var t=Object(_.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"compare",value:function(e){return this==e||this.constructor==e.constructor&&this.eq(e)}},{key:"toDOM",value:function(e){return null}},{key:"at",value:function(e){return new D.a(e,e,this)}}]),n}(D.d);A.prototype.elementClass="",A.prototype.mapMode=a.h.TrackBefore;var R={style:"",renderEmptyElements:!1,elementStyle:"",markers:function(){return D.b.empty},lineMarker:function(){return null},initialSpacer:null,updateSpacer:null,domEventHandlers:{}},L=a.f.define();function N(e){return[$(),L.of(Object.assign(Object.assign({},R),e))]}var I=i.d.baseTheme({$gutters:{display:"flex",height:"100%",boxSizing:"border-box",left:0},"$$light $gutters":{backgroundColor:"#f5f5f5",color:"#999",borderRight:"1px solid #ddd"},"$$dark $gutters":{backgroundColor:"#333338",color:"#ccc"},$gutter:{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",height:"100%",overflow:"hidden"},$gutterElement:{boxSizing:"border-box"},"$gutterElement.lineNumber":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"}}),z=a.f.define({combine:function(e){return e.some((function(e){return e}))}});function $(e){var t=[F,I];return e&&!1===e.fixed&&t.push(z.of(!0)),t}var F=i.f.fromClass(function(){function e(t){Object(s.a)(this,e),this.view=t,this.dom=document.createElement("div"),this.dom.className=Object(i.n)("gutters"),this.dom.setAttribute("aria-hidden","true"),this.gutters=t.state.facet(L).map((function(e){return new Q(t,e)}));var n,r=Object(o.a)(this.gutters);try{for(r.s();!(n=r.n()).done;){var a=n.value;this.dom.appendChild(a.dom)}}catch(c){r.e(c)}finally{r.f()}this.fixed=!t.state.facet(z),this.fixed&&(this.dom.style.position="sticky"),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}return Object(c.a)(e,[{key:"update",value:function(e){var t=this;if(this.updateGutters(e)){var n=this.gutters.map((function(e){return new B(e,t.view.viewport)}));this.view.viewportLines((function(e){var r;if(Array.isArray(e.type)){var a,s=Object(o.a)(e.type);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c.type==i.a.Text){r=c;break}}}catch(f){s.e(f)}finally{s.f()}}else r=e.type==i.a.Text?e:void 0;if(r){var l,u=Object(o.a)(n);try{for(u.s();!(l=u.n()).done;){l.value.line(t.view,r)}}catch(f){u.e(f)}finally{u.f()}}}),0);var r,a=Object(o.a)(n);try{for(a.s();!(r=a.n()).done;){r.value.finish()}}catch(s){a.e(s)}finally{a.f()}this.dom.style.minHeight=this.view.contentHeight+"px",e.state.facet(z)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"")}}},{key:"updateGutters",value:function(e){var t=e.prevState.facet(L),n=e.state.facet(L),r=e.docChanged||e.heightChanged||e.viewportChanged;if(t==n){var i,a=Object(o.a)(this.gutters);try{for(a.s();!(i=a.n()).done;){i.value.update(e)&&(r=!0)}}catch(g){a.e(g)}finally{a.f()}}else{r=!0;var s,c=[],l=Object(o.a)(n);try{for(l.s();!(s=l.n()).done;){var u=s.value,f=t.indexOf(u);f<0?c.push(new Q(this.view,u)):(this.gutters[f].update(e),c.push(this.gutters[f]))}}catch(g){l.e(g)}finally{l.f()}var d,h=Object(o.a)(this.gutters);try{for(h.s();!(d=h.n()).done;){d.value.dom.remove()}}catch(g){h.e(g)}finally{h.f()}for(var p=0,v=c;p<v.length;p++){var m=v[p];this.dom.appendChild(m.dom)}this.gutters=c}return r}},{key:"destroy",value:function(){this.dom.remove()}}]),e}(),{provide:i.e.scrollMargins.from((function(e){return 0!=e.gutters.length&&e.fixed?e.view.textDirection==i.c.LTR?{left:e.dom.offsetWidth}:{right:e.dom.offsetWidth}:null}))}),B=function(){function e(t,n){Object(s.a)(this,e),this.gutter=t,this.localMarkers=[],this.i=0,this.height=0,this.cursor=D.b.iter(Array.isArray(t.markers)?t.markers:[t.markers],n.from)}return Object(c.a)(e,[{key:"line",value:function(e,t){for(this.localMarkers.length&&(this.localMarkers=[]);this.cursor.value&&this.cursor.from<=t.from;)this.cursor.from==t.from&&this.localMarkers.push(this.cursor.value),this.cursor.next();var n=this.gutter.config.lineMarker(e,t,this.localMarkers);n&&this.localMarkers.unshift(n);var r=this.gutter;if(0!=this.localMarkers.length||r.config.renderEmptyElements){var i=t.top-this.height;if(this.i==r.elements.length){var a=new W(e,t.height,i,this.localMarkers,r.elementClass);r.elements.push(a),r.dom.appendChild(a.dom)}else{var o=this.localMarkers,s=r.elements[this.i];(function(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].compare(t[n]))return!1;return!0})(o,s.markers)&&(o=s.markers,this.localMarkers.length=0),s.update(e,t.height,i,o,r.elementClass)}this.height=t.bottom,this.i++}}},{key:"finish",value:function(){for(var e=this.gutter;e.elements.length>this.i;)e.dom.removeChild(e.elements.pop().dom)}}]),e}(),Q=function(){function e(t,n){var r=this;Object(s.a)(this,e),this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className=Object(i.n)("gutter"+(this.config.style?"."+this.config.style:"")),this.elementClass=Object(i.n)("gutterElement"+(this.config.style?"."+this.config.style:""));var a=function(e){r.dom.addEventListener(e,(function(r){var i=t.visualLineAtHeight(r.clientY,t.contentDOM.getBoundingClientRect().top);n.domEventHandlers[e](t,i,r)&&r.preventDefault()}))};for(var o in n.domEventHandlers)a(o);this.markers=n.markers(t.state),n.initialSpacer&&(this.spacer=new W(t,0,0,[n.initialSpacer(t)],this.elementClass),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return Object(c.a)(e,[{key:"update",value:function(e){var t=this.markers;if(this.markers=this.config.markers(e.state),this.spacer&&this.config.updateSpacer){var n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n],this.elementClass)}return this.markers!=t}}]),e}(),W=function(){function e(t,n,r,i,a){Object(s.a)(this,e),this.height=-1,this.above=0,this.dom=document.createElement("div"),this.update(t,n,r,i,a)}return Object(c.a)(e,[{key:"update",value:function(e,t,n,r,i){if(this.height!=t&&(this.dom.style.height=(this.height=t)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),this.markers!=r){this.markers=r;for(var a;a=this.dom.lastChild;)a.remove();var s,c=i,l=Object(o.a)(r);try{for(l.s();!(s=l.n()).done;){var u=s.value,f=u.toDOM(e);f&&this.dom.appendChild(f);var d=u.elementClass;d&&(c+=" "+d)}}catch(h){l.e(h)}finally{l.f()}this.dom.className=c}}}]),e}();var H=a.f.define(),V=a.f.define({combine:function(e){return Object(a.m)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers:function(e,t){var n=Object.assign({},e),r=function(e){var r=n[e],i=t[e];n[e]=r?function(e,t,n){return r(e,t,n)||i(e,t,n)}:i};for(var i in t)r(i);return n}})}}),U=function(e){Object(T.a)(n,e);var t=Object(_.a)(n);function n(e){var r;return Object(s.a)(this,n),(r=t.call(this)).number=e,r}return Object(c.a)(n,[{key:"eq",value:function(e){return this.number==e.number}},{key:"toDOM",value:function(e){var t=e.state.facet(V);return document.createTextNode(t.formatNumber(this.number))}}]),n}(A),q=N({style:"lineNumber",markers:function(e){return e.facet(H)},lineMarker:function(e,t,n){return n.length?null:new U(e.state.doc.lineAt(t.from).number)},initialSpacer:function(e){return new U(Y(e.state.doc.lines))},updateSpacer:function(e,t){var n=Y(t.view.state.doc.lines);return n==e.number?e:new U(n)}});function Y(e){for(var t=9;t<e;)t=10*t+9;return t}function X(e,t){var n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}var K=a.i.define({map:X}),G=a.i.define({map:X});function Z(e){var t,n=[],r=Object(o.a)(e.state.selection.ranges);try{var i=function(){var r=t.value.head;if(n.some((function(e){return e.from<=r&&e.to>=r})))return"continue";n.push(e.visualLineAt(r))};for(r.s();!(t=r.n()).done;)i()}catch(a){r.e(a)}finally{r.f()}return n}var J=a.j.define({create:function(){return i.b.none},update:function(e,t){e=e.map(t.changes);var n,r=Object(o.a)(t.effects);try{var i=function(){var t=n.value;t.is(K)&&!function(e,t,n){var r=!1;return e.between(t,t,(function(e,i){e==t&&i==n&&(r=!0)})),r}(e,t.value.from,t.value.to)?e=e.update({add:[se.range(t.value.from,t.value.to)]}):t.is(G)&&(e=e.update({filter:function(e,n){return t.value.from!=e||t.value.to!=n},filterFrom:t.value.from,filterTo:t.value.to}))};for(r.s();!(n=r.n()).done;)i()}catch(c){r.e(c)}finally{r.f()}if(t.selection){var a=!1,s=t.selection.primary.head;e.between(s,s,(function(e,t){e<s&&t>s&&(a=!0)})),a&&(e=e.update({filterFrom:s,filterTo:s,filter:function(e,t){return t<=s||e>=s}}))}return e},provide:[i.d.decorations]});function ee(e,t,n){var r,i=null;return null===(r=e.field(J,!1))||void 0===r||r.between(t,n,(function(e,t){(!i||i.from>e)&&(i={from:e,to:t})})),i}function te(e,t,n){return e.facet(a.e.foldable).reduce((function(r,i){return r||i(e,t,n)}),null)}function ne(e){return e.field(J,!1)?void 0:{append:oe()}}var re=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:function(e){var t,n=Object(o.a)(Z(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=te(e.state,r.from,r.to);if(i)return e.dispatch({effects:K.of(i),reconfigure:ne(e.state)}),!0}}catch(a){n.e(a)}finally{n.f()}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:function(e){if(!e.state.field(J,!1))return!1;var t,n=[],r=Object(o.a)(Z(e));try{for(r.s();!(t=r.n()).done;){var i=t.value,a=ee(e.state,i.from,i.to);a&&n.push(G.of(a))}}catch(s){r.e(s)}finally{r.f()}return n.length&&e.dispatch({effects:n}),n.length>0}},{key:"Ctrl-Alt-[",run:function(e){for(var t=e.state,n=[],r=0;r<t.doc.length;){var i=e.visualLineAt(r),a=te(t,i.from,i.to);a&&n.push(K.of(a)),r=(a?e.visualLineAt(a.to):i).to+1}return n.length&&e.dispatch({effects:n,reconfigure:ne(e.state)}),!!n.length}},{key:"Ctrl-Alt-]",run:function(e){var t=e.state.field(J,!1);if(!t||!t.size)return!1;var n=[];return t.between(0,e.state.doc.length,(function(e,t){n.push(G.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],ie={placeholderDOM:null,placeholderText:"\u2026"},ae=a.f.define({combine:function(e){return Object(a.m)(e,ie)}});function oe(e){var t=[J,ue];return e&&t.push(ae.of(e)),t}var se=i.b.replace({widget:new(function(e){Object(T.a)(n,e);var t=Object(_.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"ignoreEvents",value:function(){return!1}},{key:"toDOM",value:function(e){var t=e.state,n=t.facet(ae);if(n.placeholderDOM)return n.placeholderDOM();var r=document.createElement("span");return r.textContent=n.placeholderText,r.setAttribute("aria-label",t.phrase("folded code")),r.title=t.phrase("unfold"),r.className=Object(i.n)("foldPlaceholder"),r.onclick=function(t){var n=e.visualLineAt(e.posAtDOM(t.target)),r=ee(e.state,n.from,n.to);r&&e.dispatch({effects:G.of(r)}),t.preventDefault()},r}}]),n}(i.g))}),ce={openText:"\u2304",closedText:"\u203a"},le=function(e){Object(T.a)(n,e);var t=Object(_.a)(n);function n(e,r){var i;return Object(s.a)(this,n),(i=t.call(this)).config=e,i.open=r,i}return Object(c.a)(n,[{key:"eq",value:function(e){return this.config==e.config&&this.open==e.open}},{key:"toDOM",value:function(e){var t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}]),n}(A);var ue=i.d.baseTheme({$foldPlaceholder:{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},"$gutterElement.foldGutter":{padding:"0 1px",cursor:"pointer"}}),fe=n(117),de=n(66),he=n(18),pe={brackets:["(","[","{","'",'"'],before:")]}'\":;>"};var ve="()[]{}<>";function me(e){for(var t=0;t<ve.length;t+=2)if(ve.charCodeAt(t)==e)return ve.charAt(t+1);return Object(he.f)(e<128?e:e+1)}function ge(e,t){return e.languageDataAt("closeBrackets",t)[0]||pe}function be(e,t,n,r){if(e.composing)return!1;var i=e.state.selection.primary;if(r.length>2||2==r.length&&1==Object(he.c)(Object(he.b)(r,0))||t!=i.from||n!=i.to)return!1;var a=function(e,t){var n,r=ge(e,e.selection.primary.head),i=r.brackets||pe.brackets,a=Object(o.a)(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=me(Object(he.b)(s,0));if(t==s)return c==s?we(e,s,i.indexOf(s+s+s)>-1):xe(e,s,c,r.before||pe.before);if(t==c)return ke(e,s,c)}}catch(l){a.e(l)}finally{a.f()}return null}(e.state,r);return!!a&&(e.dispatch(a),!0)}var ye=[{key:"Backspace",run:function(e){var t=e.state,n=e.dispatch,r=ge(t,t.selection.primary.head).brackets||pe.brackets,i=null,s=t.changeByRange((function(e){if(e.empty){var n,s=function(e,t){var n=e.sliceString(t-2,t);return Object(he.c)(Object(he.b)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head),c=Object(o.a)(r);try{for(c.s();!(n=c.n()).done;){var l=n.value;if(l==s&&Oe(t.doc,e.head)==me(Object(he.b)(l,0)))return{changes:{from:e.head-l.length,to:e.head+l.length},range:a.d.cursor(e.head-l.length),annotations:a.l.userEvent.of("delete")}}}catch(u){c.e(u)}finally{c.f()}}return{range:i=e}}));return i||n(t.update(s,{scrollIntoView:!0})),!i}}];function Oe(e,t){var n=e.sliceString(t,t+2);return n.slice(0,Object(he.c)(Object(he.b)(n,0)))}function xe(e,t,n,r){var i=null,o=e.changeByRange((function(o){if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],range:a.d.range(o.anchor+t.length,o.head+t.length)};var s=Oe(e.doc,o.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:t+n,from:o.head},range:a.d.cursor(o.head+t.length)}:{range:i=o}}));return i?null:e.update(o,{scrollIntoView:!0,annotations:a.l.userEvent.of("input")})}function ke(e,t,n){var r=null,i=e.selection.ranges.map((function(t){return t.empty&&Oe(e.doc,t.head)==n?a.d.cursor(t.head+n.length):r=t}));return r?null:e.update({selection:a.d.create(i,e.selection.primaryIndex),scrollIntoView:!0})}function we(e,t,n){var r=null,i=e.changeByRange((function(i){if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],range:a.d.range(i.anchor+t.length,i.head+t.length)};var o=i.head,s=Oe(e.doc,o);if(s==t){if(je(e,o))return{changes:{insert:t+t,from:o},range:a.d.cursor(o+t.length)};var c=n&&e.sliceDoc(o,o+3*t.length)==t+t+t;return{range:a.d.cursor(o+t.length*(c?3:1))}}if(n&&e.sliceDoc(o-2*t.length,o)==t+t&&je(e,o-2*t.length))return{changes:{insert:t+t+t+t,from:o},range:a.d.cursor(o+t.length)};if(e.charCategorizer(o)(s)!=a.c.Word){var l=e.sliceDoc(o-1,o);if(l!=t&&e.charCategorizer(o)(l)!=a.c.Word)return{changes:{insert:t+t,from:o},range:a.d.cursor(o+t.length)}}return{range:r=i}}));return r?null:e.update(i,{scrollIntoView:!0,annotations:a.l.userEvent.of("input")})}function je(e,t){var n=e.tree.resolve(t+1);return n.parent&&n.start==t}var Se=n(35),Ce="function"==typeof String.prototype.normalize?function(e){return e.normalize("NFKD")}:function(e){return e},Ee=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,a=arguments.length>4?arguments[4]:void 0;Object(s.a)(this,e),this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?function(e){return a(Ce(e))}:Ce,this.query=this.normalize(n)}return Object(c.a)(e,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return this.buffer.charCodeAt(this.bufferPos)}},{key:"next",value:function(){for(;;){var e=this.peek();if(e<0)return this.done=!0,this;var t=String.fromCharCode(e),n=this.bufferStart+this.bufferPos;for(this.bufferPos++;;){var r=this.peek();if(r<56320||r>=57344)break;this.bufferPos++,t+=String.fromCharCode(r)}for(var i=this.normalize(t),a=0,o=n;;a++){var s=i.charCodeAt(a),c=this.match(s,o);if(c)return this.value=c,this;if(a==i.length-1)break;o==n&&a<t.length&&t.charCodeAt(a)==s&&o++}}}},{key:"match",value:function(e,t){for(var n=null,r=0;r<this.matches.length;r+=2){var i=this.matches[r],a=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?n={from:this.matches[r+1],to:t+1}:(this.matches[r]++,a=!0)),a||(this.matches.splice(r,2),r-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?n={from:t,to:t+1}:this.matches.push(1,t)),n}}]),e}(),Me=function(){function e(t,n,r){Object(s.a)(this,e),this.search=t,this.replace=n,this.caseInsensitive=r}return Object(c.a)(e,[{key:"eq",value:function(e){return this.search==e.search&&this.replace==e.replace&&this.caseInsensitive==e.caseInsensitive}},{key:"cursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;return new Ee(e,this.search,t,n,this.caseInsensitive?function(e){return e.toLowerCase()}:void 0)}},{key:"valid",get:function(){return!!this.search}}]),e}(),Pe=a.i.define(),Te=a.i.define(),_e=a.j.define({create:function(){return new De(new Me("","",!1),[])},update:function(e,t){var n,r=Object(o.a)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(Pe)?e=new De(i.value,e.panel):i.is(Te)&&(e=new De(e.query,i.value?[He]:[]))}}catch(a){r.e(a)}finally{r.f()}return e},provide:[Se.c.nFrom((function(e){return e.panel}))]}),De=function e(t,n){Object(s.a)(this,e),this.query=t,this.panel=n},Ae=i.b.mark({class:Object(i.n)("searchMatch")}),Re=i.b.mark({class:Object(i.n)("searchMatch.selected")}),Le=i.f.fromClass(function(){function e(t){Object(s.a)(this,e),this.view=t,this.decorations=this.highlight(t.state.field(_e))}return Object(c.a)(e,[{key:"update",value:function(e){var t=e.state.field(_e);(t!=e.prevState.field(_e)||e.docChanged||e.selectionSet)&&(this.decorations=this.highlight(t))}},{key:"highlight",value:function(e){var t=e.query;if(!e.panel.length||!t.valid)return i.b.none;for(var n=this.view.state,r=this.view.viewport,a=t.cursor(n.doc,Math.max(0,r.from-t.search.length),Math.min(r.to+t.search.length,n.doc.length)),o=new D.c,s=function(){var e=a.value,t=e.from,r=e.to,i=n.selection.ranges.some((function(e){return e.from==t&&e.to==r}));o.add(t,r,i?Re:Ae)};!a.next().done;)s();return o.finish()}}]),e}(),{decorations:function(e){return e.decorations}});function Ne(e){return function(t){var n=t.state.field(_e,!1);return n&&n.query.valid?e(t,n):Ve(t)}}function Ie(e,t,n){var r=n.cursor(e,t).next();return r.done&&(r=n.cursor(e,0,t+n.search.length-1).next()).done?null:r.value}var ze=Ne((function(e,t){var n=e.state.selection.primary,r=n.from,i=n.to,a=Ie(e.state.doc,e.state.selection.primary.from+1,t.query);return!(!a||a.from==r&&a.to==i)&&(e.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0}),Ge(e),!0)}));function $e(e,t,n,r){for(var i=r;;){for(var a=Math.max(n,i-1e4-e.search.length),o=e.cursor(t,a,i),s=null;!o.next().done;)s=o.value;if(s)return s;if(a==n)return null;i-=1e4}}var Fe=Ne((function(e,t){var n=t.query,r=e.state,i=$e(n,r.doc,0,r.selection.primary.to-1)||$e(n,r.doc,r.selection.primary.from+1,r.doc.length);return!!i&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),Ge(e),!0)})),Be=Ne((function(e,t){for(var n=t.query.cursor(e.state.doc),r=[];!n.next().done;)r.push(a.d.range(n.value.from,n.value.to));return!!r.length&&(e.dispatch({selection:a.d.create(r)}),!0)})),Qe=Ne((function(e,t){var n=t.query,r=e.state,i=Ie(r.doc,r.selection.primary.from,n);if(!i)return!1;var a,o=r.selection.primary,s=o.from,c=o.to,l=[];if(i.from==s&&i.to==c&&(l.push({from:i.from,to:i.to,insert:n.replace}),i=Ie(r.doc,i.to,n)),i){var u=0==l.length||l[0].from>=i.to?0:i.to-i.from-n.replace.length;a={anchor:i.from-u,head:i.to-u}}return e.dispatch({changes:l,selection:a,scrollIntoView:!!a}),i&&Ge(e),!0})),We=Ne((function(e,t){for(var n=t.query,r=n.cursor(e.state.doc),i=[];!r.next().done;){var a=r.value,o=a.from,s=a.to;i.push({from:o,to:s,insert:n.replace})}return!!i.length&&(e.dispatch({changes:i}),!0)}));function He(e){var t=e.state.field(_e).query;return{dom:Xe({view:e,query:t,updateQuery:function(n){t.eq(n)||(t=n,e.dispatch({effects:Pe.of(t)}))}}),mount:function(){this.dom.querySelector("[name=search]").select()},pos:80,style:"search"}}var Ve=function(e){var t=e.state.field(_e,!1);if(t&&t.panel.length){var n=Object(Se.a)(e,He);if(!n)return!1;n.dom.querySelector("[name=search]").focus()}else e.dispatch({effects:Te.of(!0),reconfigure:t?void 0:{append:et}});return!0},Ue=function(e){var t=e.state.field(_e,!1);if(!t||!t.panel.length)return!1;var n=Object(Se.a)(e,He);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Te.of(!1)}),!0},qe=[{key:"Mod-f",run:Ve,scope:"editor search-panel"},{key:"F3",run:ze,shift:Fe,scope:"editor search-panel"},{key:"Mod-g",run:ze,shift:Fe,scope:"editor search-panel"},{key:"Escape",run:Ue,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(e){var t=e.state,n=e.dispatch,r=t.selection;if(r.ranges.length>1||r.primary.empty)return!1;for(var i=r.primary,o=i.from,s=i.to,c=[],l=0,u=new Ee(t.doc,t.sliceDoc(o,s));!u.next().done;){if(c.length>1e3)return!1;u.value.from==o&&(l=c.length),c.push(a.d.range(u.value.from,u.value.to))}return n(t.update({selection:new a.d(c,l)})),!0}}];function Ye(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=document.createElement(e);if(t)for(var i in t){var a=t[i];"string"==typeof a?r.setAttribute(i,a):r[i]=a}var s,c=Object(o.a)(n);try{for(c.s();!(s=c.n()).done;){var l=s.value;r.appendChild("string"==typeof l?document.createTextNode(l):l)}}catch(u){c.e(u)}finally{c.f()}return r}function Xe(e){function t(t){return e.view.state.phrase(t)}var n=Ye("input",{value:e.query.search,placeholder:t("Find"),"aria-label":t("Find"),class:Object(i.n)("textfield"),name:"search",onchange:o,onkeyup:o}),r=Ye("input",{value:e.query.replace,placeholder:t("Replace"),"aria-label":t("Replace"),class:Object(i.n)("textfield"),name:"replace",onchange:o,onkeyup:o}),a=Ye("input",{type:"checkbox",name:"case",checked:!e.query.caseInsensitive,onchange:o});function o(){e.updateQuery(new Me(n.value,r.value,!a.checked))}function s(e,t,n){return Ye("button",{class:Object(i.n)("button"),name:e,onclick:t},n)}return Ye("div",{onkeydown:function(t){Object(i.m)(e.view,t,"search-panel")?t.preventDefault():13==t.keyCode&&t.target==n?(t.preventDefault(),(t.shiftKey?Fe:ze)(e.view)):13==t.keyCode&&t.target==r&&(t.preventDefault(),Qe(e.view))}},[n,s("next",(function(){return ze(e.view)}),[t("next")]),s("prev",(function(){return Fe(e.view)}),[t("previous")]),s("select",(function(){return Be(e.view)}),[t("all")]),Ye("label",null,[a,"match case"]),Ye("br"),r,s("replace",(function(){return Qe(e.view)}),[t("replace")]),s("replaceAll",(function(){return We(e.view)}),[t("replace all")]),Ye("button",{name:"close",onclick:function(){return Ue(e.view)},"aria-label":t("close")},["\xd7"]),Ye("div",{style:"position: absolute; top: -10000px","aria-live":"polite"})])}var Ke=/[\s\.,:;?!]/;function Ge(e){var t=e.state.selection.primary,n=t.from,r=t.to,i=e.state.doc.lineAt(n).from,a=e.state.doc.lineAt(r).to,o=Math.max(i,n-30),s=Math.min(a,r+30),c=e.state.sliceDoc(o,s);if(o!=i)for(var l=0;l<30;l++)if(!Ke.test(c[l+1])&&Ke.test(c[l])){c=c.slice(l);break}if(s!=a)for(var u=c.length-1;u>c.length-30;u--)if(!Ke.test(c[u-1])&&Ke.test(c[u])){c=c.slice(0,u);break}var f=Object(Se.a)(e,He);f&&f.dom.contains(e.root.activeElement)&&(f.dom.querySelector("div[aria-live]").textContent=e.state.phrase("current match")+". "+c)}var Ze,Je=i.d.baseTheme({"$panel.search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button":{margin:".2em .5em .2em 0"},"& label":{fontSize:"80%"}},"$$light $searchMatch":{backgroundColor:"#ffff0054"},"$$dark $searchMatch":{backgroundColor:"#00ffff8a"},"$$light $searchMatch.selected":{backgroundColor:"#ff6a0054"},"$$dark $searchMatch.selected":{backgroundColor:"#ff00ff8a"}}),et=[_e,Object(a.o)(Le,"override"),Object(Se.b)(),Je],tt=n(78),nt=[{key:"Mod-/",run:function(e){return rt(ot(Ze.Toggle),e)}},{key:"Alt-A",run:function(e){return rt(at(Ze.Toggle),e)}}];function rt(e,t){var n=e(t.state);return!!n&&(t.dispatch(n),!0)}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selection.primary.head;return e.languageDataAt("commentTokens",t)[0]||{}}!function(e){e[e.Toggle=0]="Toggle",e[e.OnlyComment=1]="OnlyComment",e[e.OnlyUncomment=2]="OnlyUncomment"}(Ze||(Ze={}));var at=function(e){return function(t){var n=it(t);return n.block?new st(n.block.open,n.block.close).toggle(e,t):null}},ot=function(e){return function(t){var n=it(t);return n.line?new lt(n.line).toggle(e,t):null}},st=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ";Object(s.a)(this,e),this.open=t,this.close=n,this.margin=r}return Object(c.a)(e,[{key:"toggle",value:function(e,t){var n=this,r=this.isSelectionCommented(t);if(null!==r){if(e!==Ze.OnlyComment)return t.update({changes:r.map((function(e){var t=e.open,r=e.close;return[{from:t.pos-n.open.length,to:t.pos+t.margin},{from:r.pos-r.margin,to:r.pos+n.close.length}]}))})}else if(e!==Ze.OnlyUncomment)return t.update(t.changeByRange((function(e){var t=(n.open+n.margin).length;return{changes:[{from:e.from,insert:n.open+n.margin},{from:e.to,insert:n.margin+n.close}],range:a.d.range(e.anchor+t,e.head+t)}})));return null}},{key:"isSelectionCommented",value:function(e){var t,n=[],r=Object(o.a)(e.selection.ranges);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=this.isRangeCommented(e,i);if(null===a)return null;n.push(a)}}catch(s){r.e(s)}finally{r.f()}return n}},{key:"isRangeCommented",value:function(e,t){var n,r,i=e.sliceDoc(t.from-ct,t.from),a=e.sliceDoc(t.to,t.to+ct),o=/\s*$/.exec(i)[0].length,s=/^\s*/.exec(a)[0].length,c=i.length-o;if(i.slice(c-this.open.length,c)==this.open&&a.slice(s,s+this.close.length)==this.close)return{open:{pos:t.from-o,margin:o&&1},close:{pos:t.to+s,margin:s&&1}};t.to-t.from<=2*ct?n=r=e.sliceDoc(t.from,t.to):(n=e.sliceDoc(t.from,t.from+ct),r=e.sliceDoc(t.to-ct,t.to));var l=/^\s*/.exec(n)[0].length,u=/\s*$/.exec(r)[0].length,f=r.length-u-this.close.length;return n.slice(l,l+this.open.length)==this.open&&r.slice(f,f+this.close.length)==this.close?{open:{pos:t.from+l+this.open.length,margin:/\s/.test(n.charAt(l+this.open.length))?1:0},close:{pos:t.to-u-this.close.length,margin:/\s/.test(r.charAt(f-1))?1:0}}:null}}]),e}(),ct=50,lt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";Object(s.a)(this,e),this.lineCommentToken=t,this.margin=n}return Object(c.a)(e,[{key:"toggle",value:function(e,t){for(var n=[],i={},a=0;a<t.selection.ranges.length;a++){var s=ut(t.doc,t.selection.ranges[a]);n.push.apply(n,Object(r.a)(s)),i[a]=s}var c=this.isRangeCommented(t,n);if(c.isRangeLineSkipped){if(e!=Ze.OnlyComment){for(var l=[],u=0;u<t.selection.ranges.length;u++){var f,d=i[u],h=Object(o.a)(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;if(!(d.length>1&&c.isLineSkipped[p.number])){var v=p.from+c.minCol,m=c.minCol+this.lineCommentToken.length,g=" "==p.slice(m,m+1)?1:0;l.push({from:v,to:v+this.lineCommentToken.length+g})}}}catch(j){h.e(j)}finally{h.f()}}return t.update({changes:l})}}else if(e!=Ze.OnlyUncomment){for(var b=[],y=0;y<t.selection.ranges.length;y++){var O,x=i[y],k=Object(o.a)(x);try{for(k.s();!(O=k.n()).done;){var w=O.value;(x.length<=1||!c.isLineSkipped[w.number])&&b.push({from:w.from+c.minCol,insert:this.lineCommentToken+this.margin})}}catch(j){k.e(j)}finally{k.f()}}return t.update({changes:b})}return null}},{key:"isRangeCommented",value:function(e,t){var n,r=1/0,i=!0,a=[],s=Object(o.a)(t);try{for(s.s();!(n=s.n()).done;){var c=n.value,l=c.slice(0,Math.min(c.length,ct)),u=/^\s*/.exec(l)[0].length;(1==t.length||u<l.length)&&u<r&&(r=u),i&&(1==t.length||u<l.length)&&l.slice(u,u+this.lineCommentToken.length)!=this.lineCommentToken&&(i=!1),a[c.number]=u==l.length}}catch(f){s.e(f)}finally{s.f()}return{minCol:r,isRangeLineSkipped:i,isLineSkipped:a}}}]),e}();function ut(e,t){for(var n=e.lineAt(t.from),r=[];(n.from+n.length<t.to||n.from<=t.to&&t.to<=n.to)&&(r.push(n),n.number+1<=e.lines);)n=e.line(n.number+1);return r}var ft=2e3;function dt(e,t){var n=e.posAtCoords({x:t.clientX,y:t.clientY}),r=e.state.doc.lineAt(n),i=n-r.from,a=i>ft?-1:i==r.length?function(e,t){var n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):Object(he.d)(r.slice(0,n-r.from),0,e.state.tabSize);return{line:r.number,col:a,off:i}}function ht(e,t){var n=dt(e,t),r=e.state.selection;return{update:function(e){if(e.docChanged){var t=e.changes.mapPos(e.prevState.doc.line(n.line).from),i=e.state.doc.lineAt(t);n={line:i.number,col:n.col,off:Math.min(n.off,i.length)},r=r.map(e.changes)}},get:function(t,i,o){var s=dt(e,t),c=function(e,t,n){var r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),o=[];if(t.off>ft||n.off>ft||t.col<0||n.col<0)for(var s=Math.min(t.off,n.off),c=Math.max(t.off,n.off),l=r;l<=i;l++){var u=e.doc.line(l);u.length<=c&&o.push(a.d.range(u.from+s,u.to+c))}else for(var f=Math.min(t.col,n.col),d=Math.max(t.col,n.col),h=r;h<=i;h++){var p=e.doc.line(h),v=p.length>ft?p.slice(0,2*d):p.slice(),m=Object(he.e)(v,0,f,e.tabSize),g=Object(he.e)(v,0,d,e.tabSize);m.leftOver||o.push(a.d.range(p.from+m.offset,p.from+g.offset))}return o}(e.state,n,s);return c.length?o?a.d.create(c.concat(r.ranges)):a.d.create(c):r}}}var pt=n(13),vt="undefined"==typeof Symbol?"__goto-line":Symbol("goto-line");function mt(e){var t=document.createElement("form");t.innerHTML="<label>".concat(e.state.phrase("Go to line:")," <input class=").concat(Object(i.n)("textfield")," name=line></label>\n<button class=").concat(Object(i.n)("button")," type=submit>").concat(e.state.phrase("go"),"</button>");var n=t.querySelector("input");function r(){var t=parseInt(n.value,10);e.dispatch({reconfigure:Object(pt.a)({},vt,[gt]),selection:!isNaN(t)&&t>0&&t<=e.state.doc.lines?a.d.cursor(e.state.doc.line(t).from):void 0,scrollIntoView:!0}),e.focus()}return t.addEventListener("keydown",(function(t){27==t.keyCode?(t.preventDefault(),e.dispatch({reconfigure:{append:[gt]}}),e.focus()):13==t.keyCode&&(t.preventDefault(),r())})),t.addEventListener("submit",r),{dom:t,style:"gotoLine",pos:-10}}var gt=i.d.baseTheme({"$panel.gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),bt=[{key:"Alt-g",run:function(e){var t=Object(Se.a)(e,mt);return t||(e.dispatch({reconfigure:{append:[Object(Se.b)(),Se.c.of(mt),gt]}}),t=Object(Se.a)(e,mt)),t&&t.dom.querySelector("input").focus(),!0}}];var yt=i.b.line({attributes:{class:Object(i.n)("activeLine")}}),Ot=i.f.fromClass(function(){function e(t){Object(s.a)(this,e),this.decorations=this.getDeco(t)}return Object(c.a)(e,[{key:"update",value:function(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t,n=-1,r=[],a=Object(o.a)(e.state.selection.ranges);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(s.empty){var c=e.visualLineAt(s.head);c.from>n&&(r.push(yt.range(c.from)),n=c.from)}}}catch(l){a.e(l)}finally{a.f()}return i.b.set(r)}}]),e}(),{decorations:function(e){return e.decorations}}),xt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100},kt=a.f.define({combine:function(e){return Object(a.m)(e,xt,{highlightWordAroundCursor:function(e,t){return e||t},minSelectionLength:Math.min,maxMatches:Math.min})}});var wt=i.b.mark({class:Object(i.n)("selectionMatch")}),jt=i.b.mark({class:Object(i.n)("selectionMatch.main")}),St=i.f.fromClass(function(){function e(t){Object(s.a)(this,e),this.decorations=this.getDeco(t)}return Object(c.a)(e,[{key:"update",value:function(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t=e.state.facet(kt),n=e.state,r=n.selection;if(r.ranges.length>1)return i.b.none;var s,c=r.primary,l=null;if(c.empty){if(!t.highlightWordAroundCursor)return i.b.none;if(l=n.charCategorizer(c.head),!(s=function(e,t,n){for(var r=e.lineAt(t),i=t-r.from,o=t-r.from;i>0;){var s=r.findClusterBreak(i,!1);if(n(r.slice(s,i))!=a.c.Word)break;i=s}for(;o<r.length;){var c=r.findClusterBreak(o,!0);if(n(r.slice(o,c))!=a.c.Word)break;o=c}return i==o?null:r.slice(i,o)}(n.doc,c.head,l)))return i.b.none}else{var u=c.to-c.from;if(u<t.minSelectionLength||u>200)return i.b.none;if(!(s=n.sliceDoc(c.from,c.to).trim()))return i.b.none}var f,d=[],h=Object(o.a)(e.visibleRanges);try{for(h.s();!(f=h.n()).done;)for(var p=f.value,v=new Ee(n.doc,s,p.from,p.to);!v.next().done;){var m=v.value,g=m.from,b=m.to;if((!l||(0==g||l(n.sliceDoc(g-1,g))!=a.c.Word)&&(b==n.doc.length||l(n.sliceDoc(b,b+1))!=a.c.Word))&&(l&&g<=c.from&&b>=c.to?d.push(jt.range(g,b)):(g>=c.to||b<=c.from)&&d.push(wt.range(g,b)),d.length>t.maxMatches))return i.b.none}}catch(y){h.e(y)}finally{h.f()}return i.b.set(d)}}]),e}(),{decorations:function(e){return e.decorations}}),Ct=i.d.baseTheme({"$$light $activeLine":{backgroundColor:"#eff5ff"},"$$dark $activeLine":{backgroundColor:"#223039"},$selectionMatch:{backgroundColor:"#99ff7780"},"$searchMatch $selectionMatch":{backgroundColor:"transparent"}}),Et=n(118),Mt=n(119),Pt=[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[V.of(e),q]}(),Object(i.i)(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[h,d.of(e)]}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},ce),e),n=new le(t,!0),r=new le(t,!1);return[N({style:"foldGutter",lineMarker:function(e,t){return ee(e.state,t.from,t.to)?r:te(e.state,t.from,t.to)?n:null},initialSpacer:function(){return new le(t,!1)},domEventHandlers:{click:function(e,t){var n=ee(e.state,t.from,t.to);if(n)return e.dispatch({effects:G.of(n)}),!0;var r=te(e.state,t.from,t.to);return!!r&&(e.dispatch({effects:K.of(r)}),!0)}}}),oe()]}(),Object(i.h)(),a.e.allowMultipleSelections.of(!0),Object(i.j)(),Et.a,Object(de.a)(),i.d.inputHandler.of(be),Object(tt.a)(),function(e){var t=e||function(e){return e.altKey&&0==e.button};return i.d.mouseSelectionStyle.of((function(e,n){return t(n)?ht(e,n):null}))}(),[Ct,Ot],function(e){var t=[Ct,St];return e&&t.push(kt.of(e)),t}(),Object(i.k)([].concat(Object(r.a)(ye),Object(r.a)(fe.a),Object(r.a)(qe),Object(r.a)(P),Object(r.a)(re),Object(r.a)(nt),Object(r.a)(bt),Object(r.a)(tt.b),Object(r.a)(Mt.a)))]},function(e,t,n){"use strict";var r=n(87),i=n.n(r),a=n(1),o=function(e){return e&&e.enabled&&e.modifierKey},s=function(e,t){return e&&t[e+"Key"]},c=function(e,t){return e&&!t[e+"Key"]};function l(e,t,n){return void 0===e||("string"===typeof e?-1!==e.indexOf(t):"function"===typeof e&&-1!==e({chart:n}).indexOf(t))}function u(e,t,n){var r=function(e,t){for(var n=e.x,r=e.y,i=t.scales,a=Object.keys(i),o=0;o<a.length;o++){var s=i[a[o]];if(r>=s.top&&r<=s.bottom&&n>=s.left&&n<=s.right)return s}return null}(t,n);if(r&&l(e,r.axis,n))return[r];var i=[];return Object(a.c)(n.scales,(function(t){l(e,t.axis,n)||i.push(t)})),i}var f=new WeakMap;function d(e){var t=f.get(e);return t||(t={originalScaleLimits:{},updatedScaleLimits:{},handlers:{},panDelta:{}},f.set(e,t)),t}function h(e,t,n){var r=e.max-e.min,i=r*(t-1),a=e.isHorizontal()?n.x:n.y,o=(e.getValueForPixel(a)-e.min)/r||0;return{min:i*o,max:i*(1-o)}}function p(e,t,n,r,i){var o=n[r];if("original"===o){var s=e.originalScaleLimits[t.id][r];o=Object(a.Pb)(s.options,s.scale)}return Object(a.Pb)(o,i)}function v(e,t,n){var r=t.min,i=t.max,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=d(e.chart),s=e.id,c=e.axis,l=e.options,u=n&&(n[s]||n[c])||{},f=u.minRange,h=void 0===f?0:f,v=p(o,e,u,"min",-1/0),m=p(o,e,u,"max",1/0),g=Math.max(r,v),b=Math.min(i,m),y=a?Math.max(b-g,h):e.max-e.min;if(b-g!==y)if(v>b-y)r=g,i=g+y;else if(m<g+y)i=b,r=b-y;else{var O=(y-b+g)/2;r=g-O,i=b+O}else r=g,i=b;return l.min=r,l.max=i,o.updatedScaleLimits[e.id]={min:r,max:i},e.parse(r)!==e.min||e.parse(i)!==e.max}var m=function(e){return 0===e||isNaN(e)?0:e<0?Math.min(Math.round(e),-1):Math.max(Math.round(e),1)};var g={second:500,minute:3e4,hour:18e5,day:432e5,week:3024e5,month:1296e6,quarter:5184e6,year:157248e5};function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e.min,a=e.max,o=e.options,s=o.time&&o.time.round,c=g[s]||0,l=e.getValueForPixel(e.getPixelForValue(i+c)-t),u=e.getValueForPixel(e.getPixelForValue(a+c)-t),f=r&&n&&n[e.axis]||{},d=f.min,h=void 0===d?-1/0:d,p=f.max,m=void 0===p?1/0:p;return!!(isNaN(l)||isNaN(u)||l<h||u>m)||v(e,{min:l,max:u},n,r)}function y(e,t,n){return b(e,t,n,!0)}var O={category:function(e,t,n,r){var i=h(e,t,n);return e.min===e.max&&t<1&&function(e){var t=e.getLabels().length-1;e.min>0&&(e.min-=1),e.max<t&&(e.max+=1)}(e),v(e,{min:e.min+m(i.min),max:e.max-m(i.max)},r,!0)},default:function(e,t,n,r){var i=h(e,t,n);return v(e,{min:e.min+i.min,max:e.max-i.max},r,!0)}},x={category:function(e,t,n){var r,i=e.getLabels().length-1,a=e.min,o=e.max,s=Math.max(o-a,1),c=Math.round(function(e){return e.isHorizontal()?e.width:e.height}(e)/Math.max(s,10)),l=Math.round(Math.abs(t/c));return t<-c?(o=Math.min(o+l,i),a=1===s?o:o-s,r=o===i):t>c&&(a=Math.max(0,a-l),o=1===s?a:a+s,r=0===a),v(e,{min:a,max:o},n)||r},default:b,logarithmic:y,timeseries:y};function k(e,t){Object(a.c)(e,(function(n,r){t[r]||delete e[r]}))}function w(e,t){var n=e.scales,r=t.originalScaleLimits,i=t.updatedScaleLimits;return Object(a.c)(n,(function(e){(function(e,t,n){var r=e.id,i=e.options,a=i.min,o=i.max;if(!t[r]||!n[r])return!0;var s=n[r];return s.min!==a||s.max!==o})(e,r,i)&&(r[e.id]={min:{scale:e.min,options:e.options.min},max:{scale:e.max,options:e.options.max}})})),k(r,n),k(i,n),r}function j(e,t,n,r){var i=O[e.type]||O.default;Object(a.n)(i,[e,t,n,r])}function S(e){var t=e.chartArea;return{x:(t.left+t.right)/2,y:(t.top+t.bottom)/2}}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none",r="number"===typeof t?{x:t,y:t}:t,i=r.x,o=void 0===i?1:i,s=r.y,c=void 0===s?1:s,f=r.focalPoint,h=void 0===f?S(e):f,p=d(e),v=p.options,m=v.limits,g=v.zoom,b=g||{},y=b.mode,O=void 0===y?"xy":y,x=b.overScaleMode;w(e,p);var k=1!==o&&l(O,"x",e),C=1!==c&&l(O,"y",e),E=x&&u(x,h,e);Object(a.c)(E||e.scales,(function(e){e.isHorizontal()&&k?j(e,o,h,m):!e.isHorizontal()&&C&&j(e,c,h,m)})),e.update(n),Object(a.n)(g.onZoom,[{chart:e}])}function E(e,t,n){var r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function M(e){var t=d(e),n=1,r=1;return Object(a.c)(e.scales,(function(e){var i=function(e,t){var n=e.originalScaleLimits[t];if(n){var r=n.min,i=n.max;return Object(a.Pb)(i.options,i.scale)-Object(a.Pb)(r.options,r.scale)}}(t,e.id);if(i){var o=Math.round(i/(e.max-e.min)*100)/100;n=Math.min(n,o),r=Math.max(r,o)}})),n<1?n:r}function P(e,t,n,r){var i=r.panDelta,o=i[e.id]||0;Object(a.Mb)(o)===Object(a.Mb)(t)&&(t+=o);var s=x[e.type]||x.default;Object(a.n)(s,[e,t,n])?i[e.id]=0:i[e.id]=t}function T(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i="number"===typeof t?{x:t,y:t}:t,o=i.x,s=void 0===o?0:o,c=i.y,u=void 0===c?0:c,f=d(e),h=f.options,p=h.pan,v=h.limits,m=p||{},g=m.mode,b=void 0===g?"xy":g,y=m.onPan;w(e,f);var O=0!==s&&l(b,"x",e),x=0!==u&&l(b,"y",e);Object(a.c)(n||e.scales,(function(e){e.isHorizontal()&&O?P(e,s,v,f):!e.isHorizontal()&&x&&P(e,u,v,f)})),e.update(r),Object(a.n)(y,[{chart:e}])}function _(e,t){var n=d(e).handlers,r=n[t];r&&r.target&&(r.target.removeEventListener(t,r),delete n[t])}function D(e,t,n,r){var i=d(e),a=i.handlers,o=i.options;_(e,n),a[n]=function(t){return r(e,t,o)},a[n].target=t,t.addEventListener(n,a[n])}function A(e,t){var n=d(e);n.dragStart&&(n.dragging=!0,n.dragEnd=t,e.update("none"))}function R(e,t,n){var r=n.onZoomStart,i=n.onZoomRejected;if(r){var o=t.target.getBoundingClientRect(),s=o.left,c=o.top,l={x:t.clientX-s,y:t.clientY-c};if(!1===Object(a.n)(r,[{chart:e,event:t,point:l}]))return Object(a.n)(i,[{chart:e,event:t}]),!1}}function L(e,t){var n=d(e),r=n.options,i=r.pan,l=r.zoom,u=void 0===l?{}:l;if(s(o(i),t)||c(o(u.drag),t))return Object(a.n)(u.onZoomRejected,[{chart:e,event:t}]);!1!==R(e,t,u)&&(n.dragStart=t,D(e,e.canvas,"mousemove",A))}function N(e,t,n,r){var i=n.target.getBoundingClientRect(),a=i.left,o=i.top,s=l(t,"x",e),c=l(t,"y",e),u=e.chartArea,f=u.top,d=u.left,h=u.right,p=u.bottom,v=u.width,m=u.height;s&&(d=Math.min(n.clientX,r.clientX)-a,h=Math.max(n.clientX,r.clientX)-a),c&&(f=Math.min(n.clientY,r.clientY)-o,p=Math.max(n.clientY,r.clientY)-o);var g=h-d,b=p-f;return{left:d,top:f,right:h,bottom:p,width:g,height:b,zoomX:s&&g?1+(v-g)/v:1,zoomY:c&&b?1+(m-b)/m:1}}function I(e,t){var n=d(e);if(n.dragStart){_(e,"mousemove");var r=n.options.zoom,i=r.mode,o=r.onZoomComplete,s=r.drag.threshold,c=void 0===s?0:s,u=N(e,i,n.dragStart,t),f=l(i,"x",e)?u.width:0,h=l(i,"y",e)?u.height:0,p=Math.sqrt(f*f+h*h);if(n.dragStart=n.dragEnd=null,p<=c)return n.dragging=!1,void e.update("none");!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none",i=d(e),o=i.options,s=o.limits,c=o.zoom,u=c.mode,f=void 0===u?"xy":u;w(e,i);var h=l(f,"x",e),p=l(f,"y",e);Object(a.c)(e.scales,(function(e){e.isHorizontal()&&h?v(e,E(e,t.x,n.x),s,!0):!e.isHorizontal()&&p&&v(e,E(e,t.y,n.y),s,!0)})),e.update(r),Object(a.n)(c.onZoom,[{chart:e}])}(e,{x:u.left,y:u.top},{x:u.right,y:u.bottom},"zoom"),setTimeout((function(){return n.dragging=!1}),500),Object(a.n)(o,[{chart:e}])}}function z(e,t){var n=d(e),r=n.handlers.onZoomComplete,i=n.options.zoom;if(function(e,t,n){if(c(o(n.wheel),t))Object(a.n)(n.onZoomRejected,[{chart:e,event:t}]);else if(!1!==R(e,t,n)&&(t.cancelable&&t.preventDefault(),void 0!==t.deltaY))return!0}(e,t,i)){var s=t.target.getBoundingClientRect(),l=1+(t.deltaY>=0?-i.wheel.speed:i.wheel.speed);C(e,{x:l,y:l,focalPoint:{x:t.clientX-s.left,y:t.clientY-s.top}}),r&&r()}}function $(e,t,n,r){n&&(d(e).handlers[t]=function(e,t){var n;return function(){return clearTimeout(n),n=setTimeout(e,t),t}}((function(){return Object(a.n)(n,[{chart:e}])}),r))}function F(e,t){return function(n,r){var i=t.options,l=i.pan,u=i.zoom,f=void 0===u?{}:u;if(!l||!l.enabled)return!1;var d=r&&r.srcEvent;return!d||(!(!t.panning&&"mouse"===r.pointerType&&(c(o(l),d)||s(o(f.drag),d)))||(Object(a.n)(l.onPanRejected,[{chart:e,event:r}]),!1))}}function B(e,t,n){if(t.scale){var r=n.center,i=n.pointers,a=1/t.scale*n.scale,o=n.target.getBoundingClientRect(),s=function(e,t){var n,r,i=Math.abs(e.clientX-t.clientX),a=Math.abs(e.clientY-t.clientY),o=i/a;return o>.3&&o<1.7?n=r=!0:i>a?n=!0:r=!0,{x:n,y:r}}(i[0],i[1]),c=t.options.zoom.mode;C(e,{x:s.x&&l(c,"x",e)?a:1,y:s.y&&l(c,"y",e)?a:1,focalPoint:{x:r.x-o.left,y:r.y-o.top}}),t.scale=n.scale}}function Q(e,t,n){var r=t.delta;r&&(t.panning=!0,T(e,{x:n.deltaX-r.x,y:n.deltaY-r.y},t.panScales),t.delta={x:n.deltaX,y:n.deltaY})}var W=new WeakMap;function H(e,t){var n=d(e),r=e.canvas,o=t.pan,s=t.zoom,c=new i.a.Manager(r);s&&s.pinch.enabled&&(c.add(new i.a.Pinch),c.on("pinchstart",(function(){return function(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}(0,n)})),c.on("pinch",(function(t){return B(e,n,t)})),c.on("pinchend",(function(t){return function(e,t,n){t.scale&&(B(e,t,n),t.scale=null,Object(a.n)(t.options.zoom.onZoomComplete,[{chart:e}]))}(e,n,t)}))),o&&o.enabled&&(c.add(new i.a.Pan({threshold:o.threshold,enable:F(e,n)})),c.on("panstart",(function(t){return function(e,t,n){var r=t.options.pan,i=r.enabled,o=r.overScaleMode,s=r.onPanStart,c=r.onPanRejected;if(i){var l=n.target.getBoundingClientRect(),f={x:n.center.x-l.left,y:n.center.y-l.top};if(!1===Object(a.n)(s,[{chart:e,event:n,point:f}]))return Object(a.n)(c,[{chart:e,event:n}]);t.panScales=o&&u(o,f,e),t.delta={x:0,y:0},clearTimeout(t.panEndTimeout),Q(e,t,n)}}(e,n,t)})),c.on("panmove",(function(t){return Q(e,n,t)})),c.on("panend",(function(){return function(e,t){t.delta=null,t.panning&&(t.panEndTimeout=setTimeout((function(){return t.panning=!1}),500),Object(a.n)(t.options.pan.onPanComplete,[{chart:e}]))}(e,n)}))),W.set(e,c)}var V={id:"zoom",version:"1.1.1",defaults:{pan:{enabled:!1,mode:"xy",threshold:10,modifierKey:null},zoom:{wheel:{enabled:!1,speed:.1,modifierKey:null},drag:{enabled:!1,modifierKey:null},pinch:{enabled:!1},mode:"xy"}},start:function(e,t,n){d(e).options=n,Object.prototype.hasOwnProperty.call(n.zoom,"enabled")&&console.warn("The option `zoom.enabled` is no longer supported. Please use `zoom.wheel.enabled`, `zoom.drag.enabled`, or `zoom.pinch.enabled`."),i.a&&H(e,n),e.pan=function(t,n,r){return T(e,t,n,r)},e.zoom=function(t,n){return C(e,t,n)},e.zoomScale=function(t,n,r){return function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";w(e,d(e)),v(e.scales[t],n,void 0,!0),e.update(r)}(e,t,n,r)},e.resetZoom=function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=d(e),r=w(e,n);Object(a.c)(e.scales,(function(e){var t=e.options;r[e.id]?(t.min=r[e.id].min.options,t.max=r[e.id].max.options):(delete t.min,delete t.max)})),e.update(t),Object(a.n)(n.options.zoom.onZoomComplete,[{chart:e}])}(e,t)},e.getZoomLevel=function(){return M(e)}},beforeEvent:function(e){var t=d(e);if(t.panning||t.dragging)return!1},beforeUpdate:function(e,t,n){d(e).options=n,function(e,t){var n=e.canvas,r=t.zoom,i=r.wheel,a=r.drag,o=r.onZoomComplete;i.enabled?(D(e,n,"wheel",z),$(e,"onZoomComplete",o,250)):_(e,"wheel"),a.enabled?(D(e,n,"mousedown",L),D(e,n.ownerDocument,"mouseup",I)):(_(e,"mousedown"),_(e,"mousemove"),_(e,"mouseup"))}(e,n)},beforeDatasetsDraw:function(e,t,n){var r=d(e),i=r.dragStart,a=r.dragEnd;if(a){var o=N(e,n.zoom.mode,i,a),s=o.left,c=o.top,l=o.width,u=o.height,f=n.zoom.drag,h=e.ctx;h.save(),h.beginPath(),h.fillStyle=f.backgroundColor||"rgba(225,225,225,0.3)",h.fillRect(s,c,l,u),f.borderWidth>0&&(h.lineWidth=f.borderWidth,h.strokeStyle=f.borderColor||"rgba(225,225,225)",h.strokeRect(s,c,l,u)),h.restore()}},stop:function(e){!function(e){_(e,"mousedown"),_(e,"mousemove"),_(e,"mouseup"),_(e,"wheel"),_(e,"click")}(e),i.a&&function(e){var t=W.get(e);t&&(t.remove("pinchstart"),t.remove("pinch"),t.remove("pinchend"),t.remove("panstart"),t.remove("pan"),t.remove("panend"),t.destroy(),W.delete(e))}(e),function(e){f.delete(e)}(e)},panFunctions:x,zoomFunctions:O};t.a=V},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),i=n.n(r),a=n(25),o=n(46);o.a.register.apply(o.a,Object(a.a)(o.d));var s=o.a,c=n(186),l=n.n(c),u=n(123),f=n.n(u),d=n(187),h=n.n(d);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}var m=Object(r.forwardRef)((function(e,t){var n=e.id,a=e.className,o=e.height,c=void 0===o?150:o,u=e.width,d=void 0===u?300:u,m=e.redraw,g=void 0!==m&&m,b=e.type,y=e.data,O=e.options,x=void 0===O?{}:O,k=e.plugins,w=void 0===k?[]:k,j=e.getDatasetAtEvent,S=e.getElementAtEvent,C=e.getElementsAtEvent,E=e.fallbackContent,M=v(e,["id","className","height","width","redraw","type","data","options","plugins","getDatasetAtEvent","getElementAtEvent","getElementsAtEvent","fallbackContent"]),P=Object(r.useRef)(null),T=Object(r.useMemo)((function(){return"function"===typeof y?P.current?y(P.current):{}:l()({},y)}),[y,P.current]),_=Object(r.useState)(),D=_[0],A=_[1];Object(r.useImperativeHandle)(t,(function(){return D}),[D]);var R=function(){P.current&&A(new s(P.current,{type:b,data:T,options:x,plugins:w}))},L=function(){D&&D.destroy()};return Object(r.useEffect)((function(){return R(),function(){return L()}}),[]),Object(r.useEffect)((function(){g?(L(),setTimeout((function(){R()}),0)):function(){if(D){if(x&&(D.options=p({},x)),!D.config.data)return D.config.data=T,void D.update();var e=T.datasets,t=void 0===e?[]:e,n=v(T,["datasets"]),r=D.config.data.datasets,i=void 0===r?[]:r;f()(D.config.data,n),D.config.data.datasets=t.map((function(e){var t=h()(i,(function(t){return t.label===e.label&&t.type===e.type}));return t&&e.data?(t.data?t.data.length=e.data.length:t.data=[],f()(t.data,e.data),f()(t,p({},e,{data:t.data})),t):p({},e)})),D.update()}}()}),[e,T]),i.a.createElement("canvas",Object.assign({},M,{height:c,width:d,ref:P,id:n,className:a,onClick:function(e){D&&(j&&j(D.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1),e),S&&S(D.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),e),C&&C(D.getElementsAtEventForMode(e,"index",{intersect:!0},!1),e))},"data-testid":"canvas",role:"img"}),E)})),g=Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"line",ref:t,options:e.options||{}}))}));Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"bar",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"radar",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"doughnut",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"polarArea",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"bubble",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"pie",ref:t,options:e.options||{}}))})),Object(r.forwardRef)((function(e,t){return i.a.createElement(m,Object.assign({},e,{type:"scatter",ref:t,options:e.options||{}}))})),o.c,o.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n.n(r),a=n(109);function o(){return i.a.useContext(a.a)}},function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),c=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,l=void 0===c?"div":c,u=e.square,f=void 0!==u&&u,d=e.elevation,h=void 0===d?1:d,p=e.variant,v=void 0===p?"elevation":p,m=Object(r.a)(e,["classes","className","component","square","elevation","variant"]);return a.createElement(l,Object(i.a)({className:Object(o.a)(n.root,s,"outlined"===v?n.outlined:n["elevation".concat(h)],!f&&n.rounded),ref:t},m))}));t.a=Object(s.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(i.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(17),l=a.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.color,f=void 0===u?"inherit":u,d=e.component,h=void 0===d?"svg":d,p=e.fontSize,v=void 0===p?"default":p,m=e.htmlColor,g=e.titleAccess,b=e.viewBox,y=void 0===b?"0 0 24 24":b,O=Object(i.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return a.createElement(h,Object(r.a)({className:Object(o.a)(s.root,l,"inherit"!==f&&s["color".concat(Object(c.a)(f))],"default"!==v&&s["fontSize".concat(Object(c.a)(v))]),focusable:"false",viewBox:y,color:m,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},O),n,g?a.createElement("title",null,g):null)}));l.muiName="SvgIcon",t.a=Object(s.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(22),l=n(96),u=n(17),f=a.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,c=e.children,f=e.classes,d=e.className,h=e.color,p=void 0===h?"default":h,v=e.disabled,m=void 0!==v&&v,g=e.disableFocusRipple,b=void 0!==g&&g,y=e.size,O=void 0===y?"medium":y,x=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.createElement(l.a,Object(r.a)({className:Object(o.a)(f.root,d,"default"!==p&&f["color".concat(Object(u.a)(p))],m&&f.disabled,"small"===O&&f["size".concat(Object(u.a)(O))],{start:f.edgeStart,end:f.edgeEnd}[s]),centerRipple:!0,focusRipple:!b,disabled:m,ref:t},x),a.createElement("span",{className:f.label},c))}));t.a=Object(s.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(c.c)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(f)},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n(128);var r=n(0),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,u=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!c.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:u,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},function(e,t,n){"use strict";var r=n(128),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,c=60112;t.Suspense=60113;var l=60115,u=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),s=f("react.context"),c=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),u=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function m(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var y=b.prototype=new g;y.constructor=b,r(y,m.prototype),y.isPureReactComponent=!0;var O={current:null},x=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function w(e,t,n){var r,a={},o=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===a[r]&&(a[r]=c[r]);return{$$typeof:i,type:e,key:o,ref:s,props:a,_owner:O.current}}function j(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var S=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var c=!1;if(null===e)c=!0;else switch(s){case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case i:case a:c=!0}}if(c)return o=o(c=e),e=""===r?"."+C(c,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),E(o,t,n,"",(function(e){return e}))):null!=o&&(j(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||c&&c.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(c=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var u=r+C(s=e[l],l);c+=E(s,t,n,u,o)}else if("function"===typeof(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=u.call(e),l=0;!(s=e.next()).done;)c+=E(s=s.value,t,n,u=r+C(s,l++),o);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return c}function M(e,t,n){if(null==e)return e;var r=[],i=0;return E(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var T={current:null};function _(){var e=T.current;if(null===e)throw Error(h(321));return e}var D={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:M,forEach:function(e,t,n){M(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!j(e))throw Error(h(143));return e}},t.Component=m,t.PureComponent=b,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var a=r({},e.props),o=e.key,s=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,c=O.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)x.call(t,u)&&!k.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){l=Array(u);for(var f=0;f<u;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=w,t.createFactory=function(e){var t=w.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return _().useCallback(e,t)},t.useContext=function(e,t){return _().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return _().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return _().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return _().useLayoutEffect(e,t)},t.useMemo=function(e,t){return _().useMemo(e,t)},t.useReducer=function(e,t,n){return _().useReducer(e,t,n)},t.useRef=function(e){return _().useRef(e)},t.useState=function(e){return _().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";var r=n(0),i=n(128),a=n(227);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var s=new Set,c={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(c[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},v={};function m(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var b=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function O(e,t,n,r){var i=g.hasOwnProperty(t)?g[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(p,e)&&(d.test(e)?v[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(b,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,w=60106,j=60107,S=60108,C=60114,E=60109,M=60110,P=60112,T=60113,_=60120,D=60115,A=60116,R=60121,L=60128,N=60129,I=60130,z=60131;if("function"===typeof Symbol&&Symbol.for){var $=Symbol.for;k=$("react.element"),w=$("react.portal"),j=$("react.fragment"),S=$("react.strict_mode"),C=$("react.profiler"),E=$("react.provider"),M=$("react.context"),P=$("react.forward_ref"),T=$("react.suspense"),_=$("react.suspense_list"),D=$("react.memo"),A=$("react.lazy"),R=$("react.block"),$("react.scope"),L=$("react.opaque.id"),N=$("react.debug_trace_mode"),I=$("react.offscreen"),z=$("react.legacy_hidden")}var F,B="function"===typeof Symbol&&Symbol.iterator;function Q(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var H=!1;function V(e,t){if(!e||H)return"";H=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=s);break}}}finally{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function U(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function q(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case w:return"Portal";case C:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case _:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case M:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case D:return q(e.type);case R:return q(e._render);case A:t=e._payload,e=e._init;try{return q(e(t))}catch(n){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=X(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&O(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ce(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function le(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ue(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,me,ge=(me=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function be(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Oe=["Webkit","ms","Moz","O"];function xe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=xe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(ye).forEach((function(e){Oe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var we=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function je(e,t){if(t){if(we[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Ce(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Me=null,Pe=null;function Te(e){if(e=ei(e)){if("function"!==typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=ni(t),Ee(e.stateNode,e.type,t))}}function _e(e){Me?Pe?Pe.push(e):Pe=[e]:Me=e}function De(){if(Me){var e=Me,t=Pe;if(Pe=Me=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Re(e,t,n,r,i){return e(t,n,r,i)}function Le(){}var Ne=Ae,Ie=!1,ze=!1;function $e(){null===Me&&null===Pe||(Le(),De())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Be=!1;if(f)try{var Qe={};Object.defineProperty(Qe,"passive",{get:function(){Be=!0}}),window.addEventListener("test",Qe,Qe),window.removeEventListener("test",Qe,Qe)}catch(me){Be=!1}function We(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(u){this.onError(u)}}var He=!1,Ve=null,Ue=!1,qe=null,Ye={onError:function(e){He=!0,Ve=e}};function Xe(e,t,n,r,i,a,o,s,c){He=!1,Ve=null,We.apply(Ye,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ze(e){if(Ke(e)!==e)throw Error(o(188))}function Je(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Ze(i),e;if(a===r)return Ze(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,c=i.child;c;){if(c===n){s=!0,n=i,r=a;break}if(c===r){s=!0,r=i,n=a;break}c=c.sibling}if(!s){for(c=a.child;c;){if(c===n){s=!0,n=a,r=i;break}if(c===r){s=!0,r=a,n=i;break}c=c.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],st=null,ct=null,lt=null,ut=new Map,ft=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ct=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function mt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=ei(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function gt(e){var t=Jr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function bt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){bt(e)&&n.delete(t)}function Ot(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==st&&bt(st)&&(st=null),null!==ct&&bt(ct)&&(ct=null),null!==lt&&bt(lt)&&(lt=null),ut.forEach(yt),ft.forEach(yt)}function xt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ot)))}function kt(e){function t(t){return xt(t,e)}if(0<ot.length){xt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&xt(st,e),null!==ct&&xt(ct,e),null!==lt&&xt(lt,e),ut.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)gt(n),null===n.blockedOn&&dt.shift()}function wt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var jt={animationend:wt("Animation","AnimationEnd"),animationiteration:wt("Animation","AnimationIteration"),animationstart:wt("Animation","AnimationStart"),transitionend:wt("Transition","TransitionEnd")},St={},Ct={};function Et(e){if(St[e])return St[e];if(!jt[e])return e;var t,n=jt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ct)return St[e]=n[t];return e}f&&(Ct=document.createElement("div").style,"AnimationEvent"in window||(delete jt.animationend.animation,delete jt.animationiteration.animation,delete jt.animationstart.animation),"TransitionEvent"in window||delete jt.transitionend.transition);var Mt=Et("animationend"),Pt=Et("animationiteration"),Tt=Et("animationstart"),_t=Et("transitionend"),Dt=new Map,At=new Map,Rt=["abort","abort",Mt,"animationEnd",Pt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",_t,"transitionEnd","waiting","waiting"];function Lt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),At.set(r,t),Dt.set(r,i),l(i,[r])}}(0,a.unstable_now)();var Nt=8;function It(e){if(0!==(1&e))return Nt=15,1;if(0!==(2&e))return Nt=14,2;if(0!==(4&e))return Nt=13,4;var t=24&e;return 0!==t?(Nt=12,t):0!==(32&e)?(Nt=11,32):0!==(t=192&e)?(Nt=10,t):0!==(256&e)?(Nt=9,256):0!==(t=3584&e)?(Nt=8,t):0!==(4096&e)?(Nt=7,4096):0!==(t=4186112&e)?(Nt=6,t):0!==(t=62914560&e)?(Nt=5,t):67108864&e?(Nt=4,67108864):0!==(134217728&e)?(Nt=3,134217728):0!==(t=805306368&e)?(Nt=2,t):0!==(1073741824&e)?(Nt=1,1073741824):(Nt=8,e)}function zt(e,t){var n=e.pendingLanes;if(0===n)return Nt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,s=e.pingedLanes;if(0!==a)r=a,i=Nt=15;else if(0!==(a=134217727&n)){var c=a&~o;0!==c?(r=It(c),i=Nt):0!==(s&=a)&&(r=It(s),i=Nt)}else 0!==(a=n&~o)?(r=It(a),i=Nt):0!==s&&(r=It(s),i=Nt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(It(t),i<=Nt)return t;Nt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Ht(t)),r|=e[n],t&=~i;return r}function $t(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Bt(e){return e&-e}function Qt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/Ut|0)|0},Vt=Math.log,Ut=Math.LN2;var qt=a.unstable_UserBlockingPriority,Yt=a.unstable_runWithPriority,Xt=!0;function Kt(e,t,n,r){Ie||Le();var i=Zt,a=Ie;Ie=!0;try{Re(i,e,t,n,r)}finally{(Ie=a)||$e()}}function Gt(e,t,n,r){Yt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var i;if(Xt)if((i=0===(4&t))&&0<ot.length&&-1<ht.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var a=Jt(e,t,n,r);if(null===a)i&&vt(e,r);else{if(i){if(-1<ht.indexOf(e))return e=pt(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=mt(st,e,t,n,r,i),!0;case"dragenter":return ct=mt(ct,e,t,n,r,i),!0;case"mouseover":return lt=mt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ut.set(a,mt(ut.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,mt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;vt(e,r)}Dr(e,t,r,null,n)}}}function Jt(e,t,n,r){var i=Ce(r);if(null!==(i=Jr(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Ge(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return Dr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function sn(){return!1}function cn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,un,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=cn(dn),pn=i({},dn,{view:0,detail:0}),vn=cn(pn),mn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,un=e.screenY-fn.screenY):un=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=cn(mn),bn=cn(i({},mn,{dataTransfer:0})),yn=cn(i({},pn,{relatedTarget:0})),On=cn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),xn=cn(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=cn(i({},dn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function En(){return Cn}var Mn=cn(i({},pn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?jn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Pn=cn(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=cn(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),_n=cn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=cn(i({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Rn=f&&"CompositionEvent"in window,Ln=null;f&&"documentMode"in document&&(Ln=document.documentMode);var Nn=f&&"TextEvent"in window&&!Ln,In=f&&(!Rn||Ln&&8<Ln&&11>=Ln),zn=String.fromCharCode(32),$n=!1;function Fn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Qn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Rr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Un=null,qn=null;function Yn(e){Cr(e,0)}function Xn(e){if(G(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Gn=!1;if(f){var Zn;if(f){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Zn=Jn}else Zn=!1;Gn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Un&&(Un.detachEvent("onpropertychange",nr),qn=Un=null)}function nr(e){if("value"===e.propertyName&&Xn(qn)){var t=[];if(Vn(t,qn,e,Ce(e)),e=Yn,Ie)e(t);else{Ie=!0;try{Ae(e,t)}finally{Ie=!1,$e()}}}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Un=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(qn)}function ar(e,t){if("click"===e)return Xn(t)}function or(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},cr=Object.prototype.hasOwnProperty;function lr(e,t){if(sr(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(r=0;r<n.length;r++)if(!cr.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=f&&"documentMode"in document&&11>=document.documentMode,mr=null,gr=null,br=null,yr=!1;function Or(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==mr||mr!==Z(r)||("selectionStart"in(r=mr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Rr(gr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}Lt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Lt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Lt(Rt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<xr.length;kr++)At.set(xr[kr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),jr=new Set("cancel close invalid load scroll toggle".split(" ").concat(wr));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,c,l){if(Xe.apply(this,arguments),He){if(!He)throw Error(o(198));var u=Ve;He=!1,Ve=null,Ue||(Ue=!0,qe=u)}}(r,t,void 0,e),e.currentTarget=null}function Cr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=c}else for(o=0;o<r.length;o++){if(c=(s=r[o]).instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break e;Sr(i,s,l),a=c}}}if(Ue)throw e=qe,Ue=!1,qe=null,e}function Er(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(_r(t,e,2,!1),n.add(r))}var Mr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Mr]||(e[Mr]=!0,s.forEach((function(t){jr.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&jr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ri(a),s=e+"__"+(t?"capture":"bubble");o.has(s)||(t&&(i|=4),_r(a,e,i,t),o.add(s))}function _r(e,t,n,r){var i=At.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Gt;break;default:i=Zt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Dr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var c=o.tag;if((3===c||4===c)&&((c=o.stateNode.containerInfo)===i||8===c.nodeType&&c.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(c=o.tag)||6===c){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(ze)return e(t,n);ze=!0;try{Ne(e,t,n)}finally{ze=!1,$e()}}((function(){var r=a,i=Ce(n),o=[];e:{var s=Dt.get(e);if(void 0!==s){var c=hn,l=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":c=Mn;break;case"focusin":l="focus",c=yn;break;case"focusout":l="blur",c=yn;break;case"beforeblur":case"afterblur":c=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":c=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":c=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":c=Tn;break;case Mt:case Pt:case Tt:c=On;break;case _t:c=_n;break;case"scroll":c=vn;break;case"wheel":c=Dn;break;case"copy":case"cut":case"paste":c=xn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":c=Pn}var u=0!==(4&t),f=!u&&"scroll"===e,d=u?null!==s?s+"Capture":null:s;u=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Fe(p,d))&&u.push(Ar(p,v,h)))),f)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(c="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!Jr(l)&&!l[Gr])&&(c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(c=r,null!==(l=(l=n.relatedTarget||n.toElement)?Jr(l):null)&&(l!==(f=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(c=null,l=r),c!==l)){if(u=gn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Pn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==c?s:ti(c),h=null==l?s:ti(l),(s=new u(v,p+"leave",c,n,i)).target=f,s.relatedTarget=h,v=null,Jr(i)===r&&((u=new u(d,p+"enter",l,n,i)).target=h,u.relatedTarget=f,v=u),f=v,c&&l)e:{for(d=l,p=0,h=u=c;h;h=Lr(h))p++;for(h=0,v=d;v;v=Lr(v))h++;for(;0<p-h;)u=Lr(u),p--;for(;0<h-p;)d=Lr(d),h--;for(;p--;){if(u===d||null!==d&&u===d.alternate)break e;u=Lr(u),d=Lr(d)}u=null}else u=null;null!==c&&Nr(o,s,c,u,!1),null!==l&&null!==f&&Nr(o,f,l,u,!0)}if("select"===(c=(s=r?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===c&&"file"===s.type)var m=Kn;else if(Hn(s))if(Gn)m=or;else{m=ir;var g=rr}else(c=s.nodeName)&&"input"===c.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);switch(m&&(m=m(e,r))?Vn(o,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ie(s,"number",s.value)),g=r?ti(r):window,e){case"focusin":(Hn(g)||"true"===g.contentEditable)&&(mr=g,gr=r,br=null);break;case"focusout":br=gr=mr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,Or(o,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":Or(o,n,i)}var b;if(Rn)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Qn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(In&&"ko"!==n.locale&&(Qn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Qn&&(b=rn()):(tn="value"in(en=i)?en.value:en.textContent,Qn=!0)),0<(g=Rr(r,y)).length&&(y=new kn(y,e,null,n,i),o.push({event:y,listeners:g}),b?y.data=b:null!==(b=Bn(n))&&(y.data=b))),(b=Nn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:($n=!0,zn);case"textInput":return(e=t.data)===zn&&$n?null:e;default:return null}}(e,n):function(e,t){if(Qn)return"compositionend"===e||!Rn&&Fn(e,t)?(e=rn(),nn=tn=en=null,Qn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Rr(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=b))}Cr(o,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Rr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Ar(e,a,i)),null!=(a=Fe(e,t))&&r.push(Ar(e,a,i))),e=e.return}return r}function Lr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Nr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(null!==c&&c===r)break;5===s.tag&&null!==l&&(s=l,i?null!=(c=Fe(n,a))&&o.unshift(Ar(n,c,s)):i||null!=(c=Fe(n,a))&&o.push(Ar(n,c,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Ir(){}var zr=null,$r=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Br(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Qr="function"===typeof setTimeout?setTimeout:void 0,Wr="function"===typeof clearTimeout?clearTimeout:void 0;function Hr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Vr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Ur(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0;var Yr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Yr,Kr="__reactProps$"+Yr,Gr="__reactContainer$"+Yr,Zr="__reactEvents$"+Yr;function Jr(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ur(e);null!==e;){if(n=e[Xr])return n;e=Ur(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[Xr]||e[Gr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=new Set),t}var ii=[],ai=-1;function oi(e){return{current:e}}function si(e){0>ai||(e.current=ii[ai],ii[ai]=null,ai--)}function ci(e,t){ai++,ii[ai]=e.current,e.current=t}var li={},ui=oi(li),fi=oi(!1),di=li;function hi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vi(){si(fi),si(ui)}function mi(e,t,n){if(ui.current!==li)throw Error(o(168));ci(ui,t),ci(fi,n)}function gi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,q(t)||"Unknown",a));return i({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ui.current,ci(ui,e),ci(fi,fi.current),!0}function yi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=gi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(ui),ci(ui,e)):si(fi),ci(fi,n)}var Oi=null,xi=null,ki=a.unstable_runWithPriority,wi=a.unstable_scheduleCallback,ji=a.unstable_cancelCallback,Si=a.unstable_shouldYield,Ci=a.unstable_requestPaint,Ei=a.unstable_now,Mi=a.unstable_getCurrentPriorityLevel,Pi=a.unstable_ImmediatePriority,Ti=a.unstable_UserBlockingPriority,_i=a.unstable_NormalPriority,Di=a.unstable_LowPriority,Ai=a.unstable_IdlePriority,Ri={},Li=void 0!==Ci?Ci:function(){},Ni=null,Ii=null,zi=!1,$i=Ei(),Fi=1e4>$i?Ei:function(){return Ei()-$i};function Bi(){switch(Mi()){case Pi:return 99;case Ti:return 98;case _i:return 97;case Di:return 96;case Ai:return 95;default:throw Error(o(332))}}function Qi(e){switch(e){case 99:return Pi;case 98:return Ti;case 97:return _i;case 96:return Di;case 95:return Ai;default:throw Error(o(332))}}function Wi(e,t){return e=Qi(e),ki(e,t)}function Hi(e,t,n){return e=Qi(e),wi(e,t,n)}function Vi(){if(null!==Ii){var e=Ii;Ii=null,ji(e)}Ui()}function Ui(){if(!zi&&null!==Ni){zi=!0;var e=0;try{var t=Ni;Wi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ni=null}catch(n){throw null!==Ni&&(Ni=Ni.slice(e+1)),wi(Pi,Vi),n}finally{zi=!1}}}var qi=x.ReactCurrentBatchConfig;function Yi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Xi=oi(null),Ki=null,Gi=null,Zi=null;function Ji(){Zi=Gi=Ki=null}function ea(e){var t=Xi.current;si(Xi),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function na(e,t){Ki=e,Zi=Gi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ro=!0),e.firstContext=null)}function ra(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Gi){if(null===Ki)throw Error(o(308));Gi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Gi=Gi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ca(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ua(e,t,n,r){var a=e.updateQueue;ia=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,c=a.shared.pending;if(null!==c){a.shared.pending=null;var l=c,u=l.next;l.next=null,null===s?o=u:s.next=u,s=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=u:d.next=u,f.lastBaseUpdate=l)}}if(null!==o){for(d=a.baseState,s=0,f=u=l=null;;){c=o.lane;var h=o.eventTime;if((r&c)===c){null!==f&&(f=f.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,v=o;switch(c=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){d=p.call(h,d,c);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(c="function"===typeof(p=v.payload)?p.call(h,d,c):p)||void 0===c)break e;d=i({},d,c);break e;case 2:ia=!0}}null!==o.callback&&(e.flags|=32,null===(c=a.effects)?a.effects=[o]:c.push(o))}else h={eventTime:h,lane:c,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(u=f=h,l=d):f=f.next=h,s|=c;if(null===(o=o.next)){if(null===(c=a.shared.pending))break;o=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}null===f&&(l=d),a.baseState=l,a.firstBaseUpdate=u,a.lastBaseUpdate=f,zs|=s,e.lanes=s,e.memoizedState=d}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var da=(new r.Component).refs;function ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pa={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lc(),i=uc(e),a=sa(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),ca(e,a),fc(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lc(),i=uc(e),a=sa(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),ca(e,a),fc(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lc(),r=uc(e),i=sa(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),ca(e,i),fc(e,r,n)}};function va(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,a))}function ma(e,t,n){var r=!1,i=li,a=t.contextType;return"object"===typeof a&&null!==a?a=ra(a):(i=pi(t)?di:ui.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ga(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pa.enqueueReplaceState(t,t.state,null)}function ba(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=ra(a):(a=pi(t)?di:ui.current,i.context=hi(e,a)),ua(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&pa.enqueueReplaceState(i,i.state,null),ua(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ya=Array.isArray;function Oa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function xa(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Wc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=qc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Oa(e,t,n),r.return=e,r):((r=Hc(n.type,n.key,n.props,null,e.mode,r)).ref=Oa(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Vc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=qc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Hc(t.type,t.key,t.props,null,e.mode,n)).ref=Oa(e,null,t),n.return=e,n;case w:return(t=Yc(t,e.mode,n)).return=e,t}if(ya(t)||Q(t))return(t=Vc(t,e.mode,n,null)).return=e,t;xa(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===j?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case w:return n.key===i?u(e,t,n,r):null}if(ya(n)||Q(n))return null!==i?null:f(e,t,n,r,null);xa(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===j?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ya(r)||Q(r))return f(t,e=e.get(n)||null,r,i,null);xa(t,r)}return null}function v(i,o,s,c){for(var l=null,u=null,f=o,v=o=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=h(i,f,s[v],c);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===u?l=g:u.sibling=g,u=g,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],c))&&(o=a(f,o,v),null===u?l=f:u.sibling=f,u=f);return l}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],c))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===u?l=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(i,e)})),l}function m(i,s,c,l){var u=Q(c);if("function"!==typeof u)throw Error(o(150));if(null==(c=u.call(c)))throw Error(o(151));for(var f=u=null,v=s,m=s=0,g=null,b=c.next();null!==v&&!b.done;m++,b=c.next()){v.index>m?(g=v,v=null):g=v.sibling;var y=h(i,v,b.value,l);if(null===y){null===v&&(v=g);break}e&&v&&null===y.alternate&&t(i,v),s=a(y,s,m),null===f?u=y:f.sibling=y,f=y,v=g}if(b.done)return n(i,v),u;if(null===v){for(;!b.done;m++,b=c.next())null!==(b=d(i,b.value,l))&&(s=a(b,s,m),null===f?u=b:f.sibling=b,f=b);return u}for(v=r(i,v);!b.done;m++,b=c.next())null!==(b=p(v,i,m,b.value,l))&&(e&&null!==b.alternate&&v.delete(null===b.key?m:b.key),s=a(b,s,m),null===f?u=b:f.sibling=b,f=b);return e&&v.forEach((function(e){return t(i,e)})),u}return function(e,r,a,c){var l="object"===typeof a&&null!==a&&a.type===j&&null===a.key;l&&(a=a.props.children);var u="object"===typeof a&&null!==a;if(u)switch(a.$$typeof){case k:e:{for(u=a.key,l=r;null!==l;){if(l.key===u){switch(l.tag){case 7:if(a.type===j){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}break;default:if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=Oa(e,l,a),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}a.type===j?((r=Vc(a.props.children,e.mode,c,a.key)).return=e,e=r):((c=Hc(a.type,a.key,a.props,null,e.mode,c)).ref=Oa(e,r,a),c.return=e,e=c)}return s(e);case w:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Yc(a,e.mode,c)).return=e,e=r}return s(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=qc(a,e.mode,c)).return=e,e=r),s(e);if(ya(a))return v(e,r,a,c);if(Q(a))return m(e,r,a,c);if(u&&xa(e,a),"undefined"===typeof a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,q(e.type)||"Component"))}return n(e,r)}}var wa=ka(!0),ja=ka(!1),Sa={},Ca=oi(Sa),Ea=oi(Sa),Ma=oi(Sa);function Pa(e){if(e===Sa)throw Error(o(174));return e}function Ta(e,t){switch(ci(Ma,t),ci(Ea,e),ci(Ca,Sa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Ca),ci(Ca,t)}function _a(){si(Ca),si(Ea),si(Ma)}function Da(e){Pa(Ma.current);var t=Pa(Ca.current),n=pe(t,e.type);t!==n&&(ci(Ea,e),ci(Ca,n))}function Aa(e){Ea.current===e&&(si(Ca),si(Ea))}var Ra=oi(0);function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Na=null,Ia=null,za=!1;function $a(e,t){var n=Bc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ba(e){if(za){var t=Ia;if(t){var n=t;if(!Fa(e,t)){if(!(t=Vr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,za=!1,void(Na=e);$a(Na,n)}Na=e,Ia=Vr(t.firstChild)}else e.flags=-1025&e.flags|2,za=!1,Na=e}}function Qa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Na=e}function Wa(e){if(e!==Na)return!1;if(!za)return Qa(e),za=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=Ia;t;)$a(e,t),t=Vr(t.nextSibling);if(Qa(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ia=Vr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ia=null}}else Ia=Na?Vr(e.stateNode.nextSibling):null;return!0}function Ha(){Ia=Na=null,za=!1}var Va=[];function Ua(){for(var e=0;e<Va.length;e++)Va[e]._workInProgressVersionPrimary=null;Va.length=0}var qa=x.ReactCurrentDispatcher,Ya=x.ReactCurrentBatchConfig,Xa=0,Ka=null,Ga=null,Za=null,Ja=!1,eo=!1;function to(){throw Error(o(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,i,a){if(Xa=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,qa.current=null===e||null===e.memoizedState?To:_o,e=n(r,i),eo){a=0;do{if(eo=!1,!(25>a))throw Error(o(301));a+=1,Za=Ga=null,t.updateQueue=null,qa.current=Do,e=n(r,i)}while(eo)}if(qa.current=Po,t=null!==Ga&&null!==Ga.next,Xa=0,Za=Ga=Ka=null,Ja=!1,t)throw Error(o(300));return e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Za?Ka.memoizedState=Za=e:Za=Za.next=e,Za}function ao(){if(null===Ga){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Ga.next;var t=null===Za?Ka.memoizedState:Za.next;if(null!==t)Za=t,Ga=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Ga=e).memoizedState,baseState:Ga.baseState,baseQueue:Ga.baseQueue,queue:Ga.queue,next:null},null===Za?Ka.memoizedState=Za=e:Za=Za.next=e}return Za}function oo(e,t){return"function"===typeof t?t(e):t}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Ga,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=s=a=null,l=i;do{var u=l.lane;if((Xa&u)===u)null!==c&&(c=c.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:u,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===c?(s=c=f,a=r):c=c.next=f,Ka.lanes|=u,zs|=u}l=l.next}while(null!==l&&l!==i);null===c?a=r:c.next=s,sr(r,t.memoizedState)||(Ro=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function co(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(Ro=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=(Xa&e)===e)&&(t._workInProgressVersionPrimary=r,Va.push(t))),e)return n(t._source);throw Va.push(t),Error(o(350))}function uo(e,t,n,r){var i=Ts;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),c=qa.current,l=c.useState((function(){return lo(i,t,n)})),u=l[1],f=l[0];l=Za;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,v=d.source;d=d.subscribe;var m=Ka;return e.memoizedState={refs:h,source:t,subscribe:r},c.useEffect((function(){h.getSnapshot=n,h.setSnapshot=u;var e=a(t._source);if(!sr(s,e)){e=n(t._source),sr(f,e)||(u(e),e=uc(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var c=31-Ht(o),l=1<<c;r[c]|=e,o&=~l}}}),[n,t,r]),c.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=uc(m);i.mutableReadLanes|=r&i.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),sr(p,n)&&sr(v,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=u=Mo.bind(null,Ka,e),l.queue=e,l.baseQueue=null,f=lo(i,t,n),l.memoizedState=l.baseState=f),f}function fo(e,t,n){return uo(ao(),e,t,n)}function ho(e){var t=io();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=Mo.bind(null,Ka,e),[t.memoizedState,e]}function po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function vo(e){return e={current:e},io().memoizedState=e}function mo(){return ao().memoizedState}function go(e,t,n,r){var i=io();Ka.flags|=e,i.memoizedState=po(1|t,n,void 0,void 0===r?null:r)}function bo(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=void 0;if(null!==Ga){var o=Ga.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void po(t,n,a,r)}Ka.flags|=e,i.memoizedState=po(1|t,n,a,r)}function yo(e,t){return go(516,4,e,t)}function Oo(e,t){return bo(516,4,e,t)}function xo(e,t){return bo(4,2,e,t)}function ko(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function wo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,bo(4,2,ko.bind(null,t,e),n)}function jo(){}function So(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Co(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Eo(e,t){var n=Bi();Wi(98>n?98:n,(function(){e(!0)})),Wi(97<n?97:n,(function(){var n=Ya.transition;Ya.transition=1;try{e(!1),t()}finally{Ya.transition=n}}))}function Mo(e,t,n){var r=lc(),i=uc(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)eo=Ja=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var s=t.lastRenderedState,c=o(s,n);if(a.eagerReducer=o,a.eagerState=c,sr(c,s))return}catch(l){}fc(e,i,r)}}var Po={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},To={readContext:ra,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:yo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return go(4,2,e,t)},useMemo:function(e,t){var n=io();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Mo.bind(null,Ka,e),[r.memoizedState,e]},useRef:vo,useState:ho,useDebugValue:jo,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return yo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return vo(e=Eo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=io();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},uo(r,e,t,n)},useOpaqueIdentifier:function(){if(za){var e=!1,t=function(e){return{$$typeof:L,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(o(355))})),n=ho(t)[1];return 0===(2&Ka.mode)&&(Ka.flags|=516,po(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},_o={readContext:ra,useCallback:So,useContext:ra,useEffect:Oo,useImperativeHandle:wo,useLayoutEffect:xo,useMemo:Co,useReducer:so,useRef:mo,useState:function(){return so(oo)},useDebugValue:jo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return Oo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[mo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},Do={readContext:ra,useCallback:So,useContext:ra,useEffect:Oo,useImperativeHandle:wo,useLayoutEffect:xo,useMemo:Co,useReducer:co,useRef:mo,useState:function(){return co(oo)},useDebugValue:jo,useDeferredValue:function(e){var t=co(oo),n=t[0],r=t[1];return Oo((function(){var t=Ya.transition;Ya.transition=1;try{r(e)}finally{Ya.transition=t}}),[e]),n},useTransition:function(){var e=co(oo)[0];return[mo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return co(oo)[0]},unstable_isNewReconciler:!1},Ao=x.ReactCurrentOwner,Ro=!1;function Lo(e,t,n,r){t.child=null===e?ja(t,null,n,r):wa(t,e.child,n,r)}function No(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=ro(e,t,n,r,a,i),null===e||Ro?(t.flags|=1,Lo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Io(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Qc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,zo(e,t,o,r,i,a))}return o=e.child,0===(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Wc(o,r)).ref=t.ref,e.return=t,t.child=e)}function zo(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Ro=!1,0===(a&i))return t.lanes=e.lanes,ns(e,t,a);0!==(16384&e.flags)&&(Ro=!0)}return Bo(e,t,n,r,a)}function $o(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},yc(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yc(t,e),null;t.memoizedState={baseLanes:0},yc(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yc(t,r);return Lo(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Bo(e,t,n,r,i){var a=pi(n)?di:ui.current;return a=hi(t,a),na(t,i),n=ro(e,t,n,r,a,i),null===e||Ro?(t.flags|=1,Lo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Qo(e,t,n,r,i){if(pi(n)){var a=!0;bi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ma(t,n,r),ba(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;"object"===typeof l&&null!==l?l=ra(l):l=hi(t,l=pi(n)?di:ui.current);var u=n.getDerivedStateFromProps,f="function"===typeof u||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||c!==l)&&ga(t,o,r,l),ia=!1;var d=t.memoizedState;o.state=d,ua(t,r,o,i),c=t.memoizedState,s!==r||d!==c||fi.current||ia?("function"===typeof u&&(ha(t,n,u,r),c=t.memoizedState),(s=ia||va(t,n,s,r,d,c,l))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Yi(t.type,s),o.props=l,f=t.pendingProps,d=o.context,"object"===typeof(c=n.contextType)&&null!==c?c=ra(c):c=hi(t,c=pi(n)?di:ui.current);var h=n.getDerivedStateFromProps;(u="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||d!==c)&&ga(t,o,r,c),ia=!1,d=t.memoizedState,o.state=d,ua(t,r,o,i);var p=t.memoizedState;s!==f||d!==p||fi.current||ia?("function"===typeof h&&(ha(t,n,h,r),p=t.memoizedState),(l=ia||va(t,n,l,r,d,p,c))?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,c),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,c)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=c,r=l):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Wo(e,t,n,r,a,i)}function Wo(e,t,n,r,i,a){Fo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return i&&yi(t,n,!1),ns(e,t,a);r=t.stateNode,Ao.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=wa(t,e.child,null,a),t.child=wa(t,null,s,a)):Lo(e,t,s,a),t.memoizedState=r.state,i&&yi(t,n,!0),t.child}function Ho(e){var t=e.stateNode;t.pendingContext?mi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mi(0,t.context,!1),Ta(e,t.containerInfo)}var Vo,Uo,qo,Yo={dehydrated:null,retryLane:0};function Xo(e,t,n){var r,i=t.pendingProps,a=Ra.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),ci(Ra,1&a),null===e?(void 0!==i.fallback&&Ba(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,e):"number"===typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Yo,t.lanes=33554432,e):((n=Uc({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=Zo(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Yo,i):(n=Go(e,t,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Uc(t,i,0,null),n=Vc(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Go(e,t,n,r){var i=e.child;return e=i.sibling,n=Wc(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Zo(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var s={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=s,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Wc(o,s),null!==e?r=Wc(e,r):(r=Vc(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Jo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function es(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Lo(e,t,r.children,n),0!==(2&(r=Ra.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Jo(e,n);else if(19===e.tag)Jo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ci(Ra,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===La(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===La(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,a,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),zs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Wc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!za)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function is(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pi(t.type)&&vi(),null;case 3:return _a(),si(fi),si(ui),Ua(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Aa(t);var a=Pa(Ma.current);if(n=t.type,null!==e&&null!=t.stateNode)Uo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Pa(Ca.current),Wa(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Kr]=s,n){case"dialog":Er("cancel",r),Er("close",r);break;case"iframe":case"object":case"embed":Er("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)Er(wr[e],r);break;case"source":Er("error",r);break;case"img":case"image":case"link":Er("error",r),Er("load",r);break;case"details":Er("toggle",r);break;case"input":ee(r,s),Er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Er("invalid",r);break;case"textarea":ce(r,s),Er("invalid",r)}for(var l in je(n,s),e=null,s)s.hasOwnProperty(l)&&(a=s[l],"children"===l?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):c.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&Er("scroll",r));switch(n){case"input":K(r),re(r,s,!0);break;case"textarea":K(r),ue(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Ir)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Xr]=t,e[Kr]=r,Vo(e,t),t.stateNode=e,l=Se(n,r),n){case"dialog":Er("cancel",e),Er("close",e),a=r;break;case"iframe":case"object":case"embed":Er("load",e),a=r;break;case"video":case"audio":for(a=0;a<wr.length;a++)Er(wr[a],e);a=r;break;case"source":Er("error",e),a=r;break;case"img":case"image":case"link":Er("error",e),Er("load",e),a=r;break;case"details":Er("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Er("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Er("invalid",e);break;case"textarea":ce(e,r),a=se(e,r),Er("invalid",e);break;default:a=r}je(n,a);var u=a;for(s in u)if(u.hasOwnProperty(s)){var f=u[s];"style"===s?ke(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ge(e,f):"children"===s?"string"===typeof f?("textarea"!==n||""!==f)&&be(e,f):"number"===typeof f&&be(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(c.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Er("scroll",e):null!=f&&O(e,s,f,l))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ue(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?oe(e,!!r.multiple,s,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Ir)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Pa(Ma.current),Pa(Ca.current),Wa(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return si(Ra),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Wa(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ra.current)?0===Ls&&(Ls=3):(0!==Ls&&3!==Ls||(Ls=4),null===Ts||0===(134217727&zs)&&0===(134217727&$s)||vc(Ts,Ds))),(r||n)&&(t.flags|=4),null);case 4:return _a(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 17:return pi(t.type)&&vi(),null;case 19:if(si(Ra),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(l=r.rendering))if(s)rs(r,!1);else{if(0!==Ls||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=La(e))){for(t.flags|=64,rs(r,!1),null!==(s=l.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(l=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=l.childLanes,s.lanes=l.lanes,s.child=l.child,s.memoizedProps=l.memoizedProps,s.memoizedState=l.memoizedState,s.updateQueue=l.updateQueue,s.type=l.type,e=l.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ci(Ra,1&Ra.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Ws&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=La(l))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!za)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Ra.current,ci(Ra,s?1&t|2:1&t),n):null;case 23:case 24:return Oc(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function as(e){switch(e.tag){case 1:pi(e.type)&&vi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(_a(),si(fi),si(ui),Ua(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Aa(e),null;case 13:return si(Ra),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(Ra),null;case 4:return _a(),null;case 10:return ea(e),null;case 23:case 24:return Oc(),null;default:return null}}function os(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Vo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Uo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Pa(Ca.current);var o,s=null;switch(n){case"input":a=J(e,a),r=J(e,r),s=[];break;case"option":a=ae(e,a),r=ae(e,r),s=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":a=se(e,a),r=se(e,r),s=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Ir)}for(f in je(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var l=a[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(c.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var u=r[f];if(l=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&u!==l&&(null!=u||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&l[o]!==u[o]&&(n||(n={}),n[o]=u[o])}else n||(s||(s=[]),s.push(f,n)),n=u;else"dangerouslySetInnerHTML"===f?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(s=s||[]).push(f,u)):"children"===f?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(f,""+u):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(c.hasOwnProperty(f)?(null!=u&&"onScroll"===f&&Er("scroll",e),s||l===u||(s=[])):"object"===typeof u&&null!==u&&u.$$typeof===L?u.toString():(s=s||[]).push(f,u))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},qo=function(e,t,n,r){n!==r&&(t.flags|=4)};var cs="function"===typeof WeakMap?WeakMap:Map;function ls(e,t,n){(n=sa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){qs||(qs=!0,Ys=r),ss(0,t)},n}function us(e,t,n){(n=sa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Xs?Xs=new Set([this]):Xs.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"===typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ic(e,n)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Yi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Rc(n,e),Ac(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Yi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function vs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=xe("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function ms(e,t){if(xi&&"function"===typeof xi.onCommitFiberUnmount)try{xi.onCommitFiberUnmount(Oi,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Rc(t,n);else{r=t;try{i()}catch(a){Ic(r,a)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Ic(t,a)}break;case 5:ds(t);break;case 4:ks(e,t)}}function gs(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bs(e){return 5===e.tag||3===e.tag||4===e.tag}function ys(e){e:{for(var t=e.return;null!==t;){if(bs(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(be(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bs(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?Os(e,n,t):xs(e,n,t)}function Os(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ir));else if(4!==r&&null!==(e=e.child))for(Os(e,t,n),e=e.sibling;null!==e;)Os(e,t,n),e=e.sibling}function xs(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(xs(e,t,n),e=e.sibling;null!==e;)xs(e,t,n),e=e.sibling}function ks(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var s=e,c=i,l=c;;)if(ms(s,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===c)break e;for(;null===l.sibling;){if(null===l.return||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(s=n,c=i.stateNode,8===s.nodeType?s.parentNode.removeChild(c):s.removeChild(c)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(ms(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function ws(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,i),t=Se(e,r),i=0;i<a.length;i+=2){var s=a[i],c=a[i+1];"style"===s?ke(n,c):"dangerouslySetInnerHTML"===s?ge(n,c):"children"===s?be(n,c):O(n,s,c,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Qs=Fi(),vs(t.child,!0)),void js(t);case 19:return void js(t);case 17:return;case 23:case 24:return void vs(t,null!==t.memoizedState)}throw Error(o(163))}function js(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=$c.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ss(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Cs=Math.ceil,Es=x.ReactCurrentDispatcher,Ms=x.ReactCurrentOwner,Ps=0,Ts=null,_s=null,Ds=0,As=0,Rs=oi(0),Ls=0,Ns=null,Is=0,zs=0,$s=0,Fs=0,Bs=null,Qs=0,Ws=1/0;function Hs(){Ws=Fi()+500}var Vs,Us=null,qs=!1,Ys=null,Xs=null,Ks=!1,Gs=null,Zs=90,Js=[],ec=[],tc=null,nc=0,rc=null,ic=-1,ac=0,oc=0,sc=null,cc=!1;function lc(){return 0!==(48&Ps)?Fi():-1!==ic?ic:ic=Fi()}function uc(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Bi()?1:2;if(0===ac&&(ac=Is),0!==qi.transition){0!==oc&&(oc=null!==Bs?Bs.pendingLanes:0),e=ac;var t=4186112&~oc;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Bi(),0!==(4&Ps)&&98===e?e=Ft(12,ac):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ac),e}function fc(e,t,n){if(50<nc)throw nc=0,rc=null,Error(o(185));if(null===(e=dc(e,t)))return null;Wt(e,t,n),e===Ts&&($s|=t,4===Ls&&vc(e,Ds));var r=Bi();1===t?0!==(8&Ps)&&0===(48&Ps)?mc(e):(hc(e,n),0===Ps&&(Hs(),Vi())):(0===(4&Ps)||98!==r&&99!==r||(null===tc?tc=new Set([e]):tc.add(e)),hc(e,n)),Bs=e}function dc(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hc(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var c=31-Ht(s),l=1<<c,u=a[c];if(-1===u){if(0===(l&r)||0!==(l&i)){u=t,It(l);var f=Nt;a[c]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=l);s&=~l}if(r=zt(e,e===Ts?Ds:0),t=Nt,0===r)null!==n&&(n!==Ri&&ji(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ri&&ji(n)}15===t?(n=mc.bind(null,e),null===Ni?(Ni=[n],Ii=wi(Pi,Ui)):Ni.push(n),n=Ri):14===t?n=Hi(99,mc.bind(null,e)):n=Hi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),pc.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function pc(e){if(ic=-1,oc=ac=0,0!==(48&Ps))throw Error(o(327));var t=e.callbackNode;if(Dc()&&e.callbackNode!==t)return null;var n=zt(e,e===Ts?Ds:0);if(0===n)return null;var r=n,i=Ps;Ps|=16;var a=wc();for(Ts===e&&Ds===r||(Hs(),xc(e,r));;)try{Cc();break}catch(c){kc(e,c)}if(Ji(),Es.current=a,Ps=i,null!==_s?r=0:(Ts=null,Ds=0,r=Ls),0!==(Is&$s))xc(e,0);else if(0!==r){if(2===r&&(Ps|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=$t(e))&&(r=jc(e,n))),1===r)throw t=Ns,xc(e,0),vc(e,n),hc(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Pc(e);break;case 3:if(vc(e,n),(62914560&n)===n&&10<(r=Qs+500-Fi())){if(0!==zt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){lc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Qr(Pc.bind(null,e),r);break}Pc(e);break;case 4:if(vc(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Ht(n);a=1<<s,(s=r[s])>i&&(i=s),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cs(n/1960))-n)){e.timeoutHandle=Qr(Pc.bind(null,e),n);break}Pc(e);break;case 5:Pc(e);break;default:throw Error(o(329))}}return hc(e,Fi()),e.callbackNode===t?pc.bind(null,e):null}function vc(e,t){for(t&=~Fs,t&=~$s,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function mc(e){if(0!==(48&Ps))throw Error(o(327));if(Dc(),e===Ts&&0!==(e.expiredLanes&Ds)){var t=Ds,n=jc(e,t);0!==(Is&$s)&&(n=jc(e,t=zt(e,t)))}else n=jc(e,t=zt(e,0));if(0!==e.tag&&2===n&&(Ps|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=$t(e))&&(n=jc(e,t))),1===n)throw n=Ns,xc(e,0),vc(e,t),hc(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pc(e),hc(e,Fi()),null}function gc(e,t){var n=Ps;Ps|=1;try{return e(t)}finally{0===(Ps=n)&&(Hs(),Vi())}}function bc(e,t){var n=Ps;Ps&=-2,Ps|=8;try{return e(t)}finally{0===(Ps=n)&&(Hs(),Vi())}}function yc(e,t){ci(Rs,As),As|=t,Is|=t}function Oc(){As=Rs.current,si(Rs)}function xc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==_s)for(n=_s.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vi();break;case 3:_a(),si(fi),si(ui),Ua();break;case 5:Aa(r);break;case 4:_a();break;case 13:case 19:si(Ra);break;case 10:ea(r);break;case 23:case 24:Oc()}n=n.return}Ts=e,_s=Wc(e.current,null),Ds=As=Is=t,Ls=0,Ns=null,Fs=$s=zs=0}function kc(e,t){for(;;){var n=_s;try{if(Ji(),qa.current=Po,Ja){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Ja=!1}if(Xa=0,Za=Ga=Ka=null,eo=!1,Ms.current=null,null===n||null===n.return){Ls=1,Ns=t,_s=null;break}e:{var a=e,o=n.return,s=n,c=t;if(t=Ds,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c;if(0===(2&s.mode)){var u=s.alternate;u?(s.updateQueue=u.updateQueue,s.memoizedState=u.memoizedState,s.lanes=u.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!==(1&Ra.current),d=o;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var v=d.memoizedProps;h=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(h){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0===(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var b=sa(-1,1);b.tag=2,ca(s,b)}s.lanes|=1;break e}c=void 0,s=t;var y=a.pingCache;if(null===y?(y=a.pingCache=new cs,c=new Set,y.set(l,c)):void 0===(c=y.get(l))&&(c=new Set,y.set(l,c)),!c.has(s)){c.add(s);var O=zc.bind(null,a,l,s);l.then(O,O)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);c=Error((q(s.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ls&&(Ls=2),c=os(c,s),d=o;do{switch(d.tag){case 3:a=c,d.flags|=4096,t&=-t,d.lanes|=t,la(d,ls(0,a,t));break e;case 1:a=c;var x=d.type,k=d.stateNode;if(0===(64&d.flags)&&("function"===typeof x.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Xs||!Xs.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,us(d,a,t));break e}}d=d.return}while(null!==d)}Mc(n)}catch(w){t=w,_s===n&&null!==n&&(_s=n=n.return);continue}break}}function wc(){var e=Es.current;return Es.current=Po,null===e?Po:e}function jc(e,t){var n=Ps;Ps|=16;var r=wc();for(Ts===e&&Ds===t||xc(e,t);;)try{Sc();break}catch(i){kc(e,i)}if(Ji(),Ps=n,Es.current=r,null!==_s)throw Error(o(261));return Ts=null,Ds=0,Ls}function Sc(){for(;null!==_s;)Ec(_s)}function Cc(){for(;null!==_s&&!Si();)Ec(_s)}function Ec(e){var t=Vs(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?Mc(e):_s=t,Ms.current=null}function Mc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=is(n,t,As)))return void(_s=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&As)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=as(t)))return n.flags&=2047,void(_s=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(_s=t);_s=t=e}while(null!==t);0===Ls&&(Ls=5)}function Pc(e){var t=Bi();return Wi(99,Tc.bind(null,e,t)),null}function Tc(e,t){do{Dc()}while(null!==Gs);if(0!==(48&Ps))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,c=e.expirationTimes;0<a;){var l=31-Ht(a),u=1<<l;i[l]=0,s[l]=-1,c[l]=-1,a&=~u}if(null!==tc&&0===(24&r)&&tc.has(e)&&tc.delete(e),e===Ts&&(_s=Ts=null,Ds=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Ps,Ps|=32,Ms.current=null,zr=Xt,pr(s=hr())){if("selectionStart"in s)c={start:s.selectionStart,end:s.selectionEnd};else e:if(c=(c=s.ownerDocument)&&c.defaultView||window,(u=c.getSelection&&c.getSelection())&&0!==u.rangeCount){c=u.anchorNode,a=u.anchorOffset,l=u.focusNode,u=u.focusOffset;try{c.nodeType,l.nodeType}catch(C){c=null;break e}var f=0,d=-1,h=-1,p=0,v=0,m=s,g=null;t:for(;;){for(var b;m!==c||0!==a&&3!==m.nodeType||(d=f+a),m!==l||0!==u&&3!==m.nodeType||(h=f+u),3===m.nodeType&&(f+=m.nodeValue.length),null!==(b=m.firstChild);)g=m,m=b;for(;;){if(m===s)break t;if(g===c&&++p===a&&(d=f),g===l&&++v===u&&(h=f),null!==(b=m.nextSibling))break;g=(m=g).parentNode}m=b}c=-1===d||-1===h?null:{start:d,end:h}}else c=null;c=c||{start:0,end:0}}else c=null;$r={focusedElem:s,selectionRange:c},Xt=!1,sc=null,cc=!1,Us=r;do{try{_c()}catch(C){if(null===Us)throw Error(o(330));Ic(Us,C),Us=Us.nextEffect}}while(null!==Us);sc=null,Us=r;do{try{for(s=e;null!==Us;){var y=Us.flags;if(16&y&&be(Us.stateNode,""),128&y){var O=Us.alternate;if(null!==O){var x=O.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&y){case 2:ys(Us),Us.flags&=-3;break;case 6:ys(Us),Us.flags&=-3,ws(Us.alternate,Us);break;case 1024:Us.flags&=-1025;break;case 1028:Us.flags&=-1025,ws(Us.alternate,Us);break;case 4:ws(Us.alternate,Us);break;case 8:ks(s,c=Us);var k=c.alternate;gs(c),null!==k&&gs(k)}Us=Us.nextEffect}}catch(C){if(null===Us)throw Error(o(330));Ic(Us,C),Us=Us.nextEffect}}while(null!==Us);if(x=$r,O=hr(),y=x.focusedElem,s=x.selectionRange,O!==y&&y&&y.ownerDocument&&dr(y.ownerDocument.documentElement,y)){null!==s&&pr(y)&&(O=s.start,void 0===(x=s.end)&&(x=O),"selectionStart"in y?(y.selectionStart=O,y.selectionEnd=Math.min(x,y.value.length)):(x=(O=y.ownerDocument||document)&&O.defaultView||window).getSelection&&(x=x.getSelection(),c=y.textContent.length,k=Math.min(s.start,c),s=void 0===s.end?k:Math.min(s.end,c),!x.extend&&k>s&&(c=s,s=k,k=c),c=fr(y,k),a=fr(y,s),c&&a&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==a.node||x.focusOffset!==a.offset)&&((O=O.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),k>s?(x.addRange(O),x.extend(a.node,a.offset)):(O.setEnd(a.node,a.offset),x.addRange(O))))),O=[];for(x=y;x=x.parentNode;)1===x.nodeType&&O.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof y.focus&&y.focus(),y=0;y<O.length;y++)(x=O[y]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Xt=!!zr,$r=zr=null,e.current=n,Us=r;do{try{for(y=e;null!==Us;){var w=Us.flags;if(36&w&&ps(y,Us.alternate,Us),128&w){O=void 0;var j=Us.ref;if(null!==j){var S=Us.stateNode;switch(Us.tag){case 5:O=S;break;default:O=S}"function"===typeof j?j(O):j.current=O}}Us=Us.nextEffect}}catch(C){if(null===Us)throw Error(o(330));Ic(Us,C),Us=Us.nextEffect}}while(null!==Us);Us=null,Li(),Ps=i}else e.current=n;if(Ks)Ks=!1,Gs=e,Zs=t;else for(Us=r;null!==Us;)t=Us.nextEffect,Us.nextEffect=null,8&Us.flags&&((w=Us).sibling=null,w.stateNode=null),Us=t;if(0===(r=e.pendingLanes)&&(Xs=null),1===r?e===rc?nc++:(nc=0,rc=e):nc=0,n=n.stateNode,xi&&"function"===typeof xi.onCommitFiberRoot)try{xi.onCommitFiberRoot(Oi,n,void 0,64===(64&n.current.flags))}catch(C){}if(hc(e,Fi()),qs)throw qs=!1,e=Ys,Ys=null,e;return 0!==(8&Ps)||Vi(),null}function _c(){for(;null!==Us;){var e=Us.alternate;cc||null===sc||(0!==(8&Us.flags)?et(Us,sc)&&(cc=!0):13===Us.tag&&Ss(e,Us)&&et(Us,sc)&&(cc=!0));var t=Us.flags;0!==(256&t)&&hs(e,Us),0===(512&t)||Ks||(Ks=!0,Hi(97,(function(){return Dc(),null}))),Us=Us.nextEffect}}function Dc(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Lc)}return!1}function Ac(e,t){Js.push(t,e),Ks||(Ks=!0,Hi(97,(function(){return Dc(),null})))}function Rc(e,t){ec.push(t,e),Ks||(Ks=!0,Hi(97,(function(){return Dc(),null})))}function Lc(){if(null===Gs)return!1;var e=Gs;if(Gs=null,0!==(48&Ps))throw Error(o(331));var t=Ps;Ps|=32;var n=ec;ec=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(l){if(null===a)throw Error(o(330));Ic(a,l)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var c=i.create;i.destroy=c()}catch(l){if(null===a)throw Error(o(330));Ic(a,l)}}for(c=e.current.firstEffect;null!==c;)e=c.nextEffect,c.nextEffect=null,8&c.flags&&(c.sibling=null,c.stateNode=null),c=e;return Ps=t,Vi(),!0}function Nc(e,t,n){ca(e,t=ls(0,t=os(n,t),1)),t=lc(),null!==(e=dc(e,1))&&(Wt(e,1,t),hc(e,t))}function Ic(e,t){if(3===e.tag)Nc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Nc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r))){var i=us(n,e=os(t,e),1);if(ca(n,i),i=lc(),null!==(n=dc(n,1)))Wt(n,1,i),hc(n,i);else if("function"===typeof r.componentDidCatch&&(null===Xs||!Xs.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function zc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lc(),e.pingedLanes|=e.suspendedLanes&n,Ts===e&&(Ds&n)===n&&(4===Ls||3===Ls&&(62914560&Ds)===Ds&&500>Fi()-Qs?xc(e,0):Fs|=n),hc(e,t)}function $c(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Bi()?1:2:(0===ac&&(ac=Is),0===(t=Bt(62914560&~ac))&&(t=4194304))),n=lc(),null!==(e=dc(e,t))&&(Wt(e,t,n),hc(e,n))}function Fc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bc(e,t,n,r){return new Fc(e,t,n,r)}function Qc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wc(e,t){var n=e.alternate;return null===n?((n=Bc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Qc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case j:return Vc(n.children,i,a,t);case N:s=8,i|=16;break;case S:s=8,i|=1;break;case C:return(e=Bc(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case T:return(e=Bc(13,n,t,i)).type=T,e.elementType=T,e.lanes=a,e;case _:return(e=Bc(19,n,t,i)).elementType=_,e.lanes=a,e;case I:return Uc(n,i,a,t);case z:return(e=Bc(24,n,t,i)).elementType=z,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case M:s=9;break e;case P:s=11;break e;case D:s=14;break e;case A:s=16,r=null;break e;case R:s=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Bc(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Vc(e,t,n,r){return(e=Bc(7,e,r,t)).lanes=n,e}function Uc(e,t,n,r){return(e=Bc(23,e,r,t)).elementType=I,e.lanes=n,e}function qc(e,t,n){return(e=Bc(6,e,null,t)).lanes=n,e}function Yc(e,t,n){return(t=Bc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xc(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Qt(0),this.expirationTimes=Qt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qt(0),this.mutableSourceEagerHydrationData=null}function Kc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Gc(e,t,n,r){var i=t.current,a=lc(),s=uc(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(pi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(o(171))}if(1===n.tag){var l=n.type;if(pi(l)){n=gi(n,l,c);break e}}n=c}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ca(i,t),fc(i,s,a),s}function Zc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Jc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function el(e,t){Jc(e,t),(e=e.alternate)&&Jc(e,t)}function tl(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xc(e,t,null!=n&&!0===n.hydrate),t=Bc(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Gr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Zc(o);s.call(e)}}Gc(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tl(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var c=i;i=function(){var e=Zc(o);c.call(e)}}bc((function(){Gc(t,o,e,i)}))}return Zc(o)}function il(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(t))throw Error(o(200));return Kc(e,t,null,n)}Vs=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Ro=!0;else{if(0===(n&r)){switch(Ro=!1,t.tag){case 3:Ho(t),Ha();break;case 5:Da(t);break;case 1:pi(t.type)&&bi(t);break;case 4:Ta(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ci(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Xo(e,t,n):(ci(Ra,1&Ra.current),null!==(t=ns(e,t,n))?t.sibling:null);ci(Ra,1&Ra.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ci(Ra,Ra.current),r)break;return null;case 23:case 24:return t.lanes=0,$o(e,t,n)}return ns(e,t,n)}Ro=0!==(16384&e.flags)}else Ro=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,ui.current),na(t,n),i=ro(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pi(r)){var a=!0;bi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&ha(t,r,s,e),i.updater=pa,t.stateNode=i,i._reactInternals=t,ba(t,r,e,n),t=Wo(null,t,r,!0,a,n)}else t.tag=0,Lo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"===typeof e)return Qc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===D)return 14}return 2}(i),e=Yi(i,e),a){case 0:t=Bo(null,t,i,e,n);break e;case 1:t=Qo(null,t,i,e,n);break e;case 11:t=No(null,t,i,e,n);break e;case 14:t=Io(null,t,i,Yi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Qo(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 3:if(Ho(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ua(t,r,null,n),(r=t.memoizedState.element)===i)Ha(),t=ns(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ia=Vr(t.stateNode.containerInfo.firstChild),Na=t,a=za=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],Va.push(a);for(n=ja(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Lo(e,t,r,n),Ha();t=t.child}return t;case 5:return Da(t),null===e&&Ba(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,Br(r,i)?s=null:null!==a&&Br(r,a)&&(t.flags|=16),Fo(e,t),Lo(e,t,s,n),t.child;case 6:return null===e&&Ba(t),null;case 13:return Xo(e,t,n);case 4:return Ta(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wa(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,No(e,t,r,i=t.elementType===r?i:Yi(r,i),n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,a=i.value;var c=t.type._context;if(ci(Xi,c._currentValue),c._currentValue=a,null!==s)if(c=s.value,0===(a=sr(c,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(c,a):1073741823))){if(s.children===i.children&&!fi.current){t=ns(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var l=c.dependencies;if(null!==l){s=c.child;for(var u=l.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&a)){1===c.tag&&((u=sa(-1,n&-n)).tag=2,ca(c,u)),c.lanes|=n,null!==(u=c.alternate)&&(u.lanes|=n),ta(c.return,n),l.lanes|=n;break}u=u.next}}else s=10===c.tag&&c.type===t.type?null:c.child;if(null!==s)s.return=c;else for(s=c;null!==s;){if(s===t){s=null;break}if(null!==(c=s.sibling)){c.return=s.return,s=c;break}s=s.return}c=s}Lo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return a=Yi(i=t.type,t.pendingProps),Io(e,t,i,a=Yi(i.type,a),r,n);case 15:return zo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pi(r)?(e=!0,bi(t)):e=!1,na(t,n),ma(t,r,i),ba(t,r,i,n),Wo(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return $o(e,t,n)}throw Error(o(156,t.tag))},tl.prototype.render=function(e){Gc(e,this._internalRoot,null,null)},tl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gc(null,e,null,(function(){t[Gr]=null}))},tt=function(e){13===e.tag&&(fc(e,4,lc()),el(e,4))},nt=function(e){13===e.tag&&(fc(e,67108864,lc()),el(e,67108864))},rt=function(e){if(13===e.tag){var t=lc(),n=uc(e);fc(e,n,t),el(e,n)}},it=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(o(90));G(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ae=gc,Re=function(e,t,n,r,i){var a=Ps;Ps|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Ps=a)&&(Hs(),Vi())}},Le=function(){0===(49&Ps)&&(function(){if(null!==tc){var e=tc;tc=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hc(e,Fi())}))}Vi()}(),Dc())},Ne=function(e,t){var n=Ps;Ps|=2;try{return e(t)}finally{0===(Ps=n)&&(Hs(),Vi())}};var al={Events:[ei,ti,ni,_e,De,Dc,{current:!1}]},ol={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},sl={bundleType:ol.bundleType,version:ol.version,rendererPackageName:ol.rendererPackageName,rendererConfig:ol.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ol.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var cl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cl.isDisabled&&cl.supportsFiber)try{Oi=cl.inject(sl),xi=cl}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=al,t.createPortal=il,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Ps;if(0!==(48&n))return e(t);Ps|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Ps=n,Vi()}},t.hydrate=function(e,t,n){if(!nl(t))throw Error(o(200));return rl(null,e,t,!0,n)},t.render=function(e,t,n){if(!nl(t))throw Error(o(200));return rl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nl(e))throw Error(o(40));return!!e._reactRootContainer&&(bc((function(){rl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Gr]=null}))})),!0)},t.unstable_batchedUpdates=gc,t.unstable_createPortal=function(e,t){return il(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return rl(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(228)},function(e,t,n){"use strict";var r,i,a,o;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,f=null,d=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,g=null,b=-1,y=5,O=0;t.unstable_shouldYield=function(){return t.unstable_now()>=O},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,k=x.port2;x.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();O=e+y;try{g(!0,e)?k.postMessage(null):(m=!1,g=null)}catch(n){throw k.postMessage(null),n}}else m=!1},r=function(e){g=e,m||(m=!0,k.postMessage(null))},i=function(e,n){b=h((function(){e(t.unstable_now())}),n)},a=function(){p(b),b=-1}}function w(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<C(i,t)))break e;e[r]=t,e[n]=i,n=r}}function j(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],s=a+1,c=e[s];if(void 0!==o&&0>C(o,n))void 0!==c&&0>C(c,o)?(e[r]=c,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],M=[],P=1,T=null,_=3,D=!1,A=!1,R=!1;function L(e){for(var t=j(M);null!==t;){if(null===t.callback)S(M);else{if(!(t.startTime<=e))break;S(M),t.sortIndex=t.expirationTime,w(E,t)}t=j(M)}}function N(e){if(R=!1,L(e),!A)if(null!==j(E))A=!0,r(I);else{var t=j(M);null!==t&&i(N,t.startTime-e)}}function I(e,n){A=!1,R&&(R=!1,a()),D=!0;var r=_;try{for(L(n),T=j(E);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=T.callback;if("function"===typeof o){T.callback=null,_=T.priorityLevel;var s=o(T.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?T.callback=s:T===j(E)&&S(E),L(n)}else S(E);T=j(E)}if(null!==T)var c=!0;else{var l=j(M);null!==l&&i(N,l.startTime-n),c=!1}return c}finally{T=null,_=r,D=!1}}var z=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||D||(A=!0,r(I))},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_getFirstCallbackNode=function(){return j(E)},t.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},t.unstable_scheduleCallback=function(e,n,o){var s=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?s+o:s:o=s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:o,expirationTime:c=o+c,sortIndex:-1},o>s?(e.sortIndex=o,w(M,e),null===j(E)&&e===j(M)&&(R?a():R=!0,i(N,o-s))):(e.sortIndex=c,w(E,e),A||D||(A=!0,r(I))),e},t.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}}},,function(e,t,n){"use strict";var r=n(231);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,O=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case o:case c:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case a:return t}}}function w(e){return k(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=c,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||k(e)===f},t.isConcurrentMode=w,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return k(e)===h},t.isFragment=function(e){return k(e)===o},t.isLazy=function(e){return k(e)===g},t.isMemo=function(e){return k(e)===m},t.isPortal=function(e){return k(e)===a},t.isProfiler=function(e){return k(e)===c},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===c||e===s||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===O||e.$$typeof===x||e.$$typeof===b)},t.typeOf=k},function(e,t,n){"use strict";var r=n(156),i=n(157),a={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},o=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return o.call(e)},skipNulls:!1,strictNullHandling:!1},c=function e(t,n,i,a,o,c,l,u,f,d,h,p){var v=t;if("function"===typeof l)v=l(n,v);else if(v instanceof Date)v=d(v);else if(null===v){if(a)return c&&!p?c(n,s.encoder):n;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||r.isBuffer(v))return c?[h(p?n:c(n,s.encoder))+"="+h(c(v,s.encoder))]:[h(n)+"="+h(String(v))];var m,g=[];if("undefined"===typeof v)return g;if(Array.isArray(l))m=l;else{var b=Object.keys(v);m=u?b.sort(u):b}for(var y=0;y<m.length;++y){var O=m[y];o&&null===v[O]||(g=Array.isArray(v)?g.concat(e(v[O],i(n,O),i,a,o,c,l,u,f,d,h,p)):g.concat(e(v[O],n+(f?"."+O:"["+O+"]"),i,a,o,c,l,u,f,d,h,p)))}return g};e.exports=function(e,t){var n=e,o=t?r.assign({},t):{};if(null!==o.encoder&&void 0!==o.encoder&&"function"!==typeof o.encoder)throw new TypeError("Encoder has to be a function.");var l="undefined"===typeof o.delimiter?s.delimiter:o.delimiter,u="boolean"===typeof o.strictNullHandling?o.strictNullHandling:s.strictNullHandling,f="boolean"===typeof o.skipNulls?o.skipNulls:s.skipNulls,d="boolean"===typeof o.encode?o.encode:s.encode,h="function"===typeof o.encoder?o.encoder:s.encoder,p="function"===typeof o.sort?o.sort:null,v="undefined"!==typeof o.allowDots&&o.allowDots,m="function"===typeof o.serializeDate?o.serializeDate:s.serializeDate,g="boolean"===typeof o.encodeValuesOnly?o.encodeValuesOnly:s.encodeValuesOnly;if("undefined"===typeof o.format)o.format=i.default;else if(!Object.prototype.hasOwnProperty.call(i.formatters,o.format))throw new TypeError("Unknown format option provided.");var b,y,O=i.formatters[o.format];"function"===typeof o.filter?n=(y=o.filter)("",n):Array.isArray(o.filter)&&(b=y=o.filter);var x,k=[];if("object"!==typeof n||null===n)return"";x=o.arrayFormat in a?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var w=a[x];b||(b=Object.keys(n)),p&&b.sort(p);for(var j=0;j<b.length;++j){var S=b[j];f&&null===n[S]||(k=k.concat(c(n[S],S,w,u,f,d?h:null,y,p,v,m,O,g)))}var C=k.join(l),E=!0===o.addQueryPrefix?"?":"";return C.length>0?E+C:""}},function(e,t,n){"use strict";var r=n(156),i=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},o=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,o=/(\[[^[\]]*])/.exec(r),s=o?r.slice(0,o.index):r,c=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;null!==(o=a.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(o[1])}return o&&c.push("["+r.slice(o.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var a,o=e[i];if("[]"===o)a=(a=[]).concat(r);else{a=n.plainObjects?Object.create(null):{};var s="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=parseInt(s,10);!isNaN(c)&&o!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=r:a[s]=r}r=a}return r}(c,t,n)}};e.exports=function(e,t){var n=t?r.assign({},t):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!==typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"===typeof n.delimiter||r.isRegExp(n.delimiter)?n.delimiter:a.delimiter,n.depth="number"===typeof n.depth?n.depth:a.depth,n.arrayLimit="number"===typeof n.arrayLimit?n.arrayLimit:a.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"===typeof n.decoder?n.decoder:a.decoder,n.allowDots="boolean"===typeof n.allowDots?n.allowDots:a.allowDots,n.plainObjects="boolean"===typeof n.plainObjects?n.plainObjects:a.plainObjects,n.allowPrototypes="boolean"===typeof n.allowPrototypes?n.allowPrototypes:a.allowPrototypes,n.parameterLimit="number"===typeof n.parameterLimit?n.parameterLimit:a.parameterLimit,n.strictNullHandling="boolean"===typeof n.strictNullHandling?n.strictNullHandling:a.strictNullHandling,""===e||null===e||"undefined"===typeof e)return n.plainObjects?Object.create(null):{};for(var s="string"===typeof e?function(e,t){for(var n={},r=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,s=r.split(t.delimiter,o),c=0;c<s.length;++c){var l,u,f=s[c],d=f.indexOf("]="),h=-1===d?f.indexOf("="):d+1;-1===h?(l=t.decoder(f,a.decoder),u=t.strictNullHandling?null:""):(l=t.decoder(f.slice(0,h),a.decoder),u=t.decoder(f.slice(h+1),a.decoder)),i.call(n,l)?n[l]=[].concat(n[l]).concat(u):n[l]=u}return n}(e,n):e,c=n.plainObjects?Object.create(null):{},l=Object.keys(s),u=0;u<l.length;++u){var f=l[u],d=o(f,s[f],n);c=r.merge(c,d,n)}return r.compact(c)}},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){var r=n(131),i=n(160),a=n(265),o=n(267),s=n(62),c=n(168),l=n(165);e.exports=function e(t,n,u,f,d){t!==n&&a(n,(function(a,c){if(d||(d=new r),s(a))o(t,n,c,u,e,f,d);else{var h=f?f(l(t,c),a,c+"",t,n,d):void 0;void 0===h&&(h=a),i(t,c,h)}}),c)}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(98),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():i.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(98);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(98);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(98);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(97);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(97),i=n(132),a=n(134);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!i||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(o)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(133),i=n(250),a=n(62),o=n(159),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,f=l.hasOwnProperty,d=RegExp("^"+u.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||i(e))&&(r(e)?d:s).test(o(e))}},function(e,t,n){var r=n(99),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(c){}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(251),i=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(54)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(254),i=n(97),a=n(132);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(255),i=n(256),a=n(257),o=n(258),s=n(259);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(100);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(100),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(100),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(100);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(101);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(101);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(101);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(101);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(266)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}},function(e,t,n){var r=n(160),i=n(268),a=n(269),o=n(271),s=n(272),c=n(137),l=n(63),u=n(275),f=n(139),d=n(133),h=n(62),p=n(277),v=n(140),m=n(165),g=n(281);e.exports=function(e,t,n,b,y,O,x){var k=m(e,n),w=m(t,n),j=x.get(w);if(j)r(e,n,j);else{var S=O?O(k,w,n+"",e,t,x):void 0,C=void 0===S;if(C){var E=l(w),M=!E&&f(w),P=!E&&!M&&v(w);S=w,E||M||P?l(k)?S=k:u(k)?S=o(k):M?(C=!1,S=i(w,!0)):P?(C=!1,S=a(w,!0)):S=[]:p(w)||c(w)?(S=k,c(k)?S=g(k):h(k)&&!d(k)||(S=s(w))):C=!1}C&&(x.set(w,S),y(S,w,b,O,x),x.delete(w)),r(e,n,S)}}},function(e,t,n){(function(e){var r=n(54),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(136)(e))},function(e,t,n){var r=n(270);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(162);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(273),i=n(163),a=n(102);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:r(i(e))}},function(e,t,n){var r=n(62),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r=n(81),i=n(75);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},function(e,t,n){var r=n(82),i=n(75);e.exports=function(e){return i(e)&&r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(81),i=n(163),a=n(75),o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=r(e))return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(e,t,n){var r=n(81),i=n(138),a=n(75),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&i(e.length)&&!!o[r(e)]}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(158),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===i&&r.process,s=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s}).call(this,n(136)(e))},function(e,t,n){var r=n(166),i=n(168);e.exports=function(e){return r(e,i(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(62),i=n(102),a=n(284),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(142),i=n(286),a=n(288);e.exports=function(e,t){return a(i(e,t,r),e+"")}},function(e,t,n){var r=n(287),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=i(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=n(c),r(e,this,l)}}},function(e,t){e.exports=function(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(e,t,n){var r=n(289),i=n(291)(r);e.exports=i},function(e,t,n){var r=n(290),i=n(161),a=n(142),o=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:a;e.exports=o},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=Date.now;e.exports=function(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(91),i=n(82),a=n(141),o=n(62);e.exports=function(e,t,n){if(!o(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&a(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t,n){var r=n(102),i=n(294),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(164)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(171),i=n(82),a=n(103);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!i(t)){var c=r(n,3);t=a(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,o);return l>-1?s[c?t[l]:l]:void 0}}},function(e,t,n){var r=n(297),i=n(319),a=n(175);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(131),i=n(172);e.exports=function(e,t,n,a){var o=n.length,s=o,c=!a;if(null==e)return!s;for(e=Object(e);o--;){var l=n[o];if(c&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<s;){var u=(l=n[o])[0],f=e[u],d=l[1];if(c&&l[2]){if(void 0===f&&!(u in e))return!1}else{var h=new r;if(a)var p=a(f,d,u,e,t,h);if(!(void 0===p?i(d,f,3,a,h):p))return!1}}return!0}},function(e,t,n){var r=n(131),i=n(173),a=n(304),o=n(307),s=n(314),c=n(63),l=n(139),u=n(140),f="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,v,m,g){var b=c(e),y=c(t),O=b?d:s(e),x=y?d:s(t),k=(O=O==f?h:O)==h,w=(x=x==f?h:x)==h,j=O==x;if(j&&l(e)){if(!l(t))return!1;b=!0,k=!1}if(j&&!k)return g||(g=new r),b||u(e)?i(e,t,n,v,m,g):a(e,t,O,n,v,m,g);if(!(1&n)){var S=k&&p.call(e,"__wrapped__"),C=w&&p.call(t,"__wrapped__");if(S||C){var E=S?e.value():e,M=C?t.value():t;return g||(g=new r),m(E,M,n,v,g)}}return!!j&&(g||(g=new r),o(e,t,n,v,m,g))}},function(e,t,n){var r=n(134),i=n(300),a=n(301);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=i,o.prototype.has=a,e.exports=o},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(99),i=n(162),a=n(91),o=n(173),s=n(305),c=n(306),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,n,r,l,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new i(e),new i(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=s;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var v=d.get(e);if(v)return v==t;r|=2,d.set(e,t);var m=o(h(e),h(t),r,l,f,d);return d.delete(e),m;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(308),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,o,s){var c=1&n,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var f=u;f--;){var d=l[f];if(!(c?d in t:i.call(t,d)))return!1}var h=s.get(e),p=s.get(t);if(h&&p)return h==t&&p==e;var v=!0;s.set(e,t),s.set(t,e);for(var m=c;++f<u;){var g=e[d=l[f]],b=t[d];if(a)var y=c?a(b,g,d,t,e,s):a(g,b,d,e,t,s);if(!(void 0===y?g===b||o(g,b,n,a,s):y)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var O=e.constructor,x=t.constructor;O==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof x&&x instanceof x||(v=!1)}return s.delete(e),s.delete(t),v}},function(e,t,n){var r=n(309),i=n(311),a=n(103);e.exports=function(e){return r(e,a,i)}},function(e,t,n){var r=n(310),i=n(63);e.exports=function(e,t,n){var a=t(e);return i(e)?a:r(a,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t,n){var r=n(312),i=n(313),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return a.call(e,t)})))}:i;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(315),i=n(132),a=n(316),o=n(317),s=n(318),c=n(81),l=n(159),u="[object Map]",f="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",v=l(r),m=l(i),g=l(a),b=l(o),y=l(s),O=c;(r&&O(new r(new ArrayBuffer(1)))!=p||i&&O(new i)!=u||a&&O(a.resolve())!=f||o&&O(new o)!=d||s&&O(new s)!=h)&&(O=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return p;case m:return u;case g:return f;case b:return d;case y:return h}return t}),e.exports=O},function(e,t,n){var r=n(74)(n(54),"DataView");e.exports=r},function(e,t,n){var r=n(74)(n(54),"Promise");e.exports=r},function(e,t,n){var r=n(74)(n(54),"Set");e.exports=r},function(e,t,n){var r=n(74)(n(54),"WeakMap");e.exports=r},function(e,t,n){var r=n(174),i=n(103);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var a=t[n],o=e[a];t[n]=[a,o,r(o)]}return t}},function(e,t,n){var r=n(172),i=n(321),a=n(328),o=n(143),s=n(174),c=n(175),l=n(105);e.exports=function(e,t){return o(e)&&s(t)?c(l(e),t):function(n){var o=i(n,e);return void 0===o&&o===t?a(n,e):r(t,o,3)}}},function(e,t,n){var r=n(176);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){var r=n(323),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(i,(function(e,n,r,i){t.push(r?i.replace(a,"$1"):n||e)})),t}));e.exports=o},function(e,t,n){var r=n(324);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(134);function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(326);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(99),i=n(327),a=n(63),o=n(104),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return i(t,e)+"";if(o(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(329),i=n(330);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(177),i=n(137),a=n(63),o=n(141),s=n(138),c=n(105);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,f=!1;++l<u;){var d=c(t[l]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++l!=u?f:!!(u=null==e?0:e.length)&&s(u)&&o(d,u)&&(a(e)||i(e))}},function(e,t,n){var r=n(332),i=n(333),a=n(143),o=n(105);e.exports=function(e){return a(e)?r(o(e)):i(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(176);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(335),i=n(171),a=n(336),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:a(n);return c<0&&(c=o(s+c,0)),r(e,i(t,3),c)}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}},function(e,t,n){var r=n(337);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},function(e,t,n){var r=n(338),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},function(e,t,n){var r=n(62),i=n(104),a=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):o.test(e)?NaN:+e}},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,l=[],u=!1,f=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):f=-1,l.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(c=l,l=[];++f<t;)c&&c[f].run();f=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(_){c=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new M(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=S(o,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=u(e,t,n);if("normal"===c.type){if(r=n.done?p:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(_){return{type:"throw",arg:_}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function m(){}function g(){}function b(){}var y={};y[a]=function(){return this};var O=Object.getPrototypeOf,x=O&&O(O(P([])));x&&x!==n&&r.call(x,a)&&(y=x);var k=b.prototype=m.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function S(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,S(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=u(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:T}}function T(){return{value:t,done:!0}}return g.prototype=k.constructor=b,b.constructor=g,g.displayName=c(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},w(j.prototype),j.prototype[o]=function(){return this},e.AsyncIterator=j,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new j(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(k),c(k,s,"Generator"),k[a]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=P,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(46);function i(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function a(e){i(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"===typeof e||"[object Number]"===t?new Date(e):("string"!==typeof e&&"[object String]"!==t||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}var o={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s=function(e,t,n){var r,i=o[e];return r="string"===typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!==n&&void 0!==n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function c(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var l={date:c({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:c({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:c({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function f(e){return function(t,n){var r,i=n||{};if("formatting"===(i.context?String(i.context):"standalone")&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,o=i.width?String(i.width):a;r=e.formattingValues[o]||e.formattingValues[a]}else{var s=e.defaultWidth,c=i.width?String(i.width):e.defaultWidth;r=e.values[c]||e.values[s]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function d(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;var o,s=a[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(c)?p(c,(function(e){return e.test(s)})):h(c,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(l):l,o=n.valueCallback?n.valueCallback(o):o;var u=t.slice(s.length);return{value:o,rest:u}}}function h(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function p(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var v,m={code:"en-US",formatDistance:s,formatLong:l,formatRelative:function(e,t,n,r){return u[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:f({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:f({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:f({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:f({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:f({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(v={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(v.matchPattern);if(!n)return null;var r=n[0],i=e.match(v.parsePattern);if(!i)return null;var a=v.valueCallback?v.valueCallback(i[0]):i[0];a=t.valueCallback?t.valueCallback(a):a;var o=e.slice(r.length);return{value:a,rest:o}}),era:d({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:d({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:d({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:d({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:d({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function g(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function b(e,t){i(2,arguments);var n=a(e).getTime(),r=g(t);return new Date(n+r)}function y(e,t){i(2,arguments);var n=g(t);return b(e,-n)}function O(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function x(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function k(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var w={p:k,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],a=r[2];if(!a)return x(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",x(i,t)).replace("{{time}}",k(a,t))}};function j(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var S=["D","DD"],C=["YY","YYYY"];function E(e){return-1!==S.indexOf(e)}function M(e){return-1!==C.indexOf(e)}function P(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}function T(e,t){i(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:g(o),c=null==n.weekStartsOn?s:g(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=a(e),u=l.getUTCDay(),f=(u<c?7:0)+u-c;return l.setUTCDate(l.getUTCDate()-f),l.setUTCHours(0,0,0,0),l}function _(e,t){i(1,arguments);var n=a(e,t),r=n.getUTCFullYear(),o=t||{},s=o.locale,c=s&&s.options&&s.options.firstWeekContainsDate,l=null==c?1:g(c),u=null==o.firstWeekContainsDate?l:g(o.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(r+1,0,u),f.setUTCHours(0,0,0,0);var d=T(f,t),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var p=T(h,t);return n.getTime()>=d.getTime()?r+1:n.getTime()>=p.getTime()?r:r-1}function D(e,t,n){i(2,arguments);var r=n||{},o=r.locale,s=o&&o.options&&o.options.weekStartsOn,c=null==s?0:g(s),l=null==r.weekStartsOn?c:g(r.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=a(e),f=g(t),d=u.getUTCDay(),h=f%7,p=(h+7)%7,v=(p<l?7:0)+f-d;return u.setUTCDate(u.getUTCDate()+v),u}function A(e){i(1,arguments);var t=1,n=a(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function R(e){i(1,arguments);var t=a(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=A(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var c=A(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}function L(e){i(1,arguments);var t=R(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=A(n);return r}var N=6048e5;function I(e){i(1,arguments);var t=a(e),n=A(t).getTime()-L(t).getTime();return Math.round(n/N)+1}function z(e,t){i(1,arguments);var n=t||{},r=n.locale,a=r&&r.options&&r.options.firstWeekContainsDate,o=null==a?1:g(a),s=null==n.firstWeekContainsDate?o:g(n.firstWeekContainsDate),c=_(e,t),l=new Date(0);l.setUTCFullYear(c,0,s),l.setUTCHours(0,0,0,0);var u=T(l,t);return u}var $=6048e5;function F(e,t){i(1,arguments);var n=a(e),r=T(n,t).getTime()-z(n,t).getTime();return Math.round(r/$)+1}var B=/^(1[0-2]|0?\d)/,Q=/^(3[0-1]|[0-2]?\d)/,W=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,H=/^(5[0-3]|[0-4]?\d)/,V=/^(2[0-3]|[0-1]?\d)/,U=/^(2[0-4]|[0-1]?\d)/,q=/^(1[0-1]|0?\d)/,Y=/^(1[0-2]|0?\d)/,X=/^[0-5]?\d/,K=/^[0-5]?\d/,G=/^\d/,Z=/^\d{1,2}/,J=/^\d{1,3}/,ee=/^\d{1,4}/,te=/^-?\d+/,ne=/^-?\d/,re=/^-?\d{1,2}/,ie=/^-?\d{1,3}/,ae=/^-?\d{1,4}/,oe=/^([+-])(\d{2})(\d{2})?|Z/,se=/^([+-])(\d{2})(\d{2})|Z/,ce=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,le=/^([+-])(\d{2}):(\d{2})|Z/,ue=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function fe(e,t,n){var r=t.match(e);if(!r)return null;var i=parseInt(r[0],10);return{value:n?n(i):i,rest:t.slice(r[0].length)}}function de(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function he(e,t){return fe(te,e,t)}function pe(e,t,n){switch(e){case 1:return fe(G,t,n);case 2:return fe(Z,t,n);case 3:return fe(J,t,n);case 4:return fe(ee,t,n);default:return fe(new RegExp("^\\d{1,"+e+"}"),t,n)}}function ve(e,t,n){switch(e){case 1:return fe(ne,t,n);case 2:return fe(re,t,n);case 3:return fe(ie,t,n);case 4:return fe(ae,t,n);default:return fe(new RegExp("^-?\\d{1,"+e+"}"),t,n)}}function me(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ge(e,t){var n,r=t>0,i=r?t:1-t;if(i<=50)n=e||100;else{var a=i+50;n=e+100*Math.floor(a/100)-(e>=a%100?100:0)}return r?n:1-n}var be=[31,28,31,30,31,30,31,31,30,31,30,31],ye=[31,29,31,30,31,30,31,31,30,31,30,31];function Oe(e){return e%400===0||e%4===0&&e%100!==0}var xe={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["R","u","t","T"]},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return pe(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return pe(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=e.getUTCFullYear();if(n.isTwoDigitYear){var a=ge(n.year,i);return e.setUTCFullYear(a,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","u","w","I","i","e","c","t","T"]},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return pe(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return pe(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i=_(e,r);if(n.isTwoDigitYear){var a=ge(n.year,i);return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),T(e,r)}var o="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),T(e,r)},incompatibleTokens:["y","R","u","Q","q","M","L","I","d","D","i","t","T"]},R:{priority:130,parse:function(e,t,n,r){return ve("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),A(i)},incompatibleTokens:["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]},u:{priority:130,parse:function(e,t,n,r){return ve("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["G","y","Y","R","w","I","i","e","c","t","T"]},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return pe(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return pe(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return fe(B,e,i);case"MM":return pe(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return fe(B,e,i);case"LL":return pe(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return fe(H,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return T(function(e,t,n){i(2,arguments);var r=a(e),o=g(t),s=F(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*s),r}(e,n,r),r)},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","i","t","T"]},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return fe(H,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return A(function(e,t){i(2,arguments);var n=a(e),r=g(t),o=I(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n,r),r)},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]},d:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"d":return fe(Q,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return pe(t.length,e)}},validate:function(e,t,n){var r=Oe(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=ye[i]:t>=1&&t<=be[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","w","I","D","i","e","c","t","T"]},D:{priority:90,subPriority:1,parse:function(e,t,n,r){switch(t){case"D":case"DD":return fe(W,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return pe(t.length,e)}},validate:function(e,t,n){return Oe(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e},incompatibleTokens:["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=D(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["D","i","e","c","t","T"]},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return pe(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=D(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return pe(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=D(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return pe(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){i(2,arguments);var n=g(t);n%7===0&&(n-=7);var r=1,o=a(e),s=o.getUTCDay(),c=((n%7+7)%7<r?7:0)+n-s;return o.setUTCDate(o.getUTCDate()+c),o}(e,n,r)).setUTCHours(0,0,0,0),e},incompatibleTokens:["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(me(n),0,0,0),e},incompatibleTokens:["b","B","H","K","k","t","T"]},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(me(n),0,0,0),e},incompatibleTokens:["a","B","H","K","k","t","T"]},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(me(n),0,0,0),e},incompatibleTokens:["a","b","t","T"]},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return fe(Y,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e},incompatibleTokens:["H","K","k","t","T"]},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return fe(V,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","K","k","t","T"]},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return fe(q,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e},incompatibleTokens:["a","b","h","H","k","t","T"]},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return fe(U,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e},incompatibleTokens:["a","b","h","H","K","t","T"]},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return fe(X,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e},incompatibleTokens:["t","T"]},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return fe(K,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return pe(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e},incompatibleTokens:["t","T"]},S:{priority:30,parse:function(e,t,n,r){return pe(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e},incompatibleTokens:["t","T"]},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return de(oe,e);case"XX":return de(se,e);case"XXXX":return de(ce,e);case"XXXXX":return de(ue,e);case"XXX":default:return de(le,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","x"]},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return de(oe,e);case"xx":return de(se,e);case"xxxx":return de(ce,e);case"xxxxx":return de(ue,e);case"xxx":default:return de(le,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)},incompatibleTokens:["t","T","X"]},t:{priority:40,parse:function(e,t,n,r){return he(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]},incompatibleTokens:"*"},T:{priority:20,parse:function(e,t,n,r){return he(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]},incompatibleTokens:"*"}},ke=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,we=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,je=/^'([^]*?)'?$/,Se=/''/g,Ce=/\S/,Ee=/[a-zA-Z]/;function Me(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function Pe(e){return e.match(je)[1].replace(Se,"'")}var Te=36e5,_e={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},De=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Ae=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Re=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Le(e){var t,n={},r=e.split(_e.dateTimeDelimiter);if(r.length>2)return n;if(/:/.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1],_e.timeZoneDelimiter.test(n.date)&&(n.date=e.split(_e.timeZoneDelimiter)[0],t=e.substr(n.date.length,e.length))),t){var i=_e.timezone.exec(t);i?(n.time=t.replace(i[1],""),n.timezone=i[1]):n.time=t}return n}function Ne(e,t){var n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:null};var i=r[1]&&parseInt(r[1]),a=r[2]&&parseInt(r[2]);return{year:null==a?i:100*a,restDateString:e.slice((r[1]||r[2]).length)}}function Ie(e,t){if(null===t)return null;var n=e.match(De);if(!n)return null;var r=!!n[4],i=ze(n[1]),a=ze(n[2])-1,o=ze(n[3]),s=ze(n[4]),c=ze(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,c)?function(e,t,n){var r=new Date(0);r.setUTCFullYear(e,0,4);var i=r.getUTCDay()||7,a=7*(t-1)+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}(t,s,c):new Date(NaN);var l=new Date(0);return function(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Qe[t]||(We(e)?29:28))}(t,a,o)&&function(e,t){return t>=1&&t<=(We(e)?366:365)}(t,i)?(l.setUTCFullYear(t,a,Math.max(i,o)),l):new Date(NaN)}function ze(e){return e?parseInt(e):1}function $e(e){var t=e.match(Ae);if(!t)return null;var n=Fe(t[1]),r=Fe(t[2]),i=Fe(t[3]);return function(e,t,n){if(24===e)return 0===t&&0===n;return n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}(n,r,i)?n*Te+6e4*r+1e3*i:NaN}function Fe(e){return e&&parseFloat(e.replace(",","."))||0}function Be(e){if("Z"===e)return 0;var t=e.match(Re);if(!t)return 0;var n="+"===t[1]?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return function(e,t){return t>=0&&t<=59}(0,i)?n*(r*Te+6e4*i):NaN}var Qe=[31,null,31,30,31,30,31,31,30,31,30,31];function We(e){return e%400===0||e%4===0&&e%100}function He(e){return i(1,arguments),e instanceof Date||"object"===typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function Ve(e){if(i(1,arguments),!He(e)&&"number"!==typeof e)return!1;var t=a(e);return!isNaN(Number(t))}function Ue(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var qe={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Ue("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Ue(n+1,2)},d:function(e,t){return Ue(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Ue(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Ue(e.getUTCHours(),t.length)},m:function(e,t){return Ue(e.getUTCMinutes(),t.length)},s:function(e,t){return Ue(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Ue(Math.floor(r*Math.pow(10,n-3)),t.length)}},Ye=864e5;var Xe="midnight",Ke="noon",Ge="morning",Ze="afternoon",Je="evening",et="night";function tt(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=r%60;if(0===a)return n+String(i);var o=t||"";return n+String(i)+o+Ue(a,2)}function nt(e,t){return e%60===0?(e>0?"-":"+")+Ue(Math.abs(e)/60,2):rt(e,t)}function rt(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+Ue(Math.floor(i/60),2)+n+Ue(i%60,2)}var it={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return qe.y(e,t)},Y:function(e,t,n,r){var i=_(e,r),a=i>0?i:1-i;return"YY"===t?Ue(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Ue(a,t.length)},R:function(e,t){return Ue(R(e),t.length)},u:function(e,t){return Ue(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ue(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ue(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return qe.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Ue(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=F(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Ue(i,t.length)},I:function(e,t,n){var r=I(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Ue(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):qe.d(e,t)},D:function(e,t,n){var r=function(e){i(1,arguments);var t=a(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/Ye)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Ue(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Ue(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Ue(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return Ue(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?Ke:0===i?Xe:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?Je:i>=12?Ze:i>=4?Ge:et,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return qe.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):qe.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Ue(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):qe.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):qe.s(e,t)},S:function(e,t){return qe.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return nt(i);case"XXXX":case"XX":return rt(i);case"XXXXX":case"XXX":default:return rt(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return nt(i);case"xxxx":case"xx":return rt(i);case"xxxxx":case"xxx":default:return rt(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+tt(i,":");case"OOOO":default:return"GMT"+rt(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+tt(i,":");case"zzzz":default:return"GMT"+rt(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return Ue(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return Ue((r._originalDate||e).getTime(),t.length)}},at=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ot=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,st=/^'([^]*?)'?$/,ct=/''/g,lt=/[a-zA-Z]/;function ut(e){return e.match(st)[1].replace(ct,"'")}var ft=36e5;function dt(e,t){i(2,arguments);var n=a(e),r=g(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function ht(e,t){i(2,arguments);var n=a(e),r=g(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),s=new Date(n.getTime());s.setMonth(n.getMonth()+r+1,0);var c=s.getDate();return o>=c?s:(n.setFullYear(s.getFullYear(),s.getMonth(),o),n)}function pt(e,t){return i(2,arguments),a(e).getTime()-a(t).getTime()}var vt={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function mt(e){return e?vt[e]:vt.trunc}Math.pow(10,8);var gt=36e5;function bt(e){i(1,arguments);var t=a(e);return t.setHours(0,0,0,0),t}var yt=864e5;function Ot(e,t){i(2,arguments);var n=bt(e),r=bt(t),a=n.getTime()-j(n),o=r.getTime()-j(r);return Math.round((a-o)/yt)}function xt(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function kt(e,t){i(2,arguments);var n=a(e),r=a(t),o=xt(n,r),s=Math.abs(Ot(n,r));n.setDate(n.getDate()-o*s);var c=Number(xt(n,r)===-o),l=o*(s-c);return 0===l?0:l}function wt(e,t){i(2,arguments);var n=a(e),r=a(t),o=n.getFullYear()-r.getFullYear(),s=n.getMonth()-r.getMonth();return 12*o+s}function jt(e,t){i(2,arguments);var n=a(e),r=a(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}function St(e){i(1,arguments);var t=a(e);return t.setHours(23,59,59,999),t}function Ct(e){i(1,arguments);var t=a(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function Et(e){i(1,arguments);var t=a(e);return St(t).getTime()===Ct(t).getTime()}function Mt(e,t){i(2,arguments);var n,r=a(e),o=a(t),s=jt(r,o),c=Math.abs(wt(r,o));if(c<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*c);var l=jt(r,o)===-s;Et(a(e))&&1===c&&1===jt(e,o)&&(l=!1),n=s*(c-Number(l))}return 0===n?0:n}function Pt(e,t){i(2,arguments);var n=a(e),r=a(t);return n.getFullYear()-r.getFullYear()}function Tt(e,t){i(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:g(o),c=null==n.weekStartsOn?s:g(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=a(e),u=l.getDay(),f=(u<c?7:0)+u-c;return l.setDate(l.getDate()-f),l.setHours(0,0,0,0),l}var _t={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};r.b._date.override({_id:"date-fns",formats:function(){return _t},parse:function(e,t){if(null===e||"undefined"===typeof e)return null;var n=typeof e;return"number"===n||e instanceof Date?e=a(e):"string"===n&&(e="string"===typeof t?function(e,t,n,r){i(3,arguments);var o=String(e),s=String(t),c=r||{},l=c.locale||m;if(!l.match)throw new RangeError("locale must contain match property");var u=l.options&&l.options.firstWeekContainsDate,f=null==u?1:g(u),d=null==c.firstWeekContainsDate?f:g(c.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=l.options&&l.options.weekStartsOn,p=null==h?0:g(h),v=null==c.weekStartsOn?p:g(c.weekStartsOn);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===s)return""===o?a(n):new Date(NaN);var b,x={firstWeekContainsDate:d,weekStartsOn:v,locale:l},k=[{priority:10,subPriority:-1,set:Me,index:0}],S=s.match(we).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,l.formatLong,x):e})).join("").match(ke),C=[];for(b=0;b<S.length;b++){var T=S[b];!c.useAdditionalWeekYearTokens&&M(T)&&P(T,s,e),!c.useAdditionalDayOfYearTokens&&E(T)&&P(T,s,e);var _=T[0],D=xe[_];if(D){var A=D.incompatibleTokens;if(Array.isArray(A)){for(var R=void 0,L=0;L<C.length;L++){var N=C[L].token;if(-1!==A.indexOf(N)||N===_){R=C[L];break}}if(R)throw new RangeError("The format string mustn't contain `".concat(R.fullToken,"` and `").concat(T,"` at the same time"))}else if("*"===D.incompatibleTokens&&C.length)throw new RangeError("The format string mustn't contain `".concat(T,"` and any other token at the same time"));C.push({token:_,fullToken:T});var I=D.parse(o,T,l.match,x);if(!I)return new Date(NaN);k.push({priority:D.priority,subPriority:D.subPriority||0,set:D.set,validate:D.validate,value:I.value,index:k.length}),o=I.rest}else{if(_.match(Ee))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");if("''"===T?T="'":"'"===_&&(T=Pe(T)),0!==o.indexOf(T))return new Date(NaN);o=o.slice(T.length)}}if(o.length>0&&Ce.test(o))return new Date(NaN);var z=k.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return k.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),$=a(n);if(isNaN($))return new Date(NaN);var F=y($,j($)),B={};for(b=0;b<z.length;b++){var Q=z[b];if(Q.validate&&!Q.validate(F,Q.value,x))return new Date(NaN);var W=Q.set(F,B,Q.value,x);W[0]?(F=W[0],O(B,W[1])):F=W}return F}(e,t,new Date,this.options):function(e,t){i(1,arguments);var n=t||{},r=null==n.additionalDigits?2:g(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!==typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var a,o=Le(e);if(o.date){var s=Ne(o.date,r);a=Ie(s.restDateString,s.year)}if(isNaN(a)||!a)return new Date(NaN);var c,l=a.getTime(),u=0;if(o.time&&(u=$e(o.time),isNaN(u)||null===u))return new Date(NaN);if(!o.timezone){var f=new Date(l+u),d=new Date(0);return d.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),d.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),d}return c=Be(o.timezone),isNaN(c)?new Date(NaN):new Date(l+u+c)}(e,this.options)),Ve(e)?e.getTime():null},format:function(e,t){return function(e,t,n){i(2,arguments);var r=String(t),o=n||{},s=o.locale||m,c=s.options&&s.options.firstWeekContainsDate,l=null==c?1:g(c),u=null==o.firstWeekContainsDate?l:g(o.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=s.options&&s.options.weekStartsOn,d=null==f?0:g(f),h=null==o.weekStartsOn?d:g(o.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!s.localize)throw new RangeError("locale must contain localize property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var p=a(e);if(!Ve(p))throw new RangeError("Invalid time value");var v=j(p),b=y(p,v),O={firstWeekContainsDate:u,weekStartsOn:h,locale:s,_originalDate:p};return r.match(ot).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,s.formatLong,O):e})).join("").match(at).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return ut(n);var i=it[r];if(i)return!o.useAdditionalWeekYearTokens&&M(n)&&P(n,t,e),!o.useAdditionalDayOfYearTokens&&E(n)&&P(n,t,e),i(b,n,s.localize,O);if(r.match(lt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("")}(e,t,this.options)},add:function(e,t,n){switch(n){case"millisecond":return b(e,t);case"second":return function(e,t){i(2,arguments);var n=g(t);return b(e,1e3*n)}(e,t);case"minute":return function(e,t){i(2,arguments);var n=g(t);return b(e,6e4*n)}(e,t);case"hour":return function(e,t){i(2,arguments);var n=g(t);return b(e,n*ft)}(e,t);case"day":return dt(e,t);case"week":return function(e,t){i(2,arguments);var n=g(t);return dt(e,7*n)}(e,t);case"month":return ht(e,t);case"quarter":return function(e,t){i(2,arguments);var n=g(t);return ht(e,3*n)}(e,t);case"year":return function(e,t){i(2,arguments);var n=g(t);return ht(e,12*n)}(e,t);default:return e}},diff:function(e,t,n){switch(n){case"millisecond":return pt(e,t);case"second":return function(e,t,n){i(2,arguments);var r=pt(e,t)/1e3;return mt(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,t);case"minute":return function(e,t,n){i(2,arguments);var r=pt(e,t)/6e4;return mt(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,t);case"hour":return function(e,t,n){i(2,arguments);var r=pt(e,t)/gt;return mt(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,t);case"day":return kt(e,t);case"week":return function(e,t,n){i(2,arguments);var r=kt(e,t)/7;return mt(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,t);case"month":return Mt(e,t);case"quarter":return function(e,t,n){i(2,arguments);var r=Mt(e,t)/3;return mt(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,t);case"year":return function(e,t){i(2,arguments);var n=a(e),r=a(t),o=jt(n,r),s=Math.abs(Pt(n,r));n.setFullYear(1584),r.setFullYear(1584);var c=jt(n,r)===-o,l=o*(s-Number(c));return 0===l?0:l}(e,t);default:return 0}},startOf:function(e,t,n){switch(t){case"second":return function(e){i(1,arguments);var t=a(e);return t.setMilliseconds(0),t}(e);case"minute":return function(e){i(1,arguments);var t=a(e);return t.setSeconds(0,0),t}(e);case"hour":return function(e){i(1,arguments);var t=a(e);return t.setMinutes(0,0,0),t}(e);case"day":return bt(e);case"week":return Tt(e);case"isoWeek":return Tt(e,{weekStartsOn:+n});case"month":return function(e){i(1,arguments);var t=a(e);return t.setDate(1),t.setHours(0,0,0,0),t}(e);case"quarter":return function(e){i(1,arguments);var t=a(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}(e);case"year":return function(e){i(1,arguments);var t=a(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}(e);default:return e}},endOf:function(e,t){switch(t){case"second":return function(e){i(1,arguments);var t=a(e);return t.setMilliseconds(999),t}(e);case"minute":return function(e){i(1,arguments);var t=a(e);return t.setSeconds(59,999),t}(e);case"hour":return function(e){i(1,arguments);var t=a(e);return t.setMinutes(59,59,999),t}(e);case"day":return St(e);case"week":return function(e,t){i(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:g(o),c=null==n.weekStartsOn?s:g(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=a(e),u=l.getDay(),f=6+(u<c?-7:0)-(u-c);return l.setDate(l.getDate()+f),l.setHours(23,59,59,999),l}(e);case"month":return Ct(e);case"quarter":return function(e){i(1,arguments);var t=a(e),n=t.getMonth(),r=n-n%3+3;return t.setMonth(r,0),t.setHours(23,59,59,999),t}(e);case"year":return function(e){i(1,arguments);var t=a(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}(e);default:return e}}})},,function(e,t,n){"use strict";var r=n(2),i=n(28),a=n(8),o=n(0),s=(n(12),n(125)),c=n(37),l=n(53),u=n(23);function f(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var d={entering:{opacity:1,transform:f(1)},entered:{opacity:1,transform:"none"}},h=o.forwardRef((function(e,t){var n=e.children,h=e.disableStrictModeCompat,p=void 0!==h&&h,v=e.in,m=e.onEnter,g=e.onEntered,b=e.onEntering,y=e.onExit,O=e.onExited,x=e.onExiting,k=e.style,w=e.timeout,j=void 0===w?"auto":w,S=e.TransitionComponent,C=void 0===S?s.a:S,E=Object(a.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),M=o.useRef(),P=o.useRef(),T=Object(c.a)(),_=T.unstable_strictMode&&!p,D=o.useRef(null),A=Object(u.a)(n.ref,t),R=Object(u.a)(_?D:void 0,A),L=function(e){return function(t,n){if(e){var r=_?[D.current,t]:[t,n],a=Object(i.a)(r,2),o=a[0],s=a[1];void 0===s?e(o):e(o,s)}}},N=L(b),I=L((function(e,t){Object(l.b)(e);var n,r=Object(l.a)({style:k,timeout:j},{mode:"enter"}),i=r.duration,a=r.delay;"auto"===j?(n=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=n):n=i,e.style.transition=[T.transitions.create("opacity",{duration:n,delay:a}),T.transitions.create("transform",{duration:.666*n,delay:a})].join(","),m&&m(e,t)})),z=L(g),$=L(x),F=L((function(e){var t,n=Object(l.a)({style:k,timeout:j},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===j?(t=T.transitions.getAutoHeightDuration(e.clientHeight),P.current=t):t=r,e.style.transition=[T.transitions.create("opacity",{duration:t,delay:i}),T.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=f(.75),y&&y(e)})),B=L(O);return o.useEffect((function(){return function(){clearTimeout(M.current)}}),[]),o.createElement(C,Object(r.a)({appear:!0,in:v,nodeRef:_?D:void 0,onEnter:I,onEntered:z,onEntering:N,onExit:F,onExited:B,onExiting:$,addEndListener:function(e,t){var n=_?e:t;"auto"===j&&(M.current=setTimeout(n,P.current||0))},timeout:"auto"===j?null:j},E),(function(e,t){return o.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:f(.75),visibility:"exited"!==e||v?void 0:"hidden"},d[e],k,n.props.style),ref:R},t))}))}));h.muiSupportAuto=!0,t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(2),i=n(64);function a(e){return e&&"object"===Object(i.a)(e)&&e.constructor===Object}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(a(t[r])&&r in e?i[r]=o(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return vn}));var r=n(8),i=n(2),a=n(0),o=n.n(a),s="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},c="object"===("undefined"===typeof window?"undefined":s(window))&&"object"===("undefined"===typeof document?"undefined":s(document))&&9===document.nodeType;var l=n(41),u=n(52),f=n(76),d=n(57),h={}.constructor;function p(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(p);if(e.constructor!==h)return e;var t={};for(var n in e)t[n]=p(e[n]);return t}function v(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=p(t),a=r.plugins.onCreateRule(e,i,n);return a||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},g=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=m(e[r]," ");else n=m(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function b(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function y(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,a=void 0===i?0:i,o=t.fallbacks;if(e&&a++,o)if(Array.isArray(o))for(var s=0;s<o.length;s++){var c=o[s];for(var l in c){var u=c[l];null!=u&&(r&&(r+="\n"),r+=""+b(l+": "+g(u)+";",a))}}else for(var f in o){var d=o[f];null!=d&&(r&&(r+="\n"),r+=""+b(f+": "+g(d)+";",a))}for(var h in t){var p=t[h];null!=p&&"fallbacks"!==h&&(r&&(r+="\n"),r+=""+b(h+": "+g(p)+";",a))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),b(e+" {"+r,--a)+b("}",a)):r}var O=/([[\].#*$><+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,k=function(e){return x?x(e):e.replace(O,"\\$1")},w=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var a=null==i||!1===i,o=e in this.style;if(a&&!o&&!r)return this;var s=a&&o;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var c=this.options.sheet;return c&&c.attached,this},e}(),j=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;var a=r.selector,o=r.scoped,s=r.sheet,c=r.generateId;return a?i.selectorText=a:!1!==o&&(i.id=c(Object(f.a)(Object(f.a)(i)),s),i.selectorText="."+k(i.id)),i}Object(u.a)(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=g(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(i.a)({},e,{allowEmpty:!0}):e;return y(this.selectorText,this.style,n)},Object(l.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(w),S={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new j(e,t,n)}},C={indent:1,children:!0},E=/@([\w-]+)/,M=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(E);for(var a in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new G(Object(i.a)({},n,{parent:this})),t)this.rules.add(a,t[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=C),null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),P=/@media|@supports\s+/,T={onCreateRule:function(e,t,n){return P.test(e)?new M(e,t,n):null}},_={indent:1,children:!0},D=/@keyframes\s+([\w-]+)/,A=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(D);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,o=n.sheet,s=n.generateId;for(var c in this.id=!1===a?this.name:k(s(this,o)),this.rules=new G(Object(i.a)({},n,{parent:this})),t)this.rules.add(c,t[c],Object(i.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=_),null==e.indent&&(e.indent=_.indent),null==e.children&&(e.children=_.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),R=/@keyframes\s+/,L=/\$([\w-]+)/g,N=function(e,t){return"string"===typeof e?e.replace(L,(function(e,n){return n in t?t[n]:e})):e},I=function(e,t,n){var r=e[t],i=N(r,n);i!==r&&(e[t]=i)},z={onCreateRule:function(e,t,n){return"string"===typeof e&&R.test(e)?new A(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&I(e,"animation-name",n.keyframes),"animation"in e&&I(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return N(e,r.keyframes);default:return e}}},$=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).renderable=void 0,t}return Object(u.a)(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(i.a)({},e,{allowEmpty:!0}):e;return y(this.key,this.style,n)},t}(w),F={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new $(e,t,n):null}},B=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=y(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return y(this.at,this.style,e)},e}(),Q=/@font-face/,W={onCreateRule:function(e,t,n){return Q.test(e)?new B(e,t,n):null}},H=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return y(this.key,this.style,e)},e}(),V={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new H(e,t,n):null}},U=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),q={"@charset":!0,"@import":!0,"@namespace":!0},Y=[S,T,z,F,W,V,{onCreateRule:function(e,t,n){return e in q?new U(e,t,n):null}}],X={process:!0},K={force:!0,process:!0},G=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,a=r.parent,o=r.sheet,s=r.jss,c=r.Renderer,l=r.generateId,u=r.scoped,f=Object(i.a)({classes:this.classes,parent:a,sheet:o,jss:s,Renderer:c,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+k(this.classes[d]));var h=v(d,t,f);if(!h)return null;this.register(h);var p=void 0===f.index?this.index.length:f.index;return this.index.splice(p,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof j?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof A&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof j?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof A&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=X);var i=this.options,a=i.jss.plugins,o=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,c=s.style;if(a.onUpdate(n,t,o,r),r.process&&c&&c!==s.style){for(var l in a.onProcessStyle(s.style,s,o),s.style){var u=s.style[l];u!==c[l]&&s.prop(l,u,K)}for(var f in c){var d=s.style[f],h=c[f];null==d&&d!==h&&s.prop(f,null,K)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||r)&&(t&&(t+="\n"),t+=a)}return t},e}(),Z=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(i.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new G(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),J=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ee=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(d.a)(t,["attached"]),i="",a=0;a<this.registry.length;a++){var o=this.registry[a];null!=n&&o.attached!==n||(i&&(i+="\n"),i+=o.toString(r))}return i},Object(l.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),te="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),ne="2f1acc6c3a606b082e5eef5e54414ffb";null==te[ne]&&(te[ne]=0);var re=te[ne]++,ie=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",a="";return r&&(r.options.classNamePrefix&&(a=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(a||"c")+re+i+t:a+n.key+"-"+re+(i?"-"+i:"")+"-"+t}},ae=function(e){var t;return function(){return t||(t=e()),t}},oe=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},se=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=g(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(i){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},le=function(e,t){return e.selectorText=t,e.selectorText===t},ue=ae((function(){return document.querySelector("head")}));function fe(e){var t=ee.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=ue(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var de=ae((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),he=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(r){return!1}return e.cssRules[n]},pe=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ve=function(){function e(e){this.getPropertyValue=oe,this.setProperty=se,this.removeProperty=ce,this.setSelector=le,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&ee.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var a=de();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=fe(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,a=i.parentNode;a&&a.insertBefore(e,i.nextSibling)}else ue().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var a=pe(n,t);if(!1===(i=he(n,r.toString({children:!1}),a)))return!1;this.refCssRule(e,a,i)}return this.insertRules(r.rules,i),i}var o=e.toString();if(!o)return!1;var s=pe(n,t),c=he(n,o,s);return!1!==c&&(this.hasInsertedRules=!0,this.refCssRule(e,s,c),c)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Z&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),me=0,ge=function(){function e(e){this.id=me++,this.version="10.5.0",this.plugins=new J,this.options={id:{minify:!1},createGenerateId:ie,Renderer:c?ve:null,plugins:[]},this.generateId=ie({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(i.a)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===ee.index?0:ee.index+1);var r=new Z(e,Object(i.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ee.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=Object(i.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var a=v(e,t,r);return a&&this.plugins.onProcessRule(a),a},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function be(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var a=be(r);a&&(t||(t={}),t[n]=a)}}return t}var ye="object"===typeof CSS&&null!=CSS&&"number"in CSS,Oe=function(e){return new ge(e)},xe=(Oe(),n(375)),ke={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},we=n(204),je=(n(12),n(114)),Se=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ce=Date.now(),Ee="fnValues"+Ce,Me="fnStyle"+ ++Ce,Pe=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=v(e,{},n);return r[Me]=t,r},onProcessStyle:function(e,t){if(Ee in t||Me in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Ee]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[Me];a&&(i.style=a(e)||{});var o=i[Ee];if(o)for(var s in o)i.prop(s,o[s](e),r)}}},Te="@global",_e="@global ",De=function(){function e(e,t,n){for(var r in this.type="global",this.at=Te,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new G(Object(i.a)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Ae=function(){function e(e,t,n){this.type="global",this.at=Te,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(_e.length);this.rule=n.jss.createRule(r,t,Object(i.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Re=/\s*,\s*/g;function Le(e,t){for(var n=e.split(Re),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var Ne=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Te)return new De(e,t,n);if("@"===e[0]&&e.substr(0,_e.length)===_e)return new Ae(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,a=r?r[Te]:null;if(a){for(var o in a)t.addRule(o,a[o],Object(i.a)({},n,{selector:Le(o,e.selector)}));delete r[Te]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var a in r)if("@"===a[0]&&a.substr(0,Te.length)===Te){var o=Le(a.substr(Te.length),e.selector);t.addRule(o,r[a],Object(i.a)({},n,{selector:o})),delete r[a]}}(e,t))}}},Ie=/\s*,\s*/g,ze=/&/g,$e=/\$([\w-]+)/g;var Fe=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?(i=i).selector:r}}function t(e,t){for(var n=t.split(Ie),r=e.split(Ie),i="",a=0;a<n.length;a++)for(var o=n[a],s=0;s<r.length;s++){var c=r[s];i&&(i+=", "),i+=-1!==c.indexOf("&")?c.replace(ze,o):o+" "+c}return i}function n(e,t,n){if(n)return Object(i.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var a=Object(i.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete a.name,a}return{onProcessStyle:function(r,a,o){if("style"!==a.type)return r;var s,c,l=a,u=l.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),h="@"===f[0];if(d||h){if(s=n(l,u,s),d){var p=t(f,l.selector);c||(c=e(u,o)),p=p.replace($e,c),u.addRule(p,r[f],Object(i.a)({},s,{selector:p}))}else h&&u.addRule(f,{},s).addRule(l.key,r[f],{selector:l.selector});delete r[f]}}return r}}},Be=/[A-Z]/g,Qe=/^ms-/,We={};function He(e){return"-"+e.toLowerCase()}var Ve=function(e){if(We.hasOwnProperty(e))return We[e];var t=e.replace(Be,He);return We[e]=Qe.test(t)?"-"+t:t};function Ue(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:Ve(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ue):t.fallbacks=Ue(e.fallbacks)),t}var qe=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ue(e[t]);return e}return Ue(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=Ve(t);return t===r?e:(n.prop(r,e),null)}}},Ye=ye&&CSS?CSS.px:"px",Xe=ye&&CSS?CSS.ms:"ms",Ke=ye&&CSS?CSS.percent:"%";function Ge(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Ze=Ge({"animation-delay":Xe,"animation-duration":Xe,"background-position":Ye,"background-position-x":Ye,"background-position-y":Ye,"background-size":Ye,border:Ye,"border-bottom":Ye,"border-bottom-left-radius":Ye,"border-bottom-right-radius":Ye,"border-bottom-width":Ye,"border-left":Ye,"border-left-width":Ye,"border-radius":Ye,"border-right":Ye,"border-right-width":Ye,"border-top":Ye,"border-top-left-radius":Ye,"border-top-right-radius":Ye,"border-top-width":Ye,"border-width":Ye,"border-block":Ye,"border-block-end":Ye,"border-block-end-width":Ye,"border-block-start":Ye,"border-block-start-width":Ye,"border-block-width":Ye,"border-inline":Ye,"border-inline-end":Ye,"border-inline-end-width":Ye,"border-inline-start":Ye,"border-inline-start-width":Ye,"border-inline-width":Ye,"border-start-start-radius":Ye,"border-start-end-radius":Ye,"border-end-start-radius":Ye,"border-end-end-radius":Ye,margin:Ye,"margin-bottom":Ye,"margin-left":Ye,"margin-right":Ye,"margin-top":Ye,"margin-block":Ye,"margin-block-end":Ye,"margin-block-start":Ye,"margin-inline":Ye,"margin-inline-end":Ye,"margin-inline-start":Ye,padding:Ye,"padding-bottom":Ye,"padding-left":Ye,"padding-right":Ye,"padding-top":Ye,"padding-block":Ye,"padding-block-end":Ye,"padding-block-start":Ye,"padding-inline":Ye,"padding-inline-end":Ye,"padding-inline-start":Ye,"mask-position-x":Ye,"mask-position-y":Ye,"mask-size":Ye,height:Ye,width:Ye,"min-height":Ye,"max-height":Ye,"min-width":Ye,"max-width":Ye,bottom:Ye,left:Ye,top:Ye,right:Ye,inset:Ye,"inset-block":Ye,"inset-block-end":Ye,"inset-block-start":Ye,"inset-inline":Ye,"inset-inline-end":Ye,"inset-inline-start":Ye,"box-shadow":Ye,"text-shadow":Ye,"column-gap":Ye,"column-rule":Ye,"column-rule-width":Ye,"column-width":Ye,"font-size":Ye,"font-size-delta":Ye,"letter-spacing":Ye,"text-indent":Ye,"text-stroke":Ye,"text-stroke-width":Ye,"word-spacing":Ye,motion:Ye,"motion-offset":Ye,outline:Ye,"outline-offset":Ye,"outline-width":Ye,perspective:Ye,"perspective-origin-x":Ke,"perspective-origin-y":Ke,"transform-origin":Ke,"transform-origin-x":Ke,"transform-origin-y":Ke,"transform-origin-z":Ke,"transition-delay":Xe,"transition-duration":Xe,"vertical-align":Ye,"flex-basis":Ye,"shape-margin":Ye,size:Ye,gap:Ye,grid:Ye,"grid-gap":Ye,"grid-row-gap":Ye,"grid-column-gap":Ye,"grid-template-rows":Ye,"grid-template-columns":Ye,"grid-auto-rows":Ye,"grid-auto-columns":Ye,"box-shadow-x":Ye,"box-shadow-y":Ye,"box-shadow-blur":Ye,"box-shadow-spread":Ye,"font-line-height":Ye,"text-shadow-x":Ye,"text-shadow-y":Ye,"text-shadow-blur":Ye});function Je(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=Je(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=Je(i,t[i],n);else for(var a in t)t[a]=Je(e+"-"+a,t[a],n);else if("number"===typeof t){var o=n[e]||Ze[e];return!o||0===t&&o===Ye?t.toString():"function"===typeof o?o(t).toString():""+t+o}return t}var et=function(e){void 0===e&&(e={});var t=Ge(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=Je(r,e[r],t);return e},onChangeValue:function(e,n){return Je(n,e,t)}}},tt=n(58),nt="",rt="",it="",at="",ot=c&&"ontouchstart"in document.documentElement;if(c){var st={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ct=document.createElement("p").style;for(var lt in st)if(lt+"Transform"in ct){nt=lt,rt=st[lt];break}"Webkit"===nt&&"msHyphens"in ct&&(nt="ms",rt=st.ms,at="edge"),"Webkit"===nt&&"-apple-trailing-word"in ct&&(it="apple")}var ut=nt,ft=rt,dt=it,ht=at,pt=ot;var vt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ut?"-webkit-"+e:ft+e)}},mt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ut?ft+"print-"+e:e)}},gt=/[-\s]+(.)?/g;function bt(e,t){return t?t.toUpperCase():""}function yt(e){return e.replace(gt,bt)}function Ot(e){return yt("-"+e)}var xt,kt={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ut){var n="mask-image";if(yt(n)in t)return e;if(ut+Ot(n)in t)return ft+e}return e}},wt={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==dt||pt?e:ft+e)}},jt={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:ft+e)}},St={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:ft+e)}},Ct={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ut||"ms"===ut&&"edge"!==ht?ft+e:e)}},Et={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ut||"ms"===ut||"apple"===dt?ft+e:e)}},Mt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ut?"WebkitColumn"+Ot(e)in t&&ft+"column-"+e:"Moz"===ut&&("page"+Ot(e)in t&&"page-"+e))}},Pt={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ut)return e;var n=e.replace("-inline","");return ut+Ot(n)in t&&ft+n}},Tt={supportedProperty:function(e,t){return yt(e)in t&&e}},_t={supportedProperty:function(e,t){var n=Ot(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ut+n in t?ft+e:"Webkit"!==ut&&"Webkit"+n in t&&"-webkit-"+e}},Dt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ut?""+ft+e:e)}},At={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ut?ft+"scroll-chaining":e)}},Rt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Lt={supportedProperty:function(e,t){var n=Rt[e];return!!n&&(ut+Ot(n)in t&&ft+n)}},Nt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},It=Object.keys(Nt),zt=function(e){return ft+e},$t=[vt,mt,kt,wt,jt,St,Ct,Et,Mt,Pt,Tt,_t,Dt,At,Lt,{supportedProperty:function(e,t,n){var r=n.multiple;if(It.indexOf(e)>-1){var i=Nt[e];if(!Array.isArray(i))return ut+Ot(i)in t&&ft+i;if(!r)return!1;for(var a=0;a<i.length;a++)if(!(ut+Ot(i[0])in t))return!1;return i.map(zt)}return!1}}],Ft=$t.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Bt=$t.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(tt.a)(t.noPrefill)),e}),[]),Qt={};if(c){xt=document.createElement("p");var Wt=window.getComputedStyle(document.documentElement,"");for(var Ht in Wt)isNaN(Ht)||(Qt[Wt[Ht]]=Wt[Ht]);Bt.forEach((function(e){return delete Qt[e]}))}function Vt(e,t){if(void 0===t&&(t={}),!xt)return e;if(null!=Qt[e])return Qt[e];"transition"!==e&&"transform"!==e||(t[e]=e in xt.style);for(var n=0;n<Ft.length&&(Qt[e]=Ft[n](e,xt.style,t),!Qt[e]);n++);try{xt.style[e]=""}catch(r){return!1}return Qt[e]}var Ut,qt={},Yt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Xt=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Kt(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Vt(t):", "+Vt(n);return r||(t||n)}function Gt(e,t){var n=t;if(!Ut||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=qt[r])return qt[r];try{Ut.style[e]=n}catch(i){return qt[r]=!1,!1}if(Yt[e])n=n.replace(Xt,Kt);else if(""===Ut.style[e]&&("-ms-flex"===(n=ft+n)&&(Ut.style[e]="-ms-flexbox"),Ut.style[e]=n,""===Ut.style[e]))return qt[r]=!1,!1;return Ut.style[e]="",qt[r]=n,qt[r]}c&&(Ut=document.createElement("p"));var Zt=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,a=Vt(n);a&&a!==n&&(i=!0);var o=!1,s=Gt(a,g(r));s&&s!==r&&(o=!0),(i||o)&&(i&&delete t[n],t[a||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===ut?n:"@"+ft+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Gt(t,g(e))||e}}};var Jt=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),a=0;a<i.length;a++)r[i[a]]=t[i[a]];return r}}};function en(){return{plugins:[Pe(),Ne(),Fe(),qe(),et(),"undefined"===typeof window?null:Zt(),Jt()]}}var tn=Oe(en()),nn={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,a=e.seed,o=void 0===a?"":a,s=""===o?"":"".concat(o,"-"),c=0,l=function(){return c+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Se.indexOf(e.key))return"Mui-".concat(e.key);var a="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[je.a]&&""===o?"".concat(a,"-").concat(l()):a}return"".concat(s).concat(i).concat(l())}}(),jss:tn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rn=o.a.createContext(nn);var an=-1e9;function on(){return an+=1}n(64);var sn=n(344);function cn(e){var t="function"===typeof e;return{create:function(n,r){var a;try{a=t?e(n):e}catch(c){throw c}if(!r||!n.overrides||!n.overrides[r])return a;var o=n.overrides[r],s=Object(i.a)({},a);return Object.keys(o).forEach((function(e){s[e]=Object(sn.a)(s[e],o[e])})),s},options:{}}}var ln={};function un(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Object(xe.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function fn(e,t){var n=e.state,r=e.theme,a=e.stylesOptions,o=e.stylesCreator,s=e.name;if(!a.disableGeneration){var c=ke.get(a.sheetsManager,o,r);c||(c={refs:0,staticSheet:null,dynamicStyles:null},ke.set(a.sheetsManager,o,r,c));var l=Object(i.a)(Object(i.a)(Object(i.a)({},o.options),a),{},{theme:r,flip:"boolean"===typeof a.flip?a.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=a.sheetsRegistry;if(0===c.refs){var f;a.sheetsCache&&(f=ke.get(a.sheetsCache,o,r));var d=o.create(r,s);f||((f=a.jss.createStyleSheet(d,Object(i.a)({link:!1},l))).attach(),a.sheetsCache&&ke.set(a.sheetsCache,o,r,f)),u&&u.add(f),c.staticSheet=f,c.dynamicStyles=be(d)}if(c.dynamicStyles){var h=a.jss.createStyleSheet(c.dynamicStyles,Object(i.a)({link:!0},l));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=Object(xe.a)({baseClasses:c.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else n.classes=c.staticSheet.classes;c.refs+=1}}function dn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function hn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var a=ke.get(r.sheetsManager,i,n);a.refs-=1;var o=r.sheetsRegistry;0===a.refs&&(ke.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}}function pn(e,t){var n,r=o.a.useRef([]),i=o.a.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),o.a.useEffect((function(){return function(){n&&n()}}),[i])}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,a=t.classNamePrefix,s=t.Component,c=t.defaultTheme,l=void 0===c?ln:c,u=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),f=cn(e),d=n||a||"makeStyles";f.options={index:on(),name:n,meta:d,classNamePrefix:d};var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(we.a)()||l,r=Object(i.a)(Object(i.a)({},o.a.useContext(rn)),u),a=o.a.useRef(),c=o.a.useRef();pn((function(){var i={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return fn(i,e),c.current=!1,a.current=i,function(){hn(i)}}),[t,f]),o.a.useEffect((function(){c.current&&dn(a.current,e),c.current=!0}));var d=un(a.current,e.classes,s);return d};return h}},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=n(26),s=(n(12),n(204)),c=n(376),l=n(29),u=n(381),f=n(40),d=n(23),h=n(31),p=n(112),v=n(65),m=n(41),g=n(58),b=n(120),y=n(68);function O(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function x(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=[t,n].concat(Object(g.a)(r)),o=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===a.indexOf(e)&&-1===o.indexOf(e.tagName)&&O(e,i)}))}function w(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function j(e,t){var n,r=[],i=[],a=e.container;if(!t.disableScrollLock){if(function(e){var t=Object(l.a)(e);return t.body===e?Object(y.a)(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(a)){var o=Object(b.a)();r.push({value:a.style.paddingRight,key:"padding-right",el:a}),a.style["padding-right"]="".concat(x(a)+o,"px"),n=Object(l.a)(a).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(x(e)+o,"px")}))}var s=a.parentElement,c="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:a;r.push({value:c.style.overflow,key:"overflow",el:c}),c.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var S=function(){function e(){Object(v.a)(this,e),this.modals=[],this.containers=[]}return Object(m.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&O(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);k(t,e.mountNode,e.modalRef,r,!0);var i=w(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=w(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=j(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=w(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&O(e.modalRef,!0),k(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&O(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var C=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,s=void 0!==i&&i,c=e.disableRestoreFocus,u=void 0!==c&&c,f=e.getDoc,h=e.isEnabled,p=e.open,v=a.useRef(),m=a.useRef(null),g=a.useRef(null),b=a.useRef(),y=a.useRef(null),O=a.useCallback((function(e){y.current=o.findDOMNode(e)}),[]),x=Object(d.a)(t.ref,O),k=a.useRef();return a.useEffect((function(){k.current=p}),[p]),!k.current&&p&&"undefined"!==typeof window&&(b.current=f().activeElement),a.useEffect((function(){if(p){var e=Object(l.a)(y.current);r||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){e.hasFocus()&&!s&&h()&&!v.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():v.current=!1},n=function(t){!s&&h()&&9===t.keyCode&&e.activeElement===y.current&&(v.current=!0,t.shiftKey?g.current.focus():m.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(b.current&&b.current.focus&&b.current.focus(),b.current=null)}}}),[r,s,u,h,p]),a.createElement(a.Fragment,null,a.createElement("div",{tabIndex:0,ref:m,"data-test":"sentinelStart"}),a.cloneElement(t,{ref:x}),a.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},E={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},M=a.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,s=e.open,c=Object(r.a)(e,["invisible","open"]);return s?a.createElement("div",Object(i.a)({"aria-hidden":!0,ref:t},c,{style:Object(i.a)({},E.root,o?E.invisible:{},c.style)})):null}));var P=new S,T=a.forwardRef((function(e,t){var n=Object(s.a)(),v=Object(c.a)({name:"MuiModal",props:Object(i.a)({},e),theme:n}),m=v.BackdropComponent,g=void 0===m?M:m,b=v.BackdropProps,y=v.children,x=v.closeAfterTransition,k=void 0!==x&&x,w=v.container,j=v.disableAutoFocus,S=void 0!==j&&j,E=v.disableBackdropClick,T=void 0!==E&&E,_=v.disableEnforceFocus,D=void 0!==_&&_,A=v.disableEscapeKeyDown,R=void 0!==A&&A,L=v.disablePortal,N=void 0!==L&&L,I=v.disableRestoreFocus,z=void 0!==I&&I,$=v.disableScrollLock,F=void 0!==$&&$,B=v.hideBackdrop,Q=void 0!==B&&B,W=v.keepMounted,H=void 0!==W&&W,V=v.manager,U=void 0===V?P:V,q=v.onBackdropClick,Y=v.onClose,X=v.onEscapeKeyDown,K=v.onRendered,G=v.open,Z=Object(r.a)(v,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),J=a.useState(!0),ee=J[0],te=J[1],ne=a.useRef({}),re=a.useRef(null),ie=a.useRef(null),ae=Object(d.a)(ie,t),oe=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(v),se=function(){return Object(l.a)(re.current)},ce=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},le=function(){U.mount(ce(),{disableScrollLock:F}),ie.current.scrollTop=0},ue=Object(h.a)((function(){var e=function(e){return e="function"===typeof e?e():e,o.findDOMNode(e)}(w)||se().body;U.add(ce(),e),ie.current&&le()})),fe=a.useCallback((function(){return U.isTopModal(ce())}),[U]),de=Object(h.a)((function(e){re.current=e,e&&(K&&K(),G&&fe()?le():O(ie.current,!0))})),he=a.useCallback((function(){U.remove(ce())}),[U]);if(a.useEffect((function(){return function(){he()}}),[he]),a.useEffect((function(){G?ue():oe&&k||he()}),[G,he,oe,k,ue]),!H&&!G&&(!oe||ee))return null;var pe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:p.a}),ve={};return void 0===y.props.tabIndex&&(ve.tabIndex=y.props.tabIndex||"-1"),oe&&(ve.onEnter=Object(f.a)((function(){te(!1)}),y.props.onEnter),ve.onExited=Object(f.a)((function(){te(!0),k&&he()}),y.props.onExited)),a.createElement(u.a,{ref:de,container:w,disablePortal:N},a.createElement("div",Object(i.a)({ref:ae,onKeyDown:function(e){"Escape"===e.key&&fe()&&(X&&X(e),R||(e.stopPropagation(),Y&&Y(e,"escapeKeyDown")))},role:"presentation"},Z,{style:Object(i.a)({},pe.root,!G&&ee?pe.hidden:{},Z.style)}),Q?null:a.createElement(g,Object(i.a)({open:G,onClick:function(e){e.target===e.currentTarget&&(q&&q(e),!T&&Y&&Y(e,"backdropClick"))}},b)),a.createElement(C,{disableEnforceFocus:D,disableAutoFocus:S,disableRestoreFocus:z,getDoc:se,isEnabled:fe,open:G},a.cloneElement(y,ve))))}));t.a=T},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(205),o=n(0),s=(n(12),n(9)),c=n(45),l=n(59),u=n(11),f=n(17),d=n(23),h=n(51);function p(e,t){return parseInt(e[t],10)||0}var v="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,m={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},g=o.forwardRef((function(e,t){var n=e.onChange,a=e.rows,s=e.rowsMax,c=e.rowsMin,l=void 0===c?1:c,u=e.style,f=e.value,g=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),b=a||l,y=o.useRef(null!=f).current,O=o.useRef(null),x=Object(d.a)(t,O),k=o.useRef(null),w=o.useRef(0),j=o.useState({}),S=j[0],C=j[1],E=o.useCallback((function(){var t=O.current,n=window.getComputedStyle(t),r=k.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],a=p(n,"padding-bottom")+p(n,"padding-top"),o=p(n,"border-bottom-width")+p(n,"border-top-width"),c=r.scrollHeight-a;r.value="x";var l=r.scrollHeight-a,u=c;b&&(u=Math.max(Number(b)*l,u)),s&&(u=Math.min(Number(s)*l,u));var f=(u=Math.max(u,l))+("border-box"===i?a+o:0),d=Math.abs(u-c)<=1;C((function(e){return w.current<20&&(f>0&&Math.abs((e.outerHeightStyle||0)-f)>1||e.overflow!==d)?(w.current+=1,{overflow:d,outerHeightStyle:f}):e}))}),[s,b,e.placeholder]);o.useEffect((function(){var e=Object(h.a)((function(){w.current=0,E()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[E]),v((function(){E()})),o.useEffect((function(){w.current=0}),[f]);return o.createElement(o.Fragment,null,o.createElement("textarea",Object(i.a)({value:f,onChange:function(e){w.current=0,y||E(),n&&n(e)},ref:x,rows:b,style:Object(i.a)({height:S.outerHeightStyle,overflow:S.overflow?"hidden":null},u)},g)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:k,tabIndex:-1,style:Object(i.a)({},m,u)}))})),b=n(77),y="undefined"===typeof window?o.useEffect:o.useLayoutEffect,O=o.forwardRef((function(e,t){var n=e["aria-describedby"],u=e.autoComplete,h=e.autoFocus,p=e.classes,v=e.className,m=(e.color,e.defaultValue),O=e.disabled,x=e.endAdornment,k=(e.error,e.fullWidth),w=void 0!==k&&k,j=e.id,S=e.inputComponent,C=void 0===S?"input":S,E=e.inputProps,M=void 0===E?{}:E,P=e.inputRef,T=(e.margin,e.multiline),_=void 0!==T&&T,D=e.name,A=e.onBlur,R=e.onChange,L=e.onClick,N=e.onFocus,I=e.onKeyDown,z=e.onKeyUp,$=e.placeholder,F=e.readOnly,B=e.renderSuffix,Q=e.rows,W=e.rowsMax,H=e.rowsMin,V=e.startAdornment,U=e.type,q=void 0===U?"text":U,Y=e.value,X=Object(r.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),K=null!=M.value?M.value:Y,G=o.useRef(null!=K).current,Z=o.useRef(),J=o.useCallback((function(e){0}),[]),ee=Object(d.a)(M.ref,J),te=Object(d.a)(P,ee),ne=Object(d.a)(Z,te),re=o.useState(!1),ie=re[0],ae=re[1],oe=Object(l.b)();var se=Object(c.a)({props:e,muiFormControl:oe,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});se.focused=oe?oe.focused:ie,o.useEffect((function(){!oe&&O&&ie&&(ae(!1),A&&A())}),[oe,O,ie,A]);var ce=oe&&oe.onFilled,le=oe&&oe.onEmpty,ue=o.useCallback((function(e){Object(b.b)(e)?ce&&ce():le&&le()}),[ce,le]);y((function(){G&&ue({value:K})}),[K,ue,G]);o.useEffect((function(){ue(Z.current)}),[]);var fe=C,de=Object(i.a)({},M,{ref:ne});"string"!==typeof fe?de=Object(i.a)({inputRef:ne,type:q},de,{ref:null}):_?!Q||W||H?(de=Object(i.a)({rows:Q,rowsMax:W},de),fe=g):fe="textarea":de=Object(i.a)({type:q},de);return o.useEffect((function(){oe&&oe.setAdornedStart(Boolean(V))}),[oe,V]),o.createElement("div",Object(i.a)({className:Object(s.a)(p.root,p["color".concat(Object(f.a)(se.color||"primary"))],v,se.disabled&&p.disabled,se.error&&p.error,w&&p.fullWidth,se.focused&&p.focused,oe&&p.formControl,_&&p.multiline,V&&p.adornedStart,x&&p.adornedEnd,"dense"===se.margin&&p.marginDense),onClick:function(e){Z.current&&e.currentTarget===e.target&&Z.current.focus(),L&&L(e)},ref:t},X),V,o.createElement(l.a.Provider,{value:null},o.createElement(fe,Object(i.a)({"aria-invalid":se.error,"aria-describedby":n,autoComplete:u,autoFocus:h,defaultValue:m,disabled:se.disabled,id:j,onAnimationStart:function(e){ue("mui-auto-fill-cancel"===e.animationName?Z.current:{value:"x"})},name:D,placeholder:$,readOnly:F,required:se.required,rows:Q,value:K,onKeyDown:I,onKeyUp:z},de,{className:Object(s.a)(p.input,M.className,se.disabled&&p.disabled,_&&p.inputMultiline,se.hiddenLabel&&p.inputHiddenLabel,V&&p.inputAdornedStart,x&&p.inputAdornedEnd,"search"===q&&p.inputTypeSearch,"dense"===se.margin&&p.inputMarginDense),onBlur:function(e){A&&A(e),M.onBlur&&M.onBlur(e),oe&&oe.onBlur?oe.onBlur(e):ae(!1)},onChange:function(e){if(!G){var t=e.target||Z.current;if(null==t)throw new Error(Object(a.a)(1));ue({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];M.onChange&&M.onChange.apply(M,[e].concat(r)),R&&R.apply(void 0,[e].concat(r))},onFocus:function(e){se.disabled?e.stopPropagation():(N&&N(e),M.onFocus&&M.onFocus(e),oe&&oe.onFocus?oe.onFocus(e):ae(!0))}}))),x,B?B(Object(i.a)({},se,{startAdornment:V})):null)}));t.a=Object(u.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(i.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(O)},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,a=t.props[n];for(i in a)void 0===r[i]&&(r[i]=a[i]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(17),l=44;function u(e){var t,n,r;return t=e,n=0,r=1,e=(Math.min(Math.max(n,t),r)-n)/(r-n),e=(e-=1)*e*e+1}var f=a.forwardRef((function(e,t){var n,s=e.classes,f=e.className,d=e.color,h=void 0===d?"primary":d,p=e.disableShrink,v=void 0!==p&&p,m=e.size,g=void 0===m?40:m,b=e.style,y=e.thickness,O=void 0===y?3.6:y,x=e.value,k=void 0===x?0:x,w=e.variant,j=void 0===w?"indeterminate":w,S=Object(i.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},E={},M={};if("determinate"===j||"static"===j){var P=2*Math.PI*((l-O)/2);C.strokeDasharray=P.toFixed(3),M["aria-valuenow"]=Math.round(k),"static"===j?(C.strokeDashoffset="".concat(((100-k)/100*P).toFixed(3),"px"),E.transform="rotate(-90deg)"):(C.strokeDashoffset="".concat((n=(100-k)/100,n*n*P).toFixed(3),"px"),E.transform="rotate(".concat((270*u(k/70)).toFixed(3),"deg)"))}return a.createElement("div",Object(r.a)({className:Object(o.a)(s.root,f,"inherit"!==h&&s["color".concat(Object(c.a)(h))],{indeterminate:s.indeterminate,static:s.static}[j]),style:Object(r.a)({width:g,height:g},E,b),ref:t,role:"progressbar"},M,S),a.createElement("svg",{className:s.svg,viewBox:"".concat(22," ").concat(22," ").concat(l," ").concat(l)},a.createElement("circle",{className:Object(o.a)(s.circle,v&&s.circleDisableShrink,{indeterminate:s.circleIndeterminate,static:s.circleStatic}[j]),style:C,cx:l,cy:l,r:(l-O)/2,fill:"none",strokeWidth:O})))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(f)},function(e,t,n){"use strict";var r=n(2),i=n(345),a=n(69);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(e,Object(r.a)({defaultTheme:a.a},t))}},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(42),c=n(11),l=n(95),u=n(17),f=a.forwardRef((function(e,t){e.checked;var n=e.classes,c=e.className,f=e.control,d=e.disabled,h=(e.inputRef,e.label),p=e.labelPlacement,v=void 0===p?"end":p,m=(e.name,e.onChange,e.value,Object(i.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),g=Object(s.a)(),b=d;"undefined"===typeof b&&"undefined"!==typeof f.props.disabled&&(b=f.props.disabled),"undefined"===typeof b&&g&&(b=g.disabled);var y={disabled:b};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof f.props[t]&&"undefined"!==typeof e[t]&&(y[t]=e[t])})),a.createElement("label",Object(r.a)({className:Object(o.a)(n.root,c,"end"!==v&&n["labelPlacement".concat(Object(u.a)(v))],b&&n.disabled),ref:t},m),a.cloneElement(f,y),a.createElement(l.a,{component:"span",className:Object(o.a)(n.label,b&&n.disabled)},h))}));t.a=Object(c.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(22),l=n(17),u=n(115),f=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.color,f=void 0===c?"secondary":c,d=e.edge,h=void 0!==d&&d,p=e.size,v=void 0===p?"medium":p,m=Object(i.a)(e,["classes","className","color","edge","size"]),g=a.createElement("span",{className:n.thumb});return a.createElement("span",{className:Object(o.a)(n.root,s,{start:n.edgeStart,end:n.edgeEnd}[h],"small"===v&&n["size".concat(Object(l.a)(v))])},a.createElement(u.a,Object(r.a)({type:"checkbox",icon:g,checkedIcon:g,classes:{root:Object(o.a)(n.switchBase,n["color".concat(Object(l.a)(f))]),input:n.input,checked:n.checked,disabled:n.disabled},ref:t},m)),a.createElement("span",{className:n.track}))}));t.a=Object(s.a)((function(e){return{root:{display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},edgeStart:{marginLeft:-8},edgeEnd:{marginRight:-8},switchBase:{position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.type?e.palette.grey[50]:e.palette.grey[400],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),"&$checked":{transform:"translateX(20px)"},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{opacity:.5},"&$disabled + $track":{opacity:"light"===e.palette.type?.12:.1}},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.primary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[800]},"&$checked + $track":{backgroundColor:e.palette.secondary.main},"&$disabled + $track":{backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white}},sizeSmall:{width:40,height:24,padding:7,"& $thumb":{width:16,height:16},"& $switchBase":{padding:4,"&$checked":{transform:"translateX(16px)"}}},checked:{},disabled:{},input:{left:"-100%",width:"300%"},thumb:{boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"},track:{height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.type?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.type?.38:.3}}}),{name:"MuiSwitch"})(f)},function(e,t,n){"use strict";var r=n(0),i=n(26),a=(n(12),n(38)),o=n(23);var s="undefined"!==typeof window?r.useLayoutEffect:r.useEffect,c=r.forwardRef((function(e,t){var n=e.children,c=e.container,l=e.disablePortal,u=void 0!==l&&l,f=e.onRendered,d=r.useState(null),h=d[0],p=d[1],v=Object(o.a)(r.isValidElement(n)?n.ref:null,t);return s((function(){u||p(function(e){return e="function"===typeof e?e():e,i.findDOMNode(e)}(c)||document.body)}),[c,u]),s((function(){if(h&&!u)return Object(a.a)(t,h),function(){Object(a.a)(t,null)}}),[t,h,u]),s((function(){f&&(h||u)&&f()}),[f,h,u]),u?r.isValidElement(n)?r.cloneElement(n,{ref:v}):n:h?i.createPortal(n,h):h}));t.a=c},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(22),c=n(11),l=n(96),u=n(17),f=a.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,f=e.disabled,d=void 0!==f&&f,h=e.disableFocusRipple,p=void 0!==h&&h,v=e.onChange,m=e.onClick,g=e.selected,b=e.size,y=void 0===b?"medium":b,O=e.value,x=Object(r.a)(e,["children","classes","className","disabled","disableFocusRipple","onChange","onClick","selected","size","value"]);return a.createElement(l.a,Object(i.a)({className:Object(o.a)(s.root,c,d&&s.disabled,g&&s.selected,"medium"!==y&&s["size".concat(Object(u.a)(y))]),disabled:d,focusRipple:!p,ref:t,onClick:function(e){m&&(m(e,O),e.isDefaultPrevented())||v&&v(e,O)},onChange:v,value:O,"aria-pressed":g},x),a.createElement("span",{className:s.label},n))}));t.a=Object(c.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",borderRadius:e.shape.borderRadius,padding:11,border:"1px solid ".concat(Object(s.c)(e.palette.action.active,.12)),color:Object(s.c)(e.palette.action.active,.38),"&$selected":{color:e.palette.action.active,backgroundColor:Object(s.c)(e.palette.action.active,.12),"&:hover":{backgroundColor:Object(s.c)(e.palette.action.active,.15)},"& + &":{borderLeft:0,marginLeft:0}},"&$disabled":{color:Object(s.c)(e.palette.action.disabled,.12)},"&:hover":{textDecoration:"none",backgroundColor:Object(s.c)(e.palette.text.primary,.05),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}}}),disabled:{},selected:{},label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},sizeSmall:{padding:7,fontSize:e.typography.pxToRem(13)},sizeLarge:{padding:15,fontSize:e.typography.pxToRem(15)}}}),{name:"MuiToggleButton"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,l=void 0===c?"div":c,u=Object(i.a)(e,["classes","className","component"]);return a.createElement(l,Object(r.a)({ref:t,className:Object(o.a)(n.root,s)},u))}));t.a=Object(s.a)({root:{width:"100%",overflowX:"auto"}},{name:"MuiTableContainer"})(c)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),c=n(116),l="table",u=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,f=void 0===u?l:u,d=e.padding,h=void 0===d?"default":d,p=e.size,v=void 0===p?"medium":p,m=e.stickyHeader,g=void 0!==m&&m,b=Object(r.a)(e,["classes","className","component","padding","size","stickyHeader"]),y=a.useMemo((function(){return{padding:h,size:v,stickyHeader:g}}),[h,v,g]);return a.createElement(c.a.Provider,{value:y},a.createElement(f,Object(i.a)({role:f===l?null:"table",ref:t,className:Object(o.a)(n.root,s,g&&n.stickyHeader)},b)))}));t.a=Object(s.a)((function(e){return{root:{display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(i.a)({},e.typography.body2,{padding:e.spacing(2),color:e.palette.text.secondary,textAlign:"left",captionSide:"bottom"})},stickyHeader:{borderCollapse:"separate"}}}),{name:"MuiTable"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(71),l={variant:"head"},u="thead",f=a.forwardRef((function(e,t){var n=e.classes,s=e.className,f=e.component,d=void 0===f?u:f,h=Object(i.a)(e,["classes","className","component"]);return a.createElement(c.a.Provider,{value:l},a.createElement(d,Object(r.a)({className:Object(o.a)(n.root,s),ref:t,role:d===u?null:"rowgroup"},h)))}));t.a=Object(s.a)({root:{display:"table-header-group"}},{name:"MuiTableHead"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(71),l=n(22),u=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,u=void 0===l?"tr":l,f=e.hover,d=void 0!==f&&f,h=e.selected,p=void 0!==h&&h,v=Object(i.a)(e,["classes","className","component","hover","selected"]),m=a.useContext(c.a);return a.createElement(u,Object(r.a)({ref:t,className:Object(o.a)(n.root,s,m&&{head:n.head,footer:n.footer}[m.variant],d&&n.hover,p&&n.selected),role:"tr"===u?null:"row"},v))}));t.a=Object(s.a)((function(e){return{root:{color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,"&$hover:hover":{backgroundColor:e.palette.action.hover},"&$selected, &$selected:hover":{backgroundColor:Object(l.c)(e.palette.secondary.main,e.palette.action.selectedOpacity)}},selected:{},hover:{},head:{},footer:{}}}),{name:"MuiTableRow"})(u)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),c=n(17),l=n(22),u=n(116),f=n(71),d=a.forwardRef((function(e,t){var n,s,l=e.align,d=void 0===l?"inherit":l,h=e.classes,p=e.className,v=e.component,m=e.padding,g=e.scope,b=e.size,y=e.sortDirection,O=e.variant,x=Object(r.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),k=a.useContext(u.a),w=a.useContext(f.a),j=w&&"head"===w.variant;v?(s=v,n=j?"columnheader":"cell"):s=j?"th":"td";var S=g;!S&&j&&(S="col");var C=m||(k&&k.padding?k.padding:"default"),E=b||(k&&k.size?k.size:"medium"),M=O||w&&w.variant,P=null;return y&&(P="asc"===y?"ascending":"descending"),a.createElement(s,Object(i.a)({ref:t,className:Object(o.a)(h.root,h[M],p,"inherit"!==d&&h["align".concat(Object(c.a)(d))],"default"!==C&&h["padding".concat(Object(c.a)(C))],"medium"!==E&&h["size".concat(Object(c.a)(E))],"head"===M&&k&&k.stickyHeader&&h.stickyHeader),"aria-sort":P,role:n,scope:S},x))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:"1px solid\n ".concat("light"===e.palette.type?Object(l.e)(Object(l.c)(e.palette.divider,1),.88):Object(l.a)(Object(l.c)(e.palette.divider,1),.68)),textAlign:"left",padding:16}),head:{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},body:{color:e.palette.text.primary},footer:{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},sizeSmall:{padding:"6px 24px 6px 16px","&:last-child":{paddingRight:16},"&$paddingCheckbox":{width:24,padding:"0 12px 0 16px","&:last-child":{paddingLeft:12,paddingRight:16},"& > *":{padding:0}}},paddingCheckbox:{width:48,padding:"0 0 0 4px","&:last-child":{paddingLeft:0,paddingRight:4}},paddingNone:{padding:0,"&:last-child":{padding:0}},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right",flexDirection:"row-reverse"},alignJustify:{textAlign:"justify"},stickyHeader:{position:"sticky",top:0,left:0,zIndex:2,backgroundColor:e.palette.background.default}}}),{name:"MuiTableCell"})(d)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(71),l={variant:"body"},u="tbody",f=a.forwardRef((function(e,t){var n=e.classes,s=e.className,f=e.component,d=void 0===f?u:f,h=Object(i.a)(e,["classes","className","component"]);return a.createElement(c.a.Provider,{value:l},a.createElement(d,Object(r.a)({className:Object(o.a)(n.root,s),ref:t,role:d===u?null:"rowgroup"},h)))}));t.a=Object(s.a)({root:{display:"table-row-group"}},{name:"MuiTableBody"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(17),c=n(11),l=n(67),u=n(23),f=n(95),d=a.forwardRef((function(e,t){var n=e.classes,c=e.className,d=e.color,h=void 0===d?"primary":d,p=e.component,v=void 0===p?"a":p,m=e.onBlur,g=e.onFocus,b=e.TypographyClasses,y=e.underline,O=void 0===y?"hover":y,x=e.variant,k=void 0===x?"inherit":x,w=Object(i.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),j=Object(l.a)(),S=j.isFocusVisible,C=j.onBlurVisible,E=j.ref,M=a.useState(!1),P=M[0],T=M[1],_=Object(u.a)(t,E);return a.createElement(f.a,Object(r.a)({className:Object(o.a)(n.root,n["underline".concat(Object(s.a)(O))],c,P&&n.focusVisible,"button"===v&&n.button),classes:b,color:h,component:v,onBlur:function(e){P&&(C(),T(!1)),m&&m(e)},onFocus:function(e){S(e)&&T(!0),g&&g(e)},ref:_,variant:k},w))}));t.a=Object(c.a)({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(d)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(347),c=n(11),l=a.forwardRef((function(e,t){var n=e.disableUnderline,c=e.classes,l=e.fullWidth,u=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,h=e.multiline,p=void 0!==h&&h,v=e.type,m=void 0===v?"text":v,g=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(s.a,Object(r.a)({classes:Object(r.a)({},c,{root:Object(o.a)(c.root,!n&&c.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g))}));l.muiName="Input",t.a=Object(c.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(77),c=n(11),l=n(17),u=n(85),f=n(59),d=a.forwardRef((function(e,t){var n=e.children,c=e.classes,d=e.className,h=e.color,p=void 0===h?"primary":h,v=e.component,m=void 0===v?"div":v,g=e.disabled,b=void 0!==g&&g,y=e.error,O=void 0!==y&&y,x=e.fullWidth,k=void 0!==x&&x,w=e.focused,j=e.hiddenLabel,S=void 0!==j&&j,C=e.margin,E=void 0===C?"none":C,M=e.required,P=void 0!==M&&M,T=e.size,_=e.variant,D=void 0===_?"standard":_,A=Object(i.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),R=a.useState((function(){var e=!1;return n&&a.Children.forEach(n,(function(t){if(Object(u.a)(t,["Input","Select"])){var n=Object(u.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),L=R[0],N=R[1],I=a.useState((function(){var e=!1;return n&&a.Children.forEach(n,(function(t){Object(u.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),z=I[0],$=I[1],F=a.useState(!1),B=F[0],Q=F[1],W=void 0!==w?w:B;b&&W&&Q(!1);var H=a.useCallback((function(){$(!0)}),[]),V={adornedStart:L,setAdornedStart:N,color:p,disabled:b,error:O,filled:z,focused:W,fullWidth:k,hiddenLabel:S,margin:("small"===T?"dense":void 0)||E,onBlur:function(){Q(!1)},onEmpty:a.useCallback((function(){$(!1)}),[]),onFilled:H,onFocus:function(){Q(!0)},registerEffect:undefined,required:P,variant:D};return a.createElement(f.a.Provider,{value:V},a.createElement(m,Object(r.a)({className:Object(o.a)(c.root,d,"none"!==E&&c["margin".concat(Object(l.a)(E))],k&&c.fullWidth),ref:t},A),n))}));t.a=Object(c.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(d)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(26)),s=n(51),c=n(9),l=n(29),u=n(68),f=n(40),d=n(11),h=n(346),p=n(343),v=n(206);function m(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function g(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function b(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function y(e){return"function"===typeof e?e():e}var O=a.forwardRef((function(e,t){var n=e.action,d=e.anchorEl,O=e.anchorOrigin,x=void 0===O?{vertical:"top",horizontal:"left"}:O,k=e.anchorPosition,w=e.anchorReference,j=void 0===w?"anchorEl":w,S=e.children,C=e.classes,E=e.className,M=e.container,P=e.elevation,T=void 0===P?8:P,_=e.getContentAnchorEl,D=e.marginThreshold,A=void 0===D?16:D,R=e.onEnter,L=e.onEntered,N=e.onEntering,I=e.onExit,z=e.onExited,$=e.onExiting,F=e.open,B=e.PaperProps,Q=void 0===B?{}:B,W=e.transformOrigin,H=void 0===W?{vertical:"top",horizontal:"left"}:W,V=e.TransitionComponent,U=void 0===V?p.a:V,q=e.transitionDuration,Y=void 0===q?"auto":q,X=e.TransitionProps,K=void 0===X?{}:X,G=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),Z=a.useRef(),J=a.useCallback((function(e){if("anchorPosition"===j)return k;var t=y(d),n=(t&&1===t.nodeType?t:Object(l.a)(Z.current).body).getBoundingClientRect(),r=0===e?x.vertical:"center";return{top:n.top+m(n,r),left:n.left+g(n,x.horizontal)}}),[d,x.horizontal,x.vertical,k,j]),ee=a.useCallback((function(e){var t=0;if(_&&"anchorEl"===j){var n=_(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[x.vertical,j,_]),te=a.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:m(e,H.vertical)+t,horizontal:g(e,H.horizontal)}}),[H.horizontal,H.vertical]),ne=a.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===j)return{top:null,left:null,transformOrigin:b(r)};var i=J(t),a=i.top-r.vertical,o=i.left-r.horizontal,s=a+n.height,c=o+n.width,l=Object(u.a)(y(d)),f=l.innerHeight-A,h=l.innerWidth-A;if(a<A){var p=a-A;a-=p,r.vertical+=p}else if(s>f){var v=s-f;a-=v,r.vertical+=v}if(o<A){var m=o-A;o-=m,r.horizontal+=m}else if(c>h){var g=c-h;o-=g,r.horizontal+=g}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:b(r)}}),[d,j,J,ee,te,A]),re=a.useCallback((function(){var e=Z.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=a.useCallback((function(e){Z.current=o.findDOMNode(e)}),[]);a.useEffect((function(){F&&re()})),a.useImperativeHandle(n,(function(){return F?{updatePosition:function(){re()}}:null}),[F,re]),a.useEffect((function(){if(F){var e=Object(s.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[F,re]);var ae=Y;"auto"!==Y||U.muiSupportAuto||(ae=void 0);var oe=M||(d?Object(l.a)(y(d)).body:void 0);return a.createElement(h.a,Object(r.a)({container:oe,open:F,ref:t,BackdropProps:{invisible:!0},className:Object(c.a)(C.root,E)},G),a.createElement(U,Object(r.a)({appear:!0,in:F,onEnter:R,onEntered:L,onExit:I,onExited:z,onExiting:$,timeout:ae},K,{onEntering:Object(f.a)((function(e,t){N&&N(e,t),re()}),K.onEntering)}),a.createElement(v.a,Object(r.a)({elevation:T,ref:ie},Q,{className:Object(c.a)(C.paper,Q.className)}),S)))}));t.a=Object(d.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(O)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(45),c=n(42),l=n(11),u=a.forwardRef((function(e,t){var n=e.children,l=e.classes,u=e.className,f=e.component,d=void 0===f?"p":f,h=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(r.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),p=Object(c.a)(),v=Object(s.a)({props:e,muiFormControl:p,states:["variant","margin","disabled","error","filled","focused","required"]});return a.createElement(d,Object(i.a)({className:Object(o.a)(l.root,("filled"===v.variant||"outlined"===v.variant)&&l.contained,u,v.disabled&&l.disabled,v.error&&l.error,v.filled&&l.filled,v.focused&&l.focused,v.required&&l.required,"dense"===v.margin&&l.marginDense),ref:t},h)," "===n?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));t.a=Object(l.a)((function(e){return{root:Object(i.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(u)},function(e,t,n){"use strict";var r=n(8),i=n(19),a=n(2),o=n(0),s=(n(12),n(9)),c=n(11),l=n(96),u=n(17),f=o.forwardRef((function(e,t){var n=e.classes,i=e.className,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,h=void 0!==d&&d,p=e.fullWidth,v=e.icon,m=e.indicator,g=e.label,b=e.onChange,y=e.onClick,O=e.onFocus,x=e.selected,k=e.selectionFollowsFocus,w=e.textColor,j=void 0===w?"inherit":w,S=e.value,C=e.wrapped,E=void 0!==C&&C,M=Object(r.a)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return o.createElement(l.a,Object(a.a)({focusRipple:!h,className:Object(s.a)(n.root,n["textColor".concat(Object(u.a)(j))],i,f&&n.disabled,x&&n.selected,g&&v&&n.labelIcon,p&&n.fullWidth,E&&n.wrapped),ref:t,role:"tab","aria-selected":x,disabled:f,onClick:function(e){b&&b(e,S),y&&y(e)},onFocus:function(e){k&&!x&&b&&b(e,S),O&&O(e)},tabIndex:x?0:-1},M),o.createElement("span",{className:n.wrapper},v,g),m)}));t.a=Object(c.a)((function(e){var t;return{root:Object(a.a)({},e.typography.button,(t={maxWidth:264,minWidth:72,position:"relative",boxSizing:"border-box",minHeight:48,flexShrink:0,padding:"6px 12px"},Object(i.a)(t,e.breakpoints.up("sm"),{padding:"6px 24px"}),Object(i.a)(t,"overflow","hidden"),Object(i.a)(t,"whiteSpace","normal"),Object(i.a)(t,"textAlign","center"),Object(i.a)(t,e.breakpoints.up("sm"),{minWidth:160}),t)),labelIcon:{minHeight:72,paddingTop:9,"& $wrapper > *:first-child":{marginBottom:6}},textColorInherit:{color:"inherit",opacity:.7,"&$selected":{opacity:1},"&$disabled":{opacity:.5}},textColorPrimary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled}},textColorSecondary:{color:e.palette.text.secondary,"&$selected":{color:e.palette.secondary.main},"&$disabled":{color:e.palette.text.disabled}},selected:{},disabled:{},fullWidth:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},wrapped:{fontSize:e.typography.pxToRem(12),lineHeight:1.5},wrapper:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",flexDirection:"column"}}}),{name:"MuiTab"})(f)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),c=n(22),l=n(96),u=n(17),f=a.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,f=e.color,d=void 0===f?"default":f,h=e.component,p=void 0===h?"button":h,v=e.disabled,m=void 0!==v&&v,g=e.disableElevation,b=void 0!==g&&g,y=e.disableFocusRipple,O=void 0!==y&&y,x=e.endIcon,k=e.focusVisibleClassName,w=e.fullWidth,j=void 0!==w&&w,S=e.size,C=void 0===S?"medium":S,E=e.startIcon,M=e.type,P=void 0===M?"button":M,T=e.variant,_=void 0===T?"text":T,D=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),A=E&&a.createElement("span",{className:Object(o.a)(s.startIcon,s["iconSize".concat(Object(u.a)(C))])},E),R=x&&a.createElement("span",{className:Object(o.a)(s.endIcon,s["iconSize".concat(Object(u.a)(C))])},x);return a.createElement(l.a,Object(i.a)({className:Object(o.a)(s.root,s[_],c,"inherit"===d?s.colorInherit:"default"!==d&&s["".concat(_).concat(Object(u.a)(d))],"medium"!==C&&[s["".concat(_,"Size").concat(Object(u.a)(C))],s["size".concat(Object(u.a)(C))]],b&&s.disableElevation,m&&s.disabled,j&&s.fullWidth),component:p,disabled:m,focusRipple:!O,focusVisibleClassName:Object(o.a)(s.focusVisible,k),ref:t,type:P},D),a.createElement("span",{className:s.label},A,n,R))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(c.c)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(c.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(c.c)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(c.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(c.c)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(c.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(19),o=n(0),s=(n(12),n(9)),c=n(11),l=o.forwardRef((function(e,t){var n=e.classes,a=e.className,c=e.component,l=void 0===c?"div":c,u=e.disableGutters,f=void 0!==u&&u,d=e.variant,h=void 0===d?"regular":d,p=Object(i.a)(e,["classes","className","component","disableGutters","variant"]);return o.createElement(l,Object(r.a)({className:Object(s.a)(n.root,n[h],a,!f&&n.gutters),ref:t},p))}));t.a=Object(c.a)((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:Object(a.a)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(95),c=n(11),l=n(59),u=a.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,f=e.component,d=void 0===f?"div":f,h=e.disablePointerEvents,p=void 0!==h&&h,v=e.disableTypography,m=void 0!==v&&v,g=e.position,b=e.variant,y=Object(i.a)(e,["children","classes","className","component","disablePointerEvents","disableTypography","position","variant"]),O=Object(l.b)()||{},x=b;return b&&O.variant,O&&!x&&(x=O.variant),a.createElement(l.a.Provider,{value:null},a.createElement(d,Object(r.a)({className:Object(o.a)(c.root,u,p&&c.disablePointerEvents,O.hiddenLabel&&c.hiddenLabel,"filled"===x&&c.filled,{start:c.positionStart,end:c.positionEnd}[g],"dense"===O.margin&&c.marginDense),ref:t},y),"string"!==typeof n||m?n:a.createElement(s.a,{color:"textSecondary"},n)))}));t.a=Object(c.a)({root:{display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap"},filled:{"&$positionStart:not($hiddenLabel)":{marginTop:16}},positionStart:{marginRight:8},positionEnd:{marginLeft:8},disablePointerEvents:{pointerEvents:"none"},hiddenLabel:{},marginDense:{}},{name:"MuiInputAdornment"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(28),a=n(8),o=n(0),s=(n(12),n(125)),c=n(43),l=n(37),u=n(53),f=n(23),d={entering:{opacity:1},entered:{opacity:1}},h={enter:c.b.enteringScreen,exit:c.b.leavingScreen},p=o.forwardRef((function(e,t){var n=e.children,c=e.disableStrictModeCompat,p=void 0!==c&&c,v=e.in,m=e.onEnter,g=e.onEntered,b=e.onEntering,y=e.onExit,O=e.onExited,x=e.onExiting,k=e.style,w=e.TransitionComponent,j=void 0===w?s.a:w,S=e.timeout,C=void 0===S?h:S,E=Object(a.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),M=Object(l.a)(),P=M.unstable_strictMode&&!p,T=o.useRef(null),_=Object(f.a)(n.ref,t),D=Object(f.a)(P?T:void 0,_),A=function(e){return function(t,n){if(e){var r=P?[T.current,t]:[t,n],a=Object(i.a)(r,2),o=a[0],s=a[1];void 0===s?e(o):e(o,s)}}},R=A(b),L=A((function(e,t){Object(u.b)(e);var n=Object(u.a)({style:k,timeout:C},{mode:"enter"});e.style.webkitTransition=M.transitions.create("opacity",n),e.style.transition=M.transitions.create("opacity",n),m&&m(e,t)})),N=A(g),I=A(x),z=A((function(e){var t=Object(u.a)({style:k,timeout:C},{mode:"exit"});e.style.webkitTransition=M.transitions.create("opacity",t),e.style.transition=M.transitions.create("opacity",t),y&&y(e)})),$=A(O);return o.createElement(j,Object(r.a)({appear:!0,in:v,nodeRef:P?T:void 0,onEnter:L,onEntered:N,onEntering:R,onExit:z,onExited:$,onExiting:I,timeout:C},E),(function(e,t){return o.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||v?void 0:"hidden"},d[e],k,n.props.style),ref:D},t))}))}));t.a=p},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.dividers,l=void 0!==c&&c,u=Object(i.a)(e,["classes","className","dividers"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(n.root,s,l&&n.dividers),ref:t},u))}));t.a=Object(s.a)((function(e){return{root:{flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"8px 24px","&:first-child":{paddingTop:20}},dividers:{padding:"16px 24px",borderTop:"1px solid ".concat(e.palette.divider),borderBottom:"1px solid ".concat(e.palette.divider)}}}),{name:"MuiDialogContent"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=a.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,c=e.classes,l=e.className,u=Object(i.a)(e,["disableSpacing","classes","className"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(c.root,l,!s&&c.spacing),ref:t},u))}));t.a=Object(s.a)({root:{display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},spacing:{"& > :not(:first-child)":{marginLeft:8}}},{name:"MuiDialogActions"})(c)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),c=[0,1,2,3,4,5,6,7,8,9,10],l=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var f=a.forwardRef((function(e,t){var n=e.alignContent,s=void 0===n?"stretch":n,c=e.alignItems,l=void 0===c?"stretch":c,u=e.classes,f=e.className,d=e.component,h=void 0===d?"div":d,p=e.container,v=void 0!==p&&p,m=e.direction,g=void 0===m?"row":m,b=e.item,y=void 0!==b&&b,O=e.justify,x=void 0===O?"flex-start":O,k=e.lg,w=void 0!==k&&k,j=e.md,S=void 0!==j&&j,C=e.sm,E=void 0!==C&&C,M=e.spacing,P=void 0===M?0:M,T=e.wrap,_=void 0===T?"wrap":T,D=e.xl,A=void 0!==D&&D,R=e.xs,L=void 0!==R&&R,N=e.zeroMinWidth,I=void 0!==N&&N,z=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),$=Object(o.a)(u.root,f,v&&[u.container,0!==P&&u["spacing-xs-".concat(String(P))]],y&&u.item,I&&u.zeroMinWidth,"row"!==g&&u["direction-xs-".concat(String(g))],"wrap"!==_&&u["wrap-xs-".concat(String(_))],"stretch"!==l&&u["align-items-xs-".concat(String(l))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==x&&u["justify-xs-".concat(String(x))],!1!==L&&u["grid-xs-".concat(String(L))],!1!==E&&u["grid-sm-".concat(String(E))],!1!==S&&u["grid-md-".concat(String(S))],!1!==w&&u["grid-lg-".concat(String(w))],!1!==A&&u["grid-xl-".concat(String(A))]);return a.createElement(h,Object(i.a)({className:$,ref:t},z))})),d=Object(s.a)((function(e){return Object(i.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return c.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(u(i,2)),width:"calc(100% + ".concat(u(i),")"),"& > $item":{padding:u(i,2)}})})),n}(e,"xs"),e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};l.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(i.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(f);t.a=d},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(95),l=a.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,u=e.disableTypography,f=void 0!==u&&u,d=Object(i.a)(e,["children","classes","className","disableTypography"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(s.root,l),ref:t},d),f?n:a.createElement(c.a,{component:"h2",variant:"h6"},n))}));t.a=Object(s.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(l)},function(e,t,n){"use strict";var r=n(2),i=n(0),a=(n(12),n(11)),o=n(95),s=i.forwardRef((function(e,t){return i.createElement(o.a,Object(r.a)({component:"p",variant:"body1",color:"textSecondary",ref:t},e))}));t.a=Object(a.a)({root:{marginBottom:12}},{name:"MuiDialogContentText"})(s)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(96),c=n(208),l=n(11),u=n(121),f=a.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,d=e.expandIcon,h=e.IconButtonProps,p=e.onBlur,v=e.onClick,m=e.onFocusVisible,g=Object(i.a)(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),b=a.useState(!1),y=b[0],O=b[1],x=a.useContext(u.a),k=x.disabled,w=void 0!==k&&k,j=x.expanded,S=x.toggle;return a.createElement(s.a,Object(r.a)({focusRipple:!1,disableRipple:!0,disabled:w,component:"div","aria-expanded":j,className:Object(o.a)(l.root,f,w&&l.disabled,j&&l.expanded,y&&l.focused),onFocusVisible:function(e){O(!0),m&&m(e)},onBlur:function(e){O(!1),p&&p(e)},onClick:function(e){S&&S(e),v&&v(e)},ref:t},g),a.createElement("div",{className:Object(o.a)(l.content,j&&l.expanded)},n),d&&a.createElement(c.a,Object(r.a)({className:Object(o.a)(l.expandIcon,j&&l.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},h),d))}));t.a=Object(l.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(f)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=Object(i.a)(e,["classes","className"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(n.root,s),ref:t},c))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(11),c=n(17),l=n(206),u=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.color,f=void 0===u?"primary":u,d=e.position,h=void 0===d?"fixed":d,p=Object(i.a)(e,["classes","className","color","position"]);return a.createElement(l.a,Object(r.a)({square:!0,component:"header",elevation:4,className:Object(o.a)(n.root,n["position".concat(Object(c.a)(h))],n["color".concat(Object(c.a)(f))],s,"fixed"===h&&"mui-fixed"),ref:t},p))}));t.a=Object(s.a)((function(e){var t="light"===e.palette.type?e.palette.grey[100]:e.palette.grey[900];return{root:{display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",zIndex:e.zIndex.appBar,flexShrink:0},positionFixed:{position:"fixed",top:0,left:"auto",right:0,"@media print":{position:"absolute"}},positionAbsolute:{position:"absolute",top:0,left:"auto",right:0},positionSticky:{position:"sticky",top:0,left:"auto",right:0},positionStatic:{position:"static"},positionRelative:{position:"relative"},colorDefault:{backgroundColor:t,color:e.palette.getContrastText(t)},colorPrimary:{backgroundColor:e.palette.primary.main,color:e.palette.primary.contrastText},colorSecondary:{backgroundColor:e.palette.secondary.main,color:e.palette.secondary.contrastText},colorInherit:{color:"inherit"},colorTransparent:{backgroundColor:"transparent",color:"inherit"}}}),{name:"MuiAppBar"})(u)},function(e,t,n){"use strict";var r=n(2),i=n(0),a=(n(12),n(11)),o={WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box"},s=function(e){return Object(r.a)({color:e.palette.text.primary},e.typography.body2,{backgroundColor:e.palette.background.default,"@media print":{backgroundColor:e.palette.common.white}})};t.a=Object(a.a)((function(e){return{"@global":{html:o,"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Object(r.a)({margin:0},s(e),{"&::backdrop":{backgroundColor:e.palette.background.default}})}}}),{name:"MuiCssBaseline"})((function(e){var t=e.children,n=void 0===t?null:t;return e.classes,i.createElement(i.Fragment,null,n)}))},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n.n(i),o=(n(12),n(109)),s=n(204),c=n(114);t.a=function(e){var t=e.children,n=e.theme,i=Object(s.a)(),l=a.a.useMemo((function(){var e=null===i?n:function(e,t){return"function"===typeof t?t(e):Object(r.a)(Object(r.a)({},e),t)}(i,n);return null!=e&&(e[c.a]=null!==i),e}),[n,i]);return a.a.createElement(o.a.Provider,{value:l},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return At}));var r=n(19),i=n(0),a=n.n(i),o=n(12),s=n(33),c=n(9),l=n(2),u=n(8),f=n(378),d=n(37),h=n(95),p=n(22),v=n(420),m=n(11),g=n(395),b=n(396),y=n(400),O=n(399),x=n(421),k=n(392);function w(e,t){return Array.isArray(t)?t.every((function(t){return-1!==e.indexOf(t)})):-1!==e.indexOf(t)}var j=Object(f.a)((function(e){return{staticWrapperRoot:{overflow:"hidden",minWidth:310,display:"flex",flexDirection:"column",backgroundColor:e.palette.background.paper}}}),{name:"MuiPickersStaticWrapper"}),S=function(e){var t=e.children,n=j();return Object(i.createElement)("div",{className:n.staticWrapperRoot,children:t})},C=function(e){var t=e.children,n=e.classes,r=e.onAccept,a=e.onDismiss,o=e.onClear,s=e.onSetToday,f=e.okLabel,d=e.cancelLabel,h=e.clearLabel,p=e.todayLabel,v=e.clearable,m=e.showTodayButton,b=(e.showTabs,e.wider),k=Object(u.a)(e,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return Object(i.createElement)(x.a,Object(l.a)({role:"dialog",onClose:a,classes:{paper:Object(c.a)(n.dialogRoot,b&&n.dialogRootWider)}},k),Object(i.createElement)(O.a,{children:t,className:n.dialog}),Object(i.createElement)(y.a,{classes:{root:Object(c.a)((v||m)&&n.withAdditionalAction)}},v&&Object(i.createElement)(g.a,{color:"primary",onClick:o},h),m&&Object(i.createElement)(g.a,{color:"primary",onClick:s},p),d&&Object(i.createElement)(g.a,{color:"primary",onClick:a},d),f&&Object(i.createElement)(g.a,{color:"primary",onClick:r},f)))};C.displayName="ModalDialog";var E=Object(v.a)({dialogRoot:{minWidth:310},dialogRootWider:{minWidth:325},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),M=Object(m.a)(E,{name:"MuiPickersModal"})(C),P="undefined"===typeof window?i.useEffect:i.useLayoutEffect;function T(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function _(e,t){var n=Object(i.useRef)(t);n.current=t,P((function(){if(e){var t=function(e){T(e,n.current)};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}}),[e])}var D=function(e){var t=e.open,n=e.children,r=e.okLabel,a=e.cancelLabel,o=e.clearLabel,s=e.todayLabel,c=e.showTodayButton,f=e.clearable,d=e.DialogProps,h=e.showTabs,p=e.wider,v=e.InputComponent,m=e.DateInputProps,g=e.onClear,b=e.onAccept,y=e.onDismiss,O=e.onSetToday,x=Object(u.a)(e,["open","children","okLabel","cancelLabel","clearLabel","todayLabel","showTodayButton","clearable","DialogProps","showTabs","wider","InputComponent","DateInputProps","onClear","onAccept","onDismiss","onSetToday"]);return _(t,{Enter:b}),Object(i.createElement)(i.Fragment,null,Object(i.createElement)(v,Object(l.a)({},x,m)),Object(i.createElement)(M,Object(l.a)({wider:p,showTabs:h,open:t,onClear:g,onAccept:b,onDismiss:y,onSetToday:O,clearLabel:o,todayLabel:s,okLabel:r,cancelLabel:a,clearable:f,showTodayButton:c,children:n},d)))};D.defaultProps={okLabel:"OK",cancelLabel:"Cancel",clearLabel:"Clear",todayLabel:"Today",clearable:!1,showTodayButton:!1};var A=function(e){var t=e.open,n=(e.wider,e.children),r=e.PopoverProps,a=(e.onClear,e.onDismiss),o=(e.onSetToday,e.onAccept),s=(e.showTabs,e.DateInputProps),c=e.InputComponent,f=Object(u.a)(e,["open","wider","children","PopoverProps","onClear","onDismiss","onSetToday","onAccept","showTabs","DateInputProps","InputComponent"]),d=Object(i.useRef)();return _(t,{Enter:o}),Object(i.createElement)(i.Fragment,null,Object(i.createElement)(c,Object(l.a)({},f,s,{inputRef:d})),Object(i.createElement)(k.a,Object(l.a)({open:t,onClose:a,anchorEl:d.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n},r)))};var R=Object(i.createContext)(null),L=function(e){var t=e.variant,n=Object(u.a)(e,["variant"]),r=function(e){switch(e){case"inline":return A;case"static":return S;default:return D}}(t);return Object(i.createElement)(R.Provider,{value:t||"dialog"},Object(i.createElement)(r,n))},N=n(411),I=n(208),z=n(397),$=n(52),F=function(e){function t(t){var n;return(n=e.call(this,t)||this)._state=null,n._del=!1,n._handleChange=function(e){var t=n.state.value,r=e.target.value,i=e.target,a=r.length>t.length,o=n._del,s=t===n.props.format(r);n.setState({value:r,local:!0},(function(){var e=i.selectionStart,c=n.props.refuse||/[^\d]+/g,l=r.substr(0,e).replace(c,"");if(n._state={input:i,before:l,op:a,di:o&&s,del:o},n.props.replace&&n.props.replace(t)&&a&&!s){for(var u=-1,f=0;f!==l.length;++f)u=Math.max(u,r.toLowerCase().indexOf(l[f].toLowerCase(),u+1));var d=r.substr(u+1).replace(c,"")[0];u=r.indexOf(d,u+1),r=""+r.substr(0,u)+r.substr(u+1)}var h=n.props.format(r);t===h?n.setState({value:r}):n.props.onChange(h)}))},n._hKD=function(e){"Delete"===e.code&&(n._del=!0)},n._hKU=function(e){"Delete"===e.code&&(n._del=!1)},n.state={value:t.value,local:!0},n}Object($.a)(t,e),t.getDerivedStateFromProps=function(e,t){return{value:t.local?t.value:e.value,local:!1}};var n=t.prototype;return n.render=function(){var e=this._handleChange,t=this.state.value;return(0,this.props.children)({value:t,onChange:e})},n.componentWillUnmount=function(){document.removeEventListener("keydown",this._hKD),document.removeEventListener("keyup",this._hKU)},n.componentDidMount=function(){document.addEventListener("keydown",this._hKD),document.addEventListener("keyup",this._hKU)},n.componentDidUpdate=function(){var e=this._state;if(e){for(var t=this.state.value,n=-1,r=0;r!==e.before.length;++r)n=Math.max(n,t.toLowerCase().indexOf(e.before[r].toLowerCase(),n+1));if(this.props.replace&&(e.op||e.del&&!e.di))for(;t[n+1]&&(this.props.refuse||/[^\d]+/).test(t[n+1]);)n+=1;e.input.selectionStart=e.input.selectionEnd=n+1+(e.di?1:0)}this._state=null},t}(i.Component),B=n(207),Q=n(28),W=n(65),H=n(41),V=n(64),U=n(76);function q(e,t){return!t||"object"!==Object(V.a)(t)&&"function"!==typeof t?Object(U.a)(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}var G=Object(f.a)((function(e){return{day:{width:36,height:36,fontSize:e.typography.caption.fontSize,margin:"0 2px",color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium,padding:0},hidden:{opacity:0,pointerEvents:"none"},current:{color:e.palette.primary.main,fontWeight:600},daySelected:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{backgroundColor:e.palette.primary.main}},dayDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersDay"}),Z=function(e){var t=e.children,n=e.disabled,r=e.hidden,a=e.current,o=e.selected,s=Object(u.a)(e,["children","disabled","hidden","current","selected"]),f=G(),d=Object(c.a)(f.day,r&&f.hidden,a&&f.current,o&&f.daySelected,n&&f.dayDisabled);return Object(i.createElement)(I.a,Object(l.a)({className:d,tabIndex:r||n?-1:0},s),Object(i.createElement)(h.a,{variant:"body2",color:"inherit"},t))};Z.displayName="Day",Z.defaultProps={disabled:!1,hidden:!1,current:!1,selected:!1};var J=Z,ee=n(417),te=n(57);function ne(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var re=n(125),ie=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"===typeof n.className?n.className=ne(n.className,r):n.setAttribute("class",ne(n.className&&n.className.baseVal||"",r)));var n,r}))},ae=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.addClass(i,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}Object($.a)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&ie(e,r),i&&ie(e,i),a&&ie(e,a)},n.render=function(){var e=this.props,t=(e.classNames,Object(te.a)(e,["classNames"]));return a.a.createElement(re.a,Object(l.a)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(a.a.Component);ae.defaultProps={classNames:""},ae.propTypes={};var oe=ae,se=n(377),ce=function(e){var t=e.children,n=e.value,r=e.disabled,a=e.onSelect,o=e.dayInCurrentMonth,s=Object(u.a)(e,["children","value","disabled","onSelect","dayInCurrentMonth"]),c=Object(i.useCallback)((function(){return a(n)}),[a,n]);return Object(i.createElement)("div",Object(l.a)({role:"presentation",onClick:o&&!r?c:void 0,onKeyPress:o&&!r?c:void 0},s),t)},le=Object(f.a)((function(e){var t=e.transitions.create("transform",{duration:350,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{transitionContainer:{display:"block",position:"relative","& > *":{position:"absolute",top:0,right:0,left:0}},"slideEnter-left":{willChange:"transform",transform:"translate(100%)"},"slideEnter-right":{willChange:"transform",transform:"translate(-100%)"},slideEnterActive:{transform:"translate(0%)",transition:t},slideExit:{transform:"translate(0%)"},"slideExitActiveLeft-left":{willChange:"transform",transform:"translate(-200%)",transition:t},"slideExitActiveLeft-right":{willChange:"transform",transform:"translate(200%)",transition:t}}}),{name:"MuiPickersSlideTransition"}),ue=function(e){var t=e.children,n=e.transKey,r=e.slideDirection,a=e.className,o=void 0===a?null:a,s=le(),l={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+r],exitActive:s["slideExitActiveLeft-"+r]};return Object(i.createElement)(ee.a,{className:Object(c.a)(s.transitionContainer,o),childFactory:function(e){return Object(i.cloneElement)(e,{classNames:l})}},Object(i.createElement)(oe,{mountOnEnter:!0,unmountOnExit:!0,key:n+r,timeout:350,classNames:l,children:t}))},fe=Object(f.a)((function(e){return{switchHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginTop:e.spacing(.5),marginBottom:e.spacing(1)},transitionContainer:{width:"100%",overflow:"hidden",height:23},iconButton:{zIndex:1,backgroundColor:e.palette.background.paper},daysHeader:{display:"flex",justifyContent:"center",alignItems:"center",maxHeight:16},dayLabel:{width:36,margin:"0 2px",textAlign:"center",color:e.palette.text.hint}}}),{name:"MuiPickersCalendarHeader"}),de=function(e){var t=e.currentMonth,n=e.onMonthChange,r=e.leftArrowIcon,a=e.rightArrowIcon,o=e.leftArrowButtonProps,c=e.rightArrowButtonProps,u=e.disablePrevMonth,f=e.disableNextMonth,p=e.slideDirection,v=Object(s.b)(),m=fe(),g="rtl"===Object(d.a)().direction;return Object(i.createElement)("div",null,Object(i.createElement)("div",{className:m.switchHeader},Object(i.createElement)(I.a,Object(l.a)({},o,{disabled:u,onClick:function(){return n(v.getPreviousMonth(t),"right")},className:m.iconButton}),g?a:r),Object(i.createElement)(ue,{slideDirection:p,transKey:t.toString(),className:m.transitionContainer},Object(i.createElement)(h.a,{align:"center",variant:"body1"},v.getCalendarHeaderText(t))),Object(i.createElement)(I.a,Object(l.a)({},c,{disabled:f,onClick:function(){return n(v.getNextMonth(t),"left")},className:m.iconButton}),g?r:a)),Object(i.createElement)("div",{className:m.daysHeader},v.getWeekdays().map((function(e,t){return Object(i.createElement)(h.a,{key:t,variant:"caption",className:m.dayLabel},e)}))))};de.displayName="CalendarHeader",de.defaultProps={leftArrowIcon:Object(i.createElement)((function(e){return a.a.createElement(B.a,e,a.a.createElement("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),a.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),rightArrowIcon:Object(i.createElement)((function(e){return a.a.createElement(B.a,e,a.a.createElement("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),a.a.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}))}),null),disablePrevMonth:!1,disableNextMonth:!1};var he=function(e){var t=e.onKeyDown;return Object(i.useEffect)((function(){return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[t]),null},pe=function(e){function t(){var e,n;Object(W.a)(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(n=q(this,(e=Y(t)).call.apply(e,[this].concat(a)))).state={slideDirection:"left",currentMonth:n.props.utils.startOfMonth(n.props.date),loadingQueue:0},n.pushToLoadingQueue=function(){var e=n.state.loadingQueue+1;n.setState({loadingQueue:e})},n.popFromLoadingQueue=function(){var e=n.state.loadingQueue;e=e<=0?0:e-1,n.setState({loadingQueue:e})},n.handleChangeMonth=function(e,t){if(n.setState({currentMonth:e,slideDirection:t}),n.props.onMonthChange){var r=n.props.onMonthChange(e);r&&(n.pushToLoadingQueue(),r.then((function(){n.popFromLoadingQueue()})))}},n.validateMinMaxDate=function(e){var t=n.props,r=t.minDate,i=t.maxDate,a=t.utils,o=t.disableFuture,s=t.disablePast,c=a.date();return Boolean(o&&a.isAfterDay(e,c)||s&&a.isBeforeDay(e,c)||r&&a.isBeforeDay(e,a.date(r))||i&&a.isAfterDay(e,a.date(i)))},n.shouldDisablePrevMonth=function(){var e=n.props,t=e.utils,r=e.disablePast,i=e.minDate,a=t.date(),o=t.startOfMonth(r&&t.isAfter(a,t.date(i))?a:t.date(i));return!t.isBefore(o,n.state.currentMonth)},n.shouldDisableNextMonth=function(){var e=n.props,t=e.utils,r=e.disableFuture,i=e.maxDate,a=t.date(),o=t.startOfMonth(r&&t.isBefore(a,t.date(i))?a:t.date(i));return!t.isAfter(o,n.state.currentMonth)},n.shouldDisableDate=function(e){var t=n.props.shouldDisableDate;return n.validateMinMaxDate(e)||Boolean(t&&t(e))},n.handleDaySelect=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.props,i=r.date,a=r.utils;n.props.onChange(a.mergeDateAndTime(e,i),t)},n.moveToDay=function(e){var t=n.props.utils;e&&!n.shouldDisableDate(e)&&(t.getMonth(e)!==t.getMonth(n.state.currentMonth)&&n.handleChangeMonth(t.startOfMonth(e),"left"),n.handleDaySelect(e,!1))},n.handleKeyDown=function(e){var t=n.props,r=t.theme,i=t.date,a=t.utils;T(e,{ArrowUp:function(){return n.moveToDay(a.addDays(i,-7))},ArrowDown:function(){return n.moveToDay(a.addDays(i,7))},ArrowLeft:function(){return n.moveToDay(a.addDays(i,"ltr"===r.direction?-1:1))},ArrowRight:function(){return n.moveToDay(a.addDays(i,"ltr"===r.direction?1:-1))}})},n.renderWeeks=function(){var e=n.props,t=e.utils,r=e.classes;return t.getWeekArray(n.state.currentMonth).map((function(e){return Object(i.createElement)("div",{key:"week-".concat(e[0].toString()),className:r.week},n.renderDays(e))}))},n.renderDays=function(e){var t=n.props,r=t.date,a=t.renderDay,o=t.utils,s=o.date(),c=o.startOfDay(r),l=o.getMonth(n.state.currentMonth);return e.map((function(e){var t=n.shouldDisableDate(e),r=o.getMonth(e)===l,u=Object(i.createElement)(J,{disabled:t,current:o.isSameDay(e,s),hidden:!r,selected:o.isSameDay(c,e)},o.getDayText(e));return a&&(u=a(e,c,r,u)),Object(i.createElement)(ce,{value:e,key:e.toString(),disabled:t,dayInCurrentMonth:r,onSelect:n.handleDaySelect},u)}))},n}return K(t,e),Object(H.a)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.date,n=e.minDate,r=e.maxDate,i=e.utils,a=e.disablePast,o=e.disableFuture;if(this.shouldDisableDate(t)){var s=function(e){var t=e.date,n=e.utils,r=e.minDate,i=e.maxDate,a=e.disableFuture,o=e.disablePast,s=e.shouldDisableDate,c=n.startOfDay(n.date());o&&n.isBefore(r,c)&&(r=c),a&&n.isAfter(i,c)&&(i=c);var l=t,u=t;for(n.isBefore(t,r)&&(l=n.date(r),u=null),n.isAfter(t,i)&&(u&&(u=n.date(i)),l=null);l||u;){if(l&&n.isAfter(l,i)&&(l=null),u&&n.isBefore(u,r)&&(u=null),l){if(!s(l))return l;l=n.addDays(l,1)}if(u){if(!s(u))return u;u=n.addDays(u,-1)}}return n.date()}({date:t,utils:i,minDate:i.date(n),maxDate:i.date(r),disablePast:Boolean(a),disableFuture:Boolean(o),shouldDisableDate:this.shouldDisableDate});this.handleDaySelect(s,!1)}}},{key:"render",value:function(){var e=this.state,t=e.currentMonth,n=e.slideDirection,r=this.props,a=r.classes,o=r.allowKeyboardControl,s=r.leftArrowButtonProps,c=r.leftArrowIcon,l=r.rightArrowButtonProps,u=r.rightArrowIcon,f=r.loadingIndicator,d=f||Object(i.createElement)(se.a,null);return Object(i.createElement)(i.Fragment,null,o&&"static"!==this.context&&Object(i.createElement)(he,{onKeyDown:this.handleKeyDown}),Object(i.createElement)(de,{currentMonth:t,slideDirection:n,onMonthChange:this.handleChangeMonth,leftArrowIcon:c,leftArrowButtonProps:s,rightArrowIcon:u,rightArrowButtonProps:l,disablePrevMonth:this.shouldDisablePrevMonth(),disableNextMonth:this.shouldDisableNextMonth()}),Object(i.createElement)(ue,{slideDirection:n,transKey:t.toString(),className:a.transitionContainer},Object(i.createElement)(i.Fragment,null,this.state.loadingQueue>0&&Object(i.createElement)("div",{className:a.progressContainer},d)||Object(i.createElement)("div",null,this.renderWeeks()))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.utils,r=e.date;if(!n.isEqual(r,t.lastDate)){var i=n.getMonth(r),a=t.lastDate||r,o=n.getMonth(a);return{lastDate:r,currentMonth:e.utils.startOfMonth(r),slideDirection:i===o?t.slideDirection:n.isAfterDay(r,a)?"left":"right"}}return null}}]),t}(i.Component);pe.contextType=R,pe.defaultProps={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),disablePast:!1,disableFuture:!1,allowKeyboardControl:!0};var ve,me=Object(m.a)((function(e){return{transitionContainer:{minHeight:216,marginTop:e.spacing(1.5)},progressContainer:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"},week:{display:"flex",justifyContent:"center"}}}),{name:"MuiPickersCalendar",withTheme:!0})(function(e){var t=function(t){var n=Object(s.b)();return Object(i.createElement)(e,Object(l.a)({utils:n},t))};return t.displayName="WithUtils(".concat(e.displayName||e.name,")"),t}(pe));!function(e){e.HOURS="hours",e.MINUTES="minutes",e.SECONDS="seconds"}(ve||(ve={}));var ge=ve,be=function(e){function t(){var e,n;Object(W.a)(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=q(this,(e=Y(t)).call.apply(e,[this].concat(i)))).state={toAnimateTransform:!1,previousType:void 0},n.getAngleStyle=function(){var e=n.props,t=e.value,r=e.isInner,i=e.type,a=360/(i===ge.HOURS?12:60)*t;return i===ge.HOURS&&t>12&&(a-=360),{height:r?"26%":"40%",transform:"rotateZ(".concat(a,"deg)")}},n}return K(t,e),Object(H.a)(t,[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.hasSelected;return Object(i.createElement)("div",{style:this.getAngleStyle(),className:Object(c.a)(t.pointer,this.state.toAnimateTransform&&t.animateTransform)},Object(i.createElement)("div",{className:Object(c.a)(t.thumb,n&&t.noPoint)}))}}]),t}(i.Component);be.getDerivedStateFromProps=function(e,t){return e.type!==t.previousType?{toAnimateTransform:!0,previousType:e.type}:{toAnimateTransform:!1,previousType:e.type}};var ye=Object(m.a)((function(e){return Object(v.a)({pointer:{width:2,backgroundColor:e.palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},animateTransform:{transition:e.transitions.create(["transform","height"])},thumb:{width:4,height:4,backgroundColor:e.palette.primary.contrastText,borderRadius:"100%",position:"absolute",top:-21,left:-15,border:"14px solid ".concat(e.palette.primary.main),boxSizing:"content-box"},noPoint:{backgroundColor:e.palette.primary.main}})}),{name:"MuiPickersClockPointer"})(be),Oe={x:130,y:130},xe=Oe.x-Oe.x,ke=0-Oe.y,we=function(e,t,n){var r=t-Oe.x,i=n-Oe.y,a=Math.atan2(xe,ke)-Math.atan2(r,i),o=57.29577951308232*a;o=Math.round(o/e)*e,o%=360;var s=Math.floor(o/e)||0,c=Math.pow(r,2)+Math.pow(i,2);return{value:s,distance:Math.sqrt(c)}},je=function(e,t,n){var r=we(30,e,t),i=r.value,a=r.distance;return i=i||12,n?i%=12:a<90&&(i+=12,i%=24),i},Se=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=6*n,i=we(r,e,t),a=i.value;return a=a*n%60},Ce=function(e,t){return t.getHours(e)>=12?"pm":"am"},Ee=function(e,t,n,r){if(n&&(r.getHours(e)>=12?"pm":"am")!==t){var i="am"===t?r.getHours(e)-12:r.getHours(e)+12;return r.setHours(e,i)}return e},Me=function(e){function t(){var e,n;Object(W.a)(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return(n=q(this,(e=Y(t)).call.apply(e,[this].concat(i)))).isMoving=!1,n.handleTouchMove=function(e){n.isMoving=!0,n.setTime(e)},n.handleTouchEnd=function(e){n.isMoving&&(n.setTime(e,!0),n.isMoving=!1)},n.handleMove=function(e){e.preventDefault(),e.stopPropagation(),("undefined"===typeof e.buttons?1===e.nativeEvent.which:1===e.buttons)&&n.setTime(e.nativeEvent,!1)},n.handleMouseUp=function(e){n.isMoving&&(n.isMoving=!1),n.setTime(e.nativeEvent,!0)},n.hasSelected=function(){var e=n.props,t=e.type,r=e.value;return t===ge.HOURS||r%5===0},n}return K(t,e),Object(H.a)(t,[{key:"setTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offsetX,r=e.offsetY;if("undefined"===typeof n){var i=e.target.getBoundingClientRect();n=e.changedTouches[0].clientX-i.left,r=e.changedTouches[0].clientY-i.top}var a=this.props.type===ge.SECONDS||this.props.type===ge.MINUTES?Se(n,r,this.props.minutesStep):je(n,r,Boolean(this.props.ampm));this.props.onChange(a,t)}},{key:"render",value:function(){var e=this.props,t=e.classes,n=e.value,r=e.children,a=e.type,o=!e.ampm&&a===ge.HOURS&&(n<1||n>12);return Object(i.createElement)("div",{className:t.container},Object(i.createElement)("div",{className:t.clock},Object(i.createElement)("div",{role:"menu",tabIndex:-1,className:t.squareMask,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,onMouseUp:this.handleMouseUp,onMouseMove:this.handleMove}),Object(i.createElement)("div",{className:t.pin}),Object(i.createElement)(ye,{type:a,value:n,isInner:o,hasSelected:this.hasSelected()}),r))}}]),t}(i.Component);Me.defaultProps={ampm:!1,minutesStep:1};var Pe=Object(m.a)((function(e){return Object(v.a)({container:{display:"flex",justifyContent:"center",alignItems:"flex-end",margin:"".concat(e.spacing(2),"px 0 ").concat(e.spacing(1),"px")},clock:{backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:260,width:260,position:"relative",pointerEvents:"none"},squareMask:{width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:"none",touchActions:"none",userSelect:"none","&:active":{cursor:"move"}},pin:{width:6,height:6,borderRadius:"50%",backgroundColor:e.palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}})}),{name:"MuiPickersClock"})(Me),Te={0:[0,40],1:[55,19.6],2:[94.4,59.5],3:[109,114],4:[94.4,168.5],5:[54.5,208.4],6:[0,223],7:[-54.5,208.4],8:[-94.4,168.5],9:[-109,114],10:[-94.4,59.5],11:[-54.5,19.6],12:[0,5],13:[36.9,49.9],14:[64,77],15:[74,114],16:[64,151],17:[37,178],18:[0,188],19:[-37,178],20:[-64,151],21:[-74,114],22:[-64,77],23:[-37,50]},_e=Object(f.a)((function(e){var t=e.spacing(4);return{clockNumber:{width:t,height:32,userSelect:"none",position:"absolute",left:"calc((100% - ".concat("number"===typeof t?"".concat(t,"px"):t,") / 2)"),display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:"light"===e.palette.type?e.palette.text.primary:e.palette.text.hint},clockNumberSelected:{color:e.palette.primary.contrastText}}}),{name:"MuiPickersClockNumber"}),De=function(e){var t=e.selected,n=e.label,r=e.index,a=e.isInner,o=_e(),s=Object(c.a)(o.clockNumber,t&&o.clockNumberSelected),l=Object(i.useMemo)((function(){var e=Te[r];return{transform:"translate(".concat(e[0],"px, ").concat(e[1],"px")}}),[r]);return Object(i.createElement)(h.a,{component:"span",className:s,variant:a?"body2":"body1",style:l,children:n})},Ae=function(e){for(var t=e.ampm,n=e.utils,r=e.date,a=n.getHours(r),o=[],s=t?12:23,c=function(e){return t?12===e?12===a||0===a:a===e||a-12===e:a===e},u=t?1:0;u<=s;u+=1){var f=u.toString();0===u&&(f="00");var d={index:u,label:n.formatNumber(f),selected:c(u),isInner:!t&&(0===u||u>12)};o.push(Object(i.createElement)(De,Object(l.a)({key:u},d)))}return o},Re=function(e){var t=e.value,n=e.utils.formatNumber;return[Object(i.createElement)(De,{label:n("00"),selected:0===t,index:12,key:12}),Object(i.createElement)(De,{label:n("05"),selected:5===t,index:1,key:1}),Object(i.createElement)(De,{label:n("10"),selected:10===t,index:2,key:2}),Object(i.createElement)(De,{label:n("15"),selected:15===t,index:3,key:3}),Object(i.createElement)(De,{label:n("20"),selected:20===t,index:4,key:4}),Object(i.createElement)(De,{label:n("25"),selected:25===t,index:5,key:5}),Object(i.createElement)(De,{label:n("30"),selected:30===t,index:6,key:6}),Object(i.createElement)(De,{label:n("35"),selected:35===t,index:7,key:7}),Object(i.createElement)(De,{label:n("40"),selected:40===t,index:8,key:8}),Object(i.createElement)(De,{label:n("45"),selected:45===t,index:9,key:9}),Object(i.createElement)(De,{label:n("50"),selected:50===t,index:10,key:10}),Object(i.createElement)(De,{label:n("55"),selected:55===t,index:11,key:11})]},Le=function(e){var t=e.type,n=e.onHourChange,r=e.onMinutesChange,a=e.onSecondsChange,o=e.ampm,c=e.date,u=e.minutesStep,f=Object(s.b)(),d=Object(i.useMemo)((function(){switch(t){case ge.HOURS:return{value:f.getHours(c),children:Ae({date:c,utils:f,ampm:Boolean(o)}),onChange:function(e,t){var r=Ce(c,f),i=Ee(f.setHours(c,e),r,Boolean(o),f);n(i,t)}};case ge.MINUTES:var e=f.getMinutes(c);return{value:e,children:Re({value:e,utils:f}),onChange:function(e,t){var n=f.setMinutes(c,e);r(n,t)}};case ge.SECONDS:var i=f.getSeconds(c);return{value:i,children:Re({value:i,utils:f}),onChange:function(e,t){var n=f.setSeconds(c,e);a(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[o,c,n,r,a,t,f]);return Object(i.createElement)(Pe,Object(l.a)({type:t,ampm:o,minutesStep:u},d))};Le.displayName="TimePickerView",Le.defaultProps={ampm:!0,minutesStep:1};Object(i.memo)(Le);function Ne(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}Object(o.oneOfType)([o.object,o.string,o.number,Object(o.instanceOf)(Date)]),Object(o.oneOf)(["year","month","day"]);var Ie={minDate:new Date("1900-01-01"),maxDate:new Date("2100-01-01"),invalidDateMessage:"Invalid Date Format",minDateMessage:"Date should not be before minimal date",maxDateMessage:"Date should not be after maximal date",allowKeyboardControl:!0},ze=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ne(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{ampm:!0,invalidDateMessage:"Invalid Time Format"},{},Ie,{showTabs:!0});var $e=Object(f.a)((function(e){return{root:{height:40,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none","&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},yearSelected:{margin:"10px 0",fontWeight:e.typography.fontWeightMedium},yearDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersYear"}),Fe=function(e){var t=e.onSelect,n=e.forwardedRef,r=e.value,a=e.selected,o=e.disabled,s=e.children,f=Object(u.a)(e,["onSelect","forwardedRef","value","selected","disabled","children"]),d=$e(),p=Object(i.useCallback)((function(){return t(r)}),[t,r]);return Object(i.createElement)(h.a,Object(l.a)({role:"button",component:"div",tabIndex:o?-1:0,onClick:p,onKeyPress:p,color:a?"primary":void 0,variant:a?"h5":"subtitle1",children:s,ref:n,className:Object(c.a)(d.root,a&&d.yearSelected,o&&d.yearDisabled)},f))};Fe.displayName="Year";var Be=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(Fe,Object(l.a)({},e,{forwardedRef:t}))})),Qe=Object(f.a)({container:{height:300,overflowY:"auto"}},{name:"MuiPickersYearSelection"}),We=function(e){var t=e.date,n=e.onChange,r=e.onYearChange,a=e.minDate,o=e.maxDate,c=e.disablePast,l=e.disableFuture,u=e.animateYearScrolling,f=Object(s.b)(),d=Qe(),h=Object(i.useContext)(R),p=Object(i.useRef)(null);Object(i.useEffect)((function(){if(p.current&&p.current.scrollIntoView)try{p.current.scrollIntoView({block:"static"===h?"nearest":"center",behavior:u?"smooth":"auto"})}catch(e){p.current.scrollIntoView()}}),[]);var v=f.getYear(t),m=Object(i.useCallback)((function(e){var i=f.setYear(t,e);r&&r(i),n(i,!0)}),[t,n,r,f]);return Object(i.createElement)("div",{className:d.container},f.getYearRange(a,o).map((function(e){var t=f.getYear(e),n=t===v;return Object(i.createElement)(Be,{key:f.getYearText(e),selected:n,value:t,onSelect:m,ref:n?p:void 0,disabled:Boolean(c&&f.isBeforeYear(e,f.date())||l&&f.isAfterYear(e,f.date()))},f.getYearText(e))})))},He=Object(f.a)((function(e){return{root:{flex:"1 0 33.33%",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",outline:"none",height:75,transition:e.transitions.create("font-size",{duration:"100ms"}),"&:focus":{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium}},monthSelected:{color:e.palette.primary.main,fontWeight:e.typography.fontWeightMedium},monthDisabled:{pointerEvents:"none",color:e.palette.text.hint}}}),{name:"MuiPickersMonth"}),Ve=function(e){var t=e.selected,n=e.onSelect,r=e.disabled,a=e.value,o=e.children,s=Object(u.a)(e,["selected","onSelect","disabled","value","children"]),f=He(),d=Object(i.useCallback)((function(){n(a)}),[n,a]);return Object(i.createElement)(h.a,Object(l.a)({role:"button",component:"div",className:Object(c.a)(f.root,t&&f.monthSelected,r&&f.monthDisabled),tabIndex:r?-1:0,onClick:d,onKeyPress:d,color:t?"primary":void 0,variant:t?"h5":"subtitle1",children:o},s))};Ve.displayName="Month";var Ue=Object(f.a)({container:{width:310,display:"flex",flexWrap:"wrap",alignContent:"stretch"}},{name:"MuiPickersMonthSelection"}),qe=function(e){var t=e.disablePast,n=e.disableFuture,r=e.minDate,a=e.maxDate,o=e.date,c=e.onMonthChange,l=e.onChange,u=Object(s.b)(),f=Ue(),d=u.getMonth(o),h=function(e){var i=u.date(),o=u.date(r),s=u.date(a),c=u.startOfMonth(t&&u.isAfter(i,o)?i:o),l=u.startOfMonth(n&&u.isBefore(i,s)?i:s),f=u.isBefore(e,c),d=u.isAfter(e,l);return f||d},p=Object(i.useCallback)((function(e){var t=u.setMonth(o,e);l(t,!0),c&&c(t)}),[o,l,c,u]);return Object(i.createElement)("div",{className:f.container},u.getMonthArray(o).map((function(e){var t=u.getMonth(e),n=u.format(e,"MMM");return Object(i.createElement)(Ve,{key:n,value:t,selected:t===d,onSelect:p,disabled:h(e)},n)})))},Ye=function(){return"undefined"===typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"};function Xe(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}var Ke={year:We,month:qe,date:me,hours:Le,minutes:Le,seconds:Le},Ge=Object(f.a)({container:{display:"flex",flexDirection:"column"},containerLandscape:{flexDirection:"row"},pickerView:{overflowX:"hidden",minHeight:305,minWidth:310,maxWidth:325,display:"flex",flexDirection:"column",justifyContent:"center"},pickerViewLandscape:{padding:"0 8px"}},{name:"MuiPickersBasePicker"}),Ze=function(e){var t=e.date,n=e.views,r=e.disableToolbar,a=e.onChange,o=e.openTo,f=e.minDate,d=e.maxDate,h=e.ToolbarComponent,p=e.orientation,v=Object(u.a)(e,["date","views","disableToolbar","onChange","openTo","minDate","maxDate","ToolbarComponent","orientation"]),m=Object(s.b)(),g=Ge(),b=function(e){var t=Object(i.useState)(Ye()),n=Object(Q.a)(t,2),r=n[0],a=n[1],o=Object(i.useCallback)((function(){return a(Ye())}),[]);return P((function(){return window.addEventListener("orientationchange",o),function(){return window.removeEventListener("orientationchange",o)}}),[o]),"landscape"===(e||r)}(p),y=function(e,t,n){var r=Object(i.useState)(t&&w(e,t)?t:e[0]),a=Object(Q.a)(r,2),o=a[0],s=a[1];return{handleChangeAndOpenNext:Object(i.useCallback)((function(t,r){var i=e[e.indexOf(o)+1];if(r&&i)return n(t,!1),void s(i);n(t,Boolean(r))}),[n,o,e]),openView:o,setOpenView:s}}(n,o,a),O=y.openView,x=y.setOpenView,k=y.handleChangeAndOpenNext,j=Object(i.useMemo)((function(){return m.date(f)}),[f,m]),S=Object(i.useMemo)((function(){return m.date(d)}),[d,m]);return Object(i.createElement)("div",{className:Object(c.a)(g.container,b&&g.containerLandscape)},!r&&Object(i.createElement)(h,Object(l.a)({},v,{views:n,isLandscape:b,date:t,onChange:a,setOpenView:x,openView:O})),Object(i.createElement)("div",{className:Object(c.a)(g.pickerView,b&&g.pickerViewLandscape)},"year"===O&&Object(i.createElement)(We,Object(l.a)({},v,{date:t,onChange:k,minDate:j,maxDate:S})),"month"===O&&Object(i.createElement)(qe,Object(l.a)({},v,{date:t,onChange:k,minDate:j,maxDate:S})),"date"===O&&Object(i.createElement)(me,Object(l.a)({},v,{date:t,onChange:k,minDate:j,maxDate:S})),("hours"===O||"minutes"===O||"seconds"===O)&&Object(i.createElement)(Le,Object(l.a)({},v,{date:t,type:O,onHourChange:k,onMinutesChange:k,onSecondsChange:k}))))};Ze.defaultProps=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ie,{views:Object.keys(Ke)});var Je=Object(f.a)((function(e){var t="light"===e.palette.type?e.palette.primary.contrastText:e.palette.getContrastText(e.palette.background.default);return{toolbarTxt:{color:Object(p.c)(t,.54)},toolbarBtnSelected:{color:t}}}),{name:"MuiPickersToolbarText"}),et=function(e){var t=e.selected,n=e.label,r=e.className,a=void 0===r?null:r,o=Object(u.a)(e,["selected","label","className"]),s=Je();return Object(i.createElement)(h.a,Object(l.a)({children:n,className:Object(c.a)(s.toolbarTxt,a,t&&s.toolbarBtnSelected)},o))},tt=function(e){var t=e.classes,n=e.className,r=void 0===n?null:n,a=e.label,o=e.selected,s=e.variant,f=e.align,d=e.typographyClassName,h=Object(u.a)(e,["classes","className","label","selected","variant","align","typographyClassName"]);return Object(i.createElement)(g.a,Object(l.a)({variant:"text",className:Object(c.a)(t.toolbarBtn,r)},h),Object(i.createElement)(et,{align:f,className:d,variant:s,label:a,selected:o}))};tt.defaultProps={className:""};var nt=Object(v.a)({toolbarBtn:{padding:0,minWidth:"16px",textTransform:"none"}}),rt=Object(m.a)(nt,{name:"MuiPickersToolbarButton"})(tt),it=Object(f.a)((function(e){return{toolbar:{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",height:100,backgroundColor:"light"===e.palette.type?e.palette.primary.main:e.palette.background.default},toolbarLandscape:{height:"auto",maxWidth:150,padding:8,justifyContent:"flex-start"}}}),{name:"MuiPickersToolbar"}),at=function(e){var t=e.children,n=e.isLandscape,r=e.className,a=void 0===r?null:r,o=Object(u.a)(e,["children","isLandscape","className"]),s=it();return Object(i.createElement)(b.a,Object(l.a)({className:Object(c.a)(s.toolbar,a,n&&s.toolbarLandscape)},o),t)};function ot(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}var st=function(e){var t=e.inputValue,n=e.inputVariant,a=e.validationError,o=e.InputProps,s=e.openPicker,c=e.TextFieldComponent,f=void 0===c?N.a:c,d=Object(u.a)(e,["inputValue","inputVariant","validationError","InputProps","openPicker","TextFieldComponent"]),h=Object(i.useMemo)((function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ot(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ot(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o,{readOnly:!0})}),[o]);return Object(i.createElement)(f,Object(l.a)({error:Boolean(a),helperText:a},d,{onClick:s,value:t,variant:n,InputProps:h,onKeyDown:function(e){32===e.keyCode&&(e.stopPropagation(),s())}}))};st.displayName="PureDateInput";var ct=function(e,t,n,r,i){var a=i.invalidLabel,o=i.emptyLabel,s=i.labelFunc,c=n.date(e);return s?s(r?null:c,a):r?o||"":n.isValid(c)?n.format(c,t):a},lt=function(e,t,n){return t?n:e.endOfDay(n)},ut=function(e,t,n){return t?n:e.startOfDay(n)};function ft(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 dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ft(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ht=function(e){var t=e.inputValue,n=e.inputVariant,a=e.validationError,o=e.KeyboardButtonProps,s=e.InputAdornmentProps,c=e.openPicker,f=e.onChange,d=e.InputProps,h=e.mask,p=e.maskChar,v=void 0===p?"_":p,m=e.refuse,g=void 0===m?/[^\d]+/gi:m,b=e.format,y=e.keyboardIcon,O=e.disabled,x=e.rifmFormatter,k=e.TextFieldComponent,w=void 0===k?N.a:k,j=Object(u.a)(e,["inputValue","inputVariant","validationError","KeyboardButtonProps","InputAdornmentProps","openPicker","onChange","InputProps","mask","maskChar","refuse","format","keyboardIcon","disabled","rifmFormatter","TextFieldComponent"]),S=h||function(e,t){return e.replace(/[a-z]/gi,t)}(b,v),C=Object(i.useMemo)((function(){return function(e,t,n){return function(r){var i="",a=r.replace(n,"");if(""===a)return a;for(var o=0,s=0;o<e.length;){var c=e[o];c===t&&s<a.length?(i+=a[s],s+=1):i+=c,o+=1}return i}}(S,v,g)}),[S,v,g]),E=s&&s.position?s.position:"end";return Object(i.createElement)(F,{key:S,value:t,onChange:function(e){f(""===e||e===S?null:e)},refuse:g,format:x||C},(function(e){var t=e.onChange,u=e.value;return Object(i.createElement)(w,Object(l.a)({disabled:O,error:Boolean(a),helperText:a},j,{value:u,onChange:t,variant:n,InputProps:dt({},d,Object(r.a)({},"".concat(E,"Adornment"),Object(i.createElement)(z.a,Object(l.a)({position:E},s),Object(i.createElement)(I.a,Object(l.a)({disabled:O},o,{onClick:c}),y))))}))}))};ht.defaultProps={keyboardIcon:Object(i.createElement)((function(e){return a.a.createElement(B.a,e,a.a.createElement("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),a.a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null)};function pt(e,t){return{date:function(e,t){var n=t.value,r=t.initialFocusedDate,a=Object(i.useRef)(e.date()),o=e.date(n||r||a.current);return o&&e.isValid(o)?o:a.current}(Object(s.b)(),e),format:e.format||t.getDefaultFormat()}}function vt(e,t){var n=e.autoOk,r=e.disabled,a=e.readOnly,o=e.onAccept,c=e.onChange,l=e.onError,u=e.value,f=e.variant,d=Object(s.b)(),h=function(e){var t=e.open,n=e.onOpen,r=e.onClose,a=null;if(void 0===t||null===t){var o=Object(i.useState)(!1),s=Object(Q.a)(o,2);t=s[0],a=s[1]}return{isOpen:t,setIsOpen:Object(i.useCallback)((function(e){return a&&a(e),e?n&&n():r&&r()}),[n,r,a])}}(e),p=h.isOpen,v=h.setIsOpen,m=pt(e,t),g=m.date,b=m.format,y=Object(i.useState)(g),O=Object(Q.a)(y,2),x=O[0],k=O[1];Object(i.useEffect)((function(){p||d.isEqual(x,g)||k(g)}),[g,p,x,d]);var w=Object(i.useCallback)((function(e){c(e),o&&o(e),v(!1)}),[o,c,v]),j=Object(i.useMemo)((function(){return{format:b,open:p,onClear:function(){return w(null)},onAccept:function(){return w(x)},onSetToday:function(){return k(d.date())},onDismiss:function(){v(!1)}}}),[w,b,p,x,v,d]),S=Object(i.useMemo)((function(){return{date:x,onChange:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];k(e),t&&n?w(e):"inline"!==f&&"static"!==f||(c(e),o&&o(e))}}}),[w,n,o,c,x,f]),C=function(e,t,n){var r=n.maxDate,i=n.minDate,a=n.disablePast,o=n.disableFuture,s=n.maxDateMessage,c=n.minDateMessage,l=n.invalidDateMessage,u=n.strictCompareDates,f=t.date(e);return null===e?"":t.isValid(e)?r&&t.isAfter(f,lt(t,!!u,t.date(r)))||o&&t.isAfter(f,lt(t,!!u,t.date()))?s:i&&t.isBefore(f,ut(t,!!u,t.date(i)))||a&&t.isBefore(f,ut(t,!!u,t.date()))?c:"":l}(u,d,e);Object(i.useEffect)((function(){l&&l(C,u)}),[l,C,u]);var E=ct(g,b,d,null===u,e),M={pickerProps:S,inputProps:Object(i.useMemo)((function(){return{inputValue:E,validationError:C,openPicker:function(){return!a&&!r&&v(!0)}}}),[r,E,a,v,C]),wrapperProps:j};return Object(i.useDebugValue)(M),M}function mt(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 gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bt(e){var t=e.Input,n=e.useState,r=e.useOptions,a=e.getCustomProps,o=e.DefaultToolbarComponent;return function(e){var s=e.allowKeyboardControl,c=e.ampm,f=e.animateYearScrolling,d=(e.autoOk,e.dateRangeIcon),h=e.disableFuture,p=e.disablePast,v=e.disableToolbar,m=(e.emptyLabel,e.format,e.forwardedRef,e.hideTabs),g=(e.initialFocusedDate,e.invalidDateMessage,e.invalidLabel,e.labelFunc,e.leftArrowButtonProps),b=e.leftArrowIcon,y=e.loadingIndicator,O=e.maxDate,x=(e.maxDateMessage,e.minDate),k=(e.minDateMessage,e.minutesStep),w=(e.onAccept,e.onChange,e.onClose,e.onMonthChange),j=(e.onOpen,e.onYearChange),S=e.openTo,C=e.orientation,E=e.renderDay,M=e.rightArrowButtonProps,P=e.rightArrowIcon,T=e.shouldDisableDate,_=e.strictCompareDates,D=e.timeIcon,A=e.ToolbarComponent,R=void 0===A?o:A,N=(e.value,e.variant),I=e.views,z=Object(u.a)(e,["allowKeyboardControl","ampm","animateYearScrolling","autoOk","dateRangeIcon","disableFuture","disablePast","disableToolbar","emptyLabel","format","forwardedRef","hideTabs","initialFocusedDate","invalidDateMessage","invalidLabel","labelFunc","leftArrowButtonProps","leftArrowIcon","loadingIndicator","maxDate","maxDateMessage","minDate","minDateMessage","minutesStep","onAccept","onChange","onClose","onMonthChange","onOpen","onYearChange","openTo","orientation","renderDay","rightArrowButtonProps","rightArrowIcon","shouldDisableDate","strictCompareDates","timeIcon","ToolbarComponent","value","variant","views"]),$=a?a(e):{},F=r(e),B=n(e,F),Q=B.pickerProps,W=B.inputProps,H=B.wrapperProps;return Object(i.createElement)(L,Object(l.a)({variant:N,InputComponent:t,DateInputProps:W},$,H,z),Object(i.createElement)(Ze,Object(l.a)({},Q,{allowKeyboardControl:s,ampm:c,animateYearScrolling:f,dateRangeIcon:d,disableFuture:h,disablePast:p,disableToolbar:v,hideTabs:m,leftArrowButtonProps:g,leftArrowIcon:b,loadingIndicator:y,maxDate:O,minDate:x,minutesStep:k,onMonthChange:w,onYearChange:j,openTo:S,orientation:C,renderDay:E,rightArrowButtonProps:M,rightArrowIcon:P,shouldDisableDate:T,strictCompareDates:_,timeIcon:D,ToolbarComponent:R,views:I})))}}Object(f.a)({toolbarLandscape:{flexWrap:"wrap"},toolbarAmpmLeftPadding:{paddingLeft:50},separator:{margin:"0 4px 0 2px",cursor:"default"},hourMinuteLabel:{display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},hourMinuteLabelAmpmLandscape:{marginTop:"auto"},hourMinuteLabelReverse:{flexDirection:"row-reverse"},ampmSelection:{marginLeft:20,marginRight:-20,display:"flex",flexDirection:"column"},ampmLandscape:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},ampmSelectionWithSeconds:{marginLeft:15,marginRight:10},ampmLabel:{fontSize:18}},{name:"MuiPickersTimePickerToolbar"});function yt(e,t,n){var r=Object(s.b)();return{meridiemMode:Ce(e,r),handleMeridiemChange:Object(i.useCallback)((function(i){var a=Ee(e,i,Boolean(t),r);n(a,!1)}),[t,e,n,r])}}var Ot=n(401),xt=n(394),kt=n(412),wt=n(206),jt=function(e){return"date"===e||"year"===e?"date":"time"},St=Object(f.a)((function(e){var t="light"===e.palette.type?e.palette.primary.main:e.palette.background.default;return{tabs:{color:e.palette.getContrastText(t),backgroundColor:t}}}),{name:"MuiPickerDTTabs"}),Ct=function(e){var t=e.view,n=e.onChange,r=e.dateRangeIcon,a=e.timeIcon,o=St(),s="light"===Object(d.a)().palette.type?"secondary":"primary";return Object(i.createElement)(wt.a,null,Object(i.createElement)(kt.a,{variant:"fullWidth",value:jt(t),onChange:function(e,r){r!==jt(t)&&n("date"===r?"date":"hours")},className:o.tabs,indicatorColor:s},Object(i.createElement)(xt.a,{value:"date",icon:Object(i.createElement)(i.Fragment,null,r)}),Object(i.createElement)(xt.a,{value:"time",icon:Object(i.createElement)(i.Fragment,null,a)})))};Ct.defaultProps={dateRangeIcon:Object(i.createElement)((function(e){return a.a.createElement(B.a,e,a.a.createElement("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),a.a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}))}),null),timeIcon:Object(i.createElement)((function(e){return a.a.createElement(B.a,e,a.a.createElement("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),a.a.createElement("path",{fill:"none",d:"M0 0h24v24H0z"}),a.a.createElement("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}))}),null)};var Et=Object(f.a)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),Mt=function(e){var t=e.date,n=e.openView,r=e.setOpenView,a=e.ampm,o=e.hideTabs,c=e.dateRangeIcon,l=e.timeIcon,u=e.onChange,f=Object(s.b)(),h=Et(),p=!o&&"undefined"!==typeof window&&window.innerHeight>667,v=yt(t,a,u),m=v.meridiemMode,g=v.handleMeridiemChange,b="rtl"===Object(d.a)().direction;return Object(i.createElement)(i.Fragment,null,Object(i.createElement)(at,{isLandscape:!1,className:h.toolbar},Object(i.createElement)(Ot.a,{container:!0,justify:"center",wrap:"nowrap"},Object(i.createElement)(Ot.a,{item:!0,container:!0,xs:5,justify:"flex-start",direction:"column"},Object(i.createElement)("div",null,Object(i.createElement)(rt,{variant:"subtitle1",onClick:function(){return r("year")},selected:"year"===n,label:f.getYearText(t)})),Object(i.createElement)("div",null,Object(i.createElement)(rt,{variant:"h4",onClick:function(){return r("date")},selected:"date"===n,label:f.getDateTimePickerHeaderText(t)}))),Object(i.createElement)(Ot.a,{item:!0,container:!0,xs:6,justify:"center",alignItems:"flex-end",direction:b?"row-reverse":"row"},Object(i.createElement)(rt,{variant:"h3",onClick:function(){return r("hours")},selected:"hours"===n,label:f.getHourText(t,a)}),Object(i.createElement)(et,{variant:"h3",label:":",className:h.separator}),Object(i.createElement)(rt,{variant:"h3",onClick:function(){return r("minutes")},selected:"minutes"===n,label:f.getMinuteText(t)})),a&&Object(i.createElement)(Ot.a,{item:!0,container:!0,xs:1,direction:"column",justify:"flex-end"},Object(i.createElement)(rt,{variant:"subtitle1",selected:"am"===m,label:f.getMeridiemText("am"),onClick:function(){return g("am")}}),Object(i.createElement)(rt,{variant:"subtitle1",selected:"pm"===m,label:f.getMeridiemText("pm"),onClick:function(){return g("pm")}})))),p&&Object(i.createElement)(Ct,{dateRangeIcon:c,timeIcon:l,view:n,onChange:r}))};function Pt(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}var Tt=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},ze,{wider:!0,orientation:"portrait",openTo:"date",views:["year","date","hours","minutes"]});function _t(e){var t=Object(s.b)();if("portrait"!==e.orientation)throw new Error("We are not supporting custom orientation for DateTimePicker yet :(");return{getDefaultFormat:function(){return function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;return e||(t?n["12h"]:n["24h"])}(e.format,e.ampm,{"12h":t.dateTime12hFormat,"24h":t.dateTime24hFormat})}}}var Dt=bt({useOptions:_t,Input:st,useState:vt,DefaultToolbarComponent:Mt}),At=bt({useOptions:_t,Input:ht,useState:function(e,t){var n=e.format,r=void 0===n?t.getDefaultFormat():n,a=e.inputValue,o=e.onChange,c=e.value,l=Object(s.b)(),u=ct(c,r,l,null===c,e),f=Object(i.useState)(u),d=Object(Q.a)(f,2),h=d[0],p=d[1],v=a?function(e,t,n){try{return t.parse(e,n)}catch(r){return null}}(a,l,r):c;Object(i.useEffect)((function(){(null===c||l.isValid(c))&&p(u)}),[u,p,l,c]);var m=vt(gt({},e,{value:v,onChange:Object(i.useCallback)((function(e){o(e,null===e?null:l.format(e,r))}),[r,o,l])}),t),g=m.inputProps,b=m.wrapperProps,y=m.pickerProps;return{inputProps:Object(i.useMemo)((function(){return gt({},g,{format:b.format,inputValue:a||h,onChange:function(e){p(e||"");var t=null===e?null:l.parse(e,b.format);o(t,e)}})}),[g,h,a,o,l,b.format]),wrapperProps:b,pickerProps:y}},DefaultToolbarComponent:Mt,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Dt.defaultProps=Tt,At.defaultProps=Tt},function(e,t,n){"use strict";var r=n(58),i=n(2),a=(n(12),n(70));var o=function(e){var t=function(t){var n=e(t);return t.css?Object(i.a)(Object(i.a)({},Object(a.a)(n,e(Object(i.a)({theme:t.theme},t.css)))),function(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(t.css,[e.filterProps])):n};return t.propTypes={},t.filterProps=["css"].concat(Object(r.a)(e.filterProps)),t};var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?Object(a.a)(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r},c=n(19),l=n(110);function u(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}var f=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,a=e.transform,o=function(e){if(null==e[t])return null;var n=e[t],o=u(e.theme,i)||{};return Object(l.a)(e,n,(function(e){var t;return"function"===typeof o?t=o(e):Array.isArray(o)?t=o[e]||e:(t=u(o,e)||e,a&&(t=a(t))),!1===r?t:Object(c.a)({},r,t)}))};return o.propTypes={},o.filterProps=[t],o};function d(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var h=s(f({prop:"border",themeKey:"borders",transform:d}),f({prop:"borderTop",themeKey:"borders",transform:d}),f({prop:"borderRight",themeKey:"borders",transform:d}),f({prop:"borderBottom",themeKey:"borders",transform:d}),f({prop:"borderLeft",themeKey:"borders",transform:d}),f({prop:"borderColor",themeKey:"palette"}),f({prop:"borderRadius",themeKey:"shape"})),p=s(f({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),f({prop:"display"}),f({prop:"overflow"}),f({prop:"textOverflow"}),f({prop:"visibility"}),f({prop:"whiteSpace"})),v=s(f({prop:"flexBasis"}),f({prop:"flexDirection"}),f({prop:"flexWrap"}),f({prop:"justifyContent"}),f({prop:"alignItems"}),f({prop:"alignContent"}),f({prop:"order"}),f({prop:"flex"}),f({prop:"flexGrow"}),f({prop:"flexShrink"}),f({prop:"alignSelf"}),f({prop:"justifyItems"}),f({prop:"justifySelf"})),m=s(f({prop:"gridGap"}),f({prop:"gridColumnGap"}),f({prop:"gridRowGap"}),f({prop:"gridColumn"}),f({prop:"gridRow"}),f({prop:"gridAutoFlow"}),f({prop:"gridAutoColumns"}),f({prop:"gridAutoRows"}),f({prop:"gridTemplateColumns"}),f({prop:"gridTemplateRows"}),f({prop:"gridTemplateAreas"}),f({prop:"gridArea"})),g=s(f({prop:"position"}),f({prop:"zIndex",themeKey:"zIndex"}),f({prop:"top"}),f({prop:"right"}),f({prop:"bottom"}),f({prop:"left"})),b=s(f({prop:"color",themeKey:"palette"}),f({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),y=f({prop:"boxShadow",themeKey:"shadows"});function O(e){return e<=1?"".concat(100*e,"%"):e}var x=f({prop:"width",transform:O}),k=f({prop:"maxWidth",transform:O}),w=f({prop:"minWidth",transform:O}),j=f({prop:"height",transform:O}),S=f({prop:"maxHeight",transform:O}),C=f({prop:"minHeight",transform:O}),E=(f({prop:"size",cssProperty:"width",transform:O}),f({prop:"size",cssProperty:"height",transform:O}),s(x,k,w,j,S,C,f({prop:"boxSizing"}))),M=n(423),P=s(f({prop:"fontFamily",themeKey:"typography"}),f({prop:"fontSize",themeKey:"typography"}),f({prop:"fontStyle",themeKey:"typography"}),f({prop:"fontWeight",themeKey:"typography"}),f({prop:"letterSpacing"}),f({prop:"lineHeight"}),f({prop:"textAlign"})),T=n(8),_=n(0),D=n.n(_),A=n(9),R=n(113),L=n.n(R),N=n(345);function I(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var z=n(69),$=function(e){var t=function(e){return function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=r.name,o=Object(T.a)(r,["name"]),s=a,c="function"===typeof t?function(e){return{root:function(n){return t(Object(i.a)({theme:e},n))}}}:{root:t},l=Object(N.a)(c,Object(i.a)({Component:e,name:a||e.displayName,classNamePrefix:s},o));t.filterProps&&(n=t.filterProps,delete t.filterProps),t.propTypes&&(t.propTypes,delete t.propTypes);var u=D.a.forwardRef((function(t,r){var a=t.children,o=t.className,s=t.clone,c=t.component,u=Object(T.a)(t,["children","className","clone","component"]),f=l(t),d=Object(A.a)(f.root,o),h=u;if(n&&(h=I(h,n)),s)return D.a.cloneElement(a,Object(i.a)({className:Object(A.a)(a.props.className,d)},h));if("function"===typeof a)return a(Object(i.a)({className:d},h));var p=c||e;return D.a.createElement(p,Object(i.a)({ref:r,className:d},h),a)}));return L()(u,e),u}}(e);return function(e,n){return t(e,Object(i.a)({defaultTheme:z.a},n))}},F=o(s(h,p,v,m,g,b,y,E,M.b,P)),B=$("div")(F,{name:"MuiBox"});t.a=B},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(390),c=n(347),l=n(11),u=a.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,l=e.fullWidth,u=void 0!==l&&l,f=e.inputComponent,d=void 0===f?"input":f,h=e.multiline,p=void 0!==h&&h,v=e.type,m=void 0===v?"text":v,g=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return a.createElement(c.a,Object(r.a)({classes:Object(r.a)({},s,{root:Object(o.a)(s.root,!n&&s.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g))}));u.muiName="Input";var f=Object(l.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}},underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(u),d=n(19),h=n(37),p=n(17),v=a.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,c=e.label,l=e.labelWidth,u=e.notched,f=e.style,v=Object(i.a)(e,["children","classes","className","label","labelWidth","notched","style"]),m="rtl"===Object(h.a)().direction?"right":"left";if(void 0!==c)return a.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(o.a)(n.root,s),ref:t,style:f},v),a.createElement("legend",{className:Object(o.a)(n.legendLabelled,u&&n.legendNotched)},c?a.createElement("span",null,c):a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var g=l>0?.75*l+8:.01;return a.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(d.a)({},"padding".concat(Object(p.a)(m)),8),f),className:Object(o.a)(n.root,s),ref:t},v),a.createElement("legend",{className:n.legend,style:{width:u?g:.01}},a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),m=Object(l.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(v),g=a.forwardRef((function(e,t){var n=e.classes,s=e.fullWidth,l=void 0!==s&&s,u=e.inputComponent,f=void 0===u?"input":u,d=e.label,h=e.labelWidth,p=void 0===h?0:h,v=e.multiline,g=void 0!==v&&v,b=e.notched,y=e.type,O=void 0===y?"text":y,x=Object(i.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return a.createElement(c.a,Object(r.a)({renderSuffix:function(e){return a.createElement(m,{className:n.notchedOutline,label:d,labelWidth:p,notched:"undefined"!==typeof b?b:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(o.a)(n.root,n.underline),notchedOutline:null}),fullWidth:l,inputComponent:f,multiline:g,ref:t,type:O},x))}));g.muiName="Input";var b=Object(l.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(g),y=n(419),O=n(391),x=n(393),k=n(375),w=n(28),j=n(64),S=n(205),C=(n(73),n(29)),E=n(392),M=n(26);var P=a.createContext({}),T=a.forwardRef((function(e,t){var n=e.children,s=e.classes,c=e.className,l=e.component,u=void 0===l?"ul":l,f=e.dense,d=void 0!==f&&f,h=e.disablePadding,p=void 0!==h&&h,v=e.subheader,m=Object(i.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=a.useMemo((function(){return{dense:d}}),[d]);return a.createElement(P.Provider,{value:g},a.createElement(u,Object(r.a)({className:Object(o.a)(s.root,c,d&&s.dense,!p&&s.padding,v&&s.subheader),ref:t},m),v,n))})),_=Object(l.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(T),D=n(120),A=n(23);function R(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function L(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function N(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function I(e,t,n,r,i,a){for(var o=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(o)return;o=!0}var c=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&N(s,a)&&!c)return void s.focus();s=i(e,s,n)}}var z="undefined"===typeof window?a.useEffect:a.useLayoutEffect,$=a.forwardRef((function(e,t){var n=e.actions,o=e.autoFocus,s=void 0!==o&&o,c=e.autoFocusItem,l=void 0!==c&&c,u=e.children,f=e.className,d=e.disabledItemsFocusable,h=void 0!==d&&d,p=e.disableListWrap,v=void 0!==p&&p,m=e.onKeyDown,g=e.variant,b=void 0===g?"selectedMenu":g,y=Object(i.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),O=a.useRef(null),x=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});z((function(){s&&O.current.focus()}),[s]),a.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!O.current.style.width;if(e.clientHeight<O.current.clientHeight&&n){var r="".concat(Object(D.a)(!0),"px");O.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,O.current.style.width="calc(100% + ".concat(r,")")}return O.current}}}),[]);var k=a.useCallback((function(e){O.current=M.findDOMNode(e)}),[]),w=Object(A.a)(k,t),j=-1;a.Children.forEach(u,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===j)&&(j=t))}));var S=a.Children.map(u,(function(e,t){if(t===j){var n={};return l&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===b&&(n.tabIndex=0),a.cloneElement(e,n)}return e}));return a.createElement(_,Object(r.a)({role:"menu",ref:w,className:f,onKeyDown:function(e){var t=O.current,n=e.key,r=Object(C.a)(t).activeElement;if("ArrowDown"===n)e.preventDefault(),I(t,r,v,h,R);else if("ArrowUp"===n)e.preventDefault(),I(t,r,v,h,L);else if("Home"===n)e.preventDefault(),I(t,null,v,h,R);else if("End"===n)e.preventDefault(),I(t,null,v,h,L);else if(1===n.length){var i=x.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);var s=r&&!i.repeating&&N(r,i);i.previousKeyMatched&&(s||I(t,r,!1,h,R,i))?e.preventDefault():i.previousKeyMatched=!1}m&&m(e)},tabIndex:s?0:-1},y),S)})),F=n(38),B={vertical:"top",horizontal:"right"},Q={vertical:"top",horizontal:"left"},W=a.forwardRef((function(e,t){var n=e.autoFocus,s=void 0===n||n,c=e.children,l=e.classes,u=e.disableAutoFocusItem,f=void 0!==u&&u,d=e.MenuListProps,p=void 0===d?{}:d,v=e.onClose,m=e.onEntering,g=e.open,b=e.PaperProps,y=void 0===b?{}:b,O=e.PopoverClasses,x=e.transitionDuration,k=void 0===x?"auto":x,w=e.variant,j=void 0===w?"selectedMenu":w,S=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),C=Object(h.a)(),P=s&&!f&&g,T=a.useRef(null),_=a.useRef(null),D=-1;a.Children.map(c,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==j&&e.props.selected||-1===D)&&(D=t))}));var A=a.Children.map(c,(function(e,t){return t===D?a.cloneElement(e,{ref:function(t){_.current=M.findDOMNode(t),Object(F.a)(e.ref,t)}}):e}));return a.createElement(E.a,Object(r.a)({getContentAnchorEl:function(){return _.current},classes:O,onClose:v,onEntering:function(e,t){T.current&&T.current.adjustStyleForScrollbar(e,C),m&&m(e,t)},anchorOrigin:"rtl"===C.direction?B:Q,transformOrigin:"rtl"===C.direction?B:Q,PaperProps:Object(r.a)({},y,{classes:Object(r.a)({},y.classes,{root:l.paper})}),open:g,ref:t,transitionDuration:k},S),a.createElement($,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:T,autoFocus:s&&(-1===D||f),autoFocusItem:P,variant:j},p,{className:Object(o.a)(l.list,p.className)}),A))})),H=Object(l.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(W),V=n(77),U=n(56);function q(e,t){return"object"===Object(j.a)(t)&&null!==t?e===t:String(e)===String(t)}var Y=a.forwardRef((function(e,t){var n=e["aria-label"],s=e.autoFocus,c=e.autoWidth,l=e.children,u=e.classes,f=e.className,d=e.defaultValue,h=e.disabled,v=e.displayEmpty,m=e.IconComponent,g=e.inputRef,b=e.labelId,y=e.MenuProps,O=void 0===y?{}:y,x=e.multiple,k=e.name,j=e.onBlur,E=e.onChange,M=e.onClose,P=e.onFocus,T=e.onOpen,_=e.open,D=e.readOnly,R=e.renderValue,L=e.SelectDisplayProps,N=void 0===L?{}:L,I=e.tabIndex,z=(e.type,e.value),$=e.variant,F=void 0===$?"standard":$,B=Object(i.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),Q=Object(U.a)({controlled:z,default:d,name:"Select"}),W=Object(w.a)(Q,2),Y=W[0],X=W[1],K=a.useRef(null),G=a.useState(null),Z=G[0],J=G[1],ee=a.useRef(null!=_).current,te=a.useState(),ne=te[0],re=te[1],ie=a.useState(!1),ae=ie[0],oe=ie[1],se=Object(A.a)(t,g);a.useImperativeHandle(se,(function(){return{focus:function(){Z.focus()},node:K.current,value:Y}}),[Z,Y]),a.useEffect((function(){s&&Z&&Z.focus()}),[s,Z]),a.useEffect((function(){if(Z){var e=Object(C.a)(Z).getElementById(b);if(e){var t=function(){getSelection().isCollapsed&&Z.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[b,Z]);var ce,le,ue=function(e,t){e?T&&T(t):M&&M(t),ee||(re(c?null:Z.clientWidth),oe(e))},fe=a.Children.toArray(l),de=function(e){return function(t){var n;if(x||ue(!1,t),x){n=Array.isArray(Y)?Y.slice():[];var r=Y.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),Y!==n&&(X(n),E&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:k}}),E(t,e)))}},he=null!==Z&&(ee?_:ae);delete B["aria-invalid"];var pe=[],ve=!1;(Object(V.b)({value:Y})||v)&&(R?ce=R(Y):ve=!0);var me=fe.map((function(e){if(!a.isValidElement(e))return null;var t;if(x){if(!Array.isArray(Y))throw new Error(Object(S.a)(2));(t=Y.some((function(t){return q(t,e.props.value)})))&&ve&&pe.push(e.props.children)}else(t=q(Y,e.props.value))&&ve&&(le=e.props.children);return t&&!0,a.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:de(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ve&&(ce=x?pe.join(", "):le);var ge,be=ne;!c&&ee&&Z&&(be=Z.clientWidth),ge="undefined"!==typeof I?I:h?null:0;var ye=N.id||(k?"mui-component-select-".concat(k):void 0);return a.createElement(a.Fragment,null,a.createElement("div",Object(r.a)({className:Object(o.a)(u.root,u.select,u.selectMenu,u[F],f,h&&u.disabled),ref:J,tabIndex:ge,role:"button","aria-disabled":h?"true":void 0,"aria-expanded":he?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[b,ye].filter(Boolean).join(" ")||void 0,onKeyDown:function(e){if(!D){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ue(!0,e))}},onMouseDown:h||D?null:function(e){0===e.button&&(e.preventDefault(),Z.focus(),ue(!0,e))},onBlur:function(e){!he&&j&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:Y,name:k}}),j(e))},onFocus:P},N,{id:ye}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ce)?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):ce),a.createElement("input",Object(r.a)({value:Array.isArray(Y)?Y.join(","):Y,name:k,ref:K,"aria-hidden":!0,onChange:function(e){var t=fe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=fe[t];X(n.props.value),E&&E(e,n)}},tabIndex:-1,className:u.nativeInput,autoFocus:s},B)),a.createElement(m,{className:Object(o.a)(u.icon,u["icon".concat(Object(p.a)(F))],he&&u.iconOpen,h&&u.disabled)}),a.createElement(H,Object(r.a)({id:"menu-".concat(k||""),anchorEl:Z,open:he,onClose:function(e){ue(!1,e)}},O,{MenuListProps:Object(r.a)({"aria-labelledby":b,role:"listbox",disableListWrap:!0},O.MenuListProps),PaperProps:Object(r.a)({},O.PaperProps,{style:Object(r.a)({minWidth:be},null!=O.PaperProps?O.PaperProps.style:null)})}),me))})),X=n(45),K=n(42),G=n(36),Z=Object(G.a)(a.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),J=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.disabled,l=e.IconComponent,u=e.inputRef,f=e.variant,d=void 0===f?"standard":f,h=Object(i.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return a.createElement(a.Fragment,null,a.createElement("select",Object(r.a)({className:Object(o.a)(n.root,n.select,n[d],s,c&&n.disabled),disabled:c,ref:u||t},h)),e.multiple?null:a.createElement(l,{className:Object(o.a)(n.icon,n["icon".concat(Object(p.a)(d))],c&&n.disabled)}))})),ee=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},te=a.createElement(s.a,null),ne=a.forwardRef((function(e,t){var n=e.children,o=e.classes,s=e.IconComponent,c=void 0===s?Z:s,l=e.input,u=void 0===l?te:l,f=e.inputProps,d=(e.variant,Object(i.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),h=Object(K.a)(),p=Object(X.a)({props:e,muiFormControl:h,states:["variant"]});return a.cloneElement(u,Object(r.a)({inputComponent:J,inputProps:Object(r.a)({children:n,classes:o,IconComponent:c,variant:p.variant,type:void 0},f,u?u.props.inputProps:{}),ref:t},d))}));ne.muiName="Select";Object(l.a)(ee,{name:"MuiNativeSelect"})(ne);var re=ee,ie=a.createElement(s.a,null),ae=a.createElement(f,null),oe=a.forwardRef((function e(t,n){var o=t.autoWidth,s=void 0!==o&&o,c=t.children,l=t.classes,u=t.displayEmpty,f=void 0!==u&&u,d=t.IconComponent,h=void 0===d?Z:d,p=t.id,v=t.input,m=t.inputProps,g=t.label,y=t.labelId,O=t.labelWidth,x=void 0===O?0:O,w=t.MenuProps,j=t.multiple,S=void 0!==j&&j,C=t.native,E=void 0!==C&&C,M=t.onClose,P=t.onOpen,T=t.open,_=t.renderValue,D=t.SelectDisplayProps,A=t.variant,R=void 0===A?"standard":A,L=Object(i.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),N=E?J:Y,I=Object(K.a)(),z=Object(X.a)({props:t,muiFormControl:I,states:["variant"]}).variant||R,$=v||{standard:ie,outlined:a.createElement(b,{label:g,labelWidth:x}),filled:ae}[z];return a.cloneElement($,Object(r.a)({inputComponent:N,inputProps:Object(r.a)({children:c,IconComponent:h,variant:z,type:void 0,multiple:S},E?{id:p}:{autoWidth:s,displayEmpty:f,labelId:y,MenuProps:w,onClose:M,onOpen:P,open:T,renderValue:_,SelectDisplayProps:Object(r.a)({id:p},D)},m,{classes:m?Object(k.a)({baseClasses:l,newClasses:m.classes,Component:e}):l},v?v.props.inputProps:{}),ref:n},L))}));oe.muiName="Select";var se=Object(l.a)(re,{name:"MuiSelect"})(oe),ce={standard:s.a,filled:f,outlined:b},le=a.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,c=void 0!==s&&s,l=e.children,u=e.classes,f=e.className,d=e.color,h=void 0===d?"primary":d,p=e.defaultValue,v=e.disabled,m=void 0!==v&&v,g=e.error,b=void 0!==g&&g,k=e.FormHelperTextProps,w=e.fullWidth,j=void 0!==w&&w,S=e.helperText,C=e.hiddenLabel,E=e.id,M=e.InputLabelProps,P=e.inputProps,T=e.InputProps,_=e.inputRef,D=e.label,A=e.multiline,R=void 0!==A&&A,L=e.name,N=e.onBlur,I=e.onChange,z=e.onFocus,$=e.placeholder,F=e.required,B=void 0!==F&&F,Q=e.rows,W=e.rowsMax,H=e.select,V=void 0!==H&&H,U=e.SelectProps,q=e.type,Y=e.value,X=e.variant,K=void 0===X?"standard":X,G=Object(i.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var Z={};if("outlined"===K&&(M&&"undefined"!==typeof M.shrink&&(Z.notched=M.shrink),D)){var J,ee=null!==(J=null===M||void 0===M?void 0:M.required)&&void 0!==J?J:B;Z.label=a.createElement(a.Fragment,null,D,ee&&"\xa0*")}V&&(U&&U.native||(Z.id=void 0),Z["aria-describedby"]=void 0);var te=S&&E?"".concat(E,"-helper-text"):void 0,ne=D&&E?"".concat(E,"-label"):void 0,re=ce[K],ie=a.createElement(re,Object(r.a)({"aria-describedby":te,autoComplete:n,autoFocus:c,defaultValue:p,fullWidth:j,multiline:R,name:L,rows:Q,rowsMax:W,type:q,value:Y,id:E,inputRef:_,onBlur:N,onChange:I,onFocus:z,placeholder:$,inputProps:P},Z,T));return a.createElement(O.a,Object(r.a)({className:Object(o.a)(u.root,f),disabled:m,error:b,fullWidth:j,hiddenLabel:C,ref:t,required:B,color:h,variant:K},G),D&&a.createElement(y.a,Object(r.a)({htmlFor:E,id:ne},M),D),V?a.createElement(se,Object(r.a)({"aria-describedby":te,id:E,labelId:ne,value:Y,input:ie},U),l):ie,S&&a.createElement(x.a,Object(r.a)({id:te},k),S))}));t.a=Object(l.a)({root:{}},{name:"MuiTextField"})(le)},function(e,t,n){"use strict";var r,i=n(2),a=n(8),o=n(19),s=n(0),c=(n(73),n(12),n(9)),l=n(51),u=n(68);function f(){if(r)return r;var e=document.createElement("div");return e.appendChild(document.createTextNode("ABCD")),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),r="reverse",e.scrollLeft>0?r="default":(e.scrollLeft=1,0===e.scrollLeft&&(r="negative")),document.body.removeChild(e),r}function d(e,t){var n=e.scrollLeft;if("rtl"!==t)return n;switch(f()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function h(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}var p={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function v(e){var t=e.onChange,n=Object(a.a)(e,["onChange"]),r=s.useRef(),o=s.useRef(null),c=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return s.useEffect((function(){var e=Object(l.a)((function(){var e=r.current;c(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),s.useEffect((function(){c(),t(r.current)}),[t]),s.createElement("div",Object(i.a)({style:p,ref:o},n))}var m=n(11),g=n(17),b=s.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,l=e.orientation,u=Object(a.a)(e,["classes","className","color","orientation"]);return s.createElement("span",Object(i.a)({className:Object(c.a)(n.root,n["color".concat(Object(g.a)(o))],r,"vertical"===l&&n.vertical),ref:t},u))})),y=Object(m.a)((function(e){return{root:{position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},colorPrimary:{backgroundColor:e.palette.primary.main},colorSecondary:{backgroundColor:e.palette.secondary.main},vertical:{height:"100%",width:2,right:0}}}),{name:"PrivateTabIndicator"})(b),O=n(36),x=Object(O.a)(s.createElement("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),k=Object(O.a)(s.createElement("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight"),w=n(96),j=s.createElement(x,{fontSize:"small"}),S=s.createElement(k,{fontSize:"small"}),C=s.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,l=e.orientation,u=e.disabled,f=Object(a.a)(e,["classes","className","direction","orientation","disabled"]);return s.createElement(w.a,Object(i.a)({component:"div",className:Object(c.a)(n.root,r,u&&n.disabled,"vertical"===l&&n.vertical),ref:t,role:null,tabIndex:null},f),"left"===o?j:S)})),E=Object(m.a)({root:{width:40,flexShrink:0,opacity:.8,"&$disabled":{opacity:0}},vertical:{width:"100%",height:40,"& svg":{transform:"rotate(90deg)"}},disabled:{}},{name:"MuiTabScrollButton"})(C),M=n(31),P=n(37),T=s.forwardRef((function(e,t){var n=e["aria-label"],r=e["aria-labelledby"],p=e.action,m=e.centered,g=void 0!==m&&m,b=e.children,O=e.classes,x=e.className,k=e.component,w=void 0===k?"div":k,j=e.indicatorColor,S=void 0===j?"secondary":j,C=e.onChange,T=e.orientation,_=void 0===T?"horizontal":T,D=e.ScrollButtonComponent,A=void 0===D?E:D,R=e.scrollButtons,L=void 0===R?"auto":R,N=e.selectionFollowsFocus,I=e.TabIndicatorProps,z=void 0===I?{}:I,$=e.TabScrollButtonProps,F=e.textColor,B=void 0===F?"inherit":F,Q=e.value,W=e.variant,H=void 0===W?"standard":W,V=Object(a.a)(e,["aria-label","aria-labelledby","action","centered","children","classes","className","component","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant"]),U=Object(P.a)(),q="scrollable"===H,Y="rtl"===U.direction,X="vertical"===_,K=X?"scrollTop":"scrollLeft",G=X?"top":"left",Z=X?"bottom":"right",J=X?"clientHeight":"clientWidth",ee=X?"height":"width";var te=s.useState(!1),ne=te[0],re=te[1],ie=s.useState({}),ae=ie[0],oe=ie[1],se=s.useState({start:!1,end:!1}),ce=se[0],le=se[1],ue=s.useState({overflow:"hidden",marginBottom:null}),fe=ue[0],de=ue[1],he=new Map,pe=s.useRef(null),ve=s.useRef(null),me=function(){var e,t,n=pe.current;if(n){var r=n.getBoundingClientRect();e={clientWidth:n.clientWidth,scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollLeftNormalized:d(n,U.direction),scrollWidth:n.scrollWidth,top:r.top,bottom:r.bottom,left:r.left,right:r.right}}if(n&&!1!==Q){var i=ve.current.children;if(i.length>0){var a=i[he.get(Q)];0,t=a?a.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:t}},ge=Object(M.a)((function(){var e,t=me(),n=t.tabsMeta,r=t.tabMeta,i=0;if(r&&n)if(X)i=r.top-n.top+n.scrollTop;else{var a=Y?n.scrollLeftNormalized+n.clientWidth-n.scrollWidth:n.scrollLeft;i=r.left-n.left+a}var s=(e={},Object(o.a)(e,G,i),Object(o.a)(e,ee,r?r[ee]:0),e);if(isNaN(ae[G])||isNaN(ae[ee]))oe(s);else{var c=Math.abs(ae[G]-s[G]),l=Math.abs(ae[ee]-s[ee]);(c>=1||l>=1)&&oe(s)}})),be=function(e){!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){},a=r.ease,o=void 0===a?h:a,s=r.duration,c=void 0===s?300:s,l=null,u=t[e],f=!1,d=function(){f=!0},p=function r(a){if(f)i(new Error("Animation cancelled"));else{null===l&&(l=a);var s=Math.min(1,(a-l)/c);t[e]=o(s)*(n-u)+u,s>=1?requestAnimationFrame((function(){i(null)})):requestAnimationFrame(r)}};u===n?i(new Error("Element already at target position")):requestAnimationFrame(p)}(K,pe.current,e)},ye=function(e){var t=pe.current[K];X?t+=e:(t+=e*(Y?-1:1),t*=Y&&"reverse"===f()?-1:1),be(t)},Oe=function(){ye(-pe.current[J])},xe=function(){ye(pe.current[J])},ke=s.useCallback((function(e){de({overflow:null,marginBottom:-e})}),[]),we=Object(M.a)((function(){var e=me(),t=e.tabsMeta,n=e.tabMeta;if(n&&t)if(n[G]<t[G]){var r=t[K]+(n[G]-t[G]);be(r)}else if(n[Z]>t[Z]){var i=t[K]+(n[Z]-t[Z]);be(i)}})),je=Object(M.a)((function(){if(q&&"off"!==L){var e,t,n=pe.current,r=n.scrollTop,i=n.scrollHeight,a=n.clientHeight,o=n.scrollWidth,s=n.clientWidth;if(X)e=r>1,t=r<i-a-1;else{var c=d(pe.current,U.direction);e=Y?c<o-s-1:c>1,t=Y?c>1:c<o-s-1}e===ce.start&&t===ce.end||le({start:e,end:t})}}));s.useEffect((function(){var e=Object(l.a)((function(){ge(),je()})),t=Object(u.a)(pe.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}),[ge,je]);var Se=s.useCallback(Object(l.a)((function(){je()})));s.useEffect((function(){return function(){Se.clear()}}),[Se]),s.useEffect((function(){re(!0)}),[]),s.useEffect((function(){ge(),je()})),s.useEffect((function(){we()}),[we,ae]),s.useImperativeHandle(p,(function(){return{updateIndicator:ge,updateScrollButtons:je}}),[ge,je]);var Ce=s.createElement(y,Object(i.a)({className:O.indicator,orientation:_,color:S},z,{style:Object(i.a)({},ae,z.style)})),Ee=0,Me=s.Children.map(b,(function(e){if(!s.isValidElement(e))return null;var t=void 0===e.props.value?Ee:e.props.value;he.set(t,Ee);var n=t===Q;return Ee+=1,s.cloneElement(e,{fullWidth:"fullWidth"===H,indicator:n&&!ne&&Ce,selected:n,selectionFollowsFocus:N,onChange:C,textColor:B,value:t})})),Pe=function(){var e={};e.scrollbarSizeListener=q?s.createElement(v,{className:O.scrollable,onChange:ke}):null;var t=ce.start||ce.end,n=q&&("auto"===L&&t||"desktop"===L||"on"===L);return e.scrollButtonStart=n?s.createElement(A,Object(i.a)({orientation:_,direction:Y?"right":"left",onClick:Oe,disabled:!ce.start,className:Object(c.a)(O.scrollButtons,"on"!==L&&O.scrollButtonsDesktop)},$)):null,e.scrollButtonEnd=n?s.createElement(A,Object(i.a)({orientation:_,direction:Y?"left":"right",onClick:xe,disabled:!ce.end,className:Object(c.a)(O.scrollButtons,"on"!==L&&O.scrollButtonsDesktop)},$)):null,e}();return s.createElement(w,Object(i.a)({className:Object(c.a)(O.root,x,X&&O.vertical),ref:t},V),Pe.scrollButtonStart,Pe.scrollbarSizeListener,s.createElement("div",{className:Object(c.a)(O.scroller,q?O.scrollable:O.fixed),style:fe,ref:pe,onScroll:Se},s.createElement("div",{"aria-label":n,"aria-labelledby":r,className:Object(c.a)(O.flexContainer,X&&O.flexContainerVertical,g&&!q&&O.centered),onKeyDown:function(e){var t=e.target;if("tab"===t.getAttribute("role")){var n=null,r="vertical"!==_?"ArrowLeft":"ArrowUp",i="vertical"!==_?"ArrowRight":"ArrowDown";switch("vertical"!==_&&"rtl"===U.direction&&(r="ArrowRight",i="ArrowLeft"),e.key){case r:n=t.previousElementSibling||ve.current.lastChild;break;case i:n=t.nextElementSibling||ve.current.firstChild;break;case"Home":n=ve.current.firstChild;break;case"End":n=ve.current.lastChild}null!==n&&(n.focus(),e.preventDefault())}},ref:ve,role:"tablist"},Me),ne&&Ce),Pe.scrollButtonEnd)}));t.a=Object(m.a)((function(e){return{root:{overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},vertical:{flexDirection:"column"},flexContainer:{display:"flex"},flexContainerVertical:{flexDirection:"column"},centered:{justifyContent:"center"},scroller:{position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},fixed:{overflowX:"hidden",width:"100%"},scrollable:{overflowX:"scroll",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},scrollButtons:{},scrollButtonsDesktop:Object(o.a)({},e.breakpoints.down("xs"),{display:"none"}),indicator:{}}}),{name:"MuiTabs"})(T)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(22),c=n(11),l=n(206),u=n(36),f=Object(u.a)(a.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),d=Object(u.a)(a.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),h=Object(u.a)(a.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),p=Object(u.a)(a.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),v=Object(u.a)(a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),m=n(208),g=n(17),b={success:a.createElement(f,{fontSize:"inherit"}),warning:a.createElement(d,{fontSize:"inherit"}),error:a.createElement(h,{fontSize:"inherit"}),info:a.createElement(p,{fontSize:"inherit"})},y=a.createElement(v,{fontSize:"small"}),O=a.forwardRef((function(e,t){var n=e.action,s=e.children,c=e.classes,u=e.className,f=e.closeText,d=void 0===f?"Close":f,h=e.color,p=e.icon,v=e.iconMapping,O=void 0===v?b:v,x=e.onClose,k=e.role,w=void 0===k?"alert":k,j=e.severity,S=void 0===j?"success":j,C=e.variant,E=void 0===C?"standard":C,M=Object(r.a)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return a.createElement(l.a,Object(i.a)({role:w,square:!0,elevation:0,className:Object(o.a)(c.root,c["".concat(E).concat(Object(g.a)(h||S))],u),ref:t},M),!1!==p?a.createElement("div",{className:c.icon},p||O[S]||b[S]):null,a.createElement("div",{className:c.message},s),null!=n?a.createElement("div",{className:c.action},n):null,null==n&&x?a.createElement("div",{className:c.action},a.createElement(m.a,{size:"small","aria-label":d,title:d,color:"inherit",onClick:x},y)):null)}));t.a=Object(c.a)((function(e){var t="light"===e.palette.type?s.a:s.e,n="light"===e.palette.type?s.e:s.a;return{root:Object(i.a)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:t(e.palette.success.main,.6),backgroundColor:n(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:t(e.palette.info.main,.6),backgroundColor:n(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:t(e.palette.warning.main,.6),backgroundColor:n(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:t(e.palette.error.main,.6),backgroundColor:n(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:t(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:t(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:t(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:t(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(O)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(115),c=n(36),l=Object(c.a)(a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),u=Object(c.a)(a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=n(22),d=Object(c.a)(a.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(17),p=n(11),v=a.createElement(u,null),m=a.createElement(l,null),g=a.createElement(d,null),b=a.forwardRef((function(e,t){var n=e.checkedIcon,c=void 0===n?v:n,l=e.classes,u=e.color,f=void 0===u?"secondary":u,d=e.icon,p=void 0===d?m:d,b=e.indeterminate,y=void 0!==b&&b,O=e.indeterminateIcon,x=void 0===O?g:O,k=e.inputProps,w=e.size,j=void 0===w?"medium":w,S=Object(i.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","size"]),C=y?x:p,E=y?x:c;return a.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(o.a)(l.root,l["color".concat(Object(h.a)(f))],y&&l.indeterminate),checked:l.checked,disabled:l.disabled},color:f,inputProps:Object(r.a)({"data-indeterminate":y},k),icon:a.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===j?j:C.props.fontSize}),checkedIcon:a.cloneElement(E,{fontSize:void 0===E.props.fontSize&&"small"===j?j:E.props.fontSize}),ref:t},S))}));t.a=Object(p.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(f.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(f.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(b)},function(e,t,n){"use strict";var r=n(8),i=n(19),a=n(2),o=n(0),s=(n(12),n(9)),c=n(11),l=n(43),u=n(26),f=n(29),d=n(23),h=n(31);function p(e){return e.substring(2).toLowerCase()}var v=function(e){var t=e.children,n=e.disableReactTree,r=void 0!==n&&n,i=e.mouseEvent,a=void 0===i?"onClick":i,s=e.onClickAway,c=e.touchEvent,l=void 0===c?"onTouchEnd":c,v=o.useRef(!1),m=o.useRef(null),g=o.useRef(!1),b=o.useRef(!1);o.useEffect((function(){return g.current=!0,function(){g.current=!1}}),[]);var y=o.useCallback((function(e){m.current=u.findDOMNode(e)}),[]),O=Object(d.a)(t.ref,y),x=Object(h.a)((function(e){var t=b.current;if(b.current=!1,g.current&&m.current&&!function(e){return document.documentElement.clientWidth<e.clientX||document.documentElement.clientHeight<e.clientY}(e))if(v.current)v.current=!1;else{var n;if(e.composedPath)n=e.composedPath().indexOf(m.current)>-1;else n=!Object(f.a)(m.current).documentElement.contains(e.target)||m.current.contains(e.target);n||!r&&t||s(e)}})),k=function(e){return function(n){b.current=!0;var r=t.props[e];r&&r(n)}},w={ref:O};return!1!==l&&(w[l]=k(l)),o.useEffect((function(){if(!1!==l){var e=p(l),t=Object(f.a)(m.current),n=function(){v.current=!0};return t.addEventListener(e,x),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,x),t.removeEventListener("touchmove",n)}}}),[x,l]),!1!==a&&(w[a]=k(a)),o.useEffect((function(){if(!1!==a){var e=p(a),t=Object(f.a)(m.current);return t.addEventListener(e,x),function(){t.removeEventListener(e,x)}}}),[x,a]),o.createElement(o.Fragment,null,o.cloneElement(t,w))},m=n(17),g=n(40),b=n(343),y=n(206),O=n(22),x=o.forwardRef((function(e,t){var n=e.action,i=e.classes,c=e.className,l=e.message,u=e.role,f=void 0===u?"alert":u,d=Object(r.a)(e,["action","classes","className","message","role"]);return o.createElement(y.a,Object(a.a)({role:f,square:!0,elevation:6,className:Object(s.a)(i.root,c),ref:t},d),o.createElement("div",{className:i.message},l),n?o.createElement("div",{className:i.action},n):null)})),k=Object(c.a)((function(e){var t="light"===e.palette.type?.8:.98,n=Object(O.b)(e.palette.background.default,t);return{root:Object(a.a)({},e.typography.body2,Object(i.a)({color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1},e.breakpoints.up("sm"),{flexGrow:"initial",minWidth:288})),message:{padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiSnackbarContent"})(x),w=o.forwardRef((function(e,t){var n=e.action,i=e.anchorOrigin,c=(i=void 0===i?{vertical:"bottom",horizontal:"center"}:i).vertical,u=i.horizontal,f=e.autoHideDuration,d=void 0===f?null:f,p=e.children,y=e.classes,O=e.className,x=e.ClickAwayListenerProps,w=e.ContentProps,j=e.disableWindowBlurListener,S=void 0!==j&&j,C=e.message,E=e.onClose,M=e.onEnter,P=e.onEntered,T=e.onEntering,_=e.onExit,D=e.onExited,A=e.onExiting,R=e.onMouseEnter,L=e.onMouseLeave,N=e.open,I=e.resumeHideDuration,z=e.TransitionComponent,$=void 0===z?b.a:z,F=e.transitionDuration,B=void 0===F?{enter:l.b.enteringScreen,exit:l.b.leavingScreen}:F,Q=e.TransitionProps,W=Object(r.a)(e,["action","anchorOrigin","autoHideDuration","children","classes","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onClose","onEnter","onEntered","onEntering","onExit","onExited","onExiting","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"]),H=o.useRef(),V=o.useState(!0),U=V[0],q=V[1],Y=Object(h.a)((function(){E&&E.apply(void 0,arguments)})),X=Object(h.a)((function(e){E&&null!=e&&(clearTimeout(H.current),H.current=setTimeout((function(){Y(null,"timeout")}),e))}));o.useEffect((function(){return N&&X(d),function(){clearTimeout(H.current)}}),[N,d,X]);var K=function(){clearTimeout(H.current)},G=o.useCallback((function(){null!=d&&X(null!=I?I:.5*d)}),[d,I,X]);return o.useEffect((function(){if(!S&&N)return window.addEventListener("focus",G),window.addEventListener("blur",K),function(){window.removeEventListener("focus",G),window.removeEventListener("blur",K)}}),[S,G,N]),!N&&U?null:o.createElement(v,Object(a.a)({onClickAway:function(e){E&&E(e,"clickaway")}},x),o.createElement("div",Object(a.a)({className:Object(s.a)(y.root,y["anchorOrigin".concat(Object(m.a)(c)).concat(Object(m.a)(u))],O),onMouseEnter:function(e){R&&R(e),K()},onMouseLeave:function(e){L&&L(e),G()},ref:t},W),o.createElement($,Object(a.a)({appear:!0,in:N,onEnter:Object(g.a)((function(){q(!1)}),M),onEntered:P,onEntering:T,onExit:_,onExited:Object(g.a)((function(){q(!0)}),D),onExiting:A,timeout:B,direction:"top"===c?"down":"up"},Q),p||o.createElement(k,Object(a.a)({message:C,action:n},w)))))}));t.a=Object(c.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},s={top:24},c={bottom:24},l={right:24},u={left:24},f={left:"50%",right:"auto",transform:"translateX(-50%)"};return{root:{zIndex:e.zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},anchorOriginTopCenter:Object(a.a)({},t,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({},s,f))),anchorOriginBottomCenter:Object(a.a)({},n,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({},c,f))),anchorOriginTopRight:Object(a.a)({},t,r,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({left:"auto"},s,l))),anchorOriginBottomRight:Object(a.a)({},n,r,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({left:"auto"},c,l))),anchorOriginTopLeft:Object(a.a)({},t,o,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({right:"auto"},s,u))),anchorOriginBottomLeft:Object(a.a)({},n,o,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({right:"auto"},c,u)))}}),{flip:!1,name:"MuiSnackbar"})(w)},function(e,t,n){"use strict";var r=n(2),i=n(107),a=n(111),o=n(84),s=n(108);var c=n(28),l=n(8),u=n(0),f=(n(73),n(12),n(9)),d=n(125),h=n(11),p=n(43),v=n(53),m=n(37),g=n(23),b=u.forwardRef((function(e,t){var n=e.children,i=e.classes,a=e.className,o=e.collapsedHeight,s=void 0===o?"0px":o,h=e.component,b=void 0===h?"div":h,y=e.disableStrictModeCompat,O=void 0!==y&&y,x=e.in,k=e.onEnter,w=e.onEntered,j=e.onEntering,S=e.onExit,C=e.onExited,E=e.onExiting,M=e.style,P=e.timeout,T=void 0===P?p.b.standard:P,_=e.TransitionComponent,D=void 0===_?d.a:_,A=Object(l.a)(e,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),R=Object(m.a)(),L=u.useRef(),N=u.useRef(null),I=u.useRef(),z="number"===typeof s?"".concat(s,"px"):s;u.useEffect((function(){return function(){clearTimeout(L.current)}}),[]);var $=R.unstable_strictMode&&!O,F=u.useRef(null),B=Object(g.a)(t,$?F:void 0),Q=function(e){return function(t,n){if(e){var r=$?[F.current,t]:[t,n],i=Object(c.a)(r,2),a=i[0],o=i[1];void 0===o?e(a):e(a,o)}}},W=Q((function(e,t){e.style.height=z,k&&k(e,t)})),H=Q((function(e,t){var n=N.current?N.current.clientHeight:0,r=Object(v.a)({style:M,timeout:T},{mode:"enter"}).duration;if("auto"===T){var i=R.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),I.current=i}else e.style.transitionDuration="string"===typeof r?r:"".concat(r,"ms");e.style.height="".concat(n,"px"),j&&j(e,t)})),V=Q((function(e,t){e.style.height="auto",w&&w(e,t)})),U=Q((function(e){var t=N.current?N.current.clientHeight:0;e.style.height="".concat(t,"px"),S&&S(e)})),q=Q(C),Y=Q((function(e){var t=N.current?N.current.clientHeight:0,n=Object(v.a)({style:M,timeout:T},{mode:"exit"}).duration;if("auto"===T){var r=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),I.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=z,E&&E(e)}));return u.createElement(D,Object(r.a)({in:x,onEnter:W,onEntered:V,onEntering:H,onExit:U,onExited:q,onExiting:Y,addEndListener:function(e,t){var n=$?e:t;"auto"===T&&(L.current=setTimeout(n,I.current||0))},nodeRef:$?F:void 0,timeout:"auto"===T?null:T},A),(function(e,t){return u.createElement(b,Object(r.a)({className:Object(f.a)(i.container,a,{entered:i.entered,exited:!x&&"0px"===z&&i.hidden}[e]),style:Object(r.a)({minHeight:z},M),ref:B},t),u.createElement("div",{className:i.wrapper,ref:N},u.createElement("div",{className:i.wrapperInner},n)))}))}));b.muiSupportAuto=!0;var y=Object(h.a)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(b),O=n(206),x=n(121),k=n(56),w=u.forwardRef((function(e,t){var n,d=e.children,h=e.classes,p=e.className,v=e.defaultExpanded,m=void 0!==v&&v,g=e.disabled,b=void 0!==g&&g,w=e.expanded,j=e.onChange,S=e.square,C=void 0!==S&&S,E=e.TransitionComponent,M=void 0===E?y:E,P=e.TransitionProps,T=Object(l.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),_=Object(k.a)({controlled:w,default:m,name:"Accordion",state:"expanded"}),D=Object(c.a)(_,2),A=D[0],R=D[1],L=u.useCallback((function(e){R(!A),j&&j(e,!A)}),[A,j,R]),N=u.Children.toArray(d),I=(n=N,Object(i.a)(n)||Object(a.a)(n)||Object(o.a)(n)||Object(s.a)()),z=I[0],$=I.slice(1),F=u.useMemo((function(){return{expanded:A,disabled:b,toggle:L}}),[A,b,L]);return u.createElement(O.a,Object(r.a)({className:Object(f.a)(h.root,p,A&&h.expanded,b&&h.disabled,!C&&h.rounded),ref:t,square:C},T),u.createElement(x.a.Provider,{value:F},z),u.createElement(M,Object(r.a)({in:A,timeout:"auto"},P),u.createElement("div",{"aria-labelledby":z.props.id,id:z.props["aria-controls"],role:"region"},$)))}));t.a=Object(h.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(w)},function(e,t,n){"use strict";var r=n(57),i=n(2),a=n(76),o=n(52),s=(n(12),n(0)),c=n.n(s),l=n(86);function u(e,t){var n=Object.create(null);return e&&s.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(s.isValidElement)(e)?t(e):e}(e)})),n}function f(e,t,n){return null!=n[t]?n[t]:e.props[t]}function d(e,t,n){var r=u(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var c in t){if(i[c])for(r=0;r<i[c].length;r++){var l=i[c][r];s[i[c][r]]=n(l)}s[c]=n(c)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var o=i[a];if(Object(s.isValidElement)(o)){var c=a in t,l=a in r,u=t[a],d=Object(s.isValidElement)(u)&&!u.props.in;!l||c&&!d?l||!c||d?l&&c&&Object(s.isValidElement)(u)&&(i[a]=Object(s.cloneElement)(o,{onExited:n.bind(null,o),in:u.props.in,exit:f(o,"exit",e),enter:f(o,"enter",e)})):i[a]=Object(s.cloneElement)(o,{in:!1}):i[a]=Object(s.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:f(o,"exit",e),enter:f(o,"enter",e)})}})),i}var h=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},p=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(Object(a.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(o.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,u(n.children,(function(e){return Object(s.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:f(e,"appear",n),enter:f(e,"enter",n),exit:f(e,"exit",n)})}))):d(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=u(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(i.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=Object(r.a)(e,["component","childFactory"]),a=this.state.contextValue,o=h(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?c.a.createElement(l.a.Provider,{value:a},o):c.a.createElement(l.a.Provider,{value:a},c.a.createElement(t,i,o))},t}(c.a.Component);p.propTypes={},p.defaultProps={component:"div",childFactory:function(e){return e}};t.a=p},function(e,t,n){"use strict";var r=n(2),i=n(28),a=n(8),o=n(19),s=n(0),c=n(26),l=(n(12),n(9)),u=n(344),f=n(22),d=n(11),h=n(17),p=n(343),v=n(181),m=n(204),g=n(381),b=n(40),y=n(38),O=n(23);function x(e){return"function"===typeof e?e():e}var k="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,w={},j=s.forwardRef((function(e,t){var n=e.anchorEl,i=e.children,o=e.container,c=e.disablePortal,l=void 0!==c&&c,u=e.keepMounted,f=void 0!==u&&u,d=e.modifiers,h=e.open,p=e.placement,j=void 0===p?"bottom":p,S=e.popperOptions,C=void 0===S?w:S,E=e.popperRef,M=e.style,P=e.transition,T=void 0!==P&&P,_=Object(a.a)(e,["anchorEl","children","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"]),D=s.useRef(null),A=Object(O.a)(D,t),R=s.useRef(null),L=Object(O.a)(R,E),N=s.useRef(L);k((function(){N.current=L}),[L]),s.useImperativeHandle(E,(function(){return R.current}),[]);var I=s.useState(!0),z=I[0],$=I[1],F=function(e,t){if("ltr"===(t&&t.direction||"ltr"))return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(j,Object(m.a)()),B=s.useState(F),Q=B[0],W=B[1];s.useEffect((function(){R.current&&R.current.update()}));var H=s.useCallback((function(){if(D.current&&n&&h){R.current&&(R.current.destroy(),N.current(null));var e=function(e){W(e.placement)},t=(x(n),new v.a(x(n),D.current,Object(r.a)({placement:F},C,{modifiers:Object(r.a)({},l?{}:{preventOverflow:{boundariesElement:"window"}},d,C.modifiers),onCreate:Object(b.a)(e,C.onCreate),onUpdate:Object(b.a)(e,C.onUpdate)})));N.current(t)}}),[n,l,d,h,F,C]),V=s.useCallback((function(e){Object(y.a)(A,e),H()}),[A,H]),U=function(){R.current&&(R.current.destroy(),N.current(null))};if(s.useEffect((function(){return function(){U()}}),[]),s.useEffect((function(){h||T||U()}),[h,T]),!f&&!h&&(!T||z))return null;var q={placement:Q};return T&&(q.TransitionProps={in:h,onEnter:function(){$(!1)},onExited:function(){$(!0),U()}}),s.createElement(g.a,{disablePortal:l,container:o},s.createElement("div",Object(r.a)({ref:V,role:"tooltip"},_,{style:Object(r.a)({position:"fixed",top:0,left:0,display:h||!f||T?null:"none"},M)}),"function"===typeof i?i(q):i))})),S=n(106),C=n(67),E=n(56),M=n(37);function P(e){return Math.round(1e5*e)/1e5}var T=!1,_=null;var D=s.forwardRef((function(e,t){var n=e.arrow,o=void 0!==n&&n,f=e.children,d=e.classes,v=e.disableFocusListener,m=void 0!==v&&v,g=e.disableHoverListener,b=void 0!==g&&g,x=e.disableTouchListener,k=void 0!==x&&x,w=e.enterDelay,P=void 0===w?100:w,D=e.enterNextDelay,A=void 0===D?0:D,R=e.enterTouchDelay,L=void 0===R?700:R,N=e.id,I=e.interactive,z=void 0!==I&&I,$=e.leaveDelay,F=void 0===$?0:$,B=e.leaveTouchDelay,Q=void 0===B?1500:B,W=e.onClose,H=e.onOpen,V=e.open,U=e.placement,q=void 0===U?"bottom":U,Y=e.PopperComponent,X=void 0===Y?j:Y,K=e.PopperProps,G=e.title,Z=e.TransitionComponent,J=void 0===Z?p.a:Z,ee=e.TransitionProps,te=Object(a.a)(e,["arrow","children","classes","disableFocusListener","disableHoverListener","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","id","interactive","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"]),ne=Object(M.a)(),re=s.useState(),ie=re[0],ae=re[1],oe=s.useState(null),se=oe[0],ce=oe[1],le=s.useRef(!1),ue=s.useRef(),fe=s.useRef(),de=s.useRef(),he=s.useRef(),pe=Object(E.a)({controlled:V,default:!1,name:"Tooltip",state:"open"}),ve=Object(i.a)(pe,2),me=ve[0],ge=ve[1],be=me,ye=Object(S.a)(N);s.useEffect((function(){return function(){clearTimeout(ue.current),clearTimeout(fe.current),clearTimeout(de.current),clearTimeout(he.current)}}),[]);var Oe=function(e){clearTimeout(_),T=!0,ge(!0),H&&H(e)},xe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"mouseover"===t.type&&n.onMouseOver&&e&&n.onMouseOver(t),le.current&&"touchstart"!==t.type||(ie&&ie.removeAttribute("title"),clearTimeout(fe.current),clearTimeout(de.current),P||T&&A?(t.persist(),fe.current=setTimeout((function(){Oe(t)}),T?A:P)):Oe(t))}},ke=Object(C.a)(),we=ke.isFocusVisible,je=ke.onBlurVisible,Se=ke.ref,Ce=s.useState(!1),Ee=Ce[0],Me=Ce[1],Pe=function(){Ee&&(Me(!1),je())},Te=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ie||ae(t.currentTarget),we(t)&&(Me(!0),xe()(t));var n=f.props;n.onFocus&&e&&n.onFocus(t)}},_e=function(e){clearTimeout(_),_=setTimeout((function(){T=!1}),800+F),ge(!1),W&&W(e),clearTimeout(ue.current),ue.current=setTimeout((function(){le.current=!1}),ne.transitions.duration.shortest)},De=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){var n=f.props;"blur"===t.type&&(n.onBlur&&e&&n.onBlur(t),Pe()),"mouseleave"===t.type&&n.onMouseLeave&&t.currentTarget===ie&&n.onMouseLeave(t),clearTimeout(fe.current),clearTimeout(de.current),t.persist(),de.current=setTimeout((function(){_e(t)}),F)}},Ae=function(e){le.current=!0;var t=f.props;t.onTouchStart&&t.onTouchStart(e)},Re=Object(O.a)(ae,t),Le=Object(O.a)(Se,Re),Ne=s.useCallback((function(e){Object(y.a)(Le,c.findDOMNode(e))}),[Le]),Ie=Object(O.a)(f.ref,Ne);""===G&&(be=!1);var ze=!be&&!b,$e=Object(r.a)({"aria-describedby":be?ye:null,title:ze&&"string"===typeof G?G:null},te,f.props,{className:Object(l.a)(te.className,f.props.className),onTouchStart:Ae,ref:Ie}),Fe={};k||($e.onTouchStart=function(e){Ae(e),clearTimeout(de.current),clearTimeout(ue.current),clearTimeout(he.current),e.persist(),he.current=setTimeout((function(){xe()(e)}),L)},$e.onTouchEnd=function(e){f.props.onTouchEnd&&f.props.onTouchEnd(e),clearTimeout(he.current),clearTimeout(de.current),e.persist(),de.current=setTimeout((function(){_e(e)}),Q)}),b||($e.onMouseOver=xe(),$e.onMouseLeave=De(),z&&(Fe.onMouseOver=xe(!1),Fe.onMouseLeave=De(!1))),m||($e.onFocus=Te(),$e.onBlur=De(),z&&(Fe.onFocus=Te(!1),Fe.onBlur=De(!1)));var Be=s.useMemo((function(){return Object(u.a)({popperOptions:{modifiers:{arrow:{enabled:Boolean(se),element:se}}}},K)}),[se,K]);return s.createElement(s.Fragment,null,s.cloneElement(f,$e),s.createElement(X,Object(r.a)({className:Object(l.a)(d.popper,z&&d.popperInteractive,o&&d.popperArrow),placement:q,anchorEl:ie,open:!!ie&&be,id:$e["aria-describedby"],transition:!0},Fe,Be),(function(e){var t=e.placement,n=e.TransitionProps;return s.createElement(J,Object(r.a)({timeout:ne.transitions.duration.shorter},n,ee),s.createElement("div",{className:Object(l.a)(d.tooltip,d["tooltipPlacement".concat(Object(h.a)(t.split("-")[0]))],le.current&&d.touch,o&&d.tooltipArrow)},G,o?s.createElement("span",{className:d.arrow,ref:ce}):null))})))}));t.a=Object(d.a)((function(e){return{popper:{zIndex:e.zIndex.tooltip,pointerEvents:"none"},popperInteractive:{pointerEvents:"auto"},popperArrow:{'&[x-placement*="bottom"] $arrow':{top:0,left:0,marginTop:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"0 100%"}},'&[x-placement*="top"] $arrow':{bottom:0,left:0,marginBottom:"-0.71em",marginLeft:4,marginRight:4,"&::before":{transformOrigin:"100% 0"}},'&[x-placement*="right"] $arrow':{left:0,marginLeft:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"100% 100%"}},'&[x-placement*="left"] $arrow':{right:0,marginRight:"-0.71em",height:"1em",width:"0.71em",marginTop:4,marginBottom:4,"&::before":{transformOrigin:"0 0"}}},tooltip:{backgroundColor:Object(f.c)(e.palette.grey[700],.9),borderRadius:e.shape.borderRadius,color:e.palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(10),lineHeight:"".concat(P(1.4),"em"),maxWidth:300,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},tooltipArrow:{position:"relative",margin:"0"},arrow:{overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:Object(f.c)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}},touch:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:"".concat(P(16/14),"em"),fontWeight:e.typography.fontWeightRegular},tooltipPlacementLeft:Object(o.a)({transformOrigin:"right center",margin:"0 24px "},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementRight:Object(o.a)({transformOrigin:"left center",margin:"0 24px"},e.breakpoints.up("sm"),{margin:"0 14px"}),tooltipPlacementTop:Object(o.a)({transformOrigin:"center bottom",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"}),tooltipPlacementBottom:Object(o.a)({transformOrigin:"center top",margin:"24px 0"},e.breakpoints.up("sm"),{margin:"14px 0"})}}),{name:"MuiTooltip",flip:!1})(D)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(45),c=n(42),l=n(11),u=n(17),f=a.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,d=(e.color,e.component),h=void 0===d?"label":d,p=(e.disabled,e.error,e.filled,e.focused,e.required,Object(i.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),v=Object(c.a)(),m=Object(s.a)({props:e,muiFormControl:v,states:["color","required","focused","disabled","error","filled"]});return a.createElement(h,Object(r.a)({className:Object(o.a)(l.root,l["color".concat(Object(u.a)(m.color||"primary"))],f,m.disabled&&l.disabled,m.error&&l.error,m.filled&&l.filled,m.focused&&l.focused,m.required&&l.required),ref:t},p),n,m.required&&a.createElement("span",{"aria-hidden":!0,className:Object(o.a)(l.asterisk,m.error&&l.error)},"\u2009","*"))})),d=Object(l.a)((function(e){return{root:Object(r.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(f),h=a.forwardRef((function(e,t){var n=e.classes,l=e.className,u=e.disableAnimation,f=void 0!==u&&u,h=(e.margin,e.shrink),p=(e.variant,Object(i.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),v=Object(c.a)(),m=h;"undefined"===typeof m&&v&&(m=v.filled||v.focused||v.adornedStart);var g=Object(s.a)({props:e,muiFormControl:v,states:["margin","variant"]});return a.createElement(d,Object(r.a)({"data-shrink":m,className:Object(o.a)(n.root,l,v&&n.formControl,!f&&n.animated,m&&n.shrink,"dense"===g.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[g.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))}));t.a=Object(l.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(h)},function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(19),o=n(0),s=(n(12),n(9)),c=n(11),l=n(17),u=n(346),f=n(398),d=o.forwardRef((function(e,t){var n=e.children,a=e.classes,c=e.className,l=e.invisible,u=void 0!==l&&l,d=e.open,h=e.transitionDuration,p=e.TransitionComponent,v=void 0===p?f.a:p,m=Object(i.a)(e,["children","classes","className","invisible","open","transitionDuration","TransitionComponent"]);return o.createElement(v,Object(r.a)({in:d,timeout:h},m),o.createElement("div",{className:Object(s.a)(a.root,c,u&&a.invisible),"aria-hidden":!0,ref:t},n))})),h=Object(c.a)({root:{zIndex:-1,position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},{name:"MuiBackdrop"})(d),p=n(43),v=n(206),m={enter:p.b.enteringScreen,exit:p.b.leavingScreen},g=o.forwardRef((function(e,t){var n=e.BackdropProps,a=e.children,c=e.classes,d=e.className,p=e.disableBackdropClick,g=void 0!==p&&p,b=e.disableEscapeKeyDown,y=void 0!==b&&b,O=e.fullScreen,x=void 0!==O&&O,k=e.fullWidth,w=void 0!==k&&k,j=e.maxWidth,S=void 0===j?"sm":j,C=e.onBackdropClick,E=e.onClose,M=e.onEnter,P=e.onEntered,T=e.onEntering,_=e.onEscapeKeyDown,D=e.onExit,A=e.onExited,R=e.onExiting,L=e.open,N=e.PaperComponent,I=void 0===N?v.a:N,z=e.PaperProps,$=void 0===z?{}:z,F=e.scroll,B=void 0===F?"paper":F,Q=e.TransitionComponent,W=void 0===Q?f.a:Q,H=e.transitionDuration,V=void 0===H?m:H,U=e.TransitionProps,q=e["aria-describedby"],Y=e["aria-labelledby"],X=Object(i.a)(e,["BackdropProps","children","classes","className","disableBackdropClick","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","onEnter","onEntered","onEntering","onEscapeKeyDown","onExit","onExited","onExiting","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps","aria-describedby","aria-labelledby"]),K=o.useRef();return o.createElement(u.a,Object(r.a)({className:Object(s.a)(c.root,d),BackdropComponent:h,BackdropProps:Object(r.a)({transitionDuration:V},n),closeAfterTransition:!0,disableBackdropClick:g,disableEscapeKeyDown:y,onEscapeKeyDown:_,onClose:E,open:L,ref:t},X),o.createElement(W,Object(r.a)({appear:!0,in:L,timeout:V,onEnter:M,onEntering:T,onEntered:P,onExit:D,onExiting:R,onExited:A,role:"none presentation"},U),o.createElement("div",{className:Object(s.a)(c.container,c["scroll".concat(Object(l.a)(B))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===K.current&&(K.current=null,C&&C(e),!g&&E&&E(e,"backdropClick"))},onMouseDown:function(e){K.current=e.target}},o.createElement(I,Object(r.a)({elevation:24,role:"dialog","aria-describedby":q,"aria-labelledby":Y},$,{className:Object(s.a)(c.paper,c["paperScroll".concat(Object(l.a)(B))],c["paperWidth".concat(Object(l.a)(String(S)))],$.className,x&&c.paperFullScreen,w&&c.paperFullWidth)}),a))))}));t.a=Object(c.a)((function(e){return{root:{"@media print":{position:"absolute !important"}},scrollPaper:{display:"flex",justifyContent:"center",alignItems:"center"},scrollBody:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}},container:{height:"100%","@media print":{height:"auto"},outline:0},paper:{margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},paperScrollPaper:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},paperScrollBody:{display:"inline-block",verticalAlign:"middle",textAlign:"left"},paperWidthFalse:{maxWidth:"calc(100% - 64px)"},paperWidthXs:{maxWidth:Math.max(e.breakpoints.values.xs,444),"&$paperScrollBody":Object(a.a)({},e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64),{maxWidth:"calc(100% - 64px)"})},paperWidthSm:{maxWidth:e.breakpoints.values.sm,"&$paperScrollBody":Object(a.a)({},e.breakpoints.down(e.breakpoints.values.sm+64),{maxWidth:"calc(100% - 64px)"})},paperWidthMd:{maxWidth:e.breakpoints.values.md,"&$paperScrollBody":Object(a.a)({},e.breakpoints.down(e.breakpoints.values.md+64),{maxWidth:"calc(100% - 64px)"})},paperWidthLg:{maxWidth:e.breakpoints.values.lg,"&$paperScrollBody":Object(a.a)({},e.breakpoints.down(e.breakpoints.values.lg+64),{maxWidth:"calc(100% - 64px)"})},paperWidthXl:{maxWidth:e.breakpoints.values.xl,"&$paperScrollBody":Object(a.a)({},e.breakpoints.down(e.breakpoints.values.xl+64),{maxWidth:"calc(100% - 64px)"})},paperFullWidth:{width:"calc(100% - 64px)"},paperFullScreen:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,"&$paperScrollBody":{margin:0,maxWidth:"100%"}}}}),{name:"MuiDialog"})(g)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(73),n(12),n(9));function s(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var c=n(11),l=n(17),u=a.forwardRef((function(e,t){var n=e.children,c=e.classes,u=e.className,f=e.exclusive,d=void 0!==f&&f,h=e.onChange,p=e.orientation,v=void 0===p?"horizontal":p,m=e.size,g=void 0===m?"medium":m,b=e.value,y=Object(i.a)(e,["children","classes","className","exclusive","onChange","orientation","size","value"]),O=function(e,t){if(h){var n,r=b&&b.indexOf(t);b&&r>=0?(n=b.slice()).splice(r,1):n=b?b.concat(t):[t],h(e,n)}},x=function(e,t){h&&h(e,b===t?null:t)};return a.createElement("div",Object(r.a)({role:"group",className:Object(o.a)(c.root,u,"vertical"===v&&c.vertical),ref:t},y),a.Children.map(n,(function(e){return a.isValidElement(e)?a.cloneElement(e,{className:Object(o.a)(c.grouped,c["grouped".concat(Object(l.a)(v))],e.props.className),onChange:d?x:O,selected:void 0===e.props.selected?s(e.props.value,b):e.props.selected,size:e.props.size||g}):null})))}));t.a=Object(c.a)((function(e){return{root:{display:"inline-flex",borderRadius:e.shape.borderRadius},vertical:{flexDirection:"column"},grouped:{},groupedHorizontal:{"&:not(:first-child)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-child)":{borderTopRightRadius:0,borderBottomRightRadius:0}},groupedVertical:{"&:not(:first-child)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-child)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}}),{name:"MuiToggleButtonGroup"})(u)},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(28),i=n(110),a=n(70);var o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=Object(r.a)(t,2),i=n[0],a=n[1],l=o[i],u=s[a]||"";return Array.isArray(u)?u.map((function(e){return l+e})):[l+u]})),u=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function f(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function d(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function h(e){var t=f(e.theme);return Object.keys(e).map((function(n){if(-1===u.indexOf(n))return null;var r=d(l(n),t),a=e[n];return Object(i.a)(e,a,r)})).reduce(a.a,{})}h.propTypes={},h.filterProps=u;t.b=h}]]); |