mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-11 14:53:49 +00:00
0ff8fcac6a
* Run `vmui-update` * Document the changes in README.md and CHANGELOG.md
2 lines
No EOL
1.1 MiB
2 lines
No EOL
1.1 MiB
/*! For license information please see 2.72d7cb01.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonpvmui=this.webpackJsonpvmui||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(172)},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ke})),n.d(t,"b",(function(){return kt})),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 c})),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 F})),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 $})),n.d(t,"v",(function(){return st})),n.d(t,"w",(function(){return ft})),n.d(t,"x",(function(){return lt})),n.d(t,"y",(function(){return xt})),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 P})),n.d(t,"E",(function(){return L})),n.d(t,"F",(function(){return Ge})),n.d(t,"G",(function(){return z})),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 Et})),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 I})),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 ct})),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 kn})),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 x})),n.d(t,"Fb",(function(){return Pt})),n.d(t,"Gb",(function(){return w})),n.d(t,"Hb",(function(){return bn})),n.d(t,"Ib",(function(){return le})),n.d(t,"Jb",(function(){return G})),n.d(t,"Kb",(function(){return ce})),n.d(t,"Lb",(function(){return l})),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 k})),n.d(t,"Qb",(function(){return Ct})),n.d(t,"Rb",(function(){return ln})),n.d(t,"Sb",(function(){return ot})),n.d(t,"Tb",(function(){return Mt}));var r=n(25),i=n(13),a=n(4),o=n(6),s=n(7);var l="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function c(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,l.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 k(e,t){return"undefined"===typeof e?t:e}var x=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 M(e){if(g(e))return e.map(M);if(b(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=M(e[n[i]]);return t}return e}function E(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function T(e,t,n,r){if(E(e)){var i=t[e],a=n[e];b(i)&&b(a)?P(i,a,r):t[e]=M(a)}}function P(e,t,n){var r=g(t)?t:[t],i=r.length;if(!b(e))return e;for(var a=(n=n||{}).merger||T,o=0;o<i;++o)if(b(t=r[o]))for(var s=Object.keys(t),l=0,c=s.length;l<c;++l)a(s[l],e,t,n);return e}function _(e,t){return P(e,t,{merger:D})}function D(e,t,n){if(E(e)){var r=t[e],i=n[e];b(r)&&b(i)?_(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=M(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},z=function(e){return"function"===typeof e},I=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},F=Math.PI,$=2*F,B=$+F,Q=Number.POSITIVE_INFINITY,W=F/180,H=F/2,V=F/4,U=2*F/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*(F/180)}function ne(e){return e*(180/F)}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*F&&(a+=$),{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%$+$)%$}function le(e,t,n,r){var i=se(e),a=se(t),o=se(n),s=se(a-i),l=se(o-i),c=se(i-a),u=se(i-o);return i===a||i===o||r&&a===o||s>l&&c<u}function ce(e,t,n){return Math.max(t,Math.min(n,e))}function ue(e){return ce(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)*$/n)},he=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*$/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(F*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 ke(e){return e+.5|0}var xe=function(e,t,n){return Math.max(Math.min(e,n),t)};function we(e){return xe(ke(2.55*e),0,255)}function je(e){return xe(ke(255*e),0,255)}function Se(e){return xe(ke(e/2.55)/100,0,1)}function Ce(e){return xe(ke(100*e),0,100)}var Me=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var Ee=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Te(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 Pe(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=Te(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),l=Math.min(i,a,o),c=(s+l)/2;return s!==l&&(r=s-l,n=c>.5?r/(2-s-l):r/(s+l),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,c]}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(Te,e,t,n)}function Le(e){return(e%360+360)%360}function Ne(e){var t,n=Ee.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(Pe,e,t,n)}(i,a,o):Re(i,a,o))[0],g:t[1],b:t[2],a:r}}}var ze,Ie={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"},Fe={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 $e(e){ze||((ze=function(){var e,t,n,r,i,a={},o=Object.keys(Fe),s=Object.keys(Ie);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,Ie[n]);n=parseInt(Fe[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}()).transparent=[0,0,0,0]);var t=ze[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=Me.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)||$e(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,l=i.a-a.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;r=1-c,i.r=255&c*i.r+r*a.r+.5,i.g=255&c*i.g+r*a.g+.5,i.b=255&c*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=ke(.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?P(Ze(e,t),n):P(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),l="_"+t;Object.defineProperties(o,(a={},Object(i.a)(a,l,{value:o[t],writable:!0}),Object(i.a)(a,t,{enumerable:!0,get:function(){var e=this[l],t=s[r];return b(e)?Object.assign({},t,e):k(e,t)},set:function(e){this[l]=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,l,c,u,f=0,d=n.length;for(o=0;o<d;o++)if(void 0!==(c=n[o])&&null!==c&&!0!==g(c))f=tt(e,i,a,f,c);else if(g(c))for(s=0,l=c.length;s<l;s++)void 0===(u=c[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,l,c=t.pointStyle,u=t.rotation,f=t.radius,d=(u||0)*W;if(c&&"object"===typeof c&&("[object HTMLImageElement]"===(i=c.toString())||"[object HTMLCanvasElement]"===i))return e.save(),e.translate(n,r),e.rotate(d),e.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),void e.restore();if(!(isNaN(f)||f<=0)){switch(e.beginPath(),c){default:e.arc(n,r,f,0,$),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-(l=.516*f),a=Math.cos(d+V)*s,o=Math.sin(d+V)*s,e.arc(n-a,r-o,l,d-F,d-H),e.arc(n+o,r-a,l,d-H,d),e.arc(n+a,r+o,l,d,d+H),e.arc(n-o,r+a,l,d+H,d+F),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 lt(e){e.restore()}function ct(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]:{},l=g(t)?t:[t],c=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,dt(e,s),a=0;a<l.length;++a)o=l[a],c&&(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,l=n-a.actualBoundingBoxAscent,c=n+a.actualBoundingBoxDescent,u=i.strikethrough?(l+c)/2:c;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,F,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,F,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 k(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},l=Object(s.a)(a);try{for(l.s();!(n=l.n()).done;){var c=n.value;r[c]=+o(c)||0}}catch(u){l.e(u)}finally{l.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 kt(e){var t=yt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function xt(e,t){e=e||{},t=t||et.font;var n=k(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=k(e.style,t.style);r&&!(""+r).match(mt)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");var i={family:k(e.family,t.family),lineHeight:gt(k(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:k(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}))},Mt=function(e,t,n){return St(e,n,(function(r){return e[r][t]>=n}))};function Et(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 Tt=["push","pop","shift","splice","unshift"];function Pt(e,t){e._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Tt.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||(Tt.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 l=(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(l,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return It(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 It(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,o=e._descriptors,l=r[t];z(l)&&o.isScriptable(t)&&(l=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,l,e,n));g(l)&&l.length&&(l=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,l=n._descriptors;if(N(a.index)&&r(e))t=t[a.index%t.length];else if(b(t[0])){var c=t,u=i._scopes.filter((function(e){return e!==c}));t=[];var f,d=Object(s.a)(c);try{for(d.s();!(f=d.n()).done;){var h=Qt(u,i,e,f.value);t.push(Rt(h,a,o&&o[e],l))}}catch(p){d.e(p)}finally{d.f()}}return t}(t,l,e,o.isIndexable));zt(t,l)&&(l=Rt(l,i,a&&a[t],o));return l}(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:z(r)?r:function(){return r},isIndexable:z(a)?a:function(){return a}}}var Nt=function(e,t){return e?e+L(t):t},zt=function(e,t){return b(t)&&"adapters"!==e};function It(e,t,n){var r=e[t];return N(r)||(r=n(),N(r)&&(e[t]=r)),r}function Ft(e,t,n){return z(e)?e(t,n):e}var $t=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,l=$t(n,o);if(l){e.add(l);var c=Ft(l._fallback,n,l);if(N(c)&&c!==n&&c!==r)return c}else if(!1===l&&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=Ft(t._fallback,n,i),s=[].concat(Object(r.a)(e),Object(r.a)(a)),l=new Set;l.add(i);var c=Wt(l,s,n,o||n);return null!==c&&((!N(o)||o===n||null!==(c=Wt(l,s,o,c)))&&At(Array.from(l),[""],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 l=a.value;if(i=Vt(Nt(l,e),n),N(i))return zt(e,i)?Qt(n,r,e,i):i}}catch(c){o.e(c)}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 l=i.value;n.add(l)}}catch(c){o.e(c)}finally{o.f()}}}catch(c){r.e(c)}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),l=ae(o,a),c=s/(s+l),u=l/(s+l),f=r*(c=isNaN(c)?0:c),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,l=e.length,c=Yt(e,0),u=0;u<l-1;++u)s=c,c=Yt(e,u+1),s&&c&&(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,l=Yt(e,0),c=0;c<s;++c)if(r=i,i=l,l=Yt(e,c+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[c]),l&&(n=(l[a]-u)/3,i["cp2".concat(a)]=u+n,i["cp2".concat(o)]=f+n*t[c])}}function Jt(e,t,n){return Math.max(Math.min(e,n),t)}function en(e,t,n,r,i){var a,o,s,l;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),l=Array(o),c=Yt(e,0);for(t=0;t<o;++t)if(n=r,r=c,c=Yt(e,t+1),r){if(c){var u=c[i]-r[i];s[t]=0!==u?(c[a]-r[a])/u:0}l[t]=n?c?Y(s[t-1])!==Y(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}Gt(e,s,l),Zt(e,l,i)}(e,i);else{var c=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)l=Kt(c,s=e[a],e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,c=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 ln(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"),l=function(e,t){var n,r,i=e.native||e,a=i.touches,o=a&&a.length?a[0]:i,s=o.offsetX,l=o.offsetY,c=!1;if(function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)}(s,l,i.target))n=s,r=l;else{var u=t.getBoundingClientRect();n=o.clientX-u.left,r=o.clientY-u.top,c=!0}return{x:n,y:r,box:c}}(e,n),c=l.x,u=l.y,f=l.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((c-d)/p*n.width/r),y:Math.round((u-h)/v*n.height/r)}}var cn=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,l=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),l=sn(s,"border","width"),c=sn(s,"padding");t=o.width-c.width-l.width,n=o.height-c.height-l.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),c=l.width,u=l.height;if("content-box"===i.boxSizing){var f=sn(i,"border","width"),d=sn(i,"padding");c-=d.width+f.width,u-=d.height+f.height}return c=Math.max(0,c-a.width),u=Math.max(0,r?Math.floor(c/r):u-a.height),c=cn(Math.min(c,o,l.maxWidth)),u=cn(Math.min(u,s,l.maxHeight)),c&&!u&&(u=cn(c/2)),{width:c,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),l=pn(a,t,n),c=pn(o,s,n),u=pn(s,l,n);return pn(c,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 kn(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function xn(e){return"angle"===e?{between:le,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,l=n.end,c=t.length,u=xn(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,l=xn(a),c=l.between,u=l.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&&c(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,k=null,x=function(){return O||d(s,a,r)&&0!==f(s,a)},w=function(){return!O||0===f(l,r)||d(l,a,r)},j=v,S=v;j<=m;++j)(i=t[j%c]).skip||(r=h(i[o]))!==a&&(O=d(r,s,l),null===k&&x()&&(k=0===f(r,s)?j:S),null!==k&&w()&&(y.push(wn({start:k,end:j,loop:g,count:c,style:b})),k=null),S=j,a=r);return null!==k&&y.push(wn({start:k,end:m,loop:g,count:c,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,l=o.end;return Mn(e,!0===r?[{start:s,end:l,loop:a}]:function(e,t,n,r){var i,a=e.length,o=[],s=t,l=e[t];for(i=t+1;i<=n;++i){var c=e[i%a];c.skip||c.stop?l.skip||(r=!1,o.push({start:t%a,end:(i-1)%a,loop:r}),t=s=c.stop?i:null):(s=i,l.skip&&(t=i)),l=c}return null!==s&&o.push({start:t%a,end:s%a,loop:r}),o}(n,s,l<s?l+i:l,!!e._fullLoop&&0===s&&l===i-1),n,t)}function Mn(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i,a=En(e.options),o=n.length,l=[],c=t[0].start,u=c,f=Object(s.a)(t);try{for(f.s();!(i=f.n()).done;){var d=i.value,h=a,p=n[c%o],v=void 0;for(u=c+1;u<=d.end;u++){var m=n[u%o];Tn(v=En(r.setContext({type:"segment",p0:p,p1:m,p0DataIndex:(u-1)%o,p1DataIndex:u%o,datasetIndex:e._datasetIndex})),h)&&(l.push({start:c,end:u-1,loop:d.loop,style:h}),h=v,c=u-1),p=m,h=v}c<u-1&&(l.push({start:c,end:u-1,loop:d.loop,style:v}),c=u-1)}}catch(g){f.e(g)}finally{f.f()}return l}(e,t,n,r):t}function En(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function Tn(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(171)},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 k})),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 c})),n.d(t,"i",(function(){return Y})),n.d(t,"j",(function(){return T})),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),l=n(19);n.d(t,"k",(function(){return l.a}));var c,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"}(c||(c={}));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]:c.Simple,r=0,i=0,a=0;a<this.sections.length;){var o=this.sections[a++],s=this.sections[a++],l=r+o;if(s<0){if(l>e)return i+(e-r);i+=o}else{if(n!=c.Simple&&l>=e&&(n==c.TrackDel&&r<e&&l>e||n==c.TrackBefore&&r<e||n==c.TrackAfter&&l>e))return-1;if(l>e||l==e&&t<0&&!o)return e==r||t<0?i:i+s;i+=s}r=l}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++],l=n+o;if(s<0){if(l>e)return r+Math.max(0,e-n);i=r+=o}else{if(t<=0&&l>=e)return i;r+=s}n=l}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 c=i>>1;r.length<c;)r.push(l.a.empty);r.push(o?e.slice(a,a+o):l.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 l=o==e.length?1e9:e[o++];s<l||s==l&&0==a.len;){if(a.done)break e;var c=Math.min(a.len,l-s);p(i,c,-1);var u=-1==a.ins?-1:0==a.off?a.ins:0;p(t,c,u),u>0&&v(r,t,a.text),a.forward(c),s+=c}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,c=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);c=c?c.compose(r.map(c)):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(),c=c?c.compose(d.map(c)):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 k=O?"string"==typeof O?l.a.of(O.split(i||f)):O:l.a.empty,x=k.length;if(g==y&&0==x)return;g<s&&u(),g>s&&p(a,g-s,-1),p(a,y-g,x),v(o,a,k),s=y}}(e),u(!c),c}},{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(l.a.empty);r[i]=l.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(l.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++],c=e.sections[o++];if(c<0)i+=s,a+=s;else{for(var u=i,f=a,d=l.a.empty;u+=s,f+=c,c&&r&&(d=d.append(r[o-2>>1])),!(n||o==e.sections.length||e.sections[o+1]<0);)s=e.sections[o++],c=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),l=0,c=0;;)if(-1==o.ins)l+=o.len,o.next();else if(-1==s.ins&&c<l){var u=Math.min(s.len,l-c);s.forward(u),p(i,u,-1),c+=u}else if(s.ins>=0&&(o.done||c<l||c==l&&(s.len<o.len||s.len==o.len&&!n))){for(p(i,s.ins,-1);l>c&&!o.done&&l+o.len<c+s.len;)l+=o.len,o.next();c+=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=l+o.len;;)if(s.ins>=0&&c>l&&c+s.len<m)f+=s.ins,c+=s.len,s.next();else{if(!(-1==s.ins&&c<m))break;var g=Math.min(s.len,m-c);f+=g,s.forward(g),c+=g}p(i,f,o.ins),a&&v(a,i,o.text),l=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 l=Math.min(a.len2,o.len),c=r.length;if(-1==a.ins){var u=-1==o.ins?-1:o.off?0:o.ins;p(r,l,u,s),i&&u&&v(i,r,o.text)}else-1==o.ins?(p(r,a.off?0:a.len,l,s),i&&v(i,r,a.textBit(l))):(p(r,a.off?0:a.len,o.off?0:o.ins,s),i&&!o.off&&v(i,r,o.text));s=(a.ins>l||o.ins>=0&&o.len>l)&&(s||r.length>c),a.forward2(l),o.forward(l)}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?l.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?l.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 k.range(e,t);var n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return k.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 k.range(e.anchor,e.head)}}]),e}(),k=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 x(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 x(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?k.range(s,o):k.range(o,s))}}return new k(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 M([],this,0,e)}},{key:"compute",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new M(e,this,1,t)}},{key:"computeN",value:function(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new M(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 M=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,l=!1,c=[],u=Object(r.a)(this.dependencies);try{for(u.s();!(t=u.n()).done;){var f=t.value;"doc"==f?s=!0:"selection"==f?l=!0:0==(1&e[f.id])&&c.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||l&&(t.docChanged||t.selection)||c.some((function(t){return(1&z(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 E(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 l,c=n?n.reconfigure?n.startState.config.address[t.id]:s<<1:null,u=null==c,f=Object(r.a)(o);try{for(f.s();!(l=f.n()).done;){1&z(e,l.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=I(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!=c&&t.compare(b,I(n.startState,c))?0:(e.values[s]=b,1)}}var T=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(l){o.e(l)}finally{o.f()}}return i}}]),e}(),P={fallback:3,default:2,extend:1,override:0};function _(e,t){if(!P.hasOwnProperty(t))throw new RangeError("Invalid precedence: ".concat(t));return new A(e,P[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),l=Object(r.a)(N(t,i));try{for(l.s();!(n=l.n()).done;){var c=n.value;c instanceof T?o.push(c):(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}}catch(b){l.e(b)}finally{l.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 l=I(a,o);n.compare(i,l)&&(i=l)}f.push(i)}else{var c,h=Object(r.a)(t);try{var p=function(){var e=c.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();!(c=h.n()).done;)p()}catch(b){h.e(b)}finally{h.f()}u[n.id]=d.length<<1,d.push((function(e){return E(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 l=i.get(e);if(null!=l){if(l>=s)return;var c=n[l].indexOf(e);c>-1&&n[l].splice(c,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 T&&o(e.facets,s))}o(e,P.default);var s,l,c=Object(r.a)((l=t,(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(l):[]).concat(Object.keys(l))));try{for(c.s();!(s=c.n()).done;){var u=s.value;!(u in a)&&"full"!=u&&t[u]&&(a[u]=!0,o(t[u],P.default))}}catch(f){c.e(f)}finally{c.f()}return n.reduce((function(e,t){return e.concat(t)}))}function z(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 I(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}var F=S.define({combine:function(e){return e.some((function(e){return e}))},static:!0}),$=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(l.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,l){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=l,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($)),selection:i&&(i instanceof k?i:k.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,l;if(!1===i)l=e.changes.invertedDesc,s=h.empty(n.doc.length);else{var c=e.changes.filter(i);s=c.changes,l=c.filtered.invertedDesc}e=new K(n,s,e.selection&&e.selection.map(l),Y.mapEffects(e.effects,l),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(le){}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],l=i.startState.config.address[a];null!=l&&0==(1&s)&&(this.values[s>>1]=I(i.startState,l))}this.applying=i,i&&(i._state=this);for(var c=0;c<this.config.dynamicSlots.length;c++)z(this,c<<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 z(this,n),I(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:k.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),l=s.map(r),c=0;c<a;c++)i[c]=i[c].map(l);i.push(o.range.map(r.mapDesc(s,!0))),r=r.compose(l)}return{changes:r,selection:k.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 l.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:(z(this,t),I(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,l=this.facet(o?H:a[0].languageDataFacetAt(this,n)),c=Object(r.a)(l);try{for(c.s();!(s=c.n()).done;){var u=s.value;Object.prototype.hasOwnProperty.call(u,t)&&i.push(u[t])}}catch(f){c.e(f)}finally{c.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:k.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 l.a?t.doc:l.a.of((t.doc||"").split(n.staticFacet(e.lineSeparator)||f)),i=t.selection?t.selection instanceof k?t.selection:k.single(t.selection.anchor,t.selection.head):k.single(0);return w(i,r.length),n.staticFacet(F)||(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,l=0,c=Object.keys(s);l<c.length;l++){var u=c[l],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=F,oe.indentation=S.define(),oe.tabSize=S.define({combine:function(e){return e.length?e[0]:4}}),oe.lineSeparator=$,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(75);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,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(55);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 xe})),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 Mt})),n.d(t,"g",(function(){return ke})),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 kt})),n.d(t,"m",(function(){return Xn})),n.d(t,"n",(function(){return Ae}));for(var r=n(13),i=n(58),a=n(30),o=n(27),s=n(16),l=n(15),c=n(25),u=n(7),f=n(4),d=n(6),h=n(17),p=n(5),v=n(59),m=n(32),g=n(19),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),k="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),x="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)||x&&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 M in b)y.hasOwnProperty(M)||(y[M]=b[M]);var E="undefined"!=typeof navigator?[navigator,document]:[{userAgent:"",vendor:"",platform:""},{documentElement:{style:{}}}],T=Object(h.a)(E,2),P=T[0],_=T[1],D=/Edge\/(\d+)/.exec(P.userAgent),A=/MSIE \d/.test(P.userAgent),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(P.userAgent),L=!!(A||R||D),N=!L&&/gecko\/(\d+)/i.test(P.userAgent),z=!L&&/Chrome\/(\d+)/.exec(P.userAgent),I="webkitFontSmoothing"in _.documentElement.style,F={mac:/Mac/.test(P.platform),ie:L,ie_version:A?_.documentMode||6:R?+R[1]:D?+D[1]:0,gecko:N,gecko_version:N?+(/Firefox\/(\d+)/.exec(P.userAgent)||[0,0])[1]:0,chrome:!!z,chrome_version:z?+z[1]:0,ios:!L&&/AppleWebKit/.test(P.userAgent)&&/Mobile\/\w+/.test(P.userAgent),android:/Android\b/.test(P.userAgent),webkit:I,safari:/Apple Computer/.test(P.vendor),webkit_version:I?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=_.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function $(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 l=i?i.nextSibling:r.firstChild;for(l&&t&&t.node==r&&(t.written=!0);l;)l=re(l)}else if(1&this.dirty){var c,f=Object(u.a)(this.children);try{for(f.s();!(c=f.n()).done;){var d=c.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 l=this.children[o];if(l.dom==r)return s;s+=l.length+l.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,l=n;s<this.children.length;s++){var c=this.children[s],u=l+c.length;if(l<e&&u>t)return c.domBoundsAround(e,t,l);if(u>=e&&-1==r&&(r=s,i=l),u>=t&&-1==a){a=s,o=u;break}l=u+c.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(c.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(l.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 le=function(e){Object(s.a)(n,e);var t=Object(l.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),ce=function(e){Object(s.a)(n,e);var t=Object(l.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,l=Object(u.a)(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;c.setParent(Object(i.a)(r))}}catch(d){l.e(d)}finally{l.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(l){a.e(l)}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?F.chrome||F.gecko||(t?(i--,o=1):(a++,o=-1)):n<0?i--:a++;var s=J();s.setEnd(e,a),s.setStart(e,i);var l=s.getBoundingClientRect();return o?q(l,o<0):l}var fe=function(e){Object(s.a)(n,e);var t=Object(l.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(l.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(),l=s.findPos(n,1),c=l.i,f=l.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==c&&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),c++,a=f=0}if(f){var O=g[c];r.length&&O.merge(0,f,r[r.length-1],0,a)?(r.pop(),a=0):O.merge(0,f,null,0,0)}else c<g.length&&r.length&&g[c].merge(0,0,r[r.length-1],0,a)&&(r.pop(),a=0);if(p){var k=g[h];r.length&&k.merge(p,k.length,r[0],i,0)?(r.shift(),i=0):k.merge(p,k.length,null,0,0),h++}else if(h&&r.length){var x=g[h-1];x.merge(x.length,x.length,r[0],i,0)&&(r.shift(),i=0)}for(;h<c&&r.length&&g[c-1].become(r[r.length-1]);)r.pop(),c--,a=0;for(;h<c&&r.length&&g[h].become(r[0]);)r.shift(),h++,i=0;!r.length&&h&&c<g.length&&i&&a&&g[c].merge(0,0,g[h-1],i,a)&&h--,(r.length||h!=c)&&e.replaceChildren(h,c,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 ce&&i.length&&(r=i[i.length-1])instanceof ce&&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,ke=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 xe=function(e){Object(s.a)(n,e);var t=Object(l.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);xe.none=m.b.empty;var we=function(e){Object(s.a)(n,e);var t=Object(l.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}(xe);we.prototype.point=!1;var je=function(e){Object(s.a)(n,e);var t=Object(l.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}(xe);je.prototype.mapMode=p.h.TrackBefore,je.prototype.point=!0;var Se=function(e){Object(s.a)(n,e);var t=Object(l.a)(n);function n(e,r,i,a,o,s){var l;return Object(f.a)(this,n),(l=t.call(this,r,i,o,e)).block=a,l.isReplace=s,l.mapMode=a?r<0?p.h.TrackBefore:p.h.TrackAfter:p.h.TrackDel,l}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}(xe);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 Me(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 Ee=p.f.define({combine:function(e){return e.join(" ")}}),Te=p.f.define({combine:function(e){return e.indexOf(!0)>-1}}),Pe=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("."+Pe,{$:{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"),ze=function(e){Object(s.a)(n,e);var t=Object(l.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:Ie,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 le))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),Ie=[],Fe=function(e){Object(s.a)(n,e);var t=Object(l.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 Ie}},{key:"overrideDOMText",get:function(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):p.k.empty}}]),n}(ne),$e=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 Fe&&e.type==Oe.WidgetBefore)}},{key:"getLine",value:function(){return this.curLine||this.content.push(this.curLine=new ze),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 ce(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 le(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 Fe(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(l.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}(ke);!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 l=(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==l?l=o:8==l&&4==s&&(l=16),Xe[a]=4==l?2:l,7&l&&(s=l),o=l}for(var c=0,u=i,f=i;c<r;c++){var d=Xe[c];if(128==d)c<r-1&&u==Xe[c+1]&&24&u?d=Xe[c]=u:Xe[c]=256;else if(64==d){for(var h=c+1;h<r&&64==Xe[h];)h++;for(var p=c&&8==u||h<r&&8==Xe[h]?1==f?1:8:256,v=c;v<h;v++)Xe[v]=p;c=h-1}else 8==d&&1==f&&(Xe[c]=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 k=[];if(1==i)for(var x=0;x<r;){for(var w=x,j=1!=Xe[x++];x<r&&j==(1!=Xe[x]);)x++;if(j)for(var S=x;S>w;){for(var C=S,M=2!=Xe[--S];S>w&&M==(2!=Xe[S-1]);)S--;k.push(new Ye(S,C,M?2:1))}else k.push(new Ye(w,x,0))}else for(var E=0;E<r;){for(var T=E,P=2==Xe[E++];E<r&&P==(2==Xe[E]);)E++;k.push(new Ye(T,E,P?1:2))}return k}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 l=t[t.length-1];l.level!=n&&(o=l.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 c=t[s];o==c.side(i,n)&&(o=(c=t[s+=i?1:-1]).side(!i,n));var u=i==(c.dir==n),f=e.findClusterBreak(o,u);if(Ze=e.slice(Math.min(o,f),Math.max(o,f)),f!=c.side(i,n))return p.d.cursor(f+e.from,u?-1:1,c.level);var d=s==(i?t.length-1:0)?null:t[s+(i?1:-1)];return d||c.level==n?d&&d.level<c.level?p.d.cursor(d.side(!i,n)+e.from,0,d.level):p.d.cursor(f+e.from,0,c.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 l=0;l<a.length;l++){var c=a[l];c<0?l++:this.heightSamples[Math.floor(10*c)]=!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,l=o.toA,c=o.fromB,u=o.toB,f=i.lineAt(s,et.ByPosNoHeight,t,0,0),d=f.to>=l?f:i.lineAt(l,et.ByPosNoHeight,t,0,0);for(u+=d.to-l,l=d.to;a>0&&f.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s<f.from&&(f=i.lineAt(s,et.ByPosNoHeight,t,0,0));c+=f.from-s,s=f.from;var h=ft.build(n,e,c,u);i=i.replace(s,l,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 l=t[n++];l&&(i+=l.size)}else{var c=t[--r];c&&(a+=c.size)}var u=0;return null==t[n-1]?(u=1,n--):null==t[n]&&(u=1,r++),new ct(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(l.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(l.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 lt&&4&i.flags)&&Math.abs(this.length-i.length)<10?(i instanceof lt?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),lt=function(e){Object(s.a)(n,e);var t=Object(l.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,l=Math.max(0,Math.min(o-a,Math.floor((e-n)/s))),c=t.line(a+l),u=c.from,f=c.length;return new it(u,f,n+s*l,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 l=this.lines(n,i),c=l.firstLine,u=l.lineHeight,f=n.lineAt(e),d=f.from,h=f.length,p=f.number;return new it(d,h,r+u*(p-c),u,Oe.Text)}},{key:"forEachLine",value:function(e,t,n,r,i,a){for(var o=this.lines(n,i),s=o.firstLine,l=o.lineHeight,c=e;c<t;){var u=n.lineAt(c);c==e&&(r+=l*(u.number-s)),a(new it(u.from,u.length,r,r+=l,Oe.Text)),c=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 l=e.doc.lineAt(s).length;o.length&&o.push(null);var c=new st(l,i.heights[i.index++]);c.outdated=!1,o.push(c),s+=l+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),ct=function(e){Object(s.a)(n,e);var t=Object(l.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,l=s?this.left.lineAt(e,t,n,r,i):this.right.lineAt(e,t,n,a,o);if(this.break||(s?l.to<o:l.from>o))return l;var c=t==et.ByPosNoHeight?et.ByPosNoHeight:et.ByPos;return s?l.join(this.right.lineAt(o,c,n,a,o)):this.left.lineAt(o,c,n,r,i).join(l)}},{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 l=this.lineAt(s,et.ByPos,n,r,i);e<l.from&&this.left.forEachLine(e,l.from-1,n,r,i,a),l.to>=e&&l.from<=t&&a(l),t>l.to&&this.right.forEachLine(l.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 l=a.value;i.push(l)}}catch(f){s.e(f)}finally{s.f()}if(e>0&&ut(i,o-1),t<this.length){var c=i.length;this.decomposeRight(t,i),ut(i,c)}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 lt&&(r=e[t+1])instanceof lt&&e.splice(t-1,3,new lt(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 lt(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)&&Me(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 kt(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 xt=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(),Mt=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 l,c=Object(u.a)(Array.isArray(a)?a:[a]);try{for(c.s();!(l=c.n()).done;){var f=l.value;s.push(f)}}catch(v){c.e(v)}finally{c.f()}}if(i&&s.push(Tt.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(Et.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}(),Et=jt.define(),Tt=jt.define(),Pt=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(kt(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){kt(e.state,t,"CodeMirror plugin crashed")}}}],[{key:"create",value:function(t,n){var r;try{r=t.create(n)}catch(i){return kt(n.state,i,"CodeMirror plugin crashed"),e.dummy}return new e(r,t)}}]),e}();Pt.dummy=new Pt({},Mt.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 l=i==t.length?null:t[i],c=o-s,u=l?l.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+c,p+c,h,p).addToSet(r),d>u)break;a+=2}if(!l)return r;new e(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),o=l.toA,s=l.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(c){a.e(c)}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 l=t.hasFocus;l!=t.inputState.notifiedFocused&&(t.inputState.notifiedFocused=l,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 zt=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 xe.replace({widget:new It(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}(),It=function(e){Object(s.a)(n,e);var t=Object(l.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}(ke),Ft=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=xe.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 l=s.getBoundingClientRect();r=Math.max(r,l.left),i=Math.min(i,l.right),a=Math.max(a,l.top),o=Math.min(o,l.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,l=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 c=e.measureVisibleLineHeights(),u=!1,f=0,d=0,h=this.heightOracle;if(!t){var p=e.dom.clientWidth;if(h.mustRefresh(c,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,c))&&(e.minWidth=0,d|=16)}this.contentWidth!=p&&(this.contentWidth=p,d|=16),s>0&&l>0?f=Math.max(s,l):s<0&&l<0&&(f=Math.min(s,l))}return h.heightChanged=!1,this.heightMap=this.heightMap.updateHeight(h,0,u,new rt(this.viewport.from,c)),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,l=new $t(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<l.from){var c=r.lineAt(t.head,et.ByPos,i,0,0).top;l=new $t(r.lineAt(c-500,et.ByHeight,i,0,0).from,r.lineAt(c+(s-o)+500,et.ByHeight,i,0,0).to)}else if(t.head>l.to){var u=r.lineAt(t.head,et.ByPos,i,0,0).bottom;l=new $t(r.lineAt(u-(s-o)-500,et.ByHeight,i,0,0).from,r.lineAt(u+500,et.ByHeight,i,0,0).to)}return l}},{key:"mapViewport",value:function(e,t){var n=t.mapPos(e.from,-1),r=t.mapPos(e.to,1);return new $t(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 zt(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 l=t.state.selection.primary;l.from<=a&&l.to>=r.from&&(a=l.from),l.from<=r.to&&l.to>=o&&(o=l.to);var c=a-1e4,u=o+1e4;c>r.from+5e3&&n.push(Wt(e,(function(e){return e.from==r.from&&e.to>c-5e3&&e.to<c+5e3}))||new zt(r.from,c,t.gapSize(r,c,!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 zt(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 zt.same(e,this.lineGaps)?0:(this.lineGaps=e,this.lineGapDeco=xe.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}(),$t=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,l=o.to-s;if(i<=l)return s+i;i-=l}}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(l){i.e(l)}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(l.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).view=e,r.viewports=Ht,r.compositionDeco=xe.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 ze],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=$(e.root),r=n.focusNode&&Xt(n.focusNode,n.focusOffset,0);if(!r)return xe.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 ze))return xe.none;for(;s.parentNode!=o.dom;)s=s.parentNode;for(var l=s.previousSibling;l&&!ne.get(l);)l=l.previousSibling;i=a=l?ne.get(l).posAtEnd:o.posAtStart}var c=t.mapPos(i,1),u=Math.max(c,t.mapPos(a,-1)),f=r.nodeValue,d=e.state;if(u-c<f.length)if(d.sliceDoc(c,Math.min(d.doc.length,c+f.length))==f)u=c+f.length;else{if(d.sliceDoc(Math.max(0,u-f.length),u)!=f)return xe.none;c=u-f.length}else if(d.sliceDoc(c,u)!=f)return xe.none;return xe.set(xe.replace({widget:new Yt(s,r)}).range(c,u))}(this.view,e.changes)):this.compositionDeco=xe.none;var i=(F.ie||F.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 l=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,l),!1):(this.updateInner(r,o,e.prevState.doc.length,i,l),!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=F.chrome?{node:$(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,l=a.fromB,c=a.toB,u=$e.build(this.view.state.doc,l,c,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 l=this.children[e],c=i.length?i[i.length-1]:null,u=c?c.breakAfter:a;if(e!=n||a||u||!(i.length<2)||!l.merge(t,r,i.length?c: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&&c&&f.merge(0,r,c,!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&&(c?c.breakAfter=1:a=1),n++,l.breakAfter=a,t>0&&(!a&&i.length&&l.merge(t,l.length,i[0],!1,o,0)?l.breakAfter=i.shift().breakAfter:(t<l.length||l.children.length&&0==l.children[l.children.length-1].length)&&l.merge(t,l.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=$(this.root);(e||!a.focusNode||F.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(F.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=$(this.root);if(e.empty&&e.assoc&&t.modify){var n=ze.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(xt)?this.root.activeElement==this.dom:B(this.dom,$(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 ze)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],l=a+s.length;if(l>r)break;if(a>=n){e.push(s.dom.getBoundingClientRect().height);var c=s.dom.scrollWidth;c>i&&(this.minWidth=i=c,this.minWidthFrom=a,this.minWidthTo=l)}a=l+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 ze){var i=r.measureTextSize();if(i)return i}}}catch(l){n.e(l)}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 $t(o,s))}if(!t.some((function(e){var t=e.from,n=e.to;return i>=t&&i<=n}))){var l=this.view.viewState.lineAt(i,0),c=l.from,u=l.to;t.push(new $t(c,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(xe.replace({widget:new qt(m),block:!0,inclusive:!0}).range(d,v))}if(!p)break;d=p.to+1}return xe.set(f)}},{key:"updateDeco",value:function(){return this.decorations=[this.computeBlockGapDeco(),this.view.viewState.lineGapDeco,this.compositionDeco].concat(Object(c.a)(this.view.state.facet(At)),Object(c.a)(this.view.pluginField(Et)))}},{key:"scrollPosIntoView",value:function(e,t){var n=this.coordsAt(e,t);if(n){var r,i=0,a=0,o=0,s=0,l=Object(u.a)(this.view.pluginField(jt.scrollMargins));try{for(l.s();!(r=l.n()).done;){var c=r.value;if(c){var f=c.left,d=c.right,h=c.top,p=c.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){l.e(v)}finally{l.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,l=0;if(t.top<i.top?l=-(i.top-t.top+5):t.bottom>i.bottom&&(l=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||l)if(a)n.scrollBy(s,l);else{if(l){var c=r.scrollTop;r.scrollTop+=l,l=r.scrollTop-c}if(s){var u=r.scrollLeft;r.scrollLeft+=s,s=r.scrollLeft-u}t={left:t.left-s,top:t.top-l,right:t.right-s,bottom:t.bottom-l}}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(l.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}(ke);var Yt=function(e){Object(s.a)(n,e);var t=Object(l.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}(ke);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){Me(e,t,this.changes)}},{key:"comparePoint",value:function(e,t){Me(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,l,c,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&&(!c||c.bottom<p.bottom)?(s=f,c=p):n<p.top&&(!u||u.top>p.top)&&(l=f,u=p):c&&en(c,p)?c=nn(c,p.bottom):u&&en(u,p)&&(u=tn(u,p.top))}if(c&&c.bottom>=n?(r=s,i=c):u&&u.top<=n&&(r=l,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 l=o[s];if(l.top!=l.bottom&&(l.left-1<=t&&l.right+1>=t&&l.top-1<=n&&l.bottom+1>=n)){var c=t>=(l.left+l.right)/2,u=c;if(F.chrome||F.gecko)i.setEnd(e,a),i.getBoundingClientRect().left==l.right&&(u=!c);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,l=!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)),l)return-1;l=!0}if(n.type==Oe.Text)break;i=a>0?n.bottom+s:n.top-s}var c=n.from;if(c<e.viewport.from)return 0==e.viewport.from?0:-1;if(c>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=ze.find(e.docView,c),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 l=ze.find(e.docView,t.head),c=l?n?l.posAtEnd:l.posAtStart:n?i.to:i.from;return p.d.cursor(c,n?-1:1)}function ln(e,t,n,r){for(var i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),o=t,s=null;;){var l=Je(i,a,e.textDirection,o,n),c=Ze;if(!l){if(i.number==(n?e.state.doc.lines:1))return o;c="\n",i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),l=p.d.cursor(n?i.from:i.to)}if(s){if(!s(c))return o}else{if(!r)return l;s=r(c)}o=l}}var cn=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(Tt),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(l){i.e(l)}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){kt(t.state,s)}}}catch(l){i.e(l)}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){kt(e.state,o)}}}catch(s){r.e(s)}finally{r.f()}}},{key:"ignoreDuringComposition",value:function(e){return!!/^key/.test(e.type)&&(!!this.composing||!!(F.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):F.mac?t.metaKey:t.ctrlKey}(n,r),this.dragMove=function(e,t){var n=e.state.facet(mt);return n.length?n[0](t):F.mac?!t.altKey:!t.ctrlKey}(n,r),this.dragging=!!function(e,t){if(e.state.selection.primary.empty)return!1;var n=$(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=F.ie&&F.ie_version<15||F.ios&&F.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 l=r(i.slice(o,s));o>0;){var c=i.findClusterBreak(o,!1);if(r(i.slice(c,o))!=l)break;o=c}for(;s<i.length;){var u=i.findClusterBreak(s,!0);if(r(i.slice(s,u))!=l)break;s=u}return p.d.range(o+i.from,s+i.from)}(e.state,t,n);var i=ze.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=F.mac&&1==t;return 8==n||r&&72==n||46==n||r&&68==n||27==n||t==(F.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=kn;return kn=e,xn=!t||t.timeStamp>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(xn+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,l){var c;if(t.clientX==o.clientX&&t.clientY==o.clientY?c=a:(c=a=yn(e,t),o=t),!c||!n)return i;var u=vn(e,c.pos,c.bias,r);if(n.pos!=c.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)):l?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=ze.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=F.ie&&F.ie_version<=11,kn=null,xn=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,l=-1,c=Object(u.a)(e.selection.ranges);try{for(c.s();!(s=c.n()).done;){var f=s.value.from,d=e.doc.lineAt(f);d.number>l&&(n.push(d.slice()),r.push({from:d.from,to:Math.min(e.doc.length,d.to+1)})),l=d.number}}catch(h){c.e(h)}finally{c.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=F.ie&&F.ie_version<=11,Mn=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()}F.ie&&F.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(F.ie&&F.ie_version<=11&&!i.view.state.selection.primary.empty){var e=$(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($(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=$(this.view.root),o=!this.ignoreSelection.eq(a)&&B(this.dom,a);if(0!=n.length||o){var s,l=-1,c=-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==l?(l=p.from,c=p.to):(l=Math.min(p.from,l),c=Math.max(p.to,c)))}}catch(m){d.e(m)}finally{d.f()}var v=this.view.state;(l>-1||o)&&this.onChange(l,c,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=En(t,e.previousSibling||e.target.previousSibling,-1),r=En(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 En(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 Tn="\ufdda";function Pn(e,t,n,r){var i,a,o,s=e.state.selection.primary;if(t>-1&&(o=e.docView.domBoundsAround(t,n,0))){var l=o,c=l.from,u=l.to,f=e.docView.impreciseHead||e.docView.impreciseAnchor?[]:function(e,t){var n=[];if(t.activeElement!=e)return n;var r=$(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,c);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(c,u,Tn),d.text,h-c,v);m&&(i={from:c+m.from,to:c+m.toA,insert:p.k.of(d.text.slice(m.from,m.toB).split(Tn))})}else if(e.hasFocus){var g=$(e.root),b=e.docView,y=b.impreciseHead,O=b.impreciseAnchor,k=y&&y.node==g.focusNode&&y.offset==g.focusOffset?e.state.selection.primary.head:e.docView.posFromDOM(g.focusNode,g.focusOffset),x=O&&O.node==g.anchorNode&&O.offset==g.anchorOffset?e.state.selection.primary.anchor:function(e){var t=e.isCollapsed;return t&&F.chrome&&e.rangeCount&&!e.getRangeAt(0).collapsed&&(t=!1),t}(g)?k:e.docView.posFromDOM(g.anchorNode,g.anchorOffset);k==s.head&&x==s.anchor||(a=p.d.single(x,k))}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(F.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,Tn):"",M=s.to>i.to?w.doc.sliceString(i.to,s.to,Tn):"";j=w.replaceSelection(p.k.of((C+i.insert.sliceString(0,void 0,Tn)+M).split(Tn)))}else{var E=w.changes(i);j={changes:E,selection:a&&!w.selection.primary.eq(a.primary)&&a.primary.to<=E.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 T,P=!1;e.inputState.lastSelectionTime>Date.now()-50&&("keyboardselection"==e.inputState.lastSelectionOrigin?P=!0:T=p.l.userEvent.of(e.inputState.lastSelectionOrigin)),e.dispatch({selection:a,scrollIntoView:P,annotations:T})}}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+=Tn),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,Tn):3==e.nodeType?t=e.nodeValue:"BR"==e.nodeName?t=e.nextSibling?Tn:"":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 Ft(n.state||p.e.create()),this.plugins=this.state.facet(Ct).map((function(e){return Pt.create(e,t)})),this.observer=new Mn(this,(function(e,n,r){return Pn(t,e,n,r)}),(function(e){t.inputState.runScrollHandlers(t,e),t.measure()})),this.docView=new Vt(this),this.inputState=new cn(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,Fn(),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 l,c=Object(u.a)(this.state.facet(yt));try{for(c.s();!(l=c.n()).done;){(0,l.value)(a)}}catch(f){c.e(f)}finally{c.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 Ft(e),this.plugins=e.facet(Ct).map((function(e){return Pt.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,l=t.indexOf(s);if(l<0)i.push(Pt.create(s,this));else{var c=this.plugins[l].update(e);a.push(c),i.push(c)}}}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 kt(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){kt(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 l,c=Object(u.a)(this.state.facet(yt));try{for(c.s();!(l=c.n()).done;){(0,l.value)(t)}}catch(d){c.e(d)}finally{c.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(xt)),class:Ae("content"),style:"".concat(F.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,zn(t,this.contentDOM))}},{key:"visualLineAtHeight",value:function(e,t){return this.readMeasured(),this.viewState.lineAtHeight(e,zn(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,zn(t,this.contentDOM))}},{key:"moveByChar",value:function(e,t,n){return ln(this,e,t,n)}},{key:"moveByGroup",value:function(e,t){var n=this;return ln(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 l=e.dom.getBoundingClientRect(),c=null!==(i=t.goalColumn)&&void 0!==i?i:s.left-l.left,u=l.left+c,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,c)}var m=e.state.doc,b=m.lineAt(a),y=e.state.tabSize,O=t.goalColumn,k=0;if(null==O){for(var x=m.iterRange(b.from,a);!x.next().done;)k=Object(g.d)(x.value,k,y);O=k*e.defaultCharacterWidth}else k=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>=k&&!C.next().done;){var M=Object(g.e)(C.value,S,k,y),E=M.offset;S=k-M.leftOver,j+=E}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 Pe+" "+(this.state.facet(Te)?"cm-dark":"cm-light")+" "+this.state.facet(Ee)}},{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 Mt.define((function(){return{}}),{eventHandlers:e})}},{key:"theme",value:function(e,t){var n=v.a.newName(),r=[Ee.of(n),Rt.of(De(".".concat(Pe,".").concat(n),e))];return t&&t.dark&&r.push(Te.of(!0)),r}},{key:"baseTheme",value:function(e){return Object(p.o)(Rt.of(De("."+Pe,e)),"fallback")}}]),e}();Ln.styleModule=Rt,Ln.inputHandler=Ot,Ln.exceptionSink=bt,Ln.updateListener=yt,Ln.editable=xt,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 zn(e,t){return null==e?t.getBoundingClientRect().top:e}var In=-1;function Fn(){window.addEventListener("resize",(function(){-1==In&&(In=setTimeout($n,50))}))}function $n(){In=-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 l=0;l<o.length-1;++l){var c=o[l];if(/^(cmd|meta|m)$/i.test(c))a=!0;else if(/^a(lt)?$/i.test(c))n=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))i=!0;else{if(!/^mod$/i.test(c))throw new Error("Unrecognized modifier name: "+c);"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)),l=t.split(/ (?!$)/).map((function(e){return Hn(e,n)})),c=function(t){var n=l.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<l.length;u++)c(u);var f=l.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 l=t.value,c=l[n]||l.key;if(c){var f,d=Object(u.a)(l.scope?l.scope.split(" "):["editor"]);try{for(d.s();!(f=d.n()).done;){var h=f.value;o(h,c,l.run,l.preventDefault),l.shift&&o(h,"Shift-"+c,l.shift,l.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)||(k||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,l=!!o,c=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&&(l=!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(c(d[o+Vn(i,t,!a)]))return!0;if(a&&(t.shiftKey||t.altKey||t.metaKey)&&(h=b[t.keyCode])&&h!=i){if(c(d[o+Vn(h,t,!0)]))return!0}else if(a&&t.shiftKey&&c(d[o+Vn(i,t,!0)]))return!0}}}catch(p){f.e(p)}finally{f.f()}return l}var Jn=!F.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=Mt.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),l=window.getComputedStyle(a.firstChild),c=o.left+parseInt(l.paddingLeft),f=o.right-parseInt(l.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(c,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,l,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?c:d.left,i&&l?f:h.right):o.push(!i&&l?c:h.left,!i&&n?f:d.right)}var l,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();!(l=v.n()).done;){var m=l.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),k=Object(u.a)(e.bidiSpans(O));try{for(k.s();!(y=k.n()).done;){var x=y.value,w=x.from+O.from,j=x.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,x.dir)}}catch(C){k.e(C)}finally{k.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,l=s==n.selection.primary;if(s.empty?!l||Jn:r.drawRangeCursor){var c=ur(this.view,s,l);c&&a.push(c)}}}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,l=Object(u.a)(r);try{for(l.s();!(s=l.n()).done;){var c=s.value;this.cursorLayer.appendChild(c.draw())}}catch(f){l.e(f)}finally{l.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 lr=Ae("cursor.primary"),cr=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?lr:cr)}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(xr),t}var br=Mt.fromClass(function(){function e(t){Object(f.a)(this,e),this.view=t,this.decorations=xe.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=xe.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 l=Object(g.b)(r[0],0),c=void 0;if(null!=l){if(9==l){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);c=xe.replace({widget:new Or((f-d%f)*this.view.defaultCharacterWidth)})}else c=this.decorationCache[l]||(this.decorationCache[l]=xe.replace({widget:new yr(i,l)}));n.push(c.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(l.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}(ke),Or=function(e){Object(s.a)(n,e);var t=Object(l.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=kr,e.style.width=this.width+"px",e}},{key:"ignoreEvent",value:function(){return!1}}]),n}(ke),kr=v.a.newName(),xr=Ln.styleModule.of(new v.a(Object(r.a)({},"."+kr,{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,l=-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==l)return"continue";l=t.from;var n=Math.max.apply(Math,Object(c.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(94)),l=n.n(s),c=n(192),u=n(223),f=n(151),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(c.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,l=e.innerRef,c=Object(i.a)(e,["classes","innerRef"]),p=m(Object(r.a)(Object(r.a)({},n.defaultProps),e)),v=c;return("string"===typeof h||d)&&(s=Object(f.a)()||a,h&&(v=Object(u.a)({theme:s,name:h,props:c})),d&&!v.theme&&(v.theme=s)),o.a.createElement(n,Object(r.a)({ref:l||t,classes:p},v))}));return l()(g,n),g}},h=n(65);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:h.a},t))}},function(e,t,n){e.exports=n(177)()},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(58);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(75);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(l){i=!0,a=l}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,"a",(function(){return i}));var r=n(152);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 k})),n.d(t,"e",(function(){return x})),n.d(t,"f",(function(){return y}));for(var r=n(30),i=n(27),a=n(16),o=n(15),s=n(7),l=n(4),c=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 k(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 x(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(l.a)(this,e)}return Object(c.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),E.from(r,this.length-(t-e)+n.length)}},{key:"append",value:function(e){return 0==this.length?e:0==e.length?this:E.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),E.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=T(t);return n<1024?new M(t,n):E.from(M.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 M=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]:T(e);return Object(l.a)(this,n),(r=t.call(this)).text=e,r.length=i,r}return Object(c.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(P(this.text,P(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 l=r.value;;){var c=a+l.length+1;if(c<512){a=c,i.push(l);break}var u=512-a-1,f=l.charCodeAt(u);f>=56320&&f<57344&&u++,i.push(l.slice(0,u)),t.push(new n(i,512)),l=l.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),E=function(e){Object(a.a)(n,e);var t=Object(o.a)(n);function n(e,r){var i;Object(l.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 c=a.value;i.lines+=c.lines-1}}catch(u){o.e(u)}finally{o.f()}return i}return Object(c.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 l=a.lineInner(e,t,n,r),c=void 0;return l.from==r&&(c=this.lineLengthTo(i))&&(l.from-=c,l.content=null),l.to==o&&(c=this.lineLengthFrom(i+1))&&(l.to+=c,l.content=null),l}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,l=0;s<this.children.length;s++){var c=this.children[s],u=l+c.length;if(e>=l&&t<=u&&c.length+o<this.length+o>>2&&c.length+o>0){var f=this.children.slice();return f[s]=c.replace(e-l,t-l,a),new n(f,this.length+o)}l=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 l=o.sliceString(e-a,t-a,n);if(e>=a&&t<=s)return l;r+=l}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 M(i,t)}var o=Math.max(512,t>>3),l=o<<1,c=o>>1,u=[],f=0,d=[];function h(e){var t,r=e.length;if(r)if(r>l&&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>c&&(f>c||0==f)?(p(),u.push(e)):e instanceof M&&f>0&&(t=d[d.length-1])instanceof M&&e.length+t.length<=512?(f+=r,d[d.length-1]=new M(P(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 T(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 P(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],l=i+s.length;l>=n&&(l>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=l+1}return t}function _(e,t,n){return P(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(l.a)(this,e),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[n>0?0:t instanceof M?t.text.length:t.children.length]}return Object(c.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 M){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 M?a.text.length:a.children.length))}}}}]),e}(),A=function(){function e(t,n,r){Object(l.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(c.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(l.a)(this,e),this.value="",this.done=!1,this.cursor=t.iter(),this.skip=n}return Object(c.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(l.a)(this,e),this.from=t,this.to=n,this.number=r,this.content=i}return Object(c.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(l.a)(this,e),this.doc=t,this.start=n,this.cursor=null,this.strings=null}return Object(c.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,"d",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return d}));var r=n(152);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=l(e),r=l(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function l(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),l=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)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),o({type:c,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 c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return l(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 l})),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),l=1024,c=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 l,c=o.value,u=null,f=Object(a.a)(r);try{for(f.s();!(l=f.n()).done;){var d=l.value,p=d.f(c);if(void 0!==p){if(!u)for(var v in u=Object.create(null),c.props)u[v]=c.props[v];u[d.prop.id]=p}}}catch(m){f.e(m)}finally{f.f()}t.push(u?new h(c.name,u,c.id):c)}}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 l=this.children[o],c=s+l.length;c<e||(e<=s&&t>=c?(i.push(l),a.push(s+r)):l instanceof n&&l.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 l=o==e.length?null:e[o],c=l?i(this,l.fromA,-1):this.length;if(c>s&&this.partial(s,c,a,t,r),!l)break;s=i(this,l.toA,1),a+=l.toB-l.fromB-(l.toA-l.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 c(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 l=this.children.length-1;l>=0&&!r.done;l--){var c=this.children[l],u=this.positions[l]+n;if(u+c.length<t)break;u>e||c.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 l=this.children[s],c=this.positions[s]+r;if(0==l.length&&c==e)continue;if(l instanceof n)return l.type.name?new O(l,c,i):l.findChild(e,t,c,i);var u=l.findIndex(e,t,c,0,l.buffer.length);if(u>-1)return new k(l,c,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]:l;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 c(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,l=this.buffer[r++];if(o>t)return this.buffer.length;if(s>=e&&i.doEnter(a,o,s)){for(;r<l&&!i.done;)r=this.iterChild(e,t,n,r,i);i.leave&&i.leave(a,o,s)}return l}},{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),l=-1,c=-1,u=function(){s.length>0?(l=s.pop(),c=o.buffer[l+3]):c=-1};u();e:for(var f=i;f>r&&!a.done;){for(;c==f;){var d=l,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;c>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 l=s[o+1]+n,c=s[o+2]+n,u=l==c&&l==e;if(l>=e){if(t>0&&!u)return o;break}if(c>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 c(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),k=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 c(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),x=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?l:a,s=e.reused,c=void 0===s?[]:s,u=e.minRepeatType,f=void 0===u?n.types.length:u,d=Array.isArray(t)?new x(t,t.length):t,p=n.types;function v(e,t,r,i,a){for(var s=d.id,l=d.start,u=d.end,b=d.size;s==a;)d.next(),s=d.id,l=d.start,u=d.end,b=d.size;var O=l-e;if(b<0)return r.push(c[s]),i.push(O),void d.next();var k,x,j=p[s];if(u-l<=o&&(x=function(e,t){var n=d.fork(),r=0,i=0,a=0,s=n.end-o,l={size:0,start:0,skip:0};e:for(var c=n.pos-e;n.pos>c;)if(n.id!=t){var u=n.size,h=n.pos-u;if(u<0||h<c||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 l.size=r,l.start=i,l.skip=a,a+=4,r+=4,n.next();(t<0||r==e)&&(l.size=r,l.start=i,l.skip=a);return l.size>4?l:void 0}(d.pos-t,a))){for(var C=new Uint16Array(x.size-x.skip),M=d.pos-x.size,E=C.length;d.pos>M;)E=g(x.start,C,E,a);k=new y(C,u-x.start,n,a<0?h.none:p[a]),O=x.start-e}else{var T=d.pos-b;d.next();for(var P=[],_=[],D=s>=f?s:-1;d.pos>T;)v(l,T,P,_,D);P.reverse(),_.reverse(),k=D>-1&&P.length>w?S(j,j,P,_,0,P.length,0,o,u-l):new m(j,P,_,u-l)}r.push(k),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 l=n;if(s>4)for(var c=d.pos-(s-4);d.pos>c;)n=g(e,t,n,r);return i<f&&(t[--n]=l,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 k=b.length?O[0]+b[0].length:0;return new m(n.types[i],b.reverse(),O.reverse(),k)}function S(e,t,n,r,i,a,o,s,l){var c=[],u=[];if(l<=s)for(var f=i;f<a;f++)c.push(n[f]),u.push(r[f]-o);else for(var d=Math.max(s,Math.ceil(1.5*l/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++)c.push(b.children[y]),u.push(b.positions[y]+g-o);continue}c.push(b)}else if(p==v+1)c.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)),c.push(O)}u.push(g-o)}return new m(e,c,u,l)}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(82);var i=n(75);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(173)},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(88);var i=n(76),a=n(89);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(l){i=!0,a=l}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 l})),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 l(e,t,this)}}]),e}();s.prototype.startSide=s.prototype.endSide=0,s.prototype.point=!1,s.prototype.mapMode=o.h.TrackDel;var l=function e(t,n,r){Object(i.a)(this,e),this.from=t,this.to=n,this.value=r};function c(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,l=i[s]-e||(t<0?this.value[s].startSide:this.value[s].endSide)-n;if(s==a)return l>=0?a:o;l>=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,l=0;l<this.value.length;l++){var c=this.value[l],u=this.from[l]+t,f=this.to[l]+t,d=void 0,h=void 0;if(u==f){var p=n.mapPos(u,c.startSide,c.mapMode);if(p<0)continue;d=h=p}else if((d=n.mapPos(u,c.startSide))>(h=n.mapPos(f,c.endSide))||d==h&&c.startSide>0&&c.endSide<=0)continue;(h-d||c.endSide-c.startSide)<0||(o<0&&(o=d),c.point&&(s=Math.max(s,h-d)),r.push(c),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(c),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 l(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],l=t.touchesRange(o,o+s.length);if(!1===l)i=Math.max(i,s.maxPoint),n.push(s),r.push(t.mapPos(o));else if(!0===l){var c=s.map(o,t),u=c.mapped,f=c.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,l=t.filter((function(t){return t.maxPoint>=500||t!=e.empty&&n.indexOf(t)<0&&t.maxPoint>=s})),c=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 l,c=new Set,f=Object(r.a)(t);try{for(f.s();!(l=f.n()).done;)for(var d=l.value,h=0;h<d.chunk.length;h++)i.get(d.chunk[h])==d.chunkPos[h]&&c.add(d.chunk[h])}catch(p){f.e(p)}finally{f.f()}return c}(l,c),d=new b(l,f,s),h=new b(c,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 l=Math.min(a.to,n);if(a.point?(r.point(o,l,a.point,a.activeForPoint(a.to),s),s=a.openEnd(l)+(a.to>l?1:0)):l>o&&(r.span(o,l,a.active,s),s=a.openEnd(l)),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 l?[e]:n?e.slice().sort(c):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){k(this.active,e),k(this.activeTo,e),k(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++;x(this.active,t,r),x(this.activeTo,t,i),x(this.activeRank,t,a),e&&x(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&&k(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,l=r-t;;){var c=e.to+l-n.to||e.endSide-n.endSide,u=c<0?e.to+l: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,c<=0&&e.next(),c>=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 k(e,t){for(var n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function x(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 c})),n.d(t,"c",(function(){return u}));var r=n(4),i=n(6),a=n(7),o=n(10),s=n(5),l=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 c(e){var t=[d,m];return e&&t.push(l.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(l);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(c){o.e(c)}finally{o.f()}}return Object(i.a)(e,[{key:"update",value:function(e){var t=e.state.facet(l);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=[],c=[],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),c.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=c;g<b.length;g++){var y=b[g];y.dom.className+=" "+h(y),y.mount&&y.mount()}}else{var O,k=Object(a.a)(this.panels);try{for(k.s();!(O=k.n()).done;){var x=O.value;x.update&&x.update(e)}}catch(w){k.e(w)}finally{k.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(154);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(151),i=(n(0),n(65));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(57);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,l=t.easing,c=void 0===l?i.easeInOut:l,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(c," ").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",l="week",c="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,c),a=n-i<0,o=t.clone().add(r+(a?-1:1),c);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:c,y:f,w:l,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 k=function(e){return e instanceof S},x=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(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},j=b;j.l=x,j.i=k,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=x(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 c:return r?h(1,m):h(0,m+1);case l: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,l=j.p(e),u="set"+(this.$u?"UTC":""),h=(n={},n[s]=u+"Date",n[d]=u+"Date",n[c]=u+"Month",n[f]=u+"FullYear",n[o]=u+"Hours",n[a]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],p=l===s?this.$D+(t-this.$W):t;if(l===c||l===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===c)return this.set(c,this.$M+r);if(p===f)return this.set(f,this.$y+r);if(p===s)return v(1);if(p===l)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,l=n.weekdays,c=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,c,3),MMMM:u(c,s),D:this.$D,DD:j.s(this.$D,2,"0"),d:String(this.$W),dd:u(n.weekdaysMin,this.$W,l,2),ddd:u(n.weekdaysShort,this.$W,l,3),dddd:l[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[c]=y,p[u]=y/3,p[l]=(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(c).$D},g.$locale=function(){return O[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=x(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",c],["$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=x,w.isDayjs=k,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){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(182);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(53)},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){"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 l.a})),n.d(t,"ownerDocument",(function(){return c.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(18),i=n(40),a=n(36),o=n(50);function s(e,t){return function(){return null}}var l=n(77),c=n(29),u=n(64),f=n(111),d=n(38),h=n(112),p=n(54),v=n(31),m=n(23),g=n(87),b=n(63)},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(83);var i=n(92),a=n(76);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 l}));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,l=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 l(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 c=t[a];if(/&/.test(a))l(e.map((function(e){return o?o(a,e):a.replace(/&/,e)})),c,n);else if(c&&"object"==typeof c){if(!i)throw new RangeError("The value of a property ("+a+") should be a primitive value.");l("keyframes"==i[1]?[a]:s(a),c,r)}else null!=c&&r.push(a.replace(/_.*/,"").replace(/[A-Z]/g,(function(e){return"-"+e.toLowerCase()}))+": "+c+";")};for(var c in t)a(c);(r.length||i&&"keyframes"==i[1])&&n.push(e.join(",")+" {"+r.join(" ")+"}")}for(var c in t)l(s(c),t[c],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}(),c=null,u=function(){function e(t){if(Object(r.a)(this,e),t.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(c)return t.adoptedStyleSheets=[c.sheet].concat(t.adoptedStyleSheets),t[o]=c;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),c=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 l="",c=0;c<this.modules.length;c++)l+=this.modules[c].rules.join("\n")+"\n";this.styleTag.textContent=l}}}]),e}()}).call(this,n(110))},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"}}),l=1e4,c="()[]{}",u=i.f.define({combine:function(e){return Object(i.m)(e,{afterCursor:!0,brackets:c,maxScanDistance:l})}}),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 l=n.value;if(l.empty){var c=m(t.state,l.head,-1,o)||l.head>0&&m(t.state,l.head-1,1,o)||o.afterCursor&&(m(t.state,l.head,1,o)||l.head<t.state.doc.length&&m(t.state,l.head+1,-1,o));if(c){var h=c.matched?f:d;i.push(h.range(c.start.from,c.start.to)),c.end&&i.push(h.range(c.end.from,c.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||l,o=i.brackets||c,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},l=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==l&&i.indexOf(e.name)>-1)return{start:s,end:{from:t,to:o},matched:!0};if(v(e,n,a))l++;else if(v(e,-n,a)&&0==--l)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),l=o.indexOf(s);if(l<0||l%2==0!=n>0)return null;for(var c={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:c,end:{from:p+v,to:p+v+1},matched:g>>1==l>>1};f--}}n>0&&(d+=h.length)}return u.done?{start:c,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,l={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 c(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||!l[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",c,!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(147),i=Object(r.a)();t.a=i},function(e,t,n){"use strict";var r=n(191);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(179)},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(17);var r=n(25),i=n(16),a=n(15),o=n(7),s=n(4),l=n(6),c=n(84),u=n(5),f=n(10),d=n(19),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(l.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(l.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 l=t.length,c=0;if(s<0){for(var u=0,f=Math.min(e.length,200);u<f&&c<l;){var h=Object(d.b)(e,u);h!=t[c]&&h!=n[c]||(r[c++]=u),u+=Object(d.c)(h)}if(c<l)return null}for(var p=0,v=0,m=!1,g=0,b=-1,y=-1,O=0,k=Math.min(e.length,200),x=0;O<k&&v<l;){var w=Object(d.b)(e,O);s<0&&(p<l&&w==t[p]&&(i[p++]=O),g<l&&(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==x&&0!=S&&(this.chars[v]==w||this.folded[v]==w&&(m=!0)))&&(a[v++]=O),x=S,O+=Object(d.c)(w)}return v==l&&0==a[0]?this.result((m?-200:0)-100,a,e):g==l&&0==b?[-200,0,y]:s>-1?[-700,s,s+this.pattern.length]:g==l?[-900,b,y]:v==l?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 l=r.value,c=l+(this.astral?Object(d.c)(Object(d.b)(n,l)):1);a>1&&i[a-1]==l?i[a-1]=c:(i[a++]=l,i[a++]=c)}}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 k(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,l=r.appendChild(document.createElement("li"));l.id=t+"-"+i;var c=l.appendChild(document.createElement("div"));c.className=Object(f.n)("completionIcon"+(o.type?"."+o.type:"")),c.setAttribute("aria-hidden","true");var u=l.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=l.appendChild(document.createElement("span"));y.className=Object(f.n)("completionDetail"),y.textContent=h}l.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 x(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,l=a.selected,c=t.state.facet(y);this.range=x(o.length,l,c.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(k(o,i.id,this.range)),this.list.addEventListener("scroll",(function(){r.info&&r.view.requestMeasure(r.placeInfo)}))}return Object(l.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=x(n.options.length,n.selected,this.view.state.facet(y).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(k(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(l.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,l=new b(t.sliceDoc(a.from,a.to)),c=void 0,u=Object(o.a)(a.result.options);try{for(u.s();!(s=u.n()).done;){var f=s.value;(c=l.match(f.label))&&(null!=f.boost&&(c[0]+=f.boost),r.push(new p(f,a,c)))}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){i.e(d)}finally{i.f()}return r.sort(T),r.length>300?r.slice(0,300):r}(t,n);if(!a.length)return null;var s,l=0;if(i)for(var c=i.options[i.selected].completion,u=0;u<a.length&&!l;u++)a[u].completion==c&&(l=u);return new e(a,C(r,l),[{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(),l)}}]),e}(),S=function(){function e(t,n,r){Object(s.a)(this,e),this.active=t,this.id=n,this.open=r}return Object(l.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 P(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,l=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,c=Object(o.a)(t.effects);try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is(R)&&(l=l&&l.setSelected(u.value,this.id))}}catch(f){c.e(f)}finally{c.f()}return a==this.active&&l==this.open?this:new e(a,this.id,l)}},{key:"tooltip",get:function(){return this.open?this.open.tooltip:E}},{key:"attrs",get:function(){return this.open?this.open.attrs:M}}],[{key:"start",value:function(){return new e(E,"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 M={"aria-autocomplete":"list"},E=[];function T(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 P=function(){function e(t,n,r){Object(s.a)(this,e),this.source=t,this.state=n,this.explicit=r}return Object(l.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 l=a.value;if(l.is(D))i=l.value?new e(i.source,1,!0):new e(i.source,0,!1);else if(l.is(A)){var c,f=Object(o.a)(l.value);try{for(f.s();!(c=f.n()).done;){var d=c.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,l){var c;return Object(s.a)(this,n),(c=t.call(this,e,2,r)).result=i,c.from=a,c.to=o,c.span=l,c}return Object(l.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 P(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 P(this.source,1,this.explicit)}},{key:"handleChange",value:function(e){return e.changes.touchesRange(this.from,this.to)?new P(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}(P),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:[c.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 z=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)},I=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.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(l.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 l,c=Object(o.a)(s.context.abortListeners);try{for(c.s();!(l=c.n()).done;){var d=l.value;try{d()}catch(p){Object(f.l)(this.view.state,p)}}}catch(v){c.e(v)}finally{c.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 I(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 l,c=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();!(l=u.n()).done;){var f=l.value;c=c.update(f,r)}}catch(y){u.e(y)}finally{u.f()}if(c.hasResult())return n.push(c),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 P(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}()),$=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(l.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(l.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],l=Object(o.a)(this.lines);try{for(l.s();!(n=l.n()).done;){var c=n.value;if(r.length){for(var f=s,d=/^\t*/.exec(c)[0].length,h=0;h<d;h++)f+=e.facet(u.e.indentUnit);i.push(t+f.length-d),c=f+c.slice(d)}r.push(c),t+=c.length+1}}catch(p){l.e(p)}finally{l.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=[],l=Object(o.a)(t.split(/\r\n?|\n/));try{for(l.s();!(r=l.n()).done;){for(var c=r.value;n=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(c);){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 $(d,a.length,n.index,n.index+f.length)),c=c.slice(0,n.index)+f+c.slice(n.index+n[0].length)}a.push(c)}}catch(v){l.e(v)}finally{l.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(l.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(l.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,l={changes:{from:r,to:i,insert:u.k.of(o)}};s.length&&(l.selection=X(s,0)),s.length>1&&(l.effects=U.of(new V(s,0)),void 0===e.state.field(Y,!1)&&(l.reconfigure={append:[Y,Z,O]})),e.dispatch(e.state.update(l))}}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),F,O,Object(c.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:z}]),"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){"use strict";n.d(t,"a",(function(){return i}));var r=n(82);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(83);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 l,c=["","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(k(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)}}l="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&&l(r,n)}function k(e,t){return function(){return e.apply(t,arguments)}}function x(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(E(t),(function(t){e.addEventListener(t,n,!1)}))}function S(e,t,n){m(E(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 M(e,t){return e.indexOf(t)>-1}function E(e){return e.trim().split(/\s+/g)}function T(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 P(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];T(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<c.length;){if((r=(n=c[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,z=L&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),I="touch",F="mouse",$=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){x(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,l=o?o.center:a.center,c=t.center=U(r);t.timeStamp=h(),t.deltaTime=t.timeStamp-a.timeStamp,t.angle=K(l,c),t.distance=X(l,c),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,l=t.timeStamp-o.timeStamp;if(8!=t.eventType&&(l>25||o.velocity===s)){var c=t.deltaX-o.deltaX,u=t.deltaY-o.deltaY,f=q(l,c,u);r=f.x,i=f.y,n=d(f.x)>d(f.y)?f.x:f.y,a=Y(c,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:F,srcEvent:e}))}});var te={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},ne={2:I,3:"pen",4:F,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==I,s=T(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",le="touchstart touchmove touchend touchcancel";function ce(){this.evTarget=se,this.evWin=le,this.started=!1,W.apply(this,arguments)}function ue(e,t){var n=P(e.touches),r=P(e.changedTouches);return 12&t&&(n=_(n.concat(r),"identifier",!0)),[n,r]}O(ce,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:I,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=P(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,a,o=P(e.changedTouches),s=[],l=this.target;if(a=n.filter((function(e){return C(e.target,l)})),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:I,srcEvent:e})}});function ve(){W.apply(this,arguments);var e=k(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==I,i=n.pointerType==F;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,ke="compute",xe="auto",we="manipulation",je="none",Se="pan-x",Ce="pan-y",Me=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 Ee(e,t){this.manager=e,this.set(t)}Ee.prototype={set:function(e){e==ke&&(e=this.compute()),Oe&&this.manager.element.style&&Me[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){x(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(M(e,je))return je;var t=M(e,Se),n=M(e,Ce);if(t&&n)return je;if(t||n)return t?Se:Ce;if(M(e,we))return we;return xe}(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=M(r,je)&&!Me.none,a=M(r,Ce)&&!Me["pan-y"],o=M(r,Se)&&!Me["pan-x"];if(i){var s=1===e.pointers.length,l=e.distance<2,c=e.deltaTime<250;if(s&&l&&c)return}if(!o||!a)return i||a&&6&n||o&&n&$?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Te=32;function Pe(e){this.options=l({},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(){Pe.apply(this,arguments)}function Le(){Re.apply(this,arguments),this.pX=null,this.pY=null}function Ne(){Re.apply(this,arguments)}function ze(){Pe.apply(this,arguments),this._timer=null,this._input=null}function Ie(){Re.apply(this,arguments)}function Fe(){Re.apply(this,arguments)}function $e(){Pe.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)}Pe.prototype={defaults:{},set:function(e){return l(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===T(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=T(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=Te},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=l({},e);if(!x(this.options.enable,[this,t]))return this.reset(),void(this.state=Te);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,Pe,{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:Te}}),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&$&&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(ze,Pe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[xe]},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 Te},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(Ie,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(Fe,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&$&&(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($e,Pe,{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 Te},failTimeout:function(){return this._timer=p((function(){this.state=Te}),this.options.interval,this),Te},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:ke,enable:!0,inputTarget:null,inputClass:null,preset:[[Ie,{enable:!1}],[Ne,{enable:!1},["rotate"]],[Fe,{direction:6}],[Le,{direction:6},["swipe"]],[$e],[$e,{event:"doubletap",taps:2},["tap"]],[ze]],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=l({},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:z?he:L?ve:ee))(n,H),this.touchAction=new Ee(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 l(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 Pe)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=T(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(E(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(E(e),(function(e){t?n[e]&&n[e].splice(T(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}},l(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:Te,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:$,DIRECTION_ALL:30,Manager:Qe,Input:W,TouchAction:Ee,TouchInput:he,MouseInput:ee,PointerEventInput:ae,TouchMouseInput:ve,SingleTouchInput:ce,Recognizer:Pe,AttrRecognizer:Re,Tap:$e,Pan:Le,Swipe:Fe,Pinch:Ne,Rotate:Ie,Press:ze,on:j,off:S,each:m,merge:y,extend:b,assign:l,inherit:O,bindFn:k,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,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),l=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 l=t[s],c=-1,u=0;u<this.tooltips.length;u++)this.tooltips[u].create==l.create&&(c=u);if(c<0)o[s]=this.createTooltip(l);else{var d=o[s]=this.tooltipViews[c];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],l=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 c=l.right-l.left,u=l.bottom-l.top,f=this.view.textDirection==o.c.LTR?Math.min(s.left,e.innerWidth-c):Math.max(0,s.left-c),d=!!r.above;!r.strictSide&&(d?s.top-(l.bottom-l.top)<0:s.bottom+(l.bottom-l.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()}}}),c=o.d.baseTheme({$tooltip:{position:"fixed",border:"1px solid #ddd",backgroundColor:"#f5f5f5",zIndex:100}});function u(){return[l,c]}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),l=e.domAtPos(n);o.setEnd(l.node,l.offset),o.setStart(s.node,s.offset);for(var c=o.getClientRects(),u=0;u<c.length;u++){var f=c[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 l=a.value;if(l.is(n))return l.value}}catch(f){o.e(f)}finally{o.f()}if(e&&i.docChanged){var c=i.changes.mapPos(e.pos,-1,s.h.TrackDel);if(c<0)return null;var u=Object.assign(Object.create(null),e);return u.pos=c,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),l=n(18),c={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,k=e.paragraph,x=void 0!==k&&k,w=e.variant,j=void 0===w?"body1":w,S=e.variantMapping,C=void 0===S?c:S,M=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),E=p||(x?"p":C[j]||c[j])||"span";return a.createElement(E,Object(r.a)({className:Object(o.a)(u.root,f,"inherit"!==j&&u[j],"initial"!==h&&u["color".concat(Object(l.a)(h))],O&&u.noWrap,b&&u.gutterBottom,x&&u.paragraph,"inherit"!==s&&u["align".concat(Object(l.a)(s))],"initial"!==m&&u["display".concat(Object(l.a)(m))]),ref:t},M))}));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),l=n(23),c=n(31),u=n(11),f=n(63),d=n(56),h=n(264),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,l=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:l,height:l,top:-l/2+o,left:-l/2+i},O=Object(s.a)(t.child,m&&t.childLeaving,r&&t.childPulsate),k=Object(c.a)(d);return p((function(){if(!u){g(!0);var e=setTimeout(k,h);return function(){clearTimeout(e)}}}),[k,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,l=e.classes,c=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),k=a.useRef(null),x=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:l,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),g.current+=1,b.current=o}),[l]),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,l=t.fakeElement,c=void 0!==l&&l;if("mousedown"===e.type&&y.current)y.current=!1;else{"touchstart"===e.type&&(y.current=!0);var u,f,d,h=c?null:x.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===k.current&&(k.current=function(){w({pulsate:i,rippleX:u,rippleY:f,rippleSize:d,cb:n})},O.current=setTimeout((function(){k.current&&(k.current(),k.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&&k.current)return e.persist(),k.current(),k.current=null,void(O.current=setTimeout((function(){C(e,t)})));k.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)(l.root,c),ref:x},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,k=void 0!==O&&O,x=e.disableRipple,w=void 0!==x&&x,j=e.disableTouchRipple,S=void 0!==j&&j,C=e.focusRipple,M=void 0!==C&&C,E=e.focusVisibleClassName,T=e.onBlur,P=e.onClick,_=e.onFocus,D=e.onFocusVisible,A=e.onKeyDown,R=e.onKeyUp,L=e.onMouseDown,N=e.onMouseLeave,z=e.onMouseUp,I=e.onTouchEnd,F=e.onTouchMove,$=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];k&&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(c.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&&M&&!w&&X.current.pulsate()}),[w,M,G]);var ie=re("start",L),ae=re("stop",B),oe=re("stop",z),se=re("stop",(function(e){G&&e.preventDefault(),N&&N(e)})),le=re("start",$),ce=re("stop",I),ue=re("stop",F),fe=re("stop",(function(e){G&&(te(e),Z(!1)),T&&T(e)}),!1),de=Object(c.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(c.a)((function(e){M&&!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&&!k&&(e.preventDefault(),P&&P(e))})),me=Object(c.a)((function(e){M&&" "===e.key&&X.current&&G&&!e.defaultPrevented&&(pe.current=!1,e.persist(),X.current.stop(e,(function(){X.current.pulsate(e)}))),R&&R(e),P&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ge=y;"button"===ge&&q.href&&(ge="a");var be={};"button"===ge?(be.type=U,be.disabled=k):("a"===ge&&q.href||(be.role="button"),be["aria-disabled"]=k);var ye=Object(l.a)(u,t),Oe=Object(l.a)(ne,Y),ke=Object(l.a)(ye,Oe),xe=a.useState(!1),we=xe[0],je=xe[1];a.useEffect((function(){je(!0)}),[]);var Se=we&&!w&&!k;return a.createElement(ge,Object(r.a)({className:Object(s.a)(v.root,m,G&&[v.focusVisible,E],k&&v.disabled),onBlur:fe,onClick:P,onFocus:de,onKeyDown:ve,onKeyUp:me,onMouseDown:ie,onMouseLeave:se,onMouseUp:oe,onDragLeave:ae,onTouchEnd:ce,onTouchMove:ue,onTouchStart:le,ref:ke,tabIndex:k?-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){"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(56),n(2);var r=n(60),i=(n(12),n(66),{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(69),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 l(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 c=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=l(t),v=l(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{c(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)),l=n(54),c=n(42),u=n(11),f=n(155),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,k=e.name,x=e.onBlur,w=e.onChange,j=e.onFocus,S=e.readOnly,C=e.required,M=e.tabIndex,E=e.type,T=e.value,P=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(l.a)({controlled:u,default:Boolean(v),name:"SwitchBase",state:"checked"}),D=Object(i.a)(_,2),A=D[0],R=D[1],L=Object(c.a)(),N=m;L&&"undefined"===typeof N&&(N=L.disabled);var z="checkbox"===E||"radio"===E;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){x&&x(e),L&&L.onBlur&&L.onBlur(e)},ref:t},P),o.createElement("input",Object(r.a)({autoFocus:n,checked:u,defaultChecked:v,className:h.input,disabled:N,id:z&&b,name:k,onChange:function(e){var t=e.target.checked;R(t),w&&w(e,t)},readOnly:S,ref:O,required:C,tabIndex:M,type:E,value:T},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";n.d(t,"a",(function(){return gt})),n.d(t,"b",(function(){return K}));n(14);var r=n(58),i=n(30),a=n(27),o=n(16),s=n(15),l=n(17),c=n(13),u=n(7),f=n(25),d=n(4),h=n(6),p=n(1),v=new(function(){function e(){Object(d.a)(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return Object(h.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=p.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,l=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(e),l=!0):(o[s]=o[o.length-1],o.pop());l&&(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(f.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}()),m="transparent",g={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=Object(p.wb)(e||m),i=r.valid&&Object(p.wb)(t||m);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},b=function(){function e(t,n,r,i){Object(d.a)(this,e);var a=n[r];i=Object(p.C)([t.to,i,a,t.from]);var o=Object(p.C)([t.from,a,i]);this._active=!0,this._fn=t.fn||g[t.type||typeof o],this._easing=p.yb[t.easing]||p.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(h.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(p.C)([e.to,t,i,e.from]),r._from=Object(p.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,l=n._to;if(n._active=o!==l&&(s||r<i),!n._active)return n._target[a]=l,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,l,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}();p.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 y=Object.keys(p.xb.animation);p.xb.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),p.xb.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),p.xb.describe("animations",{_fallback:"animation"}),p.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 O=function(){function e(t,n){Object(d.a)(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return Object(h.a)(e,[{key:"configure",value:function(e){if(Object(p.Cb)(e)){var t=this._properties;Object.getOwnPropertyNames(e).forEach((function(n){var r=e[n];if(Object(p.Cb)(r)){var i,a={},o=Object(u.a)(y);try{for(o.s();!(i=o.n()).done;){var s=i.value;a[s]=r[s]}}catch(l){o.e(l)}finally{o.f()}(Object(p.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 l=o[n];if("$"!==l.charAt(0))if("options"!==l){var c=t[l],u=a[l],d=r.get(l);if(u){if(d&&u.active()){u.update(d,c,s);continue}u.cancel()}d&&d.duration?(a[l]=u=new b(d,e,l,c),i.push(u)):e[l]=c}else i.push.apply(i,Object(f.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?(v.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 x(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 w(e,t,n,r){var i,a,o,s,l=e.keys,c="single"===r.mode;if(null!==t){for(i=0,a=l.length;i<a;++i){if((o=+l[i])===n){if(r.all)continue;break}s=e.values[o],Object(p.Ab)(s)&&(c||0===t||Object(p.Mb)(t)===Object(p.Mb)(s))&&(t+=s)}return t}}function j(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function S(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function C(e,t,n){var r,i=Object(u.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,l=i.index,c=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[c],m=p[u];(n=(p._stacks||(p._stacks={}))[u]=S(a,f,v))[l]=m,n._top=C(n,s,!0),n._bottom=C(n,s,!1)}}function E(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(u.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 P=function(e){return"reset"===e||"none"===e},_=function(e,t){return t?e:Object.assign({},e)},D=function(){function e(t,n){Object(d.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(h.a)(e,[{key:"initialize",value:function(){var e=this,t=e._cachedMeta;e.configure(),e.linkScales(),t._stacked=j(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(p.Pb)(r.xAxisID,E(t,"x")),o=n.yAxisID=Object(p.Pb)(r.yAxisID,E(t,"y")),s=n.rAxisID=Object(p.Pb)(r.rAxisID,E(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,a,o,s),u=n.vAxisID=i(l,o,a,s);n.xScale=e.getScaleForId(a),n.yScale=e.getScaleForId(o),n.rScale=e.getScaleForId(s),n.iScale=e.getScaleForId(c),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(p.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(p.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(p.Ob)(r,e);var i=e._cachedMeta;T(i),i._parsed=[]}n&&Object.isExtensible(n)&&Object(p.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=j(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,l=o.iScale,c=o._stacked,u=l.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(p.vb)(s[e])?a.parseArrayData(o,s,e,t):Object(p.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}c&&M(a,i)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var i,a,o,s=e.iScale,l=e.vScale,u=s.axis,f=l.axis,d=s.getLabels(),h=s===l,p=new Array(r);for(i=0,a=r;i<a;++i){var v;o=i+n,p[i]=(v={},Object(c.a)(v,u,h||s.parse(d[o],o)),Object(c.a)(v,f,l.parse(t[o],o)),v)}return p}},{key:"parseArrayData",value:function(e,t,n,r){var i,a,o,s,l=e.xScale,c=e.yScale,u=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],u[i]={x:l.parse(s[0],o),y:c.parse(s[1],o)};return u}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,l=e.xScale,c=e.yScale,u=this._parsing,f=u.xAxisKey,d=void 0===f?"x":f,h=u.yAxisKey,v=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:l.parse(Object(p.zb)(s,d),o),y:c.parse(Object(p.zb)(s,v),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 w({keys:x(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=w(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,l=s._parsed,c=s._sorted&&e===s.iScale,u=l.length,f=o._getOtherScale(e),d=t&&s._stacked&&{keys:x(o.chart,!0),values:null},h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},v=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=v.min,g=v.max;function b(){return i=l[n],r=i[e.axis],a=i[f.axis],!Object(p.Ab)(r)||m>a||g<a}for(n=0;n<u&&(b()||(o.updateRangeFromParsed(h,e,i,d),!c));++n);if(c)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(p.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(p.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(p.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=[],l=t._drawStart||0,c=t._drawCount||a.length-l;for(i.dataset&&i.dataset.draw(n,o,l,c),e=l;e<l+c;++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],l=r.enableOptionSharing&&Object(p.Bb)(n);if(s)return _(s,l);var c=r.chart.config,u=c.datasetElementScopeKeys(r._type,e),f=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=c.getOptionScopes(r.getDataset(),u),h=Object.keys(p.xb.elements[e]),v=function(){return r.getContext(n,i)},m=c.resolveNamedOptions(d,h,v,f);return m.$shared&&(m.$shared=l,a[o]=Object.freeze(_(m,l))),m}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this,a=i.chart,o=i._cachedDataOpts,s="animation-".concat(t),l=o[s];if(l)return l;if(!1!==a.options.animation){var c=i.chart.config,u=c.datasetAnimationScopeKeys(i._type,t),f=c.getOptionScopes(i.getDataset(),u);r=c.createResolver(f,i.getContext(e,n,t))}var d=new O(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||P(e)||this.chart._animationsDisabled}},{key:"updateElement",value:function(e,t,n,r){P(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!P(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(u.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],f=o[2];n[s](c,f)}}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,l=function(e){for(e.length+=t,n=e.length-1;n>=s;n--)e[n]=e[n-t]};for(l(o),n=e;n<s;++n)o[n]=new i.dataElementType;i._parsing&&l(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 A(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(p.B)(n.sort((function(e,t){return e-t})))}return e._cache.$bar}(e),o=e._length,s=function(){32767!==r&&-32768!==r&&(Object(p.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 R(e,t,n,r){return Object(p.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),l=o,c=s;Math.abs(o)>Math.abs(s)&&(l=s,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:a,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function L(e,t,n,r){var i,a,o,s,l=e.iScale,c=e.vScale,u=l.getLabels(),f=l===c,d=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[l.axis]=f||l.parse(u[i],i),d.push(R(s,o,c,i));return d}function N(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,l=o.end,c=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[I(f,s,l,c)]=!0,i=u)),a[I(i,s,l,c)]=!0,e.borderSkipped=a}else e.borderSkipped=a}function I(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}D.defaults={},D.prototype.datasetElementType=null,D.prototype.dataElementType=null;var $=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return L(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return L(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,l=e.iScale,c=e.vScale,u=this._parsing,f=u.xAxisKey,d=void 0===f?"x":f,h=u.yAxisKey,v=void 0===h?"y":h,m="x"===l.axis?d:v,g="x"===c.axis?d:v,b=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[l.axis]=l.parse(Object(p.zb)(s,m),i),b.push(R(Object(p.zb)(s,g),o,c,i));return b}},{key:"updateRangeFromParsed",value:function(e,t,r,o){Object(i.a)(Object(a.a)(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,o);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=N(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(i.a)(Object(a.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,l=s.getBasePixel(),c=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 v=t;v<t+n;v++){var m=i.getParsed(v),g=a||Object(p.Db)(m[s.axis])?{base:l,head:l}:i._calculateBarValuePixels(v),b=i._calculateBarIndexPixels(v,u),y=(m._stacks||{})[s.axis],O={horizontal:c,base:g.base,enableBorderRadius:!y||N(m._custom)||o===y._top||o===y._bottom,x:c?g.head:b.center,y:c?b.center:g.head,height:c?b.size:Math.abs(g.size),width:c?Math.abs(g.size):b.size};h&&(O.options=d||i.resolveDataElementOptions(v,e[v].active?"active":r)),z(O,O.options||e[v].options,y,o),i.updateElement(e[v],v,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,l=[];for(n=0;n<s;++n)if((r=a[n]).controller.options.grouped){if("undefined"!==typeof t){var c=r.controller.getParsed(t)[r.controller._cachedMeta.vScale.axis];if(Object(p.Db)(c)||isNaN(c))continue}if((!1===o||-1===l.indexOf(r.stack)||void 0===o&&void 0===r.stack)&&l.push(r.stack),r.index===e)break}return l.length||l.push(void 0),l}},{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||A(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,l=s.base,c=s.minBarLength,u=l||0,f=r.getParsed(e),d=f._custom,h=N(d),v=f[a.axis],m=0,g=o?r.applyStack(a,f,o):v;g!==v&&(m=g-v,g=v),h&&(v=d.barStart,g=d.barEnd-d.barStart,0!==v&&Object(p.Mb)(v)!==Object(p.Mb)(d.barEnd)&&(m=0),m+=v);var b=Object(p.Db)(l)||h?m:l,y=a.getPixelForValue(b);if(n=(t=r.chart.getDataVisibility(e)?a.getPixelForValue(m+g):y)-y,Math.abs(n)<c&&(n=function(e,t,n){return 0!==e?Object(p.Mb)(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,a,u)*c,v===u&&(y-=n/2),t=y+n),y===a.getPixelForValue(u)){var O=Object(p.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,l=Object(p.Pb)(o.maxBarThickness,1/0);if(t.grouped){var c=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,l=n.categoryPercentage;null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o);var c=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:c}}(e,t,o,c):function(e,t,n,r){var i,a,o=n.barThickness;return Object(p.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,c),f=i._getStackIndex(i.index,i._cachedMeta.stack,s?e:void 0);n=u.start+u.chunk*f+u.chunk/2,r=Math.min(l,u.chunk*u.ratio)}else n=a.getPixelForValue(i.getParsed(e)[a.axis],e),r=Math.min(l,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}(D);$.id="bar",$.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},$.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};var B=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Object(i.a)(Object(a.a)(n.prototype),"initialize",this).call(this)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s=e.xScale,l=e.yScale,c=this._parsing,u=c.xAxisKey,f=void 0===u?"x":u,d=c.yAxisKey,h=void 0===d?"y":d,v=[];for(i=n,a=n+r;i<a;++i)o=t[i],v.push({x:s.parse(Object(p.zb)(o,f),i),y:l.parse(Object(p.zb)(o,h),i),_custom:o&&o.r&&+o.r});return v}},{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,l=o.vScale,c=i.resolveDataElementOptions(t,r),u=i.getSharedOptions(c),f=i.includeOptions(r,u),d=s.axis,h=l.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?l.getBasePixel():l.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,c)}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),o=Object(i.a)(Object(a.a)(n.prototype),"resolveDataElementOptions",this).call(this,e,t);o.$shared&&(o=Object.assign({},o,{$shared:!1}));var s=o.radius;return"active"!==t&&(o.radius=0),o.radius+=Object(p.Pb)(r&&r._custom,s),o}}]),n}(D);B.id="bubble",B.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},B.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:function(){return""}}}}};var Q=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(d.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(h.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(p.Nb)(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return Object(p.Nb)(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=p.u,t=-p.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(p.Eb)(t.options.cutout,o),1),l=t._getRingWeight(t.index),c=t._getRotationExtents(),u=c.circumference,f=function(e,t,n){var r=1,i=1,a=0,o=0;if(t<p.u){var s=e,l=s+t,c=Math.cos(s),u=Math.sin(s),f=Math.cos(l),d=Math.sin(l),h=function(e,t,r){return Object(p.Ib)(e,s,l,!0)?1:Math.max(t,t*n,r,r*n)},v=function(e,t,r){return Object(p.Ib)(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n)},m=h(0,c,f),g=h(p.i,u,d),b=v(p.q,c,f),y=v(p.q+p.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}}(c.rotation,u,s),d=f.ratioX,h=f.ratioY,v=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(p.Gb)(t.options.radius,y),k=(O-Math.max(O*s,0))/t._getVisibleDatasetWeightTotal();t.offsetX=v*O,t.offsetY=m*O,r.total=t.calculateTotal(),t.outerRadius=O-k*t._getRingWeightOffset(t.index),t.innerRadius=Math.max(t.outerRadius-k*l,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/p.u)}},{key:"updateElements",value:function(e,t,n,r){var i,a=this,o="reset"===r,s=a.chart,l=s.chartArea,c=s.options.animation,u=(l.left+l.right)/2,f=(l.top+l.bottom)/2,d=o&&c.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],k={x:u+a.offsetX,y:f+a.offsetY,startAngle:b,endAngle:b+y,circumference:y,outerRadius:p,innerRadius:h};g&&(k.options=m||a.resolveDataElementOptions(i,O.active?"active":r)),b+=y,a.updateElement(O,i,k,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)?p.u*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Object(p.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(p.Pb)(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(D);Q.id="doughnut",Q.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"},Q.descriptors={_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}},Q.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(p.vb)(t)?(t=t.slice())[0]+=n:t+=n,t}}}}};var W=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,Object(i.a)(Object(a.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,l=function(e,t,n){var r=t.length,i=0,a=r;if(e._sorted){var o=e.iScale,s=e._parsed,l=o.axis,c=o.getUserBounds(),u=c.min,f=c.max,d=c.minDefined,h=c.maxDefined;d&&(i=Object(p.Kb)(Math.min(Object(p.Qb)(s,o.axis,u).lo,n?r:Object(p.Qb)(t,l,o.getPixelForValue(u)).lo),0,r-1)),a=h?Object(p.Kb)(Math.max(Object(p.Qb)(s,o.axis,f).hi+1,n?0:Object(p.Qb)(t,l,o.getPixelForValue(f)).hi+1),i,r)-i:r-i}return{start:i,count:a}}(n,a,s),c=l.start,u=l.count;t._drawStart=c,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)&&(c=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,c,u,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this,a="reset"===r,o=i._cachedMeta,s=o.iScale,l=o.vScale,c=o._stacked,u=i.resolveDataElementOptions(t,r),f=i.getSharedOptions(u),d=i.includeOptions(r,f),h=s.axis,v=l.axis,m=i.options.spanGaps,g=Object(p.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 k=e[O],x=i.getParsed(O),w=b?k:{},j=Object(p.Db)(x[v]),S=w[h]=s.getPixelForValue(x[h],O),C=w[v]=a||j?l.getBasePixel():l.getPixelForValue(c?i.applyStack(l,x,c):x[v],O);w.skip=isNaN(S)||isNaN(C)||j,w.stop=O>0&&x[h]-y[h]>g,w.parsed=x,d&&(w.options=f||i.resolveDataElementOptions(O,k.active?"active":r)),b||i.updateElement(k,O,w,r),y=x}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(i.a)(Object(a.a)(n.prototype),"draw",this).call(this)}}]),n}(D);W.id="line",W.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},W.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};var H=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(d.a)(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return Object(h.a)(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=Object(p.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,l=a.getDataset(),c=s.options.animation,u=a._cachedMeta.rScale,f=u.xCenter,d=u.yCenter,h=u.getIndexAngle(0)-.5*p.q,v=h,m=360/a.countVisibleElements();for(i=0;i<t;++i)v+=a._computeAngle(i,r,m);for(i=t;i<t+n;i++){var g=e[i],b=v,y=v+a._computeAngle(i,r,m),O=s.getDataVisibility(i)?u.getDistanceFromCenterForValue(l.data[i]):0;v=y,o&&(c.animateScale&&(O=0),c.animateRotate&&(b=y=h));var k={x:f,y:d,innerRadius:0,outerRadius:O,startAngle:b,endAngle:y,options:a.resolveDataElementOptions(i,g.active?"active":r)};a.updateElement(g,i,k,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(p.Nb)(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(D);H.id="polarArea",H.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},H.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 V=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return n}(Q);V.id="pie",V.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};var U=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.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,l=t;l<t+n;l++){var c=e[l],u=i.resolveDataElementOptions(l,c.active?"active":r),f=o.getPointPositionForValue(l,a.data[l]),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(c,l,p,r)}}}]),n}(D);U.id="radar",U.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},U.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};var q=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return n}(W);q.id="scatter",q.defaults={showLine:!1,fill:!1},q.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"}}};function Y(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var X=function(){function e(t){Object(d.a)(this,e),this.options=t||{}}return Object(h.a)(e,[{key:"formats",value:function(){return Y()}},{key:"parse",value:function(e,t){return Y()}},{key:"format",value:function(e,t){return Y()}},{key:"add",value:function(e,t,n){return Y()}},{key:"diff",value:function(e,t,n){return Y()}},{key:"startOf",value:function(e,t,n){return Y()}},{key:"endOf",value:function(e,t){return Y()}}]),e}();X.override=function(e){Object.assign(X.prototype,e)};var K={_date:X};function G(e,t){return"native"in e?{x:e.x,y:e.y}:Object(p.Rb)(e,t)}function Z(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 l=s._reversePixels?p.Tb:p.Qb;if(!r)return l(a,t,n);if(i._sharedOptions){var c=a[0],u="function"===typeof c.getRange&&c.getRange(t);if(u){var f=l(a,t,n-u),d=l(a,t,n+u);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:a.length-1}}function J(e,t,n,r,i){for(var a=e.getSortedVisibleDatasetMetas(),o=n[t],s=0,l=a.length;s<l;++s)for(var c=a[s],u=c.index,f=c.data,d=Z(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 ee(e,t,n,r){var i=[];if(!Object(p.Sb)(t,e.chartArea,e._minPadding))return i;return J(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 te(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(p.Sb)(t,e.chartArea,e._minPadding))return s;return J(e,n,t,(function(n,l,c){if(!r||n.inRange(t.x,t.y,i)){var u=n.getCenterPoint(i);if(Object(p.Sb)(u,e.chartArea,e._minPadding)||n.inRange(t.x,t.y,i)){var f=a(t,u);f<o?(s=[{element:n,datasetIndex:l,index:c}],o=f):f===o&&s.push({element:n,datasetIndex:l,index:c})}}})),s}function ne(e,t,n,r){var i=G(t,e),a=[],o=n.axis,s="x"===o?"inXRange":"inYRange",l=!1;return function(e,t){for(var n,r,i,a=e.getSortedVisibleDatasetMetas(),o=0,s=a.length;o<s;++o){var l=a[o];n=l.index;for(var c=0,u=(r=l.data).length;c<u;++c)(i=r[c]).skip||t(i,n,c)}}(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)&&(l=!0)})),n.intersect&&!l?[]:a}var re={modes:{index:function(e,t,n,r){var i=G(t,e),a=n.axis||"x",o=n.intersect?ee(e,i,a,r):te(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=G(t,e),a=n.axis||"xy",o=n.intersect?ee(e,i,a,r):te(e,i,a,!1,r);if(o.length>0){var s=o[0].datasetIndex,l=e.getDatasetMeta(s).data;o=[];for(var c=0;c<l.length;++c)o.push({element:l[c],datasetIndex:s,index:c})}return o},point:function(e,t,n,r){return ee(e,G(t,e),n.axis||"xy",r)},nearest:function(e,t,n,r){return te(e,G(t,e),n.axis||"xy",n.intersect,r)},x:function(e,t,n,r){return n.axis="x",ne(e,t,n,r)},y:function(e,t,n,r){return n.axis="y",ne(e,t,n,r)}}},ie=["left","top","right","bottom"];function ae(e,t){return e.filter((function(e){return e.pos===t}))}function oe(e,t){return e.filter((function(e){return-1===ie.indexOf(e.pos)&&e.box.axis===t}))}function se(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 le(e,t){var n,r,i,a=function(e){var t,n={},r=Object(u.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&&ie.includes(o)){var l=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}}}catch(c){r.e(c)}finally{r.f()}return n}(e),o=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var l=(i=e[n]).box.fullSize,c=a[i.stack],f=c&&i.stackWeight/c.weight;i.horizontal?(i.width=f?f*o:l&&t.availableWidth,i.height=s):(i.width=o,i.height=f?f*s:l&&t.availableHeight)}return a}function ce(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function ue(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 fe(e,t,n,r){var i=n.pos,a=n.box,o=e.maxPadding;if(!Object(p.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&&ue(o,a.getPadding());var l=Math.max(0,t.outerWidth-ce(o,e,"left","right")),c=Math.max(0,t.outerHeight-ce(o,e,"top","bottom")),u=l!==e.w,f=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:f}:{same:f,other:u}}function de(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 he(e,t,n,r){var i,a,o,s,l,c,u=[];for(i=0,a=e.length,l=0;i<a;++i){(s=(o=e[i]).box).update(o.width||t.w,o.height||t.h,de(o.horizontal,t));var f=fe(t,n,o,r),d=f.same,h=f.other;l|=d&&u.length,c=c||h,s.fullSize||u.push(o)}return l&&he(u,t,n,r)||c}function pe(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 ve(e,t,n,r){var i,a=n.padding,o=t.x,s=t.y,l=Object(u.a)(e);try{for(l.s();!(i=l.n()).done;){var c=i.value,f=c.box,d=r[c.stack]||{count:1,placed:0,weight:1},h=c.stackWeight/d.weight||1;if(c.horizontal){var v=t.w*h,m=d.size||f.height;Object(p.Bb)(d.start)&&(s=d.start),f.fullSize?pe(f,a.left,s,n.outerWidth-a.right-a.left,m):pe(f,t.left+d.placed,s,v,m),d.start=s,d.placed+=v,s=f.bottom}else{var g=t.h*h,b=d.size||f.width;Object(p.Bb)(d.start)&&(o=d.start),f.fullSize?pe(f,o,a.top,b,n.outerHeight-a.bottom-a.top):pe(f,o,t.top+d.placed,b,g),d.start=o,d.placed+=g,o=f.right}}}catch(y){l.e(y)}finally{l.f()}t.x=o,t.y=s}p.xb.set("layout",{padding:{top:0,right:0,bottom:0,left:0}});var me=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)},ge=function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},be=function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},ye=function(e,t,n,r){if(e){var i=Object(p.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 l=r=e[t];i=l.position;var c=l.options;a=c.stack;var u=c.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=se(t.filter((function(e){return e.box.fullSize})),!0),r=se(ae(t,"left"),!0),i=se(ae(t,"right")),a=se(ae(t,"top"),!0),o=se(ae(t,"bottom")),s=oe(t,"x"),l=oe(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:ae(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}(e.boxes),l=s.vertical,c=s.horizontal;Object(p.c)(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var u=l.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);ue(d,Object(p.b)(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),v=le(l.concat(c),f);he(s.fullSize,h,f,v),he(l,h,f,v),he(c,h,f,v)&&he(l,h,f,v),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),ve(s.leftAndTop,h,f,v),h.x+=h.w,h.y+=h.h,ve(s.rightAndBottom,h,f,v),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(p.c)(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h)}))}},Oe=function(){function e(){Object(d.a)(this,e)}return Object(h.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}(),ke=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}}]),n}(Oe),xe={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},we=function(e){return null===e||""===e};var je=!!p.h&&{passive:!0};function Se(e,t,n){e.canvas.removeEventListener(t,n,je)}function Ce(e,t,n){var r=e.canvas,i=r&&Object(p.e)(r)||r,a=new MutationObserver((function(e){var t=Object(p.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 Me(e,t,n){var r=e.canvas,i=r&&Object(p.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 Ee=new Map,Te=0;function Pe(){var e=window.devicePixelRatio;e!==Te&&(Te=e,Ee.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function _e(e,t,n){var r=e.canvas,i=r&&Object(p.e)(r);if(i){var a=Object(p.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){Ee.size||window.addEventListener("resize",Pe),Ee.set(e,t)}(e,a),o}}function De(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){Ee.delete(e),Ee.size||window.removeEventListener("resize",Pe)}(e)}function Ae(e,t,n){var r=e.canvas,i=Object(p.g)((function(t){null!==e.ctx&&n(function(e,t){var n=xe[e.type]||e.type,r=Object(p.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,je)}(r,t,i),i}var Re=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.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",we(i)){var a=Object(p.f)(e,"width");void 0!==a&&(e.width=a)}if(we(r))if(""===e.style.height)e.height=e.width/(t||2);else{var o=Object(p.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(p.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:Ce,detach:Me,resize:_e}[t]||Ae;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:De,detach:De,resize:De}[t]||Se)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return Object(p.d)(e,t,n,r)}},{key:"isAttached",value:function(e){var t=Object(p.e)(e);return!(!t||!t.isConnected)}}]),n}(Oe);var Le=function(){function e(){Object(d.a)(this,e),this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}return Object(h.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(p.Jb)(this.x)&&Object(p.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}();Le.defaults={},Le.defaultRoutes=void 0;var Ne={values:function(e){return Object(p.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(p.k)(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(s),20),0),c={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),Object(p.Hb)(e,i,c)},logarithmic:function(e,t,n){if(0===e)return"0";var r=e/Math.pow(10,Math.floor(Object(p.k)(e)));return 1===r||2===r||5===r?Ne.numeric.call(this,e,t,n):""}};var ze={formatters:Ne};function Ie(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],l=[];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,l,i,a/r),l;var c=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(p.l)(r),o=0,s=a.length-1;o<s;o++){var l=a[o];if(l>i)return l}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(Fe(t,l,c,Object(p.Db)(d)?0:o-d,o),u=0,f=a-1;u<f;u++)Fe(t,l,c,i[u],i[u+1]);return Fe(t,l,c,s,Object(p.Db)(d)?t.length:s+d),l}return Fe(t,l,c),l}function Fe(e,t,n,r,i){var a,o,s,l=Object(p.Pb)(r,0),c=Math.min(Object(p.Pb)(i,e.length),e.length),u=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=l;s<0;)u++,s=Math.round(l+u*n);for(o=Math.max(l,0);o<c;o++)o===s&&(t.push(e[o]),u++,s=Math.round(l+u*n))}p.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:ze.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),p.xb.route("scale.ticks","color","","color"),p.xb.route("scale.grid","color","","borderColor"),p.xb.route("scale.grid","borderColor","","borderColor"),p.xb.route("scale.title","color","","color"),p.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}}),p.xb.describe("scales",{_fallback:"scale"}),p.xb.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}});var $e=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n};function Be(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 Qe(e,t,n){var r,i=e.ticks.length,a=Math.min(t,i-1),o=e._startPixel,s=e._endPixel,l=1e-6,c=e.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(c-o,s-c):0===t?(e.getPixelForTick(1)-c)/2:(c-e.getPixelForTick(a-1))/2,(c+=a<t?r:-r)<o-l||c>s+l)))return c}function We(e){return e.drawTicks?e.tickLength:0}function He(e,t){if(!e.display)return 0;var n=Object(p.y)(e.font,t),r=Object(p.b)(e.padding);return(Object(p.vb)(e.text)?e.text.length:1)*n.lineHeight+r.height}function Ve(e,t,n){var r=Object(p.z)(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var Ue=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.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(h.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(p.m)(e,Number.POSITIVE_INFINITY),t=Object(p.m)(t,Number.NEGATIVE_INFINITY),n=Object(p.m)(n,Number.POSITIVE_INFINITY),r=Object(p.m)(r,Number.NEGATIVE_INFINITY),{min:Object(p.m)(e,n),max:Object(p.m)(t,r),minDefined:Object(p.Ab)(e),maxDefined:Object(p.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 l=n.getMatchingVisibleMetas(),c=0,u=l.length;c<u;++c)t=l[c].controller.getMinMax(n,e),o||(i=Math.min(i,t.min)),s||(a=Math.max(a,t.max));return{min:Object(p.m)(i,Object(p.m)(a,i)),max:Object(p.m)(a,Object(p.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(p.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(p.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?Be(r.ticks,a):r.ticks),r.configure(),r.beforeCalculateLabelRotation(),r.calculateLabelRotation(),r.afterCalculateLabelRotation(),i.display&&(i.autoSkip||"auto"===i.source)&&(r.ticks=Ie(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(p.n)(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){Object(p.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(p.n)(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){var t=this;t.chart.notifyPlugins(e,t.getContext()),Object(p.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(p.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(p.n)(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){Object(p.n)(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){Object(p.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,l=a.maxRotation,c=s;if(!r._isVisible()||!a.display||s>=l||o<=1||!r.isHorizontal())r.labelRotation=s;else{var u=r._getLabelSizes(),f=u.widest.width,d=u.highest.height,h=Object(p.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-We(i.grid)-a.padding-He(i.title,r.chart.options.font),n=Math.sqrt(f*f+d*d),c=Object(p.p)(Math.min(Math.asin(Object(p.Kb)((u.highest.height+6)/e,-1,1)),Math.asin(Object(p.Kb)(t/n,-1,1))-Math.asin(Object(p.Kb)(d/n,-1,1)))),c=Math.max(s,Math.min(l,c))),r.labelRotation=c}}},{key:"afterCalculateLabelRotation",value:function(){Object(p.n)(this.options.afterCalculateLabelRotation,[this])}},{key:"beforeFit",value:function(){Object(p.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(),l=e.isHorizontal();if(s){var c=He(a,n.options.font);if(l?(t.width=e.maxWidth,t.height=We(o)+c):(t.height=e.maxHeight,t.width=We(o)+c),i.display&&e.ticks.length){var u=e._getLabelSizes(),f=u.first,d=u.last,h=u.widest,v=u.highest,m=2*i.padding,g=Object(p.Nb)(e.labelRotation),b=Math.cos(g),y=Math.sin(g);if(l){var O=i.mirror?0:y*h.width+b*v.height;t.height=Math.min(e.maxHeight,t.height+O+m)}else{var k=i.mirror?0:b*h.width+y*v.height;t.width=Math.min(e.maxWidth,t.width+k+m)}e._calculatePadding(f,d,y,b)}}e._handleMargins(),l?(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,l=o.padding,c=a.position,u=0!==i.labelRotation,f="top"!==c&&"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+l)*i.width/(i.width-d),0),i.paddingRight=Math.max((v-h+l)*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+l,i.paddingBottom=g+l}}},{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(p.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(p.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=Be(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,l,c,u,f,d,h=this.ctx,v=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,l=v[s]=v[s]||{data:{},gc:[]},c=o.lineHeight,u=f=0,Object(p.Db)(a)||Object(p.vb)(a)){if(Object(p.vb)(a))for(r=0,i=a.length;r<i;++r)d=a[r],Object(p.Db)(d)||Object(p.vb)(d)||(u=Object(p.r)(h,l.data,l.gc,u,d),f+=c)}else u=Object(p.r)(h,l.data,l.gc,u,a),f=c;m.push(u),g.push(f),b=Math.max(u,b),y=Math.max(f,y)}!function(e,t){Object(p.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)}}))}(v,t);var O=m.indexOf(b),k=g.indexOf(y),x=function(e){return{width:m[e]||0,height:g[e]||0}};return{first:x(0),last:x(t-1),widest:x(O),highest:x(k),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(p.s)(t._alignToPixels?Object(p.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(p.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,l=a?a.highest.height+o:0;return e.isHorizontal()?l*r>s*i?s/r:l/i:l*i<s*r?l/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,l,c,u,f,d,h=this,v=h.axis,m=h.chart,g=h.options,b=g.grid,y=g.position,O=b.offset,k=h.isHorizontal(),x=h.ticks.length+(O?1:0),w=We(b),j=[],S=b.setContext(h.getContext()),C=S.drawBorder?S.borderWidth:0,M=C/2,E=function(e){return Object(p.t)(m,e,C)};if("top"===y)t=E(h.bottom),o=h.bottom-w,l=t-M,u=E(e.top)+M,d=e.bottom;else if("bottom"===y)t=E(h.top),u=e.top,d=E(e.bottom)-M,o=t+M,l=h.top+w;else if("left"===y)t=E(h.right),a=h.right-w,s=t-M,c=E(e.left)+M,f=e.right;else if("right"===y)t=E(h.left),c=e.left,f=E(e.right)-M,a=t+M,s=h.left+w;else if("x"===v){if("center"===y)t=E((e.top+e.bottom)/2+.5);else if(Object(p.Cb)(y)){var T=Object.keys(y)[0],P=y[T];t=E(h.chart.scales[T].getPixelForValue(P))}u=e.top,d=e.bottom,l=(o=t+M)+w}else if("y"===v){if("center"===y)t=E((e.left+e.right)/2);else if(Object(p.Cb)(y)){var _=Object.keys(y)[0],D=y[_];t=E(h.chart.scales[_].getPixelForValue(D))}s=(a=t-M)-w,c=e.left,f=e.right}var A=Object(p.Pb)(g.ticks.maxTicksLimit,x),R=Math.max(1,Math.ceil(x/A));for(n=0;n<x;n+=R){var L=b.setContext(h.getContext(n)),N=L.lineWidth,z=L.color,I=b.borderDash||[],F=L.borderDashOffset,$=L.tickWidth,B=L.tickColor,Q=L.tickBorderDash||[],W=L.tickBorderDashOffset;void 0!==(r=Qe(h,n,O))&&(i=Object(p.t)(m,r,N),k?a=s=c=f=i:o=l=u=d=i,j.push({tx1:a,ty1:o,tx2:s,ty2:l,x1:c,y1:u,x2:f,y2:d,width:N,color:z,borderDash:I,borderDashOffset:F,tickWidth:$,tickColor:B,tickBorderDash:Q,tickBorderDashOffset:W}))}return h._ticksLength=x,h._borderValue=t,j}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,a,o,s,l,c,u,f,d=this,h=d.axis,v=d.options,m=v.position,g=v.ticks,b=d.isHorizontal(),y=d.ticks,O=g.align,k=g.crossAlign,x=g.padding,w=g.mirror,j=We(v.grid),S=j+x,C=w?-x:S,M=-Object(p.Nb)(d.labelRotation),E=[],T="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 P=d._getYAxisLabelAlignment(j);o=P.textAlign,i=P.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(p.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(p.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?T="top":"end"===O&&(T="bottom"));var N=d._getLabelSizes();for(t=0,n=y.length;t<n;++t){r=y[t].label;var z=g.setContext(d.getContext(t));s=d.getPixelForTick(t)+g.labelOffset,c=(l=d._resolveTickFontOptions(t)).lineHeight;var I=(u=Object(p.vb)(r)?r.length:1)/2,F=z.color,$=z.textStrokeColor,B=z.textStrokeWidth;b?(i=s,f="top"===m?"near"===k||0!==M?-u*c+c/2:"center"===k?-N.highest.height/2-I*c+c:-N.highest.height+c/2:"near"===k||0!==M?c/2:"center"===k?N.highest.height/2-I*c:N.highest.height-u*c,w&&(f*=-1)):(a=s,f=(1-u)*c/2);var Q=void 0;if(z.showLabelBackdrop){var W=Object(p.b)(z.backdropPadding),H=N.heights[t],V=N.widths[t],U=a+f-W.top,q=i-W.left;switch(T){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:z.backdropColor}}E.push({rotation:M,label:r,font:l,color:F,strokeColor:$,strokeWidth:B,textOffset:f,textAlign:o,textBaseline:T,translation:[i,a],backdrop:Q})}return E}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-Object(p.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,l=o.mirror,c=o.padding,u=e+c,f=r._getLabelSizes().widest.width;return"left"===a?l?(n=r.right+c,"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?l?(n=r.left+c,"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 l=o[t];i.drawOnChartArea&&s({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),i.drawTicks&&s({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.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,l,c,u=r.setContext(e.getContext(0)).lineWidth,f=e._borderValue;e.isHorizontal()?(o=Object(p.t)(t,e.left,a)-a/2,s=Object(p.t)(t,e.right,u)+u/2,l=c=f):(l=Object(p.t)(t,e.top,a)-a/2,c=Object(p.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,l),n.lineTo(s,c),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(p.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],l=s.font,c=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(p.w)(n,c,0,u,l,s)}r&&Object(p.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(p.y)(r.font),o=Object(p.b)(r.padding),s=r.align,l=a.lineHeight/2;"bottom"===n||"center"===n||Object(p.Cb)(n)?(l+=o.bottom,Object(p.vb)(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;var c=function(e,t,n,r){var i,a,o,s=e.top,l=e.left,c=e.bottom,u=e.right,f=e.chart,d=f.chartArea,h=f.scales,v=0,m=c-s,g=u-l;if(e.isHorizontal()){if(a=Object(p.A)(r,l,u),Object(p.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:$e(e,n,t);i=u-l}else{if(Object(p.Cb)(n)){var O=Object.keys(n)[0],k=n[O];a=h[O].getPixelForValue(k)-g+t}else a="center"===n?(d.left+d.right)/2-g+t:$e(e,n,t);o=Object(p.A)(r,c,s),v="left"===n?-p.i:p.i}return{titleX:a,titleY:o,maxWidth:i,rotation:v}}(this,l,n,s),u=c.titleX,f=c.titleY,d=c.maxWidth,h=c.rotation;Object(p.w)(e,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:Ve(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(p.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(p.y)(t.font)}},{key:"_maxDigits",value:function(){var e=this,t=e._resolveTickFontOptions(0).lineHeight;return(e.isHorizontal()?e.width:e.height)/t}}]),n}(Le),qe=function(){function e(t,n,r){Object(d.a)(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return Object(h.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(p.D)(Object.create(null),[n?p.xb.get(n):{},p.xb.get(t),e.defaults]);p.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(),l=o.join(".");p.xb.route(a,i,l,s)}))}(t,e.defaultRoutes);e.descriptors&&p.xb.describe(t,e.descriptors)}(e,o,t),n.override&&p.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 p.xb[r]&&(delete p.xb[r][n],this.override&&delete p.a[n])}}]),e}();var Ye=new(function(){function e(){Object(d.a)(this,e),this.controllers=new qe(D,"datasets",!0),this.elements=new qe(Le,"elements"),this.plugins=new qe(Object,"plugins"),this.scales=new qe(Ue,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return Object(h.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(f.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(p.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(p.E)(e);Object(p.n)(n["before"+r],[],n),t[e](n),Object(p.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}()),Xe=function(){function e(){Object(d.a)(this,e),this._init=[]}return Object(h.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(u.a)(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin,l=s[n],c=[t,r,o.options];if(!1===Object(p.n)(l,c,s)&&r.cancelable)return!1}}catch(f){a.e(f)}finally{a.f()}return!0}},{key:"invalidate",value:function(){Object(p.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(p.Pb)(n.options&&n.options.plugins,{}),i=function(e){for(var t=[],n=Object.keys(Ye.plugins.items),r=0;r<n.length;r++)t.push(Ye.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],l=Ke(n[s.id],r);null!==l&&i.push({plugin:s,options:Ge(e.config,s,l,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 Ke(e,t){return t||!1!==e?!0===e?{}:e:null}function Ge(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 Ze(e,t){var n=p.xb.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Je(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 et(e){var t=e.options||(e.options={});t.plugins=Object(p.Pb)(t.plugins,{}),t.scales=function(e,t){var n=p.a[e.type]||{scales:{}},r=t.scales||{},i=Ze(e.type,t),a=Object.create(null),o=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e],s=Je(e,t),l=function(e,t){return e===t?"_index_":"_value_"}(s,i),c=n.scales||{};a[s]=a[s]||e,o[e]=Object(p.K)(Object.create(null),[{axis:s},t,c[s],c[l]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,s=n.indexAxis||Ze(i,t),l=(p.a[i]||{}).scales||{};Object.keys(l).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(p.K)(o[i],[{axis:t},r[i],l[e]])}))})),Object.keys(o).forEach((function(e){var t=o[e];Object(p.K)(t,[p.xb.scales[t.type],p.xb.scale])})),o}(e,t)}function tt(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var nt=new Map,rt=new Set;function it(e,t){var n=nt.get(e);return n||(n=t(),nt.set(e,n),rt.add(n)),n}var at=function(e,t,n){var r=Object(p.zb)(t,n);void 0!==r&&e.add(r)},ot=function(){function e(t){Object(d.a)(this,e),this._config=function(e){return(e=e||{}).data=tt(e.data),et(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return Object(h.a)(e,[{key:"update",value:function(){var e=this._config;this.clearCache(),et(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return it(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return it("".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 it("".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 it("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat(Object(f.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 at(s,e,t)}))),t.forEach((function(e){return at(s,r,e)})),t.forEach((function(e){return at(s,p.a[i]||{},e)})),t.forEach((function(e){return at(s,p.xb,e)})),t.forEach((function(e){return at(s,p.F,e)}))}));var l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),rt.has(t)&&a.set(t,l),l}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,p.a[t]||{},p.xb.datasets[t]||{},{type:t},p.xb,p.F]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=st(this._resolverCache,e,r),o=a.resolver,s=a.subPrefixes,l=o;if(lt(o,t)){i.$shared=!1,n=Object(p.G)(n)?n():n;var c=this.createResolver(e,n,s);l=Object(p.H)(o,n,c)}var f,d=Object(u.a)(t);try{for(d.s();!(f=d.n()).done;){var h=f.value;i[h]=l[h]}}catch(v){d.e(v)}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=st(this._resolverCache,e,n),a=i.resolver;return Object(p.Cb)(t)?Object(p.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=tt(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 st(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(p.I)(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,a));return a}function lt(e,t){var n,r=Object(p.J)(e),i=r.isScriptable,a=r.isIndexable,o=Object(u.a)(t);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(i(s)&&Object(p.G)(e[s])||a(s)&&Object(p.vb)(e[s]))return!0}}catch(l){o.e(l)}finally{o.f()}return!1}var ct=["top","bottom","left","right","chartArea"];function ut(e,t){return"top"===e||"bottom"===e||-1===ct.indexOf(e)&&"x"===t}function ft(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function dt(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Object(p.n)(n&&n.onComplete,[e],t)}function ht(e){var t=e.chart,n=t.options.animation;Object(p.n)(n&&n.onProgress,[e],t)}function pt(e){return Object(p.j)()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var vt={},mt=function(e){var t=pt(e);return Object.values(vt).filter((function(e){return e.canvas===t})).pop()},gt=function(){function e(t,n){var r=this;Object(d.a)(this,e);var i=this,a=this.config=new ot(n),o=pt(t),s=mt(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 l=a.createResolver(a.chartOptionScopes(),i.getContext());this.platform=new(a.platform||function(e){return!Object(p.j)()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?ke:Re}(o));var c=i.platform.acquireContext(o,l.aspectRatio),u=c&&c.canvas,f=u&&u.height,h=u&&u.width;this.id=Object(p.L)(),this.ctx=c,this.canvas=u,this.width=h,this.height=f,this._options=l,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 Xe,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Object(p.M)((function(){return r.update("resize")}),l.resizeDelay||0),vt[i.id]=i,c&&u?(v.listen(i,"complete",dt),v.listen(i,"progress",ht),i._initialize(),i.attached&&i.update()):console.error("Failed to create chart: can't acquire context from the given item")}return Object(h.a)(e,[{key:"_initialize",value:function(){var e=this;return e.notifyPlugins("beforeInit"),e.options.responsive?e.resize():Object(p.V)(e,e.options.devicePixelRatio),e.bindEvents(),e.notifyPlugins("afterInit"),e}},{key:"clear",value:function(){return Object(p.W)(this.canvas,this.ctx),this}},{key:"stop",value:function(){return v.stop(this),this}},{key:"resize",value:function(e,t){v.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(p.V)(n,s,!0)&&(n.notifyPlugins("resize",{size:o}),Object(p.n)(r.onResize,[n,o],n),n.attached&&n._doResize()&&n.render())}},{key:"ensureScalesHaveIDs",value:function(){var e=this.options.scales||{};Object(p.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=Je(e,t),i="r"===r,a="x"===r;return{options:t,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),Object(p.c)(a,(function(n){var a=n.options,o=a.id,s=Je(o,a),l=Object(p.Pb)(a.type,n.dtype);void 0!==a.position&&ut(a.position,s)===ut(n.dposition)||(a.position=n.dposition),i[o]=!0;var c=null;o in r&&r[o].type===l?c=r[o]:(c=new(Ye.getScale(l))({id:o,type:l,ctx:e.ctx,chart:e}),r[c.id]=c);c.init(a,t)})),Object(p.c)(i,(function(e,t){e||delete r[t]})),Object(p.c)(r,(function(t){be(e,t,t.options),me(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(ft("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||Ze(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 l=Ye.getController(s),c=p.xb.datasets[s],u=c.datasetElementType,f=c.dataElementType;Object.assign(l.prototype,{dataElementType:Ye.getElement(f),datasetElementType:u&&Ye.getElement(u)}),o.controller=new l(n,e),r.push(o.controller)}}return n._updateMetasets(),r}},{key:"_resetElements",value:function(){var e=this;Object(p.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(p.c)(t.scales,(function(e){ge(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(p.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,l=0,c=t.data.datasets.length;l<c;l++){var u=t.getDatasetMeta(l).controller,f=!r&&-1===o.indexOf(u);u.buildOrUpdateElements(f),s=Math.max(+u.getMaxOverflow(),s)}t._minPadding=s,t._updateLayout(s),r||Object(p.c)(o,(function(e){e.reset()})),t._updateDatasets(e),t.notifyPlugins("afterUpdate",{mode:e}),t._layers.sort(ft("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})){ye(t,t.width,t.height,e);var n=t.chartArea,r=n.width<=0||n.height<=0;t._layers=[],Object(p.c)(t.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,Object(f.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})&&(v.has(e)?e.attached&&!v.running(e)&&v.start(e):(e.draw(),dt({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(p.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(p.x)(n),o.cancelable=!1,t.notifyPlugins("afterDatasetDraw",o))}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=re.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(p.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(),v.remove(n),e=0,t=n.data.datasets.length;e<t;++e)n._destroyDatasetMeta(e);n.config.clearCache(),r&&(n.unbindEvents(),Object(p.W)(r,i),n.platform.releaseContext(i),n.canvas=null,n.ctx=null),n.notifyPlugins("destroy"),delete vt[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(p.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(p.c)(e._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),e._listeners={},Object(p.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(p.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,l=t,c=[],u=null;return"mouseout"!==e.type&&(c=r.getElementsAtEventForMode(e,s.mode,s,l),u="click"===e.type?r._lastEvent:e),r._lastEvent=null,Object(p.Sb)(e,r.chartArea,r._minPadding)&&(Object(p.n)(o.onHover,[e,c,r],r),"mouseup"!==e.type&&"click"!==e.type&&"contextmenu"!==e.type||Object(p.n)(o.onClick,[e,c,r],r)),((n=!Object(p.Y)(c,a))||t)&&(r._active=c,r._updateHoverStyles(c,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(p.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}(),bt=function(){return Object(p.c)(gt.instances,(function(e){return e._plugins.invalidate()}))},yt=!0;function Ot(e,t,n){var r=t.startAngle,i=t.pixelMargin,a=t.x,o=t.y,s=t.outerRadius,l=t.innerRadius,c=i/s;e.beginPath(),e.arc(a,o,s,r-c,n+c),l>i?(c=i/l,e.arc(a,o,l,n+c,r-c,!0)):e.arc(a,o,i,n+p.i,r-p.i),e.closePath(),e.clip()}function kt(e,t,n,r){var i,a=(i=e.options.borderRadius,Object(p.ab)(i,["outerStart","outerEnd","innerStart","innerEnd"])),o=(n-t)/2,s=Math.min(o,r*t/2),l=function(e){var t=(n-Math.min(o,e))*r/2;return Object(p.Kb)(e,0,Math.min(o,t))};return{outerStart:l(a.outerStart),outerEnd:l(a.outerEnd),innerStart:Object(p.Kb)(a.innerStart,0,s),innerEnd:Object(p.Kb)(a.innerEnd,0,s)}}function xt(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function wt(e,t,n,r,i){var a=t.x,o=t.y,s=t.startAngle,l=t.pixelMargin,c=t.innerRadius,u=Math.max(t.outerRadius+r+n-l,0),f=c>0?c+r+n+l:0,d=0,h=i-s;if(r){var v=((c>0?c-r:0)+(u>0?u-r:0))/2;d=(h-(0!==v?h*v/(v+r):h))/2}var m=(h-Math.max(.001,h*u-n/p.q)/u)/2,g=s+m+d,b=i-m-d,y=kt(t,f,u,b-g),O=y.outerStart,k=y.outerEnd,x=y.innerStart,w=y.innerEnd,j=u-O,S=u-k,C=g+O/j,M=b-k/S,E=f+x,T=f+w,P=g+x/E,_=b-w/T;if(e.beginPath(),e.arc(a,o,u,C,M),k>0){var D=xt(S,M,a,o);e.arc(D.x,D.y,k,M,b+p.i)}var A=xt(T,b,a,o);if(e.lineTo(A.x,A.y),w>0){var R=xt(T,_,a,o);e.arc(R.x,R.y,w,b+p.i,_+Math.PI)}if(e.arc(a,o,f,b-w/f,g+x/f,!0),x>0){var L=xt(E,P,a,o);e.arc(L.x,L.y,x,P+Math.PI,g-p.i)}var N=xt(j,g,a,o);if(e.lineTo(N.x,N.y),O>0){var z=xt(j,C,a,o);e.arc(z.x,z.y,O,g-p.i,C)}e.closePath()}function jt(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,l=t.fullCircles,c=Math.max(t.outerRadius-s,0),u=t.innerRadius+s;for(n&&Ot(e,t,o+p.u),e.beginPath(),e.arc(i,a,u,o+p.u,o,!0),r=0;r<l;++r)e.stroke();for(e.beginPath(),e.arc(i,a,c,o,o+p.u),r=0;r<l;++r)e.stroke()}(e,t,o),o&&Ot(e,t,i),wt(e,t,n,r,i),e.stroke())}Object.defineProperties(gt,{defaults:{enumerable:yt,value:p.xb},instances:{enumerable:yt,value:vt},overrides:{enumerable:yt,value:p.a},registry:{enumerable:yt,value:Ye},version:{enumerable:yt,value:"3.5.1"},getChart:{enumerable:yt,value:mt},register:{enumerable:yt,value:function(){Ye.add.apply(Ye,arguments),bt()}},unregister:{enumerable:yt,value:function(){Ye.remove.apply(Ye,arguments),bt()}}});var St=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(d.a)(this,n),(i=t.call(this)).options=void 0,i.circumference=void 0,i.startAngle=void 0,i.endAngle=void 0,i.innerRadius=void 0,i.outerRadius=void 0,i.pixelMargin=0,i.fullCircles=0,e&&Object.assign(Object(r.a)(i),e),i}return Object(h.a)(n,[{key:"inRange",value:function(e,t,n){var r=this.getProps(["x","y"],n),i=Object(p.Z)(r,{x:e,y:t}),a=i.angle,o=i.distance,s=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),l=s.startAngle,c=s.endAngle,u=s.innerRadius,f=s.outerRadius,d=s.circumference,h=this.options.spacing/2;return(d>=p.u||Object(p.Ib)(a,l,c))&&(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,l=this.options,c=l.offset,u=(i+a)/2,f=(o+s+l.spacing+c)/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>p.u?Math.floor(r/p.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>=p.q&&(o=i)}e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor;var l=function(e,t,n,r){var i=t.fullCircles,a=t.startAngle,o=t.circumference,s=t.endAngle;if(i){wt(e,t,n,r,a+p.u);for(var l=0;l<i;++l)e.fill();isNaN(o)||(s=a+o%p.u,o%p.u===0&&(s+=p.u))}return wt(e,t,n,r,s),e.fill(),s}(e,t,o,a);jt(e,t,o,a,l),e.restore()}}}]),n}(Le);function Ct(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=Object(p.Pb)(n.borderCapStyle,t.borderCapStyle),e.setLineDash(Object(p.Pb)(n.borderDash,t.borderDash)),e.lineDashOffset=Object(p.Pb)(n.borderDashOffset,t.borderDashOffset),e.lineJoin=Object(p.Pb)(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=Object(p.Pb)(n.borderWidth,t.borderWidth),e.strokeStyle=Object(p.Pb)(n.borderColor,t.borderColor)}function Mt(e,t,n){e.lineTo(n.x,n.y)}function Et(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,l=t.start,c=t.end,u=Math.max(a,l),f=Math.min(s,c),d=a<l&&s<l||a>c&&s>c;return{count:r,start:u,loop:t.loop,ilen:f<u&&!d?r+f-u:f-u}}function Tt(e,t,n,r){var i,a,o,s=t.points,l=t.options,c=Et(s,n,r),u=c.count,f=c.start,d=c.loop,h=c.ilen,v=function(e){return e.stepped?p.hb:e.tension||"monotone"===e.cubicInterpolationMode?p.ib:Mt}(l),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):v(e,o,a,y,l.stepped),o=a);return d&&v(e,o,a=s[(f+(y?h:0))%u],y,l.stepped),!!d}function Pt(e,t,n,r){var i,a,o,s,l,c,u=t.points,f=Et(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,k=function(e){return(h+(b?p-e:e))%d},x=function(){s!==l&&(e.lineTo(y,l),e.lineTo(y,s),e.lineTo(y,c))};for(g&&(a=u[k(0)],e.moveTo(a.x,a.y)),i=0;i<=p;++i)if(!(a=u[k(i)]).skip){var w=a.x,j=a.y,S=0|w;S===o?(j<s?s=j:j>l&&(l=j),y=(O*y+w)/++O):(x(),e.lineTo(w,j),o=S,O=0,s=l=j),c=j}x()}function _t(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?Pt:Tt}St.id="arc",St.defaults={borderAlign:"center",borderColor:"#fff",borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},St.defaultRoutes={backgroundColor:"backgroundColor"};var Dt="function"===typeof Path2D;function At(e,t,n,r){Dt&&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()),Ct(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,a=t.segments,o=t.options,s=_t(t),l=Object(u.a)(a);try{for(l.s();!(i=l.n()).done;){var c=i.value;Ct(e,o,c.style),e.beginPath(),s(e,t,c,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(f){l.e(f)}finally{l.f()}}(e,t,n,r)}var Rt=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(d.a)(this,n),(i=t.call(this)).animated=!0,i.options=void 0,i._loop=void 0,i._fullLoop=void 0,i._path=void 0,i._points=void 0,i._segments=void 0,i._decimated=!1,i._pointsUpdated=!1,i._datasetIndex=void 0,e&&Object.assign(Object(r.a)(i),e),i}return Object(h.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(p.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(p.db)(n,{property:t,start:i,end:i});if(o.length){var s,l,c=[],u=function(e){return e.stepped?p.eb:e.tension||"monotone"===e.cubicInterpolationMode?p.fb:p.gb}(r);for(s=0,l=o.length;s<l;++s){var f=o[s],d=f.start,h=f.end,v=a[d],m=a[h];if(v!==m){var g=u(v,m,Math.abs((i-v[t])/(m[t]-v[t])),r.stepped);g[t]=e[t],c.push(g)}else c.push(v)}return 1===c.length?c[0]:c}}},{key:"pathSegment",value:function(e,t,n){return _t(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this,i=r.segments,a=_t(r),o=r._loop;t=t||0,n=n||r.points.length-t;var s,l=Object(u.a)(i);try{for(l.s();!(s=l.n()).done;){o&=a(e,r,s.value,{start:t,end:t+n-1})}}catch(c){l.e(c)}finally{l.f()}return!!o}},{key:"draw",value:function(e,t,n,r){var i=this,a=i.options||{};(i.points||[]).length&&a.borderWidth&&(e.save(),At(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(p.cb)(this,this.options.segment))}}]),n}(Le);function Lt(e,t,n,r){var i=e.options,a=e.getProps([n],r)[n];return Math.abs(t-a)<i.radius+i.hitRadius}Rt.id="line",Rt.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Rt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Rt.descriptors={_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}};var Nt=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(d.a)(this,n),(i=t.call(this)).options=void 0,i.parsed=void 0,i.skip=void 0,i.stop=void 0,e&&Object.assign(Object(r.a)(i),e),i}return Object(h.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 Lt(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return Lt(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(p.Sb)(n,t,n.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,Object(p.jb)(e,r,n.x,n.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(Le);function zt(e,t){var n,r,i,a,o,s=e.getProps(["x","y","base","width","height"],t),l=s.x,c=s.y,u=s.base,f=s.width,d=s.height;return e.horizontal?(o=d/2,n=Math.min(l,u),r=Math.max(l,u),i=c-o,a=c+o):(n=l-(o=f/2),r=l+o,i=Math.min(c,u),a=Math.max(c,u)),{left:n,top:i,right:r,bottom:a}}function It(e,t,n,r){return e?0:Object(p.Kb)(t,n,r)}function Ft(e){var t=zt(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(p.lb)(r);return{t:It(i.top,a.top,0,n),r:It(i.right,a.right,0,t),b:It(i.bottom,a.bottom,0,n),l:It(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(p.mb)(i),o=Math.min(t,n),s=e.borderSkipped,l=r||Object(p.Cb)(i);return{topLeft:It(!l||s.top||s.left,a.topLeft,0,o),topRight:It(!l||s.top||s.right,a.topRight,0,o),bottomLeft:It(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:It(!l||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 $t(e,t,n,r){var i=null===t,a=null===n,o=e&&!(i&&a)&&zt(e,r);return o&&(i||t>=o.left&&t<=o.right)&&(a||n>=o.top&&n<=o.bottom)}function Bt(e,t){e.rect(t.x,t.y,t.w,t.h)}function Qt(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}}Nt.id="point",Nt.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Nt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Wt=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var i;return Object(d.a)(this,n),(i=t.call(this)).options=void 0,i.horizontal=void 0,i.base=void 0,i.width=void 0,i.height=void 0,e&&Object.assign(Object(r.a)(i),e),i}return Object(h.a)(n,[{key:"draw",value:function(e){var t,n=this.options,r=Ft(this),i=r.inner,a=r.outer,o=(t=a.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?p.kb:Bt,s=.33;e.save(),a.w===i.w&&a.h===i.h||(e.beginPath(),o(e,Qt(a,s,i)),e.clip(),o(e,Qt(i,-.33,a)),e.fillStyle=n.borderColor,e.fill("evenodd")),e.beginPath(),o(e,Qt(i,s,a)),e.fillStyle=n.backgroundColor,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return $t(this,e,t,n)}},{key:"inXRange",value:function(e,t){return $t(this,e,null,t)}},{key:"inYRange",value:function(e,t){return $t(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}(Le);Wt.id="bar",Wt.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,enableBorderRadius:!0,pointStyle:void 0},Wt.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};new WeakMap;var Ht={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 l=e[n].element;if(l&&l.hasValue()){var c=l.getCenterPoint(),u=Object(p.ub)(t,c);u<s&&(s=u,i=l)}}if(i){var f=i.tooltipPosition();a=f.x,o=f.y}return{x:a,y:o}}};function Vt(e,t){return t&&(Object(p.vb)(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Ut(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function qt(e,t){var n=t.element,r=t.datasetIndex,i=t.index,a=e.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,l=o.value;return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Yt(e,t){var n=e._chart.ctx,r=e.body,i=e.footer,a=e.title,o=t.boxWidth,s=t.boxHeight,l=Object(p.y)(t.bodyFont),c=Object(p.y)(t.titleFont),u=Object(p.y)(t.footerFont),f=a.length,d=i.length,h=r.length,v=Object(p.b)(t.padding),m=v.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*c.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),b)&&(m+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(b-h)*l.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=c.string,Object(p.c)(e.title,O),n.font=l.string,Object(p.c)(e.beforeBody.concat(e.afterBody),O),y=t.displayColors?o+2:0,Object(p.c)(r,(function(e){Object(p.c)(e.before,O),Object(p.c)(e.lines,O),Object(p.c)(e.after,O)})),y=0,n.font=u.string,Object(p.c)(e.footer,O),n.restore(),{width:g+=v.width,height:m}}function Xt(e,t,n,r){var i=n.x,a=n.width,o=e.width,s=e.chartArea,l=s.left,c=s.right,u="center";return"center"===r?u=i<=(l+c)/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 Kt(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||Xt(e,t,n,r),yAlign:r}}function Gt(e,t,n,r){var i=e.caretSize,a=e.caretPadding,o=e.cornerRadius,s=n.xAlign,l=n.yAlign,c=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,l,c);return"center"===l?"left"===s?f+=c:"right"===s&&(f-=c):"left"===s?f-=u:"right"===s&&(f+=u),{x:Object(p.Kb)(f,0,r.width-t.width),y:Object(p.Kb)(d,0,r.height-t.height)}}function Zt(e,t,n){var r=Object(p.b)(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function Jt(e){return Vt([],Ut(e))}function en(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var tn=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.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(h.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 O(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=Vt(s,Ut(i)),s=Vt(s,Ut(a)),s=Vt(s,Ut(o))}},{key:"getBeforeBody",value:function(e,t){return Jt(t.callbacks.beforeBody.apply(this,[e]))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return Object(p.c)(e,(function(e){var t={before:[],lines:[],after:[]},a=en(r,e);Vt(t.before,Ut(a.beforeLabel.call(n,e))),Vt(t.lines,a.label.call(n,e)),Vt(t.after,Ut(a.afterLabel.call(n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return Jt(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=Vt(s,Ut(i)),s=Vt(s,Ut(a)),s=Vt(s,Ut(o))}},{key:"_createItems",value:function(e){var t,n,r=this,i=r._active,a=r._chart.data,o=[],s=[],l=[],c=[];for(t=0,n=i.length;t<n;++t)c.push(qt(r._chart,i[t]));return e.filter&&(c=c.filter((function(t,n,r){return e.filter(t,n,r,a)}))),e.itemSort&&(c=c.sort((function(t,n){return e.itemSort(t,n,a)}))),Object(p.c)(c,(function(t){var n=en(e.callbacks,t);o.push(n.labelColor.call(r,t)),s.push(n.labelPointStyle.call(r,t)),l.push(n.labelTextColor.call(r,t))})),r.labelColors=o,r.labelPointStyles=s,r.labelTextColors=l,r.dataPoints=c,c}},{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=Ht[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 l=r._size=Yt(r,i),c=Object.assign({},s,l),u=Kt(r._chart,i,c),f=Gt(i,c,u,r._chart);r.xAlign=u.xAlign,r.yAlign=u.yAlign,n={opacity:1,x:f.x,y:f.y,width:l.width,height:l.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,l,c=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"===c?(i=(r=h)-d,o=s+d,l=s-d):(i=(r=h+v)+d,o=s-d,l=s+d),a=r):(i="left"===c?h+f+d:"right"===c?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),l=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:l}}},{key:"drawTitle",value:function(e,t,n){var r,i,a,o=this,s=o.title,l=s.length;if(l){var c=Object(p.pb)(n.rtl,o.x,o.width);for(e.x=Zt(o,n.titleAlign,n),t.textAlign=c.textAlign(n.titleAlign),t.textBaseline="middle",r=Object(p.y)(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,a=0;a<l;++a)t.fillText(s[a],c.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,a+1===l&&(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],l=i.boxHeight,c=i.boxWidth,u=Object(p.y)(i.bodyFont),f=Zt(a,"left",i),d=r.x(f),h=l<u.lineHeight?(u.lineHeight-l)/2:0,v=t.y+h;if(i.usePointStyle){var m={radius:Math.min(c,l)/2,pointStyle:s.pointStyle,rotation:s.rotation,borderWidth:1},g=r.leftForLtr(d,c)+c/2,b=v+l/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,Object(p.jb)(e,m,g,b),e.strokeStyle=o.borderColor,e.fillStyle=o.backgroundColor,Object(p.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,c),O=r.leftForLtr(r.xPlus(d,1),c-2),k=Object(p.mb)(o.borderRadius);Object.values(k).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Object(p.kb)(e,{x:y,y:v,w:c,h:l,radius:k}),e.fill(),e.stroke(),e.fillStyle=o.backgroundColor,e.beginPath(),Object(p.kb)(e,{x:O,y:v+1,w:c-2,h:l-2,radius:k}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(y,v,c,l),e.strokeRect(y,v,c,l),e.fillStyle=o.backgroundColor,e.fillRect(O,v+1,c-2,l-2))}e.fillStyle=a.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,a,o,s,l,c,u=this,f=u.body,d=n.bodySpacing,h=n.bodyAlign,v=n.displayColors,m=n.boxHeight,g=n.boxWidth,b=Object(p.y)(n.bodyFont),y=b.lineHeight,O=0,k=Object(p.pb)(n.rtl,u.x,u.width),x=function(n){t.fillText(n,k.x(e.x+O),e.y+y/2),e.y+=y+d},w=k.textAlign(h);for(t.textAlign=h,t.textBaseline="middle",t.font=b.string,e.x=Zt(u,w,n),t.fillStyle=n.bodyColor,Object(p.c)(u.beforeBody,x),O=v&&"right"!==w?"center"===h?g/2+1:g+2:0,o=0,l=f.length;o<l;++o){for(r=f[o],i=u.labelTextColors[o],t.fillStyle=i,Object(p.c)(r.before,x),a=r.lines,v&&a.length&&(u._drawColorBox(t,e,o,k,n),y=Math.max(b.lineHeight,m)),s=0,c=a.length;s<c;++s)x(a[s]),y=b.lineHeight;Object(p.c)(r.after,x)}O=0,y=b.lineHeight,Object(p.c)(u.afterBody,x),e.y-=d}},{key:"drawFooter",value:function(e,t,n){var r,i,a=this,o=a.footer,s=o.length;if(s){var l=Object(p.pb)(n.rtl,a.x,a.width);for(e.x=Zt(a,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=l.textAlign(n.footerAlign),t.textBaseline="middle",r=Object(p.y)(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<s;++i)t.fillText(o[i],l.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,l=n.width,c=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+l-u,s),t.quadraticCurveTo(o+l,s,o+l,s+u),"center"===a&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+l,s+c-u),t.quadraticCurveTo(o+l,s+c,o+l-u,s+c),"bottom"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+u,s+c),t.quadraticCurveTo(o,s+c,o,s+c-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=Ht[e.position].call(t,t._active,t._eventPosition);if(!o)return;var s=t._size=Yt(t,e),l=Object.assign({},o,t._size),c=Kt(n,e,l),u=Gt(e,l,c,n);i._to===u.x&&a._to===u.y||(t.xAlign=c.xAlign,t.yAlign=c.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(p.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(p.qb)(e,n.textDirection),a.y+=o.top,t.drawTitle(a,e,n),t.drawBody(a,e,n),t.drawFooter(a,e,n),Object(p.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(p.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(p.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=Ht[i.position].call(this,e,t);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(Le);tn.positioners=Ht;p.tb,p.tb,p.tb,p.tb,p.tb,p.tb,p.tb,p.tb,p.tb;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 rn=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.a)(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r}return Object(h.a)(n,[{key:"parse",value:function(e,t){if(Object(p.Db)(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:Object(p.Kb)(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:nn(n,e,Object(p.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(i.a)(Object(a.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}(Ue);function an(e,t,n){var r=n.horizontal,i=n.minRotation,a=Object(p.Nb)(i),o=(r?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/o,s)}rn.id="category",rn.defaults={ticks:{callback:rn.prototype.getLabelForValue}};var on=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.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(h.a)(n,[{key:"parse",value:function(e,t){return Object(p.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},l=function(e){return o=i?o:e};if(t){var c=Object(p.Mb)(a),u=Object(p.Mb)(o);c<0&&u<0?l(0):c>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)),l(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,l=e.step,c=e.min,u=e.max,f=e.precision,d=e.count,h=e.maxTicks,v=e.maxDigits,m=e.includeBounds,g=l||1,b=h-1,y=t.min,O=t.max,k=!Object(p.Db)(c),x=!Object(p.Db)(u),w=!Object(p.Db)(d),j=(O-y)/(v+1),S=Object(p.O)((O-y)/b/g)*g;if(S<1e-14&&!k&&!x)return[{value:y},{value:O}];(a=Math.ceil(O/S)-Math.floor(y/S))>b&&(S=Object(p.O)(a*S/b/g)*g),Object(p.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),k&&x&&l&&Object(p.P)((u-c)/l,S/1e3)?(S=(u-c)/(a=Math.round(Math.min((u-c)/S,h))),r=c,i=u):w?S=((i=x?u:i)-(r=k?c:r))/(a=d-1):(a=(i-r)/S,a=Object(p.Q)(a,Math.round(a),S/1e3)?Math.round(a):Math.ceil(a));var C=Math.max(Object(p.R)(S),Object(p.R)(r));n=Math.pow(10,Object(p.Db)(f)?C:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var M=0;for(k&&(m&&r!==c?(o.push({value:c}),r<c&&M++,Object(p.Q)(Math.round((r+M*S)*n)/n,c,an(c,j,e))&&M++):r<c&&M++);M<a;++M)o.push({value:Math.round((r+M*S)*n)/n});return x&&m&&i!==u?Object(p.Q)(o[o.length-1].value,u,an(u,j,e))?o[o.length-1].value=u:o.push({value:u}):x&&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(p.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,o=e.max;if(Object(i.a)(Object(a.a)(n.prototype),"configure",this).call(this),e.options.offset&&t.length){var s=(o-r)/Math.max(t.length-1,1)/2;r-=s,o+=s}e._startValue=r,e._endValue=o,e._valueRange=o-r}},{key:"getLabelForValue",value:function(e){return Object(p.Hb)(e,this.chart.options.locale)}}]),n}(Ue),sn=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"determineDataLimits",value:function(){var e=this,t=e.getMinMax(!0),n=t.min,r=t.max;e.min=Object(p.Ab)(n)?n:0,e.max=Object(p.Ab)(r)?r:1,e.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this,t=e.isHorizontal(),n=t?e.width:e.height,r=Object(p.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}(on);function ln(e){return 1===e/Math.pow(10,Math.floor(Object(p.k)(e)))}sn.id="linear",sn.defaults={ticks:{callback:ze.formatters.numeric}};var cn=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.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(h.a)(n,[{key:"parse",value:function(e,t){var n=on.prototype.parse.apply(this,[e,t]);if(0!==n)return Object(p.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(p.Ab)(n)?Math.max(0,n):null,e.max=Object(p.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},l=function(e,t){return Math.pow(10,Math.floor(Object(p.k)(e))+t)};i===a&&(i<=0?(o(1),s(10)):(o(l(i,-1)),s(l(a,1)))),i<=0&&o(l(a,-1)),a<=0&&s(l(i,1)),e._zero&&e.min!==e._suggestedMin&&i===l(e.min,0)&&o(l(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(p.k)(t.max)),r=Math.ceil(t.max/Math.pow(10,n)),i=[],a=Object(p.m)(e.min,Math.pow(10,Math.floor(Object(p.k)(t.min)))),o=Math.floor(Object(p.k)(a)),s=Math.floor(a/Math.pow(10,o)),l=o<0?Math.pow(10,Math.abs(o)):1;do{i.push({value:a,major:ln(a)}),10===++s&&(s=1,l=++o>=0?1:l),a=Math.round(s*Math.pow(10,o)*l)/l}while(o<n||o===n&&s<r);var c=Object(p.m)(e.max,a);return i.push({value:c,major:ln(a)}),i}({min:e._userMin,max:e._userMax},e);return"ticks"===t.bounds&&Object(p.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(p.Hb)(e,this.chart.options.locale)}},{key:"configure",value:function(){var e=this,t=e.min;Object(i.a)(Object(a.a)(n.prototype),"configure",this).call(this),e._startValue=Object(p.k)(t),e._valueRange=Object(p.k)(e.max)-Object(p.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(p.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}(Ue);function un(e){var t=e.ticks;if(t.display&&e.display){var n=Object(p.b)(t.backdropPadding);return Object(p.Pb)(t.font&&t.font.size,p.xb.font.size)+n.height}return 0}function fn(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 dn(e){for(var t,n,r,i={l:0,r:e.width,t:0,b:e.height-e.paddingTop},a={},o=[],s=[],l=e.getLabels().length,c=0;c<l;c++){var u=e.options.pointLabels.setContext(e.getPointLabelContext(c));s[c]=u.padding;var f=e.getPointPosition(c,e.drawingArea+s[c]),d=Object(p.y)(u.font),h=(t=e.ctx,n=d,r=e._pointLabels[c],r=Object(p.vb)(r)?r:[r],{w:Object(p.S)(t,n.string,r),h:r.length*n.lineHeight});o[c]=h;var v=e.getIndexAngle(c),m=Object(p.p)(v),g=fn(m,f.x,h.w,0,180),b=fn(m,f.y,h.h,90,270);g.start<i.l&&(i.l=g.start,a.l=v),g.end>i.r&&(i.r=g.end,a.r=v),b.start<i.t&&(i.t=b.start,a.t=v),b.end>i.b&&(i.b=b.end,a.b=v)}e._setReductions(e.drawingArea,i,a),e._pointLabelItems=function(e,t,n){for(var r=[],i=e.getLabels().length,a=e.options,o=un(a),s=e.getDistanceFromCenterForValue(a.ticks.reverse?e.min:e.max),l=0;l<i;l++){var c=0===l?o/2:0,u=e.getPointPosition(l,s+c+n[l]),f=Object(p.p)(e.getIndexAngle(l)),d=t[l],h=vn(u.y,d.h,f),v=hn(f),m=pn(u.x,d.w,v);r.push({x:u.x,y:h,textAlign:v,left:m,top:h,right:m+d.w,bottom:h+d.h})}return r}(e,o,s)}function hn(e){return 0===e||180===e?"center":e<180?"left":"right"}function pn(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function vn(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function mn(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,p.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 gn(e){return Object(p.Jb)(e)?e:0}cn.id="logarithmic",cn.defaults={ticks:{callback:ze.formatters.logarithmic,major:{enabled:!0}}};var bn=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.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(h.a)(n,[{key:"setDimensions",value:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=un(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(p.Ab)(n)&&!isNaN(n)?n:0,e.max=Object(p.Ab)(r)&&!isNaN(r)?r:0,e.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/un(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;on.prototype.generateTickLabels.call(t,e),t._pointLabels=t.getLabels().map((function(e,n){var r=Object(p.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?dn(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=gn(i),a=gn(a),o=gn(o),s=gn(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,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((o+a)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)}},{key:"getIndexAngle",value:function(e){var t=p.u/this.getLabels().length,n=this.options.startAngle||0;return Object(p.ob)(e*t+Object(p.Nb)(n))}},{key:"getDistanceFromCenterForValue",value:function(e){var t=this;if(Object(p.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(p.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)-p.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(),mn(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,l=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(p.y)(a.font),s=e._pointLabelItems[i],l=s.x,c=s.y,u=s.textAlign,f=s.left,d=s.top,h=s.right,v=s.bottom,m=a.backdropColor;if(!Object(p.Db)(m)){var g=Object(p.b)(a.backdropPadding);n.fillStyle=m,n.fillRect(f-g.left,d-g.top,h-f+g.width,v-d+g.height)}Object(p.w)(n,e._pointLabels[i],l,c+o.lineHeight/2,o,{color:a.color,textAlign:u,textBaseline:"middle"})}}(r,l),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(),mn(e,n,a,r),i.closePath(),i.stroke(),i.restore())}(r,i,t,l)}})),o.display){for(i.save(),e=r.getLabels().length-1;e>=0;e--){var c=o.setContext(r.getPointLabelContext(e)),u=c.color,f=c.lineWidth;f&&u&&(i.lineWidth=f,i.strokeStyle=u,i.setLineDash(c.borderDash),i.lineDashOffset=c.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 l=r.setContext(e.getContext(s)),c=Object(p.y)(l.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),l.showLabelBackdrop){t.font=c.string,a=t.measureText(o.label).width,t.fillStyle=l.backdropColor;var u=Object(p.b)(l.backdropPadding);t.fillRect(-a/2-u.left,-i-c.size/2-u.top,a+u.width,c.size+u.height)}Object(p.w)(t,o.label,0,-i,c,{color:l.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(on);bn.id="radialLinear",bn.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ze.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5}},bn.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},bn.descriptors={angleLines:{_fallback:"grid"}};var yn={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}},On=Object.keys(yn);function kn(e,t){return e-t}function xn(e,t){if(Object(p.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(p.Ab)(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!Object(p.Jb)(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function wn(e,t,n,r){for(var i=On.length,a=On.indexOf(e);a<i-1;++a){var o=yn[On[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return On[a]}return On[i-1]}function jn(e,t,n){if(n){if(n.length){var r=Object(p.U)(n,t),i=r.lo,a=r.hi;e[n[i]>=t?n[i]:n[a]]=!0}}else e[t]=!0}function Sn(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),l=t[t.length-1].value;for(i=s;i<=l;i=+o.add(i,1,r))(a=n[i])>=0&&(t[a].major=!0);return t}(e,a,o,n):a}var Cn=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.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(h.a)(n,[{key:"init",value:function(e,t){var r=e.time||(e.time={}),o=this._adapter=new K._date(e.adapters.date);Object(p.K)(r.displayFormats,o.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},Object(i.a)(Object(a.a)(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:xn(this,e)}},{key:"beforeLayout",value:function(){Object(i.a)(Object(a.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,l=i.maxDefined;function c(e){s||isNaN(e.min)||(a=Math.min(a,e.min)),l||isNaN(e.max)||(o=Math.max(o,e.max))}s&&l||(c(e._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||c(e.getMinMax(!1))),a=Object(p.Ab)(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),o=Object(p.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(p.T)(i,a,o);return e._unit=n.unit||(r.autoSkip?wn(n.minUnit,e.min,e.max,e._getLabelCapacity(a)):function(e,t,n,r,i){for(var a=On.length-1;a>=On.indexOf(n);a--){var o=On[a];if(yn[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return On[n?On.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=On.indexOf(e)+1,n=On.length;t<n;++t)if(yn[On[t]].common)return On[t]}(e._unit):void 0,e.initOffsets(i),t.reverse&&s.reverse(),Sn(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(p.Kb)(i,0,o),a=Object(p.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,l=s.unit||wn(s.minUnit,i,a,n._getLabelCapacity(i)),c=Object(p.Pb)(s.stepSize,1),u="week"===l&&s.isoWeekday,f=Object(p.Jb)(u)||!0===u,d={},h=i;if(f&&(h=+r.startOf(h,"isoWeek",u)),h=+r.startOf(h,f?"day":l),r.diff(a,i,l)>1e5*c)throw new Error(i+" and "+a+" are too far apart with stepSize of "+c+" "+l);var v="data"===o.ticks.source&&n.getDataTimestamps();for(e=h,t=0;e<a;e=+r.add(e,c,l),t++)jn(d,e,v);return e!==a&&"ticks"!==o.bounds&&1!==t||jn(d,e,v),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,l=i._majorUnit,c=s&&o[s],u=l&&o[l],f=n[t],d=l&&u&&f&&f.major,h=i._adapter.format(e,r||(d?u:c)),v=a.ticks.callback;return v?Object(p.n)(v,[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(p.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,Sn(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(xn(n,i[e]));return n._cache.labels=n._normalized?r:n.normalize(r)}},{key:"normalize",value:function(e){return Object(p.B)(e.sort(kn))}}]),n}(Ue);function Mn(e,t,n){var r,i,a,o,s=0,l=e.length-1;if(n){if(t>=e[s].pos&&t<=e[l].pos){var c=Object(p.Qb)(e,"pos",t);s=c.lo,l=c.hi}var u=e[s];r=u.pos,a=u.time;var f=e[l];i=f.pos,o=f.time}else{if(t>=e[s].time&&t<=e[l].time){var d=Object(p.Qb)(e,"time",t);s=d.lo,l=d.hi}var h=e[s];r=h.time,a=h.pos;var v=e[l];i=v.time,o=v.pos}var m=i-r;return m?a+(o-a)*(t-r)/m:a}Cn.id="time",Cn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};var En=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(d.a)(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return Object(h.a)(n,[{key:"initOffsets",value:function(){var e=this,t=e._getTimestampsForTable(),r=e._table=e.buildLookupTable(t);e._minPos=Mn(r,e.min),e._tableRange=Mn(r,e.max)-e._minPos,Object(i.a)(Object(a.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,l=[],c=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=o&&i<=s&&l.push(i);if(l.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(t=0,n=l.length;t<n;++t)a=l[t+1],r=l[t-1],i=l[t],Math.round((a+r)/2)!==i&&c.push({time:i,pos:t/(n-1)});return c}},{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(Mn(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 Mn(t._table,r*t._tableRange+t._minPos,!0)}}]),n}(Cn);En.id="timeseries",En.defaults=Cn.defaults},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(19),o=n(10),s=n(62),l=n(24);function c(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=c(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?l.c.closedBy:l.c.openedBy,o=t.head;;){var c=n?r.childAfter(o):r.childBefore(o);if(!c)break;g(e,c,a)?r=c:o=n?c.end:c.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)},k=function(e){return y(e,!0)};function x(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 x(e,!1)},j=function(e){return x(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)}))},M=function(e){return f(e,(function(t){return i.d.cursor(e.visualLineAt(t.head).to,-1)}))};function E(e,t,n){var r=!1,a=c(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 T(e,t){var n=c(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 P(e,t){return T(e,(function(n){return e.moveByChar(n,t)}))}var _=function(e){return P(e,e.textDirection!=o.c.LTR)},D=function(e){return P(e,e.textDirection==o.c.LTR)};function A(e,t){return T(e,(function(n){return e.moveByGroup(n,t)}))}function R(e,t){return T(e,(function(n){return e.moveVertically(n,t)}))}var L=function(e){return R(e,!1)},N=function(e){return R(e,!0)};function z(e,t){return T(e,(function(n){return e.moveVertically(n,t,e.dom.clientHeight)}))}var I=function(e){return z(e,!1)},F=function(e){return z(e,!0)},$=function(e){return T(e,(function(t){return i.d.cursor(e.visualLineAt(t.head).from)}))},B=function(e){return T(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,l=s.doc.lineAt(r);if(!t&&r>l.from&&r<l.from+200&&!/[^ \t]/.test(i=l.slice(0,r-l.from))){if("\t"==i[i.length-1])return r-1;for(var c=Object(a.d)(i,0,s.tabSize)%s.indentUnit||s.indentUnit,u=0;u<c&&" "==i[i.length-1-u];u++)r--;return r}if(n){var f=l.slice(r-l.from+(t?0:-2),r-l.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=l.findClusterBreak(r-l.from,t)+l.from;return o==r&&l.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 l=void 0,c=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)),l=t?a.from:a.to,c="\n"}else l=a.findClusterBreak(n-a.from,t)+a.from,c=a.slice(Math.min(n,l)-a.from,Math.max(n,l)-a.from);var u=o(c);if(null!=s&&u!=s)break;u!=i.c.Space&&(s=u),n=l}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),l=e.doc.lineAt(o.to);i==s.number?n[n.length-1].to=l.to:n.push({from:s.from,to:l.to}),i=l.number}}catch(c){a.e(c)}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 l=e.doc.lineAt(n?s.to+1:s.from-1);n?a.push({from:s.to,to:l.to},{from:s.from,insert:l.slice()+e.lineBreak}):a.push({from:l.from,to:s.from},{from:s.to,insert:e.lineBreak+l.slice()})}}}catch(c){o.e(c)}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(l){o.e(l)}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:$},{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:M,shift:B},{key:"ArrowUp",run:O,shift:L},{mac:"Cmd-ArrowUp",run:Q,shift:H},{mac:"Ctrl-ArrowUp",run:w,shift:I},{key:"ArrowDown",run:k,shift:N},{mac:"Cmd-ArrowDown",run:W,shift:V},{mac:"Ctrl-ArrowDown",run:j,shift:F},{key:"PageUp",run:w,shift:I},{key:"PageDown",run:j,shift:F},{key:"Home",run:function(e){return f(e,(function(t){return S(e,t,!1)}))},shift:function(e){return T(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 T(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(l.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}),c=te(s,n);c<0&&(c=/^\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(c)];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+c)}}));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:k,shift:N},{key:"Ctrl-a",run:C,shift:$},{key:"Ctrl-e",run:M,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 T(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 T(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=c(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)),l=0;l<i.length&&l<s.length&&i.charCodeAt(l)==s.charCodeAt(l);)l++;n.push({from:e.from+l,to:e.from+i.length,insert:s.slice(l)})}})))),!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],l=t.indentString(o);(s!=l||i.from<e.from+s.length)&&(r[e.from]=o,n.push({from:e.from,to:e.from+s.length,insert:l}))}}));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=c(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 E(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(59),l=n(10),c=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 l,c=1,u=Object(r.a)(t.types);try{for(u.s();!(l=u.n()).done;){var f=l.value,d=/^([\w\-]+)(?:=([\w-]+))?$/.exec(f);if(!d)throw new RangeError("Invalid type name "+f);var h=c++;this.typeNames[h]=d[1],this.typeIDs[d[1]]=h,s[h]=d[2];for(var p=0;p<a;p++){var v=c++,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(l){i.e(l)}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,l=o.tag,c=Object(r.a)(n.split(" "));try{for(c.s();!(i=c.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(l,s,p);t[f]=v.sort(t[f])}}catch(m){c.e(m)}finally{c.f()}}return this.prop.add(t)}},{key:"highlighter",value:function(e){var t=this,n=new m(this,e);return[Object(c.o)(l.f.define((function(e){return new g(e,t.prop,n)}),{decorations:function(e){return e.decorations}}),"fallback"),l.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 l in n){var c=s.a.newName();a["."+c]=n[l];var u,f=Object(r.a)(l.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),c))}}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 l=o.value;if(l.type==i&&(l.flags&a)==l.flags&&(n&&(n+=" "),n+=l.cls,a&=~l.flags,i))break}}catch(c){s.e(c)}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(c.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=l.b.none}},{key:"buildDeco",value:function(e,t){var n,i,a,o=this,s=new u.c;function c(e,t){e>n&&t&&s.add(n,e,l.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),l=!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&&(l=!0));break}s=s.next}if(r!=i&&(c(t,i),i=r),l)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&&(c(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),l=n(10),c=n(5),u=n(84),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,l.d.decorations.compute([y],(function(e){var t=e.field(y),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?l.b.set([O.range(n.from,n.to)]):l.b.none})),Object(f.b)(),Object(u.a)(k),_]}}var m=c.i.define(),g=c.i.define(),b=c.i.define(),y=c.j.define({create:function(){return new h(l.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 c=a.value;if(c.is(m)){var u=l.b.set(c.value.map((function(e){return e.from<e.to?l.b.mark({attributes:{class:Object(l.n)("lintRange."+e.severity)},diagnostic:e}).range(e.from,e.to):l.b.widget({widget:new M(e),diagnostic:e}).range(e.from)})));e=new h(u,e.panel,p(u))}else c.is(g)?e=new h(e.diagnostics,c.value?T.open:null,e.selected):c.is(b)&&(e=new h(e.diagnostics,e.panel,c.value))}}catch(f){s.e(f)}finally{s.f()}return e},provide:[f.c.nFrom((function(e){return e.panel?[e.panel]:[]})),l.d.decorations.from((function(e){return e.diagnostics}))]}),O=l.b.mark({class:Object(l.n)("lintRange.active")});function k(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 x=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,T.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 l.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(l.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(l.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(l.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 M=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(l.n)("lintPoint."+this.diagnostic.severity),e}}]),n}(l.g),E=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")},T=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(),x(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 x(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 l,c=s.spec,u=-1,f=i;f<e.items.length;f++)if(e.items[f].diagnostic==c.diagnostic){u=f;break}u<0?(l=new E(e.view,c.diagnostic),e.items.splice(i,0,l),a=!0):(l=e.items[u],u>i&&(e.items.splice(i,u-i),a=!0)),r&&l.diagnostic==r.diagnostic?l.dom.hasAttribute("aria-selected")||(l.dom.setAttribute("aria-selected","true"),o=l):l.dom.hasAttribute("aria-selected")&&l.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 E(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 P(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 _=l.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:P("#d11")},"$lintRange.warning":{backgroundImage:P("orange")},"$lintRange.info":{backgroundImage:P("#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){"use strict";(function(e){n.d(t,"b",(function(){return x}));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,l){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=l}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],l=this.bufferBase+this.buffer.length-s;if(n<r.minRepeatTerm||131072&e){var c=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,o,c,l+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:l.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}(),l=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}(),c=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 l=n.start;0!=(o&e[a]);){for(var c=e[a+1],u=a+3;u<c;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,l);break}}for(var d=t.get(l++),h=0,p=e[a+2];h<p;){var v=h+p>>1,m=c+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 l=o-32;if(l>=46&&(l-=46,s=!0),a+=l,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}(c),g=new c,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 l=a[s],c=this.tokens[s];if((!r||l.fallback)&&((l.contextual||c.start!=e.pos||c.mask!=o)&&(this.updateCachedToken(c,l,e,t),c.mask=o),0!=c.value)){var u=n;if(c.extended>-1&&(n=this.addActions(e,c.extended,c.end,n)),n=this.addActions(e,c.value,c.end,n),!l.extend&&(r=c,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 l=a.stateSlot(i,s?2:1);;l+=3){if(65535==o[l]){if(1!=o[l+1]){0==r&&2==o[l+1]&&(r=this.putAction(w(o,l+1),t,n,r));break}l=w(o,l+2)}o[l]==t&&(r=this.putAction(w(o,l+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,l=void 0!==s&&s,c=n.bufferLength,u=void 0===c?r.a:c,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=l,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 l;if(l=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 l.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&&(l=this.runRecovery(n,r)))return l.forceAll().toTree();if(this.recovering){var c=1==this.recovering?1:3*this.recovering;this.stacks.length>c&&(this.stacks.sort((function(e,t){return t.score-e.score})),this.stacks.length=c),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,l=h?this.stackID(e)+" -> ":"";if(this.cache)for(var c=this.cache.nodeAt(n);c;){var u=s.group.types[c.type.id]==c.type?s.getGoto(e.state,c.type.id):-1;if(u>-1)return e.useNode(c,u),h&&console.log(l+this.stackID(e)+" (via reuse of "+s.getName(c.type.id)+")"),e;if(!(c instanceof r.e)||0==c.children.length||c.positions[0]>0)break;var f=c.children[0];if(!(f instanceof r.e))break;c=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,k=void 0,x=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,k=S.parser,x=S.top,w=S.dialect,b=S.filterEnd,j=S.wrapType}else k=v;var C=this.scanForNestEnd(e,m,b),M=e.cx.input.clip(C);if(O||!k){var E=O?O(M,e.pos):r.e.empty;return E.length!=C-e.pos&&(E=new r.e(E.type,E.children,E.positions,C-e.pos)),null!=j&&(E=new r.e(s.group.types[j],[E],[0],E.length)),e.useNode(E,s.getGoto(e.state,g,!0)),e}var T=x?k.topRules[x]:k.defaultTop,P=o.start(new y(k,e.cx.maxBufferLength,M,T[1],k.parseDialect(w),e,j),T[0],e.pos);return h&&console.log(l+this.stackID(P)+" (nested)"),P}var _=s.stateSlot(e.state,4);if(_>0)return e.reduce(_),h&&console.log(l+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),z=N?e:e.split();if(z.apply(R,L,C),h&&console.log(l+this.stackID(z)+" (via "+(0==(65536&R)?"shift":"reduce of "+s.getName(65535&R))+" for "+s.getName(L)+" @ "+n+(z==e?"":", split")+")"),N)return z;z.pos>n?this.putStack(z):t.push(z)}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)],l=h?this.stackID(a)+" -> ":"";if(a.deadEnd){if(r)continue;if(r=!0,a.restart(),h&&console.log(l+this.stackID(a)+" (restarted)"),!(d=this.advanceFully(a)))continue;a=d}for(var c=a.split(),u=l,f=0;c.forceReduce()&&f<10;f++){var d;if(h&&console.log(u+this.stackID(c)+" (via force-reduce)"),!(d=this.advanceFully(c)))break;c=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(l+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(l+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}(),k=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}(),x=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,l=e.nodeProps;s<l.length;s++){var c=l[s],u=c[0];for(i=1;i<c.length;i+=2)o(c[i],u,c[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 l=i+(a>>1);i<l;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 l=i[s++],c=i[s++],u=s+(l>>1);s<u;s++)i[s]==e&&n.indexOf(c)<0&&n.push(c);if(1&l)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];(c=t.indexOf(a))>=0&&(n[c]=!0)}for(var o=null,s=0;s<t.length;s++)if(!n[s])for(var l=this.dialects[t[s]],c=void 0;65535!=(c=this.data[l++]);)(o||(o=new Uint8Array(this.maxTerm+1)))[c]=1;return this.cachedDialect=new k(e,n,o)},e.deserialize=function(t){return new e(t)},e}();function w(e,t){return e[t]|e[t+1]<<16}x.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(186))},function(e,t,n){"use strict";var r=n(55),i=n(51),a=(n(12),n(0)),o=n.n(a),s=n(26),l=n.n(s),c=!1,u=n(78),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]:[l.a.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||c?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:l.a.findDOMNode(this);t&&!c?(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:l.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,l=o(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))i.call(n,u)&&(l[u]=n[u]);if(r){s=r(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(l[s[f]]=n[s[f]])}}return l}},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,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){(function(t){var n="__lodash_hash_undefined__",r="[object Function]",i="[object GeneratorFunction]",a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/,s=/^\./,l=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c=/\\(\\)?/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,k=m.toString,x=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"),M=w?w.prototype:void 0,E=M?M.toString:void 0;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 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 _(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($(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]:$(n=t)?n:z(n)).length;null!=e&&r<i;)e=e[I(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)?k.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)?x: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}T.prototype.clear=function(){this.__data__=C?C(null):{}},T.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},T.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},T.prototype.has=function(e){var t=this.__data__;return C?void 0!==t[e]:O.call(t,e)},T.prototype.set=function(e,t){return this.__data__[e]=C&&void 0===t?n:t,this},P.prototype.clear=function(){this.__data__=[]},P.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)},P.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},P.prototype.has=function(e){return D(this.__data__,e)>-1},P.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 T,map:new(S||P),string:new T}},_.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 z=F((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(Q(e))return E?E.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(l,(function(e,t,r,i){n.push(r?i.replace(c,"$1"):t||e)})),n}));function I(e){if("string"==typeof e||Q(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function F(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(F.Cache||_),n}F.Cache=_;var $=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]"==k.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(110))},function(e,t,n){e.exports=n(187)},,,,,,,,,,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 l=o[s],c=a[l];"object"===typeof c&&null!==c&&-1===n.indexOf(c)&&(t.push({obj:a,prop:l}),n.push(c))}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){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,l=2592e6,c=/^(-|\+)?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:l,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(c);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/l),e%=l,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"),l=e.negative||t.negative||r.negative||i.negative||a.negative||s.negative,c=i.format||a.format||s.format?"T":"",u=(l?"-":"")+"P"+e.format+t.format+r.format+c+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 l=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 l.call(this)};var c=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?c.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 l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+l,e)).$offset=o,s.$x.$localOffset=l}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(180),i=n(181),a=n(125);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 l(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:l(s(e))}function c(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 k=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},x=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,l=a.height||e.clientHeight||i.height,c=e.offsetWidth-s,u=e.offsetHeight-l;if(c||u){var f=o(e);c-=b(f,"x"),u-=b(f,"y"),i.width-=c,i.height-=u}return S(i)}function M(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),c=l(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(c):t===c&&"BODY"!==c.nodeName)&&(p=g(p,t)),p}function E(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=M(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"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return S(l)}function T(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&&T(n)}function P(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?P(e):v(e,c(t));if("viewport"===r)a=E(o,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=l(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var f=M(u,o,i);if("HTML"!==u.nodeName||T(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}},l=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})),c=l.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=c.length>0?c[0].key:l[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?P(t):v(t,c(n));return M(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 z(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",l=a?"height":"width",c=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,i[s]=n===s?t[s]-r[c]:t[N(s)],i}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(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=I(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 $(){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=z(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(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(l(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=l(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=I(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(I(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 l=/\s*,\s*|\s+/,c=-1!==s?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return(c=c.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),l=s?"left":"top",c=s?"width":"height",u={start:w({},l,a[l]),end:w({},l,a[l]+a[c]-o[c])};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],l=void 0;return l=X(+n)?[+n,0]:ae(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[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 l=_(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var c=t.priority,u=e.offsets.popper,f={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),w({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),w({},n,r)}};return c.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",l=o?"left":"top",c=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[c]),n[l]>a(r[s])&&(e.offsets.popper[l]=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,l=a.reference,c=-1!==["left","right"].indexOf(i),u=c?"height":"width",f=c?"Top":"Left",d=f.toLowerCase(),h=c?"left":"top",p=c?"bottom":"right",v=L(r)[u];l[p]-v<s[d]&&(e.offsets.popper[d]-=s[d]-(l[p]-v)),l[d]+v>s[p]&&(e.offsets.popper[d]+=l[d]+v-s[p]),e.offsets.popper=S(e.offsets.popper);var m=l[d]+l[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,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=N(r);var c=e.offsets.popper,u=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(u.left)||"right"===r&&f(c.left)<f(u.right)||"top"===r&&f(c.bottom)>f(u.top)||"bottom"===r&&f(c.top)<f(u.bottom),h=f(c.left)<f(n.left),p=f(c.right)>f(n.right),v=f(c.top)<f(n.top),m=f(c.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),k=y||O;(d||g||k)&&(e.flipped=!0,(d||g)&&(r=o[l+1]),k&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=j({},e.offsets.popper,z(e.instance.popper,e.offsets.reference,e.placement)),e=F(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=I(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=I(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),l=C(s),c={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},l=a(i.width),c=a(r.width),u=-1!==["left","right"].indexOf(e.placement),f=-1!==e.placement.indexOf("-"),d=t?u||f||l%2===c%2?a:o:s,h=t?a:s;return{left:d(l%2===1&&c%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:-l.height+u.bottom:u.top,v="right"===d?"HTML"===s.nodeName?-s.clientWidth+u.right:-l.width+u.right:u.left,o&&p)c[p]="translate3d("+v+"px, "+m+"px, 0)",c[f]=0,c[d]=0,c.willChange="transform";else{var g="bottom"===f?-1:1,b="right"===d?-1:1;c[f]=m*g,c[d]=v*b,c.willChange=f+", "+d}var y={"x-placement":e.placement};return e.attributes=j({},y,e.attributes),e.styles=j({},c,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]:{};k(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 x(e,[{key:"update",value:function(){return $.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(110))},function(e,t,n){"use strict";var r=n(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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;window,r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./react/uplot-react.tsx")}({"./common/index.ts":function(e,t,n){"use strict";n.r(t),n.d(t,"optionsUpdateState",(function(){return i})),n.d(t,"dataMatch",(function(){return a}));var r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.is||Object.defineProperty(Object,"is",{value:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}});var i=function(e,t){var n=e.width,i=e.height,a=r(e,["width","height"]),o=t.width,s=t.height,l=r(t,["width","height"]),c="keep";if(i===s&&n===o||(c="update"),Object.keys(a).length!==Object.keys(l).length)return"create";for(var u=0,f=Object.keys(a);u<f.length;u++){var d=f[u];if(!Object.is(a[d],l[d])){c="create";break}}return c},a=function(e,t){return e.length===t.length&&e.every((function(e,n){var r=t[n];return e.length===r.length&&e.every((function(e,t){return e===r[t]}))}))}},"./react/uplot-react.tsx":function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return l}));var r=n("react"),i=n.n(r),a=n("uplot"),o=n.n(a),s=n("./common/index.ts");function l(e){var t=e.options,n=e.data,a=e.target,l=e.onDelete,c=void 0===l?function(){}:l,u=e.onCreate,f=void 0===u?function(){}:u,d=Object(r.useRef)(null),h=Object(r.useRef)(null);function p(e){e&&(c(e),e.destroy(),d.current=null)}function v(){var e=new o.a(t,n,a||h.current);d.current=e,f(e)}Object(r.useEffect)((function(){return v(),function(){p(d.current)}}),[]);var m=Object(r.useRef)({options:t,data:n,target:a}).current;return Object(r.useEffect)((function(){var e=d.current;if(m.options!==t){var r=Object(s.optionsUpdateState)(m.options,t);e&&"create"!==r?"update"===r&&e.setSize({width:t.width,height:t.height}):(p(e),v())}return m.data!==n&&(e?Object(s.dataMatch)(m.data,n)||e.setData(n):v()),m.target!==a&&(p(e),v()),function(){m.options=t,m.data=n,m.target=a}}),[t,n,a]),a?null:i.a.createElement("div",{ref:h})}},react:function(t,n){t.exports=e},uplot:function(e,n){e.exports=t}}).default},e.exports=r(n(0),n(183))},function(e,t,n){var r,i;void 0===(i="function"===typeof(r=function(){var e,t,n="2.0.6",r={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function s(e,t){this._input=e,this._value=t}return(e=function(n){var i,a,l,c;if(e.isNumeral(n))i=n.value();else if(0===n||"undefined"===typeof n)i=0;else if(null===n||t.isNaN(n))i=null;else if("string"===typeof n)if(o.zeroFormat&&n===o.zeroFormat)i=0;else if(o.nullFormat&&n===o.nullFormat||!n.replace(/[^0-9]+/g,"").length)i=null;else{for(a in r)if((c="function"===typeof r[a].regexps.unformat?r[a].regexps.unformat():r[a].regexps.unformat)&&n.match(c)){l=r[a].unformat;break}i=(l=l||e._.stringToNumber)(n)}else i=Number(n)||null;return new s(n,i)}).version=n,e.isNumeral=function(e){return e instanceof s},e._=t={numberToFormat:function(t,n,r){var a,o,s,l,c,u,f,d=i[e.options.currentLocale],h=!1,p=!1,v=0,m="",g=1e12,b=1e9,y=1e6,O=1e3,k="",x=!1;if(t=t||0,o=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(c=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],e._.includes(n," a")&&(m=" "),n=n.replace(new RegExp(m+"a[kmbt]?"),""),o>=g&&!a||"t"===a?(m+=d.abbreviations.trillion,t/=g):o<g&&o>=b&&!a||"b"===a?(m+=d.abbreviations.billion,t/=b):o<b&&o>=y&&!a||"m"===a?(m+=d.abbreviations.million,t/=y):(o<y&&o>=O&&!a||"k"===a)&&(m+=d.abbreviations.thousand,t/=O)),e._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),s=t.toString().split(".")[0],l=n.split(".")[1],u=n.indexOf(","),v=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(e._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),k=e._.toFixed(t,l[0].length+l[1].length,r,l[1].length)):k=e._.toFixed(t,l.length,r),s=k.split(".")[0],k=e._.includes(k,".")?d.delimiters.decimal+k.split(".")[1]:"",p&&0===Number(k.slice(1))&&(k="")):s=e._.toFixed(t,0,r),m&&!a&&Number(s)>=1e3&&m!==d.abbreviations.trillion)switch(s=String(Number(s)/1e3),m){case d.abbreviations.thousand:m=d.abbreviations.million;break;case d.abbreviations.million:m=d.abbreviations.billion;break;case d.abbreviations.billion:m=d.abbreviations.trillion}if(e._.includes(s,"-")&&(s=s.slice(1),x=!0),s.length<v)for(var w=v-s.length;w>0;w--)s="0"+s;return u>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(s=""),f=s+k+(m||""),h?f=(h&&x?"(":"")+f+(h&&x?")":""):c>=0?f=0===c?(x?"-":"+")+f:f+(x?"-":"+"):x&&(f="-"+f),f},stringToNumber:function(e){var t,n,r,a=i[o.currentLocale],s=e,l={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&e===o.zeroFormat)n=0;else if(o.nullFormat&&e===o.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==a.delimiters.decimal&&(e=e.replace(/\./g,"").replace(a.delimiters.decimal,".")),l)if(r=new RegExp("[^a-zA-Z]"+a.abbreviations[t]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),s.match(r)){n*=Math.pow(10,l[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return"number"===typeof e&&isNaN(e)})),includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a<i&&!(a in r);)a++;if(a>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;a<i;a++)a in r&&(n=t(n,r[a],a,r));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){return Array.prototype.slice.call(arguments).reduce((function(e,n){var r=t.multiplier(n);return e>r?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,l=e.toString().split("."),c=t-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,c),t):c,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=o,e.formats=r,e.locales=i,e.locale=function(e){return e&&(o.currentLocale=e.toLowerCase()),o.currentLocale},e.localeData=function(e){if(!e)return i[o.currentLocale];if(e=e.toLowerCase(),!i[e])throw new Error("Unknown locale : "+e);return i[e]},e.reset=function(){for(var e in a)o[e]=a[e]},e.zeroFormat=function(e){o.zeroFormat="string"===typeof e?e:null},e.nullFormat=function(e){o.nullFormat="string"===typeof e?e:null},e.defaultFormat=function(e){o.defaultFormat="string"===typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,l,c,u;if("string"!==typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{c=e.localeData(n)}catch(f){c=e.localeData(e.locale())}return a=c.currency.symbol,s=c.abbreviations,r=c.delimiters.decimal,i="."===c.delimiters.thousands?"\\.":c.delimiters.thousands,(null===(u=t.match(/^[^\d]+/))||(t=t.substr(1),u[0]===a))&&(null===(u=t.match(/[^\d]+$/))||(t=t.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!t.match(/[^\d.,]/g)&&!((o=t.split(r)).length>2)&&(o.length<2?!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l):1===o[0].length?!!o[0].match(/^\d+$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/):!!o[0].match(/^\d+.*\d$/)&&!o[0].match(l)&&!!o[1].match(/^\d+$/)))},e.fn=s.prototype={clone:function(){return e(this)},format:function(t,n){var i,a,s,l=this._value,c=t||o.defaultFormat;if(n=n||Math.round,0===l&&null!==o.zeroFormat)a=o.zeroFormat;else if(null===l&&null!==o.nullFormat)a=o.nullFormat;else{for(i in r)if(c.match(r[i].regexps.format)){s=r[i].format;break}a=(s=s||e._.numberToFormat)(l,c,n)}return a},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),function(){var t={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=t.suffixes.concat(n.suffixes.filter((function(e){return t.suffixes.indexOf(e)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,a){var o,s,l,c=e._.includes(i,"ib")?n:t,u=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=c.suffixes.length;o++)if(s=Math.pow(c.base,o),l=Math.pow(c.base,o+1),null===r||0===r||r>=s&&r<l){u+=c.suffixes[o],s>0&&(r/=s);break}return e._.numberToFormat(r,i,a)+u},unformat:function(r){var i,a,o=e._.stringToNumber(r);if(o){for(i=t.suffixes.length-1;i>=0;i--){if(e._.includes(r,t.suffixes[i])){a=Math.pow(t.base,i);break}if(e._.includes(r,n.suffixes[i])){a=Math.pow(n.base,i);break}}o*=a||1}return o}})}(),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a<s.before.length;a++)switch(s.before[a]){case"$":i=e._.insert(i,o.currency.symbol,a);break;case" ":i=e._.insert(i," ",a+o.currency.symbol.length-1)}for(a=s.after.length-1;a>=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!==typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function a(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],a,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e})?r.call(t,n,t,e):r)||(e.exports=i)},function(e,t,n){"use strict";var r=n(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).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,l,"next",e)}function l(e){r(o,i,a,s,l,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(47),i=n(48);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(0)),o=(0,r(n(49)).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(145),o=n.n(a),s=n(146),l=n.n(s);i.a.extend(o.a),i.a.extend(l.a);var c=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=c},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}},l=[/[+-]\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)}],c=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=c("months"),n=(c("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=c("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:l,ZZ:l};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,l=0;l<s;l+=1){var c=o[l],u=f[c],d=u&&u[0],h=u&&u[1];o[l]=h?{regex:d,parser:h}:c.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,l=i.parser,c=e.substr(r),u=a.exec(c)[0];l.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 l=!0===o[2],c=!0===o[3],u=l||c,f=o[2];c&&(f=o[2]),a=this.$locale(),!l&&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,l=r.minutes,c=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=l||0,y=c||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(20),i=n(8),a=n(191),o=n(2),s=["xs","sm","md","lg","xl"];function l(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,l=e.step,c=void 0===l?5:l,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)-c/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)-c/100).concat(a,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},u)}function c(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(152),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}},k={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 x(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,l=e.error,c=void 0===l?{light:v[300],main:v[500],dark:v[700]}:l,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,M=e.success,E=void 0===M?{light:b[300],main:b[500],dark:b[700]}:M,T=e.type,P=void 0===T?"light":T,_=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,k.text.primary)>=D?k.text.primary:O.text.primary}var z=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 x(e,"light",n,R),x(e,"dark",r,R),e.contrastText||(e.contrastText=N(e.main)),e},I={dark:k,light:O};return Object(a.a)(Object(o.a)({common:f,type:P,primary:z(n),secondary:z(s,"A400","A200","A700"),error:z(c),warning:z(j),info:z(C),success:z(E),grey:d,contrastThreshold:D,getContrastText:N,augmentColor:z,tonalOffset:R},I[P]),L)}function j(e){return Math.round(1e5*e)/1e5}var S={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function M(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?C:r,l=n.fontSize,c=void 0===l?14:l,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,k=n.pxToRem,x=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var w=c/14,M=k||function(e){return"".concat(e/y*w,"rem")},E=function(e,t,n,r,i){return Object(o.a)({fontFamily:s,fontWeight:e,fontSize:M(t),lineHeight:n},s===C?{letterSpacing:"".concat(j(r/t),"em")}:{},i,O)},T={h1:E(f,96,1.167,-1.5),h2:E(f,60,1.2,-.5),h3:E(h,48,1.167,0),h4:E(h,34,1.235,.25),h5:E(h,24,1.334,0),h6:E(v,20,1.6,.15),subtitle1:E(h,16,1.75,.15),subtitle2:E(v,14,1.57,.1),body1:E(h,16,1.5,.15),body2:E(h,14,1.43,.15),button:E(v,14,1.75,.4,S),caption:E(h,12,1.66,.4),overline:E(h,12,2.66,1,S)};return Object(a.a)(Object(o.a)({htmlFontSize:y,pxToRem:M,round:j,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:v,fontWeightBold:g},T),x,{clone:!1})}function E(){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 T=["none",E(0,2,1,-1,0,1,1,0,0,1,3,0),E(0,3,1,-2,0,2,2,0,0,1,5,0),E(0,3,3,-2,0,3,4,0,0,1,8,0),E(0,2,4,-1,0,4,5,0,0,1,10,0),E(0,3,5,-1,0,5,8,0,0,1,14,0),E(0,3,5,-1,0,6,10,0,0,1,18,0),E(0,4,5,-2,0,7,10,1,0,2,16,1),E(0,5,5,-3,0,8,10,1,0,3,14,2),E(0,5,6,-3,0,9,12,1,0,3,16,2),E(0,6,6,-3,0,10,14,1,0,4,18,3),E(0,6,7,-4,0,11,15,1,0,4,20,3),E(0,7,8,-4,0,12,17,2,0,5,22,4),E(0,7,8,-4,0,13,19,2,0,5,24,4),E(0,7,9,-4,0,14,21,2,0,5,26,4),E(0,8,9,-5,0,15,22,2,0,6,28,5),E(0,8,10,-5,0,16,24,2,0,6,30,5),E(0,8,11,-5,0,17,26,2,0,6,32,5),E(0,9,11,-5,0,18,28,2,0,7,34,6),E(0,9,12,-6,0,19,29,2,0,7,36,6),E(0,10,13,-6,0,20,31,3,0,8,38,7),E(0,10,13,-6,0,21,33,3,0,8,40,7),E(0,10,14,-6,0,22,35,3,0,8,42,7),E(0,11,14,-7,0,23,36,3,0,9,44,8),E(0,11,15,-7,0,24,38,3,0,9,46,8)],P={borderRadius:4},_=n(270);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(93);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=l(n),g=D(f),b=Object(a.a)({breakpoints:m,direction:"ltr",mixins:c(m,g,o),overrides:{},palette:v,props:{},shadows:T,typography:M(v,h),spacing:g,shape:P,transitions:A.a,zIndex:R.a},p),y=arguments.length,O=new Array(y>1?y-1:0),k=1;k<y;k++)O[k-1]=arguments[k];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),l=n(15),c=n(24),u=n(5),f=n(10),d=new c.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(c.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(c.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(l.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,l=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),l=r.end;;){var u=n.childAfter(l);if(!u||u==i)return null;if(!u.type.prop(c.c.skipped))return u.start<s?r:null;l=u.end}}(e):null;return l?s?e.column(l.start):e.column(l.end):e.baseIndent+(s?0:e.unit*n)}var y=new c.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(c.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 M(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=x(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}(),k=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 x(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(c){o.e(c)}finally{o.f()}if(!t.docChanged)return this;var l=[];return t.changes.iterChangedRanges((function(e,t,n,r){return l.push({fromA:e,toA:t,fromB:n,toB:r})})),e.advance((this.parse?w(this.parse,this.updatedTree).cache:this.cache).applyChanges(l),n,t.state.doc)}},{key:"startParse",value:function(e,t){this.parse=e.parser.startParse(new k(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 k(r),{cache:t,dialect:n.dialect}),a=x(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,M=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=x(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}(),E=n(105),T={bool:1,ignoring:2,on:3,group_left:4,group_right:5,offset:6},P={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=E.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:[[E.a.skipped,24,!0],[E.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 T[e.toLowerCase()]||-1}(e)<<1}},{term:57,get:function(e,t){return function(e,t){return P[e.toLowerCase()]||-1}(e)<<1|1}},{term:57,get:function(e){return _[e]||-1}}],tokenPrec:0}),A=26,R=36,L=38,N=39,z=104,I=107,F=109,$=113,B=117,Q=119,W=n(100),H=n(17),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(72),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,$);return n&&(n=U(n,114,57))?t.sliceDoc(n.start,n.end):""}function ne(e,t){var n,r,i,a,o,s,l,c,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)===I){y.push({kind:X.Duration});break}if((null===(r=t.parent)||void 0===r?void 0:r.type.id)===z){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)===$){var k=te(t,e);Z.filter((function(e){return e.label===k})).length>0&&y.push({kind:X.AggregateOpModifier}),y.push({kind:X.BinOp},{kind:X.Offset});break}}var x=null===(c=null===(l=null===(s=t.parent)||void 0===s?void 0:s.parent)||void 0===l?void 0:l.parent)||void 0===c?void 0:c.parent;if(!x){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})(x,A,A)?x.type.id!==R||q(x,0)?(x.type.id!==R||x.type.id===R&&q(x,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 F: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 I: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),l=Promise.resolve([]),c=!1,u=!0,f=Object(a.a)(s);try{var d=function(){var e=t.value;switch(e.kind){case X.Aggregation:l=l.then((function(e){return e.concat(ee.aggregateOp)}));break;case X.Function:l=l.then((function(e){return e.concat(ee.functionIdentifier)}));break;case X.BinOpModifier:l=l.then((function(e){return e.concat(ee.binOpModifier)}));break;case X.BinOp:l=l.then((function(e){return e.concat(ee.binOp)}));break;case X.MatchOp:l=l.then((function(e){return e.concat(ee.matchOp)}));break;case X.AggregateOpModifier:l=l.then((function(e){return e.concat(ee.aggregateOpModifier)}));break;case X.Duration:u=!1,l=l.then((function(e){return e.concat(ee.duration)}));break;case X.Offset:l=l.then((function(e){return e.concat([{label:"offset"}])}));break;case X.MetricName:l=l.then((function(e){return c=!0,n.autocompleteMetricName(e)}));break;case X.LabelName:l=l.then((function(t){return n.autocompleteLabelName(t,e.metricName)}));break;case X.LabelValue:l=l.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 l.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,l=e.start;return 30===e.type.id||115===e.type.id||34===e.type.id||e.type.id===F&&(null===(n=e.parent)||void 0===n?void 0:n.type.id)===B?l++: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)?l=e.lastChild.start:e.type.id!==I&&(0!==e.type.id||(null===(o=e.parent)||void 0===o?void 0:o.type.id)!==I&&(null===(s=e.parent)||void 0===s?void 0:s.type.id)!==z)||(l=t),l}(o,i),i,c,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(l){o.e(l)}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],l=o[1],c=t.get(s.replace(/(_count|_sum|_bucket)$/,""));if(c)if(c.length>1){var u,f=Object(a.a)(c);try{for(f.s();!(u=f.n()).done;){var d=u.value;""===l.detail?l.detail=d.type:l.detail!==d.type&&(l.detail="unknown",l.info="multiple different definitions for this metric"),""===l.info?l.info=d.help:l.info!==d.help&&(l.info="multiple different definitions for this metric")}}catch(m){f.e(m)}finally{f.f()}}else if(1===c.length){var h=c[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))),l.detail=p,l.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 l=n.get(o);void 0===l?n.set(o,new Set([s])):l.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,le=503,ce=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,le].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 ce(e.url,e.httpErrorHandler,e.lookbackInterval,e.fetchFn)):new re}var fe,de,he=n(101);!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 $:return de.vector;case I:return ge(e.firstChild);case F:return de.string;case 106:return de.scalar;case z: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 F: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 z:this.checkAST(U(e,A));break;case $: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),l=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 c=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,l=Object(a.a)(o);try{for(l.s();!(s=l.n()).done;){var c=s.value;n.matchingLabels.push(e.sliceDoc(c.start,c.end))}}catch(m){l.e(m)}finally{l.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!==c&&c.on){var u,f=Object(a.a)(c.matchingLabels);try{for(f.s();!(u=f.n()).done;){var d,h=u.value,p=Object(a.a)(c.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===c?l&&((null===c||void 0===c?void 0:c.card)!==pe.CardOneToMany&&(null===c||void 0===c?void 0:c.card)!==pe.CardManyToOne||this.addDiagnostic(e,"no grouping allowed for set operations"),(null===c||void 0===c?void 0:c.card)!==pe.CardManyToMany&&this.addDiagnostic(e,"set operations must always be many-to-many")):c.matchingLabels.length>0&&this.addDiagnostic(e,"vector matching only allowed between instant vectors"),r!==de.scalar&&i!==de.scalar||!l||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 l=0,c=0;c<r.length;c++){if((l=c)>=i.argTypes.length){if(0===i.variadic)break;l=i.argTypes.length-1}this.expectType(r[c],i.argTypes[l],"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}(),ke=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 xe=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 ke,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=[xe];if(this.enableCompletion){var i=xe.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 Tt}));var r=n(25),i=n(10),a=n(5),o=n(7),s=n(4),l=n(6),c=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 E.empty},update:function(e,t){var n=t.state.facet(d),r=t.annotation(c);if(r){var i=O.fromTransaction(t),o=r.side,s=0==o?e.undone:e.done;return s=i?k(s,s.length,n.minDepth,i):j(s,t.startState.selection),new E(0==o?r.rest:s,0==o?s:r.rest)}var l=t.annotation(u);if("full"!=l&&"before"!=l||(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"!=l&&"after"!=l||(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(l.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 k(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 x(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),k(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=M(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 M(e,t,n){var r=x(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 E=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(l.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++],l=n[o++];a>=s&&i<=l&&(r=!0)}})),r}(s.changes,t.changes)?k(o,o.length-1,a,new O(t.changes.compose(s.changes),x(t.effects,s.effects),s.mapped,s.startSelection,w)):k(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:c.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:c.of({side:e,rest:a}),filter:!1})}return null}}]),e}();E.empty=new E(w,w);var T=[{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}],P=n(16),_=n(15),D=n(32),A=function(e){Object(P.a)(n,e);var t=Object(_.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(l.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[F(),L.of(Object.assign(Object.assign({},R),e))]}var z=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"}}),I=a.f.define({combine:function(e){return e.some((function(e){return e}))}});function F(e){var t=[$,z];return e&&!1===e.fixed&&t.push(I.of(!0)),t}var $=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(l){r.e(l)}finally{r.f()}this.fixed=!t.state.facet(I),this.fixed&&(this.dom.style.position="sticky"),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}return Object(l.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 l=a.value;if(l.type==i.a.Text){r=l;break}}}catch(f){s.e(f)}finally{s.f()}}else r=e.type==i.a.Text?e:void 0;if(r){var c,u=Object(o.a)(n);try{for(u.s();!(c=u.n()).done;){c.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(I)!=!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,l=[],c=Object(o.a)(n);try{for(c.s();!(s=c.n()).done;){var u=s.value,f=t.indexOf(u);f<0?l.push(new Q(this.view,u)):(this.gutters[f].update(e),l.push(this.gutters[f]))}}catch(g){c.e(g)}finally{c.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=l;p<v.length;p++){var m=v[p];this.dom.appendChild(m.dom)}this.gutters=l}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(l.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(l.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(l.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,l=i,c=Object(o.a)(r);try{for(c.s();!(s=c.n()).done;){var u=s.value,f=u.toDOM(e);f&&this.dom.appendChild(f);var d=u.elementClass;d&&(l+=" "+d)}}catch(h){c.e(h)}finally{c.f()}this.dom.className=l}}}]),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(P.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(l.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(l){r.e(l)}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(P.a)(n,e);var t=Object(_.a)(n);function n(){return Object(s.a)(this,n),t.apply(this,arguments)}return Object(l.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))}),le={openText:"\u2304",closedText:"\u203a"},ce=function(e){Object(P.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(l.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(99),de=n(62),he=n(19),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,l=me(Object(he.b)(s,0));if(t==s)return l==s?we(e,s,i.indexOf(s+s+s)>-1):ke(e,s,l,r.before||pe.before);if(t==l)return xe(e,s,l)}}catch(c){a.e(c)}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),l=Object(o.a)(r);try{for(l.s();!(n=l.n()).done;){var c=n.value;if(c==s&&Oe(t.doc,e.head)==me(Object(he.b)(c,0)))return{changes:{from:e.head-c.length,to:e.head+c.length},range:a.d.cursor(e.head-c.length),annotations:a.l.userEvent.of("delete")}}}catch(u){l.e(u)}finally{l.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 ke(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 xe(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 l=n&&e.sliceDoc(o,o+3*t.length)==t+t+t;return{range:a.d.cursor(o+t.length*(l?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 c=e.sliceDoc(o-1,o);if(c!=t&&e.charCategorizer(o)(c)!=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},Me=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(l.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),l=this.match(s,o);if(l)return this.value=l,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}(),Ee=function(){function e(t,n,r){Object(s.a)(this,e),this.search=t,this.replace=n,this.caseInsensitive=r}return Object(l.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 Me(e,this.search,t,n,this.caseInsensitive?function(e){return e.toLowerCase()}:void 0)}},{key:"valid",get:function(){return!!this.search}}]),e}(),Te=a.i.define(),Pe=a.i.define(),_e=a.j.define({create:function(){return new De(new Ee("","",!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(Te)?e=new De(i.value,e.panel):i.is(Pe)&&(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(l.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 ze(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 Ie=Ne((function(e,t){var n=e.state.selection.primary,r=n.from,i=n.to,a=ze(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 Fe(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 $e=Ne((function(e,t){var n=t.query,r=e.state,i=Fe(n,r.doc,0,r.selection.primary.to-1)||Fe(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=ze(r.doc,r.selection.primary.from,n);if(!i)return!1;var a,o=r.selection.primary,s=o.from,l=o.to,c=[];if(i.from==s&&i.to==l&&(c.push({from:i.from,to:i.to,insert:n.replace}),i=ze(r.doc,i.to,n)),i){var u=0==c.length||c[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:c,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:Te.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:Pe.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:Pe.of(!1)}),!0},qe=[{key:"Mod-f",run:Ve,scope:"editor search-panel"},{key:"F3",run:Ie,shift:$e,scope:"editor search-panel"},{key:"Mod-g",run:Ie,shift:$e,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,l=[],c=0,u=new Me(t.doc,t.sliceDoc(o,s));!u.next().done;){if(l.length>1e3)return!1;u.value.from==o&&(c=l.length),l.push(a.d.range(u.value.from,u.value.to))}return n(t.update({selection:new a.d(l,c)})),!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,l=Object(o.a)(n);try{for(l.s();!(s=l.n()).done;){var c=s.value;r.appendChild("string"==typeof c?document.createTextNode(c):c)}}catch(u){l.e(u)}finally{l.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 Ee(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?$e:Ie)(e.view)):13==t.keyCode&&t.target==r&&(t.preventDefault(),Qe(e.view))}},[n,s("next",(function(){return Ie(e.view)}),[t("next")]),s("prev",(function(){return $e(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),l=e.state.sliceDoc(o,s);if(o!=i)for(var c=0;c<30;c++)if(!Ke.test(l[c+1])&&Ke.test(l[c])){l=l.slice(c);break}if(s!=a)for(var u=l.length-1;u>l.length-30;u--)if(!Ke.test(l[u-1])&&Ke.test(l[u])){l=l.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")+". "+l)}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(72),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 ct(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(l.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-lt,t.from),a=e.sliceDoc(t.to,t.to+lt),o=/\s*$/.exec(i)[0].length,s=/^\s*/.exec(a)[0].length,l=i.length-o;if(i.slice(l-this.open.length,l)==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*lt?n=r=e.sliceDoc(t.from,t.to):(n=e.sliceDoc(t.from,t.from+lt),r=e.sliceDoc(t.to-lt,t.to));var c=/^\s*/.exec(n)[0].length,u=/\s*$/.exec(r)[0].length,f=r.length-u-this.close.length;return n.slice(c,c+this.open.length)==this.open&&r.slice(f,f+this.close.length)==this.close?{open:{pos:t.from+c+this.open.length,margin:/\s/.test(n.charAt(c+this.open.length))?1:0},close:{pos:t.to-u-this.close.length,margin:/\s/.test(r.charAt(f-1))?1:0}}:null}}]),e}(),lt=50,ct=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(l.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 l=this.isRangeCommented(t,n);if(l.isRangeLineSkipped){if(e!=Ze.OnlyComment){for(var c=[],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&&l.isLineSkipped[p.number])){var v=p.from+l.minCol,m=l.minCol+this.lineCommentToken.length,g=" "==p.slice(m,m+1)?1:0;c.push({from:v,to:v+this.lineCommentToken.length+g})}}}catch(j){h.e(j)}finally{h.f()}}return t.update({changes:c})}}else if(e!=Ze.OnlyUncomment){for(var b=[],y=0;y<t.selection.ranges.length;y++){var O,k=i[y],x=Object(o.a)(k);try{for(x.s();!(O=x.n()).done;){var w=O.value;(k.length<=1||!l.isLineSkipped[w.number])&&b.push({from:w.from+l.minCol,insert:this.lineCommentToken+this.margin})}}catch(j){x.e(j)}finally{x.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 l=n.value,c=l.slice(0,Math.min(l.length,lt)),u=/^\s*/.exec(c)[0].length;(1==t.length||u<c.length)&&u<r&&(r=u),i&&(1==t.length||u<c.length)&&c.slice(u,u+this.lineCommentToken.length)!=this.lineCommentToken&&(i=!1),a[l.number]=u==c.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),l=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),l=Math.max(t.off,n.off),c=r;c<=i;c++){var u=e.doc.line(c);u.length<=l&&o.push(a.d.range(u.from+s,u.to+l))}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 l.length?o?a.d.create(l.concat(r.ranges)):a.d.create(l):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(l.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 l=e.visualLineAt(s.head);l.from>n&&(r.push(yt.range(l.from)),n=l.from)}}}catch(c){a.e(c)}finally{a.f()}return i.b.set(r)}}]),e}(),{decorations:function(e){return e.decorations}}),kt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100},xt=a.f.define({combine:function(e){return Object(a.m)(e,kt,{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(l.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(xt),n=e.state,r=n.selection;if(r.ranges.length>1)return i.b.none;var s,l=r.primary,c=null;if(l.empty){if(!t.highlightWordAroundCursor)return i.b.none;if(c=n.charCategorizer(l.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 l=r.findClusterBreak(o,!0);if(n(r.slice(o,l))!=a.c.Word)break;o=l}return i==o?null:r.slice(i,o)}(n.doc,l.head,c)))return i.b.none}else{var u=l.to-l.from;if(u<t.minSelectionLength||u>200)return i.b.none;if(!(s=n.sliceDoc(l.from,l.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 Me(n.doc,s,p.from,p.to);!v.next().done;){var m=v.value,g=m.from,b=m.to;if((!c||(0==g||c(n.sliceDoc(g-1,g))!=a.c.Word)&&(b==n.doc.length||c(n.sliceDoc(b,b+1))!=a.c.Word))&&(c&&g<=l.from&&b>=l.to?d.push(jt.range(g,b)):(g>=l.to||b<=l.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"}}),Mt=n(100),Et=n(101),Tt=[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({},le),e),n=new ce(t,!0),r=new ce(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 ce(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)(),Mt.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(xt.of(e)),t}(),Object(i.k)([].concat(Object(r.a)(ye),Object(r.a)(fe.a),Object(r.a)(qe),Object(r.a)(T),Object(r.a)(re),Object(r.a)(nt),Object(r.a)(bt),Object(r.a)(tt.b),Object(r.a)(Et.a)))]},function(e,t,n){"use strict";var r=n(79),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"]},l=function(e,t){return e&&!t[e+"Key"]};function c(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&&c(e,r.axis,n))return[r];var i=[];return Object(a.c)(n.scales,(function(t){c(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,l=e.axis,c=e.options,u=n&&(n[s]||n[l])||{},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 c.min=r,c.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,l=g[s]||0,c=e.getValueForPixel(e.getPixelForValue(i+l)-t),u=e.getValueForPixel(e.getPixelForValue(a+l)-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(c)||isNaN(u)||c<h||u>m)||v(e,{min:c,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)}},k={category:function(e,t,n){var r,i=e.getLabels().length-1,a=e.min,o=e.max,s=Math.max(o-a,1),l=Math.round(function(e){return e.isHorizontal()?e.width:e.height}(e)/Math.max(s,10)),c=Math.round(Math.abs(t/l));return t<-l?(o=Math.min(o+c,i),a=1===s?o:o-s,r=o===i):t>l&&(a=Math.max(0,a-c),o=1===s?a:a+s,r=0===a),v(e,{min:a,max:o},n)||r},default:b,logarithmic:y,timeseries:y};function x(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}})})),x(r,n),x(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,l=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,k=b.overScaleMode;w(e,p);var x=1!==o&&c(O,"x",e),C=1!==l&&c(O,"y",e),M=k&&u(k,h,e);Object(a.c)(M||e.scales,(function(e){e.isHorizontal()&&x?j(e,o,h,m):!e.isHorizontal()&&C&&j(e,l,h,m)})),e.update(n),Object(a.n)(g.onZoom,[{chart:e}])}function M(e,t,n){var r=e.getValueForPixel(t),i=e.getValueForPixel(n);return{min:Math.min(r,i),max:Math.max(r,i)}}function E(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 T(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=k[e.type]||k.default;Object(a.n)(s,[e,t,n])?i[e.id]=0:i[e.id]=t}function P(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,l=i.y,u=void 0===l?0:l,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&&c(b,"x",e),k=0!==u&&c(b,"y",e);Object(a.c)(n||e.scales,(function(e){e.isHorizontal()&&O?T(e,s,v,f):!e.isHorizontal()&&k&&T(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,l=o.top,c={x:t.clientX-s,y:t.clientY-l};if(!1===Object(a.n)(r,[{chart:e,event:t,point:c}]))return Object(a.n)(i,[{chart:e,event:t}]),!1}}function L(e,t){var n=d(e),r=n.options,i=r.pan,c=r.zoom,u=void 0===c?{}:c;if(s(o(i),t)||l(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=c(t,"x",e),l=c(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),l&&(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:l&&b?1+(m-b)/m:1}}function z(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,l=void 0===s?0:s,u=N(e,i,n.dragStart,t),f=c(i,"x",e)?u.width:0,h=c(i,"y",e)?u.height:0,p=Math.sqrt(f*f+h*h);if(n.dragStart=n.dragEnd=null,p<=l)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,l=o.zoom,u=l.mode,f=void 0===u?"xy":u;w(e,i);var h=c(f,"x",e),p=c(f,"y",e);Object(a.c)(e.scales,(function(e){e.isHorizontal()&&h?v(e,M(e,t.x,n.x),s,!0):!e.isHorizontal()&&p&&v(e,M(e,t.y,n.y),s,!0)})),e.update(r),Object(a.n)(l.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 I(e,t){var n=d(e),r=n.handlers.onZoomComplete,i=n.options.zoom;if(function(e,t,n){if(l(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(),c=1+(t.deltaY>=0?-i.wheel.speed:i.wheel.speed);C(e,{x:c,y:c,focalPoint:{x:t.clientX-s.left,y:t.clientY-s.top}}),r&&r()}}function F(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 $(e,t){return function(n,r){var i=t.options,c=i.pan,u=i.zoom,f=void 0===u?{}:u;if(!c||!c.enabled)return!1;var d=r&&r.srcEvent;return!d||(!(!t.panning&&"mouse"===r.pointerType&&(l(o(c),d)||s(o(f.drag),d)))||(Object(a.n)(c.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]),l=t.options.zoom.mode;C(e,{x:s.x&&c(l,"x",e)?a:1,y:s.y&&c(l,"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,P(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,l=new i.a.Manager(r);s&&s.pinch.enabled&&(l.add(new i.a.Pinch),l.on("pinchstart",(function(){return function(e,t){t.options.zoom.pinch.enabled&&(t.scale=1)}(0,n)})),l.on("pinch",(function(t){return B(e,n,t)})),l.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&&(l.add(new i.a.Pan({threshold:o.threshold,enable:$(e,n)})),l.on("panstart",(function(t){return function(e,t,n){var r=t.options.pan,i=r.enabled,o=r.overScaleMode,s=r.onPanStart,l=r.onPanRejected;if(i){var c=n.target.getBoundingClientRect(),f={x:n.center.x-c.left,y:n.center.y-c.top};if(!1===Object(a.n)(s,[{chart:e,event:n,point:f}]))return Object(a.n)(l,[{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)})),l.on("panmove",(function(t){return Q(e,n,t)})),l.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,l)}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 P(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 E(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",I),F(e,"onZoomComplete",o,250)):_(e,"wheel"),a.enabled?(D(e,n,"mousedown",L),D(e,n.ownerDocument,"mouseup",z)):(_(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,l=o.top,c=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,l,c,u),f.borderWidth>0&&(h.lineWidth=f.borderWidth,h.strokeStyle=f.borderColor||"rgba(225,225,225)",h.strokeRect(s,l,c,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:k,zoomFunctions:O};t.a=V},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n.n(r),a=n(90);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),l=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,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(c,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"})(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),l=n(18),c=a.forwardRef((function(e,t){var n=e.children,s=e.classes,c=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,c,"inherit"!==f&&s["color".concat(Object(l.a)(f))],"default"!==v&&s["fontSize".concat(Object(l.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)}));c.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"})(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),l=n(22),c=n(86),u=n(18),f=a.forwardRef((function(e,t){var n=e.edge,s=void 0!==n&&n,l=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,k=Object(i.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.createElement(c.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},k),a.createElement("span",{className:f.label},l))}));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(l.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(l.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(l.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(109);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,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.call(t,r)&&!l.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:c,ref:u,props:a,_owner:o.current}}t.jsx=c,t.jsxs=c},function(e,t,n){"use strict";var r=n(109),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,s=60110,l=60112;t.Suspense=60113;var c=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"),l=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=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},k=Object.prototype.hasOwnProperty,x={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)k.call(t,r)&&!x.hasOwnProperty(r)&&(a[r]=t[r]);var l=arguments.length-2;if(1===l)a.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];a.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===a[r]&&(a[r]=l[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 M(e,t,n,r,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case i:case a:l=!0}}if(l)return o=o(l=e),e=""===r?"."+C(l,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(S,"$&/")+"/"),M(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||l&&l.key===o.key?"":(""+o.key).replace(S,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var u=r+C(s=e[c],c);l+=M(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),c=0;!(s=e.next()).done;)l+=M(s=s.value,t,n,u=r+C(s,c++),o);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function E(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function T(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 P={current:null};function _(){var e=P.current;if(null===e)throw Error(h(321));return e}var D={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:O,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:E,forEach:function(e,t,n){E(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return E(e,(function(){t++})),t},toArray:function(e){return E(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,l=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,l=O.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(u in t)k.call(t,u)&&!x.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==c?c[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){c=Array(u);for(var f=0;f<u;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:i,type:e.type,key:o,ref:s,props:a,_owner:l}},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:l,render:e}},t.isValidElement=j,t.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,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(109),a=n(174);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,l={};function c(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(l[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 k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,w=60106,j=60107,S=60108,C=60114,M=60109,E=60110,T=60112,P=60113,_=60120,D=60115,A=60116,R=60121,L=60128,N=60129,z=60130,I=60131;if("function"===typeof Symbol&&Symbol.for){var F=Symbol.for;x=F("react.element"),w=F("react.portal"),j=F("react.fragment"),S=F("react.strict_mode"),C=F("react.profiler"),M=F("react.provider"),E=F("react.context"),T=F("react.forward_ref"),P=F("react.suspense"),_=F("react.suspense_list"),D=F("react.memo"),A=F("react.lazy"),R=F("react.block"),F("react.scope"),L=F("react.opaque.id"),N=F("react.debug_trace_mode"),z=F("react.offscreen"),I=F("react.legacy_hidden")}var $,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===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+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(l){var r=l}Reflect.construct(e,[],t)}else{try{t.call()}catch(l){r=l}e.call(t.prototype)}else{try{throw Error()}catch(l){r=l}e()}}catch(l){if(l&&r&&"string"===typeof l.stack){for(var i=l.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 P:return"Suspense";case _:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case M:return(e._context.displayName||"Context")+".Provider";case T: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 le(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 ce(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 ke(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 xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ke(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 Me=null,Ee=null,Te=null;function Pe(e){if(e=ei(e)){if("function"!==typeof Me)throw Error(o(280));var t=e.stateNode;t&&(t=ni(t),Me(e.stateNode,e.type,t))}}function _e(e){Ee?Te?Te.push(e):Te=[e]:Ee=e}function De(){if(Ee){var e=Ee,t=Te;if(Te=Ee=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(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,ze=!1,Ie=!1;function Fe(){null===Ee&&null===Te||(Le(),De())}function $e(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,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}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,l){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,l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.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,lt=null,ct=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":lt=null;break;case"mouseover":case"mouseout":ct=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!==lt&&bt(lt)&&(lt=null),null!==ct&&bt(ct)&&(ct=null),ut.forEach(yt),ft.forEach(yt)}function kt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ot)))}function xt(e){function t(t){return kt(t,e)}if(0<ot.length){kt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&kt(st,e),null!==lt&&kt(lt,e),null!==ct&&kt(ct,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 Mt(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 Et=Mt("animationend"),Tt=Mt("animationiteration"),Pt=Mt("animationstart"),_t=Mt("transitionend"),Dt=new Map,At=new Map,Rt=["abort","abort",Et,"animationEnd",Tt,"animationIteration",Pt,"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),c(i,[r])}}(0,a.unstable_now)();var Nt=8;function zt(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 It(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 l=a&~o;0!==l?(r=zt(l),i=Nt):0!==(s&=a)&&(r=zt(s),i=Nt)}else 0!==(a=n&~o)?(r=zt(a),i=Nt):0!==s&&(r=zt(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(zt(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 Ft(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function $t(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?$t(10,t):e;case 10:return 0===(e=Bt(192&~t))?$t(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){ze||Le();var i=Zt,a=ze;ze=!0;try{Re(i,e,t,n,r)}finally{(ze=a)||Fe()}}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 lt=mt(lt,e,t,n,r,i),!0;case"mouseover":return ct=mt(ct,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 ln(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 cn,un,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=ln(dn),pn=i({},dn,{view:0,detail:0}),vn=ln(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:Mn,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?(cn=e.screenX-fn.screenX,un=e.screenY-fn.screenY):un=cn=0,fn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),gn=ln(mn),bn=ln(i({},mn,{dataTransfer:0})),yn=ln(i({},pn,{relatedTarget:0})),On=ln(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=ln(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=ln(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 Mn(){return Cn}var En=ln(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:Mn,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}})),Tn=ln(i({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),_n=ln(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Dn=ln(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,zn=f&&(!Rn||Ln&&8<Ln&&11>=Ln),In=String.fromCharCode(32),Fn=!1;function $n(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,ze)e(t);else{ze=!0;try{Ae(e,t)}finally{ze=!1,Fe()}}}}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},lr=Object.prototype.hasOwnProperty;function cr(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(!lr.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&&cr(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 kr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<kr.length;xr++)At.set(kr[xr],0);u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("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,l,c){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],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Sr(i,s,c),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,c=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Sr(i,s,c),a=l}}}if(Ue)throw e=qe,Ue=!1,qe=null,e}function Mr(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(_r(t,e,2,!1),n.add(r))}var Er="_reactListening"+Math.random().toString(36).slice(2);function Tr(e){e[Er]||(e[Er]=!0,s.forEach((function(t){jr.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(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 l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=Jr(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Ie)return e(t,n);Ie=!0;try{Ne(e,t,n)}finally{Ie=!1,Fe()}}((function(){var r=a,i=Ce(n),o=[];e:{var s=Dt.get(e);if(void 0!==s){var l=hn,c=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":l=En;break;case"focusin":c="focus",l=yn;break;case"focusout":c="blur",l=yn;break;case"beforeblur":case"afterblur":l=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":l=gn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Et:case Tt:case Pt:l=On;break;case _t:l=_n;break;case"scroll":l=vn;break;case"wheel":l=Dn;break;case"copy":case"cut":case"paste":l=kn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}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=$e(p,d))&&u.push(Ar(p,v,h)))),f)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,i),o.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!Jr(c)&&!c[Gr])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Jr(c):null)&&(c!==(f=Ke(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=gn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:ti(l),h=null==c?s:ti(c),(s=new u(v,p+"leave",l,n,i)).target=f,s.relatedTarget=h,v=null,Jr(i)===r&&((u=new u(d,p+"enter",c,n,i)).target=h,u.relatedTarget=f,v=u),f=v,l&&c)e:{for(d=c,p=0,h=u=l;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!==l&&Nr(o,s,l,u,!1),null!==c&&null!==f&&Nr(o,f,c,u,!0)}if("select"===(l=(s=r?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Kn;else if(Hn(s))if(Gn)m=or;else{m=ir;var g=rr}else(l=s.nodeName)&&"input"===l.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?$n(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(zn&&"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 xn(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:(Fn=!0,In);case"textInput":return(e=t.data)===In&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Qn)return"compositionend"===e||!Rn&&$n(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 zn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Rr(r,"onBeforeInput")).length&&(i=new xn("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=$e(e,n))&&r.unshift(Ar(e,a,i)),null!=(a=$e(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,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(l=$e(n,a))&&o.unshift(Ar(n,l,s)):i||null!=(l=$e(n,a))&&o.push(Ar(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function zr(){}var Ir=null,Fr=null;function $r(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 li(e,t){ai++,ii[ai]=e.current,e.current=t}var ci={},ui=oi(ci),fi=oi(!1),di=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;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!==ci)throw Error(o(168));li(ui,t),li(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||ci,di=ui.current,li(ui,e),li(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),li(ui,e)):si(fi),li(fi,n)}var Oi=null,ki=null,xi=a.unstable_runWithPriority,wi=a.unstable_scheduleCallback,ji=a.unstable_cancelCallback,Si=a.unstable_shouldYield,Ci=a.unstable_requestPaint,Mi=a.unstable_now,Ei=a.unstable_getCurrentPriorityLevel,Ti=a.unstable_ImmediatePriority,Pi=a.unstable_UserBlockingPriority,_i=a.unstable_NormalPriority,Di=a.unstable_LowPriority,Ai=a.unstable_IdlePriority,Ri={},Li=void 0!==Ci?Ci:function(){},Ni=null,zi=null,Ii=!1,Fi=Mi(),$i=1e4>Fi?Mi:function(){return Mi()-Fi};function Bi(){switch(Ei()){case Ti:return 99;case Pi: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 Ti;case 98:return Pi;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),xi(e,t)}function Hi(e,t,n){return e=Qi(e),wi(e,t,n)}function Vi(){if(null!==zi){var e=zi;zi=null,ji(e)}Ui()}function Ui(){if(!Ii&&null!==Ni){Ii=!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(Ti,Vi),n}finally{Ii=!1}}}var qi=k.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 la(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 ca(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,l=a.shared.pending;if(null!==l){a.shared.pending=null;var c=l,u=c.next;c.next=null,null===s?o=u:s.next=u,s=c;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=c)}}if(null!==o){for(d=a.baseState,s=0,f=u=c=null;;){l=o.lane;var h=o.eventTime;if((r&l)===l){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(l=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){d=p.call(h,d,l);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(l="function"===typeof(p=v.payload)?p.call(h,d,l):p)||void 0===l)break e;d=i({},d,l);break e;case 2:ia=!0}}null!==o.callback&&(e.flags|=32,null===(l=a.effects)?a.effects=[o]:l.push(o))}else h={eventTime:h,lane:l,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(u=f=h,c=d):f=f.next=h,s|=l;if(null===(o=o.next)){if(null===(l=a.shared.pending))break;o=l.next,l.next=null,a.lastBaseUpdate=l,a.shared.pending=null}}null===f&&(c=d),a.baseState=c,a.firstBaseUpdate=u,a.lastBaseUpdate=f,Is|=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=cl(),i=ul(e),a=sa(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),la(e,a),fl(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cl(),i=ul(e),a=sa(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),la(e,a),fl(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cl(),r=ul(e),i=sa(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),la(e,i),fl(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||(!cr(n,r)||!cr(i,a))}function ma(e,t,n){var r=!1,i=ci,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):ci),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 ka(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 xa(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=Wl(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 l(e,t,n,r){return null===t||6!==t.tag?((t=ql(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(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=Hl(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=Yl(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=Vl(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=ql(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Hl(t.type,t.key,t.props,null,e.mode,n)).ref=Oa(e,null,t),n.return=e,n;case w:return(t=Yl(t,e.mode,n)).return=e,t}if(ya(t)||Q(t))return(t=Vl(t,e.mode,n,null)).return=e,t;ka(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:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?n.type===j?f(e,t,n.props.children,r,i):c(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);ka(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===j?f(t,e,r.props.children,i,r.key):c(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);ka(t,r)}return null}function v(i,o,s,l){for(var c=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],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),o=a(g,o,v),null===u?c=g:u.sibling=g,u=g,f=m}if(v===s.length)return n(i,f),c;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],l))&&(o=a(f,o,v),null===u?c=f:u.sibling=f,u=f);return c}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),o=a(m,o,v),null===u?c=m:u.sibling=m,u=m);return e&&f.forEach((function(e){return t(i,e)})),c}function m(i,s,l,c){var u=Q(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var f=u=null,v=s,m=s=0,g=null,b=l.next();null!==v&&!b.done;m++,b=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var y=h(i,v,b.value,c);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=l.next())null!==(b=d(i,b.value,c))&&(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=l.next())null!==(b=p(v,i,m,b.value,c))&&(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,l){var c="object"===typeof a&&null!==a&&a.type===j&&null===a.key;c&&(a=a.props.children);var u="object"===typeof a&&null!==a;if(u)switch(a.$$typeof){case x:e:{for(u=a.key,c=r;null!==c;){if(c.key===u){switch(c.tag){case 7:if(a.type===j){n(e,c.sibling),(r=i(c,a.props.children)).return=e,e=r;break e}break;default:if(c.elementType===a.type){n(e,c.sibling),(r=i(c,a.props)).ref=Oa(e,c,a),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}a.type===j?((r=Vl(a.props.children,e.mode,l,a.key)).return=e,e=r):((l=Hl(a.type,a.key,a.props,null,e.mode,l)).ref=Oa(e,r,a),l.return=e,e=l)}return s(e);case w:e:{for(c=a.key;null!==r;){if(r.key===c){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=Yl(a,e.mode,l)).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=ql(a,e.mode,l)).return=e,e=r),s(e);if(ya(a))return v(e,r,a,l);if(Q(a))return m(e,r,a,l);if(u&&ka(e,a),"undefined"===typeof a&&!c)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=xa(!0),ja=xa(!1),Sa={},Ca=oi(Sa),Ma=oi(Sa),Ea=oi(Sa);function Ta(e){if(e===Sa)throw Error(o(174));return e}function Pa(e,t){switch(li(Ea,t),li(Ma,e),li(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),li(Ca,t)}function _a(){si(Ca),si(Ma),si(Ea)}function Da(e){Ta(Ea.current);var t=Ta(Ca.current),n=pe(t,e.type);t!==n&&(li(Ma,e),li(Ca,n))}function Aa(e){Ma.current===e&&(si(Ca),si(Ma))}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,za=null,Ia=!1;function Fa(e,t){var n=Bl(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 $a(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(Ia){var t=za;if(t){var n=t;if(!$a(e,t)){if(!(t=Vr(n.nextSibling))||!$a(e,t))return e.flags=-1025&e.flags|2,Ia=!1,void(Na=e);Fa(Na,n)}Na=e,za=Vr(t.firstChild)}else e.flags=-1025&e.flags|2,Ia=!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(!Ia)return Qa(e),Ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=za;t;)Fa(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){za=Vr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}za=null}}else za=Na?Vr(e.stateNode.nextSibling):null;return!0}function Ha(){za=Na=null,Ia=!1}var Va=[];function Ua(){for(var e=0;e<Va.length;e++)Va[e]._workInProgressVersionPrimary=null;Va.length=0}var qa=k.ReactCurrentDispatcher,Ya=k.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?Po:_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=To,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 l=s=a=null,c=i;do{var u=c.lane;if((Xa&u)===u)null!==l&&(l=l.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===l?(s=l=f,a=r):l=l.next=f,Ka.lanes|=u,Is|=u}c=c.next}while(null!==c&&c!==i);null===l?a=r:l.next=s,sr(r,t.memoizedState)||(Ro=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function lo(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 co(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=Ps;if(null===i)throw Error(o(349));var a=t._getVersion,s=a(t._source),l=qa.current,c=l.useState((function(){return co(i,t,n)})),u=c[1],f=c[0];c=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},l.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=ul(m),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var l=31-Ht(o),c=1<<l;r[l]|=e,o&=~c}}}),[n,t,r]),l.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=ul(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=Eo.bind(null,Ka,e),c.queue=e,c.baseQueue=null,f=co(i,t,n),c.memoizedState=c.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=Eo.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 ko(e,t){return bo(4,2,e,t)}function xo(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,xo.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 Mo(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 Eo(e,t,n){var r=cl(),i=ul(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,l=o(s,n);if(a.eagerReducer=o,a.eagerState=l,sr(l,s))return}catch(c){}fl(e,i,r)}}var To={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},Po={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,xo.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=Eo.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=Mo.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(Ia){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:ko,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:ko,useMemo:Co,useReducer:lo,useRef:mo,useState:function(){return lo(oo)},useDebugValue:jo,useDeferredValue:function(e){var t=lo(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=lo(oo)[0];return[mo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return lo(oo)[0]},unstable_isNewReconciler:!1},Ao=k.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 zo(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Ql(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Hl(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Io(e,t,o,r,i,a))}return o=e.child,0===(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,a):(t.flags|=1,(e=Wl(o,r)).ref=t.ref,e.return=t,t.child=e)}function Io(e,t,n,r,i,a){if(null!==e&&cr(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 Fo(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},yl(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},yl(t,e),null;t.memoizedState={baseLanes:0},yl(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,yl(t,r);return Lo(e,t,i,n),t.child}function $o(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 l=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=ra(c):c=hi(t,c=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||l!==c)&&ga(t,o,r,c),ia=!1;var d=t.memoizedState;o.state=d,ua(t,r,o,i),l=t.memoizedState,s!==r||d!==l||fi.current||ia?("function"===typeof u&&(ha(t,n,u,r),l=t.memoizedState),(s=ia||va(t,n,s,r,d,l,c))?(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=l),o.props=r,o.state=l,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Yi(t.type,s),o.props=c,f=t.pendingProps,d=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=ra(l):l=hi(t,l=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!==l)&&ga(t,o,r,l),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),(c=ia||va(t,n,c,r,d,p,l))?(u||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"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=l,r=c):("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){$o(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),Pa(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),li(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=Ul({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=Ul(t,i,0,null),n=Vl(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=Wl(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=Wl(o,s),null!==e?r=Wl(e,r):(r=Vl(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(li(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),Is|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Wl(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wl(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Ia)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=Ta(Ea.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=Ta(Ca.current),Wa(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;switch(r[Xr]=t,r[Kr]=s,n){case"dialog":Mr("cancel",r),Mr("close",r);break;case"iframe":case"object":case"embed":Mr("load",r);break;case"video":case"audio":for(e=0;e<wr.length;e++)Mr(wr[e],r);break;case"source":Mr("error",r);break;case"img":case"image":case"link":Mr("error",r),Mr("load",r);break;case"details":Mr("toggle",r);break;case"input":ee(r,s),Mr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Mr("invalid",r);break;case"textarea":le(r,s),Mr("invalid",r)}for(var c in je(n,s),e=null,s)s.hasOwnProperty(c)&&(a=s[c],"children"===c?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):l.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&Mr("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=zr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Xr]=t,e[Kr]=r,Vo(e,t),t.stateNode=e,c=Se(n,r),n){case"dialog":Mr("cancel",e),Mr("close",e),a=r;break;case"iframe":case"object":case"embed":Mr("load",e),a=r;break;case"video":case"audio":for(a=0;a<wr.length;a++)Mr(wr[a],e);a=r;break;case"source":Mr("error",e),a=r;break;case"img":case"image":case"link":Mr("error",e),Mr("load",e),a=r;break;case"details":Mr("toggle",e),a=r;break;case"input":ee(e,r),a=J(e,r),Mr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Mr("invalid",e);break;case"textarea":le(e,r),a=se(e,r),Mr("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?xe(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&&(l.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Mr("scroll",e):null!=f&&O(e,s,f,c))}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=zr)}$r(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=Ta(Ea.current),Ta(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===Ps||0===(134217727&Is)&&0===(134217727&Fs)||vl(Ps,Ds))),(r||n)&&(t.flags|=4),null);case 4:return _a(),null===e&&Tr(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===(c=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!==(c=La(e))){for(t.flags|=64,rs(r,!1),null!==(s=c.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===(c=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=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return li(Ra,1&Ra.current|2),t.child}e=e.sibling}null!==r.tail&&$i()>Ws&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=La(c))){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&&!c.alternate&&!Ia)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$i()-r.renderingStartTime>Ws&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$i(),n.sibling=null,t=Ra.current,li(Ra,s?1&t|2:1&t),n):null;case 23:case 24:return Ol(),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 Ol(),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,Ta(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=zr)}for(f in je(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var c=a[f];for(o in c)c.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(l.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var u=r[f];if(c=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&u!==c&&(null!=u||null!=c))if("style"===f)if(c){for(o in c)!c.hasOwnProperty(o)||u&&u.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in u)u.hasOwnProperty(o)&&c[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,c=c?c.__html:void 0,null!=u&&c!==u&&(s=s||[]).push(f,u)):"children"===f?"string"!==typeof u&&"number"!==typeof u||(s=s||[]).push(f,""+u):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(l.hasOwnProperty(f)?(null!=u&&"onScroll"===f&&Mr("scroll",e),s||c===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 ls="function"===typeof WeakMap?WeakMap:Map;function cs(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){zl(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)&&(Rl(n,e),Al(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&&$r(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&&xt(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=ke("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(ki&&"function"===typeof ki.onCommitFiberUnmount)try{ki.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))Rl(t,n);else{r=t;try{i()}catch(a){zl(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){zl(t,a)}break;case 5:ds(t);break;case 4:xs(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):ks(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=zr));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 ks(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(ks(e,t,n),e=e.sibling;null!==e;)ks(e,t,n),e=e.sibling}function xs(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,l=i,c=l;;)if(ms(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===l)break e;for(;null===c.sibling;){if(null===c.return||c.return===l)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):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],l=a[i+1];"style"===s?xe(n,l):"dangerouslySetInnerHTML"===s?ge(n,l):"children"===s?be(n,l):O(n,s,l,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(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,xt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Qs=$i(),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=Fl.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,Ms=k.ReactCurrentDispatcher,Es=k.ReactCurrentOwner,Ts=0,Ps=null,_s=null,Ds=0,As=0,Rs=oi(0),Ls=0,Ns=null,zs=0,Is=0,Fs=0,$s=0,Bs=null,Qs=0,Ws=1/0;function Hs(){Ws=$i()+500}var Vs,Us=null,qs=!1,Ys=null,Xs=null,Ks=!1,Gs=null,Zs=90,Js=[],el=[],tl=null,nl=0,rl=null,il=-1,al=0,ol=0,sl=null,ll=!1;function cl(){return 0!==(48&Ts)?$i():-1!==il?il:il=$i()}function ul(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Bi()?1:2;if(0===al&&(al=zs),0!==qi.transition){0!==ol&&(ol=null!==Bs?Bs.pendingLanes:0),e=al;var t=4186112&~ol;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Bi(),0!==(4&Ts)&&98===e?e=$t(12,al):e=$t(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),al),e}function fl(e,t,n){if(50<nl)throw nl=0,rl=null,Error(o(185));if(null===(e=dl(e,t)))return null;Wt(e,t,n),e===Ps&&(Fs|=t,4===Ls&&vl(e,Ds));var r=Bi();1===t?0!==(8&Ts)&&0===(48&Ts)?ml(e):(hl(e,n),0===Ts&&(Hs(),Vi())):(0===(4&Ts)||98!==r&&99!==r||(null===tl?tl=new Set([e]):tl.add(e)),hl(e,n)),Bs=e}function dl(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 hl(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,s=e.pendingLanes;0<s;){var l=31-Ht(s),c=1<<l,u=a[l];if(-1===u){if(0===(c&r)||0!==(c&i)){u=t,zt(c);var f=Nt;a[l]=10<=f?u+250:6<=f?u+5e3:-1}}else u<=t&&(e.expiredLanes|=c);s&=~c}if(r=It(e,e===Ps?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=ml.bind(null,e),null===Ni?(Ni=[n],zi=wi(Ti,Ui)):Ni.push(n),n=Ri):14===t?n=Hi(99,ml.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),pl.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function pl(e){if(il=-1,ol=al=0,0!==(48&Ts))throw Error(o(327));var t=e.callbackNode;if(Dl()&&e.callbackNode!==t)return null;var n=It(e,e===Ps?Ds:0);if(0===n)return null;var r=n,i=Ts;Ts|=16;var a=wl();for(Ps===e&&Ds===r||(Hs(),kl(e,r));;)try{Cl();break}catch(l){xl(e,l)}if(Ji(),Ms.current=a,Ts=i,null!==_s?r=0:(Ps=null,Ds=0,r=Ls),0!==(zs&Fs))kl(e,0);else if(0!==r){if(2===r&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=Ft(e))&&(r=jl(e,n))),1===r)throw t=Ns,kl(e,0),vl(e,n),hl(e,$i()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Tl(e);break;case 3:if(vl(e,n),(62914560&n)===n&&10<(r=Qs+500-$i())){if(0!==It(e,0))break;if(((i=e.suspendedLanes)&n)!==n){cl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Qr(Tl.bind(null,e),r);break}Tl(e);break;case 4:if(vl(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=$i()-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(Tl.bind(null,e),n);break}Tl(e);break;case 5:Tl(e);break;default:throw Error(o(329))}}return hl(e,$i()),e.callbackNode===t?pl.bind(null,e):null}function vl(e,t){for(t&=~$s,t&=~Fs,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 ml(e){if(0!==(48&Ts))throw Error(o(327));if(Dl(),e===Ps&&0!==(e.expiredLanes&Ds)){var t=Ds,n=jl(e,t);0!==(zs&Fs)&&(n=jl(e,t=It(e,t)))}else n=jl(e,t=It(e,0));if(0!==e.tag&&2===n&&(Ts|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Ft(e))&&(n=jl(e,t))),1===n)throw n=Ns,kl(e,0),vl(e,t),hl(e,$i()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tl(e),hl(e,$i()),null}function gl(e,t){var n=Ts;Ts|=1;try{return e(t)}finally{0===(Ts=n)&&(Hs(),Vi())}}function bl(e,t){var n=Ts;Ts&=-2,Ts|=8;try{return e(t)}finally{0===(Ts=n)&&(Hs(),Vi())}}function yl(e,t){li(Rs,As),As|=t,zs|=t}function Ol(){As=Rs.current,si(Rs)}function kl(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:Ol()}n=n.return}Ps=e,_s=Wl(e.current,null),Ds=As=zs=t,Ls=0,Ns=null,$s=Fs=Is=0}function xl(e,t){for(;;){var n=_s;try{if(Ji(),qa.current=To,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,Es.current=null,null===n||null===n.return){Ls=1,Ns=t,_s=null;break}e:{var a=e,o=n.return,s=n,l=t;if(t=Ds,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var c=l;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(c),d.updateQueue=g}else m.add(c);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,la(s,b)}s.lanes|=1;break e}l=void 0,s=t;var y=a.pingCache;if(null===y?(y=a.pingCache=new ls,l=new Set,y.set(c,l)):void 0===(l=y.get(c))&&(l=new Set,y.set(c,l)),!l.has(s)){l.add(s);var O=Il.bind(null,a,c,s);c.then(O,O)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);l=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),l=os(l,s),d=o;do{switch(d.tag){case 3:a=l,d.flags|=4096,t&=-t,d.lanes|=t,ca(d,cs(0,a,t));break e;case 1:a=l;var k=d.type,x=d.stateNode;if(0===(64&d.flags)&&("function"===typeof k.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Xs||!Xs.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,ca(d,us(d,a,t));break e}}d=d.return}while(null!==d)}El(n)}catch(w){t=w,_s===n&&null!==n&&(_s=n=n.return);continue}break}}function wl(){var e=Ms.current;return Ms.current=To,null===e?To:e}function jl(e,t){var n=Ts;Ts|=16;var r=wl();for(Ps===e&&Ds===t||kl(e,t);;)try{Sl();break}catch(i){xl(e,i)}if(Ji(),Ts=n,Ms.current=r,null!==_s)throw Error(o(261));return Ps=null,Ds=0,Ls}function Sl(){for(;null!==_s;)Ml(_s)}function Cl(){for(;null!==_s&&!Si();)Ml(_s)}function Ml(e){var t=Vs(e.alternate,e,As);e.memoizedProps=e.pendingProps,null===t?El(e):_s=t,Es.current=null}function El(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 Tl(e){var t=Bi();return Wi(99,Pl.bind(null,e,t)),null}function Pl(e,t){do{Dl()}while(null!==Gs);if(0!==(48&Ts))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,l=e.expirationTimes;0<a;){var c=31-Ht(a),u=1<<c;i[c]=0,s[c]=-1,l[c]=-1,a&=~u}if(null!==tl&&0===(24&r)&&tl.has(e)&&tl.delete(e),e===Ps&&(_s=Ps=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=Ts,Ts|=32,Es.current=null,Ir=Xt,pr(s=hr())){if("selectionStart"in s)l={start:s.selectionStart,end:s.selectionEnd};else e:if(l=(l=s.ownerDocument)&&l.defaultView||window,(u=l.getSelection&&l.getSelection())&&0!==u.rangeCount){l=u.anchorNode,a=u.anchorOffset,c=u.focusNode,u=u.focusOffset;try{l.nodeType,c.nodeType}catch(C){l=null;break e}var f=0,d=-1,h=-1,p=0,v=0,m=s,g=null;t:for(;;){for(var b;m!==l||0!==a&&3!==m.nodeType||(d=f+a),m!==c||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===l&&++p===a&&(d=f),g===c&&++v===u&&(h=f),null!==(b=m.nextSibling))break;g=(m=g).parentNode}m=b}l=-1===d||-1===h?null:{start:d,end:h}}else l=null;l=l||{start:0,end:0}}else l=null;Fr={focusedElem:s,selectionRange:l},Xt=!1,sl=null,ll=!1,Us=r;do{try{_l()}catch(C){if(null===Us)throw Error(o(330));zl(Us,C),Us=Us.nextEffect}}while(null!==Us);sl=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 k=O.ref;null!==k&&("function"===typeof k?k(null):k.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:xs(s,l=Us);var x=l.alternate;gs(l),null!==x&&gs(x)}Us=Us.nextEffect}}catch(C){if(null===Us)throw Error(o(330));zl(Us,C),Us=Us.nextEffect}}while(null!==Us);if(k=Fr,O=hr(),y=k.focusedElem,s=k.selectionRange,O!==y&&y&&y.ownerDocument&&dr(y.ownerDocument.documentElement,y)){null!==s&&pr(y)&&(O=s.start,void 0===(k=s.end)&&(k=O),"selectionStart"in y?(y.selectionStart=O,y.selectionEnd=Math.min(k,y.value.length)):(k=(O=y.ownerDocument||document)&&O.defaultView||window).getSelection&&(k=k.getSelection(),l=y.textContent.length,x=Math.min(s.start,l),s=void 0===s.end?x:Math.min(s.end,l),!k.extend&&x>s&&(l=s,s=x,x=l),l=fr(y,x),a=fr(y,s),l&&a&&(1!==k.rangeCount||k.anchorNode!==l.node||k.anchorOffset!==l.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((O=O.createRange()).setStart(l.node,l.offset),k.removeAllRanges(),x>s?(k.addRange(O),k.extend(a.node,a.offset)):(O.setEnd(a.node,a.offset),k.addRange(O))))),O=[];for(k=y;k=k.parentNode;)1===k.nodeType&&O.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"===typeof y.focus&&y.focus(),y=0;y<O.length;y++)(k=O[y]).element.scrollLeft=k.left,k.element.scrollTop=k.top}Xt=!!Ir,Fr=Ir=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));zl(Us,C),Us=Us.nextEffect}}while(null!==Us);Us=null,Li(),Ts=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===rl?nl++:(nl=0,rl=e):nl=0,n=n.stateNode,ki&&"function"===typeof ki.onCommitFiberRoot)try{ki.onCommitFiberRoot(Oi,n,void 0,64===(64&n.current.flags))}catch(C){}if(hl(e,$i()),qs)throw qs=!1,e=Ys,Ys=null,e;return 0!==(8&Ts)||Vi(),null}function _l(){for(;null!==Us;){var e=Us.alternate;ll||null===sl||(0!==(8&Us.flags)?et(Us,sl)&&(ll=!0):13===Us.tag&&Ss(e,Us)&&et(Us,sl)&&(ll=!0));var t=Us.flags;0!==(256&t)&&hs(e,Us),0===(512&t)||Ks||(Ks=!0,Hi(97,(function(){return Dl(),null}))),Us=Us.nextEffect}}function Dl(){if(90!==Zs){var e=97<Zs?97:Zs;return Zs=90,Wi(e,Ll)}return!1}function Al(e,t){Js.push(t,e),Ks||(Ks=!0,Hi(97,(function(){return Dl(),null})))}function Rl(e,t){el.push(t,e),Ks||(Ks=!0,Hi(97,(function(){return Dl(),null})))}function Ll(){if(null===Gs)return!1;var e=Gs;if(Gs=null,0!==(48&Ts))throw Error(o(331));var t=Ts;Ts|=32;var n=el;el=[];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(c){if(null===a)throw Error(o(330));zl(a,c)}}for(n=Js,Js=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var l=i.create;i.destroy=l()}catch(c){if(null===a)throw Error(o(330));zl(a,c)}}for(l=e.current.firstEffect;null!==l;)e=l.nextEffect,l.nextEffect=null,8&l.flags&&(l.sibling=null,l.stateNode=null),l=e;return Ts=t,Vi(),!0}function Nl(e,t,n){la(e,t=cs(0,t=os(n,t),1)),t=cl(),null!==(e=dl(e,1))&&(Wt(e,1,t),hl(e,t))}function zl(e,t){if(3===e.tag)Nl(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Nl(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(la(n,i),i=cl(),null!==(n=dl(n,1)))Wt(n,1,i),hl(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 Il(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cl(),e.pingedLanes|=e.suspendedLanes&n,Ps===e&&(Ds&n)===n&&(4===Ls||3===Ls&&(62914560&Ds)===Ds&&500>$i()-Qs?kl(e,0):$s|=n),hl(e,t)}function Fl(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===al&&(al=zs),0===(t=Bt(62914560&~al))&&(t=4194304))),n=cl(),null!==(e=dl(e,t))&&(Wt(e,t,n),hl(e,n))}function $l(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 Bl(e,t,n,r){return new $l(e,t,n,r)}function Ql(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wl(e,t){var n=e.alternate;return null===n?((n=Bl(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 Hl(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Ql(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case j:return Vl(n.children,i,a,t);case N:s=8,i|=16;break;case S:s=8,i|=1;break;case C:return(e=Bl(12,n,t,8|i)).elementType=C,e.type=C,e.lanes=a,e;case P:return(e=Bl(13,n,t,i)).type=P,e.elementType=P,e.lanes=a,e;case _:return(e=Bl(19,n,t,i)).elementType=_,e.lanes=a,e;case z:return Ul(n,i,a,t);case I:return(e=Bl(24,n,t,i)).elementType=I,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case M:s=10;break e;case E:s=9;break e;case T: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=Bl(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Vl(e,t,n,r){return(e=Bl(7,e,r,t)).lanes=n,e}function Ul(e,t,n,r){return(e=Bl(23,e,r,t)).elementType=z,e.lanes=n,e}function ql(e,t,n){return(e=Bl(6,e,null,t)).lanes=n,e}function Yl(e,t,n){return(t=Bl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xl(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 Kl(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 Gl(e,t,n,r){var i=t.current,a=cl(),s=ul(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(pi(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw Error(o(171))}if(1===n.tag){var c=n.type;if(pi(c)){n=gi(n,c,l);break e}}n=l}else n=ci;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),la(i,t),fl(i,s,a),s}function Zl(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Jl(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Jl(e,t),(e=e.alternate)&&Jl(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xl(e,t,null!=n&&!0===n.hydrate),t=Bl(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Gr]=n.current,Tr(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 nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(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=Zl(o);s.call(e)}}Gl(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 tc(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var l=i;i=function(){var e=Zl(o);l.call(e)}}bl((function(){Gl(t,o,e,i)}))}return Zl(o)}function ic(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(o(200));return Kl(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:Pa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;li(Xi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Xo(e,t,n):(li(Ra,1&Ra.current),null!==(t=ns(e,t,n))?t.sibling:null);li(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),li(Ra,Ra.current),r)break;return null;case 23:case 24:return t.lanes=0,Fo(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 Ql(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)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=zo(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)&&(za=Vr(t.stateNode.containerInfo.firstChild),Na=t,a=Ia=!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),$o(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 Pa(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 l=t.type._context;if(li(Xi,l._currentValue),l._currentValue=a,null!==s)if(l=s.value,0===(a=sr(l,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(l,a):1073741823))){if(s.children===i.children&&!fi.current){t=ns(e,t,n);break e}}else for(null!==(l=t.child)&&(l.return=t);null!==l;){var c=l.dependencies;if(null!==c){s=l.child;for(var u=c.firstContext;null!==u;){if(u.context===r&&0!==(u.observedBits&a)){1===l.tag&&((u=sa(-1,n&-n)).tag=2,la(l,u)),l.lanes|=n,null!==(u=l.alternate)&&(u.lanes|=n),ta(l.return,n),c.lanes|=n;break}u=u.next}}else s=10===l.tag&&l.type===t.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===t){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=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),zo(e,t,i,a=Yi(i.type,a),r,n);case 15:return Io(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 Fo(e,t,n)}throw Error(o(156,t.tag))},tc.prototype.render=function(e){Gl(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Gl(null,e,null,(function(){t[Gr]=null}))},tt=function(e){13===e.tag&&(fl(e,4,cl()),ec(e,4))},nt=function(e){13===e.tag&&(fl(e,67108864,cl()),ec(e,67108864))},rt=function(e){if(13===e.tag){var t=cl(),n=ul(e);fl(e,n,t),ec(e,n)}},it=function(e,t){return t()},Me=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":ce(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ae=gl,Re=function(e,t,n,r,i){var a=Ts;Ts|=4;try{return Wi(98,e.bind(null,t,n,r,i))}finally{0===(Ts=a)&&(Hs(),Vi())}},Le=function(){0===(49&Ts)&&(function(){if(null!==tl){var e=tl;tl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hl(e,$i())}))}Vi()}(),Dl())},Ne=function(e,t){var n=Ts;Ts|=2;try{return e(t)}finally{0===(Ts=n)&&(Hs(),Vi())}};var ac={Events:[ei,ti,ni,_e,De,Dl,{current:!1}]},oc={findFiberByHostInstance:Jr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},sc={bundleType:oc.bundleType,version:oc.version,rendererPackageName:oc.rendererPackageName,rendererConfig:oc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:k.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:oc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{Oi=lc.inject(sc),ki=lc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ac,t.createPortal=ic,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=Ts;if(0!==(48&n))return e(t);Ts|=1;try{if(e)return Wi(99,e.bind(null,t))}finally{Ts=n,Vi()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(o(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(o(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(o(40));return!!e._reactRootContainer&&(bl((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Gr]=null}))})),!0)},t.unstable_batchedUpdates=gl,t.unstable_createPortal=function(e,t){return ic(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return rc(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(175)},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 l=Date,c=l.now();t.unstable_now=function(){return l.now()-c}}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 k=new MessageChannel,x=k.port2;k.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();O=e+y;try{g(!0,e)?x.postMessage(null):(m=!1,g=null)}catch(n){throw x.postMessage(null),n}}else m=!1},r=function(e){g=e,m||(m=!0,x.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,l=e[s];if(void 0!==o&&0>C(o,n))void 0!==l&&0>C(l,o)?(e[r]=l,e[s]=n,r=s):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==l&&0>C(l,n)))break e;e[r]=l,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 M=[],E=[],T=1,P=null,_=3,D=!1,A=!1,R=!1;function L(e){for(var t=j(E);null!==t;){if(null===t.callback)S(E);else{if(!(t.startTime<=e))break;S(E),t.sortIndex=t.expirationTime,w(M,t)}t=j(E)}}function N(e){if(R=!1,L(e),!A)if(null!==j(M))A=!0,r(z);else{var t=j(E);null!==t&&i(N,t.startTime-e)}}function z(e,n){A=!1,R&&(R=!1,a()),D=!0;var r=_;try{for(L(n),P=j(M);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=P.callback;if("function"===typeof o){P.callback=null,_=P.priorityLevel;var s=o(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?P.callback=s:P===j(M)&&S(M),L(n)}else S(M);P=j(M)}if(null!==P)var l=!0;else{var c=j(E);null!==c&&i(N,c.startTime-n),l=!1}return l}finally{P=null,_=r,D=!1}}var I=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(z))},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_getFirstCallbackNode=function(){return j(M)},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=I,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 l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:T++,callback:n,priorityLevel:e,startTime:o,expirationTime:l=o+l,sortIndex:-1},o>s?(e.sortIndex=o,w(E,e),null===j(M)&&e===j(E)&&(R?a():R=!0,i(N,o-s))):(e.sortIndex=l,w(M,e),A||D||(A=!0,r(z))),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(178);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,l=r?Symbol.for("react.profiler"):60114,c=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,k=r?Symbol.for("react.scope"):60119;function x(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 l:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case c:return e;default:return t}}case a:return t}}}function w(e){return x(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=a,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return w(e)||x(e)===f},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===g},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===l||e===s||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===O||e.$$typeof===k||e.$$typeof===b)},t.typeOf=x},function(e,t,n){"use strict";var r=n(124),i=n(125),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},l=function e(t,n,i,a,o,l,c,u,f,d,h,p){var v=t;if("function"===typeof c)v=c(n,v);else if(v instanceof Date)v=d(v);else if(null===v){if(a)return l&&!p?l(n,s.encoder):n;v=""}if("string"===typeof v||"number"===typeof v||"boolean"===typeof v||r.isBuffer(v))return l?[h(p?n:l(n,s.encoder))+"="+h(l(v,s.encoder))]:[h(n)+"="+h(String(v))];var m,g=[];if("undefined"===typeof v)return g;if(Array.isArray(c))m=c;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,l,c,u,f,d,h,p)):g.concat(e(v[O],n+(f?"."+O:"["+O+"]"),i,a,o,l,c,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 c="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 k,x=[];if("object"!==typeof n||null===n)return"";k=o.arrayFormat in a?o.arrayFormat:"indices"in o?o.indices?"indices":"repeat":"indices";var w=a[k];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]||(x=x.concat(l(n[S],S,w,u,f,d?h:null,y,p,v,m,O,g)))}var C=x.join(c),M=!0===o.addQueryPrefix?"?":"";return C.length>0?M+C:""}},function(e,t,n){"use strict";var r=n(124),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,l=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;l.push(s)}for(var c=0;null!==(o=a.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(o[1])}return o&&l.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,l=parseInt(s,10);!isNaN(l)&&o!==s&&String(l)===s&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=r:a[s]=r}r=a}return r}(l,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),l=0;l<s.length;++l){var c,u,f=s[l],d=f.indexOf("]="),h=-1===d?f.indexOf("="):d+1;-1===h?(c=t.decoder(f,a.decoder),u=t.strictNullHandling?null:""):(c=t.decoder(f.slice(0,h),a.decoder),u=t.decoder(f.slice(h+1),a.decoder)),i.call(n,c)?n[c]=[].concat(n[c]).concat(u):n[c]=u}return n}(e,n):e,l=n.plainObjects?Object.create(null):{},c=Object.keys(s),u=0;u<c.length;++u){var f=c[u],d=o(f,s[f],n);l=r.merge(l,d,n)}return r.compact(l)}},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){"use strict";n.r(t),n.d(t,"default",(function(){return Bn}));var r=n(17);function i(e,t,n,r){var i;n=n||0;for(var a=(r=r||t.length-1)<=2147483647;r-n>1;)t[i=a?n+r>>1:O((n+r)/2)]<e?n=i:r=i;return e-t[n]<=t[r]-e?n:r}function a(e,t,n,r){for(var i=1==r?t:n;i>=t&&i<=n;i+=r)if(null!=e[i])return i;return-1}var o=[0,0];function s(e,t,n,r){return o[0]=n<0?B(e,-n):e,o[1]=r<0?B(t,-r):t,o}function l(e,t,n,r){var i,a,o,l=C(e),c=10==n?M:E;return e==t&&(-1==l?(e*=n,t/=n):(e/=n,t*=n)),r?(i=O(c(e)),a=x(c(t)),e=(o=s(S(n,i),S(n,a),i,a))[0],t=o[1]):(i=O(c(y(e))),a=O(c(y(t))),e=$(e,(o=s(S(n,i),S(n,a),i,a))[0]),t=F(t,o[1])),[e,t]}function c(e,t,n,r){var i=l(e,t,n,r);return 0==e&&(i[0]=0),0==t&&(i[1]=0),i}var u={mode:3,pad:.1},f={pad:0,soft:null,mode:0},d={min:f,max:f};function h(e,t,n,r){return K(n)?v(e,t,n):(f.pad=n,f.soft=r?0:null,f.mode=r?3:0,v(e,t,d))}function p(e,t){return null==e?t:e}function v(e,t,n){var r=n.min,i=n.max,a=p(r.pad,0),o=p(i.pad,0),s=p(r.hard,-P),l=p(i.hard,P),c=p(r.soft,P),u=p(i.soft,-P),f=p(r.mode,0),d=p(i.mode,0),h=t-e;h<1e-9&&(h=0,0!=e&&0!=t||(h=1e-9,2==f&&c!=P&&(a=0),2==d&&u!=-P&&(o=0)));var v=h||y(t)||1e3,m=M(v),g=S(10,O(m)),b=B($(e-v*(0==h?0==e?.1:1:a),g/10),9),k=e>=c&&(1==f||3==f&&b<=c||2==f&&b>=c)?c:P,x=j(s,b<k&&e>=k?k:w(k,b)),C=B(F(t+v*(0==h?0==t?.1:1:o),g/10),9),E=t<=u&&(1==d||3==d&&C>=u||2==d&&C<=u)?u:-P,T=w(l,C>E&&t<=E?E:j(E,C));return x==T&&0==x&&(T=100),[x,T]}var m=new Intl.NumberFormat(navigator.language).format,g=Math,b=g.PI,y=g.abs,O=g.floor,k=g.round,x=g.ceil,w=g.min,j=g.max,S=g.pow,C=g.sign,M=g.log10,E=g.log2,T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return g.asinh(e/t)},P=1/0;function _(e,t){return k(e/t)*t}function D(e,t,n){return w(j(e,t),n)}function A(e){return"function"==typeof e?e:function(){return e}}var R=function(e){return e},L=function(e,t){return t},N=function(e){return null},z=function(e){return!0},I=function(e,t){return e==t};function F(e,t){return x(e/t)*t}function $(e,t){return O(e/t)*t}function B(e,t){return k(e*(t=Math.pow(10,t)))/t}var Q=new Map;function W(e){return((""+e).split(".")[1]||"").length}function H(e,t,n,r){for(var i=[],a=r.map(W),o=t;o<n;o++)for(var s=y(o),l=B(S(e,o),s),c=0;c<r.length;c++){var u=r[c]*l,f=(u>=0&&o>=0?0:s)+(o>=a[c]?0:a[c]),d=B(u,f);i.push(d),Q.set(d,f)}return i}var V={},U=[],q=[null,null],Y=Array.isArray;function X(e){return"string"==typeof e}function K(e){var t=!1;if(null!=e){var n=e.constructor;t=null==n||n==Object}return t}function G(e){return null!=e&&"object"==typeof e}function Z(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K;if(Y(e)){var r=e.find((function(e){return null!=e}));if(Y(r)||n(r)){t=Array(e.length);for(var i=0;i<e.length;i++)t[i]=Z(e[i],n)}else t=e.slice()}else if(n(e))for(var a in t={},e)t[a]=Z(e[a],n);else t=e;return t}function J(e){for(var t=arguments,n=1;n<t.length;n++){var r=t[n];for(var i in r)K(e[i])?J(e[i],Z(r[i])):e[i]=Z(r[i])}return e}function ee(e,t,n){for(var r,i=0,a=-1;i<t.length;i++){var o=t[i];if(o>a){for(r=o-1;r>=0&&null==e[r];)e[r--]=null;for(r=o+1;r<n&&null==e[r];)e[a=r++]=null}}}var te,ne,re="undefined"==typeof queueMicrotask?function(e){return Promise.resolve().then(e)}:queueMicrotask,ie="width",ae="height",oe="top",se="bottom",le="left",ce="right",ue="#000",fe="#0000",de="mousemove",he="mousedown",pe="mouseup",ve="mouseenter",me="mouseleave",ge="dblclick",be="change",ye="dppxchange",Oe="u-off",ke="u-label",xe=document,we=window;function je(e,t){if(null!=t){var n=e.classList;!n.contains(t)&&n.add(t)}}function Se(e,t){var n=e.classList;n.contains(t)&&n.remove(t)}function Ce(e,t,n){e.style[t]=n+"px"}function Me(e,t,n,r){var i=xe.createElement(e);return null!=t&&je(i,t),null!=n&&n.insertBefore(i,r),i}function Ee(e,t){return Me("div",e,t)}var Te=new WeakMap;function Pe(e,t,n,r,i){var a="translate("+t+"px,"+n+"px)";a!=Te.get(e)&&(e.style.transform=a,Te.set(e,a),t<0||n<0||t>r||n>i?je(e,Oe):Se(e,Oe))}var _e=new WeakMap;function De(e,t,n){var r=t+n;r!=_e.get(e)&&(_e.set(e,r),e.style.background=t,e.style.borderColor=n)}var Ae=new WeakMap;var Re={passive:!0},Le=J({capture:!0},Re);function Ne(e,t,n,r){t.addEventListener(e,n,r?Le:Re)}function ze(e,t,n,r){t.removeEventListener(e,n,r?Le:Re)}!function e(){var t=devicePixelRatio;te!=t&&(te=t,ne&&ze(be,ne,e),ne=matchMedia("(min-resolution: ".concat(te-.001,"dppx) and (max-resolution: ").concat(te+.001,"dppx)")),Ne(be,ne,e),we.dispatchEvent(new CustomEvent(ye)))}();var Ie=["January","February","March","April","May","June","July","August","September","October","November","December"],Fe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function $e(e){return e.slice(0,3)}var Be=Fe.map($e),Qe=Ie.map($e),We={MMMM:Ie,MMM:Qe,WWWW:Fe,WWW:Be};function He(e){return(e<10?"0":"")+e}var Ve={YYYY:function(e){return e.getFullYear()},YY:function(e){return(e.getFullYear()+"").slice(2)},MMMM:function(e,t){return t.MMMM[e.getMonth()]},MMM:function(e,t){return t.MMM[e.getMonth()]},MM:function(e){return He(e.getMonth()+1)},M:function(e){return e.getMonth()+1},DD:function(e){return He(e.getDate())},D:function(e){return e.getDate()},WWWW:function(e,t){return t.WWWW[e.getDay()]},WWW:function(e,t){return t.WWW[e.getDay()]},HH:function(e){return He(e.getHours())},H:function(e){return e.getHours()},h:function(e){var t=e.getHours();return 0==t?12:t>12?t-12:t},AA:function(e){return e.getHours()>=12?"PM":"AM"},aa:function(e){return e.getHours()>=12?"pm":"am"},a:function(e){return e.getHours()>=12?"p":"a"},mm:function(e){return He(e.getMinutes())},m:function(e){return e.getMinutes()},ss:function(e){return He(e.getSeconds())},s:function(e){return e.getSeconds()},fff:function(e){return((t=e.getMilliseconds())<10?"00":t<100?"0":"")+t;var t}};function Ue(e,t){t=t||We;for(var n,r=[],i=/\{([a-z]+)\}|[^{]+/gi;n=i.exec(e);)r.push("{"==n[0][0]?Ve[n[1]]:n[0]);return function(e){for(var n="",i=0;i<r.length;i++)n+="string"==typeof r[i]?r[i]:r[i](e,t);return n}}var qe=(new Intl.DateTimeFormat).resolvedOptions().timeZone;var Ye=function(e){return e%1==0},Xe=[1,2,2.5,5],Ke=H(10,-16,0,Xe),Ge=H(10,0,16,Xe),Ze=Ge.filter(Ye),Je=Ke.concat(Ge),et="{YYYY}",tt="\n"+et,nt="{M}/{D}",rt="\n"+nt,it=rt+"/{YY}",at="{aa}",ot="{h}:{mm}"+at,st="\n"+ot,lt=":{ss}",ct=null;function ut(e){var t=1e3*e,n=60*t,r=60*n,i=24*r,a=30*i,o=365*i;return[(1==e?H(10,0,3,Xe).filter(Ye):H(10,-3,0,Xe)).concat([t,5*t,10*t,15*t,30*t,n,5*n,10*n,15*n,30*n,r,2*r,3*r,4*r,6*r,8*r,12*r,i,2*i,3*i,4*i,5*i,6*i,7*i,8*i,9*i,10*i,15*i,a,2*a,3*a,4*a,6*a,o,2*o,5*o,10*o,25*o,50*o,100*o]),[[o,et,ct,ct,ct,ct,ct,ct,1],[28*i,"{MMM}",tt,ct,ct,ct,ct,ct,1],[i,nt,tt,ct,ct,ct,ct,ct,1],[r,"{h}"+at,it,ct,rt,ct,ct,ct,1],[n,ot,it,ct,rt,ct,ct,ct,1],[t,lt,it+" "+ot,ct,rt+" "+ot,ct,st,ct,1],[e,lt+".{fff}",it+" "+ot,ct,rt+" "+ot,ct,st,ct,1]],function(t){return function(s,l,c,u,f,d){var h=[],p=f>=o,v=f>=a&&f<o,m=t(c),g=B(m*e,3),b=wt(m.getFullYear(),p?0:m.getMonth(),v||p?1:m.getDate()),y=B(b*e,3);if(v||p)for(var x=v?f/a:0,w=p?f/o:0,j=g==y?g:B(wt(b.getFullYear()+w,b.getMonth()+x,1)*e,3),S=new Date(k(j/e)),C=S.getFullYear(),M=S.getMonth(),E=0;j<=u;E++){var T=wt(C+w*E,M+x*E,1),P=T-t(B(T*e,3));(j=B((+T+P)*e,3))<=u&&h.push(j)}else{var _=f>=i?i:f,D=y+(O(c)-O(g))+F(g-y,_);h.push(D);for(var A=t(D),R=A.getHours()+A.getMinutes()/n+A.getSeconds()/r,L=f/r,N=d/s.axes[l]._space;!((D=B(D+f,1==e?0:3))>u);)if(L>1){var z=O(B(R+L,6))%24,I=t(D).getHours()-z;I>1&&(I=-1),R=(R+L)%24,B(((D-=I*r)-h[h.length-1])/f,3)*N>=.7&&h.push(D)}else h.push(D)}return h}}]}var ft=ut(1),dt=Object(r.a)(ft,3),ht=dt[0],pt=dt[1],vt=dt[2],mt=ut(.001),gt=Object(r.a)(mt,3),bt=gt[0],yt=gt[1],Ot=gt[2];function kt(e,t){return e.map((function(e){return e.map((function(n,r){return 0==r||8==r||null==n?n:t(1==r||0==e[8]?n:e[1]+n)}))}))}function xt(e,t){return function(n,r,i,a,o){var s,l,c,u,f,d,h=t.find((function(e){return o>=e[0]}))||t[t.length-1];return r.map((function(t){var n=e(t),r=n.getFullYear(),i=n.getMonth(),a=n.getDate(),o=n.getHours(),p=n.getMinutes(),v=n.getSeconds(),m=r!=s&&h[2]||i!=l&&h[3]||a!=c&&h[4]||o!=u&&h[5]||p!=f&&h[6]||v!=d&&h[7]||h[1];return s=r,l=i,c=a,u=o,f=p,d=v,m(n)}))}}function wt(e,t,n){return new Date(e,t,n)}function jt(e,t){return t(e)}H(2,-53,53,[1]);function St(e,t){return function(n,r){return t(e(r))}}var Ct={show:!0,live:!0,isolate:!1,markers:{show:!0,width:2,stroke:function(e,t){var n=e.series[t];return n.width?n.stroke(e,t):n.points.width?n.points.stroke(e,t):null},fill:function(e,t){return e.series[t].fill(e,t)},dash:"solid"},idx:null,idxs:null,values:[]};var Mt=[0,0];function Et(e,t,n){return function(e){0==e.button&&n(e)}}function Tt(e,t,n){return n}var Pt={show:!0,x:!0,y:!0,lock:!1,move:function(e,t,n){return Mt[0]=t,Mt[1]=n,Mt},points:{show:function(e,t){var n=e.cursor.points,r=Ee(),i=n.size(e,t);Ce(r,ie,i),Ce(r,ae,i);var a=i/-2;Ce(r,"marginLeft",a),Ce(r,"marginTop",a);var o=n.width(e,t,i);return o&&Ce(r,"borderWidth",o),r},size:function(e,t){return Yt(e.series[t].points.width,1)},width:0,stroke:function(e,t){var n=e.series[t].points;return n._stroke||n._fill},fill:function(e,t){var n=e.series[t].points;return n._fill||n._stroke}},bind:{mousedown:Et,mouseup:Et,click:Et,dblclick:Et,mousemove:Tt,mouseleave:Tt,mouseenter:Tt},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,_x:!1,_y:!1},focus:{prox:-1},left:-10,top:-10,idx:null,dataIdx:function(e,t,n){return n},idxs:null},_t={show:!0,stroke:"rgba(0,0,0,0.07)",width:2,filter:L},Dt=J({},_t,{size:10}),At='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Rt="bold "+At,Lt={show:!0,scale:"x",stroke:ue,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Rt,side:2,grid:_t,ticks:Dt,font:At,rotate:0},Nt={show:!0,scale:"x",auto:!1,sorted:1,min:P,max:-P,idxs:[]};function zt(e,t,n,r,i){return t.map((function(e){return null==e?"":m(e)}))}function It(e,t,n,r,i,a,o){for(var s=[],l=Q.get(i)||0,c=n=o?n:B(F(n,i),l);c<=r;c=B(c+i,l))s.push(Object.is(c,-0)?0:c);return s}function Ft(e,t,n,r,i,a,o){var s=[],l=e.scales[e.axes[t].scale].log,c=O((10==l?M:E)(n));i=S(l,c),c<0&&(i=B(i,-c));var u=n;do{s.push(u),(u=B(u+i,Q.get(i)))>=i*l&&(i=u)}while(u<=r);return s}function $t(e,t,n,r,i,a,o){var s=e.scales[e.axes[t].scale].asinh,l=r>s?Ft(e,t,j(s,n),r,i):[s],c=r>=0&&n<=0?[0]:[];return(n<-s?Ft(e,t,j(s,-r),-n,i):[s]).reverse().map((function(e){return-e})).concat(c,l)}var Bt=/./,Qt=/[12357]/,Wt=/[125]/,Ht=/1/;function Vt(e,t,n,r,i){var a=e.axes[n],o=a.scale,s=e.scales[o];if(3==s.distr&&2==s.log)return t;var l=e.valToPos,c=a._space,u=l(10,o),f=l(9,o)-u>=c?Bt:l(7,o)-u>=c?Qt:l(5,o)-u>=c?Wt:Ht;return t.map((function(e){return 4==s.distr&&0==e||f.test(e)?e:null}))}function Ut(e,t){return null==t?"":m(t)}var qt={show:!0,scale:"y",stroke:ue,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Rt,side:3,grid:_t,ticks:Dt,font:At,rotate:0};function Yt(e,t){return B((3+2*(e||1))*t,3)}function Xt(e,t,n,r){var i=e.scales[e.series[t].scale],a=e.bands&&e.bands.some((function(e){return e.series[0]==t}));return 3==i.distr||a?i.min:0}var Kt={scale:null,auto:!0,min:P,max:-P},Gt={show:!0,auto:!0,sorted:0,alpha:1,facets:[J({},Kt,{scale:"x"}),J({},Kt,{scale:"y"})]},Zt={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:function(e,t,n,r,i){return i},alpha:1,points:{show:function(e,t){var n=e.series[0],r=n.scale,i=n.idxs,a=e._data[0],o=e.valToPos(a[i[0]],r,!0),s=e.valToPos(a[i[1]],r,!0),l=y(s-o)/(e.series[t].points.space*te);return i[1]-i[0]<=l},filter:null},values:null,min:P,max:-P,idxs:[],path:null,clip:null};function Jt(e,t,n,r,i){return n/10}var en={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},tn=J({},en,{time:!1,ori:1}),nn={};function rn(e,t){var n=nn[e];return n||(n={key:e,plots:[],sub:function(e){n.plots.push(e)},unsub:function(e){n.plots=n.plots.filter((function(t){return t!=e}))},pub:function(e,t,r,i,a,o,s){for(var l=0;l<n.plots.length;l++)n.plots[l]!=t&&n.plots[l].pub(e,t,r,i,a,o,s)}},null!=e&&(nn[e]=n)),n}function an(e,t,n){var r=e.series[t],i=e.scales,a=e.bbox,o=2==e.mode?i[r.facets[0].scale]:i[e.series[0].scale],s=e._data[0],l=e._data[t],c=o,u=2==e.mode?i[r.facets[1].scale]:i[r.scale],f=a.left,d=a.top,h=a.width,p=a.height,v=e.valToPosH,m=e.valToPosV;return 0==c.ori?n(r,s,l,c,u,v,m,f,d,h,p,un,dn,pn,mn,bn):n(r,s,l,c,u,m,v,d,f,p,h,fn,hn,vn,gn,yn)}function on(e,t,n,r,i){return an(e,t,(function(e,t,a,o,s,l,c,u,f,d,h){var p,v,m=o.dir*(0==o.ori?1:-1),g=0==o.ori?dn:hn;1==m?(p=n,v=r):(p=r,v=n);var b=_(l(t[p],o,d,u),.5),y=_(c(a[p],s,h,f),.5),O=_(l(t[v],o,d,u),.5),k=_(c(s.max,s,h,f),.5),x=new Path2D(i);return g(x,O,k),g(x,b,k),g(x,b,y),x}))}function sn(e,t,n,r,i,a){var o=null;if(e.length>0){o=new Path2D;for(var s=0==t?pn:vn,l=n,c=0;c<e.length;c++){var u=e[c];u[1]>u[0]&&(s(o,l,r,u[0]-l,r+a),l=u[1])}s(o,l,r,n+i-l,r+a)}return o}function ln(e,t,n){var r=e[e.length-1];r&&r[0]==t?r[1]=n:e.push([t,n])}function cn(e){return 0==e?R:1==e?k:function(t){return _(t,e)}}function un(e,t,n){e.moveTo(t,n)}function fn(e,t,n){e.moveTo(n,t)}function dn(e,t,n){e.lineTo(t,n)}function hn(e,t,n){e.lineTo(n,t)}function pn(e,t,n,r,i){e.rect(t,n,r,i)}function vn(e,t,n,r,i){e.rect(n,t,i,r)}function mn(e,t,n,r,i,a){e.arc(t,n,r,i,a)}function gn(e,t,n,r,i,a){e.arc(n,t,r,i,a)}function bn(e,t,n,r,i,a,o){e.bezierCurveTo(t,n,r,i,a,o)}function yn(e,t,n,r,i,a,o){e.bezierCurveTo(n,t,i,r,o,a)}function On(e){return function(e,t,n,r,i){return an(e,t,(function(t,a,o,s,l,c,u,f,d,h,p){var v,m,g=t.pxRound,y=t.points;0==s.ori?(v=un,m=mn):(v=fn,m=gn);var O=B(y.width*te,3),k=(y.size-y.width)/2*te,x=B(2*k,3),w=new Path2D,j=new Path2D,S=e.bbox;pn(j,S.left-x,S.top-x,S.width+2*x,S.height+2*x);var C=function(e){if(null!=o[e]){var t=g(c(a[e],s,h,f)),n=g(u(o[e],l,p,d));v(w,t+k,n),m(w,t,n,k,0,2*b)}};if(i)i.forEach(C);else for(var M=n;M<=r;M++)C(M);return{stroke:O>0?w:null,fill:w,clip:j,flags:3}}))}}function kn(e){return function(t,n,r,i,a,o){r!=i&&(a!=r&&o!=r&&e(t,n,r),a!=i&&o!=i&&e(t,n,i),e(t,n,o))}}var xn=kn(dn),wn=kn(hn);function jn(){return function(e,t,n,r){return an(e,t,(function(i,o,s,l,c,u,f,d,h,p,v){var m,g,b=i.pxRound;0==l.ori?(m=dn,g=xn):(m=hn,g=wn);var y,O,k,x,S=l.dir*(0==l.ori?1:-1),C={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},M=C.stroke,E=P,T=-P,D=[],A=b(u(o[1==S?n:r],l,p,d)),R=!1,L=!1,N=a(s,n,r,1*S),z=a(s,n,r,-1*S),I=_(u(o[N],l,p,d),.5),F=_(u(o[z],l,p,d),.5);I>d&&ln(D,d,I);for(var $=1==S?n:r;$>=n&&$<=r;$+=S){var B=b(u(o[$],l,p,d));if(B==A)null!=s[$]?(O=b(f(s[$],c,v,h)),E==P&&(m(M,B,O),y=O),E=w(O,E),T=j(O,T)):null===s[$]&&(R=L=!0);else{var Q=!1;E!=P?(g(M,A,E,T,y,O),k=x=A):R&&(Q=!0,R=!1),null!=s[$]?(m(M,B,O=b(f(s[$],c,v,h))),E=T=y=O,L&&B-A>1&&(Q=!0),L=!1):(E=P,T=-P,null===s[$]&&(R=!0,B-A>1&&(Q=!0))),Q&&ln(D,k,B),A=B}}if(E!=P&&E!=T&&x!=A&&g(M,A,E,T,y,O),F<d+p&&ln(D,F,d+p),null!=i.fill){var W=C.fill=new Path2D(M),H=b(f(i.fillTo(e,t,i.min,i.max),c,v,h));m(W,F,H),m(W,I,H)}return C.gaps=D=i.gaps(e,t,n,r,D),i.spanGaps||(C.clip=sn(D,l.ori,d,h,p,v)),e.bands.length>0&&(C.band=on(e,t,n,r,M)),C}))}}function Sn(e,t,n,r,i,a){var o=e.length;if(o<2)return null;var s=new Path2D;if(n(s,e[0],t[0]),2==o)r(s,e[1],t[1]);else{for(var l=Array(o),c=Array(o-1),u=Array(o-1),f=Array(o-1),d=0;d<o-1;d++)u[d]=t[d+1]-t[d],f[d]=e[d+1]-e[d],c[d]=u[d]/f[d];l[0]=c[0];for(var h=1;h<o-1;h++)0===c[h]||0===c[h-1]||c[h-1]>0!==c[h]>0?l[h]=0:(l[h]=3*(f[h-1]+f[h])/((2*f[h]+f[h-1])/c[h-1]+(f[h]+2*f[h-1])/c[h]),isFinite(l[h])||(l[h]=0));l[o-1]=c[o-2];for(var p=0;p<o-1;p++)i(s,e[p]+f[p]/3,t[p]+l[p]*f[p]/3,e[p+1]-f[p]/3,t[p+1]-l[p+1]*f[p]/3,e[p+1],t[p+1])}return s}var Cn=new Set;function Mn(){Cn.forEach((function(e){e.syncRect(!0)}))}Ne("resize",we,Mn),Ne("scroll",we,Mn,!0);var En=jn(),Tn=On();function Pn(e,t,n,r){return(r?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((function(e,r){return _n(e,r,t,n)}))}function _n(e,t,n,r){return J({},0==t?n:r,e)}function Dn(e,t,n){return null==t?q:[t,n]}var An=Dn;function Rn(e,t,n){return null==t?q:h(t,n,.1,!0)}function Ln(e,t,n,r){return null==t?q:l(t,n,e.scales[r].log,!1)}var Nn=Ln;function zn(e,t,n,r){return null==t?q:c(t,n,e.scales[r].log,!1)}var In=zn;function Fn(e){var t,n;return[e=e.replace(/(\d+)px/,(function(e,r){return(t=k((n=+r)*te))+"px"})),t,n]}function $n(e){e.show&&[e.font,e.labelFont].forEach((function(e){var t=B(e[2]*te,1);e[0]=e[0].replace(/[0-9.]+px/,t+"px"),e[1]=t}))}function Bn(e,t,n){var a,o={mode:null!==(a=e.mode)&&void 0!==a?a:1},s=o.mode;function f(e,t){return((3==t.distr?M(e>0?e:t.clamp(o,e,t.min,t.max,t.key)):4==t.distr?T(e,t.asinh):e)-t._min)/(t._max-t._min)}function d(e,t,n,r){var i=f(e,t);return r+n*(-1==t.dir?1-i:i)}function v(e,t,n,r){var i=f(e,t);return r+n*(-1==t.dir?i:1-i)}function m(e,t,n,r){return 0==t.ori?d(e,t,n,r):v(e,t,n,r)}o.valToPosH=d,o.valToPosV=v;var C=!1;o.status=0;var E=o.root=Ee("uplot");(null!=e.id&&(E.id=e.id),je(E,e.class),e.title)&&(Ee("u-title",E).textContent=e.title);var R=Me("canvas"),$=o.ctx=R.getContext("2d"),W=Ee("u-wrap",E),H=o.under=Ee("u-under",W);W.appendChild(R);var ee=o.over=Ee("u-over",W),ne=+p((e=Z(e)).pxAlign,1),ue=cn(ne);(e.plugins||[]).forEach((function(t){t.opts&&(e=t.opts(o,e)||e)}));var be,Te,_e=e.ms||.001,Re=o.series=1==s?Pn(e.series||[],Nt,Zt,!1):(be=e.series||[null],Te=Gt,be.map((function(e,t){return 0==t?null:J({},Te,e)}))),Le=o.axes=Pn(e.axes||[],Lt,qt,!0),Ie=o.scales={},Fe=o.bands=e.bands||[];Fe.forEach((function(e){e.fill=A(e.fill||null)}));var $e=2==s?Re[1].facets[0].scale:Re[0].scale,Be={axes:function(){for(var e=function(e){var t=Le[e];if(!t.show||!t._show)return{v:void 0};var n=t.side,i=n%2,a=void 0,s=void 0,l=t.stroke(o,e),c=0==n||3==n?-1:1;if(t.label){var u=t.labelGap*c,f=k((t._lpos+u)*te);lr(t.labelFont[0],l,"center",2==n?oe:se),$.save(),1==i?(a=s=0,$.translate(f,k(ln+fn/2)),$.rotate((3==n?-b:b)/2)):(a=k(sn+un/2),s=f),$.fillText(t.label,a,s),$.restore()}var d=Object(r.a)(t._found,2),h=d[0],p=d[1];if(0==p)return{v:void 0};var v=Ie[t.scale],g=0==i?un:fn,y=0==i?sn:ln,O=k(t.gap*te),x=t._splits,w=2==v.distr?x.map((function(e){return rr[e]})):x,j=2==v.distr?rr[x[1]]-rr[x[0]]:h,S=t.ticks,C=S.show?k(S.size*te):0,M=t._rotate*-b/180,E=ue(t._pos*te),T=E+(C+O)*c;s=0==i?T:0,a=1==i?T:0,lr(t.font[0],l,1==t.align?le:2==t.align?ce:M>0?le:M<0?ce:0==i?"center":3==n?ce:le,M||1==i?"middle":2==n?oe:se);for(var P=1.5*t.font[1],_=x.map((function(e){return ue(m(e,v,g,y))})),D=t._values,A=0;A<D.length;A++){var R=D[A];if(null!=R){0==i?a=_[A]:s=_[A];for(var L=-1==(R=""+R).indexOf("\n")?[R]:R.split(/\n/gm),N=0;N<L.length;N++){var z=L[N];M?($.save(),$.translate(a,s+N*P),$.rotate(M),$.fillText(z,0,0),$.restore()):$.fillText(z,a,s+N*P)}}}S.show&&mr(_,S.filter(o,w,e,p,j),i,n,E,C,B(S.width*te,3),S.stroke(o,e),S.dash,S.cap);var I=t.grid;I.show&&mr(_,I.filter(o,w,e,p,j),i,0==i?2:1,0==i?ln:sn,0==i?fn:un,B(I.width*te,3),I.stroke(o,e),I.dash,I.cap)},t=0;t<Le.length;t++){var n=e(t);if("object"===typeof n)return n.v}vi("drawAxes")},series:function(){Bn>0&&(Re.forEach((function(e,n){if(n>0&&e.show&&null==e._paths){var r=function(e){var t=D(er-1,0,Bn-1),n=D(tr+1,0,Bn-1);for(;null==e[t]&&t>0;)t--;for(;null==e[n]&&n<Bn-1;)n++;return[t,n]}(t[n]);e._paths=e.paths(o,n,r[0],r[1])}})),Re.forEach((function(e,t){if(t>0&&e.show){Gn!=e.alpha&&($.globalAlpha=Gn=e.alpha),ur(t,!1),e._paths&&fr(t,!1),ur(t,!0);var n=e.points.show(o,t,er,tr),r=e.points.filter(o,t,n,e._paths?e._paths.gaps:null);(n||r)&&(e.points._paths=e.points.paths(o,t,er,tr,r),fr(t,!0)),1!=Gn&&($.globalAlpha=Gn=1),vi("drawSeries",t)}})))}},Qe=(e.drawOrder||["axes","series"]).map((function(e){return Be[e]}));function We(t){var n=Ie[t];if(null==n){var r=(e.scales||V)[t]||V;if(null!=r.from)We(r.from),Ie[t]=J({},Ie[r.from],r);else{n=Ie[t]=J({},t==$e?en:tn,r),2==s&&(n.time=!1),n.key=t;var i=n.time,a=n.range,o=Y(a);if((t!=$e||2==s)&&(!o||null!=a[0]&&null!=a[1]||(a={min:null==a[0]?u:{mode:1,hard:a[0],soft:a[0]},max:null==a[1]?u:{mode:1,hard:a[1],soft:a[1]}},o=!1),!o&&K(a))){var l=a;a=function(e,t,n){return null==t?q:h(t,n,l)}}n.range=A(a||(i?An:t==$e?3==n.distr?Nn:4==n.distr?In:Dn:3==n.distr?Ln:4==n.distr?zn:Rn)),n.auto=A(!o&&n.auto),n.clamp=A(n.clamp||Jt),n._min=n._max=null}}}for(var He in We("x"),We("y"),1==s&&Re.forEach((function(e){We(e.scale)})),Le.forEach((function(e){We(e.scale)})),e.scales)We(He);var Ve,qe,Ye=Ie[$e],Xe=Ye.distr;0==Ye.ori?(je(E,"u-hz"),Ve=d,qe=v):(je(E,"u-vt"),Ve=v,qe=d);var Ke={};for(var Ge in Ie){var et=Ie[Ge];null==et.min&&null==et.max||(Ke[Ge]={min:et.min,max:et.max},et.min=et.max=null)}var tt,nt=e.tzDate||function(e){return new Date(k(e/_e))},rt=e.fmtDate||Ue,it=1==_e?vt(nt):Ot(nt),at=xt(nt,kt(1==_e?pt:yt,rt)),ot=St(nt,jt("{YYYY}-{MM}-{DD} {h}:{mm}{aa}",rt)),st=[],lt=o.legend=J({},Ct,e.legend),ct=lt.show,ut=lt.markers;lt.idxs=st,ut.width=A(ut.width),ut.dash=A(ut.dash),ut.stroke=A(ut.stroke),ut.fill=A(ut.fill);var ft,dt=[],mt=[],gt=!1,wt={};if(lt.live){var Mt=Re[1]?Re[1].values:null;for(var Et in ft=(gt=null!=Mt)?Mt(o,1,0):{_:0})wt[Et]="--"}if(ct)if(tt=Me("table","u-legend",E),gt){var Tt=Me("tr","u-thead",tt);for(var _t in Me("th",null,Tt),ft)Me("th",ke,Tt).textContent=_t}else je(tt,"u-inline"),lt.live&&je(tt,"u-live");var Dt={show:!0},At={show:!1};var Rt=new Map;function Bt(e,t,n){var r=Rt.get(t)||{},i=yn.bind[e](o,t,n);i&&(Ne(e,t,r[e]=i),Rt.set(t,r))}function Qt(e,t,n){var r=Rt.get(t)||{};for(var i in r)null!=e&&i!=e||(ze(i,t,r[i]),delete r[i]);null==e&&Rt.delete(t)}var Wt=0,Ht=0,Kt=0,nn=0,an=0,on=0,sn=0,ln=0,un=0,fn=0;o.bbox={};var dn=!1,hn=!1,pn=!1,vn=!1,mn=!1;function gn(e,t,n){(n||e!=o.width||t!=o.height)&&bn(e,t),yr(!1),pn=!0,hn=!0,vn=mn=yn.left>=0,Ar()}function bn(e,t){o.width=Wt=Kt=e,o.height=Ht=nn=t,an=on=0,function(){var e=!1,t=!1,n=!1,r=!1;Le.forEach((function(i,a){if(i.show&&i._show){var o=i.side,s=o%2,l=i._size+(i.labelSize=null!=i.label?i.labelSize||30:0);l>0&&(s?(Kt-=l,3==o?(an+=l,r=!0):n=!0):(nn-=l,0==o?(on+=l,e=!0):t=!0))}})),Sn[0]=e,Sn[1]=n,Sn[2]=t,Sn[3]=r,Kt-=Jn[1]+Jn[3],an+=Jn[3],nn-=Jn[2]+Jn[0],on+=Jn[0]}(),function(){var e=an+Kt,t=on+nn,n=an,r=on;function i(i,a){switch(i){case 1:return(e+=a)-a;case 2:return(t+=a)-a;case 3:return(n-=a)+a;case 0:return(r-=a)+a}}Le.forEach((function(e,t){if(e.show&&e._show){var n=e.side;e._pos=i(n,e._size),null!=e.label&&(e._lpos=i(n,e.labelSize))}}))}();var n=o.bbox;sn=n.left=_(an*te,.5),ln=n.top=_(on*te,.5),un=n.width=_(Kt*te,.5),fn=n.height=_(nn*te,.5)}o.setSize=function(e){gn(e.width,e.height)};var yn=o.cursor=J({},Pt,{drag:{y:2==s}},e.cursor);yn.idxs=st,yn._lock=!1;var On=yn.points;On.show=A(On.show),On.size=A(On.size),On.stroke=A(On.stroke),On.width=A(On.width),On.fill=A(On.fill);var kn=o.focus=J({},e.focus||{alpha:.3},yn.focus),xn=kn.prox>=0,wn=[null];function jn(e,t){if(1==s||t>0){var n=1==s&&Ie[e.scale].time,r=e.value;e.value=n?X(r)?St(nt,jt(r,rt)):r||ot:r||Ut,e.label=e.label||(n?"Time":"Value")}if(t>0){e.width=null==e.width?1:e.width,e.paths=e.paths||En||N,e.fillTo=A(e.fillTo||Xt),e.pxAlign=+p(e.pxAlign,ne),e.pxRound=cn(e.pxAlign),e.stroke=A(e.stroke||null),e.fill=A(e.fill||null),e._stroke=e._fill=e._paths=e._focus=null;var i=Yt(e.width,1),a=e.points=J({},{size:i,width:j(1,.2*i),stroke:e.stroke,space:2*i,paths:Tn,_stroke:null,_fill:null},e.points);a.show=A(a.show),a.filter=A(a.filter),a.fill=A(a.fill),a.stroke=A(a.stroke),a.paths=A(a.paths),a.pxAlign=e.pxAlign}if(ct){var l=function(e,t){if(0==t&&(gt||!lt.live||2==s))return q;var n=[],r=Me("tr","u-series",tt,tt.childNodes[t]);je(r,e.class),e.show||je(r,Oe);var i=Me("th",null,r);if(ut.show){var a=Ee("u-marker",i);if(t>0){var l=ut.width(o,t);l&&(a.style.border=l+"px "+ut.dash(o,t)+" "+ut.stroke(o,t)),a.style.background=ut.fill(o,t)}}var c=Ee(ke,i);for(var u in c.textContent=e.label,t>0&&(ut.show||(c.style.color=e.width>0?ut.stroke(o,t):ut.fill(o,t)),Bt("click",i,(function(t){if(!yn._lock){var n=Re.indexOf(e);if(t.ctrlKey!=lt.isolate){var r=Re.some((function(e,t){return t>0&&t!=n&&e.show}));Re.forEach((function(e,t){t>0&&qr(t,r?t==n?Dt:At:Dt,!0,mi.setSeries)}))}else qr(n,{show:!e.show},!0,mi.setSeries)}})),xn&&Bt(ve,i,(function(t){yn._lock||qr(Re.indexOf(e),Yr,!0,mi.setSeries)}))),ft){var f=Me("td","u-value",r);f.textContent="--",n.push(f)}return[r,n]}(e,t);dt.splice(t,0,l[0]),mt.splice(t,0,l[1]),lt.values.push(null)}if(yn.show){st.splice(t,0,null);var c=function(e,t){if(t>0){var n=yn.points.show(o,t);if(n)return je(n,"u-cursor-pt"),je(n,e.class),Pe(n,-10,-10,Kt,nn),ee.insertBefore(n,wn[t]),n}}(e,t);c&&wn.splice(t,0,c)}}o.addSeries=function(e,t){e=_n(e,t=null==t?Re.length:t,Nt,Zt),Re.splice(t,0,e),jn(Re[t],t)},o.delSeries=function(e){if(Re.splice(e,1),ct){lt.values.splice(e,1),mt.splice(e,1);var t=dt.splice(e,1)[0];Qt(null,t.firstChild),t.remove()}yn.show&&(st.splice(e,1),wn.length>1&&wn.splice(e,1)[0].remove())};var Sn=[!1,!1,!1,!1];function Mn(e,t,n,i){var a=Object(r.a)(n,4),o=a[0],s=a[1],l=a[2],c=a[3],u=t%2,f=0;return 0==u&&(c||s)&&(f=0==t&&!o||2==t&&!l?k(Lt.size/3):0),1==u&&(o||l)&&(f=1==t&&!s||3==t&&!c?k(qt.size/2):0),f}var Bn,Qn,Wn,Hn,Vn,Un,qn,Yn,Xn,Kn,Gn,Zn=o.padding=(e.padding||[Mn,Mn,Mn,Mn]).map((function(e){return A(p(e,Mn))})),Jn=o._padding=Zn.map((function(e,t){return e(o,t,Sn,0)})),er=null,tr=null,nr=1==s?Re[0].idxs:null,rr=null,ir=!1;function ar(e,n){if(2==s){Bn=0;for(var r=1;r<Re.length;r++)Bn+=t[r][0].length;o.data=t=e}else(t=(e||[]).slice())[0]=t[0]||[],o.data=t.slice(),rr=t[0],Bn=rr.length,2==Xe&&(t[0]=rr.map((function(e,t){return t})));if(o._data=t,yr(!0),vi("setData"),!1!==n){var i=Ye;i.auto(o,ir)?or():Ur($e,i.min,i.max),vn=yn.left>=0,mn=!0,Ar()}}function or(){var e,n;if(ir=!0,1==s)if(Bn>0){if(er=nr[0]=0,tr=nr[1]=Bn-1,e=t[0][er],n=t[0][tr],2==Xe)e=er,n=tr;else if(1==Bn)if(3==Xe){var i=l(e,e,Ye.log,!1),a=Object(r.a)(i,2);e=a[0],n=a[1]}else if(4==Xe){var o=c(e,e,Ye.log,!1),u=Object(r.a)(o,2);e=u[0],n=u[1]}else if(Ye.time)n=e+k(86400/_e);else{var f=h(e,n,.1,!0),d=Object(r.a)(f,2);e=d[0],n=d[1]}}else er=nr[0]=e=null,tr=nr[1]=n=null;Ur($e,e,n)}function sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"butt",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:fe,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"round";e!=Qn&&($.strokeStyle=Qn=e),i!=Wn&&($.fillStyle=Wn=i),t!=Hn&&($.lineWidth=Hn=t),a!=Un&&($.lineJoin=Un=a),r!=qn&&($.lineCap=qn=r),n!=Vn&&$.setLineDash(Vn=n)}function lr(e,t,n,r){t!=Wn&&($.fillStyle=Wn=t),e!=Yn&&($.font=Yn=e),n!=Xn&&($.textAlign=Xn=n),r!=Kn&&($.textBaseline=Kn=r)}function cr(e,t,n,r){if(e.auto(o,ir)&&(null==t||null==t.min)){var i,a,s=null!==(i=er)&&void 0!==i?i:0,l=null!==(a=tr)&&void 0!==a?a:r.length-1,c=null==n.min?3==e.distr?function(e,t,n){for(var r=P,i=-P,a=t;a<=n;a++)e[a]>0&&(r=w(r,e[a]),i=j(i,e[a]));return[r==P?1:r,i==-P?10:i]}(r,s,l):function(e,t,n,r){var i=P,a=-P;if(1==r)i=e[t],a=e[n];else if(-1==r)i=e[n],a=e[t];else for(var o=t;o<=n;o++)null!=e[o]&&(i=w(i,e[o]),a=j(a,e[o]));return[i,a]}(r,s,l):[n.min,n.max];e.min=w(e.min,n.min=c[0]),e.max=j(e.max,n.max=c[1])}}function ur(e,t){var n=t?Re[e].points:Re[e];n._stroke=n.stroke(o,e),n._fill=n.fill(o,e)}function fr(e,t){var n=t?Re[e].points:Re[e],r=n._stroke,i=n._fill,a=n._paths,s=a.stroke,l=a.fill,c=a.clip,u=a.flags,f=null,d=B(n.width*te,3),h=d%2/2;t&&null==i&&(i=d>0?"#fff":r);var p=1==n.pxAlign;if(p&&$.translate(h,h),!t){var v=sn,m=ln,g=un,b=fn,y=d*te/2;0==n.min&&(b+=y),0==n.max&&(m-=y,b+=y),(f=new Path2D).rect(v,m,g,b)}t?dr(r,d,n.dash,n.cap,i,s,l,u,c):function(e,t,n,r,i,a,s,l,c,u,f){var d=!1;Fe.forEach((function(h,p){if(h.series[0]==e){var v,m=Re[h.series[1]],g=(m._paths||V).band,b=null;m.show&&g?(b=h.fill(o,p)||a,v=m._paths.clip):g=null,dr(t,n,r,i,b,s,l,c,u,f,v,g),d=!0}})),d||dr(t,n,r,i,a,s,l,c,u,f)}(e,r,d,n.dash,n.cap,i,s,l,u,f,c),p&&$.translate(-h,-h)}o.setData=ar;function dr(e,t,n,r,i,a,o,s,l,c,u,f){sr(e,t,n,r,i),(l||c||f)&&($.save(),l&&$.clip(l),c&&$.clip(c)),f?3==(3&s)?($.clip(f),u&&$.clip(u),pr(i,o),hr(e,a,t)):2&s?(pr(i,o),$.clip(f),hr(e,a,t)):1&s&&($.save(),$.clip(f),u&&$.clip(u),pr(i,o),$.restore(),hr(e,a,t)):(pr(i,o),hr(e,a,t)),(l||c||f)&&$.restore()}function hr(e,t,n){e&&t&&n&&$.stroke(t)}function pr(e,t){e&&t&&$.fill(t)}function vr(e,t,n,r){var i,a=Le[e];if(r<=0)i=[0,0];else{var s=a._space=a.space(o,e,t,n,r),l=a._incrs=a.incrs(o,e,t,n,r,s);i=a._found=function(e,t,n,r,i){for(var a=r/(t-e),o=(""+O(e)).length,s=0;s<n.length;s++){var l=n[s]*a,c=n[s]<10?Q.get(n[s]):0;if(l>=i&&o+c<17)return[n[s],l]}return[0,0]}(t,n,l,r,s)}return i}function mr(e,t,n,r,i,a,o,s,l,c){var u=o%2/2;1==ne&&$.translate(u,u),sr(s,o,l,c,s),$.beginPath();var f,d,h,p,v=i+(0==r||3==r?-a:a);0==n?(d=i,p=v):(f=i,h=v);for(var m=0;m<e.length;m++)null!=t[m]&&(0==n?f=h=e[m]:d=p=e[m],$.moveTo(f,d),$.lineTo(h,p));$.stroke(),1==ne&&$.translate(-u,-u)}function gr(e){var t=!0;return Le.forEach((function(n,i){if(n.show){var a=Ie[n.scale];if(null!=a.min){n._show||(t=!1,n._show=!0,yr(!1));var s=n.side,l=s%2,c=a.min,u=a.max,f=vr(i,c,u,0==l?Kt:nn),d=Object(r.a)(f,2),h=d[0],p=d[1];if(0!=p){var v=2==a.distr,m=n._splits=n.splits(o,i,c,u,h,p,v),g=2==a.distr?m.map((function(e){return rr[e]})):m,b=2==a.distr?rr[m[1]]-rr[m[0]]:h,y=n._values=n.values(o,n.filter(o,g,i,p,b),i,p,b);n._rotate=2==s?n.rotate(o,y,i,p):0;var O=n._size;n._size=x(n.size(o,y,i,e)),null!=O&&n._size!=O&&(t=!1)}}else n._show&&(t=!1,n._show=!1,yr(!1))}})),t}function br(e){var t=!0;return Zn.forEach((function(n,r){var i=n(o,r,Sn,e);i!=Jn[r]&&(t=!1),Jn[r]=i})),t}function yr(e){Re.forEach((function(t,n){n>0&&(t._paths=null,e&&(1==s?(t.min=null,t.max=null):t.facets.forEach((function(e){e.min=null,e.max=null}))))}))}var Or,kr,xr,wr,jr,Sr,Cr,Mr,Er,Tr,Pr,_r,Dr=!1;function Ar(){Dr||(re(Rr),Dr=!0)}function Rr(){dn&&(!function(){var e=Z(Ie,G);for(var n in e){var a=e[n],l=Ke[n];if(null!=l&&null!=l.min)J(a,l),n==$e&&yr(!0);else if(n!=$e||2==s)if(0==Bn&&null==a.from){var c=a.range(o,null,null,n);a.min=c[0],a.max=c[1]}else a.min=P,a.max=-P}if(Bn>0)for(var u in Re.forEach((function(n,a){if(1==s){var l=n.scale,c=e[l],u=Ke[l];if(0==a){var f=c.range(o,c.min,c.max,l);c.min=f[0],c.max=f[1],er=i(c.min,t[0]),tr=i(c.max,t[0]),t[0][er]<c.min&&er++,t[0][tr]>c.max&&tr--,n.min=rr[er],n.max=rr[tr]}else n.show&&n.auto&&cr(c,u,n,t[a]);n.idxs[0]=er,n.idxs[1]=tr}else if(a>0&&n.show&&n.auto){var d=Object(r.a)(n.facets,2),h=d[0],p=d[1],v=h.scale,m=p.scale,g=Object(r.a)(t[a],2),b=g[0],y=g[1];cr(e[v],Ke[v],h,b),cr(e[m],Ke[m],p,y),n.min=p.min,n.max=p.max}})),e){var f=e[u],d=Ke[u];if(null==f.from&&(null==d||null==d.min)){var h=f.range(o,f.min==P?null:f.min,f.max==-P?null:f.max,u);f.min=h[0],f.max=h[1]}}for(var p in e){var v=e[p];if(null!=v.from){var m=e[v.from],g=v.range(o,m.min,m.max,p);v.min=g[0],v.max=g[1]}}var b={},y=!1;for(var O in e){var k=e[O],x=Ie[O];if(x.min!=k.min||x.max!=k.max){x.min=k.min,x.max=k.max;var w=x.distr;x._min=3==w?M(x.min):4==w?T(x.min,x.asinh):x.min,x._max=3==w?M(x.max):4==w?T(x.max,x.asinh):x.max,b[O]=y=!0}}if(y){for(var j in Re.forEach((function(e,t){2==s?t>0&&b.y&&(e._paths=null):b[e.scale]&&(e._paths=null)})),b)pn=!0,vi("setScale",j);yn.show&&(vn=mn=yn.left>=0)}for(var S in Ke)Ke[S]=null}(),dn=!1),pn&&(!function(){for(var e=!1,t=0;!e;){var n=gr(++t),r=br(t);(e=3==t||n&&r)||(bn(o.width,o.height),hn=!0)}}(),pn=!1),hn&&(Ce(H,le,an),Ce(H,oe,on),Ce(H,ie,Kt),Ce(H,ae,nn),Ce(ee,le,an),Ce(ee,oe,on),Ce(ee,ie,Kt),Ce(ee,ae,nn),Ce(W,ie,Wt),Ce(W,ae,Ht),R.width=k(Wt*te),R.height=k(Ht*te),Qn=Wn=Hn=Un=qn=Yn=Xn=Kn=Vn=null,Gn=1,ai(!1),vi("setSize"),hn=!1),Wt>0&&Ht>0&&($.clearRect(0,0,R.width,R.height),vi("drawClear"),Qe.forEach((function(e){return e()})),vi("draw")),yn.show&&vn&&(ri(null,!0,!1),vn=!1),C||(C=!0,o.status=1,vi("ready")),ir=!1,Dr=!1}function Lr(e,n){var r=Ie[e];if(null==r.from){if(0==Bn){var a=r.range(o,n.min,n.max,e);n.min=a[0],n.max=a[1]}if(n.min>n.max){var s=n.min;n.min=n.max,n.max=s}if(Bn>1&&null!=n.min&&null!=n.max&&n.max-n.min<1e-16)return;e==$e&&2==r.distr&&Bn>0&&(n.min=i(n.min,t[0]),n.max=i(n.max,t[0])),Ke[e]=n,dn=!0,Ar()}}o.redraw=function(e,t){pn=t||!1,!1!==e?Ur($e,Ye.min,Ye.max):Ar()},o.setScale=Lr;var Nr=!1,zr=yn.drag,Ir=zr.x,Fr=zr.y;yn.show&&(yn.x&&(Or=Ee("u-cursor-x",ee)),yn.y&&(kr=Ee("u-cursor-y",ee)),0==Ye.ori?(xr=Or,wr=kr):(xr=kr,wr=Or),Pr=yn.left,_r=yn.top);var $r,Br,Qr,Wr=o.select=J({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Hr=Wr.show?Ee("u-select",Wr.over?ee:H):null;function Vr(e,t){if(Wr.show){for(var n in e)Ce(Hr,n,Wr[n]=e[n]);!1!==t&&vi("setSelect")}}function Ur(e,t,n){Lr(e,{min:t,max:n})}function qr(e,t,n,r){var i=Re[e];null!=t.focus&&function(e){if(e!=Qr){var t=null==e,n=1!=kn.alpha;Re.forEach((function(r,i){var a=t||0==i||i==e;r._focus=t?null:a,n&&function(e,t){Re[e].alpha=t,yn.show&&wn[e]&&(wn[e].style.opacity=t);ct&&dt[e]&&(dt[e].style.opacity=t)}(i,a?1:kn.alpha)})),Qr=e,n&&Ar()}}(e),null!=t.show&&(i.show=t.show,function(e,t){var n=Re[e],r=ct?dt[e]:null;n.show?r&&Se(r,Oe):(r&&je(r,Oe),wn.length>1&&Pe(wn[e],-10,-10,Kt,nn))}(e,t.show),Ur(2==s?i.facets[1].scale:i.scale,null,null),Ar()),!1!==n&&vi("setSeries",e,t),r&&yi("setSeries",o,e,t)}o.setSelect=Vr,o.setSeries=qr,o.addBand=function(e,t){e.fill=A(e.fill||null),t=null==t?Fe.length:t,Fe.splice(t,0,e)},o.setBand=function(e,t){J(Fe[e],t)},o.delBand=function(e){null==e?Fe.length=0:Fe.splice(e,1)};var Yr={focus:!0},Xr={focus:!1};function Kr(e,t,n){var r=Ie[t];n&&(e=e/te-(1==r.ori?on:an));var i=Kt;1==r.ori&&(e=(i=nn)-e),-1==r.dir&&(e=i-e);var a=r._min,o=a+(r._max-a)*(e/i),s=r.distr;return 3==s?S(10,o):4==s?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return g.sinh(e/t)}(o,r.asinh):o}function Gr(e,t){Ce(Hr,le,Wr.left=e),Ce(Hr,ie,Wr.width=t)}function Zr(e,t){Ce(Hr,oe,Wr.top=e),Ce(Hr,ae,Wr.height=t)}ct&&xn&&Ne(me,tt,(function(e){yn._lock||(qr(null,Xr,!0,mi.setSeries),ri(null,!0,!1))})),o.valToIdx=function(e){return i(e,t[0])},o.posToIdx=function(e,n){return i(Kr(e,$e,n),t[0],er,tr)},o.posToVal=Kr,o.valToPos=function(e,t,n){return 0==Ie[t].ori?d(e,Ie[t],n?un:Kt,n?sn:0):v(e,Ie[t],n?fn:nn,n?ln:0)},o.batch=function(e){e(o),Ar()},o.setCursor=function(e,t,n){Pr=e.left,_r=e.top,ri(null,t,n)};var Jr=0==Ye.ori?Gr:Zr,ei=1==Ye.ori?Gr:Zr;function ti(e,t){if(null!=e){var n=e.idx;lt.idx=n,Re.forEach((function(e,t){(t>0||!gt)&&ni(t,n)}))}ct&<.live&&function(){if(ct&<.live)for(var e=2==s?1:0;e<Re.length;e++)if(0!=e||!gt){var t=lt.values[e],n=0;for(var r in t)mt[e][n++].firstChild.nodeValue=t[r]}}(),mn=!1,!1!==t&&vi("setLegend")}function ni(e,n){var r;if(null==n)r=wt;else{var i=Re[e],a=0==e&&2==Xe?rr:t[e];r=gt?i.values(o,e,n):{_:i.value(o,a[n],e,n)}}lt.values[e]=r}function ri(e,n,a){Er=Pr,Tr=_r;var l,c=yn.move(o,Pr,_r),u=Object(r.a)(c,2);Pr=u[0],_r=u[1],yn.show&&(xr&&Pe(xr,k(Pr),0,Kt,nn),wr&&Pe(wr,0,k(_r),Kt,nn));var f=er>tr;$r=P;var d,h,p=0==Ye.ori?Kt:nn,v=1==Ye.ori?Kt:nn;if(Pr<0||0==Bn||f){l=null;for(var m=0;m<Re.length;m++)m>0&&wn.length>1&&Pe(wn[m],-10,-10,Kt,nn);if(xn&&qr(null,Yr,!0,null==e&&mi.setSeries),lt.live){st.fill(null),mn=!0;for(var g=0;g<Re.length;g++)lt.values[g]=wt}}else{var b,O;1==s&&(l=i(b=Kr(0==Ye.ori?Pr:_r,$e),t[0],er,tr),O=F(Ve(t[0][l],Ye,p,0),.5));for(var x=2==s?1:0;x<Re.length;x++){var j=Re[x],S=st[x],M=1==s?t[x][S]:t[x][1][S],E=yn.dataIdx(o,x,l,b),T=1==s?t[x][E]:t[x][1][E];mn=mn||T!=M||E!=S,st[x]=E;var _=E==l?O:F(Ve(1==s?t[0][E]:t[x][0][E],Ye,p,0),.5);if(x>0&&j.show){var D=null==T?-10:F(qe(T,1==s?Ie[j.scale]:Ie[j.facets[1].scale],v,0),.5);if(D>0&&1==s){var A=y(D-_r);A<=$r&&($r=A,Br=x)}var R=void 0,L=void 0;0==Ye.ori?(R=_,L=D):(R=D,L=_),mn&&wn.length>1&&(Pe(wn[x],R,L,Kt,nn),De(wn[x],yn.points.fill(o,x),yn.points.stroke(o,x)),2==s&&(d=wn[x],(h=yn.points.size(o,x))!=Ae.get(d)&&(Ae.set(d,h),d.style.height=d.style.width=h+"px",d.style.marginLeft=d.style.marginTop=-h/2+"px")))}if(lt.live){if(!mn||0==x&>)continue;ni(x,E)}}}if(mn&&(lt.idx=l,ti()),Wr.show&&Nr)if(null!=e){var N=Object(r.a)(mi.scales,2),z=N[0],I=N[1],$=Object(r.a)(mi.match,2),B=$[0],Q=$[1],W=Object(r.a)(e.cursor.sync.scales,2),H=W[0],V=W[1],U=e.cursor.drag;Ir=U._x,Fr=U._y;var q,Y,X,K,G,Z=e.select,J=Z.left,ee=Z.top,te=Z.width,ne=Z.height,re=e.scales[z].ori,ie=e.posToVal,ae=null!=z&&B(z,H),oe=null!=I&&Q(I,V);ae&&(0==re?(q=J,Y=te):(q=ee,Y=ne),Ir?(X=Ie[z],K=Ve(ie(q,H),X,p,0),G=Ve(ie(q+Y,H),X,p,0),Jr(w(K,G),y(G-K))):Jr(0,p),oe||ei(0,v)),oe&&(1==re?(q=J,Y=te):(q=ee,Y=ne),Fr?(X=Ie[I],K=qe(ie(q,V),X,v,0),G=qe(ie(q+Y,V),X,v,0),ei(w(K,G),y(G-K))):ei(0,v),ae||Jr(0,p))}else{var se=y(Er-jr),le=y(Tr-Sr);if(1==Ye.ori){var ce=se;se=le,le=ce}Ir=zr.x&&se>=zr.dist,Fr=zr.y&&le>=zr.dist;var ue,fe,he=zr.uni;null!=he?Ir&&Fr&&(Fr=le>=he,(Ir=se>=he)||Fr||(le>se?Fr=!0:Ir=!0)):zr.x&&zr.y&&(Ir||Fr)&&(Ir=Fr=!0),Ir&&(0==Ye.ori?(ue=Cr,fe=Pr):(ue=Mr,fe=_r),Jr(w(ue,fe),y(fe-ue)),Fr||ei(0,v)),Fr&&(1==Ye.ori?(ue=Cr,fe=Pr):(ue=Mr,fe=_r),ei(w(ue,fe),y(fe-ue)),Ir||Jr(0,p)),Ir||Fr||(Jr(0,0),ei(0,0))}if(yn.idx=l,yn.left=Pr,yn.top=_r,zr._x=Ir,zr._y=Fr,null==e){if(a){if(null!=gi){var pe=Object(r.a)(mi.scales,2),ve=pe[0],me=pe[1];mi.values[0]=null!=ve?Kr(0==Ye.ori?Pr:_r,ve):null,mi.values[1]=null!=me?Kr(1==Ye.ori?Pr:_r,me):null}yi(de,o,Pr,_r,Kt,nn,l)}if(xn){var ge=a&&mi.setSeries,be=kn.prox;null==Qr?$r<=be&&qr(Br,Yr,!0,ge):$r>be?qr(null,Yr,!0,ge):Br!=Qr&&qr(Br,Yr,!0,ge)}}C&&!1!==n&&vi("setCursor")}o.setLegend=ti;var ii=null;function ai(e){!0===e?ii=null:vi("syncRect",ii=ee.getBoundingClientRect())}function oi(e,t,n,r,i,a,o){yn._lock||(si(e,t,n,r,i,a,o,!1,null!=e),null!=e?ri(null,!0,!0):ri(t,!0,!1))}function si(e,t,n,i,a,s,l,c,u){if(null==ii&&ai(!1),null!=e)n=e.clientX-ii.left,i=e.clientY-ii.top;else{if(n<0||i<0)return Pr=-10,void(_r=-10);var f=Object(r.a)(mi.scales,2),d=f[0],h=f[1],p=t.cursor.sync,v=Object(r.a)(p.values,2),g=v[0],b=v[1],y=Object(r.a)(p.scales,2),O=y[0],k=y[1],x=Object(r.a)(mi.match,2),w=x[0],j=x[1],S=1==t.scales[O].ori,C=0==Ye.ori?Kt:nn,M=1==Ye.ori?Kt:nn,E=S?s:a,T=S?a:s,P=S?i:n,D=S?n:i;if(n=null!=O?w(d,O)?m(g,Ie[d],C,0):-10:C*(P/E),i=null!=k?j(h,k)?m(b,Ie[h],M,0):-10:M*(D/T),1==Ye.ori){var A=n;n=i,i=A}}if(u&&((n<=1||n>=Kt-1)&&(n=_(n,Kt)),(i<=1||i>=nn-1)&&(i=_(i,nn))),c){jr=n,Sr=i;var R=yn.move(o,n,i),L=Object(r.a)(R,2);Cr=L[0],Mr=L[1]}else Pr=n,_r=i}function li(){Vr({width:0,height:0},!1)}function ci(e,t,n,r,i,a,s){Nr=!0,Ir=Fr=zr._x=zr._y=!1,si(e,t,n,r,i,a,0,!0,!1),null!=e&&(Bt(pe,xe,ui),yi(he,o,Cr,Mr,Kt,nn,null))}function ui(e,t,n,r,i,a,s){Nr=zr._x=zr._y=!1,si(e,t,n,r,i,a,0,!1,!0);var l=Wr.left,c=Wr.top,u=Wr.width,f=Wr.height,d=u>0||f>0;if(d&&Vr(Wr),zr.setScale&&d){var h=l,p=u,v=c,m=f;if(1==Ye.ori&&(h=c,p=f,v=l,m=u),Ir&&Ur($e,Kr(h,$e),Kr(h+p,$e)),Fr)for(var g in Ie){var b=Ie[g];g!=$e&&null==b.from&&b.min!=P&&Ur(g,Kr(v+m,g),Kr(v,g))}li()}else yn.lock&&(yn._lock=!yn._lock,yn._lock||ri(null,!0,!1));null!=e&&(Qt(pe,xe),yi(pe,o,Pr,_r,Kt,nn,null))}function fi(e,t,n,r,i,a,s){or(),li(),null!=e&&yi(ge,o,Pr,_r,Kt,nn,null)}function di(){Le.forEach($n),gn(o.width,o.height,!0)}Ne(ye,we,di);var hi={};hi.mousedown=ci,hi.mousemove=oi,hi.mouseup=ui,hi.dblclick=fi,hi.setSeries=function(e,t,n,r){qr(n,r,!0,!1)},yn.show&&(Bt(he,ee,ci),Bt(de,ee,oi),Bt(ve,ee,ai),Bt(me,ee,(function(e,t,n,r,i,a,o){if(!yn._lock){var s=Nr;if(Nr){var l,c,u=!0,f=!0;0==Ye.ori?(l=Ir,c=Fr):(l=Fr,c=Ir),l&&c&&(u=Pr<=10||Pr>=Kt-10,f=_r<=10||_r>=nn-10),l&&u&&(Pr=Pr<Cr?0:Kt),c&&f&&(_r=_r<Mr?0:nn),ri(null,!0,!0),Nr=!1}Pr=-10,_r=-10,ri(null,!0,!0),s&&(Nr=s)}})),Bt(ge,ee,fi),Cn.add(o),o.syncRect=ai);var pi=o.hooks=e.hooks||{};function vi(e,t,n){e in pi&&pi[e].forEach((function(e){e.call(null,o,t,n)}))}(e.plugins||[]).forEach((function(e){for(var t in e.hooks)pi[t]=(pi[t]||[]).concat(e.hooks[t])}));var mi=J({key:null,setSeries:!1,filters:{pub:z,sub:z},scales:[$e,Re[1]?Re[1].scale:null],match:[I,I],values:[null,null]},yn.sync);yn.sync=mi;var gi=mi.key,bi=rn(gi);function yi(e,t,n,r,i,a,o){mi.filters.pub(e,t,n,r,i,a,o)&&bi.pub(e,t,n,r,i,a,o)}function Oi(){vi("init",e,t),ar(t||e.data,!1),Ke[$e]?Lr($e,Ke[$e]):or(),gn(e.width,e.height),ri(null,!0,!1),Vr(Wr,!1)}return bi.sub(o),o.pub=function(e,t,n,r,i,a,o){mi.filters.sub(e,t,n,r,i,a,o)&&hi[e](null,t,n,r,i,a,o)},o.destroy=function(){bi.unsub(o),Cn.delete(o),Rt.clear(),ze(ye,we,di),E.remove(),vi("destroy")},Re.forEach(jn),Le.forEach((function(e,t){if(e._show=e.show,e.show){var n=e.side%2,r=Ie[e.scale];null==r&&(e.scale=n?Re[1].scale:$e,r=Ie[e.scale]);var i=r.time;e.size=A(e.size),e.space=A(e.space),e.rotate=A(e.rotate),e.incrs=A(e.incrs||(2==r.distr?Ze:i?1==_e?ht:bt:Je)),e.splits=A(e.splits||(i&&1==r.distr?it:3==r.distr?Ft:4==r.distr?$t:It)),e.stroke=A(e.stroke),e.grid.stroke=A(e.grid.stroke),e.ticks.stroke=A(e.ticks.stroke);var a=e.values;e.values=Y(a)&&!Y(a[0])?A(a):i?Y(a)?xt(nt,kt(a,rt)):X(a)?function(e,t){var n=Ue(t);return function(t,r,i,a,o){return r.map((function(t){return n(e(t))}))}}(nt,a):a||at:a||zt,e.filter=A(e.filter||(r.distr>=3?Vt:L)),e.font=Fn(e.font),e.labelFont=Fn(e.labelFont),e._size=e.size(o,null,t,0),e._space=e._rotate=e._incrs=e._found=e._splits=e._values=null,e._size>0&&(Sn[t]=!0)}})),n?n instanceof HTMLElement?(n.appendChild(E),Oi()):n(o,Oi):Oi(),o}Bn.assign=J,Bn.fmtNum=m,Bn.rangeNum=h,Bn.rangeLog=l,Bn.rangeAsinh=c,Bn.orient=an,Bn.join=function(e,t){for(var n=new Set,r=0;r<e.length;r++)for(var i=e[r][0],a=i.length,o=0;o<a;o++)n.add(i[o]);for(var s=[Array.from(n).sort((function(e,t){return e-t}))],l=s[0].length,c=new Map,u=0;u<l;u++)c.set(s[0][u],u);for(var f=0;f<e.length;f++)for(var d=e[f],h=d[0],p=1;p<d.length;p++){for(var v=d[p],m=Array(l).fill(void 0),g=t?t[f][p]:1,b=[],y=0;y<v.length;y++){var O=v[y],k=c.get(h[y]);null===O?0!=g&&(m[k]=O,2==g&&b.push(k)):m[k]=O}ee(m,b,l),s.push(m)}return s},Bn.fmtDate=Ue,Bn.tzDate=function(e,t){var n;return"UTC"==t||"Etc/UTC"==t?n=new Date(+e+6e4*e.getTimezoneOffset()):t==qe?n=e:(n=new Date(e.toLocaleString("en-US",{timeZone:t}))).setMilliseconds(e.getMilliseconds()),n},Bn.sync=rn,Bn.addGap=ln,Bn.clipGaps=sn;var Qn=Bn.paths={points:On};Qn.linear=jn,Qn.stepped=function(e){var t=p(e.align,1),n=p(e.ascDesc,!1);return function(e,r,i,o){return an(e,r,(function(s,l,c,u,f,d,h,p,v,m,g){var b=s.pxRound,y=0==u.ori?dn:hn,O={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:1},k=O.stroke,x=1*u.dir*(0==u.ori?1:-1);i=a(c,i,o,1),o=a(c,i,o,-1);var w=[],j=!1,S=b(h(c[1==x?i:o],f,g,v)),C=b(d(l[1==x?i:o],u,m,p)),M=C;y(k,C,S);for(var E=1==x?i:o;E>=i&&E<=o;E+=x){var T=c[E],P=b(d(l[E],u,m,p));if(null!=T){var _=b(h(T,f,g,v));if(j){if(ln(w,M,P),S!=_){var D=s.width*te/2,A=w[w.length-1];A[0]+=n||1==t?D:-D,A[1]-=n||-1==t?D:-D}j=!1}1==t?y(k,P,S):y(k,M,_),y(k,P,_),S=_,M=P}else null===T&&(ln(w,M,P),j=!0)}if(null!=s.fill){var R=O.fill=new Path2D(k),L=b(h(s.fillTo(e,r,s.min,s.max),f,g,v));y(R,M,L),y(R,C,L)}return O.gaps=w=s.gaps(e,r,i,o,w),s.spanGaps||(O.clip=sn(w,u.ori,p,v,m,g)),e.bands.length>0&&(O.band=on(e,r,i,o,k)),O}))}},Qn.bars=function(e){var t=p((e=e||V).size,[.6,P,1]),n=e.align||0,r=(e.gap||0)*te,i=1-t[0],a=p(t[1],P)*te,o=p(t[2],1)*te,s=e.disp,l=p(e.each,(function(e){}));return function(e,t,c,u){return an(e,t,(function(f,d,h,p,v,m,g,b,O,k,x){var S,C,M=f.pxRound,E=p.dir*(0==p.ori?1:-1),T=v.dir*(1==v.ori?1:-1),P=0==p.ori?pn:vn,D=0==p.ori?l:function(e,t,n,r,i,a,o){l(e,t,n,i,r,o,a)},A=g(f.fillTo(e,t,f.min,f.max),v,x,O),R=M(f.width*te);if(null!=s){d=s.x0.values(e,t,c,u),2==s.x0.unit&&(d=d.map((function(t){return e.posToVal(b+t*k,p.key,!0)})));var L=s.size.values(e,t,c,u);C=M((C=2==s.size.unit?L[0]*k:m(L[0],p,k,b)-m(0,p,k,b))-R),S=1==E?-R/2:C+R/2}else{var N=k;if(d.length>1)for(var z=1,I=1/0;z<d.length;z++){var F=y(d[z]-d[z-1]);F<I&&(I=F,N=y(m(d[z],p,k,b)-m(d[z-1],p,k,b)))}C=M(w(a,j(o,N-N*i))-R-r),S=(0==n?C/2:n==E?0:C)-n*E*r/2}var $,B={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:3},Q=e.bands.length>0;Q&&(B.band=new Path2D,$=_(g(v.max,v,x,O),.5));for(var W=B.stroke,H=B.band,V=1==E?c:u;V>=c&&V<=u;V+=E){var U=h[V],q=m(2!=p.distr||null!=s?d[V]:V,p,k,b),Y=g(U,v,x,O),X=M(q-S),K=M(j(Y,A)),G=M(w(Y,A)),Z=K-G;null!=h[V]&&(P(W,X,G,C,Z),D(e,t,V,X-R/2,G-R/2,C+R,Z+R)),Q&&(1==T?(K=G,G=$):(G=K,K=$),P(H,X-R/2,G+R/2,C+R,(Z=K-G)-R))}return null!=f.fill&&(B.fill=new Path2D(W)),B}))}},Qn.spline=function(e){return t=Sn,function(e,n,r,i){return an(e,n,(function(o,s,l,c,u,f,d,h,p,v,m){var g,b,y,O=o.pxRound;0==c.ori?(g=un,y=dn,b=bn):(g=fn,y=hn,b=yn);var k=1*c.dir*(0==c.ori?1:-1);r=a(l,r,i,1),i=a(l,r,i,-1);for(var x=[],w=!1,j=O(f(s[1==k?r:i],c,v,h)),S=j,C=[],M=[],E=1==k?r:i;E>=r&&E<=i;E+=k){var T=l[E],P=f(s[E],c,v,h);null!=T?(w&&(ln(x,S,P),w=!1),C.push(S=P),M.push(d(l[E],u,m,p))):null===T&&(ln(x,S,P),w=!0)}var _={stroke:t(C,M,g,y,b,O),fill:null,clip:null,band:null,gaps:null,flags:1},D=_.stroke;if(null!=o.fill&&null!=D){var A=_.fill=new Path2D(D),R=O(d(o.fillTo(e,n,o.min,o.max),u,m,p));y(A,S,R),y(A,j,R)}return _.gaps=x=o.gaps(e,n,r,i,x),o.spanGaps||(_.clip=sn(x,c.ori,h,p,v,m)),e.bands.length>0&&(_.band=on(e,n,r,i,D)),_}))};var t}},function(e,t,n){},,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 l,c=[],u=!1,f=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):f=-1,c.length&&h())}function h(){if(!u){var e=s(d);u=!0;for(var t=c.length;t;){for(l=c,c=[];++f<t;)l&&l[f].run();f=-1,t=c.length}l=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];c.push(new p(e,t)),1!==c.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 l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(_){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new E(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 P()}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 l=u(e,t,n);if("normal"===l.type){if(r=n.done?p:d,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=p,n.method="throw",n.arg=l.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=c;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,k=O&&O(O(T([])));k&&k!==n&&r.call(k,a)&&(y=k);var x=b.prototype=m.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(i,a,o,s){var l=u(e[i],e,a);if("throw"!==l.type){var c=l.arg,f=c.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){c.value=e,o(c)}),(function(e){return n("throw",e,o,s)}))}s(l.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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(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:P}}function P(){return{value:t,done:!0}}return g.prototype=x.constructor=b,b.constructor=g,g.displayName=l(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,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),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(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(x),l(x,s,"Generator"),x[a]=function(){return this},x.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=T,E.prototype={constructor:E,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(M),!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 l=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!c)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),M(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;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(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(97);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 l(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 c={date:l({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:l({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:l({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,l=i.width?String(i.width):e.defaultWidth;r=e.values[l]||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],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?p(l,(function(e){return e.test(s)})):h(l,(function(e){return e.test(s)}));o=e.valueCallback?e.valueCallback(c):c,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:c,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 k(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 x(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:x,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],a=r[2];if(!a)return k(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}}",k(i,t)).replace("{{time}}",x(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 M(e){return-1!==S.indexOf(e)}function E(e){return-1!==C.indexOf(e)}function T(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 P(e,t){i(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:g(o),l=null==n.weekStartsOn?s:g(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=a(e),u=c.getUTCDay(),f=(u<l?7:0)+u-l;return c.setUTCDate(c.getUTCDate()-f),c.setUTCHours(0,0,0,0),c}function _(e,t){i(1,arguments);var n=a(e,t),r=n.getUTCFullYear(),o=t||{},s=o.locale,l=s&&s.options&&s.options.firstWeekContainsDate,c=null==l?1:g(l),u=null==o.firstWeekContainsDate?c: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=P(f,t),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var p=P(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,l=null==s?0:g(s),c=null==r.weekStartsOn?l:g(r.weekStartsOn);if(!(c>=0&&c<=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<c?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 l=A(s);return t.getTime()>=o.getTime()?n+1:t.getTime()>=l.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 z(e){i(1,arguments);var t=a(e),n=A(t).getTime()-L(t).getTime();return Math.round(n/N)+1}function I(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),l=_(e,t),c=new Date(0);c.setUTCFullYear(l,0,s),c.setUTCHours(0,0,0,0);var u=P(c,t);return u}var F=6048e5;function $(e,t){i(1,arguments);var n=a(e),r=P(n,t).getTime()-I(n,t).getTime();return Math.round(r/F)+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/,le=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,ce=/^([+-])(\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 ke={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),P(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),P(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 P(function(e,t,n){i(2,arguments);var r=a(e),o=g(t),s=$(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=z(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(),l=((n%7+7)%7<r?7:0)+n-s;return o.setUTCDate(o.getUTCDate()+l),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(le,e);case"XXXXX":return de(ue,e);case"XXX":default:return de(ce,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(le,e);case"xxxxx":return de(ue,e);case"xxx":default:return de(ce,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:"*"}},xe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,we=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,je=/^'([^]*?)'?$/,Se=/''/g,Ce=/\S/,Me=/[a-zA-Z]/;function Ee(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 Te(e){return e.match(je)[1].replace(Se,"'")}var Pe=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 ze(e,t){if(null===t)return null;var n=e.match(De);if(!n)return null;var r=!!n[4],i=Ie(n[1]),a=Ie(n[2])-1,o=Ie(n[3]),s=Ie(n[4]),l=Ie(n[5])-1;if(r)return function(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}(0,s,l)?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,l):new Date(NaN);var c=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)?(c.setUTCFullYear(t,a,Math.max(i,o)),c):new Date(NaN)}function Ie(e){return e?parseInt(e):1}function Fe(e){var t=e.match(Ae);if(!t)return null;var n=$e(t[1]),r=$e(t[2]),i=$e(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*Pe+6e4*r+1e3*i:NaN}function $e(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*Pe+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=$(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Ue(i,t.length)},I:function(e,t,n){var r=z(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=/^'([^]*?)'?$/,lt=/''/g,ct=/[a-zA-Z]/;function ut(e){return e.match(st)[1].replace(lt,"'")}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 l=s.getDate();return o>=l?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 kt(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 xt(e,t){i(2,arguments);var n=a(e),r=a(t),o=kt(n,r),s=Math.abs(Ot(n,r));n.setDate(n.getDate()-o*s);var l=Number(kt(n,r)===-o),c=o*(s-l);return 0===c?0:c}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 Mt(e){i(1,arguments);var t=a(e);return St(t).getTime()===Ct(t).getTime()}function Et(e,t){i(2,arguments);var n,r=a(e),o=a(t),s=jt(r,o),l=Math.abs(wt(r,o));if(l<1)n=0;else{1===r.getMonth()&&r.getDate()>27&&r.setDate(30),r.setMonth(r.getMonth()-s*l);var c=jt(r,o)===-s;Mt(a(e))&&1===l&&1===jt(e,o)&&(c=!1),n=s*(l-Number(c))}return 0===n?0:n}function Tt(e,t){i(2,arguments);var n=a(e),r=a(t);return n.getFullYear()-r.getFullYear()}function Pt(e,t){i(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:g(o),l=null==n.weekStartsOn?s:g(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=a(e),u=c.getDay(),f=(u<l?7:0)+u-l;return c.setDate(c.getDate()-f),c.setHours(0,0,0,0),c}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),l=r||{},c=l.locale||m;if(!c.match)throw new RangeError("locale must contain match property");var u=c.options&&c.options.firstWeekContainsDate,f=null==u?1:g(u),d=null==l.firstWeekContainsDate?f:g(l.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=c.options&&c.options.weekStartsOn,p=null==h?0:g(h),v=null==l.weekStartsOn?p:g(l.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,k={firstWeekContainsDate:d,weekStartsOn:v,locale:c},x=[{priority:10,subPriority:-1,set:Ee,index:0}],S=s.match(we).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,w[t])(e,c.formatLong,k):e})).join("").match(xe),C=[];for(b=0;b<S.length;b++){var P=S[b];!l.useAdditionalWeekYearTokens&&E(P)&&T(P,s,e),!l.useAdditionalDayOfYearTokens&&M(P)&&T(P,s,e);var _=P[0],D=ke[_];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(P,"` at the same time"))}else if("*"===D.incompatibleTokens&&C.length)throw new RangeError("The format string mustn't contain `".concat(P,"` and any other token at the same time"));C.push({token:_,fullToken:P});var z=D.parse(o,P,c.match,k);if(!z)return new Date(NaN);x.push({priority:D.priority,subPriority:D.subPriority||0,set:D.set,validate:D.validate,value:z.value,index:x.length}),o=z.rest}else{if(_.match(Me))throw new RangeError("Format string contains an unescaped latin alphabet character `"+_+"`");if("''"===P?P="'":"'"===_&&(P=Te(P)),0!==o.indexOf(P))return new Date(NaN);o=o.slice(P.length)}}if(o.length>0&&Ce.test(o))return new Date(NaN);var I=x.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 x.filter((function(t){return t.priority===e})).sort((function(e,t){return t.subPriority-e.subPriority}))})).map((function(e){return e[0]})),F=a(n);if(isNaN(F))return new Date(NaN);var $=y(F,j(F)),B={};for(b=0;b<I.length;b++){var Q=I[b];if(Q.validate&&!Q.validate($,Q.value,k))return new Date(NaN);var W=Q.set($,B,Q.value,k);W[0]?($=W[0],O(B,W[1])):$=W}return $}(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=ze(s.restDateString,s.year)}if(isNaN(a)||!a)return new Date(NaN);var l,c=a.getTime(),u=0;if(o.time&&(u=Fe(o.time),isNaN(u)||null===u))return new Date(NaN);if(!o.timezone){var f=new Date(c+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 l=Be(o.timezone),isNaN(l)?new Date(NaN):new Date(c+u+l)}(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,l=s.options&&s.options.firstWeekContainsDate,c=null==l?1:g(l),u=null==o.firstWeekContainsDate?c: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&&E(n)&&T(n,t,e),!o.useAdditionalDayOfYearTokens&&M(n)&&T(n,t,e),i(b,n,s.localize,O);if(r.match(ct))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 xt(e,t);case"week":return function(e,t,n){i(2,arguments);var r=xt(e,t)/7;return mt(null===n||void 0===n?void 0:n.roundingMethod)(r)}(e,t);case"month":return Et(e,t);case"quarter":return function(e,t,n){i(2,arguments);var r=Et(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(Tt(n,r));n.setFullYear(1584),r.setFullYear(1584);var l=jt(n,r)===-o,c=o*(s-Number(l));return 0===c?0:c}(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 Pt(e);case"isoWeek":return Pt(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),l=null==n.weekStartsOn?s:g(n.weekStartsOn);if(!(l>=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=a(e),u=c.getDay(),f=6+(u<l?-7:0)-(u-l);return c.setDate(c.getDate()+f),c.setHours(23,59,59,999),c}(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(106)),l=n(37),c=n(52),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,k=e.onExiting,x=e.style,w=e.timeout,j=void 0===w?"auto":w,S=e.TransitionComponent,C=void 0===S?s.a:S,M=Object(a.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),E=o.useRef(),T=o.useRef(),P=Object(l.a)(),_=P.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),z=L((function(e,t){Object(c.b)(e);var n,r=Object(c.a)({style:x,timeout:j},{mode:"enter"}),i=r.duration,a=r.delay;"auto"===j?(n=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=n):n=i,e.style.transition=[P.transitions.create("opacity",{duration:n,delay:a}),P.transitions.create("transform",{duration:.666*n,delay:a})].join(","),m&&m(e,t)})),I=L(g),F=L(k),$=L((function(e){var t,n=Object(c.a)({style:x,timeout:j},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===j?(t=P.transitions.getAutoHeightDuration(e.clientHeight),T.current=t):t=r,e.style.transition=[P.transitions.create("opacity",{duration:t,delay:i}),P.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(E.current)}}),[]),o.createElement(C,Object(r.a)({appear:!0,in:v,nodeRef:_?D:void 0,onEnter:z,onEntered:I,onEntering:N,onExit:$,onExited:B,onExiting:F,addEndListener:function(e,t){var n=_?e:t;"auto"===j&&(E.current=setTimeout(n,T.current||0))},timeout:"auto"===j?null:j},M),(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],x,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(60);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},l="object"===("undefined"===typeof window?"undefined":s(window))&&"object"===("undefined"===typeof document?"undefined":s(document))&&9===document.nodeType;var c=n(41),u=n(51),f=n(70),d=n(55),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 l=o[s];for(var c in l){var u=l[c];null!=u&&(r&&(r+="\n"),r+=""+b(c+": "+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,k="undefined"!==typeof CSS&&CSS.escape,x=function(e){return k?k(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 l=this.options.sheet;return l&&l.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,l=r.generateId;return a?i.selectorText=a:!1!==o&&(i.id=l(Object(f.a)(Object(f.a)(i)),s),i.selectorText="."+x(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(c.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},M=/@([\w-]+)/,E=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(M);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}(),T=/@media|@supports\s+/,P={onCreateRule:function(e,t,n){return T.test(e)?new E(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 l in this.id=!1===a?this.name:x(s(this,o)),this.rules=new G(Object(i.a)({},n,{parent:this})),t)this.rules.add(l,t[l],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},z=function(e,t,n){var r=e[t],i=N(r,n);i!==r&&(e[t]=i)},I={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&&z(e,"animation-name",n.keyframes),"animation"in e&&z(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}}},F=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),$={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new F(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,P,I,$,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,l=r.Renderer,c=r.generateId,u=r.scoped,f=Object(i.a)({classes:this.classes,parent:a,sheet:o,jss:s,Renderer:l,generateId:c,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="."+x(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,l=s.style;if(a.onUpdate(n,t,o,r),r.process&&l&&l!==s.style){for(var c in a.onProcessStyle(s.style,s,o),s.style){var u=s.style[c];u!==l[c]&&s.prop(c,u,K)}for(var f in l){var d=s.style[f],h=l[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(c.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},le=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},ce=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=le,this.setSelector=ce,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),l=he(n,o,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},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:l?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)},ke=(Oe(),n(222)),xe={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(151),je=(n(12),n(95)),Se=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ce=Date.now(),Me="fnValues"+Ce,Ee="fnStyle"+ ++Ce,Te=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=v(e,{},n);return r[Ee]=t,r},onProcessStyle:function(e,t){if(Me in t||Ee 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[Me]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[Ee];a&&(i.style=a(e)||{});var o=i[Me];if(o)for(var s in o)i.prop(s,o[s](e),r)}}},Pe="@global",_e="@global ",De=function(){function e(e,t,n){for(var r in this.type="global",this.at=Pe,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=Pe,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===Pe)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[Pe]:null;if(a){for(var o in a)t.addRule(o,a[o],Object(i.a)({},n,{selector:Le(o,e.selector)}));delete r[Pe]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var a in r)if("@"===a[0]&&a.substr(0,Pe.length)===Pe){var o=Le(a.substr(Pe.length),e.selector);t.addRule(o,r[a],Object(i.a)({},n,{selector:o})),delete r[a]}}(e,t))}}},ze=/\s*,\s*/g,Ie=/&/g,Fe=/\$([\w-]+)/g;var $e=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(ze),r=e.split(ze),i="",a=0;a<n.length;a++)for(var o=n[a],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(Ie,o):o+" "+l}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,l,c=a,u=c.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),h="@"===f[0];if(d||h){if(s=n(c,u,s),d){var p=t(f,c.selector);l||(l=e(u,o)),p=p.replace(Fe,l),u.addRule(p,r[f],Object(i.a)({},s,{selector:p}))}else h&&u.addRule(f,{},s).addRule(c.key,r[f],{selector:c.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(56),nt="",rt="",it="",at="",ot=l&&"ontouchstart"in document.documentElement;if(l){var st={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},lt=document.createElement("p").style;for(var ct in st)if(ct+"Transform"in lt){nt=ct,rt=st[ct];break}"Webkit"===nt&&"msHyphens"in lt&&(nt="ms",rt=st.ms,at="edge"),"Webkit"===nt&&"-apple-trailing-word"in lt&&(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 kt,xt={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)}},Mt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ut||"ms"===ut||"apple"===dt?ft+e:e)}},Et={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))}},Tt={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}},Pt={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"},zt=Object.keys(Nt),It=function(e){return ft+e},Ft=[vt,mt,xt,wt,jt,St,Ct,Mt,Et,Tt,Pt,_t,Dt,At,Lt,{supportedProperty:function(e,t,n){var r=n.multiple;if(zt.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(It)}return!1}}],$t=Ft.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),Bt=Ft.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(tt.a)(t.noPrefill)),e}),[]),Qt={};if(l){kt=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={}),!kt)return e;if(null!=Qt[e])return Qt[e];"transition"!==e&&"transform"!==e||(t[e]=e in kt.style);for(var n=0;n<$t.length&&(Qt[e]=$t[n](e,kt.style,t),!Qt[e]);n++);try{kt.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]}l&&(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:[Te(),Ne(),$e(),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,"-"),l=0,c=function(){return l+=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(c()):a}return"".concat(s).concat(i).concat(c())}}(),jss:tn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},rn=o.a.createContext(nn);var an=-1e9;function on(){return an+=1}n(60);var sn=n(191);function ln(e){var t="function"===typeof e;return{create:function(n,r){var a;try{a=t?e(n):e}catch(l){throw l}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 cn={};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(ke.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 l=xe.get(a.sheetsManager,o,r);l||(l={refs:0,staticSheet:null,dynamicStyles:null},xe.set(a.sheetsManager,o,r,l));var c=Object(i.a)(Object(i.a)(Object(i.a)({},o.options),a),{},{theme:r,flip:"boolean"===typeof a.flip?a.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var u=a.sheetsRegistry;if(0===l.refs){var f;a.sheetsCache&&(f=xe.get(a.sheetsCache,o,r));var d=o.create(r,s);f||((f=a.jss.createStyleSheet(d,Object(i.a)({link:!1},c))).attach(),a.sheetsCache&&xe.set(a.sheetsCache,o,r,f)),u&&u.add(f),l.staticSheet=f,l.dynamicStyles=be(d)}if(l.dynamicStyles){var h=a.jss.createStyleSheet(l.dynamicStyles,Object(i.a)({link:!0},c));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=Object(ke.a)({baseClasses:l.staticSheet.classes,newClasses:h.classes}),u&&u.add(h)}else n.classes=l.staticSheet.classes;l.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=xe.get(r.sheetsManager,i,n);a.refs-=1;var o=r.sheetsRegistry;0===a.refs&&(xe.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,l=t.defaultTheme,c=void 0===l?cn:l,u=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),f=ln(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)()||c,r=Object(i.a)(Object(i.a)({},o.a.useContext(rn)),u),a=o.a.useRef(),l=o.a.useRef();pn((function(){var i={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return fn(i,e),l.current=!1,a.current=i,function(){hn(i)}}),[t,f]),o.a.useEffect((function(){l.current&&dn(a.current,e),l.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(151)),l=n(223),c=n(29),u=n(228),f=n(40),d=n(23),h=n(31),p=n(93),v=n(61),m=n(41),g=n(56),b=n(102),y=n(64);function O(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function k(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function x(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(c.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(k(a)+o,"px"),n=Object(c.a)(a).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(k(e)+o,"px")}))}var s=a.parentElement,l="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:a;r.push({value:l.style.overflow,key:"overflow",el:l}),l.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);x(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),x(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,l=e.disableRestoreFocus,u=void 0!==l&&l,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)}),[]),k=Object(d.a)(t.ref,O),x=a.useRef();return a.useEffect((function(){x.current=p}),[p]),!x.current&&p&&"undefined"!==typeof window&&(b.current=f().activeElement),a.useEffect((function(){if(p){var e=Object(c.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:k}),a.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},M={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"}},E=a.forwardRef((function(e,t){var n=e.invisible,o=void 0!==n&&n,s=e.open,l=Object(r.a)(e,["invisible","open"]);return s?a.createElement("div",Object(i.a)({"aria-hidden":!0,ref:t},l,{style:Object(i.a)({},M.root,o?M.invisible:{},l.style)})):null}));var T=new S,P=a.forwardRef((function(e,t){var n=Object(s.a)(),v=Object(l.a)({name:"MuiModal",props:Object(i.a)({},e),theme:n}),m=v.BackdropComponent,g=void 0===m?E:m,b=v.BackdropProps,y=v.children,k=v.closeAfterTransition,x=void 0!==k&&k,w=v.container,j=v.disableAutoFocus,S=void 0!==j&&j,M=v.disableBackdropClick,P=void 0!==M&&M,_=v.disableEnforceFocus,D=void 0!==_&&_,A=v.disableEscapeKeyDown,R=void 0!==A&&A,L=v.disablePortal,N=void 0!==L&&L,z=v.disableRestoreFocus,I=void 0!==z&&z,F=v.disableScrollLock,$=void 0!==F&&F,B=v.hideBackdrop,Q=void 0!==B&&B,W=v.keepMounted,H=void 0!==W&&W,V=v.manager,U=void 0===V?T: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(c.a)(re.current)},le=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){U.mount(le(),{disableScrollLock:$}),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(le(),e),ie.current&&ce()})),fe=a.useCallback((function(){return U.isTopModal(le())}),[U]),de=Object(h.a)((function(e){re.current=e,e&&(K&&K(),G&&fe()?ce():O(ie.current,!0))})),he=a.useCallback((function(){U.remove(le())}),[U]);if(a.useEffect((function(){return function(){he()}}),[he]),a.useEffect((function(){G?ue():oe&&x||he()}),[G,he,oe,x,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),x&&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),!P&&Y&&Y(e,"backdropClick"))}},b)),a.createElement(C,{disableEnforceFocus:D,disableAutoFocus:S,disableRestoreFocus:I,getDoc:se,isEnabled:fe,open:G},a.cloneElement(y,ve))))}));t.a=P},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(152),o=n(0),s=(n(12),n(9)),l=n(45),c=n(57),u=n(11),f=n(18),d=n(23),h=n(50);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,l=e.rowsMin,c=void 0===l?1:l,u=e.style,f=e.value,g=Object(r.a)(e,["onChange","rows","rowsMax","rowsMin","style","value"]),b=a||c,y=o.useRef(null!=f).current,O=o.useRef(null),k=Object(d.a)(t,O),x=o.useRef(null),w=o.useRef(0),j=o.useState({}),S=j[0],C=j[1],M=o.useCallback((function(){var t=O.current,n=window.getComputedStyle(t),r=x.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"),l=r.scrollHeight-a;r.value="x";var c=r.scrollHeight-a,u=l;b&&(u=Math.max(Number(b)*c,u)),s&&(u=Math.min(Number(s)*c,u));var f=(u=Math.max(u,c))+("border-box"===i?a+o:0),d=Math.abs(u-l)<=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,M()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[M]),v((function(){M()})),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||M(),n&&n(e)},ref:k,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:x,tabIndex:-1,style:Object(i.a)({},m,u)}))})),b=n(71),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,k=e.endAdornment,x=(e.error,e.fullWidth),w=void 0!==x&&x,j=e.id,S=e.inputComponent,C=void 0===S?"input":S,M=e.inputProps,E=void 0===M?{}:M,T=e.inputRef,P=(e.margin,e.multiline),_=void 0!==P&&P,D=e.name,A=e.onBlur,R=e.onChange,L=e.onClick,N=e.onFocus,z=e.onKeyDown,I=e.onKeyUp,F=e.placeholder,$=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!=E.value?E.value:Y,G=o.useRef(null!=K).current,Z=o.useRef(),J=o.useCallback((function(e){0}),[]),ee=Object(d.a)(E.ref,J),te=Object(d.a)(T,ee),ne=Object(d.a)(Z,te),re=o.useState(!1),ie=re[0],ae=re[1],oe=Object(c.b)();var se=Object(l.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 le=oe&&oe.onFilled,ce=oe&&oe.onEmpty,ue=o.useCallback((function(e){Object(b.b)(e)?le&&le():ce&&ce()}),[le,ce]);y((function(){G&&ue({value:K})}),[K,ue,G]);o.useEffect((function(){ue(Z.current)}),[]);var fe=C,de=Object(i.a)({},E,{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,k&&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(c.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:F,readOnly:$,required:se.required,rows:Q,value:K,onKeyDown:z,onKeyUp:I},de,{className:Object(s.a)(p.input,E.className,se.disabled&&p.disabled,_&&p.inputMultiline,se.hiddenLabel&&p.inputHiddenLabel,V&&p.inputAdornedStart,k&&p.inputAdornedEnd,"search"===q&&p.inputTypeSearch,"dense"===se.margin&&p.inputMarginDense),onBlur:function(e){A&&A(e),E.onBlur&&E.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];E.onChange&&E.onChange.apply(E,[e].concat(r)),R&&R.apply(void 0,[e].concat(r))},onFocus:function(e){se.disabled?e.stopPropagation():(N&&N(e),E.onFocus&&E.onFocus(e),oe&&oe.onFocus?oe.onFocus(e):ae(!0))}}))),k,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),l=n(18),c=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,k=e.value,x=void 0===k?0:k,w=e.variant,j=void 0===w?"indeterminate":w,S=Object(i.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),C={},M={},E={};if("determinate"===j||"static"===j){var T=2*Math.PI*((c-O)/2);C.strokeDasharray=T.toFixed(3),E["aria-valuenow"]=Math.round(x),"static"===j?(C.strokeDashoffset="".concat(((100-x)/100*T).toFixed(3),"px"),M.transform="rotate(-90deg)"):(C.strokeDashoffset="".concat((n=(100-x)/100,n*n*T).toFixed(3),"px"),M.transform="rotate(".concat((270*u(x/70)).toFixed(3),"deg)"))}return a.createElement("div",Object(r.a)({className:Object(o.a)(s.root,f,"inherit"!==h&&s["color".concat(Object(l.a)(h))],{indeterminate:s.indeterminate,static:s.static}[j]),style:Object(r.a)({width:g,height:g},M,b),ref:t,role:"progressbar"},E,S),a.createElement("svg",{className:s.svg,viewBox:"".concat(22," ").concat(22," ").concat(c," ").concat(c)},a.createElement("circle",{className:Object(o.a)(s.circle,v&&s.circleDisableShrink,{indeterminate:s.circleIndeterminate,static:s.circleStatic}[j]),style:C,cx:c,cy:c,r:(c-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(192),a=n(65);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),l=n(11),c=n(85),u=n(18),f=a.forwardRef((function(e,t){e.checked;var n=e.classes,l=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,l,"end"!==v&&n["labelPlacement".concat(Object(u.a)(v))],b&&n.disabled),ref:t},m),a.cloneElement(f,y),a.createElement(c.a,{component:"span",className:Object(o.a)(n.label,b&&n.disabled)},h))}));t.a=Object(l.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),l=n(22),c=n(18),u=n(96),f=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.color,f=void 0===l?"secondary":l,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(c.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(c.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(l.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(l.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,l=r.forwardRef((function(e,t){var n=e.children,l=e.container,c=e.disablePortal,u=void 0!==c&&c,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)}(l)||document.body)}),[l,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=l},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(22),l=n(11),c=n(86),u=n(18),f=a.forwardRef((function(e,t){var n=e.children,s=e.classes,l=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,k=Object(r.a)(e,["children","classes","className","disabled","disableFocusRipple","onChange","onClick","selected","size","value"]);return a.createElement(c.a,Object(i.a)({className:Object(o.a)(s.root,l,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},k),a.createElement("span",{className:s.label},n))}));t.a=Object(l.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),l=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,u=Object(i.a)(e,["classes","className","component"]);return a.createElement(c,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"})(l)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),l=n(98),c="table",u=a.forwardRef((function(e,t){var n=e.classes,s=e.className,u=e.component,f=void 0===u?c: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(l.a.Provider,{value:y},a.createElement(f,Object(i.a)({role:f===c?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),l=n(67),c={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(l.a.Provider,{value:c},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),l=n(67),c=n(22),u=a.forwardRef((function(e,t){var n=e.classes,s=e.className,c=e.component,u=void 0===c?"tr":c,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(l.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(c.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),l=n(18),c=n(22),u=n(98),f=n(67),d=a.forwardRef((function(e,t){var n,s,c=e.align,d=void 0===c?"inherit":c,h=e.classes,p=e.className,v=e.component,m=e.padding,g=e.scope,b=e.size,y=e.sortDirection,O=e.variant,k=Object(r.a)(e,["align","classes","className","component","padding","scope","size","sortDirection","variant"]),x=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||(x&&x.padding?x.padding:"default"),M=b||(x&&x.size?x.size:"medium"),E=O||w&&w.variant,T=null;return y&&(T="asc"===y?"ascending":"descending"),a.createElement(s,Object(i.a)({ref:t,className:Object(o.a)(h.root,h[E],p,"inherit"!==d&&h["align".concat(Object(l.a)(d))],"default"!==C&&h["padding".concat(Object(l.a)(C))],"medium"!==M&&h["size".concat(Object(l.a)(M))],"head"===E&&x&&x.stickyHeader&&h.stickyHeader),"aria-sort":T,role:n,scope:S},k))}));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(c.e)(Object(c.c)(e.palette.divider,1),.88):Object(c.a)(Object(c.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),l=n(67),c={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(l.a.Provider,{value:c},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(18),l=n(11),c=n(63),u=n(23),f=n(85),d=a.forwardRef((function(e,t){var n=e.classes,l=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,k=e.variant,x=void 0===k?"inherit":k,w=Object(i.a)(e,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),j=Object(c.a)(),S=j.isFocusVisible,C=j.onBlurVisible,M=j.ref,E=a.useState(!1),T=E[0],P=E[1],_=Object(u.a)(t,M);return a.createElement(f.a,Object(r.a)({className:Object(o.a)(n.root,n["underline".concat(Object(s.a)(O))],l,T&&n.focusVisible,"button"===v&&n.button),classes:b,color:h,component:v,onBlur:function(e){T&&(C(),P(!1)),m&&m(e)},onFocus:function(e){S(e)&&P(!0),g&&g(e)},ref:_,variant:x},w))}));t.a=Object(l.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(194),l=n(11),c=a.forwardRef((function(e,t){var n=e.disableUnderline,l=e.classes,c=e.fullWidth,u=void 0!==c&&c,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)({},l,{root:Object(o.a)(l.root,!n&&l.underline),underline:null}),fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g))}));c.muiName="Input",t.a=Object(l.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"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(71),l=n(11),c=n(18),u=n(77),f=n(57),d=a.forwardRef((function(e,t){var n=e.children,l=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,k=e.fullWidth,x=void 0!==k&&k,w=e.focused,j=e.hiddenLabel,S=void 0!==j&&j,C=e.margin,M=void 0===C?"none":C,E=e.required,T=void 0!==E&&E,P=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],z=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})),I=z[0],F=z[1],$=a.useState(!1),B=$[0],Q=$[1],W=void 0!==w?w:B;b&&W&&Q(!1);var H=a.useCallback((function(){F(!0)}),[]),V={adornedStart:L,setAdornedStart:N,color:p,disabled:b,error:O,filled:I,focused:W,fullWidth:x,hiddenLabel:S,margin:("small"===P?"dense":void 0)||M,onBlur:function(){Q(!1)},onEmpty:a.useCallback((function(){F(!1)}),[]),onFilled:H,onFocus:function(){Q(!0)},registerEffect:undefined,required:T,variant:D};return a.createElement(f.a.Provider,{value:V},a.createElement(m,Object(r.a)({className:Object(o.a)(l.root,d,"none"!==M&&l["margin".concat(Object(c.a)(M))],x&&l.fullWidth),ref:t},A),n))}));t.a=Object(l.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(50),l=n(9),c=n(29),u=n(64),f=n(40),d=n(11),h=n(193),p=n(190),v=n(153);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,k=void 0===O?{vertical:"top",horizontal:"left"}:O,x=e.anchorPosition,w=e.anchorReference,j=void 0===w?"anchorEl":w,S=e.children,C=e.classes,M=e.className,E=e.container,T=e.elevation,P=void 0===T?8:T,_=e.getContentAnchorEl,D=e.marginThreshold,A=void 0===D?16:D,R=e.onEnter,L=e.onEntered,N=e.onEntering,z=e.onExit,I=e.onExited,F=e.onExiting,$=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 x;var t=y(d),n=(t&&1===t.nodeType?t:Object(c.a)(Z.current).body).getBoundingClientRect(),r=0===e?k.vertical:"center";return{top:n.top+m(n,r),left:n.left+g(n,k.horizontal)}}),[d,k.horizontal,k.vertical,x,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}),[k.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,l=o+n.width,c=Object(u.a)(y(d)),f=c.innerHeight-A,h=c.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(l>h){var g=l-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(){$&&re()})),a.useImperativeHandle(n,(function(){return $?{updatePosition:function(){re()}}:null}),[$,re]),a.useEffect((function(){if($){var e=Object(s.a)((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[$,re]);var ae=Y;"auto"!==Y||U.muiSupportAuto||(ae=void 0);var oe=E||(d?Object(c.a)(y(d)).body:void 0);return a.createElement(h.a,Object(r.a)({container:oe,open:$,ref:t,BackdropProps:{invisible:!0},className:Object(l.a)(C.root,M)},G),a.createElement(U,Object(r.a)({appear:!0,in:$,onEnter:R,onEntered:L,onExit:z,onExited:I,onExiting:F,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:P,ref:ie},Q,{className:Object(l.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),l=n(42),c=n(11),u=a.forwardRef((function(e,t){var n=e.children,c=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(l.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)(c.root,("filled"===v.variant||"outlined"===v.variant)&&c.contained,u,v.disabled&&c.disabled,v.error&&c.error,v.filled&&c.filled,v.focused&&c.focused,v.required&&c.required,"dense"===v.margin&&c.marginDense),ref:t},h)," "===n?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)}));t.a=Object(c.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(20),a=n(2),o=n(0),s=(n(12),n(9)),l=n(11),c=n(86),u=n(18),f=o.forwardRef((function(e,t){var n=e.classes,i=e.className,l=e.disabled,f=void 0!==l&&l,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,k=e.selected,x=e.selectionFollowsFocus,w=e.textColor,j=void 0===w?"inherit":w,S=e.value,C=e.wrapped,M=void 0!==C&&C,E=Object(r.a)(e,["classes","className","disabled","disableFocusRipple","fullWidth","icon","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"]);return o.createElement(c.a,Object(a.a)({focusRipple:!h,className:Object(s.a)(n.root,n["textColor".concat(Object(u.a)(j))],i,f&&n.disabled,k&&n.selected,g&&v&&n.labelIcon,p&&n.fullWidth,M&&n.wrapped),ref:t,role:"tab","aria-selected":k,disabled:f,onClick:function(e){b&&b(e,S),y&&y(e)},onFocus:function(e){x&&!k&&b&&b(e,S),O&&O(e)},tabIndex:k?0:-1},E),o.createElement("span",{className:n.wrapper},v,g),m)}));t.a=Object(l.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),l=n(22),c=n(86),u=n(18),f=a.forwardRef((function(e,t){var n=e.children,s=e.classes,l=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,k=e.endIcon,x=e.focusVisibleClassName,w=e.fullWidth,j=void 0!==w&&w,S=e.size,C=void 0===S?"medium":S,M=e.startIcon,E=e.type,T=void 0===E?"button":E,P=e.variant,_=void 0===P?"text":P,D=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),A=M&&a.createElement("span",{className:Object(o.a)(s.startIcon,s["iconSize".concat(Object(u.a)(C))])},M),R=k&&a.createElement("span",{className:Object(o.a)(s.endIcon,s["iconSize".concat(Object(u.a)(C))])},k);return a.createElement(c.a,Object(i.a)({className:Object(o.a)(s.root,s[_],l,"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,x),ref:t,type:T},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(l.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(l.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(l.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(l.c)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(l.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(l.c)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(l.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(20),o=n(0),s=(n(12),n(9)),l=n(11),c=o.forwardRef((function(e,t){var n=e.classes,a=e.className,l=e.component,c=void 0===l?"div":l,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(c,Object(r.a)({className:Object(s.a)(n.root,n[h],a,!f&&n.gutters),ref:t},p))}));t.a=Object(l.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"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(8),a=n(0),o=(n(12),n(9)),s=n(85),l=n(11),c=n(57),u=a.forwardRef((function(e,t){var n=e.children,l=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(c.b)()||{},k=b;return b&&O.variant,O&&!k&&(k=O.variant),a.createElement(c.a.Provider,{value:null},a.createElement(d,Object(r.a)({className:Object(o.a)(l.root,u,p&&l.disablePointerEvents,O.hiddenLabel&&l.hiddenLabel,"filled"===k&&l.filled,{start:l.positionStart,end:l.positionEnd}[g],"dense"===O.margin&&l.marginDense),ref:t},y),"string"!==typeof n||m?n:a.createElement(s.a,{color:"textSecondary"},n)))}));t.a=Object(l.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(106)),l=n(43),c=n(37),u=n(52),f=n(23),d={entering:{opacity:1},entered:{opacity:1}},h={enter:l.b.enteringScreen,exit:l.b.leavingScreen},p=o.forwardRef((function(e,t){var n=e.children,l=e.disableStrictModeCompat,p=void 0!==l&&l,v=e.in,m=e.onEnter,g=e.onEntered,b=e.onEntering,y=e.onExit,O=e.onExited,k=e.onExiting,x=e.style,w=e.TransitionComponent,j=void 0===w?s.a:w,S=e.timeout,C=void 0===S?h:S,M=Object(a.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","TransitionComponent","timeout"]),E=Object(c.a)(),T=E.unstable_strictMode&&!p,P=o.useRef(null),_=Object(f.a)(n.ref,t),D=Object(f.a)(T?P:void 0,_),A=function(e){return function(t,n){if(e){var r=T?[P.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:x,timeout:C},{mode:"enter"});e.style.webkitTransition=E.transitions.create("opacity",n),e.style.transition=E.transitions.create("opacity",n),m&&m(e,t)})),N=A(g),z=A(k),I=A((function(e){var t=Object(u.a)({style:x,timeout:C},{mode:"exit"});e.style.webkitTransition=E.transitions.create("opacity",t),e.style.transition=E.transitions.create("opacity",t),y&&y(e)})),F=A(O);return o.createElement(j,Object(r.a)({appear:!0,in:v,nodeRef:T?P:void 0,onEnter:L,onEntered:N,onEntering:R,onExit:I,onExited:F,onExiting:z,timeout:C},M),(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],x,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),l=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=e.dividers,c=void 0!==l&&l,u=Object(i.a)(e,["classes","className","dividers"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(n.root,s,c&&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"})(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),l=a.forwardRef((function(e,t){var n=e.disableSpacing,s=void 0!==n&&n,l=e.classes,c=e.className,u=Object(i.a)(e,["disableSpacing","classes","className"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(l.root,c,!s&&l.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"})(l)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(11),l=[0,1,2,3,4,5,6,7,8,9,10],c=["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,l=e.alignItems,c=void 0===l?"stretch":l,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,k=void 0===O?"flex-start":O,x=e.lg,w=void 0!==x&&x,j=e.md,S=void 0!==j&&j,C=e.sm,M=void 0!==C&&C,E=e.spacing,T=void 0===E?0:E,P=e.wrap,_=void 0===P?"wrap":P,D=e.xl,A=void 0!==D&&D,R=e.xs,L=void 0!==R&&R,N=e.zeroMinWidth,z=void 0!==N&&N,I=Object(r.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),F=Object(o.a)(u.root,f,v&&[u.container,0!==T&&u["spacing-xs-".concat(String(T))]],y&&u.item,z&&u.zeroMinWidth,"row"!==g&&u["direction-xs-".concat(String(g))],"wrap"!==_&&u["wrap-xs-".concat(String(_))],"stretch"!==c&&u["align-items-xs-".concat(String(c))],"stretch"!==s&&u["align-content-xs-".concat(String(s))],"flex-start"!==k&&u["justify-xs-".concat(String(k))],!1!==L&&u["grid-xs-".concat(String(L))],!1!==M&&u["grid-sm-".concat(String(M))],!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:F,ref:t},I))})),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 l.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={};c.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),l=n(85),c=a.forwardRef((function(e,t){var n=e.children,s=e.classes,c=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,c),ref:t},d),f?n:a.createElement(l.a,{component:"h2",variant:"h6"},n))}));t.a=Object(s.a)({root:{margin:0,padding:"16px 24px",flex:"0 0 auto"}},{name:"MuiDialogTitle"})(c)},function(e,t,n){"use strict";var r=n(2),i=n(0),a=(n(12),n(11)),o=n(85),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(86),l=n(155),c=n(11),u=n(103),f=a.forwardRef((function(e,t){var n=e.children,c=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],k=a.useContext(u.a),x=k.disabled,w=void 0!==x&&x,j=k.expanded,S=k.toggle;return a.createElement(s.a,Object(r.a)({focusRipple:!1,disableRipple:!0,disabled:w,component:"div","aria-expanded":j,className:Object(o.a)(c.root,f,w&&c.disabled,j&&c.expanded,y&&c.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)(c.content,j&&c.expanded)},n),d&&a.createElement(l.a,Object(r.a)({className:Object(o.a)(c.expandIcon,j&&c.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},h),d))}));t.a=Object(c.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),l=a.forwardRef((function(e,t){var n=e.classes,s=e.className,l=Object(i.a)(e,["classes","className"]);return a.createElement("div",Object(r.a)({className:Object(o.a)(n.root,s),ref:t},l))}));t.a=Object(s.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(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),l=n(18),c=n(153),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(c.a,Object(r.a)({square:!0,component:"header",elevation:4,className:Object(o.a)(n.root,n["position".concat(Object(l.a)(h))],n["color".concat(Object(l.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(90)),s=n(151),l=n(95);t.a=function(e){var t=e.children,n=e.theme,i=Object(s.a)(),c=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[l.a]=null!==i),e}),[n,i]);return a.a.createElement(o.a.Provider,{value:c},t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return At}));var r=n(20),i=n(0),a=n.n(i),o=n(12),s=n(33),l=n(9),c=n(2),u=n(8),f=n(225),d=n(37),h=n(85),p=n(22),v=n(267),m=n(11),g=n(242),b=n(243),y=n(247),O=n(246),k=n(268),x=n(239);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),x=Object(u.a)(e,["children","classes","onAccept","onDismiss","onClear","onSetToday","okLabel","cancelLabel","clearLabel","todayLabel","clearable","showTodayButton","showTabs","wider"]);return Object(i.createElement)(k.a,Object(c.a)({role:"dialog",onClose:a,classes:{paper:Object(l.a)(n.dialogRoot,b&&n.dialogRootWider)}},x),Object(i.createElement)(O.a,{children:t,className:n.dialog}),Object(i.createElement)(y.a,{classes:{root:Object(l.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 M=Object(v.a)({dialogRoot:{minWidth:310},dialogRootWider:{minWidth:325},dialog:{"&:first-child":{padding:0}},withAdditionalAction:{justifyContent:"flex-start","& > *:first-child":{marginRight:"auto"}}}),E=Object(m.a)(M,{name:"MuiPickersModal"})(C),T="undefined"===typeof window?i.useEffect:i.useLayoutEffect;function P(e,t){var n=t[e.key];n&&(n(),e.preventDefault())}function _(e,t){var n=Object(i.useRef)(t);n.current=t,T((function(){if(e){var t=function(e){P(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,l=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,k=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(c.a)({},k,m)),Object(i.createElement)(E,Object(c.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:l,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),l=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)(l,Object(c.a)({},f,s,{inputRef:d})),Object(i.createElement)(x.a,Object(c.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(258),z=n(155),I=n(244),F=n(51),$=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,l=n.props.refuse||/[^\d]+/g,c=r.substr(0,e).replace(l,"");if(n._state={input:i,before:c,op:a,di:o&&s,del:o},n.props.replace&&n.props.replace(t)&&a&&!s){for(var u=-1,f=0;f!==c.length;++f)u=Math.max(u,r.toLowerCase().indexOf(c[f].toLowerCase(),u+1));var d=r.substr(u+1).replace(l,"")[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(F.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(154),Q=n(28),W=n(61),H=n(41),V=n(60),U=n(70);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(l.a)(f.day,r&&f.hidden,a&&f.current,o&&f.daySelected,n&&f.dayDisabled);return Object(i.createElement)(z.a,Object(c.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(264),te=n(55);function ne(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var re=n(106),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(F.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(c.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(224),le=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"]),l=Object(i.useCallback)((function(){return a(n)}),[a,n]);return Object(i.createElement)("div",Object(c.a)({role:"presentation",onClick:o&&!r?l:void 0,onKeyPress:o&&!r?l:void 0},s),t)},ce=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=ce(),c={exit:s.slideExit,enterActive:s.slideEnterActive,enter:s["slideEnter-"+r],exitActive:s["slideExitActiveLeft-"+r]};return Object(i.createElement)(ee.a,{className:Object(l.a)(s.transitionContainer,o),childFactory:function(e){return Object(i.cloneElement)(e,{classNames:c})}},Object(i.createElement)(oe,{mountOnEnter:!0,unmountOnExit:!0,key:n+r,timeout:350,classNames:c,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,l=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)(z.a,Object(c.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)(z.a,Object(c.a)({},l,{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,l=a.date();return Boolean(o&&a.isAfterDay(e,l)||s&&a.isBeforeDay(e,l)||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;P(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(),l=o.startOfDay(r),c=o.getMonth(n.state.currentMonth);return e.map((function(e){var t=n.shouldDisableDate(e),r=o.getMonth(e)===c,u=Object(i.createElement)(J,{disabled:t,current:o.isSameDay(e,s),hidden:!r,selected:o.isSameDay(l,e)},o.getDayText(e));return a&&(u=a(e,l,r,u)),Object(i.createElement)(le,{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,l=n.startOfDay(n.date());o&&n.isBefore(r,l)&&(r=l),a&&n.isAfter(i,l)&&(i=l);var c=t,u=t;for(n.isBefore(t,r)&&(c=n.date(r),u=null),n.isAfter(t,i)&&(u&&(u=n.date(i)),c=null);c||u;){if(c&&n.isAfter(c,i)&&(c=null),u&&n.isBefore(u,r)&&(u=null),c){if(!s(c))return c;c=n.addDays(c,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,l=r.leftArrowIcon,c=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:l,leftArrowButtonProps:s,rightArrowIcon:u,rightArrowButtonProps:c,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(c.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(l.a)(t.pointer,this.state.toAnimateTransform&&t.animateTransform)},Object(i.createElement)("div",{className:Object(l.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},ke=Oe.x-Oe.x,xe=0-Oe.y,we=function(e,t,n){var r=t-Oe.x,i=n-Oe.y,a=Math.atan2(ke,xe)-Math.atan2(r,i),o=57.29577951308232*a;o=Math.round(o/e)*e,o%=360;var s=Math.floor(o/e)||0,l=Math.pow(r,2)+Math.pow(i,2);return{value:s,distance:Math.sqrt(l)}},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"},Me=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},Ee=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);Ee.defaultProps={ampm:!1,minutesStep:1};var Te=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"})(Ee),Pe={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(l.a)(o.clockNumber,t&&o.clockNumberSelected),c=Object(i.useMemo)((function(){var e=Pe[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:c,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,l=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:l(u),isInner:!t&&(0===u||u>12)};o.push(Object(i.createElement)(De,Object(c.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,l=e.date,u=e.minutesStep,f=Object(s.b)(),d=Object(i.useMemo)((function(){switch(t){case ge.HOURS:return{value:f.getHours(l),children:Ae({date:l,utils:f,ampm:Boolean(o)}),onChange:function(e,t){var r=Ce(l,f),i=Me(f.setHours(l,e),r,Boolean(o),f);n(i,t)}};case ge.MINUTES:var e=f.getMinutes(l);return{value:e,children:Re({value:e,utils:f}),onChange:function(e,t){var n=f.setMinutes(l,e);r(n,t)}};case ge.SECONDS:var i=f.getSeconds(l);return{value:i,children:Re({value:i,utils:f}),onChange:function(e,t){var n=f.setSeconds(l,e);a(n,t)}};default:throw new Error("You must provide the type for TimePickerView")}}),[o,l,n,r,a,t,f]);return Object(i.createElement)(Te,Object(c.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 ze={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},Ie=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"},{},ze,{showTabs:!0});var Fe=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"}),$e=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=Fe(),p=Object(i.useCallback)((function(){return t(r)}),[t,r]);return Object(i.createElement)(h.a,Object(c.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(l.a)(d.root,a&&d.yearSelected,o&&d.yearDisabled)},f))};$e.displayName="Year";var Be=Object(i.forwardRef)((function(e,t){return Object(i.createElement)($e,Object(c.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,l=e.disablePast,c=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(l&&f.isBeforeYear(e,f.date())||c&&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(c.a)({role:"button",component:"div",className:Object(l.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,l=e.onMonthChange,c=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),l=u.startOfMonth(t&&u.isAfter(i,o)?i:o),c=u.startOfMonth(n&&u.isBefore(i,s)?i:s),f=u.isBefore(e,l),d=u.isAfter(e,c);return f||d},p=Object(i.useCallback)((function(e){var t=u.setMonth(o,e);c(t,!0),l&&l(t)}),[o,c,l,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 T((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,k=y.setOpenView,x=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(l.a)(g.container,b&&g.containerLandscape)},!r&&Object(i.createElement)(h,Object(c.a)({},v,{views:n,isLandscape:b,date:t,onChange:a,setOpenView:k,openView:O})),Object(i.createElement)("div",{className:Object(l.a)(g.pickerView,b&&g.pickerViewLandscape)},"year"===O&&Object(i.createElement)(We,Object(c.a)({},v,{date:t,onChange:x,minDate:j,maxDate:S})),"month"===O&&Object(i.createElement)(qe,Object(c.a)({},v,{date:t,onChange:x,minDate:j,maxDate:S})),"date"===O&&Object(i.createElement)(me,Object(c.a)({},v,{date:t,onChange:x,minDate:j,maxDate:S})),("hours"===O||"minutes"===O||"seconds"===O)&&Object(i.createElement)(Le,Object(c.a)({},v,{date:t,type:O,onHourChange:x,onMinutesChange:x,onSecondsChange:x}))))};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}({},ze,{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(c.a)({children:n,className:Object(l.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(c.a)({variant:"text",className:Object(l.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(c.a)({className:Object(l.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,l=e.TextFieldComponent,f=void 0===l?N.a:l,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(c.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 lt=function(e,t,n,r,i){var a=i.invalidLabel,o=i.emptyLabel,s=i.labelFunc,l=n.date(e);return s?s(r?null:l,a):r?o||"":n.isValid(l)?n.format(l,t):a},ct=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,l=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,k=e.rifmFormatter,x=e.TextFieldComponent,w=void 0===x?N.a:x,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 l=e[o];l===t&&s<a.length?(i+=a[s],s+=1):i+=l,o+=1}return i}}(S,v,g)}),[S,v,g]),M=s&&s.position?s.position:"end";return Object(i.createElement)($,{key:S,value:t,onChange:function(e){f(""===e||e===S?null:e)},refuse:g,format:k||C},(function(e){var t=e.onChange,u=e.value;return Object(i.createElement)(w,Object(c.a)({disabled:O,error:Boolean(a),helperText:a},j,{value:u,onChange:t,variant:n,InputProps:dt({},d,Object(r.a)({},"".concat(M,"Adornment"),Object(i.createElement)(I.a,Object(c.a)({position:M},s),Object(i.createElement)(z.a,Object(c.a)({disabled:O},o,{onClick:l}),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,l=e.onChange,c=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),k=O[0],x=O[1];Object(i.useEffect)((function(){p||d.isEqual(k,g)||x(g)}),[g,p,k,d]);var w=Object(i.useCallback)((function(e){l(e),o&&o(e),v(!1)}),[o,l,v]),j=Object(i.useMemo)((function(){return{format:b,open:p,onClear:function(){return w(null)},onAccept:function(){return w(k)},onSetToday:function(){return x(d.date())},onDismiss:function(){v(!1)}}}),[w,b,p,k,v,d]),S=Object(i.useMemo)((function(){return{date:k,onChange:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];x(e),t&&n?w(e):"inline"!==f&&"static"!==f||(l(e),o&&o(e))}}}),[w,n,o,l,k,f]),C=function(e,t,n){var r=n.maxDate,i=n.minDate,a=n.disablePast,o=n.disableFuture,s=n.maxDateMessage,l=n.minDateMessage,c=n.invalidDateMessage,u=n.strictCompareDates,f=t.date(e);return null===e?"":t.isValid(e)?r&&t.isAfter(f,ct(t,!!u,t.date(r)))||o&&t.isAfter(f,ct(t,!!u,t.date()))?s:i&&t.isBefore(f,ut(t,!!u,t.date(i)))||a&&t.isBefore(f,ut(t,!!u,t.date()))?l:"":c}(u,d,e);Object(i.useEffect)((function(){c&&c(C,u)}),[c,C,u]);var M=lt(g,b,d,null===u,e),E={pickerProps:S,inputProps:Object(i.useMemo)((function(){return{inputValue:M,validationError:C,openPicker:function(){return!a&&!r&&v(!0)}}}),[r,M,a,v,C]),wrapperProps:j};return Object(i.useDebugValue)(E),E}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,l=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,k=(e.maxDateMessage,e.minDate),x=(e.minDateMessage,e.minutesStep),w=(e.onAccept,e.onChange,e.onClose,e.onMonthChange),j=(e.onOpen,e.onYearChange),S=e.openTo,C=e.orientation,M=e.renderDay,E=e.rightArrowButtonProps,T=e.rightArrowIcon,P=e.shouldDisableDate,_=e.strictCompareDates,D=e.timeIcon,A=e.ToolbarComponent,R=void 0===A?o:A,N=(e.value,e.variant),z=e.views,I=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"]),F=a?a(e):{},$=r(e),B=n(e,$),Q=B.pickerProps,W=B.inputProps,H=B.wrapperProps;return Object(i.createElement)(L,Object(c.a)({variant:N,InputComponent:t,DateInputProps:W},F,H,I),Object(i.createElement)(Ze,Object(c.a)({},Q,{allowKeyboardControl:s,ampm:l,animateYearScrolling:f,dateRangeIcon:d,disableFuture:h,disablePast:p,disableToolbar:v,hideTabs:m,leftArrowButtonProps:g,leftArrowIcon:b,loadingIndicator:y,maxDate:O,minDate:k,minutesStep:x,onMonthChange:w,onYearChange:j,openTo:S,orientation:C,renderDay:M,rightArrowButtonProps:E,rightArrowIcon:T,shouldDisableDate:P,strictCompareDates:_,timeIcon:D,ToolbarComponent:R,views:z})))}}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=Me(e,i,Boolean(t),r);n(a,!1)}),[t,e,n,r])}}var Ot=n(248),kt=n(241),xt=n(259),wt=n(153),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)(xt.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)(kt.a,{value:"date",icon:Object(i.createElement)(i.Fragment,null,r)}),Object(i.createElement)(kt.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 Mt=Object(f.a)((function(e){return{toolbar:{paddingLeft:16,paddingRight:16,justifyContent:"space-around"},separator:{margin:"0 4px 0 2px",cursor:"default"}}}),{name:"MuiPickerDTToolbar"}),Et=function(e){var t=e.date,n=e.openView,r=e.setOpenView,a=e.ampm,o=e.hideTabs,l=e.dateRangeIcon,c=e.timeIcon,u=e.onChange,f=Object(s.b)(),h=Mt(),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:l,timeIcon:c,view:n,onChange:r}))};function Tt(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 Pt=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tt(n,!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tt(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Ie,{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:Et}),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,l=e.value,c=Object(s.b)(),u=lt(l,r,c,null===l,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,c,r):l;Object(i.useEffect)((function(){(null===l||c.isValid(l))&&p(u)}),[u,p,c,l]);var m=vt(gt({},e,{value:v,onChange:Object(i.useCallback)((function(e){o(e,null===e?null:c.format(e,r))}),[r,o,c])}),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:c.parse(e,b.format);o(t,e)}})}),[g,h,a,o,c,b.format]),wrapperProps:b,pickerProps:y}},DefaultToolbarComponent:Et,getCustomProps:function(e){return{refuse:e.ampm?/[^\dap]+/gi:/[^\d]+/gi}}});Dt.defaultProps=Pt,At.defaultProps=Pt},function(e,t,n){"use strict";var r=n(56),i=n(2),a=(n(12),n(66));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},l=n(20),c=n(91);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(c.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(l.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 k=f({prop:"width",transform:O}),x=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}),M=(f({prop:"size",cssProperty:"width",transform:O}),f({prop:"size",cssProperty:"height",transform:O}),s(k,x,w,j,S,C,f({prop:"boxSizing"}))),E=n(270),T=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"})),P=n(8),_=n(0),D=n.n(_),A=n(9),R=n(94),L=n.n(R),N=n(192);function z(e,t){var n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}var I=n(65),F=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(P.a)(r,["name"]),s=a,l="function"===typeof t?function(e){return{root:function(n){return t(Object(i.a)({theme:e},n))}}}:{root:t},c=Object(N.a)(l,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,l=t.component,u=Object(P.a)(t,["children","className","clone","component"]),f=c(t),d=Object(A.a)(f.root,o),h=u;if(n&&(h=z(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=l||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:I.a},n))}},$=o(s(h,p,v,m,g,b,y,M,E.b,T)),B=F("div")($,{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(237),l=n(194),c=n(11),u=a.forwardRef((function(e,t){var n=e.disableUnderline,s=e.classes,c=e.fullWidth,u=void 0!==c&&c,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(l.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(c.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(20),h=n(37),p=n(18),v=a.forwardRef((function(e,t){e.children;var n=e.classes,s=e.className,l=e.label,c=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!==l)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)},l?a.createElement("span",null,l):a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})));var g=c>0?.75*c+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(c.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,c=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,k=Object(i.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return a.createElement(l.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:c,inputComponent:f,multiline:g,ref:t,type:O},k))}));g.muiName="Input";var b=Object(c.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(266),O=n(238),k=n(240),x=n(222),w=n(28),j=n(60),S=n(152),C=(n(69),n(29)),M=n(239),E=n(26);var T=a.createContext({}),P=a.forwardRef((function(e,t){var n=e.children,s=e.classes,l=e.className,c=e.component,u=void 0===c?"ul":c,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(T.Provider,{value:g},a.createElement(u,Object(r.a)({className:Object(o.a)(s.root,l,d&&s.dense,!p&&s.padding,v&&s.subheader),ref:t},m),v,n))})),_=Object(c.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(P),D=n(102),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 z(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 l=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&N(s,a)&&!l)return void s.focus();s=i(e,s,n)}}var I="undefined"===typeof window?a.useEffect:a.useLayoutEffect,F=a.forwardRef((function(e,t){var n=e.actions,o=e.autoFocus,s=void 0!==o&&o,l=e.autoFocusItem,c=void 0!==l&&l,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),k=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});I((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 x=a.useCallback((function(e){O.current=E.findDOMNode(e)}),[]),w=Object(A.a)(x,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 c&&(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(),z(t,r,v,h,R);else if("ArrowUp"===n)e.preventDefault(),z(t,r,v,h,L);else if("Home"===n)e.preventDefault(),z(t,null,v,h,R);else if("End"===n)e.preventDefault(),z(t,null,v,h,L);else if(1===n.length){var i=k.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||z(t,r,!1,h,R,i))?e.preventDefault():i.previousKeyMatched=!1}m&&m(e)},tabIndex:s?0:-1},y),S)})),$=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,l=e.children,c=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,k=e.transitionDuration,x=void 0===k?"auto":k,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)(),T=s&&!f&&g,P=a.useRef(null),_=a.useRef(null),D=-1;a.Children.map(l,(function(e,t){a.isValidElement(e)&&(e.props.disabled||("menu"!==j&&e.props.selected||-1===D)&&(D=t))}));var A=a.Children.map(l,(function(e,t){return t===D?a.cloneElement(e,{ref:function(t){_.current=E.findDOMNode(t),Object($.a)(e.ref,t)}}):e}));return a.createElement(M.a,Object(r.a)({getContentAnchorEl:function(){return _.current},classes:O,onClose:v,onEntering:function(e,t){P.current&&P.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:c.paper})}),open:g,ref:t,transitionDuration:x},S),a.createElement(F,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),v&&v(e,"tabKeyDown"))},actions:P,autoFocus:s&&(-1===D||f),autoFocusItem:T,variant:j},p,{className:Object(o.a)(c.list,p.className)}),A))})),H=Object(c.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(W),V=n(71),U=n(54);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,l=e.autoWidth,c=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,k=e.multiple,x=e.name,j=e.onBlur,M=e.onChange,E=e.onClose,T=e.onFocus,P=e.onOpen,_=e.open,D=e.readOnly,R=e.renderValue,L=e.SelectDisplayProps,N=void 0===L?{}:L,z=e.tabIndex,I=(e.type,e.value),F=e.variant,$=void 0===F?"standard":F,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:I,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 le,ce,ue=function(e,t){e?P&&P(t):E&&E(t),ee||(re(l?null:Z.clientWidth),oe(e))},fe=a.Children.toArray(c),de=function(e){return function(t){var n;if(k||ue(!1,t),k){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),M&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:x}}),M(t,e)))}},he=null!==Z&&(ee?_:ae);delete B["aria-invalid"];var pe=[],ve=!1;(Object(V.b)({value:Y})||v)&&(R?le=R(Y):ve=!0);var me=fe.map((function(e){if(!a.isValidElement(e))return null;var t;if(k){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&&(ce=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&&(le=k?pe.join(", "):ce);var ge,be=ne;!l&&ee&&Z&&(be=Z.clientWidth),ge="undefined"!==typeof z?z:h?null:0;var ye=N.id||(x?"mui-component-select-".concat(x):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,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:x}}),j(e))},onFocus:T},N,{id:ye}),function(e){return null==e||"string"===typeof e&&!e.trim()}(le)?a.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):le),a.createElement("input",Object(r.a)({value:Array.isArray(Y)?Y.join(","):Y,name:x,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),M&&M(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)($))],he&&u.iconOpen,h&&u.disabled)}),a.createElement(H,Object(r.a)({id:"menu-".concat(x||""),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,l=e.disabled,c=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,l&&n.disabled),disabled:l,ref:u||t},h)),e.multiple?null:a.createElement(c,{className:Object(o.a)(n.icon,n["icon".concat(Object(p.a)(d))],l&&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,l=void 0===s?Z:s,c=e.input,u=void 0===c?te:c,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:l,variant:p.variant,type:void 0},f,u?u.props.inputProps:{}),ref:t},d))}));ne.muiName="Select";Object(c.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,l=t.children,c=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,k=void 0===O?0:O,w=t.MenuProps,j=t.multiple,S=void 0!==j&&j,C=t.native,M=void 0!==C&&C,E=t.onClose,T=t.onOpen,P=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=M?J:Y,z=Object(K.a)(),I=Object(X.a)({props:t,muiFormControl:z,states:["variant"]}).variant||R,F=v||{standard:ie,outlined:a.createElement(b,{label:g,labelWidth:k}),filled:ae}[I];return a.cloneElement(F,Object(r.a)({inputComponent:N,inputProps:Object(r.a)({children:l,IconComponent:h,variant:I,type:void 0,multiple:S},M?{id:p}:{autoWidth:s,displayEmpty:f,labelId:y,MenuProps:w,onClose:E,onOpen:T,open:P,renderValue:_,SelectDisplayProps:Object(r.a)({id:p},D)},m,{classes:m?Object(x.a)({baseClasses:c,newClasses:m.classes,Component:e}):c},v?v.props.inputProps:{}),ref:n},L))}));oe.muiName="Select";var se=Object(c.a)(re,{name:"MuiSelect"})(oe),le={standard:s.a,filled:f,outlined:b},ce=a.forwardRef((function(e,t){var n=e.autoComplete,s=e.autoFocus,l=void 0!==s&&s,c=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,x=e.FormHelperTextProps,w=e.fullWidth,j=void 0!==w&&w,S=e.helperText,C=e.hiddenLabel,M=e.id,E=e.InputLabelProps,T=e.inputProps,P=e.InputProps,_=e.inputRef,D=e.label,A=e.multiline,R=void 0!==A&&A,L=e.name,N=e.onBlur,z=e.onChange,I=e.onFocus,F=e.placeholder,$=e.required,B=void 0!==$&&$,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&&(E&&"undefined"!==typeof E.shrink&&(Z.notched=E.shrink),D)){var J,ee=null!==(J=null===E||void 0===E?void 0:E.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&&M?"".concat(M,"-helper-text"):void 0,ne=D&&M?"".concat(M,"-label"):void 0,re=le[K],ie=a.createElement(re,Object(r.a)({"aria-describedby":te,autoComplete:n,autoFocus:l,defaultValue:p,fullWidth:j,multiline:R,name:L,rows:Q,rowsMax:W,type:q,value:Y,id:M,inputRef:_,onBlur:N,onChange:z,onFocus:I,placeholder:F,inputProps:T},Z,P));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:M,id:ne},E),D),V?a.createElement(se,Object(r.a)({"aria-describedby":te,id:M,labelId:ne,value:Y,input:ie},U),c):ie,S&&a.createElement(k.a,Object(r.a)({id:te},x),S))}));t.a=Object(c.a)({root:{}},{name:"MuiTextField"})(ce)},function(e,t,n){"use strict";var r,i=n(2),a=n(8),o=n(20),s=n(0),l=(n(69),n(12),n(9)),c=n(50),u=n(64);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),l=function(){r.current=o.current.offsetHeight-o.current.clientHeight};return s.useEffect((function(){var e=Object(c.a)((function(){var e=r.current;l(),e!==r.current&&t(r.current)}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[t]),s.useEffect((function(){l(),t(r.current)}),[t]),s.createElement("div",Object(i.a)({style:p,ref:o},n))}var m=n(11),g=n(18),b=s.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.color,c=e.orientation,u=Object(a.a)(e,["classes","className","color","orientation"]);return s.createElement("span",Object(i.a)({className:Object(l.a)(n.root,n["color".concat(Object(g.a)(o))],r,"vertical"===c&&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),k=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"),x=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(86),j=s.createElement(k,{fontSize:"small"}),S=s.createElement(x,{fontSize:"small"}),C=s.forwardRef((function(e,t){var n=e.classes,r=e.className,o=e.direction,c=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(l.a)(n.root,r,u&&n.disabled,"vertical"===c&&n.vertical),ref:t,role:null,tabIndex:null},f),"left"===o?j:S)})),M=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),E=n(31),T=n(37),P=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,k=e.className,x=e.component,w=void 0===x?"div":x,j=e.indicatorColor,S=void 0===j?"secondary":j,C=e.onChange,P=e.orientation,_=void 0===P?"horizontal":P,D=e.ScrollButtonComponent,A=void 0===D?M:D,R=e.scrollButtons,L=void 0===R?"auto":R,N=e.selectionFollowsFocus,z=e.TabIndicatorProps,I=void 0===z?{}:z,F=e.TabScrollButtonProps,$=e.textColor,B=void 0===$?"inherit":$,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(T.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}),le=se[0],ce=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(E.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 l=Math.abs(ae[G]-s[G]),c=Math.abs(ae[ee]-s[ee]);(l>=1||c>=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,l=void 0===s?300:s,c=null,u=t[e],f=!1,d=function(){f=!0},p=function r(a){if(f)i(new Error("Animation cancelled"));else{null===c&&(c=a);var s=Math.min(1,(a-c)/l);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])},ke=function(){ye(pe.current[J])},xe=s.useCallback((function(e){de({overflow:null,marginBottom:-e})}),[]),we=Object(E.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(E.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 l=d(pe.current,U.direction);e=Y?l<o-s-1:l>1,t=Y?l>1:l<o-s-1}e===le.start&&t===le.end||ce({start:e,end:t})}}));s.useEffect((function(){var e=Object(c.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(c.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},I,{style:Object(i.a)({},ae,I.style)})),Me=0,Ee=s.Children.map(b,(function(e){if(!s.isValidElement(e))return null;var t=void 0===e.props.value?Me:e.props.value;he.set(t,Me);var n=t===Q;return Me+=1,s.cloneElement(e,{fullWidth:"fullWidth"===H,indicator:n&&!ne&&Ce,selected:n,selectionFollowsFocus:N,onChange:C,textColor:B,value:t})})),Te=function(){var e={};e.scrollbarSizeListener=q?s.createElement(v,{className:O.scrollable,onChange:xe}):null;var t=le.start||le.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:!le.start,className:Object(l.a)(O.scrollButtons,"on"!==L&&O.scrollButtonsDesktop)},F)):null,e.scrollButtonEnd=n?s.createElement(A,Object(i.a)({orientation:_,direction:Y?"left":"right",onClick:ke,disabled:!le.end,className:Object(l.a)(O.scrollButtons,"on"!==L&&O.scrollButtonsDesktop)},F)):null,e}();return s.createElement(w,Object(i.a)({className:Object(l.a)(O.root,k,X&&O.vertical),ref:t},V),Te.scrollButtonStart,Te.scrollbarSizeListener,s.createElement("div",{className:Object(l.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(l.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"},Ee),ne&&Ce),Te.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"})(P)},function(e,t,n){"use strict";var r=n(8),i=n(2),a=n(0),o=(n(12),n(9)),s=n(22),l=n(11),c=n(153),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(155),g=n(18),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,l=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,k=e.onClose,x=e.role,w=void 0===x?"alert":x,j=e.severity,S=void 0===j?"success":j,C=e.variant,M=void 0===C?"standard":C,E=Object(r.a)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return a.createElement(c.a,Object(i.a)({role:w,square:!0,elevation:0,className:Object(o.a)(l.root,l["".concat(M).concat(Object(g.a)(h||S))],u),ref:t},E),!1!==p?a.createElement("div",{className:l.icon},p||O[S]||b[S]):null,a.createElement("div",{className:l.message},s),null!=n?a.createElement("div",{className:l.action},n):null,null==n&&k?a.createElement("div",{className:l.action},a.createElement(m.a,{size:"small","aria-label":d,title:d,color:"inherit",onClick:k},y)):null)}));t.a=Object(l.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(96),l=n(36),c=Object(l.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(l.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(l.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(18),p=n(11),v=a.createElement(u,null),m=a.createElement(c,null),g=a.createElement(d,null),b=a.forwardRef((function(e,t){var n=e.checkedIcon,l=void 0===n?v:n,c=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,k=void 0===O?g:O,x=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?k:p,M=y?k:l;return a.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(o.a)(c.root,c["color".concat(Object(h.a)(f))],y&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:f,inputProps:Object(r.a)({"data-indeterminate":y},x),icon:a.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===j?j:C.props.fontSize}),checkedIcon:a.cloneElement(M,{fontSize:void 0===M.props.fontSize&&"small"===j?j:M.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(20),a=n(2),o=n(0),s=(n(12),n(9)),l=n(11),c=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,l=e.touchEvent,c=void 0===l?"onTouchEnd":l,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),k=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)}})),x=function(e){return function(n){b.current=!0;var r=t.props[e];r&&r(n)}},w={ref:O};return!1!==c&&(w[c]=x(c)),o.useEffect((function(){if(!1!==c){var e=p(c),t=Object(f.a)(m.current),n=function(){v.current=!0};return t.addEventListener(e,k),t.addEventListener("touchmove",n),function(){t.removeEventListener(e,k),t.removeEventListener("touchmove",n)}}}),[k,c]),!1!==a&&(w[a]=x(a)),o.useEffect((function(){if(!1!==a){var e=p(a),t=Object(f.a)(m.current);return t.addEventListener(e,k),function(){t.removeEventListener(e,k)}}}),[k,a]),o.createElement(o.Fragment,null,o.cloneElement(t,w))},m=n(18),g=n(40),b=n(190),y=n(153),O=n(22),k=o.forwardRef((function(e,t){var n=e.action,i=e.classes,l=e.className,c=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,l),ref:t},d),o.createElement("div",{className:i.message},c),n?o.createElement("div",{className:i.action},n):null)})),x=Object(l.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"})(k),w=o.forwardRef((function(e,t){var n=e.action,i=e.anchorOrigin,l=(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,k=e.ClickAwayListenerProps,w=e.ContentProps,j=e.disableWindowBlurListener,S=void 0!==j&&j,C=e.message,M=e.onClose,E=e.onEnter,T=e.onEntered,P=e.onEntering,_=e.onExit,D=e.onExited,A=e.onExiting,R=e.onMouseEnter,L=e.onMouseLeave,N=e.open,z=e.resumeHideDuration,I=e.TransitionComponent,F=void 0===I?b.a:I,$=e.transitionDuration,B=void 0===$?{enter:c.b.enteringScreen,exit:c.b.leavingScreen}:$,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(){M&&M.apply(void 0,arguments)})),X=Object(h.a)((function(e){M&&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!=z?z:.5*d)}),[d,z,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){M&&M(e,"clickaway")}},k),o.createElement("div",Object(a.a)({className:Object(s.a)(y.root,y["anchorOrigin".concat(Object(m.a)(l)).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(F,Object(a.a)({appear:!0,in:N,onEnter:Object(g.a)((function(){q(!1)}),E),onEntered:T,onEntering:P,onExit:_,onExited:Object(g.a)((function(){q(!0)}),D),onExiting:A,timeout:B,direction:"top"===l?"down":"up"},Q),p||o.createElement(x,Object(a.a)({message:C,action:n},w)))))}));t.a=Object(l.a)((function(e){var t={top:8},n={bottom:8},r={justifyContent:"flex-end"},o={justifyContent:"flex-start"},s={top:24},l={bottom:24},c={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)({},l,f))),anchorOriginTopRight:Object(a.a)({},t,r,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({left:"auto"},s,c))),anchorOriginBottomRight:Object(a.a)({},n,r,Object(i.a)({},e.breakpoints.up("sm"),Object(a.a)({left:"auto"},l,c))),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"},l,u)))}}),{flip:!1,name:"MuiSnackbar"})(w)},function(e,t,n){"use strict";var r=n(2),i=n(88),a=n(92),o=n(76),s=n(89);var l=n(28),c=n(8),u=n(0),f=(n(69),n(12),n(9)),d=n(106),h=n(11),p=n(43),v=n(52),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,k=e.in,x=e.onEnter,w=e.onEntered,j=e.onEntering,S=e.onExit,C=e.onExited,M=e.onExiting,E=e.style,T=e.timeout,P=void 0===T?p.b.standard:T,_=e.TransitionComponent,D=void 0===_?d.a:_,A=Object(c.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),z=u.useRef(),I="number"===typeof s?"".concat(s,"px"):s;u.useEffect((function(){return function(){clearTimeout(L.current)}}),[]);var F=R.unstable_strictMode&&!O,$=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(l.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=I,x&&x(e,t)})),H=Q((function(e,t){var n=N.current?N.current.clientHeight:0,r=Object(v.a)({style:E,timeout:P},{mode:"enter"}).duration;if("auto"===P){var i=R.transitions.getAutoHeightDuration(n);e.style.transitionDuration="".concat(i,"ms"),z.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:E,timeout:P},{mode:"exit"}).duration;if("auto"===P){var r=R.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(r,"ms"),z.current=r}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height=I,M&&M(e)}));return u.createElement(D,Object(r.a)({in:k,onEnter:W,onEntered:V,onEntering:H,onExit:U,onExited:q,onExiting:Y,addEndListener:function(e,t){var n=F?e:t;"auto"===P&&(L.current=setTimeout(n,z.current||0))},nodeRef:F?$:void 0,timeout:"auto"===P?null:P},A),(function(e,t){return u.createElement(b,Object(r.a)({className:Object(f.a)(i.container,a,{entered:i.entered,exited:!k&&"0px"===I&&i.hidden}[e]),style:Object(r.a)({minHeight:I},E),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(153),k=n(103),x=n(54),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,M=e.TransitionComponent,E=void 0===M?y:M,T=e.TransitionProps,P=Object(c.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),_=Object(x.a)({controlled:w,default:m,name:"Accordion",state:"expanded"}),D=Object(l.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),z=(n=N,Object(i.a)(n)||Object(a.a)(n)||Object(o.a)(n)||Object(s.a)()),I=z[0],F=z.slice(1),$=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},P),u.createElement(k.a.Provider,{value:$},I),u.createElement(E,Object(r.a)({in:A,timeout:"auto"},T),u.createElement("div",{"aria-labelledby":I.props.id,id:I.props["aria-controls"],role:"region"},F)))}));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(55),i=n(2),a=n(70),o=n(51),s=(n(12),n(0)),l=n.n(s),c=n(78);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 l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}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 l=a in t,c=a in r,u=t[a],d=Object(s.isValidElement)(u)&&!u.props.in;!c||l&&!d?c||!l||d?c&&l&&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?l.a.createElement(c.a.Provider,{value:a},o):l.a.createElement(c.a.Provider,{value:a},l.a.createElement(t,i,o))},t}(l.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(20),s=n(0),l=n(26),c=(n(12),n(9)),u=n(191),f=n(22),d=n(11),h=n(18),p=n(190),v=n(129),m=n(151),g=n(228),b=n(40),y=n(38),O=n(23);function k(e){return"function"===typeof e?e():e}var x="undefined"!==typeof window?s.useLayoutEffect:s.useEffect,w={},j=s.forwardRef((function(e,t){var n=e.anchorEl,i=e.children,o=e.container,l=e.disablePortal,c=void 0!==l&&l,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,M=e.popperRef,E=e.style,T=e.transition,P=void 0!==T&&T,_=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,M),N=s.useRef(L);x((function(){N.current=L}),[L]),s.useImperativeHandle(M,(function(){return R.current}),[]);var z=s.useState(!0),I=z[0],F=z[1],$=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($),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=(k(n),new v.a(k(n),D.current,Object(r.a)({placement:$},C,{modifiers:Object(r.a)({},c?{}:{preventOverflow:{boundariesElement:"window"}},d,C.modifiers),onCreate:Object(b.a)(e,C.onCreate),onUpdate:Object(b.a)(e,C.onUpdate)})));N.current(t)}}),[n,c,d,h,$,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||P||U()}),[h,P]),!f&&!h&&(!P||I))return null;var q={placement:Q};return P&&(q.TransitionProps={in:h,onEnter:function(){F(!1)},onExited:function(){F(!0),U()}}),s.createElement(g.a,{disablePortal:c,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||P?null:"none"},E)}),"function"===typeof i?i(q):i))})),S=n(87),C=n(63),M=n(54),E=n(37);function T(e){return Math.round(1e5*e)/1e5}var P=!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,k=e.disableTouchListener,x=void 0!==k&&k,w=e.enterDelay,T=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,z=e.interactive,I=void 0!==z&&z,F=e.leaveDelay,$=void 0===F?0:F,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(E.a)(),re=s.useState(),ie=re[0],ae=re[1],oe=s.useState(null),se=oe[0],le=oe[1],ce=s.useRef(!1),ue=s.useRef(),fe=s.useRef(),de=s.useRef(),he=s.useRef(),pe=Object(M.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(_),P=!0,ge(!0),H&&H(e)},ke=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),ce.current&&"touchstart"!==t.type||(ie&&ie.removeAttribute("title"),clearTimeout(fe.current),clearTimeout(de.current),T||P&&A?(t.persist(),fe.current=setTimeout((function(){Oe(t)}),P?A:T)):Oe(t))}},xe=Object(C.a)(),we=xe.isFocusVisible,je=xe.onBlurVisible,Se=xe.ref,Ce=s.useState(!1),Me=Ce[0],Ee=Ce[1],Te=function(){Me&&(Ee(!1),je())},Pe=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return function(t){ie||ae(t.currentTarget),we(t)&&(Ee(!0),ke()(t));var n=f.props;n.onFocus&&e&&n.onFocus(t)}},_e=function(e){clearTimeout(_),_=setTimeout((function(){P=!1}),800+$),ge(!1),W&&W(e),clearTimeout(ue.current),ue.current=setTimeout((function(){ce.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),Te()),"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)}),$)}},Ae=function(e){ce.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,l.findDOMNode(e))}),[Le]),ze=Object(O.a)(f.ref,Ne);""===G&&(be=!1);var Ie=!be&&!b,Fe=Object(r.a)({"aria-describedby":be?ye:null,title:Ie&&"string"===typeof G?G:null},te,f.props,{className:Object(c.a)(te.className,f.props.className),onTouchStart:Ae,ref:ze}),$e={};x||(Fe.onTouchStart=function(e){Ae(e),clearTimeout(de.current),clearTimeout(ue.current),clearTimeout(he.current),e.persist(),he.current=setTimeout((function(){ke()(e)}),L)},Fe.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||(Fe.onMouseOver=ke(),Fe.onMouseLeave=De(),I&&($e.onMouseOver=ke(!1),$e.onMouseLeave=De(!1))),m||(Fe.onFocus=Pe(),Fe.onBlur=De(),I&&($e.onFocus=Pe(!1),$e.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,Fe),s.createElement(X,Object(r.a)({className:Object(c.a)(d.popper,I&&d.popperInteractive,o&&d.popperArrow),placement:q,anchorEl:ie,open:!!ie&&be,id:Fe["aria-describedby"],transition:!0},$e,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(c.a)(d.tooltip,d["tooltipPlacement".concat(Object(h.a)(t.split("-")[0]))],ce.current&&d.touch,o&&d.tooltipArrow)},G,o?s.createElement("span",{className:d.arrow,ref:le}):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(T(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(T(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),l=n(42),c=n(11),u=n(18),f=a.forwardRef((function(e,t){var n=e.children,c=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(l.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)(c.root,c["color".concat(Object(u.a)(m.color||"primary"))],f,m.disabled&&c.disabled,m.error&&c.error,m.filled&&c.filled,m.focused&&c.focused,m.required&&c.required),ref:t},p),n,m.required&&a.createElement("span",{"aria-hidden":!0,className:Object(o.a)(c.asterisk,m.error&&c.error)},"\u2009","*"))})),d=Object(c.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,c=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(l.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,c,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(c.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(20),o=n(0),s=(n(12),n(9)),l=n(11),c=n(18),u=n(193),f=n(245),d=o.forwardRef((function(e,t){var n=e.children,a=e.classes,l=e.className,c=e.invisible,u=void 0!==c&&c,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,l,u&&a.invisible),"aria-hidden":!0,ref:t},n))})),h=Object(l.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(153),m={enter:p.b.enteringScreen,exit:p.b.leavingScreen},g=o.forwardRef((function(e,t){var n=e.BackdropProps,a=e.children,l=e.classes,d=e.className,p=e.disableBackdropClick,g=void 0!==p&&p,b=e.disableEscapeKeyDown,y=void 0!==b&&b,O=e.fullScreen,k=void 0!==O&&O,x=e.fullWidth,w=void 0!==x&&x,j=e.maxWidth,S=void 0===j?"sm":j,C=e.onBackdropClick,M=e.onClose,E=e.onEnter,T=e.onEntered,P=e.onEntering,_=e.onEscapeKeyDown,D=e.onExit,A=e.onExited,R=e.onExiting,L=e.open,N=e.PaperComponent,z=void 0===N?v.a:N,I=e.PaperProps,F=void 0===I?{}:I,$=e.scroll,B=void 0===$?"paper":$,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)(l.root,d),BackdropComponent:h,BackdropProps:Object(r.a)({transitionDuration:V},n),closeAfterTransition:!0,disableBackdropClick:g,disableEscapeKeyDown:y,onEscapeKeyDown:_,onClose:M,open:L,ref:t},X),o.createElement(W,Object(r.a)({appear:!0,in:L,timeout:V,onEnter:E,onEntering:P,onEntered:T,onExit:D,onExiting:R,onExited:A,role:"none presentation"},U),o.createElement("div",{className:Object(s.a)(l.container,l["scroll".concat(Object(c.a)(B))]),onMouseUp:function(e){e.target===e.currentTarget&&e.target===K.current&&(K.current=null,C&&C(e),!g&&M&&M(e,"backdropClick"))},onMouseDown:function(e){K.current=e.target}},o.createElement(z,Object(r.a)({elevation:24,role:"dialog","aria-describedby":q,"aria-labelledby":Y},F,{className:Object(s.a)(l.paper,l["paperScroll".concat(Object(c.a)(B))],l["paperWidth".concat(Object(c.a)(String(S)))],F.className,k&&l.paperFullScreen,w&&l.paperFullWidth)}),a))))}));t.a=Object(l.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(69),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 l=n(11),c=n(18),u=a.forwardRef((function(e,t){var n=e.children,l=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)}},k=function(e,t){h&&h(e,b===t?null:t)};return a.createElement("div",Object(r.a)({role:"group",className:Object(o.a)(l.root,u,"vertical"===v&&l.vertical),ref:t},y),a.Children.map(n,(function(e){return a.isValidElement(e)?a.cloneElement(e,{className:Object(o.a)(l.grouped,l["grouped".concat(Object(c.a)(v))],e.props.className),onChange:d?k:O,selected:void 0===e.props.selected?s(e.props.value,b):e.props.selected,size:e.props.size||g}):null})))}));t.a=Object(l.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(91),a=n(66);var o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},l={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=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(!l[e])return[e];e=l[e]}var t=e.split(""),n=Object(r.a)(t,2),i=n[0],a=n[1],c=o[i],u=s[a]||"";return Array.isArray(u)?u.map((function(e){return c+e})):[c+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(c(n),t),a=e[n];return Object(i.a)(e,a,r)})).reduce(a.a,{})}h.propTypes={},h.filterProps=u;t.b=h}]]); |