(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1503],{8417:function(e,t,n){"use strict";n.d(t,{Z:function(){return ie}});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),i=Math.abs,o=String.fromCharCode,s=Object.assign;function a(e){return e.trim()}function l(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function h(e,t,n){return e.slice(t,n)}function f(e){return e.length}function d(e){return e.length}function p(e,t){return t.push(e),e}var m=1,g=1,y=0,v=0,b=0,x="";function w(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:m,column:g,length:s,return:""}}function k(e,t){return s(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return b=v>0?u(x,--v):0,g--,10===b&&(g=1,m--),b}function C(){return b=v<y?u(x,v++):0,g++,10===b&&(g=1,m++),b}function A(){return u(x,v)}function O(){return v}function M(e,t){return h(x,e,t)}function $(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return m=g=1,y=f(x=e),v=0,[]}function R(e){return x="",e}function P(e){return a(M(v-1,_(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(b=A())&&b<33;)C();return $(e)>2||$(b)>3?"":" "}function E(e,t){for(;--t&&C()&&!(b<48||b>102||b>57&&b<65||b>70&&b<97););return M(e,O()+(t<6&&32==A()&&32==C()))}function _(e){for(;C();)switch(b){case e:return v;case 34:case 39:34!==e&&39!==e&&_(b);break;case 40:41===e&&_(e);break;case 92:C()}return v}function D(e,t){for(;C()&&e+b!==57&&(e+b!==84||47!==A()););return"/*"+M(t,v-1)+"*"+o(47===e?e:C())}function Z(e){for(;!$(A());)C();return M(e,v)}var B="-ms-",j="-moz-",L="-webkit-",N="comm",F="rule",z="decl",J="@keyframes";function U(e,t){for(var n="",r=d(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case z:return e.return=e.return||e.value;case N:return"";case J:return e.return=e.value+"{"+U(e.children,r)+"}";case F:e.value=e.props.join(",")}return f(n=U(e.children,r))?e.return=e.value+"{"+n+"}":""}function q(e){return R(H("",null,null,null,[""],e=T(e),0,[0],e))}function H(e,t,n,r,i,s,a,h,d){for(var m=0,g=0,y=a,v=0,b=0,x=0,w=1,k=1,M=1,$=0,T="",R=i,_=s,B=r,j=T;k;)switch(x=$,$=C()){case 40:if(108!=x&&58==u(j,y-1)){-1!=c(j+=l(P($),"&","&\f"),"&\f")&&(M=-1);break}case 34:case 39:case 91:j+=P($);break;case 9:case 10:case 13:case 32:j+=I(x);break;case 92:j+=E(O()-1,7);continue;case 47:switch(A()){case 42:case 47:p(K(D(C(),O()),t,n),d);break;default:j+="/"}break;case 123*w:h[m++]=f(j)*M;case 125*w:case 59:case 0:switch($){case 0:case 125:k=0;case 59+g:-1==M&&(j=l(j,/\f/g,"")),b>0&&f(j)-y&&p(b>32?G(j+";",r,n,y-1):G(l(j," ","")+";",r,n,y-2),d);break;case 59:j+=";";default:if(p(B=V(j,t,n,m,g,i,h,T,R=[],_=[],y),s),123===$)if(0===g)H(j,t,B,B,R,s,y,h,_);else switch(99===v&&110===u(j,3)?100:v){case 100:case 108:case 109:case 115:H(e,B,B,r&&p(V(e,B,B,0,0,i,h,T,i,R=[],y),_),i,_,y,h,r?R:_);break;default:H(j,B,B,B,[""],_,0,h,_)}}m=g=b=0,w=M=1,T=j="",y=a;break;case 58:y=1+f(j),b=x;default:if(w<1)if(123==$)--w;else if(125==$&&0==w++&&125==S())continue;switch(j+=o($),$*w){case 38:M=g>0?1:(j+="\f",-1);break;case 44:h[m++]=(f(j)-1)*M,M=1;break;case 64:45===A()&&(j+=P(C())),v=A(),g=y=f(T=j+=Z(O())),$++;break;case 45:45===x&&2==f(j)&&(w=0)}}return s}function V(e,t,n,r,o,s,c,u,f,p,m){for(var g=o-1,y=0===o?s:[""],v=d(y),b=0,x=0,k=0;b<r;++b)for(var S=0,C=h(e,g+1,g=i(x=c[b])),A=e;S<v;++S)(A=a(x>0?y[S]+" "+C:l(C,/&\f/g,y[S])))&&(f[k++]=A);return w(e,t,n,0===o?F:u,f,p,m)}function K(e,t,n){return w(e,t,n,N,o(b),h(e,2,-2),0)}function G(e,t,n,r){return w(e,t,n,z,h(e,0,r),h(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,i=0;r=i,i=A(),38===r&&12===i&&(t[n]=1),!$(i);)C();return M(e,v)},Q=function(e,t){return R(function(e,t){var n=-1,r=44;do{switch($(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=Y(v-1,t,n);break;case 2:e[n]+=P(r);break;case 4:if(44===r){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=o(r)}}while(r=C());return e}(T(e),t))},X=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var i=[],o=Q(t,i),s=n.props,a=0,l=0;a<o.length;a++)for(var c=0;c<s.length;c++,l++)e.props[l]=i[a]?o[a].replace(/&\f/g,s[c]):s[c]+" "+o[a]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^u(e,0)?(((t<<2^u(e,0))<<2^u(e,1))<<2^u(e,2))<<2^u(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return L+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return L+e+j+e+B+e+e;case 6828:case 4268:return L+e+B+e+e;case 6165:return L+e+B+"flex-"+e+e;case 5187:return L+e+l(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return L+e+B+"flex-item-"+l(e,/flex-|-self/,"")+e;case 4675:return L+e+B+"flex-line-pack"+l(e,/align-content|flex-|-self/,"")+e;case 5548:return L+e+B+l(e,"shrink","negative")+e;case 5292:return L+e+B+l(e,"basis","preferred-size")+e;case 6060:return"-webkit-box-"+l(e,"-grow","")+L+e+B+l(e,"grow","positive")+e;case 4554:return L+l(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return l(l(l(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return l(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4968:return l(l(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+L+e+e;case 4095:case 3583:case 4068:case 2532:return l(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(f(e)-1-t>6)switch(u(e,t+1)){case 109:if(45!==u(e,t+4))break;case 102:return l(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==u(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(l(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==u(e,t+1))break;case 6444:switch(u(e,f(e)-3-(~c(e,"!important")&&10))){case 107:return l(e,":",":-webkit-")+e;case 101:return l(e,/(.+:)([^;!]+)(;|!.+)?/,"$1-webkit-"+(45===u(e,14)?"inline-":"")+"box$3$1"+"-webkit-$2$3$1"+"-ms-$2box$3")+e}break;case 5936:switch(u(e,t+11)){case 114:return L+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return L+e+B+l(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return L+e+B+l(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return L+e+B+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case z:e.return=ne(e.value,e.length);break;case J:return U([k(e,{value:l(e.value,"@","@-webkit-")})],r);case F:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return U([k(e,{props:[l(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return U([k(e,{props:[l(t,/:(plac\w+)/,":-webkit-input-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,":-moz-$1")]}),k(e,{props:[l(t,/:(plac\w+)/,"-ms-input-$1")]})],r)}return""}))}}],ie=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||re;var o,s,a={},l=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;l.push(e)}));var c,u,h=[W,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=d(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}([ee,te].concat(i,h));s=function(e,t,n,r){c=n,U(q(e?e+"{"+t.styles+"}":t.styles),f),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new r({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:s};return p.sheet.hydrate(l),p}},45042:function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,{Z:function(){return r}})},75260:function(e,t,n){"use strict";n.d(t,{T:function(){return l},i:function(){return o},w:function(){return a}});var r=n(67294),i=n(8417),o=(n(48137),n(27278),!0),s=r.createContext("undefined"!==typeof HTMLElement?(0,i.Z)({key:"css"}):null);s.Provider;var a=function(e){return(0,r.forwardRef)((function(t,n){var i=(0,r.useContext)(s);return e(t,i,n)}))};o||(a=function(e){return function(t){var n=(0,r.useContext)(s);return null===n?(n=(0,i.Z)({key:"css"}),r.createElement(s.Provider,{value:n},e(t,n))):e(t,n)}});var l=r.createContext({})},70917:function(e,t,n){"use strict";n.d(t,{F4:function(){return u},iv:function(){return c},xB:function(){return l}});var r=n(75260),i=n(67294),o=n(70444),s=n(27278),a=n(48137),l=(n(8417),n(8679),(0,r.w)((function(e,t){var n=e.styles,l=(0,a.O)([n],void 0,i.useContext(r.T));if(!r.i){for(var c,u=l.name,h=l.styles,f=l.next;void 0!==f;)u+=" "+f.name,h+=f.styles,f=f.next;var d=!0===t.compat,p=t.insert("",{name:u,styles:h},t.sheet,d);return d?null:i.createElement("style",((c={})["data-emotion"]=t.key+"-global "+u,c.dangerouslySetInnerHTML={__html:p},c.nonce=t.sheet.nonce,c))}var m=i.useRef();return(0,s.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),m.current=[n,r],function(){n.flush()}}),[t]),(0,s.j)((function(){var e=m.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==l.next&&(0,o.My)(t,l.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",l,n,!1)}}),[t,l.name]),null})));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.O)(t)}var u=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},48137:function(e,t,n){"use strict";n.d(t,{O:function(){return p}});var r={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=n(45042),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a=function(e){return 45===e.charCodeAt(1)},l=function(e){return null!=e&&"boolean"!==typeof e},c=(0,i.Z)((function(e){return a(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return f={name:t,styles:n,next:f},t}))}return 1===r[e]||a(e)||"number"!==typeof t||0===t?t:t+"px"};function h(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return f={name:n.name,styles:n.styles,next:f},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)f={name:r.name,styles:r.styles,next:f},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=h(e,t,n[i])+";";else for(var o in n){var s=n[o];if("object"!==typeof s)null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":l(s)&&(r+=c(o)+":"+u(o,s)+";");else if(!Array.isArray(s)||"string"!==typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=h(e,t,s);switch(o){case"animation":case"animationName":r+=c(o)+":"+a+";";break;default:r+=o+"{"+a+"}"}}else for(var f=0;f<s.length;f++)l(s[f])&&(r+=c(o)+":"+u(o,s[f])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=f,o=n(e);return f=i,h(e,t,o)}}if(null==t)return n;var s=t[n];return void 0!==s?s:n}var f,d=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var p=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";f=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=h(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=h(n,t,e[s]),r&&(i+=o[s]);d.lastIndex=0;for(var a,l="";null!==(a=d.exec(i));)l+="-"+a[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:f}}},27278:function(e,t,n){"use strict";var r;n.d(t,{L:function(){return s},j:function(){return a}});var i=n(67294),o=!!(r||(r=n.t(i,2))).useInsertionEffect&&(r||(r=n.t(i,2))).useInsertionEffect,s=o||function(e){return e()},a=o||i.useLayoutEffect},70444:function(e,t,n){"use strict";n.d(t,{My:function(){return o},fp:function(){return r},hC:function(){return i}});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},o=function(e,t,n){i(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}},90140:function(e,t,n){"use strict";n.d(t,{Z:function(){return U}});var r=n(87462),i=n(63366),o=n(67294),s=n(86010),a=n(94780),l=n(90948),c=n(71657),u=n(51705),h=n(2068),f=n(18791),d=n(97326),p=n(75068),m=n(7419);function g(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function y(e,t,n){return null!=n[t]?n[t]:e.props[t]}function v(e,t,n){var r=g(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),o=[];for(var s in e)s in t?o.length&&(i[s]=o,o=[]):o.push(s);var a={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];a[i[l][r]]=n(c)}a[l]=n(l)}for(r=0;r<o.length;r++)a[o[r]]=n(o[r]);return a}(t,r);return Object.keys(i).forEach((function(s){var a=i[s];if((0,o.isValidElement)(a)){var l=s in t,c=s in r,u=t[s],h=(0,o.isValidElement)(u)&&!u.props.in;!c||l&&!h?c||!l||h?c&&l&&(0,o.isValidElement)(u)&&(i[s]=(0,o.cloneElement)(a,{onExited:n.bind(null,a),in:u.props.in,exit:y(a,"exit",e),enter:y(a,"enter",e)})):i[s]=(0,o.cloneElement)(a,{in:!1}):i[s]=(0,o.cloneElement)(a,{onExited:n.bind(null,a),in:!0,exit:y(a,"exit",e),enter:y(a,"enter",e)})}})),i}var b=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},x=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind((0,d.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}(0,p.Z)(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,s=t.handleExited;return{children:t.firstRender?(n=e,r=s,g(n.children,(function(e){return(0,o.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:y(e,"appear",n),enter:y(e,"enter",n),exit:y(e,"exit",n)})}))):v(e,i,s),firstRender:!1}},n.handleExited=function(e,t){var n=g(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,i.Z)(e,["component","childFactory"]),s=this.state.contextValue,a=b(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o.createElement(m.Z.Provider,{value:s},a):o.createElement(m.Z.Provider,{value:s},o.createElement(t,r,a))},t}(o.Component);x.propTypes={},x.defaultProps={component:"div",childFactory:function(e){return e}};var w=x,k=n(70917),S=n(85893);var C=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:c,onExited:u,timeout:h}=e,[f,d]=o.useState(!1),p=(0,s.Z)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),m={width:l,height:l,top:-l/2+a,left:-l/2+i},g=(0,s.Z)(n.child,f&&n.childLeaving,r&&n.childPulsate);return c||f||d(!0),o.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,h);return()=>{clearTimeout(e)}}}),[u,c,h]),(0,S.jsx)("span",{className:p,style:m,children:(0,S.jsx)("span",{className:g})})},A=n(1588);var O=(0,A.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const M=["center","classes","className"];let $,T,R,P,I=e=>e;const E=(0,k.F4)($||($=I`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),_=(0,k.F4)(T||(T=I`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),D=(0,k.F4)(R||(R=I`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),Z=(0,l.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),B=(0,l.ZP)(C,{name:"MuiTouchRipple",slot:"Ripple"})(P||(P=I`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),O.rippleVisible,E,550,(({theme:e})=>e.transitions.easing.easeInOut),O.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),O.child,O.childLeaving,_,550,(({theme:e})=>e.transitions.easing.easeInOut),O.childPulsate,D,(({theme:e})=>e.transitions.easing.easeInOut));var j=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:a=!1,classes:l={},className:u}=n,h=(0,i.Z)(n,M),[f,d]=o.useState([]),p=o.useRef(0),m=o.useRef(null);o.useEffect((()=>{m.current&&(m.current(),m.current=null)}),[f]);const g=o.useRef(!1),y=o.useRef(0),v=o.useRef(null),b=o.useRef(null);o.useEffect((()=>()=>{y.current&&clearTimeout(y.current)}),[]);const x=o.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:o}=e;d((e=>[...e,(0,S.jsx)(B,{classes:{ripple:(0,s.Z)(l.ripple,O.ripple),rippleVisible:(0,s.Z)(l.rippleVisible,O.rippleVisible),ripplePulsate:(0,s.Z)(l.ripplePulsate,O.ripplePulsate),child:(0,s.Z)(l.child,O.child),childLeaving:(0,s.Z)(l.childLeaving,O.childLeaving),childPulsate:(0,s.Z)(l.childPulsate,O.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},p.current)])),p.current+=1,m.current=o}),[l]),k=o.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:r=!1,center:i=a||t.pulsate,fakeElement:o=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&g.current)return void(g.current=!1);"touchstart"===(null==e?void 0:e.type)&&(g.current=!0);const s=o?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,h;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)h=Math.sqrt((2*l.width**2+l.height**2)/3),h%2===0&&(h+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;h=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{x({pulsate:r,rippleX:c,rippleY:u,rippleSize:h,cb:n})},y.current=setTimeout((()=>{v.current&&(v.current(),v.current=null)}),80)):x({pulsate:r,rippleX:c,rippleY:u,rippleSize:h,cb:n})}),[a,x]),C=o.useCallback((()=>{k({},{pulsate:!0})}),[k]),A=o.useCallback(((e,t)=>{if(clearTimeout(y.current),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void(y.current=setTimeout((()=>{A(e,t)})));v.current=null,d((e=>e.length>0?e.slice(1):e)),m.current=t}),[]);return o.useImperativeHandle(t,(()=>({pulsate:C,start:k,stop:A})),[C,k,A]),(0,S.jsx)(Z,(0,r.Z)({className:(0,s.Z)(O.root,l.root,u),ref:b},h,{children:(0,S.jsx)(w,{component:null,exit:!0,children:f})}))})),L=n(34867);function N(e){return(0,L.Z)("MuiButtonBase",e)}var F=(0,A.Z)("MuiButtonBase",["root","disabled","focusVisible"]);const z=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],J=(0,l.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${F.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var U=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:l,centerRipple:d=!1,children:p,className:m,component:g="button",disabled:y=!1,disableRipple:v=!1,disableTouchRipple:b=!1,focusRipple:x=!1,LinkComponent:w="a",onBlur:k,onClick:C,onContextMenu:A,onDragLeave:O,onFocus:M,onFocusVisible:$,onKeyDown:T,onKeyUp:R,onMouseDown:P,onMouseLeave:I,onMouseUp:E,onTouchEnd:_,onTouchMove:D,onTouchStart:Z,tabIndex:B=0,TouchRippleProps:L,touchRippleRef:F,type:U}=n,W=(0,i.Z)(n,z),q=o.useRef(null),H=o.useRef(null),V=(0,u.Z)(H,F),{isFocusVisibleRef:K,onFocus:G,onBlur:Y,ref:Q}=(0,f.Z)(),[X,ee]=o.useState(!1);y&&X&&ee(!1),o.useImperativeHandle(l,(()=>({focusVisible:()=>{ee(!0),q.current.focus()}})),[]);const[te,ne]=o.useState(!1);o.useEffect((()=>{ne(!0)}),[]);const re=te&&!v&&!y;function ie(e,t,n=b){return(0,h.Z)((r=>{t&&t(r);return!n&&H.current&&H.current[e](r),!0}))}o.useEffect((()=>{X&&x&&!v&&te&&H.current.pulsate()}),[v,x,X,te]);const oe=ie("start",P),se=ie("stop",A),ae=ie("stop",O),le=ie("stop",E),ce=ie("stop",(e=>{X&&e.preventDefault(),I&&I(e)})),ue=ie("start",Z),he=ie("stop",_),fe=ie("stop",D),de=ie("stop",(e=>{Y(e),!1===K.current&&ee(!1),k&&k(e)}),!1),pe=(0,h.Z)((e=>{q.current||(q.current=e.currentTarget),G(e),!0===K.current&&(ee(!0),$&&$(e)),M&&M(e)})),me=()=>{const e=q.current;return g&&"button"!==g&&!("A"===e.tagName&&e.href)},ge=o.useRef(!1),ye=(0,h.Z)((e=>{x&&!ge.current&&X&&H.current&&" "===e.key&&(ge.current=!0,H.current.stop(e,(()=>{H.current.start(e)}))),e.target===e.currentTarget&&me()&&" "===e.key&&e.preventDefault(),T&&T(e),e.target===e.currentTarget&&me()&&"Enter"===e.key&&!y&&(e.preventDefault(),C&&C(e))})),ve=(0,h.Z)((e=>{x&&" "===e.key&&H.current&&X&&!e.defaultPrevented&&(ge.current=!1,H.current.stop(e,(()=>{H.current.pulsate(e)}))),R&&R(e),C&&e.target===e.currentTarget&&me()&&" "===e.key&&!e.defaultPrevented&&C(e)}));let be=g;"button"===be&&(W.href||W.to)&&(be=w);const xe={};"button"===be?(xe.type=void 0===U?"button":U,xe.disabled=y):(W.href||W.to||(xe.role="button"),y&&(xe["aria-disabled"]=y));const we=(0,u.Z)(t,Q,q);const ke=(0,r.Z)({},n,{centerRipple:d,component:g,disabled:y,disableRipple:v,disableTouchRipple:b,focusRipple:x,tabIndex:B,focusVisible:X}),Se=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,o={root:["root",t&&"disabled",n&&"focusVisible"]},s=(0,a.Z)(o,N,i);return n&&r&&(s.root+=` ${r}`),s})(ke);return(0,S.jsxs)(J,(0,r.Z)({as:be,className:(0,s.Z)(Se.root,m),ownerState:ke,onBlur:de,onClick:C,onContextMenu:se,onFocus:pe,onKeyDown:ye,onKeyUp:ve,onMouseDown:oe,onMouseLeave:ce,onMouseUp:le,onDragLeave:ae,onTouchEnd:he,onTouchMove:fe,onTouchStart:ue,ref:we,tabIndex:y?-1:B,type:U},xe,W,{children:[p,re?(0,S.jsx)(j,(0,r.Z)({ref:V,center:d},L)):null]}))}))},96420:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(63366),i=n(87462),o=n(67294),s=n(86010),a=n(94780),l=n(41796),c=n(90140),u=n(98216),h=n(71657),f=n(90948),d=n(1588),p=n(34867);function m(e){return(0,p.Z)("MuiToggleButton",e)}var g=(0,d.Z)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]),y=n(85893);const v=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],b=(0,f.ZP)(c.Z,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${(0,u.Z)(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,r="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(r="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),(0,i.Z)({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${g.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.Fq)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${g.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.Fq)(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:(0,l.Fq)(r,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}));var x=o.forwardRef((function(e,t){const n=(0,h.Z)({props:e,name:"MuiToggleButton"}),{children:o,className:l,color:c="standard",disabled:f=!1,disableFocusRipple:d=!1,fullWidth:p=!1,onChange:g,onClick:x,selected:w,size:k="medium",value:S}=n,C=(0,r.Z)(n,v),A=(0,i.Z)({},n,{color:c,disabled:f,disableFocusRipple:d,fullWidth:p,size:k}),O=(e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:o,color:s}=e,l={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${(0,u.Z)(o)}`,s]};return(0,a.Z)(l,m,t)})(A);return(0,y.jsx)(b,(0,i.Z)({className:(0,s.Z)(O.root,l),disabled:f,focusRipple:!d,ref:t,onClick:e=>{x&&(x(e,S),e.defaultPrevented)||g&&g(e,S)},onChange:g,value:S,ownerState:A,"aria-pressed":w},C,{children:o}))}))},33454:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(63366),i=n(87462),o=n(67294),s=(n(59864),n(86010)),a=n(94780),l=n(90948),c=n(71657),u=n(98216);function h(e,t){return void 0!==t&&void 0!==e&&(Array.isArray(t)?t.indexOf(e)>=0:e===t)}var f=n(1588),d=n(34867);function p(e){return(0,d.Z)("MuiToggleButtonGroup",e)}var m=(0,f.Z)("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]),g=n(85893);const y=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],v=(0,l.ZP)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${m.grouped}`]:t.grouped},{[`& .${m.grouped}`]:t[`grouped${(0,u.Z)(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>(0,i.Z)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${m.grouped}`]:(0,i.Z)({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${m.selected} + .${m.grouped}.${m.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${m.selected} + .${m.grouped}.${m.selected}`]:{borderTop:0,marginTop:0}})})));var b=o.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiToggleButtonGroup"}),{children:l,className:f,color:d="standard",disabled:m=!1,exclusive:b=!1,fullWidth:x=!1,onChange:w,orientation:k="horizontal",size:S="medium",value:C}=n,A=(0,r.Z)(n,y),O=(0,i.Z)({},n,{disabled:m,fullWidth:x,orientation:k,size:S}),M=(e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,o={root:["root","vertical"===n&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${(0,u.Z)(n)}`,i&&"disabled"]};return(0,a.Z)(o,p,t)})(O),$=(e,t)=>{if(!w)return;const n=C&&C.indexOf(t);let r;C&&n>=0?(r=C.slice(),r.splice(n,1)):r=C?C.concat(t):[t],w(e,r)},T=(e,t)=>{w&&w(e,C===t?null:t)};return(0,g.jsx)(v,(0,i.Z)({role:"group",className:(0,s.Z)(M.root,f),ref:t,ownerState:O},A,{children:o.Children.map(l,(e=>o.isValidElement(e)?o.cloneElement(e,{className:(0,s.Z)(M.grouped,e.props.className),onChange:b?T:$,selected:void 0===e.props.selected?h(e.props.value,C):e.props.selected,size:e.props.size||S,fullWidth:x,color:e.props.color||d,disabled:e.props.disabled||m}):null))}))}))},7419:function(e,t,n){"use strict";var r=n(67294);t.Z=r.createContext(null)},21265:function(e,t,n){"use strict";n.d(t,{Z:function(){return L}});var r=n(87462),i=n(63366),o=n(71387),s=n(59766),a=n(66500),l=n(44920),c=n(86523);var u=n(41796);var h={black:"#000",white:"#fff"};var f={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var d={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var p={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"};var 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"};var 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"};var y={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var v={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"};const b=["mode","contrastThreshold","tonalOffset"],x={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:h.white,default:h.white},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}},w={text:{primary:h.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:h.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function k(e,t,n,r){const i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,u.$n)(e.main,i):"dark"===t&&(e.dark=(0,u._j)(e.main,o)))}function S(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:a=.2}=e,l=(0,i.Z)(e,b),c=e.primary||function(e="light"){return"dark"===e?{main:g[200],light:g[50],dark:g[400]}:{main:g[700],light:g[400],dark:g[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:d[200],light:d[50],dark:d[400]}:{main:d[500],light:d[300],dark:d[700]}}(t),C=e.error||function(e="light"){return"dark"===e?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(t),A=e.info||function(e="light"){return"dark"===e?{main:y[400],light:y[300],dark:y[700]}:{main:y[700],light:y[500],dark:y[900]}}(t),O=e.success||function(e="light"){return"dark"===e?{main:v[400],light:v[300],dark:v[700]}:{main:v[800],light:v[500],dark:v[900]}}(t),M=e.warning||function(e="light"){return"dark"===e?{main:m[400],light:m[300],dark:m[700]}:{main:"#ed6c02",light:m[500],dark:m[900]}}(t);function $(e){return(0,u.mi)(e,w.text.primary)>=n?w.text.primary:x.text.primary}const T=({color:e,name:t,mainShade:n=500,lightShade:i=300,darkShade:s=700})=>{if(!(e=(0,r.Z)({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error((0,o.Z)(11,t?` (${t})`:"",n));if("string"!==typeof e.main)throw new Error((0,o.Z)(12,t?` (${t})`:"",JSON.stringify(e.main)));return k(e,"light",i,a),k(e,"dark",s,a),e.contrastText||(e.contrastText=$(e.main)),e},R={dark:w,light:x};return(0,s.Z)((0,r.Z)({common:(0,r.Z)({},h),mode:t,primary:T({color:c,name:"primary"}),secondary:T({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:T({color:C,name:"error"}),warning:T({color:M,name:"warning"}),info:T({color:A,name:"info"}),success:T({color:O,name:"success"}),grey:f,contrastThreshold:n,getContrastText:$,augmentColor:T,tonalOffset:a},R[t]),l)}const C=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const A={textTransform:"uppercase"},O='"Roboto", "Helvetica", "Arial", sans-serif';function M(e,t){const n="function"===typeof t?t(e):t,{fontFamily:o=O,fontSize:a=14,fontWeightLight:l=300,fontWeightRegular:c=400,fontWeightMedium:u=500,fontWeightBold:h=700,htmlFontSize:f=16,allVariants:d,pxToRem:p}=n,m=(0,i.Z)(n,C);const g=a/14,y=p||(e=>e/f*g+"rem"),v=(e,t,n,i,s)=>{return(0,r.Z)({fontFamily:o,fontWeight:e,fontSize:y(t),lineHeight:n},o===O?{letterSpacing:(a=i/t,Math.round(1e5*a)/1e5)+"em"}:{},s,d);var a},b={h1:v(l,96,1.167,-1.5),h2:v(l,60,1.2,-.5),h3:v(c,48,1.167,0),h4:v(c,34,1.235,.25),h5:v(c,24,1.334,0),h6:v(u,20,1.6,.15),subtitle1:v(c,16,1.75,.15),subtitle2:v(u,14,1.57,.1),body1:v(c,16,1.5,.15),body2:v(c,14,1.43,.15),button:v(u,14,1.75,.4,A),caption:v(c,12,1.66,.4),overline:v(c,12,2.66,1,A),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,s.Z)((0,r.Z)({htmlFontSize:f,pxToRem:y,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:u,fontWeightBold:h},b),m,{clone:!1})}function $(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var T=["none",$(0,2,1,-1,0,1,1,0,0,1,3,0),$(0,3,1,-2,0,2,2,0,0,1,5,0),$(0,3,3,-2,0,3,4,0,0,1,8,0),$(0,2,4,-1,0,4,5,0,0,1,10,0),$(0,3,5,-1,0,5,8,0,0,1,14,0),$(0,3,5,-1,0,6,10,0,0,1,18,0),$(0,4,5,-2,0,7,10,1,0,2,16,1),$(0,5,5,-3,0,8,10,1,0,3,14,2),$(0,5,6,-3,0,9,12,1,0,3,16,2),$(0,6,6,-3,0,10,14,1,0,4,18,3),$(0,6,7,-4,0,11,15,1,0,4,20,3),$(0,7,8,-4,0,12,17,2,0,5,22,4),$(0,7,8,-4,0,13,19,2,0,5,24,4),$(0,7,9,-4,0,14,21,2,0,5,26,4),$(0,8,9,-5,0,15,22,2,0,6,28,5),$(0,8,10,-5,0,16,24,2,0,6,30,5),$(0,8,11,-5,0,17,26,2,0,6,32,5),$(0,9,11,-5,0,18,28,2,0,7,34,6),$(0,9,12,-6,0,19,29,2,0,7,36,6),$(0,10,13,-6,0,20,31,3,0,8,38,7),$(0,10,13,-6,0,21,33,3,0,8,40,7),$(0,10,14,-6,0,22,35,3,0,8,42,7),$(0,11,14,-7,0,23,36,3,0,9,44,8),$(0,11,15,-7,0,24,38,3,0,9,46,8)];const R=["duration","easing","delay"],P={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)"},I={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function E(e){return`${Math.round(e)}ms`}function _(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function D(e){const t=(0,r.Z)({},P,e.easing),n=(0,r.Z)({},I,e.duration);return(0,r.Z)({getAutoHeightDuration:_,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:s=t.easeInOut,delay:a=0}=r;(0,i.Z)(r,R);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof o?o:E(o)} ${s} ${"string"===typeof a?a:E(a)}`)).join(",")}},e,{easing:t,duration:n})}var Z={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const B=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function j(e={},...t){const{mixins:n={},palette:u={},transitions:h={},typography:f={}}=e,d=(0,i.Z)(e,B);if(e.vars)throw new Error((0,o.Z)(18));const p=S(u),m=(0,a.Z)(e);let g=(0,s.Z)(m,{mixins:(y=m.breakpoints,v=n,(0,r.Z)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},v)),palette:p,shadows:T.slice(),typography:M(p,f),transitions:D(h),zIndex:(0,r.Z)({},Z)});var y,v;return g=(0,s.Z)(g,d),g=t.reduce(((e,t)=>(0,s.Z)(e,t)),g),g.unstable_sxConfig=(0,r.Z)({},l.Z,null==d?void 0:d.unstable_sxConfig),g.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},g}var L=j},90247:function(e,t,n){"use strict";const r=(0,n(21265).Z)();t.Z=r},10606:function(e,t){"use strict";t.Z="$$material"},90948:function(e,t,n){"use strict";n.d(t,{Dz:function(){return a},FO:function(){return s}});var r=n(70182),i=n(90247),o=n(10606);const s=e=>(0,r.x9)(e)&&"classes"!==e,a=r.x9,l=(0,r.ZP)({themeId:o.Z,defaultTheme:i.Z,rootShouldForwardProp:s});t.ZP=l},71657:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(29628),i=n(90247),o=n(10606);function s({props:e,name:t}){return(0,r.Z)({props:e,name:t,defaultTheme:i.Z,themeId:o.Z})}},98216:function(e,t,n){"use strict";var r=n(14142);t.Z=r.Z},2068:function(e,t,n){"use strict";var r=n(59948);t.Z=r.Z},51705:function(e,t,n){"use strict";var r=n(33703);t.Z=r.Z},18791:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(67294);let i,o=!0,s=!1;const a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function l(e){e.metaKey||e.altKey||e.ctrlKey||(o=!0)}function c(){o=!1}function u(){"hidden"===this.visibilityState&&s&&(o=!0)}function h(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return o||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!a[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var f=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",l,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",u,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!h(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(s=!0,window.clearTimeout(i),i=window.setTimeout((()=>{s=!1}),100),t.current=!1,!0)},ref:e}}},49731:function(e,t,n){"use strict";n.d(t,{ZP:function(){return v},Co:function(){return b}});var r=n(87462),i=n(67294),o=n(45042),s=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=(0,o.Z)((function(e){return s.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),l=n(75260),c=n(70444),u=n(48137),h=n(27278),f=a,d=function(e){return"theme"!==e},p=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?f:d},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},g=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return(0,c.hC)(t,n,r),(0,h.L)((function(){return(0,c.My)(t,n,r)})),null},y=function e(t,n){var o,s,a=t.__emotion_real===t,h=a&&t.__emotion_base||t;void 0!==n&&(o=n.label,s=n.target);var f=m(t,n,a),d=f||p(h),y=!d("as");return function(){var v=arguments,b=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&b.push("label:"+o+";"),null==v[0]||void 0===v[0].raw)b.push.apply(b,v);else{0,b.push(v[0][0]);for(var x=v.length,w=1;w<x;w++)b.push(v[w],v[0][w])}var k=(0,l.w)((function(e,t,n){var r=y&&e.as||h,o="",a=[],m=e;if(null==e.theme){for(var v in m={},e)m[v]=e[v];m.theme=i.useContext(l.T)}"string"===typeof e.className?o=(0,c.fp)(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var x=(0,u.O)(b.concat(a),t.registered,m);o+=t.key+"-"+x.name,void 0!==s&&(o+=" "+s);var w=y&&void 0===f?p(r):d,k={};for(var S in e)y&&"as"===S||w(S)&&(k[S]=e[S]);return k.className=o,k.ref=n,i.createElement(i.Fragment,null,i.createElement(g,{cache:t,serialized:x,isStringTag:"string"===typeof r}),i.createElement(r,k))}));return k.displayName=void 0!==o?o:"Styled("+("string"===typeof h?h:h.displayName||h.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=h,k.__emotion_styles=b,k.__emotion_forwardProp=f,Object.defineProperty(k,"toString",{value:function(){return"."+s}}),k.withComponent=function(t,i){return e(t,(0,r.Z)({},n,i,{shouldForwardProp:m(k,i,!0)})).apply(void 0,b)},k}}.bind();function v(e,t){return y(e,t)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){y[e]=y(e)}));const b=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},95408:function(e,t,n){"use strict";n.d(t,{L7:function(){return l},P$:function(){return u},VO:function(){return i},W8:function(){return a},dt:function(){return c},k9:function(){return s}});var r=n(59766);const i={xs:0,sm:600,md:900,lg:1200,xl:1536},o={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${i[e]}px)`};function s(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||o;return t.reduce(((r,i,o)=>(r[e.up(e.keys[o])]=n(t[o]),r)),{})}if("object"===typeof t){const e=r.breakpoints||o;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||i).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function a(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function l(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e,...t){const n=a(e),i=[n,...t].reduce(((e,t)=>(0,r.Z)(e,t)),{});return l(Object.keys(n),i)}function u({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),i=Object.keys(r);if(0===i.length)return e;let o;return i.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[o],o=r):"object"===typeof e?(t[n]=null!=e[n]?e[n]:e[o],o=n):t[n]=e,t)),{})}},41796:function(e,t,n){"use strict";n.d(t,{$n:function(){return h},Fq:function(){return c},_j:function(){return u},mi:function(){return l}});var r=n(71387);function i(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let i,s=e.substring(t+1,e.length-1);if("color"===n){if(s=s.split(" "),i=s.shift(),4===s.length&&"/"===s[3].charAt(0)&&(s[3]=s[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,r.Z)(10,i))}else s=s.split(",");return s=s.map((e=>parseFloat(e))),{type:n,values:s,colorSpace:i}}function s(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function a(e){let t="hsl"===(e=o(e)).type||"hsla"===e.type?o(function(e){e=o(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const 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])),s({type:c,values:u})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function l(e,t){const n=a(e),r=a(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,s(e)}function u(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return s(e)}function h(e,t){if(e=o(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(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return s(e)}},70182:function(e,t,n){"use strict";n.d(t,{ZP:function(){return g},x9:function(){return d}});var r=n(63366),i=n(87462),o=n(49731),s=n(66500),a=n(14142);const l=["variant"];function c(e){return 0===e.length}function u(e){const{variant:t}=e,n=(0,r.Z)(e,l);let i=t||"";return Object.keys(n).sort().forEach((t=>{i+="color"===t?c(i)?e[t]:(0,a.Z)(e[t]):`${c(i)?t:(0,a.Z)(t)}${(0,a.Z)(e[t].toString())}`})),i}var h=n(86523);const f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=(0,s.Z)();function m({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function g(e={}){const{themeId:t,defaultTheme:n=p,rootShouldForwardProp:s=d,slotShouldForwardProp:a=d}=e,l=e=>(0,h.Z)((0,i.Z)({},e,{theme:m((0,i.Z)({},e,{defaultTheme:n,themeId:t}))}));return l.__mui_systemSx=!0,(e,c={})=>{(0,o.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:h,slot:p,skipVariantsResolver:g,skipSx:y,overridesResolver:v}=c,b=(0,r.Z)(c,f),x=void 0!==g?g:p&&"Root"!==p||!1,w=y||!1;let k=d;"Root"===p?k=s:p?k=a:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(k=void 0);const S=(0,o.ZP)(e,(0,i.Z)({shouldForwardProp:k,label:undefined},b)),C=(r,...o)=>{const s=o?o.map((e=>"function"===typeof e&&e.__emotion_real!==e?r=>e((0,i.Z)({},r,{theme:m((0,i.Z)({},r,{defaultTheme:n,themeId:t}))})):e)):[];let a=r;h&&v&&s.push((e=>{const r=m((0,i.Z)({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(h,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"===typeof o?o((0,i.Z)({},e,{theme:r})):o})),v(e,t)}return null})),h&&!x&&s.push((e=>{const r=m((0,i.Z)({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],a=null==n||null==(i=n.components)||null==(i=i[r])?void 0:i.variants;return a&&a.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{o[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[u(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=u(e.props);r[t]=e.style})),r})(h,r),r,h)})),w||s.push(l);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}else"function"===typeof r&&r.__emotion_real!==r&&(a=e=>r((0,i.Z)({},e,{theme:m((0,i.Z)({},e,{defaultTheme:n,themeId:t}))})));const f=S(a,...s);return e.muiName&&(f.muiName=e.muiName),f};return S.withConfig&&(C.withConfig=S.withConfig),C}}},66500:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(87462),i=n(63366),o=n(59766);const s=["values","unit","step"];function a(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5}=e,a=(0,i.Z)(e,s),l=(e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})})(t),c=Object.keys(l);function u(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function h(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-o/100}${n})`}function f(e,r){const i=c.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"===typeof t[c[i]]?t[c[i]]:r)-o/100}${n})`}return(0,r.Z)({keys:c,values:l,up:u,down:h,between:f,only:function(e){return c.indexOf(e)+1<c.length?f(e,c[c.indexOf(e)+1]):u(e)},not:function(e){const t=c.indexOf(e);return 0===t?u(c[1]):t===c.length-1?h(c[t]):f(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},a)}var l={borderRadius:4},c=n(98700);var u=n(86523),h=n(44920);const f=["breakpoints","palette","spacing","shape"];var d=function(e={},...t){const{breakpoints:n={},palette:s={},spacing:d,shape:p={}}=e,m=(0,i.Z)(e,f),g=a(n),y=function(e=8){if(e.mui)return e;const t=(0,c.hB)({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(d);let v=(0,o.Z)({breakpoints:g,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},s),spacing:y,shape:(0,r.Z)({},l,p)},m);return v=t.reduce(((e,t)=>(0,o.Z)(e,t)),v),v.unstable_sxConfig=(0,r.Z)({},h.Z,null==m?void 0:m.unstable_sxConfig),v.unstable_sx=function(e){return(0,u.Z)({sx:e,theme:this})},v}},47730:function(e,t,n){"use strict";var r=n(59766);t.Z=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},98700:function(e,t,n){"use strict";n.d(t,{hB:function(){return p},eI:function(){return d},NA:function(){return m},e6:function(){return v},o3:function(){return b}});var r=n(95408),i=n(54844),o=n(47730);const s={m:"margin",p:"padding"},a={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){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!l[e])return[e];e=l[e]}const[t,n]=e.split(""),r=s[t],i=a[n]||"";return Array.isArray(i)?i.map((e=>r+e)):[r+i]})),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],f=[...u,...h];function d(e,t,n,r){var o;const s=null!=(o=(0,i.DW)(e,t,!1))?o:n;return"number"===typeof s?e=>"string"===typeof e?e:s*e:Array.isArray(s)?e=>"string"===typeof e?e:s[e]:"function"===typeof s?s:()=>{}}function p(e){return d(e,"spacing",8)}function m(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function g(e,t,n,i){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=m(t,n),e)),{})}(c(n),i),s=e[n];return(0,r.k9)(e,s,o)}function y(e,t){const n=p(e.theme);return Object.keys(e).map((r=>g(e,t,r,n))).reduce(o.Z,{})}function v(e){return y(e,u)}function b(e){return y(e,h)}function x(e){return y(e,f)}v.propTypes={},v.filterProps=u,b.propTypes={},b.filterProps=h,x.propTypes={},x.filterProps=f},54844:function(e,t,n){"use strict";n.d(t,{DW:function(){return o},Jq:function(){return s}});var r=n(14142),i=n(95408);function o(e,t,n=!0){if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function s(e,t,n,r=n){let i;return i="function"===typeof e?e(n):Array.isArray(e)?e[n]||r:o(e,n)||r,t&&(i=t(i,r,e)),i}t.ZP=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:a,transform:l}=e,c=e=>{if(null==e[t])return null;const c=e[t],u=o(e.theme,a)||{};return(0,i.k9)(e,c,(e=>{let i=s(u,l,e);return e===i&&"string"===typeof e&&(i=s(u,l,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?i:{[n]:i}}))};return c.propTypes={},c.filterProps=[t],c}},44920:function(e,t,n){"use strict";n.d(t,{Z:function(){return P}});var r=n(98700),i=n(54844),o=n(47730);var s=function(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?(0,o.Z)(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n},a=n(95408);function l(e){return"number"!==typeof e?e:`${e}px solid`}const c=(0,i.ZP)({prop:"border",themeKey:"borders",transform:l}),u=(0,i.ZP)({prop:"borderTop",themeKey:"borders",transform:l}),h=(0,i.ZP)({prop:"borderRight",themeKey:"borders",transform:l}),f=(0,i.ZP)({prop:"borderBottom",themeKey:"borders",transform:l}),d=(0,i.ZP)({prop:"borderLeft",themeKey:"borders",transform:l}),p=(0,i.ZP)({prop:"borderColor",themeKey:"palette"}),m=(0,i.ZP)({prop:"borderTopColor",themeKey:"palette"}),g=(0,i.ZP)({prop:"borderRightColor",themeKey:"palette"}),y=(0,i.ZP)({prop:"borderBottomColor",themeKey:"palette"}),v=(0,i.ZP)({prop:"borderLeftColor",themeKey:"palette"}),b=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,a.k9)(e,e.borderRadius,n)}return null};b.propTypes={},b.filterProps=["borderRadius"];s(c,u,h,f,d,p,m,g,y,v,b);const x=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,a.k9)(e,e.gap,n)}return null};x.propTypes={},x.filterProps=["gap"];const w=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,a.k9)(e,e.columnGap,n)}return null};w.propTypes={},w.filterProps=["columnGap"];const k=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,a.k9)(e,e.rowGap,n)}return null};k.propTypes={},k.filterProps=["rowGap"];s(x,w,k,(0,i.ZP)({prop:"gridColumn"}),(0,i.ZP)({prop:"gridRow"}),(0,i.ZP)({prop:"gridAutoFlow"}),(0,i.ZP)({prop:"gridAutoColumns"}),(0,i.ZP)({prop:"gridAutoRows"}),(0,i.ZP)({prop:"gridTemplateColumns"}),(0,i.ZP)({prop:"gridTemplateRows"}),(0,i.ZP)({prop:"gridTemplateAreas"}),(0,i.ZP)({prop:"gridArea"}));function S(e,t){return"grey"===t?t:e}s((0,i.ZP)({prop:"color",themeKey:"palette",transform:S}),(0,i.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:S}),(0,i.ZP)({prop:"backgroundColor",themeKey:"palette",transform:S}));function C(e){return e<=1&&0!==e?100*e+"%":e}const A=(0,i.ZP)({prop:"width",transform:C}),O=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n;return{maxWidth:(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||a.VO[t]||C(t)}};return(0,a.k9)(e,e.maxWidth,t)}return null};O.filterProps=["maxWidth"];const M=(0,i.ZP)({prop:"minWidth",transform:C}),$=(0,i.ZP)({prop:"height",transform:C}),T=(0,i.ZP)({prop:"maxHeight",transform:C}),R=(0,i.ZP)({prop:"minHeight",transform:C});(0,i.ZP)({prop:"size",cssProperty:"width",transform:C}),(0,i.ZP)({prop:"size",cssProperty:"height",transform:C}),s(A,O,M,$,T,R,(0,i.ZP)({prop:"boxSizing"}));var P={border:{themeKey:"borders",transform:l},borderTop:{themeKey:"borders",transform:l},borderRight:{themeKey:"borders",transform:l},borderBottom:{themeKey:"borders",transform:l},borderLeft:{themeKey:"borders",transform:l},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:b},color:{themeKey:"palette",transform:S},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:S},backgroundColor:{themeKey:"palette",transform:S},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:x},rowGap:{style:k},columnGap:{style:w},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:C},maxWidth:{style:O},minWidth:{transform:C},height:{transform:C},maxHeight:{transform:C},minHeight:{transform:C},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}},86523:function(e,t,n){"use strict";var r=n(14142),i=n(47730),o=n(54844),s=n(95408),a=n(44920);const l=function(){function e(e,t,n,i){const a={[e]:t,theme:n},l=i[e];if(!l)return{[e]:t};const{cssProperty:c=e,themeKey:u,transform:h,style:f}=l;if(null==t)return null;if("typography"===u&&"inherit"===t)return{[e]:t};const d=(0,o.DW)(n,u)||{};if(f)return f(a);return(0,s.k9)(a,t,(t=>{let n=(0,o.Jq)(d,h,t);return t===n&&"string"===typeof t&&(n=(0,o.Jq)(d,h,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:o,theme:l={}}=n||{};if(!o)return null;const c=null!=(r=l.unstable_sxConfig)?r:a.Z;function u(n){let r=n;if("function"===typeof n)r=n(l);else if("object"!==typeof n)return n;if(!r)return null;const o=(0,s.W8)(l.breakpoints),a=Object.keys(o);let u=o;return Object.keys(r).forEach((n=>{const o=(a=r[n],h=l,"function"===typeof a?a(h):a);var a,h;if(null!==o&&void 0!==o)if("object"===typeof o)if(c[n])u=(0,i.Z)(u,e(n,o,l,c));else{const e=(0,s.k9)({theme:l},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?u=(0,i.Z)(u,e):u[n]=t({sx:o,theme:l})}else u=(0,i.Z)(u,e(n,o,l,c))})),(0,s.L7)(a,u)}return Array.isArray(o)?o.map(u):u(o)}}();l.filterProps=["sx"],t.Z=l},96682:function(e,t,n){"use strict";var r=n(66500),i=n(34168);const o=(0,r.Z)();t.Z=function(e=o){return(0,i.Z)(e)}},20539:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(47925);function i(e){const{theme:t,name:n,props:i}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,i):i}},29628:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(20539),i=n(96682);function o({props:e,name:t,defaultTheme:n,themeId:o}){let s=(0,i.Z)(n);o&&(s=s[o]||s);return(0,r.Z)({theme:s,name:t,props:e})}},34168:function(e,t,n){"use strict";var r=n(67294),i=n(75260);t.Z=function(e=null){const t=r.useContext(i.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},37078:function(e,t){"use strict";const n=e=>e,r=(()=>{let e=n;return{configure(t){e=t},generate:t=>e(t),reset(){e=n}}})();t.Z=r},14142:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(71387);function i(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94780:function(e,t,n){"use strict";function r(e,t,n){const r={};return Object.keys(e).forEach((i=>{r[i]=e[i].reduce(((e,r)=>{if(r){const i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:function(){return r}})},59766:function(e,t,n){"use strict";n.d(t,{P:function(){return i},Z:function(){return s}});var r=n(87462);function i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function o(e){if(!i(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=o(e[n])})),t}function s(e,t,n={clone:!0}){const a=n.clone?(0,r.Z)({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?a[r]=s(e[r],t[r],n):n.clone?a[r]=i(t[r])?o(t[r]):t[r]:a[r]=t[r])})),a}},71387:function(e,t,n){"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:function(){return r}})},34867:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(37078);const i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function o(e,t,n="Mui"){const o=i[t];return o?`${n}-${o}`:`${r.Z.generate(e)}-${t}`}},1588:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(34867);function i(e,t,n="Mui"){const i={};return t.forEach((t=>{i[t]=(0,r.Z)(e,t,n)})),i}},47925:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(87462);function i(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((o=>{if(o.toString().match(/^(components|slots)$/))n[o]=(0,r.Z)({},e[o],n[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){const s=e[o]||{},a=t[o];n[o]={},a&&Object.keys(a)?s&&Object.keys(s)?(n[o]=(0,r.Z)({},a),Object.keys(s).forEach((e=>{n[o][e]=i(s[e],a[e])}))):n[o]=a:n[o]=s}else void 0===n[o]&&(n[o]=e[o])})),n}},7960:function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:function(){return r}})},73546:function(e,t,n){"use strict";var r=n(67294);const i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.Z=i},59948:function(e,t,n){"use strict";var r=n(67294),i=n(73546);t.Z=function(e){const t=r.useRef(e);return(0,i.Z)((()=>{t.current=e})),r.useCallback(((...e)=>(0,t.current)(...e)),[])}},33703:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67294),i=n(7960);function o(...e){return r.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{(0,i.Z)(e,t)}))}),e)}},70433:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{l(r.next(e))}catch(t){o(t)}}function a(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(a){o=[6,a],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(51799),a=n(69730);n(83300);t.default=function(e,t,n){void 0===t&&(t="https://api.rs2.usw2.rockset.com");var l=function(t,s){return i(void 0,void 0,void 0,(function(){var i,l,c,u,h,f;return o(this,(function(o){switch(o.label){case 0:return i=r(r({},s),{headers:r(r({},s.headers),{Authorization:"ApiKey "+e,"User-Agent":"Rockset Node SDK/"+a.version})}),n?[4,n(t,i)]:[3,2];case 1:return l=o.sent(),[2,{json:function(){return l},status:200}];case 2:return[4,fetch(t,i)];case 3:return(c=o.sent()).status>=200&&c.status<300?[2,c]:[3,4];case 4:return[4,c.text().catch(console.log)];case 5:u=null!==(f=o.sent())&&void 0!==f?f:"",h=void 0;try{h=JSON.parse(u)}catch(d){h={code:c.status,message:c.statusText,bodyText:u}}throw h}}))}))},c=function(e,t){return i(void 0,void 0,void 0,(function(){var n,r,i;return o(this,(function(o){switch(o.label){case 0:return[4,l(e,t)];case 1:return[4,o.sent().json()];case 2:if((n=null!==(i=o.sent())&&void 0!==i?i:{}).query_errors&&n.query_errors.length>0)throw r=n.query_errors[0],{message:r.message};return[2,{json:function(){return n},status:200}]}}))}))};return{aliases:new s.AliasesApi({},t,l),users:new s.UsersApi({},t,l),apikeys:new s.APIKeysApi({},t,l),workspaces:new s.WorkspacesApi({},t,l),collections:new s.CollectionsApi({},t,l),documents:new s.DocumentsApi({},t,l),integrations:new s.IntegrationsApi({},t,l),orgs:new s.OrganizationsApi({},t,l),queries:new s.QueriesApi({},t,c),queryLambdas:new s.QueryLambdasApi({},t,c),views:new s.ViewsApi({},t,l),virtualInstances:new s.VirtualInstancesApi({},t,l),customRolesBeta:new s.CustomRolesBetaApi({},t,l),_fetch:l}}},69730:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="0.8.23"},57973:function(e){"use strict";var t=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(l){i=!0,o=l}finally{try{!r&&a.return&&a.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n=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}}();function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=Object,s=["black","red","green","yellow","blue","magenta","cyan","lightGray","","default"],a=["darkGray","lightRed","lightGreen","lightYellow","lightBlue","lightMagenta","lightCyan","white",""],l=["","bright","dim","italic","underline","","","inverse"],c={red:"lightRed",green:"lightGreen",yellow:"lightYellow",blue:"lightBlue",magenta:"lightMagenta",cyan:"lightCyan",black:"darkGray",lightGray:"white"},u={0:"style",2:"unstyle",3:"color",9:"colorLight",4:"bgColor",10:"bgColorLight"},h={color:s,colorLight:a,bgColor:s,bgColorLight:a,style:l,unstyle:l},f=function(e){for(var t in e)e[t]||delete e[t];return 0===o.keys(e).length?void 0:e},d=function(){function e(t,n,r){i(this,e),this.background=t,this.name=n,this.brightness=r}return n(e,[{key:"defaultBrightness",value:function(t){return new e(this.background,this.name,this.brightness||t)}},{key:"css",value:function(e){var t=e?this.inverse:this,n=t.brightness===p.bright&&c[t.name]||t.name,i=t.background?"background:":"color:",o=v.rgb[n],s=this.brightness===p.dim?.5:1;return o?i+"rgba("+[].concat(r(o),[s]).join(",")+");":!t.background&&s<1?"color:rgba(0,0,0,0.5);":""}},{key:"inverse",get:function(){return new e(!this.background,this.name||(this.background?"black":"white"),this.brightness)}},{key:"clean",get:function(){return f({name:"default"===this.name?"":this.name,bright:this.brightness===p.bright,dim:this.brightness===p.dim})}}]),e}(),p=function(){function e(t){i(this,e),void 0!==t&&(this.value=Number(t))}return n(e,[{key:"type",get:function(){return u[Math.floor(this.value/10)]}},{key:"subtype",get:function(){return h[this.type][this.value%10]}},{key:"str",get:function(){return this.value?"\x1b["+this.value+"m":""}},{key:"isBrightness",get:function(){return this.value===e.noBrightness||this.value===e.bright||this.value===e.dim}}],[{key:"str",value:function(t){return new e(t).str}}]),e}();o.assign(p,{reset:0,bright:1,dim:2,inverse:7,noBrightness:22,noItalic:23,noUnderline:24,noInverse:27,noColor:39,noBgColor:49});var m=function(e,t,n){var r=p.str(t),i=p.str(n);return String(e).split("\n").map((function(e){return function(e){return e.replace(/(\u001b\[(1|2)m)/g,"\x1b[22m$1")}(r+(t=e.replace(/\u001b\[22m(\u001b\[(1|2)m)/g,"$1"),n=i,o=r,t.split(n).join(o))+i);var t,n,o})).join("\n")},g=function(e,t){return e+t.charAt(0).toUpperCase()+t.slice(1)},y=[].concat(r(s.map((function(e,t){return e?[[e,30+t,p.noColor],[g("bg",e),40+t,p.noBgColor]]:[]}))),r(a.map((function(e,t){return e?[[e,90+t,p.noColor],[g("bg",e),100+t,p.noBgColor]]:[]}))),r(["","BrightRed","BrightGreen","BrightYellow","BrightBlue","BrightMagenta","BrightCyan"].map((function(e,t){return e?[["bg"+e,100+t,p.noBgColor]]:[]}))),r(l.map((function(e,t){return e?[[e,t,"bright"===e||"dim"===e?p.noBrightness:20+t]]:[]})))).reduce((function(e,t){return e.concat(t)}));var v=function(){function e(t){i(this,e),this.spans=t?function(e){for(var t=0,n="",r="",i="",o=[],s=[],a=0,l=e.length;a<l;a++){var c=e[a];switch(n+=c,t){case 0:"\x1b"===c?(t=1,n=c):r+=c;break;case 1:"["===c?(t=2,i="",o=[]):(t=0,r+=n);break;case 2:if(c>="0"&&c<="9")i+=c;else if(";"===c)o.push(new p(i)),i="";else if("m"===c){i=i||"0",o.push(new p(i));var u=!0,h=!1,f=void 0;try{for(var d,m=o[Symbol.iterator]();!(u=(d=m.next()).done);u=!0){var g=d.value;s.push({text:r,code:g}),r=""}}catch(y){h=!0,f=y}finally{try{!u&&m.return&&m.return()}finally{if(h)throw f}}t=0}else t=0,r+=n}}return 0!==t&&(r+=n),r&&s.push({text:r,code:new p}),s}(t):[]}return n(e,[{key:Symbol.iterator,value:function(){return this.spans[Symbol.iterator]()}},{key:"str",get:function(){return this.spans.reduce((function(e,t){return e+t.text+t.code.str}),"")}},{key:"parsed",get:function(){var t=void 0,n=void 0,r=void 0,i=void 0;function s(){t=new d,n=new d(!0),r=void 0,i=new Set}return s(),o.assign(new e,{spans:this.spans.map((function(e){var a=e.code,l=i.has("inverse"),c=i.has("underline")?"text-decoration: underline;":"",u=i.has("italic")?"font-style: italic;":"",h=r===p.bright?"font-weight: bold;":"",m=t.defaultBrightness(r),g=o.assign({css:h+u+c+m.css(l)+n.css(l)},f({bold:!!h,color:m.clean,bgColor:n.clean}),e),y=!0,v=!1,b=void 0;try{for(var x,w=i[Symbol.iterator]();!(y=(x=w.next()).done);y=!0){g[x.value]=!0}}catch(k){v=!0,b=k}finally{try{!y&&w.return&&w.return()}finally{if(v)throw b}}if(a.isBrightness)r=a.value;else if(void 0!==e.code.value)if(e.code.value===p.reset)s();else switch(e.code.type){case"color":case"colorLight":t=new d(!1,a.subtype);break;case"bgColor":case"bgColorLight":n=new d(!0,a.subtype);break;case"style":i.add(a.subtype);break;case"unstyle":i.delete(a.subtype)}return g})).filter((function(e){return e.text.length>0}))})}},{key:"asChromeConsoleLogArguments",get:function(){var e=this.parsed.spans;return[e.map((function(e){return"%c"+e.text})).join("")].concat(r(e.map((function(e){return e.css}))))}},{key:"browserConsoleArguments",get:function(){return this.asChromeConsoleLogArguments}}],[{key:"parse",value:function(t){return new e(t).parsed}},{key:"strip",value:function(e){return e.replace(/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-PRZcf-nqry=><]/g,"")}},{key:"isEscaped",value:function(t){return t=String(t),e.strip(t)!==t}},{key:"nice",get:function(){return e.names.forEach((function(t){t in String.prototype||o.defineProperty(String.prototype,t,{get:function(){return e[t](this)}})})),e}},{key:"ansicolor",get:function(){return e}}]),e}();!function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n;return y.reduce((function(n,i){var s=t(i,3),a=s[0],l=s[1],c=s[2];return o.defineProperty(n,a,{get:function(){return e((function(e){return r(m(e,l,c))}))}})}),n)}(v,(function(e){return e})),v.names=y.map((function(e){return t(e,1)[0]})),v.rgb={black:[0,0,0],darkGray:[100,100,100],lightGray:[200,200,200],white:[255,255,255],red:[204,0,0],lightRed:[255,51,0],green:[0,204,0],lightGreen:[51,204,51],yellow:[204,102,0],lightYellow:[255,153,51],blue:[0,0,255],lightBlue:[26,140,255],magenta:[204,0,204],lightMagenta:[255,0,255],cyan:[0,153,255],lightCyan:[0,204,255]},e.exports=v},86010: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.Z=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},20640:function(e,t,n){"use strict";var r=n(11742),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,o,s,a,l,c,u=!1;t||(t={}),n=t.debug||!1;try{if(s=r(),a=document.createRange(),l=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),"undefined"===typeof r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var o=i[t.format]||i.default;window.clipboardData.setData(o,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),a.selectNodeContents(c),l.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(h){n&&console.error("unable to copy using execCommand: ",h),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(h){n&&console.error("unable to copy using clipboardData: ",h),n&&console.error("falling back to prompt"),o=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(o,e)}}finally{l&&("function"==typeof l.removeRange?l.removeRange(a):l.removeAllRanges()),c&&document.body.removeChild(c),s()}return u}},27484:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",i="second",o="minute",s="hour",a="day",l="week",c="month",u="quarter",h="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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("_")},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},v={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(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),o=n-i<0,s=t.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:h,w:l,d:a,D:f,h:s,m:o,s:i,ms:r,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=g;var w=function(e){return e instanceof A},k=function e(t,n,r){var i;if(!t)return b;if("string"==typeof t){var o=t.toLowerCase();x[o]&&(i=o),n&&(x[o]=n,i=o);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var a=t.name;x[a]=t,i=a}return!r&&i&&(b=i),i||!r&&b},S=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new A(n)},C=v;C.l=k,C.i=w,C.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var A=function(){function g(e){this.$L=k(e.locale,null,!0),this.parse(e)}var y=g.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(C.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,o=(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,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.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()},y.$utils=function(){return C},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=S(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return S(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<S(e)},y.$g=function(e,t,n){return C.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,r=!!C.u(t)||t,u=C.p(e),d=function(e,t){var i=C.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(a)},p=function(e,t){return C.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(u){case h:return r?d(1,0):d(31,11);case c:return r?d(1,g):d(0,g+1);case l:var b=this.$locale().weekStart||0,x=(m<b?m+7:m)-b;return d(r?y-x:y+(6-x),g);case a:case f:return p(v+"Hours",0);case s:return p(v+"Minutes",1);case o:return p(v+"Seconds",2);case i:return p(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var n,l=C.p(e),u="set"+(this.$u?"UTC":""),d=(n={},n[a]=u+"Date",n[f]=u+"Date",n[c]=u+"Month",n[h]=u+"FullYear",n[s]=u+"Hours",n[o]=u+"Minutes",n[i]=u+"Seconds",n[r]=u+"Milliseconds",n)[l],p=l===a?this.$D+(t-this.$W):t;if(l===c||l===h){var m=this.clone().set(f,1);m.$d[d](p),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[C.p(e)]()},y.add=function(r,u){var f,d=this;r=Number(r);var p=C.p(u),m=function(e){var t=S(d);return C.w(t.date(t.date()+Math.round(e*r)),d)};if(p===c)return this.set(c,this.$M+r);if(p===h)return this.set(h,this.$y+r);if(p===a)return m(1);if(p===l)return m(7);var g=(f={},f[o]=t,f[s]=n,f[i]=e,f)[p]||1,y=this.$d.getTime()+r*g;return C.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),o=this.$H,s=this.$m,a=this.$M,l=n.weekdays,c=n.months,u=function(e,n,i,o){return e&&(e[n]||e(t,r))||i[n].slice(0,o)},h=function(e){return C.s(o%12||12,e,"0")},f=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:a+1,MM:C.s(a+1,2,"0"),MMM:u(n.monthsShort,a,c,3),MMMM:u(c,a),D:this.$D,DD:C.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(o),HH:C.s(o,2,"0"),h:h(1),hh:h(2),a:f(o,s,!0),A:f(o,s,!1),m:String(s),mm:C.s(s,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:i};return r.replace(m,(function(e,t){return t||p[e]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(r,f,d){var p,m=C.p(f),g=S(r),y=(g.utcOffset()-this.utcOffset())*t,v=this-g,b=C.m(this,g);return b=(p={},p[h]=b/12,p[c]=b,p[u]=b/3,p[l]=(v-y)/6048e5,p[a]=(v-y)/864e5,p[s]=v/n,p[o]=v/t,p[i]=v/e,p)[m]||v,d?b:C.a(b)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return x[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=k(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return C.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},g}(),O=A.prototype;return S.prototype=O,[["$ms",r],["$s",i],["$m",o],["$H",s],["$W",a],["$M",c],["$y",h],["$D",f]].forEach((function(e){O[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,A,S),e.$i=!0),S},S.locale=k,S.isDayjs=w,S.unix=function(e){return S(1e3*e)},S.en=x[b],S.Ls=x,S.p={},S}()},70178:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var s=i.prototype;o.utc=function(e){return new i({date:e,utc:!0,args:arguments})},s.utc=function(t){var n=o(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},s.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var a=s.parse;s.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),a.call(this,e)};var l=s.init;s.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=s.utcOffset;s.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],s=60*+i[1]+ +i[2];return 0===s?0:"+"===o?s:-s}(r),null===r))return this;var s=Math.abs(r)<=16?60*r:r,a=this;if(i)return a.$offset=s,a.$u=0===r,a;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(a=this.local().add(s+l,e)).$offset=s,a.$x.$localOffset=l}else a=this.utc();return a};var u=s.format;s.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},s.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},s.isUTC=function(){return!!this.$u},s.toISOString=function(){return this.toDate().toISOString()},s.toString=function(){return this.toDate().toUTCString()};var h=s.toDate;s.toDate=function(e){return"s"===e&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=s.diff;s.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=o(e).local();return f.call(r,i,t,n)}}}()},44867:function(e,t,n){e.exports=n(35259)},35259:function(e,t,n){var r=n(34608)._extend({init:function(e,t,n){e=e instanceof Array?e:[e],this._map={},this._list=[],this.callback=t,this.keyFields=e,this.isHashArray=!0,this.options=n||{ignoreDuplicates:!1},t&&t("construct")},addOne:function(e){var t=!1;for(var n in this.keyFields){n=this.keyFields[n];var r=this.objectAt(e,n);if(r)if(this.has(r)){if(this.options.ignoreDuplicates)return;if(-1!=this._map[r].indexOf(e)){t=!0;continue}this._map[r].push(e)}else this._map[r]=[e]}t&&-1!=this._list.indexOf(e)||this._list.push(e)},add:function(){for(var e=0;e<arguments.length;e++)this.addOne(arguments[e]);return this.callback&&this.callback("add",Array.prototype.slice.call(arguments,0)),this},addAll:function(e){if(e.length<100)this.add.apply(this,e);else for(var t=0;t<e.length;t++)this.add(e[t]);return this},addMap:function(e,t){return this._map[e]=t,this.callback&&this.callback("addMap",{key:e,obj:t}),this},intersection:function(e){var t=this;if(!e||!e.isHashArray)throw Error("Cannot HashArray.intersection() on a non-hasharray object. You passed in: ",e);var n=this.clone(null,!0);return this.clone(null,!0).addAll(this.all.concat(e.all)).all.forEach((function(r){t.collides(r)&&e.collides(r)&&n.add(r)})),n},complement:function(e){if(!e||!e.isHashArray)throw Error("Cannot HashArray.complement() on a non-hasharray object. You passed in: ",e);var t=this.clone(null,!0);return this.all.forEach((function(n){e.collides(n)||t.add(n)})),t},get:function(e){if(this.has(e))return this._map[e]instanceof Array&&1==this._map[e].length?this._map[e][0]:this._map[e]},getAll:function(e){if("*"==(e=e instanceof Array?e:[e])[0])return this.all;var t=new r(this.keyFields);for(var n in e)t.add.apply(t,this.getAsArray(e[n]));return t.all},getAsArray:function(e){return this._map[e]||[]},getUniqueRandomIntegers:function(e,t,n){var r=[],i={};for(e=Math.min(Math.max(n-t,1),e);r.length<e;){var o=Math.floor(t+Math.random()*(n+1));i[o]||(i[o]=!0,r.push(o))}return r},sample:function(e,t){var n=this.all,r=[];t&&(n=this.getAll(t));for(var i=this.getUniqueRandomIntegers(e,0,n.length-1),o=0;o<i.length;o++)r.push(n[i[o]]);return r},has:function(e){return this._map.hasOwnProperty(e)},collides:function(e){for(var t in this.keyFields)if(this.has(this.objectAt(e,this.keyFields[t])))return!0;return!1},hasMultiple:function(e){return this._map[e]instanceof Array},removeByKey:function(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t],r=this._map[n].concat();if(r)for(var i in e=e.concat(r),r){var o=r[i];for(var s in this.keyFields){var a=this.objectAt(o,this.keyFields[s]);if(a&&this.has(a))-1!=(s=this._map[a].indexOf(o))&&this._map[a].splice(s,1),0==this._map[a].length&&delete this._map[a]}this._list.splice(this._list.indexOf(o),1)}delete this._map[n]}return this.callback&&this.callback("removeByKey",e),this},remove:function(){for(var e=0;e<arguments.length;e++){var t=arguments[e];for(var n in this.keyFields){var r=this.objectAt(t,this.keyFields[n]);if(r){if(-1==(n=this._map[r].indexOf(t)))throw new Error("HashArray: attempting to remove an object that was never added!"+r);this._map[r].splice(n,1),0==this._map[r].length&&delete this._map[r]}}if(-1==(n=this._list.indexOf(t)))throw new Error("HashArray: attempting to remove an object that was never added!"+r);this._list.splice(n,1)}return this.callback&&this.callback("remove",arguments),this},removeAll:function(){var e=this._list.concat();return this._map={},this._list=[],this.callback&&this.callback("remove",e),this},objectAt:function(e,t){if("string"===typeof t)return e[t];for(var n=t.concat();n.length&&e;)e=e[n.shift()];return e},forEach:function(e,t){return e=e instanceof Array?e:[e],this.getAll(e).forEach(t),this},forEachDeep:function(e,t,n){e=e instanceof Array?e:[e];var r=this;return this.getAll(e).forEach((function(e){n(r.objectAt(e,t),e)})),this},clone:function(e,t){var n=new r(this.keyFields.concat(),e||this.callback);return t||n.add.apply(n,this.all.concat()),n},sum:function(e,t,n){var r=this,i=0;return this.forEachDeep(e,t,(function(e,t){void 0!==n&&(e*=r.objectAt(t,n)),i+=e})),i},average:function(e,t,n){var r=0,i=0,o=0,s=this;return void 0!==n&&this.forEachDeep(e,n,(function(e){o+=e})),this.forEachDeep(e,t,(function(e,t){void 0!==n&&(e*=s.objectAt(t,n)/o),r+=e,i++})),void 0!==n?r:r/i},filter:function(e,t){var n=this,i="function"==typeof t?t:function(e){var r=n.objectAt(e,t);return void 0!==r&&!1!==r},o=new r(this.keyFields);return o.addAll(this.getAll(e).filter(i)),o}});Object.defineProperty(r.prototype,"all",{get:function(){return this._list}}),Object.defineProperty(r.prototype,"map",{get:function(){return this._map}}),e.exports=r,"undefined"!==typeof window&&(window.HashArray=r)},8679:function(e,t,n){"use strict";var r=n(21296),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return r.isMemo(e)?s:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var c=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var s=u(n);h&&(s=s.concat(h(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var y=s[g];if(!o[y]&&(!r||!r[y])&&(!m||!m[y])&&(!a||!a[y])){var v=f(n,y);try{c(t,y,v)}catch(b){}}}}return t}},96103:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case h:case o:case a:case s:case d:return e;default:switch(e=e&&e.$$typeof){case c:case f:case g:case m:case l:return e;default:return t}}case i:return t}}}function k(e){return w(e)===h}t.AsyncMode=u,t.ConcurrentMode=h,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=d,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===h||e===a||e===s||e===d||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===c||e.$$typeof===f||e.$$typeof===v||e.$$typeof===b||e.$$typeof===x||e.$$typeof===y)},t.typeOf=w},21296:function(e,t,n){"use strict";e.exports=n(96103)},43979:function(e,t){"use strict";function n(e,t,n){if(0===e.length||0===t.length)return 0;if(n&&!n.caseSensitive&&(e=e.toUpperCase(),t=t.toUpperCase()),e===t)return 1;for(var r=0,i=e.length,o=t.length,s=Math.floor(Math.max(i,o)/2)-1,a=new Array(i),l=new Array(o),c=0;c<i;c++)for(var u=Math.max(0,c-s);u<=Math.min(o,c+s+1);u++)if(!a[c]&&!l[u]&&e[c]===t[u]){++r,a[c]=l[u]=!0;break}if(0===r)return 0;var h=0,f=0;for(c=0;c<i;c++)if(a[c]){for(;!l[f];)f++;e.charAt(c)!==t.charAt(f++)&&h++}return(r/i+r/o+(r-(h/=2))/r)/3}},34608:function(e,t){var n,r,i;r=[],n=function(){var e=function(e){return e instanceof Function},t=function(e){var t=Array.prototype.slice.call(arguments,1);for(var n in t){var r=t[n];if("object"==typeof r)for(var i in r)e[i]=r[i]}return e},n={_isClassObject:!1},r=!1,i=function(){};return i._subClasses=[],i.prototype.init=function(){},i._extend=function(o,s,a){void 0===o&&(o={}),void 0===s&&(s={}),void 0===a&&(a={}),a=t({},n,a);var l=function(){r||(this._class=l,this.init instanceof Function&&this.init.apply(this,arguments))},c=this;r=!0;var u=new c;r=!1;var h=c.prototype;for(var f in l.prototype=u,l.prototype.constructor=l,l._superClass=c,l._subClasses=[],c._subClasses.push(l),l._extend=c._extend,l._extends=function(e){return this._superClass!=i&&(e==this._superClass||e==i||this._superClass._extends(e))},o){var d=Object.getOwnPropertyDescriptor(o,f),p=d.value;if(null!==p&&"object"==typeof p&&p.descriptor)Object.defineProperty(u,f,p);else if("value"in d||!("set"in d)&&!("get"in d)){u[f]=p;var m=h[f];e(p)&&e(m)&&p!==m&&(p._super=m)}else Object.defineProperty(u,f,d)}if(!a._isClassObject){var g=void 0===c._members?i:c._members._class,y=t({},a,{_isClassObject:!0}),v=g._extend(s,{},y);v._instanceClass=l,l._members=new v}return l},i._convert=function(e,t){var n=e.prototype;return n.init=function(){var t=this._origin=i._construct(e,arguments);Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&Object.defineProperty(this,e,{get:function(){return t[e]}})}),this)},i._extend(n,{},t)},i._construct=function(e,t){void 0===t&&(t=[]);var n=function(){return e.apply(this,t)};return n.prototype=e.prototype,new n},i._superDescriptor=function(e,t){return"_class"in e&&e instanceof e._class&&(e=e._class),"_extends"in e&&e._extends instanceof Function&&e._extends(this)?Object.getOwnPropertyDescriptor(e._superClass.prototype,t):void 0},i},void 0===(i="function"===typeof n?n.apply(t,r):n)||(e.exports=i)},66477:function(e,t){"use strict";t.Headers=self.Headers,t.Request=self.Request,t.Response=self.Response,t.fetch=self.fetch},11987:function(e,t,n){!function(){var t={477:function(e){"use strict";e.exports=n(17673)}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,i),s=!1}finally{s&&delete r[e]}return o.exports}i.ab="//";var o={};!function(){var e,t=o,n=(e=i(477))&&"object"==typeof e&&"default"in e?e.default:e,r=/https?|ftp|gopher|file/;function s(e){"string"==typeof e&&(e=b(e));var t=function(e,t,n){var r=e.auth,i=e.hostname,o=e.protocol||"",s=e.pathname||"",a=e.hash||"",l=e.query||"",c=!1;r=r?encodeURIComponent(r).replace(/%3A/i,":")+"@":"",e.host?c=r+e.host:i&&(c=r+(~i.indexOf(":")?"["+i+"]":i),e.port&&(c+=":"+e.port)),l&&"object"==typeof l&&(l=t.encode(l));var u=e.search||l&&"?"+l||"";return o&&":"!==o.substr(-1)&&(o+=":"),e.slashes||(!o||n.test(o))&&!1!==c?(c="//"+(c||""),s&&"/"!==s[0]&&(s="/"+s)):c||(c=""),a&&"#"!==a[0]&&(a="#"+a),u&&"?"!==u[0]&&(u="?"+u),{protocol:o,host:c,pathname:s=s.replace(/[?#]/g,encodeURIComponent),search:u=u.replace("#","%23"),hash:a}}(e,n,r);return""+t.protocol+t.host+t.pathname+t.search+t.hash}var a="http://",l="w.w",c=a+l,u=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,h=/https?|ftp|gopher|file/;function f(e,t){var n="string"==typeof e?b(e):e;e="object"==typeof e?s(e):e;var r=b(t),i="";n.protocol&&!n.slashes&&(i=n.protocol,e=e.replace(n.protocol,""),i+="/"===t[0]||"/"===e[0]?"/":""),i&&r.protocol&&(i="",r.slashes||(i=r.protocol,t=t.replace(r.protocol,"")));var o=e.match(u);o&&!r.protocol&&(e=e.substr((i=o[1]+(o[2]||"")).length),/^\/\/[^/]/.test(t)&&(i=i.slice(0,-1)));var l=new URL(e,c+"/"),f=new URL(t,l).toString().replace(c,""),d=r.protocol||n.protocol;return d+=n.slashes||r.slashes?"//":"",!i&&d?f=f.replace(a,d):i&&(f=f.replace(a,"")),h.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),i&&(f=i+("/"===f[0]?f.substr(1):f)),f}function d(){}d.prototype.parse=b,d.prototype.format=s,d.prototype.resolve=f,d.prototype.resolveObject=f;var p=/^https?|ftp|gopher|file/,m=/^(.*?)([#?].*)/,g=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,y=/^([a-z0-9.+-]*:)?\/\/\/*/i,v=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function b(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),e&&"object"==typeof e&&e instanceof d)return e;var i=(e=e.trim()).match(m);e=i?i[1].replace(/\\/g,"/")+i[2]:e.replace(/\\/g,"/"),v.test(e)&&"/"!==e.slice(-1)&&(e+="/");var o=!/(^javascript)/.test(e)&&e.match(g),a=y.test(e),u="";o&&(p.test(o[1])||(u=o[1].toLowerCase(),e=""+o[2]+o[3]),o[2]||(a=!1,p.test(o[1])?(u=o[1],e=""+o[3]):e="//"+o[3]),3!==o[2].length&&1!==o[2].length||(u=o[1],e="/"+o[3]));var h,f=(i?i[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=f&&f[1],x=new d,w="",k="";try{h=new URL(e)}catch(t){w=t,u||r||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(k="/",e=e.substr(1));try{h=new URL(e,c)}catch(e){return x.protocol=u,x.href=u,x}}x.slashes=a&&!k,x.host=h.host===l?"":h.host,x.hostname=h.hostname===l?"":h.hostname.replace(/(\[|\])/g,""),x.protocol=w?u||null:h.protocol,x.search=h.search.replace(/\\/g,"%5C"),x.hash=h.hash.replace(/\\/g,"%5C");var S=e.split("#");!x.search&&~S[0].indexOf("?")&&(x.search="?"),x.hash||""!==S[1]||(x.hash="#"),x.query=t?n.decode(h.search.substr(1)):x.search.substr(1),x.pathname=k+(o?function(e){return e.replace(/['^|`]/g,(function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()})).replace(/((?:%[0-9A-F]{2})+)/g,(function(e,t){try{return decodeURIComponent(t).split("").map((function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()})).join("")}catch(e){return t}}))}(h.pathname):h.pathname),"about:"===x.protocol&&"blank"===x.pathname&&(x.protocol="",x.pathname=""),w&&"/"!==e[0]&&(x.pathname=x.pathname.substr(1)),u&&!p.test(u)&&"/"!==e.slice(-1)&&"/"===x.pathname&&(x.pathname=""),x.path=x.pathname+x.search,x.auth=[h.username,h.password].map(decodeURIComponent).filter(Boolean).join(":"),x.port=h.port,b&&!x.host.endsWith(b)&&(x.host+=b,x.port=b.slice(1)),x.href=k?""+x.pathname+x.search+x.hash:s(x);var C=/^(file)/.test(x.href)?["host","hostname"]:[];return Object.keys(x).forEach((function(e){~C.indexOf(e)||(x[e]=x[e]||null)})),x}t.parse=b,t.format=s,t.resolve=f,t.resolveObject=function(e,t){return b(f(e,t))},t.Url=d}(),e.exports=o}()},9008:function(e,t,n){e.exports=n(83121)},83300:function(e,t){"use strict";var n=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n)return n;throw new Error("unable to locate global object")}();e.exports=t=n.fetch,n.fetch&&(t.default=n.fetch.bind(n)),t.Headers=n.Headers,t.Request=n.Request,t.Response=n.Response},55823:function(e,t,n){n(66477),e.exports=self.fetch.bind(self)},62587:function(e){"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!==typeof e||0===e.length)return o;var s=/\+/g;e=e.split(n);var a=1e3;i&&"number"===typeof i.maxKeys&&(a=i.maxKeys);var l=e.length;a>0&&l>a&&(l=a);for(var c=0;c<l;++c){var u,h,f,d,p=e[c].replace(s,"%20"),m=p.indexOf(r);m>=0?(u=p.substr(0,m),h=p.substr(m+1)):(u=p,h=""),f=decodeURIComponent(u),d=decodeURIComponent(h),t(o,f)?Array.isArray(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o}},12361:function(e){"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,n,r,i){return n=n||"&",r=r||"=",null===e&&(e=void 0),"object"===typeof e?Object.keys(e).map((function(i){var o=encodeURIComponent(t(i))+r;return Array.isArray(e[i])?e[i].map((function(e){return o+encodeURIComponent(t(e))})).join(n):o+encodeURIComponent(t(e[i]))})).join(n):i?encodeURIComponent(t(i))+r+encodeURIComponent(t(e)):""}},17673:function(e,t,n){"use strict";t.decode=t.parse=n(62587),t.encode=t.stringify=n(12361)},69921:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case s:case f:case d:return e;default:switch(e=e&&e.$$typeof){case u:case c:case h:case m:case p:case l:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=h,t.Fragment=o,t.Lazy=m,t.Memo=p,t.Portal=i,t.Profiler=a,t.StrictMode=s,t.Suspense=f,t.SuspenseList=d,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return y(e)===c},t.isContextProvider=function(e){return y(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return y(e)===h},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===p},t.isPortal=function(e){return y(e)===i},t.isProfiler=function(e){return y(e)===a},t.isStrictMode=function(e){return y(e)===s},t.isSuspense=function(e){return y(e)===f},t.isSuspenseList=function(e){return y(e)===d},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===a||e===s||e===f||e===d||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===l||e.$$typeof===c||e.$$typeof===h||e.$$typeof===n||void 0!==e.getModuleId)},t.typeOf=y},59864:function(e,t,n){"use strict";e.exports=n(69921)},96260:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(67294),i=n(20640),o=n.n(i);function s(e,t){var n=(0,r.useState)(!1),i=n[0],s=n[1],a=t&&t.successDuration;return(0,r.useEffect)((function(){if(i&&a){var e=setTimeout((function(){s(!1)}),a);return function(){clearTimeout(e)}}}),[i,a]),[i,function(){var t=o()(e);s(t)}]}},11742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},37337:function(e,t,n){n(7557)},7557:function(e,t,n){var r=n(44867),i=/^[\s]*$/,o=[{regex:/[\xe5\xe4\xe0\xe1\xe2\xe3\xe6]/gi,alternate:"a"},{regex:/[\xe8\xe9\xea\xeb]/gi,alternate:"e"},{regex:/[\xec\xed\xee\xef]/gi,alternate:"i"},{regex:/[\xf2\xf3\xf4\xf5\xf6]/gi,alternate:"o"},{regex:/[\xf9\xfa\xfb\xfc]/gi,alternate:"u"},{regex:/[\xe6]/gi,alternate:"ae"}];String.prototype.replaceCharAt=function(e,t){return this.substr(0,e)+t+this.substr(e+t.length)};var s=function(e,t){this.options=t||{},this.options.ignoreCase=void 0===this.options.ignoreCase||this.options.ignoreCase,this.options.maxCacheSize=this.options.maxCacheSize||64,this.options.cache=!this.options.hasOwnProperty("cache")||this.options.cache,this.options.splitOnRegEx=this.options.hasOwnProperty("splitOnRegEx")?this.options.splitOnRegEx:/\s/g,this.options.splitOnGetRegEx=this.options.hasOwnProperty("splitOnGetRegEx")?this.options.splitOnGetRegEx:this.options.splitOnRegEx,this.options.min=this.options.min||1,this.options.keepAll=!!this.options.hasOwnProperty("keepAll")&&this.options.keepAll,this.options.keepAllKey=this.options.hasOwnProperty("keepAllKey")?this.options.keepAllKey:"id",this.options.idFieldOrFunction=this.options.hasOwnProperty("idFieldOrFunction")?this.options.idFieldOrFunction:void 0,this.options.expandRegexes=this.options.expandRegexes||o,this.options.insertFullUnsplitKey=!!this.options.hasOwnProperty("insertFullUnsplitKey")&&this.options.insertFullUnsplitKey,this.keyFields=e?e instanceof Array?e:[e]:[],this.root={},this.size=0,this.options.cache&&(this.getCache=new r("key"))};function a(e,t){return 1===t.length?e[t[0]]:a(e[t[0]],t.slice(1,t.length))}s.prototype={add:function(e,t){this.options.cache&&this.clearCache(),"number"===typeof t&&(t=void 0);var n=t||this.keyFields;for(var r in n){var i=n[r],o=i instanceof Array?a(e,i):e[i];if(o){o=o.toString();for(var s=this.expandString(o),l=0;l<s.length;l++){var c=s[l];this.map(c,e)}}}},expandString:function(e){var t=[e];if(this.options.expandRegexes&&this.options.expandRegexes.length)for(var n=0;n<this.options.expandRegexes.length;n++)for(var r,i=this.options.expandRegexes[n];null!==(r=i.regex.exec(e));){var o=e.replaceCharAt(r.index,i.alternate);t.push(o)}return t},addAll:function(e,t){for(var n=0;n<e.length;n++)this.add(e[n],t)},reset:function(){this.root={},this.size=0},clearCache:function(){this.getCache=new r("key")},cleanCache:function(){for(;this.getCache.all.length>this.options.maxCacheSize;)this.getCache.remove(this.getCache.all[0])},addFromObject:function(e,t){for(var n in this.options.cache&&this.clearCache(),t=t||"value",-1==this.keyFields.indexOf("_key_")&&this.keyFields.push("_key_"),e){var r={_key_:n};r[t]=e[n],this.add(r)}},map:function(e,t){if(this.options.splitOnRegEx&&this.options.splitOnRegEx.test(e)){var n=e.split(this.options.splitOnRegEx),o=n.filter((function(e){return i.test(e)}));if(!(n.filter((function(t){return t===e})).length+o.length===n.length)){for(var s=0,a=n.length;s<a;s++)i.test(n[s])||this.map(n[s],t);if(!this.options.insertFullUnsplitKey)return}}this.options.cache&&this.clearCache(),this.options.keepAll&&(this.indexed=this.indexed||new r([this.options.keepAllKey]),this.indexed.add(t)),this.options.ignoreCase&&(e=e.toLowerCase());var l=this.keyToArr(e),c=this;!function e(t,n,r){if(0==t.length)return r.value=r.value||[],void r.value.push(n);var i=t.shift();r[i]||c.size++;r[i]=r[i]||{},e(t,n,r[i])}(l,t,this.root)},keyToArr:function(e){var t;if(this.options.min&&this.options.min>1){if(e.length<this.options.min)return[];t=(t=[e.substr(0,this.options.min)]).concat(e.substr(this.options.min).split(""))}else t=e.split("");return t},findNode:function(e){return function e(t,n){if(!n)return;if(0==t.length)return n;var r=t.shift();return e(t,n[r])}(this.keyToArr(e),this.root)},_getCacheKey:function(e,t){var n=e;return t&&(n=e+"_"+t),n},_get:function(e,t){var n,i;if(e=this.options.ignoreCase?e.toLowerCase():e,this.options.cache&&(n=this.getCache.get(this._getCacheKey(e,t))))return n.value;for(var o=void 0,s=this.options.indexField?[this.options.indexField]:this.keyFields,a=this.options.splitOnGetRegEx?e.split(this.options.splitOnGetRegEx):[e],l=0,c=a.length;l<c;l++)if(!(this.options.min&&a[l].length<this.options.min)){var u=new r(s);(i=this.findNode(a[l]))&&d(i,u),o=o?o.intersection(u):u}var h=o?o.all:[];if(this.options.cache){var f=this._getCacheKey(e,t);this.getCache.add({key:f,value:h}),this.cleanCache()}return h;function d(e,n){if(!t||n.all.length!==t){if(e.value&&e.value.length){if(t&&!(n.all.length+e.value.length<t))return void n.addAll(e.value.slice(0,t-n.all.length));n.addAll(e.value)}for(var r in e){if(t&&n.all.length===t)return;"value"!=r&&d(e[r],n)}}}},get:function(e,t,n){var i=this.options.indexField?[this.options.indexField]:this.keyFields,o=void 0,s=void 0;if(t&&!this.options.idFieldOrFunction)throw new Error("To use the accumulator, you must specify and idFieldOrFunction");for(var a=0,l=(e=e instanceof Array?e:[e]).length;a<l;a++){var c=this._get(e[a],n);t?s=t(s,e[a],c,this):o=o?o.addAll(c):new r(i).addAll(c)}return t?s:o.all},search:function(e,t,n){return this.get(e,t,n)},getId:function(e){return"function"===typeof this.options.idFieldOrFunction?this.options.idFieldOrFunction(e):e[this.options.idFieldOrFunction]}},s.UNION_REDUCER=function(e,t,n,r){if(void 0===e)return n;var i,o,s={},a=Math.max(e.length,n.length),l=[],c=0;for(i=0;i<a;i++)i<e.length&&(s[o=r.getId(e[i])]=s[o]?s[o]:0,s[o]++,2===s[o]&&(l[c++]=e[i])),i<n.length&&(s[o=r.getId(n[i])]=s[o]?s[o]:0,s[o]++,2===s[o]&&(l[c++]=n[i]));return l},e.exports=s,e.exports.default=s},97326: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,{Z:function(){return r}})},87462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():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},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},75068:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,{Z:function(){return i}})},63366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},3357:function(e,t,n){"use strict";n.d(t,{Xy:function(){return an}});var r=n(47421),i=n(78120),o=n(59119),s=n(41113);function a(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=e(t,n);return!!i&&(r(n.update(i)),!0)}}const l=a(d,0),c=a(f,0),u=a(((e,t)=>f(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from,to:i.to})}return t}(t))),0);function h(e,t=e.selection.main.head){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function f(e,t,n=t.selection.ranges){let r=n.map((e=>h(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,{open:t,close:n},r,i){let o,s,a=e.sliceDoc(r-50,r),l=e.sliceDoc(i,i+50),c=/\s*$/.exec(a)[0].length,u=/^\s*/.exec(l)[0].length,h=a.length-c;if(a.slice(h-t.length,h)==t&&l.slice(u,u+n.length)==n)return{open:{pos:r-c,margin:c&&1},close:{pos:i+u,margin:u&&1}};i-r<=100?o=s=e.sliceDoc(r,i):(o=e.sliceDoc(r,r+50),s=e.sliceDoc(i-50,i));let f=/^\s*/.exec(o)[0].length,d=/\s*$/.exec(s)[0].length,p=s.length-d-n.length;return o.slice(f,f+t.length)==t&&s.slice(p,p+n.length)==n?{open:{pos:r+f+t.length,margin:/\s/.test(o.charAt(f+t.length))?1:0},close:{pos:i-d-n.length,margin:/\s/.test(s.charAt(p-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n<i.length;n++)if(t=i[n]){let i=r[n],{open:o,close:s}=t;e.push({from:o.pos-i.open.length,to:o.pos+o.margin},{from:s.pos-s.margin,to:s.pos+i.close.length})}return{changes:e}}return null}function d(e,t,n=t.selection.ranges){let r=[],i=-1;for(let{from:o,to:s}of n){let e=r.length,n=1e9;for(let a=o;a<=s;){let e=t.doc.lineAt(a);if(e.from>i&&(o==s||s>e.from)){i=e.from;let o=h(t,a).line;if(!o)continue;let s=/^\s*/.exec(e.text)[0].length,l=s==e.length,c=e.text.slice(s,s+o.length)==o?s:-1;s<e.text.length&&s<n&&(n=s),r.push({line:e,comment:c,token:o,indent:s,empty:l,single:!1})}a=e.to+1}if(n<1e9)for(let t=e;t<r.length;t++)r[t].indent<r[t].line.text.length&&(r[t].indent=n);r.length==e+1&&(r[e].single=!0)}if(2!=e&&r.some((e=>e.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:i,indent:o,empty:s,single:a}of r)!a&&s||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const p=i.q6.define(),m=i.q6.define(),g=i.r$.define(),y=i.r$.define({combine:e=>(0,i.BO)(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})});const v=i.QQ.define({create:()=>_.empty,update(e,t){let n=t.state.facet(y),r=t.annotation(p);if(r){let o=t.docChanged?i.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,s=A.fromTransaction(t,o),a=r.side,l=0==a?e.undone:e.done;return l=s?O(l,l.length,n.minDepth,s):T(l,t.startState.selection),new _(0==a?r.rest:l,0==a?l:r.rest)}let o=t.annotation(m);if("full"!=o&&"before"!=o||(e=e.isolate()),!1===t.annotation(i.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=A.fromTransaction(t),a=t.annotation(i.YW.time),l=t.annotation(i.YW.userEvent);return s?e=e.addChanges(s,a,l,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,a,l,n.newGroupDelay)),"full"!=o&&"after"!=o||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new _(e.done.map(A.fromJSON),e.undone.map(A.fromJSON))});function b(e={}){return[v,y.of(e),r.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?w:"historyRedo"==e.inputType?k:null;return!!n&&(e.preventDefault(),n(t))}})]}function x(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(v,!1);if(!i)return!1;let o=i.pop(e,n,t);return!!o&&(r(o),!0)}}const w=x(0,!1),k=x(1,!1),S=x(0,!0),C=x(1,!0);class A{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new A(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new A(e.changes&&i.as.fromJSON(e.changes),[],e.mapped&&i.n0.fromJSON(e.mapped),e.startSelection&&i.jT.fromJSON(e.startSelection),e.selectionsAfter.map(i.jT.fromJSON))}static fromTransaction(e,t){let n=$;for(let r of e.startState.facet(g)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new A(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,$)}static selection(e){return new A(void 0,$,void 0,void 0,e)}}function O(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function M(e,t){return e.length?t.length?e.concat(t):e:t}const $=[];function T(e,t){if(e.length){let 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),O(e,e.length-1,1e9,n.setSelAfter(r)))}return[A.selection([t])]}function R(e){let 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 P(e,t){if(!e.length)return e;let n=e.length,r=$;for(;n;){let i=I(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[A.selection(r)]:$}function I(e,t,n){let r=M(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):$,n);if(!e.changes)return A.selection(r);let o=e.changes.map(t),s=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(s):s;return new A(o,i.Py.mapEffects(e.effects,t),a,e.startSelection.map(s),r)}const E=/^(input\.type|delete)($|\.)/;class _{constructor(e,t,n=0,r){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new _(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||E.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime<r&&function(e,t){let n=[],r=!1;return e.iterChangedRanges(((e,t)=>n.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let s=0;s<n.length;){let e=n[s++],t=n[s++];o>=e&&i<=t&&(r=!0)}})),r}(s.changes,e.changes)||"input.type.compose"==n)?O(o,o.length-1,i,new A(e.changes.compose(s.changes),M(e.effects,s.effects),s.mapped,s.startSelection,$)):O(o,o.length,i,e),new _(o,$,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:$;return i.length>0&&t-this.prevTime<r&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(o=i[i.length-1],s=e,o.ranges.length==s.ranges.length&&0===o.ranges.filter(((e,t)=>e.empty!=s.ranges[t].empty)).length)?this:new _(T(this.done,e),this.undone,t,n);var o,s}addMapping(e){return new _(P(this.done,e),P(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:p.of({side:e,rest:R(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?$:r.slice(0,r.length-1);return i.mapped&&(n=P(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:p.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}_.empty=new _($,$);const D=[{key:"Mod-z",run:w,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:k,preventDefault:!0},{key:"Mod-u",run:S,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:C,preventDefault:!0}];function Z(e,t){return i.jT.create(e.ranges.map(t),e.mainIndex)}function B(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function j({state:e,dispatch:t},n){let r=Z(e.selection,n);return!r.eq(e.selection)&&(t(B(e,r)),!0)}function L(e,t){return i.jT.cursor(t?e.to:e.from)}function N(e,t){return j(e,(n=>n.empty?e.moveByChar(n,t):L(n,t)))}function F(e){return e.textDirectionAt(e.state.selection.main.head)==r.Nm.LTR}const z=e=>N(e,!F(e)),J=e=>N(e,F(e));function U(e,t){return j(e,(n=>n.empty?e.moveByGroup(n,t):L(n,t)))}function W(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function q(e,t,n){let r,a,l=(0,o.qz)(e).resolveInner(t.head),c=n?s.md.closedBy:s.md.openedBy;for(let i=t.head;;){let t=n?l.childAfter(i):l.childBefore(i);if(!t)break;W(e,t,c)?l=t:i=n?t.to:t.from}return a=l.type.prop(c)&&(r=n?(0,o.Um)(e,l.from,1):(0,o.Um)(e,l.to,-1))&&r.matched?n?r.end.to:r.end.from:n?l.to:l.from,i.jT.cursor(a,n?-1:1)}function H(e,t){return j(e,(n=>{if(!n.empty)return L(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const V=e=>H(e,!1),K=e=>H(e,!0);function G(e,t){let{state:n}=e,i=Z(n.selection,(n=>n.empty?e.moveVertically(n,t,Math.min(e.dom.clientHeight,innerHeight)):L(n,t)));if(i.eq(n.selection))return!1;let o,s=e.coordsAtPos(n.selection.main.head),a=e.scrollDOM.getBoundingClientRect();return s&&s.top>a.top&&s.bottom<a.bottom&&s.top-a.top<=e.scrollDOM.scrollHeight-e.scrollDOM.scrollTop-e.scrollDOM.clientHeight&&(o=r.tk.scrollIntoView(i.main.head,{y:"start",yMargin:s.top-a.top})),e.dispatch(B(n,i),{effects:o}),!0}const Y=e=>G(e,!1),Q=e=>G(e,!0);function X(e,t,n){let r=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?r.to:r.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(o=i.jT.cursor(r.from+n))}return o}const ee=e=>j(e,(t=>X(e,t,!0))),te=e=>j(e,(t=>X(e,t,!1)));function ne(e,t,n){let r=!1,s=Z(e.selection,(t=>{let s=(0,o.Um)(e,t.head,-1)||(0,o.Um)(e,t.head,1)||t.head>0&&(0,o.Um)(e,t.head-1,1)||t.head<e.doc.length&&(0,o.Um)(e,t.head+1,-1);if(!s||!s.end)return t;r=!0;let a=s.start.from==t.head?s.end.to:s.end.from;return n?i.jT.range(t.anchor,a):i.jT.cursor(a)}));return!!r&&(t(B(e,s)),!0)}function re(e,t){let n=Z(e.state.selection,(e=>{let n=t(e);return i.jT.range(e.anchor,n.head,n.goalColumn)}));return!n.eq(e.state.selection)&&(e.dispatch(B(e.state,n)),!0)}function ie(e,t){return re(e,(n=>e.moveByChar(n,t)))}const oe=e=>ie(e,!F(e)),se=e=>ie(e,F(e));function ae(e,t){return re(e,(n=>e.moveByGroup(n,t)))}function le(e,t){return re(e,(n=>e.moveVertically(n,t)))}const ce=e=>le(e,!1),ue=e=>le(e,!0);function he(e,t){return re(e,(n=>e.moveVertically(n,t,Math.min(e.dom.clientHeight,innerHeight))))}const fe=e=>he(e,!1),de=e=>he(e,!0),pe=e=>re(e,(t=>X(e,t,!0))),me=e=>re(e,(t=>X(e,t,!1))),ge=({state:e,dispatch:t})=>(t(B(e,{anchor:0})),!0),ye=({state:e,dispatch:t})=>(t(B(e,{anchor:e.doc.length})),!0),ve=({state:e,dispatch:t})=>(t(B(e,{anchor:e.selection.main.anchor,head:0})),!0),be=({state:e,dispatch:t})=>(t(B(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function xe({state:e,dispatch:t},n){if(e.readOnly)return!1;let r="delete.selection",o=e.changeByRange((e=>{let{from:t,to:o}=e;if(t==o){let e=n(t);e<t?r="delete.backward":e>t&&(r="delete.forward"),t=Math.min(t,e),o=Math.max(o,e)}return t==o?{range:e}:{changes:{from:t,to:o},range:i.jT.cursor(t)}}));return!o.changes.empty&&(t(e.update(o,{scrollIntoView:!0,userEvent:r})),!0)}function we(e,t,n){if(e instanceof r.tk)for(let i of e.state.facet(r.tk.atomicRanges).map((t=>t(e))))i.between(t,t,((e,r)=>{e<t&&r>t&&(t=n?r:e)}));return t}const ke=(e,t)=>xe(e,(n=>{let r,s,{state:a}=e,l=a.doc.lineAt(n);if(!t&&n>l.from&&n<l.from+200&&!/[^ \t]/.test(r=l.text.slice(0,n-l.from))){if("\t"==r[r.length-1])return n-1;let e=(0,i.IS)(r,a.tabSize)%(0,o.y1)(a)||(0,o.y1)(a);for(let t=0;t<e&&" "==r[r.length-1-t];t++)n--;s=n}else s=(0,i.cp)(l.text,n-l.from,t,t)+l.from,s==n&&l.number!=(t?a.doc.lines:1)&&(s+=t?1:-1);return we(e,s,t)})),Se=e=>ke(e,!1),Ce=e=>ke(e,!0),Ae=(e,t)=>xe(e,(n=>{let r=n,{state:o}=e,s=o.doc.lineAt(r),a=o.charCategorizer(r);for(let e=null;;){if(r==(t?s.to:s.from)){r==n&&s.number!=(t?o.doc.lines:1)&&(r+=t?1:-1);break}let l=(0,i.cp)(s.text,r-s.from,t)+s.from,c=s.text.slice(Math.min(r,l)-s.from,Math.max(r,l)-s.from),u=a(c);if(null!=e&&u!=e)break;" "==c&&r==n||(e=u),r=l}return we(e,r,t)})),Oe=e=>Ae(e,!1),Me=e=>xe(e,(t=>{let n=e.lineBlockAt(t).to;return we(e,t<n?n:Math.min(e.state.doc.length,t+1),!0)}));function $e(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Te(e,t,n){if(e.readOnly)return!1;let r=[],o=[];for(let s of $e(e)){if(n?s.to==e.doc.length:0==s.from)continue;let t=e.doc.lineAt(n?s.to+1:s.from-1),a=t.length+1;if(n){r.push({from:s.to,to:t.to},{from:s.from,insert:t.text+e.lineBreak});for(let t of s.ranges)o.push(i.jT.range(Math.min(e.doc.length,t.anchor+a),Math.min(e.doc.length,t.head+a)))}else{r.push({from:t.from,to:s.from},{from:s.to,insert:e.lineBreak+t.text});for(let e of s.ranges)o.push(i.jT.range(e.anchor-a,e.head-a))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:i.jT.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Re(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of $e(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Pe=Ie(!1);function Ie(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange((n=>{let{from:r,to:a}=n,l=t.doc.lineAt(r),c=!e&&r==a&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,o.qz)(e).resolveInner(t),i=r.childBefore(t),a=r.childAfter(t);return i&&a&&i.to<=t&&a.from>=t&&(n=i.type.prop(s.md.closedBy))&&n.indexOf(a.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(a.from).from?{from:i.to,to:a.from}:null}(t,r);e&&(r=a=(a<=l.to?l:t.doc.lineAt(a)).to);let u=new o.Gn(t,{simulateBreak:r,simulateDoubleBreak:!!c}),h=(0,o.K0)(u,r);for(null==h&&(h=/^\s*/.exec(t.doc.lineAt(r).text)[0].length);a<l.to&&/\s/.test(l.text[a-l.from]);)a++;c?({from:r,to:a}=c):r>l.from&&r<l.from+100&&!/\S/.test(l.text.slice(0,r))&&(r=l.from);let f=["",(0,o.SS)(t,h)];return c&&f.push((0,o.SS)(t,u.lineIndent(l.from,-1))),{changes:{from:r,to:a,insert:i.xv.of(f)},range:i.jT.cursor(r+1+f[1].length)}}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Ee(e,t){let n=-1;return e.changeByRange((r=>{let o=[];for(let i=r.from;i<=r.to;){let s=e.doc.lineAt(i);s.number>n&&(r.empty||r.to>s.from)&&(t(s,o,r),n=s.number),i=s.to+1}let s=e.changes(o);return{changes:o,range:i.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}const _e=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ee(e,((t,n)=>{n.push({from:t.from,insert:e.facet(o.c)})})),{userEvent:"input.indent"})),!0),De=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Ee(e,((t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let s=(0,i.IS)(r,e.tabSize),a=0,l=(0,o.SS)(e,Math.max(0,s-(0,o.y1)(e)));for(;a<r.length&&a<l.length&&r.charCodeAt(a)==l.charCodeAt(a);)a++;n.push({from:t.from+a,to:t.from+r.length,insert:l.slice(a)})})),{userEvent:"delete.dedent"})),!0),Ze=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>j(e,(t=>q(e.state,t,!F(e)))),shift:e=>re(e,(t=>q(e.state,t,!F(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>j(e,(t=>q(e.state,t,F(e)))),shift:e=>re(e,(t=>q(e.state,t,F(e))))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>Te(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>Re(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>Te(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>Re(e,t,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=i.jT.create([n.main]):n.main.empty||(r=i.jT.create([i.jT.cursor(n.main.head)])),!!r&&(t(B(e,r)),!0)}},{key:"Mod-Enter",run:Ie(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=$e(e).map((({from:t,to:n})=>i.jT.range(t,Math.min(n+1,e.doc.length))));return t(e.update({selection:i.jT.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=Z(e.selection,(t=>{var n;let r=(0,o.qz)(e).resolveInner(t.head,1);for(;!(r.from<t.from&&r.to>=t.to||r.to>t.to&&r.from<=t.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent);)r=r.parent;return i.jT.range(r.to,r.from)}));return t(B(e,n)),!0},preventDefault:!0},{key:"Mod-[",run:De},{key:"Mod-]",run:_e},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new o.Gn(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),i=Ee(e,((t,i,s)=>{let a=(0,o.K0)(r,t.from);if(null==a)return;/\S/.test(t.text)||(a=0);let l=/^\s*/.exec(t.text)[0],c=(0,o.SS)(e,a);(l!=c||s.from<t.from+l.length)&&(n[t.from]=a,i.push({from:t.from,to:t.from+l.length,insert:c}))}));return i.changes.empty||t(e.update(i,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes($e(t).map((({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n})))),r=Z(t.selection,(t=>e.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>ne(e,t,!1)},{key:"Mod-/",run:e=>{let t=h(e.state);return t.line?l(e):!!t.block&&u(e)}},{key:"Alt-A",run:c}].concat([{key:"ArrowLeft",run:z,shift:oe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>U(e,!F(e)),shift:e=>ae(e,!F(e))},{mac:"Cmd-ArrowLeft",run:te,shift:me},{key:"ArrowRight",run:J,shift:se,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>U(e,F(e)),shift:e=>ae(e,F(e))},{mac:"Cmd-ArrowRight",run:ee,shift:pe},{key:"ArrowUp",run:V,shift:ce,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ge,shift:ve},{mac:"Ctrl-ArrowUp",run:Y,shift:fe},{key:"ArrowDown",run:K,shift:ue,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ye,shift:be},{mac:"Ctrl-ArrowDown",run:Q,shift:de},{key:"PageUp",run:Y,shift:fe},{key:"PageDown",run:Q,shift:de},{key:"Home",run:te,shift:me,preventDefault:!0},{key:"Mod-Home",run:ge,shift:ve},{key:"End",run:ee,shift:pe,preventDefault:!0},{key:"Mod-End",run:ye,shift:be},{key:"Enter",run:Pe},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:Se,shift:Se},{key:"Delete",run:Ce},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Oe},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Ae(e,!0)},{mac:"Mod-Backspace",run:e=>xe(e,(t=>{let n=e.lineBlockAt(t).from;return we(e,t>n?n:Math.max(0,t-1),!1)}))},{mac:"Mod-Delete",run:Me}].concat([{key:"Ctrl-b",run:z,shift:oe,preventDefault:!0},{key:"Ctrl-f",run:J,shift:se},{key:"Ctrl-p",run:V,shift:ce},{key:"Ctrl-n",run:K,shift:ue},{key:"Ctrl-a",run:e=>j(e,(t=>i.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>re(e,(t=>i.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>j(e,(t=>i.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>re(e,(t=>i.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:Ce},{key:"Ctrl-h",run:Se},{key:"Ctrl-k",run:Me},{key:"Ctrl-Alt-h",run:Oe},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:i.xv.of(["",""])},range:i.jT.cursor(e.from)})));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange((t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),o=n==r.from?n-1:(0,i.cp)(r.text,n-r.from,!1)+r.from,s=n==r.to?n+1:(0,i.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:o,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(o,n))},range:i.jT.cursor(s)}}));return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Q}].map((e=>({mac:e.key,run:e.run,shift:e.shift})))));var Be=n(49892);class je{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,o.qz)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(Je(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function Le(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Ne(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e<i.length;e++)n[i[e]]=!0}let r=Le(t)+Le(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}(t);return e=>{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}class Fe{constructor(e,t,n){this.completion=e,this.source=t,this.match=n}}function ze(e){return e.selection.main.head}function Je(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const Ue=i.q6.define();function We(e,t){const n=t.completion.apply||t.completion.label;let r=t.source;"string"==typeof n?e.dispatch(e.state.changeByRange((t=>{if(t==e.state.selection.main)return{changes:{from:r.from,to:r.to,insert:n},range:i.jT.cursor(r.from+n.length)};let o=r.to-r.from;return!t.empty||o&&e.state.sliceDoc(t.from-o,t.from)!=e.state.sliceDoc(r.from,r.to)?{range:t}:{changes:{from:t.from-o,to:t.from,insert:n},range:i.jT.cursor(t.from-o+n.length)}})),{userEvent:"input.complete",annotations:Ue.of(t.completion)}):n(e,t.completion,r.from,r.to)}const qe=new WeakMap;function He(e){if(!Array.isArray(e))return e;let t=qe.get(e);return t||qe.set(e,t=Ne(e)),t}class Ve{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[];for(let t=0;t<e.length;){let n=(0,i.gm)(e,t),r=(0,i.nZ)(n);this.chars.push(n);let o=e.slice(t,t+r),s=o.toUpperCase();this.folded.push((0,i.gm)(s==o?o.toLowerCase():s,0)),t+=r}this.astral=e.length!=this.chars.length}match(e){if(0==this.pattern.length)return[0];if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:o,byWord:s}=this;if(1==t.length){let r=(0,i.gm)(e,0);return r==t[0]?[0,0,(0,i.nZ)(r)]:r==n[0]?[-200,0,(0,i.nZ)(r)]:null}let a=e.indexOf(this.pattern);if(0==a)return[0,0,this.pattern.length];let l=t.length,c=0;if(a<0){for(let o=0,s=Math.min(e.length,200);o<s&&c<l;){let s=(0,i.gm)(e,o);s!=t[c]&&s!=n[c]||(r[c++]=o),o+=(0,i.nZ)(s)}if(c<l)return null}let u=0,h=0,f=!1,d=0,p=-1,m=-1,g=/[a-z]/.test(e),y=!0;for(let v=0,b=Math.min(e.length,200),x=0;v<b&&h<l;){let r=(0,i.gm)(e,v);a<0&&(u<l&&r==t[u]&&(o[u++]=v),d<l&&(r==t[d]||r==n[d]?(0==d&&(p=v),m=v+1,d++):d=0));let c,b=r<255?r>=48&&r<=57||r>=97&&r<=122?2:r>=65&&r<=90?1:0:(c=(0,i.bg)(r))!=c.toLowerCase()?1:c!=c.toUpperCase()?2:0;(!v||1==b&&g||0==x&&0!=b)&&(t[h]==r||n[h]==r&&(f=!0)?s[h++]=v:s.length&&(y=!1)),x=b,v+=(0,i.nZ)(r)}return h==l&&0==s[0]&&y?this.result((f?-200:0)-100,s,e):d==l&&0==p?[-200-e.length,0,m]:a>-1?[-700-e.length,a,a+this.pattern.length]:d==l?[-900-e.length,p,m]:h==l?this.result((f?-200:0)-100-700+(y?0:-1100),s,e):2==t.length?null:this.result((r[0]?-700:0)-200-1100,r,e)}result(e,t,n){let r=[e-n.length],o=1;for(let s of t){let e=s+(this.astral?(0,i.nZ)((0,i.gm)(n,s)):1);o>1&&r[o-1]==s?r[o-1]=e:(r[o++]=s,r[o++]=e)}return r}}const Ke=i.r$.define({combine:e=>(0,i.BO)(e,{activateOnTyping:!0,override:null,maxRenderedOptions:100,defaultKeymap:!0,optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[]},{defaultKeymap:(e,t)=>e&&t,icons:(e,t)=>e&&t,optionClass:(e,t)=>n=>function(e,t){return e?t?e+" "+t:e:t}(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function Ge(e,t,n){if(e<=n)return{from:0,to:e};if(t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class Ye{constructor(e,t){this.view=e,this.stateField=t,this.info=null,this.placeInfo={read:()=>this.measureInfo(),write:e=>this.positionInfo(e),key:this};let n=e.state.field(t),{options:r,selected:i}=n.open,o=e.state.facet(Ke);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n){let r=document.createElement("span");r.className="cm-completionLabel";let{label:i}=e,o=0;for(let s=1;s<n.length;){let e=n[s++],t=n[s++];e>o&&r.appendChild(document.createTextNode(i.slice(o,e)));let a=r.appendChild(document.createElement("span"));a.appendChild(document.createTextNode(i.slice(e,t))),a.className="cm-completionMatchedText",o=t}return o<i.length&&r.appendChild(document.createTextNode(i.slice(o))),r},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort(((e,t)=>e.position-t.position)).map((e=>e.render))}(o),this.optionClass=o.optionClass,this.range=Ge(r.length,i,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.dom.addEventListener("mousedown",(t=>{for(let n,i=t.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(n=/-(\d+)$/.exec(i.id))&&+n[1]<r.length)return We(e,r[+n[1]]),void t.preventDefault()})),this.list=this.dom.appendChild(this.createListBox(r,n.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))}mount(){this.updateSel()}update(e){e.state.field(this.stateField)!=e.startState.field(this.stateField)&&this.updateSel()}positioned(){this.info&&this.view.requestMeasure(this.placeInfo)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=Ge(t.options.length,t.selected,this.view.state.facet(Ke).maxRenderedOptions),this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t.options,e.id,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfo)}))),this.updateSelectedOption(t.selected)){this.info&&(this.info.remove(),this.info=null);let{completion:n}=t.options[t.selected],{info:i}=n;if(!i)return;let o="string"===typeof i?document.createTextNode(i):i(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t)})).catch((e=>(0,r.OO)(this.view.state,e,"completion info"))):this.addInfoPane(o)}}addInfoPane(e){let t=this.info=document.createElement("div");t.className="cm-tooltip cm-completionInfo",t.appendChild(e),this.dom.appendChild(t),this.view.requestMeasure(this.placeInfo)}updateSelectedOption(e){let t=null;for(let 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){let 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}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect();if(i.top>Math.min(innerHeight,t.bottom)-10||i.bottom<Math.max(0,t.top)+10)return null;let o=Math.max(0,Math.min(i.top,innerHeight-n.height))-t.top,s=this.view.textDirection==r.Nm.RTL,a=t.left,l=innerWidth-t.right;return s&&a<Math.min(n.width,l)?s=!1:!s&&l<Math.min(n.width,a)&&(s=!0),{top:o,left:s}}positionInfo(e){this.info&&(this.info.style.top=(e?e.top:-1e6)+"px",e&&(this.info.classList.toggle("cm-completionInfo-left",e.left),this.info.classList.toggle("cm-completionInfo-right",!e.left)))}createListBox(e,t,n){const r=document.createElement("ul");r.id=t,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true");for(let i=n.from;i<n.to;i++){let{completion:n,match:o}=e[i];const s=r.appendChild(document.createElement("li"));s.id=t+"-"+i,s.setAttribute("role","option");let a=this.optionClass(n);a&&(s.className=a);for(let e of this.optionContent){let t=e(n,this.view.state,o);t&&s.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}}function Qe(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class Xe{constructor(e,t,n,r,i){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new Xe(this.options,nt(t,e),this.tooltip,this.timestamp,e)}static build(e,t,n,r,i){let o=function(e,t){let n=[],r=0;for(let s of e)if(s.hasResult())if(!1===s.result.filter)for(let e of s.result.options)n.push(new Fe(e,s,[1e9-r++]));else{let e,r=new Ve(t.sliceDoc(s.from,s.to));for(let t of s.result.options)(e=r.match(t.label))&&(null!=t.boost&&(e[0]+=t.boost),n.push(new Fe(t,s,e)))}let i=[],o=null;for(let s of n.sort(it))!o||o.label!=s.completion.label||o.detail!=s.completion.detail||null!=o.type&&null!=s.completion.type&&o.type!=s.completion.type||o.apply!=s.completion.apply?i.push(s):Qe(s.completion)>Qe(o)&&(i[i.length-1]=s),o=s.completion;return i}(e,t);if(!o.length)return null;let s=0;if(r&&r.selected){let e=r.options[r.selected].completion;for(let t=0;t<o.length;t++)if(o[t].completion==e){s=t;break}}return new Xe(o,nt(n,s),{pos:e.reduce(((e,t)=>t.hasResult()?Math.min(e,t.from):e),1e8),create:(a=ft,e=>new Ye(e,a)),above:i.aboveCursor},r?r.timestamp:Date.now(),s);var a}map(e){return new Xe(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected)}}class et{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new et(rt,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(Ke),r=(n.override||t.languageDataAt("autocomplete",ze(t)).map(He)).map((t=>(this.active.find((e=>e.source==t))||new st(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n<e.length&&!e[n].hasResult;)n++;for(;r<t.length&&!t[r].hasResult;)r++;let i=n==e.length,o=r==t.length;if(i||o)return i==o;if(e[n++].result!=t[r++].result)return!1}}(r,this.active)?Xe.build(r,t,this.id,this.open,n):this.open&&e.docChanged?this.open.map(e.changes):this.open;!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new st(e.source,0):e)));for(let o of e.effects)o.is(ht)&&(i=i&&i.setSelected(o.value,this.id));return r==this.active&&i==this.open?this:new et(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:tt}}const tt={"aria-autocomplete":"list"};function nt(e,t){return{"aria-autocomplete":"list","aria-haspopup":"listbox","aria-activedescendant":e+"-"+t,"aria-controls":e}}const rt=[];function it(e,t){let n=t.match[0]-e.match[0];return n||e.completion.label.localeCompare(t.completion.label)}function ot(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class st{constructor(e,t,n=-1){this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=ot(e),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new st(r.source,0));for(let i of e.effects)if(i.is(lt))r=new st(r.source,1,i.value?ze(e.state):-1);else if(i.is(ct))r=new st(r.source,0);else if(i.is(ut))for(let e of i.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new st(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(ze(e.startState))?new st(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new st(this.source,this.state,e.mapPos(this.explicitPos))}}class at extends st{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=ze(e.state);if((this.explicitPos<0?s<=i:s<this.from)||s>o||"delete"==t&&ze(e.startState)==this.from)return new st(this.source,"input"==t&&n.activateOnTyping?1:0);let a,l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):Je(e,!0).test(i)}(this.result.validFor,e.state,i,o)?new at(this.source,l,this.result,i,o):this.result.update&&(a=this.result.update(this.result,i,o,new je(e.state,s,l>=0)))?new at(this.source,l,a,a.from,null!==(r=a.to)&&void 0!==r?r:ze(e.state)):new st(this.source,1,l)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new st(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new at(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const lt=i.Py.define(),ct=i.Py.define(),ut=i.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),ht=i.Py.define(),ft=i.QQ.define({create:()=>et.start(),update:(e,t)=>e.update(t),provide:e=>[r.hJ.from(e,(e=>e.tooltip)),r.tk.contentAttributes.from(e,(e=>e.attrs))]});function dt(e,t="option"){return n=>{let i=n.state.field(ft,!1);if(!i||!i.open||Date.now()-i.open.timestamp<75)return!1;let o,s=1;"page"==t&&(o=(0,r.gB)(n,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let a=i.open.selected+s*(e?1:-1),{length:l}=i.open.options;return a<0?a="page"==t?0:l-1:a>=l&&(a="page"==t?l-1:0),n.dispatch({effects:ht.of(a)}),!0}}class pt{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const mt=r.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(ft).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(ft);if(!e.selectionSet&&!e.docChanged&&e.startState.field(ft)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!ot(e)));for(let o=0;o<this.running.length;o++){let t=this.running[o];if(n||t.updates.length+e.transactions.length>50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(i){(0,r.OO)(this.view.state,i)}t.context.abortListeners=null,this.running.splice(o--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let r of e.transactions)"input"==ot(r)?this.composing=2:2==this.composing&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(ft);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=ze(t),i=new je(t,n,e.explicitPos==n),o=new pt(e,i);this.running.push(o),Promise.resolve(e.source(i)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:ct.of(null)}),(0,r.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),50))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Ke);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(void 0===i.done)continue;if(this.running.splice(r--,1),i.done){let r=new at(i.active.source,i.active.explicitPos,i.done,i.done.from,null!==(e=i.done.to)&&void 0!==e?e:ze(i.updates.length?i.updates[0].startState:this.view.state));for(let e of i.updates)r=r.update(e,n);if(r.hasResult()){t.push(r);continue}}let o=this.view.state.field(ft).active.find((e=>e.source==i.active.source));if(o&&1==o.state)if(null==i.done){let e=new st(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:ut.of(t)})}},{eventHandlers:{compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:lt.of(!1)})),20),this.composing=0}}}),gt=r.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",listStyle:"none",margin:0,padding:0,"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer",padding:"1px 3px",lineHeight:1.2}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"300px"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});const yt={brackets:["(","[","{","'",'"'],before:")]}:;>"},vt=i.Py.define({map(e,t){let n=t.mapPos(e,-1,i.gc.TrackAfter);return null==n?void 0:n}}),bt=i.Py.define({map:(e,t)=>t.mapPos(e)}),xt=new class extends i.uU{};xt.startSide=1,xt.endSide=-1;const wt=i.QQ.define({create:()=>i.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head).from,r=t.startState.doc.lineAt(t.startState.selection.main.head).from;n!=t.changes.mapPos(r,-1)&&(e=i.Xs.empty)}e=e.map(t.changes);for(let n of t.effects)n.is(vt)?e=e.update({add:[xt.range(n.value,n.value+1)]}):n.is(bt)&&(e=e.update({filter:e=>e!=n.value}));return e}});function kt(){return[Mt,wt]}const St="()[]{}<>";function Ct(e){for(let t=0;t<St.length;t+=2)if(St.charCodeAt(t)==e)return St.charAt(t+1);return(0,i.bg)(e<128?e:e+1)}function At(e,t){return e.languageDataAt("closeBrackets",t)[0]||yt}const Ot="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Mt=r.tk.inputHandler.of(((e,t,n,r)=>{if((Ot?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(r.length>2||2==r.length&&1==(0,i.nZ)((0,i.gm)(r,0))||t!=o.from||n!=o.to)return!1;let s=function(e,t){let n=At(e,e.selection.main.head),r=n.brackets||yt.brackets;for(let o of r){let s=Ct((0,i.gm)(o,0));if(t==o)return s==o?Et(e,o,r.indexOf(o+o+o)>-1):Pt(e,o,s,n.before||yt.before);if(t==s&&Tt(e,e.selection.main.from))return It(e,o,s)}return null}(e.state,r);return!!s&&(e.dispatch(s),!0)})),$t=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=At(e,e.selection.main.head).brackets||yt.brackets,r=null,o=e.changeByRange((t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return(0,i.nZ)((0,i.gm)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let o of n)if(o==r&&Rt(e.doc,t.head)==Ct((0,i.gm)(o,0)))return{changes:{from:t.head-o.length,to:t.head+o.length},range:i.jT.cursor(t.head-o.length),userEvent:"delete.backward"}}return{range:r=t}}));return r||t(e.update(o,{scrollIntoView:!0})),!r}}];function Tt(e,t){let n=!1;return e.field(wt).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function Rt(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,i.nZ)((0,i.gm)(n,0)))}function Pt(e,t,n,r){let o=null,s=e.changeByRange((s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:vt.of(s.to+t.length),range:i.jT.range(s.anchor+t.length,s.head+t.length)};let a=Rt(e.doc,s.head);return!a||/\s/.test(a)||r.indexOf(a)>-1?{changes:{insert:t+n,from:s.head},effects:vt.of(s.head+t.length),range:i.jT.cursor(s.head+t.length)}:{range:o=s}}));return o?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function It(e,t,n){let r=null,o=e.selection.ranges.map((t=>t.empty&&Rt(e.doc,t.head)==n?i.jT.cursor(t.head+n.length):r=t));return r?null:e.update({selection:i.jT.create(o,e.selection.mainIndex),scrollIntoView:!0,effects:e.selection.ranges.map((({from:e})=>bt.of(e)))})}function Et(e,t,n){let r=null,s=e.changeByRange((s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:t,from:s.to}],effects:vt.of(s.to+t.length),range:i.jT.range(s.anchor+t.length,s.head+t.length)};let a=s.head,l=Rt(e.doc,a);if(l==t){if(_t(e,a))return{changes:{insert:t+t,from:a},effects:vt.of(a+t.length),range:i.jT.cursor(a+t.length)};if(Tt(e,a)){let r=n&&e.sliceDoc(a,a+3*t.length)==t+t+t;return{range:i.jT.cursor(a+t.length*(r?3:1)),effects:bt.of(a)}}}else{if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&_t(e,a-2*t.length))return{changes:{insert:t+t+t+t,from:a},effects:vt.of(a+t.length),range:i.jT.cursor(a+t.length)};if(e.charCategorizer(a)(l)!=i.D0.Word){let n=e.sliceDoc(a-1,a);if(n!=t&&e.charCategorizer(a)(n)!=i.D0.Word&&!function(e,t,n){let r=(0,o.qz)(e).resolveInner(t,-1);for(let i=0;i<5;i++){if(e.sliceDoc(r.from,r.from+n.length)==n)return!0;let i=r.to==t&&r.parent;if(!i)break;r=i}return!1}(e,a,t))return{changes:{insert:t+t,from:a},effects:vt.of(a+t.length),range:i.jT.cursor(a+t.length)}}}return{range:r=s}}));return r?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function _t(e,t){let n=(0,o.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function Dt(e={}){return[ft,Ke.of(e),mt,Bt,gt]}const Zt=[{key:"Ctrl-Space",run:e=>!!e.state.field(ft,!1)&&(e.dispatch({effects:lt.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(ft,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:ct.of(null)}),!0)}},{key:"ArrowDown",run:dt(!0)},{key:"ArrowUp",run:dt(!1)},{key:"PageDown",run:dt(!0,"page")},{key:"PageUp",run:dt(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(ft,!1);return!(e.state.readOnly||!t||!t.open||Date.now()-t.open.timestamp<75)&&(We(e,t.open.options[t.open.selected]),!0)}}],Bt=i.Wl.highest(r.$f.computeN([Ke],(e=>e.facet(Ke).defaultKeymap?[Zt]:[])));var jt=n(39306);class Lt{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Nt{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=r.p.set(e.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?r.p.widget({widget:new en(e),diagnostic:e}).range(e.from):r.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to))),!0);return new Nt(i,t,Ft(i))}}function Ft(e,t=null,n=0){let r=null;return e.between(n,1e9,((e,n,{spec:i})=>{if(!t||i.diagnostic==t)return r=new Lt(e,n,i.diagnostic),!1})),r}function zt(e,t){return e.field(qt,!1)?t:t.concat(i.Py.appendConfig.of([qt,r.tk.decorations.compute([qt],(e=>{let{selected:t,panel:n}=e.field(qt);return t&&n&&t.from!=t.to?r.p.set([Ht.range(t.from,t.to)]):r.p.none})),(0,r.bF)(Vt),sn]))}const Jt=i.Py.define(),Ut=i.Py.define(),Wt=i.Py.define(),qt=i.QQ.define({create:()=>new Nt(r.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=Ft(n,e.selected.diagnostic,i)||Ft(n,null,i)}e=new Nt(n,e.panel,r)}for(let n of t.effects)n.is(Jt)?e=Nt.init(n.value,e.panel,t.state):n.is(Ut)?e=new Nt(e.diagnostics,n.value?nn.open:null,e.selected):n.is(Wt)&&(e=new Nt(e.diagnostics,e.panel,n.value));return e},provide:e=>[r.mH.from(e,(e=>e.panel)),r.tk.decorations.from(e,(e=>e.diagnostics))]});const Ht=r.p.mark({class:"cm-lintRange cm-lintRange-active"});function Vt(e,t,n){let{diagnostics:r}=e.state.field(qt),i=[],o=2e8,s=0;return r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,{spec:a})=>{t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t<r||n<0))&&(i.push(a.diagnostic),o=Math.min(e,o),s=Math.max(r,s))})),i.length?{pos:o,end:s,above:e.state.doc.lineAt(o).to<s,create:()=>({dom:Kt(e,i)})}:null}function Kt(e,t){return(0,jt.Z)("ul",{class:"cm-tooltip-lint"},t.map((t=>Xt(e,t,!1))))}const Gt=e=>{let t=e.state.field(qt,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Ut.of(!1)}),!0)},Yt=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(qt,!1);t&&t.panel||e.dispatch({effects:zt(e.state,[Ut.of(!0)])});let n=(0,r.Sd)(e,nn.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0}},{key:"F8",run:e=>{let t=e.state.field(qt,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}];function Qt(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;e<n.length;e++){let r=n[e];if(/[a-zA-Z]/.test(r)&&!t.some((e=>e.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function Xt(e,t,n){var r;let i=n?Qt(t.actions):[];return(0,jt.Z)("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},(0,jt.Z)("span",{class:"cm-diagnosticText"},t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=r=>{r.preventDefault();let i=Ft(e.state.field(qt).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:s}=n,a=i[r]?s.indexOf(i[r]):-1,l=a<0?s:[s.slice(0,a),(0,jt.Z)("u",s.slice(a,a+1)),s.slice(a+1)];return(0,jt.Z)("button",{type:"button",class:"cm-diagnosticAction",onclick:o,onmousedown:o,"aria-label":` Action: ${s}${a<0?"":` (access key "${i[r]})"`}.`},l)})),t.source&&(0,jt.Z)("div",{class:"cm-diagnosticSource"},t.source))}class en extends r.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return(0,jt.Z)("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class tn{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=Xt(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class nn{constructor(e){this.view=e,this.items=[];this.list=(0,jt.Z)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Gt(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=Qt(n.actions);for(let i=0;i<r.length;i++)if(r[i].toUpperCase().charCodeAt(0)==t.keyCode){let t=Ft(this.view.state.field(qt).diagnostics,n);t&&n.actions[i].apply(e,t.from,t.to)}}}t.preventDefault()},onclick:e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)}}),this.dom=(0,jt.Z)("div",{class:"cm-panel-lint"},this.list,(0,jt.Z)("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>Gt(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(qt).selected;if(!e)return-1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return-1}update(){let{diagnostics:e,selected:t}=this.view.state.field(qt),n=0,r=!1,i=null;for(e.between(0,this.view.state.doc.length,((e,o,{spec:s})=>{let a,l=-1;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==s.diagnostic){l=t;break}l<0?(a=new tn(this.view,s.diagnostic),this.items.splice(n,0,a),r=!0):(a=this.items[l],l>n&&(this.items.splice(n,l-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();0==this.items.length&&(this.items.push(new tn(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),i?(this.list.setAttribute("aria-activedescendant",i.id),this.view.requestMeasure({key:this,read:()=>({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{e.top<t.top?this.list.scrollTop-=t.top-e.top:e.bottom>t.bottom&&(this.list.scrollTop+=e.bottom-t.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=Ft(this.view.state.field(qt).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:Wt.of(t)})}static open(e){return new nn(e)}}function rn(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}function on(e){return rn(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const sn=r.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:on("#d11")},".cm-lintRange-warning":{backgroundImage:on("orange")},".cm-lintRange-info":{backgroundImage:on("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});r.SJ;const an=[(0,r.Eu)(),(0,r.HQ)(),(0,r.AE)(),b(),(0,o.mi)(),(0,r.Uw)(),(0,r.qr)(),i.yy.allowMultipleSelections.of(!0),(0,o.nY)(),(0,o.nF)(o.R_,{fallback:!0}),(0,o.n$)(),kt(),Dt(),(0,r.Zs)(),(0,r.S2)(),(0,r.ZO)(),(0,Be.sW)(),r.$f.of([...$t,...Ze,...Be.Lp,...D,...o.e7,...Zt,...Yt])]},59119:function(e,t,n){"use strict";n.d(t,{Gn:function(){return M},Hl:function(){return X},K0:function(){return O},Qf:function(){return oe},R_:function(){return fe},SS:function(){return A},Um:function(){return ke},c:function(){return S},e7:function(){return G},g_:function(){return K},mi:function(){return re},n$:function(){return xe},nF:function(){return ce},nY:function(){return D},qz:function(){return f},rs:function(){return Z},y1:function(){return C}});var r,i=n(41113),o=n(78120),s=n(47421),a=n(35524),l=n(28699);const c=new i.md;class u{constructor(e,t,n=[]){this.data=e,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return f(this)}}),this.parser=t,this.extension=[w.of(this),o.yy.languageData.of(((e,t,n)=>e.facet(h(e,t,n))))].concat(n)}isActiveAt(e,t,n=-1){return h(e,t,n)==this.data}findRegions(e){let t=e.facet(w);if((null===t||void 0===t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],r=(e,t)=>{if(e.prop(c)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.md.mounted);if(o){if(o.tree.prop(c)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let o=e.children[n];o instanceof i.mp&&r(o,e.positions[n]+t)}};return r(f(e),0),n}get allowsNesting(){return!0}}function h(e,t,n){let r=e.facet(w);if(!r)return null;let o=r.data;if(r.allowsNesting)for(let s=f(e).topNode;s;s=s.enter(t,n,i.vj.ExcludeBuffers))o=s.type.prop(c)||o;return o}u.setState=o.Py.define();function f(e){let t=e.field(u.state,!1);return t?t.tree:i.mp.empty}class d{constructor(e,t=e.length){this.doc=e,this.length=t,this.cursorPos=0,this.string="",this.cursor=e.iter()}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let p=null;class m{constructor(e,t,n=[],r,i,o,s,a){this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=s,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}startParse(){return this.parser.startParse(new d(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.mp.empty&&this.isDone(null!==t&&void 0!==t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext((()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let r=this.parse.advance();if(r){if(this.fragments=this.withoutTempSkipped(i.i9.addTree(r,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(n=this.parse.stoppedAt)&&void 0!==n?n:this.state.doc.length,this.tree=r,this.parse=null,!(this.treeLen<(null!==t&&void 0!==t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}}))}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext((()=>{for(;!(t=this.parse.advance()););})),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=p;p=this;try{return e()}finally{p=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=g(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:s,skipped:a}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges(((e,n,r,i)=>t.push({fromA:e,toA:n,fromB:r,toB:i}))),n=i.i9.applyChanges(n,t),r=i.mp.empty,o=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){a=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);n<r&&a.push({from:n,to:r})}}}return new m(this.parser,t,n,r,o,s,a,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let n=0;n<this.skipped.length;n++){let{from:t,to:r}=this.skipped[n];t<e.to&&r>e.from&&(this.fragments=g(this.fragments,t,r),this.skipped.splice(n--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends i._b{createParse(t,n,r){let o=r[0].from,s=r[r.length-1].to;return{parsedPos:o,advance(){let t=p;if(t){for(let e of r)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new i.mp(i.Jq.none,[],[],s-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return p}}function g(e,t,n){return i.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class y{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new y(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=new m(e.facet(w).parser,e,[],i.mp.empty,0,{from:0,to:t},[],null);return n.work(20,t)||n.takeTree(),new y(n)}}u.state=o.QQ.define({create:y.init,update(e,t){for(let n of t.effects)if(n.is(u.setState))return n.value;return t.startState.facet(w)!=t.state.facet(w)?y.init(t.state):e.apply(t)}});let v=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(v=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const b="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,x=s.lg.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(u.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),e.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(u.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=v(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:r}}=this.view,i=n.field(u.state);if(i.tree==i.context.tree&&i.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!b?Math.max(25,e.timeRemaining()-5):1e9),s=i.context.treeLen<r&&n.doc.length>r+1e3,a=i.context.work((()=>b&&b()||Date.now()>o),r+(s?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:u.setState.of(new y(i.context))})),this.chunkBudget>0&&(!a||s)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,s.OO)(this.view.state,e))).then((()=>this.workScheduled--)),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=o.r$.define({combine:e=>e.length?e[0]:null,enables:[u.state,x]});const k=o.r$.define(),S=o.r$.define({combine:e=>{if(!e.length)return"  ";if(!/^(?: +|\t+)$/.test(e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return e[0]}});function C(e){let t=e.facet(S);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function A(e,t){let n="",r=e.tabSize;if(9==e.facet(S).charCodeAt(0))for(;t>=r;)n+="\t",t-=r;for(let i=0;i<t;i++)n+=" ";return n}function O(e,t){e instanceof o.yy&&(e=new M(e));for(let r of e.state.facet(k)){let n=r(e,t);if(null!=n)return n}let n=f(e.state);return n?function(e,t,n){return R(t.resolveInner(n).enterUnfinishedNodesBefore(n),n,e)}(e,n,t):null}class M{constructor(e,t={}){this.state=e,this.options=t,this.unit=C(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r<e:r<=e)?{text:n.text.slice(r-n.from),from:r}:{text:n.text.slice(0,r-n.from),from:n.from}:n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e,t=e.length){return(0,o.IS)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const $=new i.md;function T(e){let t=e.type.prop($);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.md.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>_(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?P:null}function R(e,t,n){for(;e;e=e.parent){let r=T(e);if(r)return r(new I(n,t,e))}return null}function P(){return 0}class I extends M{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.node=n}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){let e=this.state.doc.lineAt(this.node.from);for(;;){let t=this.node.resolve(e.from);for(;t.parent&&t.parent.from==t.from;)t=t.parent;if(E(t,this.node))break;e=this.state.doc.lineAt(t.from)}return this.lineIndent(e.from)}continue(){let e=this.node.parent;return e?R(e,this.pos,this.base):0}}function E(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function _(e,t,n,r,i){let o=e.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==e.pos+s,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let a=n.to;;){let e=t.childAfter(a);if(!e||e==r)return null;if(!e.type.isSkipped)return e.from<s?n:null;a=e.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*n)}function D(){return o.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+200)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:s}=e,a=-1,l=[];for(let{head:c}of s.selection.ranges){let e=s.doc.lineAt(c);if(e.from==a)continue;a=e.from;let t=O(s,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],r=A(s,t);n!=r&&l.push({from:e.from,to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const Z=o.r$.define(),B=new i.md;function j(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function L(e,t,n){for(let r of e.facet(Z)){let i=r(e,t,n);if(i)return i}return function(e,t,n){let r=f(e);if(r.length<n)return null;let i=null;for(let o=r.resolveInner(n);o;o=o.parent){if(o.to<=n||o.from>n)continue;if(i&&o.from<t)break;let s=o.type.prop(B);if(s&&(o.to<r.length-50||r.length==e.doc.length||!j(o))){let r=s(o,e);r&&r.from<=n&&r.from>=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function N(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const F=o.Py.define({map:N}),z=o.Py.define({map:N});function J(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const U=o.QQ.define({create:()=>s.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(F)&&!q(e,n.value.from,n.value.to)?e=e.update({add:[ee.range(n.value.from,n.value.to)]}):n.is(z)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{e<r&&t>r&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>s.tk.decorations.from(e)});function W(e,t,n){var r;let i=null;return null===(r=e.field(U,!1))||void 0===r||r.between(t,n,((e,t)=>{(!i||i.from>e)&&(i={from:e,to:t})})),i}function q(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function H(e,t){return e.field(U,!1)?t:t.concat(o.Py.appendConfig.of(X()))}function V(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return s.tk.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const K=e=>{let{state:t}=e,n=[];for(let r=0;r<t.doc.length;){let i=e.lineBlockAt(r),o=L(t,i.from,i.to);o&&n.push(F.of(o)),r=(o?e.lineBlockAt(o.to):i).to+1}return n.length&&e.dispatch({effects:H(e.state,n)}),!!n.length},G=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of J(e)){let n=L(e.state,t.from,t.to);if(n)return e.dispatch({effects:H(e.state,[F.of(n),V(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(U,!1))return!1;let t=[];for(let n of J(e)){let r=W(e.state,n.from,n.to);r&&t.push(z.of(r),V(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:K},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(U,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(z.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],Y={placeholderDOM:null,placeholderText:"\u2026"},Q=o.r$.define({combine:e=>(0,o.BO)(e,Y)});function X(e){let t=[U,ie];return e&&t.push(Q.of(e)),t}const ee=s.p.replace({widget:new class extends s.l9{toDOM(e){let{state:t}=e,n=t.facet(Q),r=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=W(e.state,n.from,n.to);r&&e.dispatch({effects:z.of(r)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r);let i=document.createElement("span");return i.textContent=n.placeholderText,i.setAttribute("aria-label",t.phrase("folded code")),i.title=t.phrase("unfold"),i.className="cm-foldPlaceholder",i.onclick=r,i}}}),te={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{}};class ne extends s.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let 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}}function re(e={}){let t=Object.assign(Object.assign({},te),e),n=new ne(t,!0),r=new ne(t,!1),i=s.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(w)!=e.state.facet(w)||e.startState.field(U,!1)!=e.state.field(U,!1)||f(e.startState)!=f(e.state))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.f_;for(let i of e.viewportLineBlocks){let o=W(e.state,i.from,i.to)?r:L(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:a}=t;return[i,(0,s.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||o.Xs.empty},initialSpacer:()=>new ne(t,!1),domEventHandlers:Object.assign(Object.assign({},a),{click:(e,t,n)=>{if(a.click&&a.click(e,t,n))return!0;let r=W(e.state,t.from,t.to);if(r)return e.dispatch({effects:z.of(r)}),!0;let i=L(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:F.of(i)}),!0)}})}),X()]}const ie=s.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class oe{constructor(e,t){let n;function r(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}const i=t.scope;this.scope=i instanceof u?e=>e.prop(c)==i.data:i?e=>e==i:void 0,this.style=(0,a.QR)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:"string"==typeof t.all?t.all:t.all?r(t.all):void 0}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new oe(e,t||{})}}const se=o.r$.define(),ae=o.r$.define({combine:e=>e.length?[e[0]]:null});function le(e){let t=e.facet(se);return t.length?t:e.facet(ae)}function ce(e,t){let n,r=[he];return e instanceof oe&&(e.module&&r.push(s.tk.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?r.push(ae.of(e)):n?r.push(se.computeN([s.tk.darkTheme],(t=>t.facet(s.tk.darkTheme)==("dark"==n)?[e]:[]))):r.push(se.of(e)),r}class ue{constructor(e){this.markCache=Object.create(null),this.tree=f(e.state),this.decorations=this.buildDeco(e,le(e.state))}update(e){let t=f(e.state),n=le(e.state),r=n!=le(e.startState);t.length<e.view.viewport.to&&!r&&t.type==this.tree.type?this.decorations=this.decorations.map(e.changes):(t!=this.tree||e.viewportChanged||r)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n))}buildDeco(e,t){if(!t||!this.tree.length)return s.p.none;let n=new o.f_;for(let{from:r,to:i}of e.visibleRanges)(0,a.bW)(this.tree,t,((e,t,r)=>{n.add(e,t,this.markCache[r]||(this.markCache[r]=s.p.mark({class:r})))}),r,i);return n.finish()}}const he=o.Wl.high(s.lg.fromClass(ue,{decorations:e=>e.decorations})),fe=oe.define([{tag:a.pJ.meta,color:"#7a757a"},{tag:a.pJ.link,textDecoration:"underline"},{tag:a.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:a.pJ.emphasis,fontStyle:"italic"},{tag:a.pJ.strong,fontWeight:"bold"},{tag:a.pJ.strikethrough,textDecoration:"line-through"},{tag:a.pJ.keyword,color:"#708"},{tag:[a.pJ.atom,a.pJ.bool,a.pJ.url,a.pJ.contentSeparator,a.pJ.labelName],color:"#219"},{tag:[a.pJ.literal,a.pJ.inserted],color:"#164"},{tag:[a.pJ.string,a.pJ.deleted],color:"#a11"},{tag:[a.pJ.regexp,a.pJ.escape,a.pJ.special(a.pJ.string)],color:"#e40"},{tag:a.pJ.definition(a.pJ.variableName),color:"#00f"},{tag:a.pJ.local(a.pJ.variableName),color:"#30a"},{tag:[a.pJ.typeName,a.pJ.namespace],color:"#085"},{tag:a.pJ.className,color:"#167"},{tag:[a.pJ.special(a.pJ.variableName),a.pJ.macroName],color:"#256"},{tag:a.pJ.definition(a.pJ.propertyName),color:"#00c"},{tag:a.pJ.comment,color:"#940"},{tag:a.pJ.invalid,color:"#f00"}]),de=s.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),pe="()[]{}",me=o.r$.define({combine:e=>(0,o.BO)(e,{afterCursor:!0,brackets:pe,maxScanDistance:1e4,renderMatch:ve})}),ge=s.p.mark({class:"cm-matchingBracket"}),ye=s.p.mark({class:"cm-nonmatchingBracket"});function ve(e){let t=[],n=e.matched?ge:ye;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const be=[o.QQ.define({create:()=>s.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(me);for(let i of t.state.selection.ranges){if(!i.empty)continue;let e=ke(t.state,i.head,-1,r)||i.head>0&&ke(t.state,i.head-1,1,r)||r.afterCursor&&(ke(t.state,i.head,1,r)||i.head<t.state.doc.length&&ke(t.state,i.head+1,-1,r));e&&(n=n.concat(r.renderMatch(e,t.state)))}return s.p.set(n,!0)},provide:e=>s.tk.decorations.from(e)}),de];function xe(e={}){return[me.of(e),be]}function we(e,t,n){let r=e.prop(t<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function ke(e,t,n,r={}){let i=r.maxScanDistance||1e4,o=r.brackets||pe,s=f(e),a=s.resolveInner(t,n);for(let l=a;l;l=l.parent){let r=we(l.type,n,o);if(r&&l.from<l.to)return Se(e,t,n,l,r,o)}return function(e,t,n,r,i,o,s){let a=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=s.indexOf(a);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),h=0;for(let f=0;!u.next().done&&f<=o;){let e=u.value;n<0&&(f+=e.length);let o=t+f*n;for(let t=n>0?0:e.length-1,a=n>0?e.length:-1;t!=a;t+=n){let a=s.indexOf(e[t]);if(!(a<0||r.resolve(o+t,1).type!=i))if(a%2==0==n>0)h++;else{if(1==h)return{start:c,end:{from:o+t,to:o+t+1},matched:a>>1==l>>1};h--}}n>0&&(f+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,s,a.type,i,o)}function Se(e,t,n,r,i,o){let s=r.parent,a={from:r.from,to:r.to},l=0,c=null===s||void 0===s?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do{if(n<0?c.to<=r.from:c.from>=r.to){if(0==l&&i.indexOf(c.type.name)>-1&&c.from<c.to)return{start:a,end:{from:c.from,to:c.to},matched:!0};if(we(c.type,n,o))l++;else if(we(c.type,-n,o)&&(l--,0==l))return{start:a,end:c.from==c.to?void 0:{from:c.from,to:c.to},matched:!1}}}while(n<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}const Ce=Object.create(null),Ae=[i.Jq.none],Oe=[],Me=Object.create(null);for(let[Re,Pe]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Me[Re]=Te(Ce,Pe);function $e(e,t){Oe.indexOf(e)>-1||(Oe.push(e),console.warn(t))}function Te(e,t){let n=null;for(let i of t.split(".")){let t=e[i]||a.pJ[i];t?"function"==typeof t?n?n=t(n):$e(i,`Modifier ${i} used at start of tag`):n?$e(i,`Tag ${i} used as modifier`):n=t:$e(i,`Unknown highlighting tag ${i}`)}if(!n)return 0;let r=t.replace(/ /g,"_"),o=i.Jq.define({id:Ae.length,name:r,props:[(0,a.Gv)({[r]:n})]});return Ae.push(o),o.id}},49892:function(e,t,n){"use strict";n.d(t,{Lp:function(){return Y},sW:function(){return x},yC:function(){return M}});var r=n(47421),i=n(78120),o=n(39306);const s="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class a{constructor(e,t,n=0,r=e.length,i){this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(s(e)):s,this.query=this.normalize(t)}peek(){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(0,i.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,i.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,i.nZ)(e);let r=this.normalize(t);for(let i=0,o=n;;i++){let e=r.charCodeAt(i),s=this.match(e,o);if(s)return this.value=s,this;if(i==r.length-1)break;o==n&&i<t.length&&t.charCodeAt(i)==e&&o++}}}match(e,t){let n=null;for(let r=0;r<this.matches.length;r+=2){let i=this.matches[r],o=!1;this.query.charCodeAt(i)==e&&(i==this.query.length-1?n={from:this.matches[r+1],to:t+1}:(this.matches[r]++,o=!0)),o||(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}}"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this});const l={from:-1,to:-1,match:/.*/.exec("")},c="gm"+(null==/x/.unicode?"":"u");class u{constructor(e,t,n,r=0,i=e.length){if(this.to=i,this.curLine="",this.done=!1,this.value=l,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new d(e,t,n,r,i);this.re=new RegExp(t,c+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=r,this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=r+(n==r?1:0),n==this.curLine.length&&this.nextLine(),n<r||n>this.value.to)return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const h=new WeakMap;class f{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let r=h.get(e);if(!r||r.from>=n||r.to<=t){let r=new f(t,e.sliceString(t,n));return h.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to<n&&(i+=e.sliceString(r.to,n)),h.set(e,new f(o,i)),new f(t,i.slice(t-o,n-o))}}class d{constructor(e,t,n,r,i){this.text=e,this.to=i,this.done=!1,this.value=l,this.matchPos=r,this.re=new RegExp(t,c+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.flat=f.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t&&this.flat.to<this.to&&t.index+t[0].length>this.flat.text.length-10&&(t=null),t){let e=this.flat.from+t.index,n=e+t[0].length;return this.value={from:e,to:n,match:t},this.matchPos=n+(e==n?1:0),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=f.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function p(e){let t=(0,o.Z)("input",{class:"cm-textfield",name:"line"});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,o=r.doc.lineAt(r.selection.main.head),[,s,a,l,c]=n,u=l?+l.slice(1):0,h=a?+a:o.number;if(a&&c){let e=h/100;s&&(e=e*("-"==s?-1:1)+o.number/r.doc.lines),h=Math.round(r.doc.lines*e)}else a&&s&&(h=h*("-"==s?-1:1)+o.number);let f=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));e.dispatch({effects:m.of(!1),selection:i.jT.cursor(f.from+Math.max(0,Math.min(u,f.length))),scrollIntoView:!0}),e.focus()}return{dom:(0,o.Z)("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:m.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},(0,o.Z)("label",e.state.phrase("Go to line"),": ",t)," ",(0,o.Z)("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(u.prototype[Symbol.iterator]=d.prototype[Symbol.iterator]=function(){return this});const m=i.Py.define(),g=i.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(m)&&(e=n.value);return e},provide:e=>r.mH.from(e,(e=>e?p:null))}),y=r.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),v={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},b=i.r$.define({combine:e=>(0,i.BO)(e,v,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function x(e){let t=[A,C];return e&&t.push(b.of(e)),t}const w=r.p.mark({class:"cm-selectionMatch"}),k=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function S(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=i.D0.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=i.D0.Word)}const C=r.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(b),{state:n}=e,o=n.selection;if(o.ranges.length>1)return r.p.none;let s,l=o.main,c=null;if(l.empty){if(!t.highlightWordAroundCursor)return r.p.none;let e=n.wordAt(l.head);if(!e)return r.p.none;c=n.charCategorizer(l.head),s=n.sliceDoc(e.from,e.to)}else{let e=l.to-l.from;if(e<t.minSelectionLength||e>200)return r.p.none;if(t.wholeWords){if(s=n.sliceDoc(l.from,l.to),c=n.charCategorizer(l.head),!S(c,n,l.from,l.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==i.D0.Word&&e(t.sliceDoc(r-1,r))==i.D0.Word}(c,n,l.from,l.to))return r.p.none}else if(s=n.sliceDoc(l.from,l.to).trim(),!s)return r.p.none}let u=[];for(let i of e.visibleRanges){let e=new a(n.doc,s,i.from,i.to);for(;!e.next().done;){let{from:i,to:o}=e.value;if((!c||S(c,n,i,o))&&(l.empty&&i<=l.from&&o>=l.to?u.push(k.range(i,o)):(i>=l.to||o<=l.from)&&u.push(w.range(i,o)),u.length>t.maxMatches))return r.p.none}}return r.p.set(u)}},{decorations:e=>e.decorations}),A=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const O=i.r$.define({combine(e){var t;return{top:e.reduce(((e,t)=>null!==e&&void 0!==e?e:t.top),void 0)||!1,caseSensitive:e.reduce(((e,t)=>null!==e&&void 0!==e?e:t.caseSensitive),void 0)||!1,createPanel:(null===(t=e.find((e=>e.createPanel)))||void 0===t?void 0:t.createPanel)||(e=>new Q(e))}}});function M(e){return e?[O.of(e),re]:re}class ${constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,c),!0}catch(t){return!1}}(this.search)),this.unquoted=this.search.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp}create(){return this.regexp?new E(this):new P(this)}getCursor(e,t=0,n=e.length){return this.regexp?I(this,e,t,n):R(this,e,t,n)}}class T{constructor(e){this.spec=e}}function R(e,t,n,r){return new a(t,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase())}class P extends T{constructor(e){super(e)}nextMatch(e,t,n){let r=R(this.spec,e,n,e.length).nextOverlapping();return r.done&&(r=R(this.spec,e,0,t).nextOverlapping()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=n;;){let n=Math.max(t,r-1e4-this.spec.unquoted.length),i=R(this.spec,e,n,r),o=null;for(;!i.nextOverlapping().done;)o=i.value;if(o)return o;if(n==t)return null;r-=1e4}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.length)}getReplacement(e){return this.spec.replace}matchAll(e,t){let n=R(this.spec,e,0,e.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=R(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function I(e,t,n,r){return new u(t,e.search,e.caseSensitive?void 0:{ignoreCase:!0},n,r)}class E extends T{nextMatch(e,t,n){let r=I(this.spec,e,n,e.length).next();return r.done&&(r=I(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=I(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.length)}getReplacement(e){return this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n<e.match.length?e.match[n]:t))}matchAll(e,t){let n=I(this.spec,e,0,e.length),r=[];for(;!n.next().done;){if(r.length>=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=I(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const _=i.Py.define(),D=i.Py.define(),Z=i.QQ.define({create:e=>new B(V(e).create(),null),update(e,t){for(let n of t.effects)n.is(_)?e=new B(n.value.create(),e.panel):n.is(D)&&(e=new B(e.query,n.value?H:null));return e},provide:e=>r.mH.from(e,(e=>e.panel))});class B{constructor(e,t){this.query=e,this.panel=t}}const j=r.p.mark({class:"cm-searchMatch"}),L=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),N=r.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Z))}update(e){let t=e.state.field(Z);(t!=e.startState.field(Z)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.p.none;let{view:n}=this,o=new i.f_;for(let r=0,i=n.visibleRanges,s=i.length;r<s;r++){let{from:t,to:a}=i[r];for(;r<s-1&&a>i[r+1].from-500;)a=i[++r].to;e.highlight(n.state.doc,t,a,((e,t)=>{let r=n.state.selection.ranges.some((n=>n.from==e&&n.to==t));o.add(e,t,r?L:j)}))}return o.finish()}},{decorations:e=>e.decorations});function F(e){return t=>{let n=t.state.field(Z,!1);return n&&n.query.spec.valid?e(t,n):K(t)}}const z=F(((e,{query:t})=>{let{from:n,to:r}=e.state.selection.main,i=t.nextMatch(e.state.doc,n,r);return!(!i||i.from==n&&i.to==r)&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:te(e,i),userEvent:"select.search"}),!0)})),J=F(((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main,o=t.prevMatch(n.doc,r,i);return!!o&&(e.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:te(e,o),userEvent:"select.search"}),!0)})),U=F(((e,{query:t})=>{let n=t.matchAll(e.state.doc,1e3);return!(!n||!n.length)&&(e.dispatch({selection:i.jT.create(n.map((e=>i.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),W=F(((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=t.nextMatch(n.doc,r,r);if(!o)return!1;let s,a,l=[];if(o.from==r&&o.to==i&&(a=n.toText(t.getReplacement(o)),l.push({from:o.from,to:o.to,insert:a}),o=t.nextMatch(n.doc,o.from,o.to)),o){let e=0==l.length||l[0].from>=o.to?0:o.to-o.from-a.length;s={anchor:o.from-e,head:o.to-e}}return e.dispatch({changes:l,selection:s,scrollIntoView:!!s,effects:o?te(e,o):void 0,userEvent:"input.replace"}),!0})),q=F(((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state.doc,1e9).map((e=>{let{from:n,to:r}=e;return{from:n,to:r,insert:t.getReplacement(e)}}));return!!n.length&&(e.dispatch({changes:n,userEvent:"input.replace.all"}),!0)}));function H(e){return e.state.facet(O).createPanel(e)}function V(e,t){var n;let r=e.selection.main,i=r.empty||r.to>r.from+100?"":e.sliceDoc(r.from,r.to),o=null!==(n=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==n?n:e.facet(O).caseSensitive;return t&&!i?t:new $({search:i.replace(/\n/g,"\\n"),caseSensitive:o})}const K=e=>{let t=e.state.field(Z,!1);if(t&&t.panel){let n=(0,r.Sd)(e,H);if(!n)return!1;let i=n.dom.querySelector("[name=search]");if(i!=e.root.activeElement){let n=V(e.state,t.query.spec);n.valid&&e.dispatch({effects:_.of(n)}),i.focus(),i.select()}}else e.dispatch({effects:[D.of(!0),t?_.of(V(e.state,t.query.spec)):i.Py.appendConfig.of(re)]});return!0},G=e=>{let t=e.state.field(Z,!1);if(!t||!t.panel)return!1;let n=(0,r.Sd)(e,H);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:D.of(!1)}),!0},Y=[{key:"Mod-f",run:K,scope:"editor search-panel"},{key:"F3",run:z,shift:J,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:z,shift:J,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:G,scope:"editor search-panel"},{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:o}=n.main,s=[],l=0;for(let c=new a(e.doc,e.sliceDoc(r,o));!c.next().done;){if(s.length>1e3)return!1;c.value.from==r&&(l=s.length),s.push(i.jT.range(c.value.from,c.value.to))}return t(e.update({selection:i.jT.create(s,l),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,r.Sd)(e,p);if(!t){let n=[m.of(!0)];null==e.state.field(g,!1)&&n.push(i.Py.appendConfig.of([g,y])),e.dispatch({effects:n}),t=(0,r.Sd)(e,p)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some((e=>e.from===e.to)))return(({state:e,dispatch:t})=>{let{selection:n}=e,r=i.jT.create(n.ranges.map((t=>e.wordAt(t.head)||i.jT.cursor(t.head))),n.mainIndex);return!r.eq(n)&&(t(e.update({selection:r})),!0)})({state:e,dispatch:t});let o=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=o)))return!1;let s=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let s=!1,l=new a(e.doc,t,r[r.length-1].to);;){if(l.next(),!l.done){if(s&&r.some((e=>e.from==l.value.from)))continue;if(o){let t=e.wordAt(l.value.from);if(!t||t.from!=l.value.from||t.to!=l.value.to)continue}return l.value}if(s)return null;l=new a(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}}(e,o);return!!s&&(t(e.update({selection:e.selection.addRange(i.jT.range(s.from,s.to),!1),effects:r.tk.scrollIntoView(s.to)})),!0)},preventDefault:!0}];class Q{constructor(e){this.view=e;let t=this.query=e.state.field(Z).query.spec;function n(e,t,n){return(0,o.Z)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,o.Z)("input",{value:t.search,placeholder:X(e,"Find"),"aria-label":X(e,"Find"),class:"cm-textfield",name:"search",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,o.Z)("input",{value:t.replace,placeholder:X(e,"Replace"),"aria-label":X(e,"Replace"),class:"cm-textfield",name:"replace",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,o.Z)("input",{type:"checkbox",name:"case",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,o.Z)("input",{type:"checkbox",name:"re",checked:t.regexp,onchange:this.commit}),this.dom=(0,o.Z)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>z(e)),[X(e,"next")]),n("prev",(()=>J(e)),[X(e,"previous")]),n("select",(()=>U(e)),[X(e,"all")]),(0,o.Z)("label",null,[this.caseField,X(e,"match case")]),(0,o.Z)("label",null,[this.reField,X(e,"regexp")]),...e.state.readOnly?[]:[(0,o.Z)("br"),this.replaceField,n("replace",(()=>W(e)),[X(e,"replace")]),n("replaceAll",(()=>q(e)),[X(e,"replace all")]),(0,o.Z)("button",{name:"close",onclick:()=>G(e),"aria-label":X(e,"close"),type:"button"},["\xd7"])]])}commit(){let e=new $({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:_.of(e)}))}keydown(e){(0,r.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?J:z)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),W(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(_)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(O).top}}function X(e,t){return e.state.phrase(t)}const ee=/[\s\.,:;?!]/;function te(e,{from:t,to:n}){let i=e.state.doc.lineAt(t).from,o=e.state.doc.lineAt(n).to,s=Math.max(i,t-30),a=Math.min(o,n+30),l=e.state.sliceDoc(s,a);if(s!=i)for(let r=0;r<30;r++)if(!ee.test(l[r+1])&&ee.test(l[r])){l=l.slice(r);break}if(a!=o)for(let r=l.length-1;r>l.length-30;r--)if(!ee.test(l[r-1])&&ee.test(l[r])){l=l.slice(0,r);break}return r.tk.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${e.state.doc.lineAt(t).number}`)}const ne=r.tk.baseTheme({".cm-panel.cm-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, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),re=[Z,i.Wl.lowest(N),ne]},78120:function(e,t,n){"use strict";n.d(t,{BO:function(){return Me},D0:function(){return ke},Gz:function(){return We},IS:function(){return Ue},Py:function(){return pe},QQ:function(){return W},Wl:function(){return Y},Xs:function(){return Ie},YW:function(){return me},as:function(){return O},bg:function(){return w},cp:function(){return m},f_:function(){return Ee},gc:function(){return C},gm:function(){return x},jT:function(){return _},n0:function(){return A},nZ:function(){return k},q6:function(){return he},r$:function(){return j},uU:function(){return $e},xv:function(){return r},yy:function(){return Oe}});class r{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let o=t,s=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(s+=r.value.length,r.done||s>=n)return!0}}iter(e=1){return new l(this,e)}iterRange(e,t=this.length){return new c(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new u(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],s=r+o.length;if((t?n:s)>=e)return new h(r,s,n,o);r=s+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(a(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=s(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);let r=s(this.text,s(n.text,a(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<=t&&o<this.text.length;o++){let s=this.text[o],a=i+s.length;i>e&&o&&(r+=n),e<a&&t>i&&(r+=s.slice(Math.max(0,e-i),t-i)),i=a+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],s=r+o.length,a=n+o.lines-1;if((t?a:s)>=e)return o.lineInner(e,t,n,r);r=s+1,n=a+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i<this.children.length;i++){let s=this.children[i],a=o+s.length;if(e<=a&&t>=o){let i=r&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!i?n.push(s):s.decompose(e-o,t-o,n,i)}o=a+1}}replace(e,t,n){if(n.lines<this.lines)for(let r=0,i=0;r<this.children.length;r++){let s=this.children[r],a=i+s.length;if(e>=i&&t<=a){let l=s.replace(e-i,t-i,n),c=this.lines-s.lines+l.lines;if(l.lines<c>>4&&l.lines>c>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,a,l)}i=a+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){let r="";for(let i=0,o=0;i<this.children.length&&o<=t;i++){let s=this.children[i],a=o+s.length;o>e&&i&&(r+=n),e<a&&t>o&&(r+=s.sliceString(e-o,t-o,n)),o=a+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,s,a]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==s||i==a)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e,t=e.reduce(((e,t)=>e+t.length+1),-1)){let n=0;for(let i of e)n+=i.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),s=r<<1,a=r>>1,l=[],c=0,u=-1,h=[];function f(e){let t;if(e.lines>s&&e instanceof o)for(let n of e.children)f(n);else e.lines>a&&(c>a||!c)?(d(),l.push(e)):e instanceof i&&c&&(t=h[h.length-1])instanceof i&&e.lines+t.lines<=32?(c+=e.lines,u+=e.length+1,h[h.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(c+e.lines>r&&d(),c+=e.lines,u+=e.length+1,h.push(e))}function d(){0!=c&&(l.push(1==h.length?h[0]:o.from(h,u)),u=-1,c=h.length=0)}for(let i of e)f(i);return d(),1==l.length?l[0]:new o(l,t)}}function s(e,t,n=0,r=1e9){for(let i=0,o=0,s=!0;o<e.length&&i<=r;o++){let a=e[o],l=i+a.length;l>=n&&(l>r&&(a=a.slice(0,r-i)),i<n&&(a=a.slice(n-i)),s?(t[t.length-1]+=a,s=!1):t.push(a)),i=l+1}return t}function a(e,t,n){return s(e,[""],t,n)}r.empty=new i([""],0);class l{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],s=o>>1,a=r instanceof i?r.text.length:r.children.length;if(s==(t>0?a:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[s+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class c{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class u{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=function(){return this});class h{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let f="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((e=>e?parseInt(e,36):1));for(let He=1;He<f.length;He++)f[He]+=f[He-1];function d(e){for(let t=1;t<f.length;t+=2)if(f[t]>e)return f[t-1]<=e;return!1}function p(e){return e>=127462&&e<=127487}function m(e,t,n=!0,r=!0){return(n?g:y)(e,t,r)}function g(e,t,n){if(t==e.length)return t;t&&v(e.charCodeAt(t))&&b(e.charCodeAt(t-1))&&t--;let r=x(e,t);for(t+=k(r);t<e.length;){let i=x(e,t);if(8205==r||8205==i||n&&d(i))t+=k(i),r=i;else{if(!p(i))break;{let n=0,r=t-2;for(;r>=0&&p(x(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function y(e,t,n){for(;t>0;){let r=g(e,t-2,n);if(r<t)return r;t--}return 0}function v(e){return e>=56320&&e<57344}function b(e){return e>=55296&&e<56320}function x(e,t){let n=e.charCodeAt(t);if(!b(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return v(r)?r-56320+(n-55296<<10)+65536:n}function w(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function k(e){return e<65536?1:2}const S=/\r\n?|\n/;var C=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(C||(C={}));class A{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,r=0;t<this.sections.length;){let i=this.sections[t++],o=this.sections[t++];o<0?(e(n,r,i),r+=i):r+=o,n+=i}}iterChangedRanges(e,t=!1){T(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];r<0?e.push(n,r):e.push(r,n)}return new A(e)}composeDesc(e){return this.empty?e:e.empty?this:P(this,e)}mapDesc(e,t=!1){return e.empty?this:R(this,e,t)}mapPos(e,t=-1,n=C.Simple){let r=0,i=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],a=this.sections[o++],l=r+s;if(a<0){if(l>e)return i+(e-r);i+=s}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 null;if(l>e||l==e&&t<0&&!s)return e==r||t<0?i:i+a;i+=a}r=l}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return i}touchesRange(e,t=e){for(let n=0,r=0;n<this.sections.length&&r<=t;){let i=r+this.sections[n++];if(this.sections[n++]>=0&&r<=t&&i>=e)return!(r<e&&i>t)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],r=this.sections[t++];e+=(e?" ":"")+n+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new A(e)}}class O extends A{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return T(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e,t=!1){return R(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i<t.length;i+=2){let s=t[i],a=t[i+1];if(a>=0){t[i]=a,t[i+1]=s;let l=i>>1;for(;n.length<l;)n.push(r.empty);n.push(s?e.slice(o,o+s):r.empty)}o+=s}return new O(t,n)}compose(e){return this.empty?e:e.empty?this:P(this,e,!0)}map(e,t=!1){return e.empty?this:R(this,e,t,!0)}iterChanges(e,t=!1){T(this,e,t)}get desc(){return new A(this.sections)}filter(e){let t=[],n=[],r=[],i=new I(this);e:for(let o=0,s=0;;){let a=o==e.length?1e9:e[o++];for(;s<a||s==a&&0==i.len;){if(i.done)break e;let e=Math.min(i.len,a-s);M(r,e,-1);let o=-1==i.ins?-1:0==i.off?i.ins:0;M(t,e,o),o>0&&$(n,t,i.text),i.forward(e),s+=e}let l=e[o++];for(;s<l;){if(i.done)break e;let e=Math.min(i.len,l-s);M(t,e,-1),M(r,e,-1==i.ins?-1:0==i.off?i.ins:0),i.forward(e),s+=e}}return{changes:new O(t,n),filtered:new A(r)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],r=this.sections[t+1];r<0?e.push(n):0==r?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],s=0,a=null;function l(e=!1){if(!e&&!i.length)return;s<t&&M(i,t-s,-1);let n=new O(i,o);a=a?a.compose(n.map(a)):n,i=[],o=[],s=0}return function e(c){if(Array.isArray(c))for(let t of c)e(t);else if(c instanceof O){if(c.length!=t)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${t})`);l(),a=a?a.compose(c.map(a)):c}else{let{from:e,to:a=e,insert:u}=c;if(e>a||e<0||a>t)throw new RangeError(`Invalid change range ${e} to ${a} (in doc of length ${t})`);let h=u?"string"==typeof u?r.of(u.split(n||S)):u:r.empty,f=h.length;if(e==a&&0==f)return;e<s&&l(),e>s&&M(i,e-s,-1),M(i,a-e,f),$(o,i,h),s=a}}(e),l(!a),a}static empty(e){return new O(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let o=e[i];if("number"==typeof o)t.push(o,-1);else{if(!Array.isArray(o)||"number"!=typeof o[0]||o.some(((e,t)=>t&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length<i;)n.push(r.empty);n[i]=r.of(o.slice(1)),t.push(o[0],n[i].length)}}}return new O(t,n)}}function M(e,t,n,r=!1){if(0==t&&n<=0)return;let 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 $(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(r.empty);e.push(n)}}function T(e,t,n){let i=e.inserted;for(let o=0,s=0,a=0;a<e.sections.length;){let l=e.sections[a++],c=e.sections[a++];if(c<0)o+=l,s+=l;else{let u=o,h=s,f=r.empty;for(;u+=l,h+=c,c&&i&&(f=f.append(i[a-2>>1])),!(n||a==e.sections.length||e.sections[a+1]<0);)l=e.sections[a++],c=e.sections[a++];t(o,u,s,h,f),o=u,s=h}}}function R(e,t,n,r=!1){let i=[],o=r?[]:null,s=new I(e),a=new I(t);for(let l=0,c=0;;)if(-1==s.ins)l+=s.len,s.next();else if(-1==a.ins&&c<l){let e=Math.min(a.len,l-c);a.forward(e),M(i,e,-1),c+=e}else if(a.ins>=0&&(s.done||c<l||c==l&&(a.len<s.len||a.len==s.len&&!n))){for(M(i,a.ins,-1);l>c&&!s.done&&l+s.len<c+a.len;)l+=s.len,s.next();c+=a.len,a.next()}else{if(!(s.ins>=0)){if(s.done&&a.done)return o?new O(i,o):new A(i);throw new Error("Mismatched change set lengths")}{let e=0,t=l+s.len;for(;;)if(a.ins>=0&&c>l&&c+a.len<t)e+=a.ins,c+=a.len,a.next();else{if(!(-1==a.ins&&c<t))break;{let n=Math.min(a.len,t-c);e+=n,a.forward(n),c+=n}}M(i,e,s.ins),o&&$(o,i,s.text),l=t,s.next()}}}function P(e,t,n=!1){let r=[],i=n?[]:null,o=new I(e),s=new I(t);for(let a=!1;;){if(o.done&&s.done)return i?new O(r,i):new A(r);if(0==o.ins)M(r,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");{let e=Math.min(o.len2,s.len),t=r.length;if(-1==o.ins){let t=-1==s.ins?-1:s.off?0:s.ins;M(r,e,t,a),i&&t&&$(i,r,s.text)}else-1==s.ins?(M(r,o.off?0:o.len,e,a),i&&$(i,r,o.textBit(e))):(M(r,o.off?0:o.len,s.off?0:s.ins,a),i&&!s.off&&$(i,r,s.text));a=(o.ins>e||s.ins>=0&&s.len>e)&&(a||r.length>t),o.forward2(e),s.forward(e)}}else M(r,0,s.ins,a),i&&$(i,r,s.text),s.next()}}class I{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class E{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 16&this.flags?this.to:this.from}get head(){return 16&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 4&this.flags?-1:8&this.flags?1:0}get bidiLevel(){let e=3&this.flags;return 3==e?null:e}get goalColumn(){let e=this.flags>>5;return 33554431==e?void 0:e}map(e,t=-1){let n,r;return this.empty?n=r=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),n==this.from&&r==this.to?this:new E(n,r,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return _.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return _.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return _.range(e.anchor,e.head)}}class _{constructor(e,t=0){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:_.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t<this.ranges.length;t++)if(!this.ranges[t].eq(e.ranges[t]))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new _([this.main])}addRange(e,t=!0){return _.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,_.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new _(e.ranges.map((e=>E.fromJSON(e))),e.main)}static single(e,t=e){return new _([_.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r<e.length;r++){let i=e[r];if(i.empty?i.from<=n:i.from<n)return D(e.slice(),t);n=i.to}return new _(e,t)}static cursor(e,t=0,n,r){return new E(e,e,(0==t?0:t<0?4:8)|(null==n?3:Math.min(2,n))|(null!==r&&void 0!==r?r:33554431)<<5)}static range(e,t,n){let r=(null!==n&&void 0!==n?n:33554431)<<5;return t<e?new E(t,e,24|r):new E(e,t,r|(t>e?4:0))}}function D(e,t=0){let n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let r=1;r<e.length;r++){let n=e[r],i=e[r-1];if(n.empty?n.from<=i.to:n.from<i.to){let o=i.from,s=Math.max(n.to,i.to);r<=t&&t--,e.splice(--r,2,n.anchor>n.head?_.range(s,o):_.range(o,s))}}return new _(e,t)}function Z(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let B=0;class j{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.extensions=i,this.id=B++,this.default=e([])}static define(e={}){return new j(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:L),!!e.static,e.enables)}of(e){return new N([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new N(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new N(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function L(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class N{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=B++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,s=2==this.type,a=!1,l=!1,c=[];for(let u of this.dependencies)"doc"==u?a=!0:"selection"==u?l=!0:0==(1&(null!==(t=e[u.id])&&void 0!==t?t:1))&&c.push(e[u.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||z(e,c)){let t=n(e);if(s?!F(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let a=n(e),l=t.config.address[i];if(null!=l){let n=re(t,l);if(this.dependencies.every((n=>n instanceof j?t.facet(n)===e.facet(n):!(n instanceof W)||t.field(n,!1)==e.field(n,!1)))||(s?F(a,n,r):r(a,n)))return e.values[o]=n,0}return e.values[o]=a,1}}}}function F(e,t,n){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function z(e,t){let n=!1;for(let r of t)1&ne(e,r)&&(n=!0);return n}function J(e,t,n){let r=n.map((t=>e[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),s=e[t.id]>>1;function a(e){let n=[];for(let t=0;t<r.length;t++){let o=re(e,r[t]);if(2==i[t])for(let e of o)n.push(e);else n.push(o)}return t.combine(n)}return{create(e){for(let t of r)ne(e,t);return e.values[s]=a(e),1},update(e,n){if(!z(e,o))return 0;let r=a(e);return t.compare(r,e.values[s])?0:(e.values[s]=r,1)},reconfigure(e,i){let o=z(e,r),l=i.config.facets[t.id],c=i.facet(t);if(l&&!o&&L(n,l))return e.values[s]=c,0;let u=a(e);return t.compare(u,c)?(e.values[s]=c,0):(e.values[s]=u,1)}}}const U=j.define({static:!0});class W{constructor(e,t,n,r,i){this.id=e,this.createF=t,this.updateF=n,this.compareF=r,this.spec=i,this.provides=void 0}static define(e){let t=new W(B++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(U).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,U.of({field:this,create:e})]}get extension(){return this}}const q=4,H=3,V=2,K=1;function G(e){return t=>new Q(t,e)}const Y={highest:G(0),high:G(K),default:G(V),low:G(H),lowest:G(q)};class Q{constructor(e,t){this.inner=e,this.prec=t}}class X{of(e){return new ee(this,e)}reconfigure(e){return X.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ee{constructor(e,t){this.compartment=e,this.inner=t}}class te{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let h of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,s){let a=i.get(e);if(null!=a){if(a<=s)return;let t=r[a].indexOf(e);t>-1&&r[a].splice(t,1),e instanceof ee&&n.delete(e.compartment)}if(i.set(e,s),Array.isArray(e))for(let t of e)o(t,s);else if(e instanceof ee){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,s)}else if(e instanceof Q)o(e.inner,e.prec);else if(e instanceof W)r[s].push(e),e.provides&&o(e.provides,s);else if(e instanceof N)r[s].push(e),e.facet.extensions&&o(e.facet.extensions,s);else{let t=e.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${e}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(t,s)}}return o(e,V),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))h instanceof W?r.push(h):(i[h.facet.id]||(i[h.facet.id]=[])).push(h);let s=Object.create(null),a=[],l=[];for(let h of r)s[h.id]=l.length<<1,l.push((e=>h.slot(e)));let c=null===n||void 0===n?void 0:n.config.facets;for(let h in i){let e=i[h],t=e[0].facet,r=c&&c[h]||[];if(e.every((e=>0==e.type)))if(s[t.id]=a.length<<1|1,L(r,e))a.push(n.facet(t));else{let r=t.combine(e.map((e=>e.value)));a.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(s[t.id]=a.length<<1|1,a.push(t.value)):(s[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));s[t.id]=l.length<<1,l.push((n=>J(n,t,e)))}}let u=l.map((e=>e(s)));return new te(e,o,u,s,a,i)}}function ne(e,t){if(1&t)return 2;let 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;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function re(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ie=j.define(),oe=j.define({combine:e=>e.some((e=>e)),static:!0}),se=j.define({combine:e=>e.length?e[0]:void 0,static:!0}),ae=j.define(),le=j.define(),ce=j.define(),ue=j.define({combine:e=>!!e.length&&e[0]});class he{constructor(e,t){this.type=e,this.value=t}static define(){return new fe}}class fe{of(e){return new he(this,e)}}class de{constructor(e){this.map=e}of(e){return new pe(this,e)}}class pe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new pe(this.type,t)}is(e){return this.type==e}static define(e={}){return new de(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}pe.reconfigure=pe.define(),pe.appendConfig=pe.define();class me{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&Z(n,t.newLength),i.some((e=>e.type==me.time))||(this.annotations=i.concat(me.time.of(Date.now())))}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(me.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ge(e,t){let n=[];for(let r=0,i=0;;){let o,s;if(r<e.length&&(i==t.length||t[i]>=e[r]))o=e[r++],s=e[r++];else{if(!(i<t.length))return n;o=t[i++],s=t[i++]}!n.length||n[n.length-1]<o?n.push(o,s):n[n.length-1]<s&&(n[n.length-1]=s)}}function ye(e,t,n){var r;let i,o,s;return n?(i=t.changes,o=O.empty(t.changes.length),s=e.changes.compose(t.changes)):(i=t.changes.map(e.changes),o=e.changes.mapDesc(t.changes,!0),s=e.changes.compose(i)),{changes:s,selection:t.selection?t.selection.map(o):null===(r=e.selection)||void 0===r?void 0:r.map(i),effects:pe.mapEffects(e.effects,i).concat(pe.mapEffects(t.effects,o)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ve(e,t,n){let r=t.selection,i=we(t.annotations);return t.userEvent&&(i=i.concat(me.userEvent.of(t.userEvent))),{changes:t.changes instanceof O?t.changes:O.of(t.changes||[],n,e.facet(se)),selection:r&&(r instanceof _?r:_.single(r.anchor,r.head)),effects:we(t.effects),annotations:i,scrollIntoView:!!t.scrollIntoView}}function be(e,t,n){let r=ve(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(n=!1);for(let o=1;o<t.length;o++){!1===t[o].filter&&(n=!1);let i=!!t[o].sequential;r=ye(r,ve(e,t[o],i?r.changes.newLength:e.doc.length),i)}let i=new me(e,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(ce),r=e;for(let i=n.length-1;i>=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=ye(e,ve(t,o,e.changes.newLength),!0))}return r==e?e:new me(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(ae)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:ge(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=O.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.invertedDesc}e=new me(t,r,e.selection&&e.selection.map(i),pe.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(le);for(let i=r.length-1;i>=0;i--){let n=r[i](e);e=n instanceof me?n:Array.isArray(n)&&1==n.length&&n[0]instanceof me?n[0]:be(t,we(n),!1)}return e}(i):i)}me.time=he.define(),me.userEvent=he.define(),me.addToHistory=he.define(),me.remote=he.define();const xe=[];function we(e){return null==e?xe:Array.isArray(e)?e:[e]}var ke=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ke||(ke={}));const Se=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ce;try{Ce=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(qe){}function Ae(e){return t=>{if(!/\S/.test(t))return ke.Space;if(function(e){if(Ce)return Ce.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||Se.test(n)))return!0}return!1}(t))return ke.Word;for(let n=0;n<e.length;n++)if(t.indexOf(e[n])>-1)return ke.Word;return ke.Other}}class Oe{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)ne(this,s<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null!=n)return ne(this,n),re(this,n);if(t)throw new RangeError("Field is not present in this state")}update(...e){return be(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:r,compartments:i}=n;for(let o of e.effects)o.is(X.reconfigure)?(n&&(i=new Map,n.compartments.forEach(((e,t)=>i.set(t,e))),n=null),i.set(o.value.compartment,o.value.extension)):o.is(pe.reconfigure)?(n=null,r=o.value):o.is(pe.appendConfig)&&(n=null,r=we(r).concat(o.value));if(n)t=e.startState.values.slice();else{n=te.resolve(r,i,this),t=new Oe(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Oe(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:_.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=we(n.effects);for(let s=1;s<t.ranges.length;s++){let n=e(t.ranges[s]),a=this.changes(n.changes),l=a.map(r);for(let e=0;e<s;e++)i[e]=i[e].map(l);let c=r.mapDesc(a,!0);i.push(n.range.map(c)),r=r.compose(l),o=pe.mapEffects(o,l).concat(pe.mapEffects(we(n.effects),c))}return{changes:r,selection:_.create(i,t.mainIndex),effects:o}}changes(e=[]){return e instanceof O?e:O.of(e,this.doc.length,this.facet(Oe.lineSeparator))}toText(e){return r.of(e.split(this.facet(Oe.lineSeparator)||S))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(ne(this,t),re(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof W&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n){let t=n[i],o=e[i];r.push(t.init((e=>t.spec.fromJSON(o,e))))}return Oe.create({doc:e.doc,selection:_.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(e={}){let t=te.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(Oe.lineSeparator)||S)),i=e.selection?e.selection instanceof _?e.selection:_.single(e.selection.anchor,e.selection.head):_.single(0);return Z(i,n.length),t.staticFacet(oe)||(i=i.asSingle()),new Oe(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Oe.tabSize)}get lineBreak(){return this.facet(Oe.lineSeparator)||"\n"}get readOnly(){return this.facet(ue)}phrase(e){for(let t of this.facet(Oe.phrases))if(Object.prototype.hasOwnProperty.call(t,e))return t[e];return e}languageDataAt(e,t,n=-1){let r=[];for(let i of this.facet(ie))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return Ae(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,s=e-n;for(;o>0;){let e=m(t,o,!1);if(i(t.slice(e,o))!=ke.Word)break;o=e}for(;s<r;){let e=m(t,s);if(i(t.slice(s,e))!=ke.Word)break;s=e}return o==s?null:_.range(o+n,s+n)}}function Me(e,t,n={}){let r={};for(let i of e)for(let e of Object.keys(i)){let t=i[e],o=r[e];if(void 0===o)r[e]=t;else if(o===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,t)}}for(let i in t)void 0===r[i]&&(r[i]=t[i]);return r}Oe.allowMultipleSelections=oe,Oe.tabSize=j.define({combine:e=>e.length?e[0]:4}),Oe.lineSeparator=se,Oe.readOnly=ue,Oe.phrases=j.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),Oe.languageData=ie,Oe.changeFilter=ae,Oe.transactionFilter=le,Oe.transactionExtender=ce,X.reconfigure=pe.define();class $e{eq(e){return this==e}range(e,t=e){return new Te(e,t,this)}}$e.prototype.startSide=$e.prototype.endSide=0,$e.prototype.point=!1,$e.prototype.mapMode=C.TrackDel;class Te{constructor(e,t,n){this.from=e,this.to=t,this.value=n}}function Re(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Pe{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,r=0){let i=n?this.to:this.from;for(let o=r,s=i.length;;){if(o==s)return o;let r=o+s>>1,a=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return a>=0?o:s;a>=0?s=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i<o;i++)if(!1===r(this.from[i]+e,this.to[i]+e,this.value[i]))return!1}map(e,t){let n=[],r=[],i=[],o=-1,s=-1;for(let a=0;a<this.value.length;a++){let l,c,u=this.value[a],h=this.from[a]+e,f=this.to[a]+e;if(h==f){let e=t.mapPos(h,u.startSide,u.mapMode);if(null==e)continue;if(l=c=e,u.startSide!=u.endSide&&(c=t.mapPos(h,u.endSide),c<l))continue}else if(l=t.mapPos(h,u.startSide),c=t.mapPos(f,u.endSide),l>c||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(s=Math.max(s,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new Pe(r,i,n,s):null,pos:o}}}class Ie{constructor(e,t,n=Ie.empty,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Re)),this.isEmpty)return t.length?Ie.of(t):this;let s=new De(this,null,-1).goto(0),a=0,l=[],c=new Ee;for(;s.value||a<t.length;)if(a<t.length&&(s.from-t[a].from||s.startSide-t[a].value.startSide)>=0){let e=t[a++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==s.rangeIndex&&s.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(s.chunkIndex)<t[a].from)&&(!o||r>this.chunkEnd(s.chunkIndex)||i<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||r>s.to||i<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||l.push(new Te(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!l.length?Ie.empty:this.nextLayer.update({add:l,filter:o,filterFrom:r,filterTo:i}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],r=-1;for(let o=0;o<this.chunk.length;o++){let i=this.chunkPos[o],s=this.chunk[o],a=e.touchesRange(i,i+s.length);if(!1===a)r=Math.max(r,s.maxPoint),t.push(s),n.push(e.mapPos(i));else if(!0===a){let{mapped:o,pos:a}=s.map(i,e);o&&(r=Math.max(r,o.maxPoint),t.push(o),n.push(a))}}let i=this.nextLayer.map(e);return 0==t.length?i:new Ie(n,t,i,r)}between(e,t,n){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let i=this.chunkPos[r],o=this.chunk[r];if(t>=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return Ze.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ze.from(e).goto(t)}static compare(e,t,n,r,i=-1){let o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=_e(o,s,n),l=new je(o,a,i),c=new je(s,a,i);n.iterGaps(((e,t,n)=>Le(l,e,c,t,n,r))),n.empty&&0==n.length&&Le(l,0,c,0,0,r)}static eq(e,t,n=0,r){null==r&&(r=1e9);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let s=_e(i,o),a=new je(i,s,0).goto(n),l=new je(o,s,0).goto(n);for(;;){if(a.to!=l.to||!Ne(a.active,l.active)||a.point&&(!l.point||!a.point.eq(l.point)))return!1;if(a.to>r)return!0;a.next(),l.next()}}static spans(e,t,n,r,i=-1){let o=new je(e,null,i).goto(t),s=t,a=o.openStart;for(;;){let e=Math.min(o.to,n);if(o.point?(r.point(s,e,o.point,o.activeForPoint(o.to),a,o.pointRank),a=o.openEnd(e)+(o.to>e?1:0)):e>s&&(r.span(s,e,o.active,a),a=o.openEnd(e)),o.to>n)break;s=o.to,o.next()}return a}static of(e,t=!1){let n=new Ee;for(let r of e instanceof Te?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let r=e[n];if(Re(t,r)>0)return e.slice().sort(Re);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Ie.empty=new Ie([],[],null,-1),Ie.empty.nextLayer=Ie.empty;class Ee{constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}finishChunk(e){this.chunks.push(new Pe(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=[])}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Ee)).add(e,t,n)}addInner(e,t,n){let 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)}addChunk(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);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Ie.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=new Ie(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function _e(e,t,n){let r=new Map;for(let o of e)for(let e=0;e<o.chunk.length;e++)o.chunk[e].maxPoint<=0&&r.set(o.chunk[e],o.chunkPos[e]);let i=new Set;for(let o of t)for(let e=0;e<o.chunk.length;e++){let t=r.get(o.chunk[e]);null==t||(n?n.mapPos(t):t)!=o.chunkPos[e]||(null===n||void 0===n?void 0:n.touchesRange(t,t+o.chunk[e].length))||i.add(o.chunk[e])}return i}class De{constructor(e,t,n,r=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let 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.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].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}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ze{constructor(e){this.heap=e}static from(e,t=null,n=-1){let r=[];for(let i=0;i<e.length;i++)for(let o=e[i];!o.isEmpty;o=o.nextLayer)o.maxPoint>=n&&r.push(new De(o,t,n,i));return 1==r.length?r[0]:new Ze(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Be(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Be(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Be(this.heap,0)}}}function Be(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let 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}}class je{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ze.from(e,t,n)}goto(e,t=-1e9){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}forward(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)}removeActive(e){Fe(this.active,e),Fe(this.activeTo,e),Fe(this.activeRank,e),this.minActive=Je(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t<this.activeRank.length&&this.activeRank[t]<=i;)t++;ze(this.active,t,n),ze(this.activeTo,t,r),ze(this.activeRank,t,i),e&&ze(e,t,this.cursor.from),this.minActive=Je(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null,r=0;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&Fe(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let i=this.cursor.value;if(i.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){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&&(r=1),this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}}if(n){let t=0;for(;t<n.length&&n[t]<e;)t++;this.openStart=t+r}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(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.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Le(e,t,n,r,i,o){e.goto(t),n.goto(r);let s=r+i,a=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&Ne(e.activeForPoint(e.to+l),n.activeForPoint(n.to))||o.comparePoint(a,i,e.point,n.point):i>a&&!Ne(e.active,n.active)&&o.compareRange(a,i,e.active,n.active),r>s)break;a=r,t<=0&&e.next(),t>=0&&n.next()}}function Ne(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!e[n].eq(t[n]))return!1;return!0}function Fe(e,t){for(let n=t,r=e.length-1;n<r;n++)e[n]=e[n+1];e.pop()}function ze(e,t,n){for(let r=e.length-1;r>=t;r--)e[r+1]=e[r];e[t]=n}function Je(e,t){let n=-1,r=1e9;for(let i=0;i<t.length;i++)(t[i]-r||e[i].endSide-e[n].endSide)<0&&(n=i,r=t[i]);return n}function Ue(e,t,n=e.length){let r=0;for(let i=0;i<n;)9==e.charCodeAt(i)?(r+=t-r%t,i++):(r++,i=m(e,i));return r}function We(e,t,n,r){for(let i=0,o=0;;){if(o>=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=m(e,i)}return!0===r?-1:e.length}},23732:function(e,t,n){"use strict";n.d(t,{vk:function(){return g}});var r=n(47421),i=n(59119),o=n(35524);const s="#e06c75",a="#abb2bf",l="#7d8799",c="#d19a66",u="#2c313a",h="#282c34",f="#353a42",d="#528bff",p=r.tk.theme({"&":{color:a,backgroundColor:h},".cm-content":{caretColor:d},".cm-cursor, .cm-dropCursor":{borderLeftColor:d},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:a},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:u},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{backgroundColor:h,color:l,border:"none"},".cm-activeLineGutter":{backgroundColor:u},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:f},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:f,borderBottomColor:f},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:u,color:a}}},{dark:!0}),m=i.Qf.define([{tag:o.pJ.keyword,color:"#c678dd"},{tag:[o.pJ.name,o.pJ.deleted,o.pJ.character,o.pJ.propertyName,o.pJ.macroName],color:s},{tag:[o.pJ.function(o.pJ.variableName),o.pJ.labelName],color:"#61afef"},{tag:[o.pJ.color,o.pJ.constant(o.pJ.name),o.pJ.standard(o.pJ.name)],color:c},{tag:[o.pJ.definition(o.pJ.name),o.pJ.separator],color:a},{tag:[o.pJ.typeName,o.pJ.className,o.pJ.number,o.pJ.changed,o.pJ.annotation,o.pJ.modifier,o.pJ.self,o.pJ.namespace],color:"#e5c07b"},{tag:[o.pJ.operator,o.pJ.operatorKeyword,o.pJ.url,o.pJ.escape,o.pJ.regexp,o.pJ.link,o.pJ.special(o.pJ.string)],color:"#56b6c2"},{tag:[o.pJ.meta,o.pJ.comment],color:l},{tag:o.pJ.strong,fontWeight:"bold"},{tag:o.pJ.emphasis,fontStyle:"italic"},{tag:o.pJ.strikethrough,textDecoration:"line-through"},{tag:o.pJ.link,color:l,textDecoration:"underline"},{tag:o.pJ.heading,fontWeight:"bold",color:s},{tag:[o.pJ.atom,o.pJ.bool,o.pJ.special(o.pJ.variableName)],color:c},{tag:[o.pJ.processingInstruction,o.pJ.string,o.pJ.inserted],color:"#98c379"},{tag:o.pJ.invalid,color:"#ffffff"}]),g=[p,(0,i.nF)(m)]},41113:function(e,t,n){"use strict";n.d(t,{Jq:function(){return l},Lj:function(){return c},_b:function(){return R},i9:function(){return T},md:function(){return s},mp:function(){return d},vj:function(){return f}});const r=1024;let i=0;class o{constructor(e,t){this.from=e,this.to=t}}class s{constructor(e={}){this.id=i++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=l.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}s.closedBy=new s({deserialize:e=>e.split(" ")}),s.openedBy=new s({deserialize:e=>e.split(" ")}),s.group=new s({deserialize:e=>e.split(" ")}),s.contextHash=new s({perNode:!0}),s.lookAhead=new s({perNode:!0}),s.mounted=new s({perNode:!0});const a=Object.create(null);class l{constructor(e,t,n,r=0){this.name=e,this.props=t,this.id=n,this.flags=r}static define(e){let t=e.props&&e.props.length?Object.create(null):a,n=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),r=new l(e.name||"",t,e.id,n);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(r)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return r}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(s.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let r of n.split(" "))t[r]=e[n];return e=>{for(let n=e.prop(s.group),r=-1;r<(n?n.length:0);r++){let i=t[r<0?e.name:n[r]];if(i)return i}}}}l.none=new l("",Object.create(null),0,8);class c{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let r=null;for(let t of e){let e=t(n);e&&(r||(r=Object.assign({},n.props)),r[e[0].id]=e[1])}t.push(r?new l(n.name,r,n.id,n.flags):n)}return new c(t)}}const u=new WeakMap,h=new WeakMap;var f;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays"}(f||(f={}));class d{constructor(e,t,n,r,i){if(this.type=e,this.children=t,this.positions=n,this.length=r,this.props=null,i&&i.length){this.props=Object.create(null);for(let[e,t]of i)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=this.prop(s.mounted);if(e&&!e.overlay)return e.tree.toString();let t="";for(let n of this.children){let e=n.toString();e&&(t&&(t+=","),t+=e)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new C(this.topNode,e)}cursorAt(e,t=0,n=0){let r=u.get(this)||this.topNode,i=new C(r);return i.moveTo(e,t),u.set(this,i._tree),i}get topNode(){return new b(this,0,0,null)}resolve(e,t=0){let n=v(u.get(this)||this.topNode,e,t,!1);return u.set(this,n),n}resolveInner(e,t=0){let n=v(h.get(this)||this.topNode,e,t,!0);return h.set(this,n),n}iterate(e){let{enter:t,leave:n,from:r=0,to:i=this.length}=e;for(let o=this.cursor((e.mode||0)|f.IncludeAnonymous);;){let e=!1;if(o.from<=i&&o.to>=r&&(o.type.isAnonymous||!1!==t(o))){if(o.firstChild())continue;e=!0}for(;e&&n&&!o.type.isAnonymous&&n(o),!o.nextSibling();){if(!o.parent())return;e=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:$(l.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,n)=>new d(this.type,e,t,n,this.propValues)),e.makeTree||((e,t,n)=>new d(l.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:o=r,reused:a=[],minRepeatType:l=i.types.length}=e,c=Array.isArray(n)?new p(n,n.length):n,u=i.types,h=0,f=0;function g(e,t,n,r,s){let{id:d,start:p,end:k,size:S}=c,C=f;for(;S<0;){if(c.next(),-1==S){let t=a[d];return n.push(t),void r.push(p-e)}if(-3==S)return void(h=d);if(-4==S)return void(f=d);throw new RangeError(`Unrecognized record size: ${S}`)}let A,O,M=u[d],T=p-e;if(k-p<=o&&(O=x(c.pos-t,s))){let t=new Uint16Array(O.size-O.skip),n=c.pos-O.size,r=t.length;for(;c.pos>n;)r=w(O.start,t,r);A=new m(t,k-O.start,i),T=O.start-e}else{let e=c.pos-S;c.next();let t=[],n=[],r=d>=l?d:-1,i=0,s=k;for(;c.pos>e;)r>=0&&c.id==r&&c.size>=0?(c.end<=s-o&&(v(t,n,p,i,c.end,s,r,C),i=t.length,s=c.end),c.next()):g(p,e,t,n,r);if(r>=0&&i>0&&i<t.length&&v(t,n,p,i,p,s,r,C),t.reverse(),n.reverse(),r>-1&&i>0){let e=y(M);A=$(M,t,n,0,t.length,0,k-p,e,e)}else A=b(M,t,n,k-p,C-k)}n.push(A),r.push(T)}function y(e){return(t,n,r)=>{let i,o,a=0,l=t.length-1;if(l>=0&&(i=t[l])instanceof d){if(!l&&i.type==e&&i.length==r)return i;(o=i.prop(s.lookAhead))&&(a=n[l]+i.length+o)}return b(e,t,n,r,a)}}function v(e,t,n,r,o,s,a,l){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+n-o);e.push(b(i.types[a],c,u,s-o,l-s)),t.push(o-n)}function b(e,t,n,r,i=0,o){if(h){let e=[s.contextHash,h];o=o?[e].concat(o):[e]}if(i>25){let e=[s.lookAhead,i];o=o?[e].concat(o):[e]}return new d(e,t,n,r,o)}function x(e,t){let n=c.fork(),r=0,i=0,s=0,a=n.end-o,u={size:0,start:0,skip:0};e:for(let o=n.pos-e;n.pos>o;){let e=n.size;if(n.id==t&&e>=0){u.size=r,u.start=i,u.skip=s,s+=4,r+=4,n.next();continue}let c=n.pos-e;if(e<0||c<o||n.start<a)break;let h=n.id>=l?4:0,f=n.start;for(n.next();n.pos>c;){if(n.size<0){if(-3!=n.size)break e;h+=4}else n.id>=l&&(h+=4);n.next()}i=f,r+=e,s+=h}return(t<0||r==e)&&(u.size=r,u.start=i,u.skip=s),u.size>4?u:void 0}function w(e,t,n){let{id:r,start:i,end:o,size:s}=c;if(c.next(),s>=0&&r<l){let a=n;if(s>4){let r=c.pos-(s-4);for(;c.pos>r;)n=w(e,t,n)}t[--n]=a,t[--n]=o-e,t[--n]=i-e,t[--n]=r}else-3==s?h=r:-4==s&&(f=r);return n}let k=[],S=[];for(;c.pos>0;)g(e.start||0,e.bufferStart||0,k,S,-1);let C=null!==(t=e.length)&&void 0!==t?t:k.length?S[0]+k[0].length:0;return new d(u[e.topID],k.reverse(),S.reverse(),C)}(e)}}d.empty=new d(l.none,[],[],0);class p{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new p(this.buffer,this.index)}}class m{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return l.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],r=this.set.types[t],i=r.name;if(/\W/.test(i)&&!r.isError&&(i=JSON.stringify(i)),n==(e+=4))return i;let o=[];for(;e<n;)o.push(this.childString(e)),e=this.buffer[e+3];return i+"("+o.join(",")+")"}findChild(e,t,n,r,i){let{buffer:o}=this,s=-1;for(let a=e;a!=t&&!(g(i,r,o[a+1],o[a+2])&&(s=a,n>0));a=o[a+3]);return s}slice(e,t,n,r){let i=this.buffer,o=new Uint16Array(t-e);for(let s=e,a=0;s<t;)o[a++]=i[s++],o[a++]=i[s++]-n,o[a++]=i[s++]-n,o[a++]=i[s++]-e;return new m(o,r-n,this.set)}}function g(e,t,n,r){switch(e){case-2:return n<t;case-1:return r>=t&&n<t;case 0:return n<t&&r>t;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function y(e,t){let n=e.childBefore(t);for(;n;){let t=n.lastChild;if(!t||t.to!=n.to)break;t.type.isError&&t.from==t.to?(e=n,n=t.prevSibling):n=t}return e}function v(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof b&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:f.IgnoreOverlays;if(r)for(let s=e,a=s.parent;a;s=a,a=s.parent)s instanceof b&&s.index<0&&(null===(i=a.enter(t,n,o))||void 0===i?void 0:i.from)!=s.from&&(e=a);for(;;){let r=e.enter(t,n,o);if(!r)return e;e=r}}class b{constructor(e,t,n,r){this._tree=e,this.from=t,this.index=n,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,i=0){for(let o=this;;){for(let{children:a,positions:l}=o._tree,c=t>0?a.length:-1;e!=c;e+=t){let c=a[e],u=l[e]+o.from;if(g(r,n,u,u+c.length))if(c instanceof m){if(i&f.ExcludeBuffers)continue;let s=c.findChild(0,c.buffer.length,t,n-u,r);if(s>-1)return new S(new k(o,c,e,u),null,s)}else if(i&f.IncludeAnonymous||!c.type.isAnonymous||A(c)){let a;if(!(i&f.IgnoreMounts)&&c.props&&(a=c.prop(s.mounted))&&!a.overlay)return new b(a.tree,u,e,o);let l=new b(c,u,e,o);return i&f.IncludeAnonymous||!l.type.isAnonymous?l:l.nextChild(t<0?c.children.length-1:0,t,n,r)}}if(i&f.IncludeAnonymous||!o.type.isAnonymous)return null;if(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,o=o._parent,!o)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,n=0){let r;if(!(n&f.IgnoreOverlays)&&(r=this._tree.prop(s.mounted))&&r.overlay){let n=e-this.from;for(let{from:e,to:i}of r.overlay)if((t>0?e<=n:e<n)&&(t<0?i>=n:i>n))return new b(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new C(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return v(this,e,t,!1)}resolveInner(e,t=0){return v(this,e,t,!0)}enterUnfinishedNodesBefore(e){return y(this,e)}getChild(e,t=null,n=null){let r=x(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return x(this,e,t,n)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return w(this,e)}}function x(e,t,n,r){let i=e.cursor(),o=[];if(!i.firstChild())return o;if(null!=n)for(;!i.type.is(n);)if(!i.nextSibling())return o;for(;;){if(null!=r&&i.type.is(r))return o;if(i.type.is(t)&&o.push(i.node),!i.nextSibling())return null==r?o:[]}}function w(e,t,n=t.length-1){for(let r=e.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(t[n]&&t[n]!=r.name)return!1;n--}}return!0}class k{constructor(e,t,n,r){this.parent=e,this.buffer=t,this.index=n,this.start=r}}class S{constructor(e,t,n){this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}child(e,t,n){let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.context.start,n);return i<0?null:new S(this.context,this,i)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,n=0){if(n&f.ExcludeBuffers)return null;let{buffer:r}=this.context,i=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return i<0?null:new S(this.context,this,i)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new S(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new S(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new C(this,e)}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,r=this.index+4,i=n.buffer[this.index+3];if(i>r){let o=n.buffer[this.index+1],s=n.buffer[this.index+2];e.push(n.slice(r,i,o,s)),t.push(0)}return new d(this.type,e,t,this.to-this.from)}resolve(e,t=0){return v(this,e,t,!1)}resolveInner(e,t=0){return v(this,e,t,!0)}enterUnfinishedNodesBefore(e){return y(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,n=null){let r=x(this,e,t,n);return r.length?r[0]:null}getChildren(e,t=null,n=null){return x(this,e,t,n)}get node(){return this}matchContext(e){return w(this,e)}}class C{constructor(e,t=0){if(this.mode=t,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof b)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}get name(){return this.type.name}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:r}=this.buffer;return this.type=t||r.set.types[r.buffer[e]],this.from=n+r.buffer[e+1],this.to=n+r.buffer[e+2],!0}yield(e){return!!e&&(e instanceof b?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:r}=this.buffer,i=r.findChild(this.index+4,r.buffer[this.index+3],e,t-this.buffer.start,n);return!(i<0)&&(this.stack.push(this.index),this.yieldBuf(i))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&f.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&f.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&f.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;({index:t,_parent:n}=n))if(t>-1)for(let r=t+e,i=e<0?-1:n._tree.children.length;r!=i;r+=e){let e=n._tree.children[r];if(this.mode&f.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||A(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let r=this.index,i=this.stack.length;i>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;t=o,n=i+1;break e}r=this.stack[--i]}for(let r=n;r<this.stack.length;r++)t=new S(this.buffer,t,this.stack[r]);return this.bufferNode=new S(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let r=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(r=!0)}for(;r&&t&&t(this),r=this.type.isAnonymous,!this.nextSibling();){if(!n)return;this.parent(),n--,r=!0}}}matchContext(e){if(!this.buffer)return w(this.node,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let r=e.length-1,i=this.stack.length-1;r>=0;i--){if(i<0)return w(this.node,e,r);let o=n[t.buffer[this.stack[i]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function A(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||A(e)))}const O=new WeakMap;function M(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let n=O.get(t);if(null==n){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof d)){n=1;break}n+=M(e,r)}O.set(t,n)}return n}function $(e,t,n,r,i,o,s,a,l){let c=0;for(let d=r;d<i;d++)c+=M(e,t[d]);let u=Math.ceil(1.5*c/8),h=[],f=[];return function t(n,r,i,s,a){for(let c=i;c<s;){let i=c,d=r[c],p=M(e,n[c]);for(c++;c<s;c++){let t=M(e,n[c]);if(p+t>=u)break;p+=t}if(c==i+1){if(p>u){let e=n[i];t(e.children,e.positions,0,e.children.length,r[i]+a);continue}h.push(n[i])}else{let t=r[c-1]+n[c-1].length-d;h.push($(e,n,r,i,c,d,t,null,l))}f.push(d+a-o)}}(t,n,r,i,0),(a||l)(h,f,s)}class T{constructor(e,t,n,r,i=!1,o=!1){this.from=e,this.to=t,this.tree=n,this.offset=r,this.open=(i?1:0)|(o?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let r=[new T(0,e.length,e,0,!1,n)];for(let i of t)i.to>e.length&&r.push(i);return r}static applyChanges(e,t,n=128){if(!t.length)return e;let r=[],i=1,o=e.length?e[0]:null;for(let s=0,a=0,l=0;;s++){let c=s<t.length?t[s]:null,u=c?c.fromA:1e9;if(u-a>=n)for(;o&&o.from<u;){let t=o;if(a>=t.from||u<=t.to||l){let e=Math.max(t.from,a)-l,n=Math.min(t.to,u)-l;t=e>=n?null:new T(e,n,t.tree,t.offset+l,s>0,!!c)}if(t&&r.push(t),o.to>u)break;o=i<e.length?e[i++]:null}if(!c)break;a=c.toA,l=c.toA-c.toB}return r}}class R{startParse(e,t,n){return"string"==typeof e&&(e=new P(e)),n=n?n.length?n.map((e=>new o(e.from,e.to))):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let r=this.startParse(e,t,n);for(;;){let e=r.advance();if(e)return e}}}class P{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new s({perNode:!0})},35524:function(e,t,n){"use strict";n.d(t,{Gv:function(){return c},QR:function(){return f},bW:function(){return p},pJ:function(){return P}});var r=n(41113);let i=0;class o{constructor(e,t,n){this.set=e,this.base=t,this.modified=n,this.id=i++}static define(e){if(null===e||void 0===e?void 0:e.base)throw new Error("Can not derive from a modified tag");let t=new o([],null,[]);if(t.set.push(t),e)for(let n of e.set)t.set.push(n);return t}static defineModifier(){let e=new a;return t=>t.modified.indexOf(e)>-1?t:a.get(t.base||t,t.modified.concat(e).sort(((e,t)=>e.id-t.id)))}}let s=0;class a{constructor(){this.instances=[],this.id=s++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find((n=>{return n.base==e&&(r=t,i=n.modified,r.length==i.length&&r.every(((e,t)=>e==i[t])));var r,i}));if(n)return n;let r=[],i=new o(r,e,t);for(let o of t)o.instances.push(i);let s=l(t);for(let o of e.set)for(let e of s)r.push(a.get(o,e));return i}}function l(e){let t=[e];for(let n=0;n<e.length;n++)for(let r of l(e.slice(0,n).concat(e.slice(n+1))))t.push(r);return t}function c(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let e of n.split(" "))if(e){let n=[],i=2,o=e;for(let t=0;;){if("..."==o&&t>0&&t+3==e.length){i=1;break}let r=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!r)throw new RangeError("Invalid path: "+e);if(n.push("*"==r[0]?"":'"'==r[0][0]?JSON.parse(r[0]):r[0]),t+=r[0].length,t==e.length)break;let s=e[t++];if(t==e.length&&"!"==s){i=0;break}if("/"!=s)throw new RangeError("Invalid path: "+e);o=e.slice(t)}let s=n.length-1,a=n[s];if(!a)throw new RangeError("Invalid path: "+e);let l=new h(r,i,s>0?n.slice(0,s):null);t[a]=l.sort(t[a])}}return u.add(t)}const u=new r.md;class h{constructor(e,t,n,r){this.tags=e,this.mode=t,this.context=n,this.next=r}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function f(e,t){let n=Object.create(null);for(let o of e)if(Array.isArray(o.tag))for(let e of o.tag)n[e.id]=o.class;else n[o.tag.id]=o.class;let{scope:r,all:i=null}=t||{};return{style:e=>{let t=i;for(let r of e)for(let e of r.set){let r=n[e.id];if(r){t=t?t+" "+r:r;break}}return t},scope:r}}function d(e,t){let n=null;for(let r of e){let e=r.style(t);e&&(n=n?n+" "+e:e)}return n}function p(e,t,n,r=0,i=e.length){let o=new m(r,Array.isArray(t)?t:[t],n);o.highlightRange(e.cursor(),r,i,"",o.highlighters),o.flush(i)}class m{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,i,o){let{type:s,from:a,to:l}=e;if(a>=n||l<=t)return;s.isTop&&(o=this.highlighters.filter((e=>!e.scope||e.scope(s))));let c=i,h=s.prop(u),f=!1;for(;h;){if(!h.context||e.matchContext(h.context)){let e=d(o,h.tags);e&&(c&&(c+=" "),c+=e,1==h.mode?i+=(i?" ":"")+e:0==h.mode&&(f=!0));break}h=h.next}if(this.startSpan(e.from,c),f)return;let p=e.tree&&e.tree.prop(r.md.mounted);if(p&&p.overlay){let r=e.node.enter(p.overlay[0].from+a,1),s=this.highlighters.filter((e=>!e.scope||e.scope(p.tree.type))),u=e.firstChild();for(let h=0,f=a;;h++){let d=h<p.overlay.length?p.overlay[h]:null,m=d?d.from+a:l,g=Math.max(t,f),y=Math.min(n,m);if(g<y&&u)for(;e.from<y&&(this.highlightRange(e,g,y,i,o),this.startSpan(Math.min(n,e.to),c),!(e.to>=m)&&e.nextSibling()););if(!d||m>n)break;f=d.to+a,f>t&&(this.highlightRange(r.cursor(),Math.max(t,d.from+a),Math.min(n,f),i,s),this.startSpan(f,c))}u&&e.parent()}else if(e.firstChild()){do{if(!(e.to<=t)){if(e.from>=n)break;this.highlightRange(e,t,n,i,o),this.startSpan(Math.min(n,e.to),c)}}while(e.nextSibling());e.parent()}}}const g=o.define,y=g(),v=g(),b=g(v),x=g(v),w=g(),k=g(w),S=g(w),C=g(),A=g(C),O=g(),M=g(),$=g(),T=g($),R=g(),P={comment:y,lineComment:g(y),blockComment:g(y),docComment:g(y),name:v,variableName:g(v),typeName:b,tagName:g(b),propertyName:x,attributeName:g(x),className:g(v),labelName:g(v),namespace:g(v),macroName:g(v),literal:w,string:k,docString:g(k),character:g(k),attributeValue:g(k),number:S,integer:g(S),float:g(S),bool:g(w),regexp:g(w),escape:g(w),color:g(w),url:g(w),keyword:O,self:g(O),null:g(O),atom:g(O),unit:g(O),modifier:g(O),operatorKeyword:g(O),controlKeyword:g(O),definitionKeyword:g(O),moduleKeyword:g(O),operator:M,derefOperator:g(M),arithmeticOperator:g(M),logicOperator:g(M),bitwiseOperator:g(M),compareOperator:g(M),updateOperator:g(M),definitionOperator:g(M),typeOperator:g(M),controlOperator:g(M),punctuation:$,separator:g($),bracket:T,angleBracket:g(T),squareBracket:g(T),paren:g(T),brace:g(T),content:C,heading:A,heading1:g(A),heading2:g(A),heading3:g(A),heading4:g(A),heading5:g(A),heading6:g(A),contentSeparator:g(C),list:g(C),quote:g(C),emphasis:g(C),strong:g(C),link:g(C),monospace:g(C),strikethrough:g(C),inserted:g(),deleted:g(),changed:g(),invalid:g(),meta:R,documentMeta:g(R),annotation:g(R),processingInstruction:g(R),definition:o.defineModifier(),constant:o.defineModifier(),function:o.defineModifier(),standard:o.defineModifier(),local:o.defineModifier(),special:o.defineModifier()};f([{tag:P.link,class:"tok-link"},{tag:P.heading,class:"tok-heading"},{tag:P.emphasis,class:"tok-emphasis"},{tag:P.strong,class:"tok-strong"},{tag:P.keyword,class:"tok-keyword"},{tag:P.atom,class:"tok-atom"},{tag:P.bool,class:"tok-bool"},{tag:P.url,class:"tok-url"},{tag:P.labelName,class:"tok-labelName"},{tag:P.inserted,class:"tok-inserted"},{tag:P.deleted,class:"tok-deleted"},{tag:P.literal,class:"tok-literal"},{tag:P.string,class:"tok-string"},{tag:P.number,class:"tok-number"},{tag:[P.regexp,P.escape,P.special(P.string)],class:"tok-string2"},{tag:P.variableName,class:"tok-variableName"},{tag:P.local(P.variableName),class:"tok-variableName tok-local"},{tag:P.definition(P.variableName),class:"tok-variableName tok-definition"},{tag:P.special(P.variableName),class:"tok-variableName2"},{tag:P.definition(P.propertyName),class:"tok-propertyName tok-definition"},{tag:P.typeName,class:"tok-typeName"},{tag:P.namespace,class:"tok-namespace"},{tag:P.className,class:"tok-className"},{tag:P.macroName,class:"tok-macroName"},{tag:P.propertyName,class:"tok-propertyName"},{tag:P.operator,class:"tok-operator"},{tag:P.comment,class:"tok-comment"},{tag:P.meta,class:"tok-meta"},{tag:P.invalid,class:"tok-invalid"},{tag:P.punctuation,class:"tok-punctuation"}])},56126:function(e,t,n){"use strict";n.d(t,{Qc:function(){return i}});var r=n(57973);r.nice;const i=r.parse;r.strip,r.ansicolor,r.black,r.bgBlack,r.red,r.bgRed,r.green,r.bgGreen,r.yellow,r.bgYellow,r.blue,r.bgBlue,r.magenta,r.bgMagenta,r.cyan,r.bgCyan,r.lightGray,r.bgLightGray,r.bgDefault,r.darkGray,r.bgDarkGray,r.lightRed,r.bgLightRed,r.lightGreen,r.bgLightGreen,r.lightYellow,r.bgLightYellow,r.lightBlue,r.bgLightBlue,r.lightMagenta,r.bgLightMagenta,r.lightCyan,r.bgLightCyan,r.white,r.bgWhite,r.bgBrightRed,r.bgBrightGreen,r.bgBrightYellow,r.bgBrightBlue,r.bgBrightMagenta,r.bgBrightCyan,r.bright,r.dim,r.italic,r.underline,r.inverse,r.names,r.rgb},39306:function(e,t,n){"use strict";function r(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r];"string"==typeof o?e.setAttribute(r,o):null!=o&&(e[r]=o)}t++}for(;t<arguments.length;t++)i(e,arguments[t]);return e}function i(e,t){if("string"==typeof t)e.appendChild(document.createTextNode(t));else if(null==t);else if(null!=t.nodeType)e.appendChild(t);else{if(!Array.isArray(t))throw new RangeError("Unsupported child node: "+t);for(var n=0;n<t.length;n++)i(e,t[n])}}n.d(t,{Z:function(){return r}})},28699:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});const r="undefined"==typeof Symbol?"__\u037c":Symbol.for("\u037c"),i="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class s{constructor(e,t){this.rules=[];let{finish:n}=t||{};function r(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function i(e,t,o,s){let a=[],l=/^@(\w+)\b/.exec(e[0]),c=l&&"keyframes"==l[1];if(l&&null==t)return o.push(e[0]+";");for(let n in t){let s=t[n];if(/&/.test(n))i(n.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),s,o);else if(s&&"object"==typeof s){if(!l)throw new RangeError("The value of a property ("+n+") should be a primitive value.");i(r(n),s,a,c)}else null!=s&&a.push(n.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+s+";")}(a.length||c)&&o.push((!n||l||s?e:e.map(n)).join(", ")+" {"+a.join(" ")+"}")}for(let o in e)i(r(o),e[o],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=o[r]||1;return o[r]=e+1,"\u037c"+e.toString(36)}static mount(e,t){(e[i]||new l(e)).mount(Array.isArray(t)?t:[t])}}let a=null;class l{constructor(e){if(!e.head&&e.adoptedStyleSheets&&"undefined"!=typeof CSSStyleSheet){if(a)return e.adoptedStyleSheets=[a.sheet].concat(e.adoptedStyleSheets),e[i]=a;this.sheet=new CSSStyleSheet,e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets),a=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[],e[i]=this}mount(e){let t=this.sheet,n=0,r=0;for(let i=0;i<e.length;i++){let o=e[i],s=this.modules.indexOf(o);if(s<r&&s>-1&&(this.modules.splice(s,1),r--,s=-1),-1==s){if(this.modules.splice(r++,0,o),t)for(let e=0;e<o.rules.length;e++)t.insertRule(o.rules[e],n++)}else{for(;r<s;)n+=this.modules[r++].rules.length;n+=o.rules.length,r++}}if(!t){let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e}}}},33952:function(e,t,n){"use strict";n.d(t,{YG:function(){return d},ue:function(){return r}});for(var r={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"},i={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),s="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),a="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),l="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),c="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),u=o&&(l||+o[1]<57)||a&&l,h=0;h<10;h++)r[48+h]=r[96+h]=String(h);for(h=1;h<=24;h++)r[h+111]="F"+h;for(h=65;h<=90;h++)r[h]=String.fromCharCode(h+32),i[h]=String.fromCharCode(h);for(var f in r)i.hasOwnProperty(f)||(i[f]=r[f]);function d(e){var t=!(u&&(e.ctrlKey||e.altKey||e.metaKey)||(s||c)&&e.shiftKey&&e.key&&1==e.key.length)&&e.key||(e.shiftKey?i:r)[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}}}]);