You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Shixuns__Detail__Reposit...

90 lines
386 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[7046],{40001:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(92413),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},X=S,v=c(7657),P=function(p,xe){return W.createElement(v.Z,(0,x.Z)({},p,{ref:xe,icon:X}))},I=W.forwardRef(P),K=I},84105:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(92413),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},X=S,v=c(7657),P=function(p,xe){return W.createElement(v.Z,(0,x.Z)({},p,{ref:xe,icon:X}))},I=W.forwardRef(P),K=I},73331:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(92413),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},X=S,v=c(7657),P=function(p,xe){return W.createElement(v.Z,(0,x.Z)({},p,{ref:xe,icon:X}))},I=W.forwardRef(P),K=I},15277:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(92413),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},X=S,v=c(7657),P=function(p,xe){return W.createElement(v.Z,(0,x.Z)({},p,{ref:xe,icon:X}))},I=W.forwardRef(P),K=I},61485:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(92413),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},X=S,v=c(7657),P=function(p,xe){return W.createElement(v.Z,(0,x.Z)({},p,{ref:xe,icon:X}))},I=W.forwardRef(P),K=I},47472:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(92413),W=c(59301),S={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},X=S,v=c(7657),P=function(p,xe){return W.createElement(v.Z,(0,x.Z)({},p,{ref:xe,icon:X}))},I=W.forwardRef(P),K=I},35593:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return Q}});var x=c(33708),W=c(33606),S=c(37061),X=c(43403),v=c(92310),P=c.n(v),I=c(29301),K=c(76846),se=c(96452),p=c(6089),xe=c(80402),D=c(34280),me=c(49658),j=c(59301),ve=c(92413),We=c(77900),Ve=c(8654);function Pe(M){var F=M.prefixCls,w=M.align,_=M.arrow,ne=M.arrowPos,ae=_||{},le=ae.className,de=ae.content,Ie=ne.x,Ee=Ie===void 0?0:Ie,we=ne.y,Ne=we===void 0?0:we,Re=j.useRef();if(!w||!w.points)return null;var Fe={position:"absolute"};if(w.autoArrow!==!1){var U=w.points[0],Ge=w.points[1],Qe=U[0],Ae=U[1],Je=Ge[0],it=Ge[1];Qe===Je||!["t","b"].includes(Qe)?Fe.top=Ne:Qe==="t"?Fe.top=0:Fe.bottom=0,Ae===it||!["l","r"].includes(Ae)?Fe.left=Ee:Ae==="l"?Fe.left=0:Fe.right=0}return j.createElement("div",{ref:Re,className:P()("".concat(F,"-arrow"),le),style:Fe},de)}function be(M){var F=M.prefixCls,w=M.open,_=M.zIndex,ne=M.mask,ae=M.motion;return ne?j.createElement(We.default,(0,ve.Z)({},ae,{motionAppear:!0,visible:w,removeOnLeave:!0}),function(le){var de=le.className;return j.createElement("div",{style:{zIndex:_},className:P()("".concat(F,"-mask"),de)})}):null}var te=j.memo(function(M){var F=M.children;return F},function(M,F){return F.cache}),J=te,C=j.forwardRef(function(M,F){var w=M.popup,_=M.className,ne=M.prefixCls,ae=M.style,le=M.target,de=M.onVisibleChanged,Ie=M.open,Ee=M.keepDom,we=M.fresh,Ne=M.onClick,Re=M.mask,Fe=M.arrow,U=M.arrowPos,Ge=M.align,Qe=M.motion,Ae=M.maskMotion,Je=M.forceRender,it=M.getPopupContainer,ke=M.autoDestroy,Zt=M.portal,vt=M.zIndex,Wt=M.onMouseEnter,jt=M.onMouseLeave,mn=M.onPointerEnter,_t=M.ready,cn=M.offsetX,yn=M.offsetY,On=M.offsetR,nn=M.offsetB,$t=M.onAlign,on=M.onPrepare,kt=M.stretch,Bt=M.targetWidth,fn=M.targetHeight,Ut=typeof w=="function"?w():w,bn=Ie||Ee,dn=(it==null?void 0:it.length)>0,Tn=j.useState(!it||!dn),nr=(0,W.Z)(Tn,2),Vn=nr[0],wn=nr[1];if((0,D.Z)(function(){!Vn&&dn&&le&&wn(!0)},[Vn,dn,le]),!Vn)return null;var ut="auto",ot={left:"-1000vw",top:"-1000vh",right:ut,bottom:ut};if(_t||!Ie){var m,k=Ge.points,re=Ge.dynamicInset||((m=Ge._experimental)===null||m===void 0?void 0:m.dynamicInset),d=re&&k[0][1]==="r",h=re&&k[0][0]==="b";d?(ot.right=On,ot.left=ut):(ot.left=cn,ot.right=ut),h?(ot.bottom=nn,ot.top=ut):(ot.top=yn,ot.bottom=ut)}var O={};return kt&&(kt.includes("height")&&fn?O.height=fn:kt.includes("minHeight")&&fn&&(O.minHeight=fn),kt.includes("width")&&Bt?O.width=Bt:kt.includes("minWidth")&&Bt&&(O.minWidth=Bt)),Ie||(O.pointerEvents="none"),j.createElement(Zt,{open:Je||bn,getContainer:it&&function(){return it(le)},autoDestroy:ke},j.createElement(be,{prefixCls:ne,open:Ie,zIndex:vt,mask:Re,motion:Ae}),j.createElement(I.Z,{onResize:$t,disabled:!Ie},function(B){return j.createElement(We.default,(0,ve.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Je,leavedClassName:"".concat(ne,"-hidden")},Qe,{onAppearPrepare:on,onEnterPrepare:on,visible:Ie,onVisibleChanged:function(ee){var ie;Qe==null||(ie=Qe.onVisibleChanged)===null||ie===void 0||ie.call(Qe,ee),de(ee)}}),function(ye,ee){var ie=ye.className,ge=ye.style,$e=P()(ne,ie,_);return j.createElement("div",{ref:(0,Ve.sQ)(B,F,ee),className:$e,style:(0,x.Z)((0,x.Z)((0,x.Z)((0,x.Z)({"--arrow-x":"".concat(U.x||0,"px"),"--arrow-y":"".concat(U.y||0,"px")},ot),O),ge),{},{boxSizing:"border-box",zIndex:vt},ae),onMouseEnter:Wt,onMouseLeave:jt,onPointerEnter:mn,onClick:Ne},Fe&&j.createElement(Pe,{prefixCls:ne,arrow:Fe,arrowPos:U,align:Ge}),j.createElement(J,{cache:!Ie&&!we},Ut))})}))}),f=C,b=j.forwardRef(function(M,F){var w=M.children,_=M.getTriggerDOMNode,ne=(0,Ve.Yr)(w),ae=j.useCallback(function(de){(0,Ve.mH)(F,_?_(de):de)},[_]),le=(0,Ve.x1)(ae,w.ref);return ne?j.cloneElement(w,{ref:le}):w}),T=b,q=j.createContext(null),z=q;function De(M){return M?Array.isArray(M)?M:[M]:[]}function oe(M,F,w,_){return j.useMemo(function(){var ne=De(w!=null?w:F),ae=De(_!=null?_:F),le=new Set(ne),de=new Set(ae);return M&&(le.has("hover")&&(le.delete("hover"),le.add("click")),de.has("hover")&&(de.delete("hover"),de.add("click"))),[le,de]},[M,F,w,_])}var R=c(29194);function E(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],w=arguments.length>2?arguments[2]:void 0;return w?M[0]===F[0]:M[0]===F[0]&&M[1]===F[1]}function $(M,F,w,_){for(var ne=w.points,ae=Object.keys(M),le=0;le<ae.length;le+=1){var de,Ie=ae[le];if(E((de=M[Ie])===null||de===void 0?void 0:de.points,ne,_))return"".concat(F,"-placement-").concat(Ie)}return""}function Z(M,F,w,_){return F||(w?{motionName:"".concat(M,"-").concat(w)}:_?{motionName:_}:null)}function Y(M){return M.ownerDocument.defaultView}function G(M){for(var F=[],w=M==null?void 0:M.parentElement,_=["hidden","scroll","clip","auto"];w;){var ne=Y(w).getComputedStyle(w),ae=ne.overflowX,le=ne.overflowY,de=ne.overflow;[ae,le,de].some(function(Ie){return _.includes(Ie)})&&F.push(w),w=w.parentElement}return F}function H(M){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(M)?F:M}function V(M){return H(parseFloat(M),0)}function fe(M,F){var w=(0,x.Z)({},M);return(F||[]).forEach(function(_){if(!(_ instanceof HTMLBodyElement||_ instanceof HTMLHtmlElement)){var ne=Y(_).getComputedStyle(_),ae=ne.overflow,le=ne.overflowClipMargin,de=ne.borderTopWidth,Ie=ne.borderBottomWidth,Ee=ne.borderLeftWidth,we=ne.borderRightWidth,Ne=_.getBoundingClientRect(),Re=_.offsetHeight,Fe=_.clientHeight,U=_.offsetWidth,Ge=_.clientWidth,Qe=V(de),Ae=V(Ie),Je=V(Ee),it=V(we),ke=H(Math.round(Ne.width/U*1e3)/1e3),Zt=H(Math.round(Ne.height/Re*1e3)/1e3),vt=(U-Ge-Je-it)*ke,Wt=(Re-Fe-Qe-Ae)*Zt,jt=Qe*Zt,mn=Ae*Zt,_t=Je*ke,cn=it*ke,yn=0,On=0;if(ae==="clip"){var nn=V(le);yn=nn*ke,On=nn*Zt}var $t=Ne.x+_t-yn,on=Ne.y+jt-On,kt=$t+Ne.width+2*yn-_t-cn-vt,Bt=on+Ne.height+2*On-jt-mn-Wt;w.left=Math.max(w.left,$t),w.top=Math.max(w.top,on),w.right=Math.min(w.right,kt),w.bottom=Math.min(w.bottom,Bt)}}),w}function ue(M){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,w="".concat(F),_=w.match(/^(.*)\%$/);return _?M*(parseFloat(_[1])/100):parseFloat(w)}function ze(M,F){var w=F||[],_=(0,W.Z)(w,2),ne=_[0],ae=_[1];return[ue(M.width,ne),ue(M.height,ae)]}function _e(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[M[0],M[1]]}function Se(M,F){var w=F[0],_=F[1],ne,ae;return w==="t"?ae=M.y:w==="b"?ae=M.y+M.height:ae=M.y+M.height/2,_==="l"?ne=M.x:_==="r"?ne=M.x+M.width:ne=M.x+M.width/2,{x:ne,y:ae}}function Te(M,F){var w={t:"b",b:"t",l:"r",r:"l"};return M.map(function(_,ne){return ne===F?w[_]||"c":_}).join("")}function Me(M,F,w,_,ne,ae,le){var de=j.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ne[_]||{}}),Ie=(0,W.Z)(de,2),Ee=Ie[0],we=Ie[1],Ne=j.useRef(0),Re=j.useMemo(function(){return F?G(F):[]},[F]),Fe=j.useRef({}),U=function(){Fe.current={}};M||U();var Ge=(0,p.Z)(function(){if(F&&w&&M){let Ct=function(Sn,En){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$e,lr=Ut.x+Sn,mr=Ut.y+En,Yn=lr+m,yr=mr+ot,Yr=Math.max(lr,er.left),oi=Math.max(mr,er.top),ci=Math.min(Yn,er.right),Fr=Math.min(yr,er.bottom);return Math.max(0,(ci-Yr)*(Fr-oi))},mt=function(){rn=Ut.y+qe,sn=rn+ot,Qt=Ut.x+pt,zt=Qt+m};var Je,it,ke=F,Zt=ke.ownerDocument,vt=Y(ke),Wt=vt.getComputedStyle(ke),jt=Wt.width,mn=Wt.height,_t=Wt.position,cn=ke.style.left,yn=ke.style.top,On=ke.style.right,nn=ke.style.bottom,$t=ke.style.overflow,on=(0,x.Z)((0,x.Z)({},ne[_]),ae),kt=Zt.createElement("div");(Je=ke.parentElement)===null||Je===void 0||Je.appendChild(kt),kt.style.left="".concat(ke.offsetLeft,"px"),kt.style.top="".concat(ke.offsetTop,"px"),kt.style.position=_t,kt.style.height="".concat(ke.offsetHeight,"px"),kt.style.width="".concat(ke.offsetWidth,"px"),ke.style.left="0",ke.style.top="0",ke.style.right="auto",ke.style.bottom="auto",ke.style.overflow="hidden";var Bt;if(Array.isArray(w))Bt={x:w[0],y:w[1],width:0,height:0};else{var fn=w.getBoundingClientRect();Bt={x:fn.x,y:fn.y,width:fn.width,height:fn.height}}var Ut=ke.getBoundingClientRect(),bn=Zt.documentElement,dn=bn.clientWidth,Tn=bn.clientHeight,nr=bn.scrollWidth,Vn=bn.scrollHeight,wn=bn.scrollTop,ut=bn.scrollLeft,ot=Ut.height,m=Ut.width,k=Bt.height,re=Bt.width,d={left:0,top:0,right:dn,bottom:Tn},h={left:-ut,top:-wn,right:nr-ut,bottom:Vn-wn},O=on.htmlRegion,B="visible",ye="visibleFirst";O!=="scroll"&&O!==ye&&(O=B);var ee=O===ye,ie=fe(h,Re),ge=fe(d,Re),$e=O===B?ge:ie,je=ee?ge:$e;ke.style.left="auto",ke.style.top="auto",ke.style.right="0",ke.style.bottom="0";var N=ke.getBoundingClientRect();ke.style.left=cn,ke.style.top=yn,ke.style.right=On,ke.style.bottom=nn,ke.style.overflow=$t,(it=ke.parentElement)===null||it===void 0||it.removeChild(kt);var ce=H(Math.round(m/parseFloat(jt)*1e3)/1e3),Xe=H(Math.round(ot/parseFloat(mn)*1e3)/1e3);if(ce===0||Xe===0||(0,K.Sh)(w)&&!(0,R.Z)(w))return;var Ze=on.offset,Ke=on.targetOffset,Ye=ze(Ut,Ze),yt=(0,W.Z)(Ye,2),pe=yt[0],Ce=yt[1],Be=ze(Bt,Ke),bt=(0,W.Z)(Be,2),ct=bt[0],at=bt[1];Bt.x-=ct,Bt.y-=at;var Jt=on.points||[],It=(0,W.Z)(Jt,2),Ft=It[0],Gt=It[1],Rt=_e(Gt),Yt=_e(Ft),ln=Se(Bt,Rt),qt=Se(Ut,Yt),an=(0,x.Z)({},on),pt=ln.x-qt.x+pe,qe=ln.y-qt.y+Ce,Nt=Ct(pt,qe),Ot=Ct(pt,qe,ge),xn=Se(Bt,["t","l"]),Kt=Se(Ut,["t","l"]),en=Se(Bt,["b","r"]),hn=Se(Ut,["b","r"]),Pt=on.overflow||{},Zn=Pt.adjustX,jn=Pt.adjustY,Tt=Pt.shiftX,St=Pt.shiftY,Et=function(En){return typeof En=="boolean"?En:En>=0},rn,sn,Qt,zt;mt();var gn=Et(jn),Rn=Yt[0]===Rt[0];if(gn&&Yt[0]==="t"&&(sn>je.bottom||Fe.current.bt)){var Ln=qe;Rn?Ln-=ot-k:Ln=xn.y-hn.y-Ce;var Mn=Ct(pt,Ln),An=Ct(pt,Ln,ge);Mn>Nt||Mn===Nt&&(!ee||An>=Ot)?(Fe.current.bt=!0,qe=Ln,Ce=-Ce,an.points=[Te(Yt,0),Te(Rt,0)]):Fe.current.bt=!1}if(gn&&Yt[0]==="b"&&(rn<je.top||Fe.current.tb)){var Ue=qe;Rn?Ue+=ot-k:Ue=en.y-Kt.y-Ce;var nt=Ct(pt,Ue),ht=Ct(pt,Ue,ge);nt>Nt||nt===Nt&&(!ee||ht>=Ot)?(Fe.current.tb=!0,qe=Ue,Ce=-Ce,an.points=[Te(Yt,0),Te(Rt,0)]):Fe.current.tb=!1}var pn=Et(Zn),Dn=Yt[1]===Rt[1];if(pn&&Yt[1]==="l"&&(zt>je.right||Fe.current.rl)){var Gn=pt;Dn?Gn-=m-re:Gn=xn.x-hn.x-pe;var Hn=Ct(Gn,qe),Kn=Ct(Gn,qe,ge);Hn>Nt||Hn===Nt&&(!ee||Kn>=Ot)?(Fe.current.rl=!0,pt=Gn,pe=-pe,an.points=[Te(Yt,1),Te(Rt,1)]):Fe.current.rl=!1}if(pn&&Yt[1]==="r"&&(Qt<je.left||Fe.current.lr)){var _n=pt;Dn?_n+=m-re:_n=en.x-Kt.x-pe;var Fn=Ct(_n,qe),kn=Ct(_n,qe,ge);Fn>Nt||Fn===Nt&&(!ee||kn>=Ot)?(Fe.current.lr=!0,pt=_n,pe=-pe,an.points=[Te(Yt,1),Te(Rt,1)]):Fe.current.lr=!1}mt();var Wn=Tt===!0?0:Tt;typeof Wn=="number"&&(Qt<ge.left&&(pt-=Qt-ge.left-pe,Bt.x+re<ge.left+Wn&&(pt+=Bt.x-ge.left+re-Wn)),zt>ge.right&&(pt-=zt-ge.right-pe,Bt.x>ge.right-Wn&&(pt+=Bt.x-ge.right+Wn)));var Xn=St===!0?0:St;typeof Xn=="number"&&(rn<ge.top&&(qe-=rn-ge.top-Ce,Bt.y+k<ge.top+Xn&&(qe+=Bt.y-ge.top+k-Xn)),sn>ge.bottom&&(qe-=sn-ge.bottom-Ce,Bt.y>ge.bottom-Xn&&(qe+=Bt.y-ge.bottom+Xn)));var xr=Ut.x+pt,Mr=xr+m,vr=Ut.y+qe,Hr=vr+ot,rr=Bt.x,gr=rr+re,pr=Bt.y,ii=pr+k,qr=Math.max(xr,rr),Ur=Math.min(Mr,gr),jr=(qr+Ur)/2,ei=jr-xr,ti=Math.max(vr,pr),$r=Math.min(Hr,ii),Ir=(ti+$r)/2,Xr=Ir-vr;le==null||le(F,an);var xt=N.right-Ut.x-(pt+Ut.width),Vt=N.bottom-Ut.y-(qe+Ut.height);we({ready:!0,offsetX:pt/ce,offsetY:qe/Xe,offsetR:xt/ce,offsetB:Vt/Xe,arrowX:ei/ce,arrowY:Xr/Xe,scaleX:ce,scaleY:Xe,align:an})}}),Qe=function(){Ne.current+=1;var it=Ne.current;Promise.resolve().then(function(){Ne.current===it&&Ge()})},Ae=function(){we(function(it){return(0,x.Z)((0,x.Z)({},it),{},{ready:!1})})};return(0,D.Z)(Ae,[_]),(0,D.Z)(function(){M||Ae()},[M]),[Ee.ready,Ee.offsetX,Ee.offsetY,Ee.offsetR,Ee.offsetB,Ee.arrowX,Ee.arrowY,Ee.scaleX,Ee.scaleY,Ee.align,Qe]}var wt=c(26407);function Dt(M,F,w,_,ne){(0,D.Z)(function(){if(M&&F&&w){let Ne=function(){_(),ne()};var ae=F,le=w,de=G(ae),Ie=G(le),Ee=Y(le),we=new Set([Ee].concat((0,wt.Z)(de),(0,wt.Z)(Ie)));return we.forEach(function(Re){Re.addEventListener("scroll",Ne,{passive:!0})}),Ee.addEventListener("resize",Ne,{passive:!0}),_(),function(){we.forEach(function(Re){Re.removeEventListener("scroll",Ne),Ee.removeEventListener("resize",Ne)})}}},[M,F,w])}var dt=c(48736),rt=c(16089);function Mt(M,F,w,_,ne,ae,le,de){var Ie=j.useRef(M),Ee=j.useRef(!1);Ie.current!==M&&(Ee.current=!0,Ie.current=M),j.useEffect(function(){var we=(0,rt.Z)(function(){Ee.current=!1});return function(){rt.Z.cancel(we)}},[M]),j.useEffect(function(){if(F&&_&&(!ne||ae)){var we=function(){var _t=!1,cn=function(nn){var $t=nn.target;_t=le($t)},yn=function(nn){var $t=nn.target;!Ee.current&&Ie.current&&!_t&&!le($t)&&de(!1)};return[cn,yn]},Ne=we(),Re=(0,W.Z)(Ne,2),Fe=Re[0],U=Re[1],Ge=we(),Qe=(0,W.Z)(Ge,2),Ae=Qe[0],Je=Qe[1],it=Y(_);it.addEventListener("mousedown",Fe,!0),it.addEventListener("click",U,!0),it.addEventListener("contextmenu",U,!0);var ke=(0,se.A)(w);if(ke&&(ke.addEventListener("mousedown",Ae,!0),ke.addEventListener("click",Je,!0),ke.addEventListener("contextmenu",Je,!0)),0)var Zt,vt,Wt,jt;return function(){it.removeEventListener("mousedown",Fe,!0),it.removeEventListener("click",U,!0),it.removeEventListener("contextmenu",U,!0),ke&&(ke.removeEventListener("mousedown",Ae,!0),ke.removeEventListener("click",Je,!0),ke.removeEventListener("contextmenu",Je,!0))}}},[F,w,_,ne,ae])}var st=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Ht(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X.Z,F=j.forwardRef(function(w,_){var ne=w.prefixCls,ae=ne===void 0?"rc-trigger-popup":ne,le=w.children,de=w.action,Ie=de===void 0?"hover":de,Ee=w.showAction,we=w.hideAction,Ne=w.popupVisible,Re=w.defaultPopupVisible,Fe=w.onPopupVisibleChange,U=w.afterPopupVisibleChange,Ge=w.mouseEnterDelay,Qe=w.mouseLeaveDelay,Ae=Qe===void 0?.1:Qe,Je=w.focusDelay,it=w.blurDelay,ke=w.mask,Zt=w.maskClosable,vt=Zt===void 0?!0:Zt,Wt=w.getPopupContainer,jt=w.forceRender,mn=w.autoDestroy,_t=w.destroyPopupOnHide,cn=w.popup,yn=w.popupClassName,On=w.popupStyle,nn=w.popupPlacement,$t=w.builtinPlacements,on=$t===void 0?{}:$t,kt=w.popupAlign,Bt=w.zIndex,fn=w.stretch,Ut=w.getPopupClassNameFromAlign,bn=w.fresh,dn=w.alignPoint,Tn=w.onPopupClick,nr=w.onPopupAlign,Vn=w.arrow,wn=w.popupMotion,ut=w.maskMotion,ot=w.popupTransitionName,m=w.popupAnimation,k=w.maskTransitionName,re=w.maskAnimation,d=w.className,h=w.getTriggerDOMNode,O=(0,S.Z)(w,st),B=mn||_t||!1,ye=j.useState(!1),ee=(0,W.Z)(ye,2),ie=ee[0],ge=ee[1];(0,D.Z)(function(){ge((0,me.Z)())},[]);var $e=j.useRef({}),je=j.useContext(z),N=j.useMemo(function(){return{registerSubPopup:function(Xt,In){$e.current[Xt]=In,je==null||je.registerSubPopup(Xt,In)}}},[je]),ce=(0,xe.Z)(),Xe=j.useState(null),Ze=(0,W.Z)(Xe,2),Ke=Ze[0],Ye=Ze[1],yt=(0,p.Z)(function(ft){(0,K.Sh)(ft)&&Ke!==ft&&Ye(ft),je==null||je.registerSubPopup(ce,ft)}),pe=j.useState(null),Ce=(0,W.Z)(pe,2),Be=Ce[0],bt=Ce[1],ct=j.useRef(null),at=(0,p.Z)(function(ft){(0,K.Sh)(ft)&&Be!==ft&&(bt(ft),ct.current=ft)}),Jt=j.Children.only(le),It=(Jt==null?void 0:Jt.props)||{},Ft={},Gt=(0,p.Z)(function(ft){var Xt,In,Nn=Be;return(Nn==null?void 0:Nn.contains(ft))||((Xt=(0,se.A)(Nn))===null||Xt===void 0?void 0:Xt.host)===ft||ft===Nn||(Ke==null?void 0:Ke.contains(ft))||((In=(0,se.A)(Ke))===null||In===void 0?void 0:In.host)===ft||ft===Ke||Object.values($e.current).some(function(zn){return(zn==null?void 0:zn.contains(ft))||ft===zn})}),Rt=Z(ae,wn,m,ot),Yt=Z(ae,ut,re,k),ln=j.useState(Re||!1),qt=(0,W.Z)(ln,2),an=qt[0],pt=qt[1],qe=Ne!=null?Ne:an,Nt=(0,p.Z)(function(ft){Ne===void 0&&pt(ft)});(0,D.Z)(function(){pt(Ne||!1)},[Ne]);var Ot=j.useRef(qe);Ot.current=qe;var xn=j.useRef([]);xn.current=[];var Kt=(0,p.Z)(function(ft){var Xt;Nt(ft),((Xt=xn.current[xn.current.length-1])!==null&&Xt!==void 0?Xt:qe)!==ft&&(xn.current.push(ft),Fe==null||Fe(ft))}),en=j.useRef(),hn=function(){clearTimeout(en.current)},Pt=function(Xt){var In=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;hn(),In===0?Kt(Xt):en.current=setTimeout(function(){Kt(Xt)},In*1e3)};j.useEffect(function(){return hn},[]);var Zn=j.useState(!1),jn=(0,W.Z)(Zn,2),Tt=jn[0],St=jn[1];(0,D.Z)(function(ft){(!ft||qe)&&St(!0)},[qe]);var Et=j.useState(null),rn=(0,W.Z)(Et,2),sn=rn[0],Qt=rn[1],zt=j.useState([0,0]),gn=(0,W.Z)(zt,2),Rn=gn[0],Ln=gn[1],Mn=function(Xt){Ln([Xt.clientX,Xt.clientY])},An=Me(qe,Ke,dn?Rn:Be,nn,on,kt,nr),Ue=(0,W.Z)(An,11),nt=Ue[0],ht=Ue[1],pn=Ue[2],Dn=Ue[3],Gn=Ue[4],Hn=Ue[5],Kn=Ue[6],_n=Ue[7],Fn=Ue[8],kn=Ue[9],Wn=Ue[10],Xn=oe(ie,Ie,Ee,we),xr=(0,W.Z)(Xn,2),Mr=xr[0],vr=xr[1],Hr=Mr.has("click"),rr=vr.has("click")||vr.has("contextMenu"),gr=(0,p.Z)(function(){Tt||Wn()}),pr=function(){Ot.current&&dn&&rr&&Pt(!1)};Dt(qe,Be,Ke,gr,pr),(0,D.Z)(function(){gr()},[Rn,nn]),(0,D.Z)(function(){qe&&!(on!=null&&on[nn])&&gr()},[JSON.stringify(kt)]);var ii=j.useMemo(function(){var ft=$(on,ae,kn,dn);return P()(ft,Ut==null?void 0:Ut(kn))},[kn,Ut,on,ae,dn]);j.useImperativeHandle(_,function(){return{nativeElement:ct.current,forceAlign:gr}});var qr=j.useState(0),Ur=(0,W.Z)(qr,2),jr=Ur[0],ei=Ur[1],ti=j.useState(0),$r=(0,W.Z)(ti,2),Ir=$r[0],Xr=$r[1],xt=function(){if(fn&&Be){var Xt=Be.getBoundingClientRect();ei(Xt.width),Xr(Xt.height)}},Vt=function(){xt(),gr()},Ct=function(Xt){St(!1),Wn(),U==null||U(Xt)},mt=function(){return new Promise(function(Xt){xt(),Qt(function(){return Xt})})};(0,D.Z)(function(){sn&&(Wn(),sn(),Qt(null))},[sn]);function Sn(ft,Xt,In,Nn){Ft[ft]=function(zn){var ni;Nn==null||Nn(zn),Pt(Xt,In);for(var fi=arguments.length,Rr=new Array(fi>1?fi-1:0),Lr=1;Lr<fi;Lr++)Rr[Lr-1]=arguments[Lr];(ni=It[ft])===null||ni===void 0||ni.call.apply(ni,[It,zn].concat(Rr))}}(Hr||rr)&&(Ft.onClick=function(ft){var Xt;Ot.current&&rr?Pt(!1):!Ot.current&&Hr&&(Mn(ft),Pt(!0));for(var In=arguments.length,Nn=new Array(In>1?In-1:0),zn=1;zn<In;zn++)Nn[zn-1]=arguments[zn];(Xt=It.onClick)===null||Xt===void 0||Xt.call.apply(Xt,[It,ft].concat(Nn))}),Mt(qe,rr,Be,Ke,ke,vt,Gt,Pt);var En=Mr.has("hover"),er=vr.has("hover"),lr,mr;En&&(Sn("onMouseEnter",!0,Ge,function(ft){Mn(ft)}),Sn("onPointerEnter",!0,Ge,function(ft){Mn(ft)}),lr=function(Xt){(qe||Tt)&&Ke!==null&&Ke!==void 0&&Ke.contains(Xt.target)&&Pt(!0,Ge)},dn&&(Ft.onMouseMove=function(ft){var Xt;(Xt=It.onMouseMove)===null||Xt===void 0||Xt.call(It,ft)})),er&&(Sn("onMouseLeave",!1,Ae),Sn("onPointerLeave",!1,Ae),mr=function(){Pt(!1,Ae)}),Mr.has("focus")&&Sn("onFocus",!0,Je),vr.has("focus")&&Sn("onBlur",!1,it),Mr.has("contextMenu")&&(Ft.onContextMenu=function(ft){var Xt;Ot.current&&vr.has("contextMenu")?Pt(!1):(Mn(ft),Pt(!0)),ft.preventDefault();for(var In=arguments.length,Nn=new Array(In>1?In-1:0),zn=1;zn<In;zn++)Nn[zn-1]=arguments[zn];(Xt=It.onContextMenu)===null||Xt===void 0||Xt.call.apply(Xt,[It,ft].concat(Nn))}),d&&(Ft.className=P()(It.className,d));var Yn=(0,x.Z)((0,x.Z)({},It),Ft),yr={},Yr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Yr.forEach(function(ft){O[ft]&&(yr[ft]=function(){for(var Xt,In=arguments.length,Nn=new Array(In),zn=0;zn<In;zn++)Nn[zn]=arguments[zn];(Xt=Yn[ft])===null||Xt===void 0||Xt.call.apply(Xt,[Yn].concat(Nn)),O[ft].apply(O,Nn)})});var oi=j.cloneElement(Jt,(0,x.Z)((0,x.Z)({},Yn),yr)),ci={x:Hn,y:Kn},Fr=Vn?(0,x.Z)({},Vn!==!0?Vn:{}):null;return j.createElement(j.Fragment,null,j.createElement(I.Z,{disabled:!qe,ref:at,onResize:Vt},j.createElement(T,{getTriggerDOMNode:h},oi)),j.createElement(z.Provider,{value:N},j.createElement(f,{portal:M,ref:yt,prefixCls:ae,popup:cn,className:P()(yn,ii),style:On,target:Be,onMouseEnter:lr,onMouseLeave:mr,onPointerEnter:lr,zIndex:Bt,open:qe,keepDom:Tt,fresh:bn,onClick:Tn,mask:ke,motion:Rt,maskMotion:Yt,onVisibleChanged:Ct,onPrepare:mt,forceRender:jt,autoDestroy:B,getPopupContainer:Wt,align:kn,arrow:Fr,arrowPos:ci,ready:nt,offsetX:ht,offsetY:pn,offsetR:Dn,offsetB:Gn,onAlign:gr,stretch:fn,targetWidth:jr/_n,targetHeight:Ir/Fn})))});return F}var Q=Ht(X.Z)},78780:function(){"use strict"},19136:function(){"use strict"},3634:function(tn,Le,c){"use strict";c.d(Le,{t:function(){return D}});var x=c(59301),W=c(3113),S={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},X=c(92310),v=c.n(X),P=Object.defineProperty,I=Object.getOwnPropertySymbols,K=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,p=(me,j,ve)=>j in me?P(me,j,{enumerable:!0,configurable:!0,writable:!0,value:ve}):me[j]=ve,xe=(me,j)=>{for(var ve in j||(j={}))K.call(j,ve)&&p(me,ve,j[ve]);if(I)for(var ve of I(j))se.call(j,ve)&&p(me,ve,j[ve]);return me};const D=({cancelText:me="\u53D6\u6D88",okText:j="\u786E\u5B9A",loading:ve=!1,hasOkBtn:We=!0,hasCancelBtn:Ve=!0,okButtonProps:Pe={},onCancel:be=()=>{},onOk:te=()=>{},className:J=""})=>x.createElement("div",{className:v()(S.buttonFixed,J)},x.createElement("div",{className:S.buttonWrap},Ve&&x.createElement(W.ZP,{size:"middle",className:`${S.button} mr20`,onClick:be},me),We&&x.createElement(W.ZP,xe({size:"middle",type:"primary",className:`${S.button} mr20`,loading:ve,onClick:te},Pe),j)))},73278:function(tn,Le,c){"use strict";c.d(Le,{h:function(){return J}});var x=c(59301),W=c(57809),S=c(78241),X=c(3113),v=c(89780),P=c.n(v),I=c(78780),K=c(19136),se=Object.defineProperty,p=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,ve=(C,f,b)=>f in C?se(C,f,{enumerable:!0,configurable:!0,writable:!0,value:b}):C[f]=b,We=(C,f)=>{for(var b in f||(f={}))me.call(f,b)&&ve(C,b,f[b]);if(D)for(var b of D(f))j.call(f,b)&&ve(C,b,f[b]);return C},Ve=(C,f)=>p(C,xe(f));const Pe=W.default.Option,be={labelCol:{span:4},wrapperCol:{span:20}},te={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};Le.Z=({callback:C,onCancel:f})=>{const[b,T]=(0,x.useState)("python");function q(De){T(te[De][1])}function z(De){C(De)}return x.createElement(S.default,Ve(We({},be),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:z,style:{width:500}}),x.createElement(S.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},x.createElement(W.default,{getPopupContainer:De=>De.parentNode,onChange:q},Object.keys(te).map(De=>x.createElement(Pe,{key:De,value:De},te[De][0])))),x.createElement(S.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},x.createElement(J,{mode:b})),x.createElement("div",{className:"flex-container flex-end"},x.createElement(X.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),x.createElement(X.ZP,{type:"ghost",onClick:f},"\u53D6\u6D88")))};function J({value:C,onChange:f,mode:b,options:T={}}){const q=(0,x.useRef)(),[z,De]=(0,x.useState)();return(0,x.useEffect)(()=>{if(z){let oe=function(R){const E=R.getValue();f&&f(E)};return z.on("change",oe),()=>{z.off("change",oe)}}},[z,f]),(0,x.useEffect)(()=>{z&&z.setOption("mode",b)},[z,b]),(0,x.useEffect)(()=>{z&&(C!==z.getValue()||C==="")&&setTimeout(()=>{z.setValue(C||"")},300)},[z,C]),(0,x.useEffect)(()=>{if(q.current&&!z){const oe=P().fromTextArea(q.current,We({mode:b,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},T));De(oe)}},[q.current,z]),x.createElement("div",{className:"my-codemirror-container"},x.createElement("textarea",{ref:q}))}},91321:function(tn,Le,c){"use strict";c.r(Le),c.d(Le,{default:function(){return Ve}});var x=c(59301),W=c(24459),S=c(78241),X=c(92832),v=c(73278),P=c(3634),I={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},K=Object.defineProperty,se=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,D=(Pe,be,te)=>be in Pe?K(Pe,be,{enumerable:!0,configurable:!0,writable:!0,value:te}):Pe[be]=te,me=(Pe,be)=>{for(var te in be||(be={}))p.call(be,te)&&D(Pe,te,be[te]);if(se)for(var te of se(be))xe.call(be,te)&&D(Pe,te,be[te]);return Pe},j=(Pe,be)=>{var te={};for(var J in Pe)p.call(Pe,J)&&be.indexOf(J)<0&&(te[J]=Pe[J]);if(Pe!=null&&se)for(var J of se(Pe))be.indexOf(J)<0&&xe.call(Pe,J)&&(te[J]=Pe[J]);return te},ve=(Pe,be,te)=>new Promise((J,C)=>{var f=q=>{try{T(te.next(q))}catch(z){C(z)}},b=q=>{try{T(te.throw(q))}catch(z){C(z)}},T=q=>q.done?J(q.value):Promise.resolve(q.value).then(f,b);T((te=te.apply(Pe,be)).next())});const We=Pe=>{var be=Pe,{shixunsDetail:te,globalSetting:J,loading:C,user:f,dispatch:b}=be,T=j(be,["shixunsDetail","globalSetting","loading","user","dispatch"]);const q=(0,W.useLocation)(),[z,De]=(0,x.useState)({}),oe=(0,x.useRef)(),R=(0,x.useRef)(),[E]=S.default.useForm(),[$,Z]=(0,x.useState)("");(0,x.useEffect)(()=>(b({type:"globalSetting/footerToggle",payload:!1}),()=>{b({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,x.useEffect)(()=>{const H=sessionStorage.getItem("pathArray");if(H){const V=H.split(",").join("/"),fe=V.indexOf("/")===0?V.substr(1):V;Z(fe)}},[]),(0,x.useEffect)(()=>{var H,V,fe,ue;R.current=(V=(H=q.pathname)==null?void 0:H.split("/"))==null?void 0:V[2],oe.current=((ue=(fe=q.pathname)==null?void 0:fe.split("/"))==null?void 0:ue[3])==="repository"},[]);const Y=(...H)=>ve(void 0,[...H],function*(V={}){if(yield b({type:"shixunsDetail/addRepositoryFile",payload:{id:R.current,message:V.commitMessage,content:V.codeMirror,path:`${$?`${$}/`:""}${V.path||""}`,secret_repository:oe.current?void 0:!0}})){const ue=oe.current?`/shixuns/${R.current}/repository${$?`/master/shixun_show/${$}`:""}`:`/shixuns/${R.current}/secret_repository`;W.history.replace(ue)}}),G=()=>{var H,V;W.history.push(`/shixuns/${R.current}/${(V=(H=q.pathname)==null?void 0:H.split("/"))==null?void 0:V[3]}${$?`/master/shixun_show/${$}`:""}`)};return x.createElement("section",{className:I.bg},x.createElement("div",{className:I.wrap},x.createElement("div",{className:I.title},"\u65B0\u5EFA\u6587\u4EF6"),x.createElement(S.default,{className:"mt10",form:E,scrollToFirstError:!0,layout:"vertical",onFinish:Y,onValuesChange:()=>De(me({},E.getFieldsValue()))},x.createElement(S.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A"},x.createElement(S.default.Item,{name:"path",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}],noStyle:!0},x.createElement("span",null,x.createElement("span",{className:"mr5"},$?`${$}/`:""),x.createElement(X.default,{className:I.width240,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"}))),x.createElement("span",{className:"ml5"},"\u63D0\u793A\uFF1A1.\u8F93\u5165\u6587\u4EF6\u540D\u53EF\u4EE5\u521B\u5EFA\u4E00\u4E2A\u65B0\u6587\u4EF6\uFF1B2.\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u65B0\u6587\u4EF6\u540D\u53EF\u4EE5\u521B\u5EFA\u65B0\u6587\u4EF6\u5939\u548C\u65B0\u6587\u4EF6\u3002\uFF08\u5982\uFF1Astep1/HelloWorld.java\uFF09")),x.createElement(S.default.Item,{label:"\u63D0\u4EA4\u4FE1\u606F\uFF1A",name:"commitMessage",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u63D0\u4EA4\u4FE1\u606F"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},x.createElement(X.default,{placeholder:"\u8BF7\u8F93\u5165\u672C\u6B21\u63D0\u4EA4\u7684\u4E3B\u8981\u4FE1\u606F\uFF0C\u5408\u7406\u7684\u63CF\u8FF0\u4FE1\u606F\u6709\u5229\u4E8E\u4EE3\u7801\u5386\u53F2\u8BB0\u5F55\u7684\u7BA1\u7406"})),x.createElement("div",{className:"mt10 mb20"},x.createElement(S.default.Item,{name:"codeMirror",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},x.createElement(v.h,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}}))),x.createElement(S.default.Item,{noStyle:!0},x.createElement(P.t,{okButtonProps:{htmlType:"submit"},onCancel:G})))))};var Ve=(0,W.connect)(({shixunsDetail:Pe,loading:be,globalSetting:te,user:J})=>({shixunsDetail:Pe,globalSetting:te,user:J,loading:be.models.index}))(We)},36785:function(tn,Le,c){"use strict";c.d(Le,{o2:function(){return v},yT:function(){return P}});var x=c(26407),W=c(33166);const S=W.i.map(I=>`${I}-inverse`),X=["success","processing","error","default","warning"];function v(I){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,x.Z)(S),(0,x.Z)(W.i)).includes(I):W.i.includes(I)}function P(I){return X.includes(I)}},79676:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return P}});var x=c(19447);function W(I,K,se,p){if(p===!1)return{adjustX:!1,adjustY:!1};const xe=p&&typeof p=="object"?p:{},D={};switch(I){case"top":case"bottom":D.shiftX=K.dropdownArrowOffset*2+se;break;case"left":case"right":D.shiftY=K.dropdownArrowOffsetVertical*2+se;break}const me=Object.assign(Object.assign({},D),xe);return me.shiftX||(me.adjustX=!0),me.shiftY||(me.adjustY=!0),me}const S={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},X={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},v=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function P(I){const{arrowWidth:K,autoAdjustOverflow:se,arrowPointAtCenter:p,offset:xe,borderRadius:D,visibleFirst:me}=I,j=K/2,ve={};return Object.keys(S).forEach(We=>{const Ve=p&&X[We]||S[We],Pe=Object.assign(Object.assign({},Ve),{offset:[0,0]});switch(ve[We]=Pe,v.has(We)&&(Pe.autoArrow=!1),We){case"top":case"topLeft":case"topRight":Pe.offset[1]=-j-xe;break;case"bottom":case"bottomLeft":case"bottomRight":Pe.offset[1]=j+xe;break;case"left":case"leftTop":case"leftBottom":Pe.offset[0]=-j-xe;break;case"right":case"rightTop":case"rightBottom":Pe.offset[0]=j+xe;break}const be=(0,x.fS)({contentRadius:D,limitVerticalRadius:!0});if(p)switch(We){case"topLeft":case"bottomLeft":Pe.offset[0]=-be.dropdownArrowOffset-j;break;case"topRight":case"bottomRight":Pe.offset[0]=be.dropdownArrowOffset+j;break;case"leftTop":case"rightTop":Pe.offset[1]=-be.dropdownArrowOffset-j;break;case"leftBottom":case"rightBottom":Pe.offset[1]=be.dropdownArrowOffset+j;break}Pe.overflow=W(We,be,K,se),me&&(Pe.htmlRegion="visibleFirst")}),ve}},19080:function(tn,Le,c){"use strict";c.d(Le,{F:function(){return v},Z:function(){return X}});var x=c(92310),W=c.n(x);const S=null;function X(P,I,K){return W()({[`${P}-status-success`]:I==="success",[`${P}-status-warning`]:I==="warning",[`${P}-status-error`]:I==="error",[`${P}-status-validating`]:I==="validating",[`${P}-has-feedback`]:K})}const v=(P,I)=>I||P},93891:function(tn,Le,c){"use strict";var x=c(59301),W=c(36355),S=c(64165);const X=v=>{const{componentName:P}=v,{getPrefixCls:I}=(0,x.useContext)(W.E_),K=I("empty");switch(P){case"Table":case"List":return x.createElement(S.Z,{image:S.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return x.createElement(S.Z,{image:S.Z.PRESENTED_IMAGE_SIMPLE,className:`${K}-small`});default:return x.createElement(S.Z,null)}};Le.Z=X},64165:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return te}});var x=c(92310),W=c.n(x),S=c(59301),X=c(36355),v=c(9763),P=c(64993),I=c(88088),se=()=>{const[,J]=(0,I.Z)(),f=new P.C(J.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return S.createElement("svg",{style:f,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(24 31.67)"},S.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),S.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),S.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),S.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),S.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),S.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),S.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},S.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),S.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},xe=()=>{const[,J]=(0,I.Z)(),{colorFill:C,colorFillTertiary:f,colorFillQuaternary:b,colorBgContainer:T}=J,{borderColor:q,shadowColor:z,contentColor:De}=(0,S.useMemo)(()=>({borderColor:new P.C(C).onBackground(T).toHexShortString(),shadowColor:new P.C(f).onBackground(T).toHexShortString(),contentColor:new P.C(b).onBackground(T).toHexShortString()}),[C,f,b,T]);return S.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},S.createElement("ellipse",{fill:z,cx:"32",cy:"33",rx:"32",ry:"7"}),S.createElement("g",{fillRule:"nonzero",stroke:q},S.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),S.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:De}))))},D=c(83116),me=c(37613);const j=J=>{const{componentCls:C,margin:f,marginXS:b,marginXL:T,fontSize:q,lineHeight:z}=J;return{[C]:{marginInline:b,fontSize:q,lineHeight:z,textAlign:"center",[`${C}-image`]:{height:J.emptyImgHeight,marginBottom:b,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${C}-description`]:{color:J.colorText},[`${C}-footer`]:{marginTop:f},"&-normal":{marginBlock:T,color:J.colorTextDisabled,[`${C}-description`]:{color:J.colorTextDisabled},[`${C}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:b,color:J.colorTextDisabled,[`${C}-image`]:{height:J.emptyImgHeightSM}}}}};var ve=(0,D.Z)("Empty",J=>{const{componentCls:C,controlHeightLG:f}=J,b=(0,me.TS)(J,{emptyImgCls:`${C}-img`,emptyImgHeight:f*2.5,emptyImgHeightMD:f,emptyImgHeightSM:f*.875});return[j(b)]}),We=function(J,C){var f={};for(var b in J)Object.prototype.hasOwnProperty.call(J,b)&&C.indexOf(b)<0&&(f[b]=J[b]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,b=Object.getOwnPropertySymbols(J);T<b.length;T++)C.indexOf(b[T])<0&&Object.prototype.propertyIsEnumerable.call(J,b[T])&&(f[b[T]]=J[b[T]]);return f};const Ve=S.createElement(se,null),Pe=S.createElement(xe,null),be=J=>{var{className:C,rootClassName:f,prefixCls:b,image:T=Ve,description:q,children:z,imageStyle:De,style:oe}=J,R=We(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:E,direction:$,empty:Z}=S.useContext(X.E_),Y=E("empty",b),[G,H]=ve(Y),[V]=(0,v.Z)("Empty"),fe=typeof q!="undefined"?q:V==null?void 0:V.description,ue=typeof fe=="string"?fe:"empty";let ze=null;return typeof T=="string"?ze=S.createElement("img",{alt:ue,src:T}):ze=T,G(S.createElement("div",Object.assign({className:W()(H,Y,Z==null?void 0:Z.className,{[`${Y}-normal`]:T===Pe,[`${Y}-rtl`]:$==="rtl"},C,f),style:Object.assign(Object.assign({},Z==null?void 0:Z.style),oe)},R),S.createElement("div",{className:`${Y}-image`,style:De},ze),fe&&S.createElement("div",{className:`${Y}-description`},fe),z&&S.createElement("div",{className:`${Y}-footer`},z)))};be.PRESENTED_IMAGE_DEFAULT=Ve,be.PRESENTED_IMAGE_SIMPLE=Pe;var te=be},78241:function(tn,Le,c){"use strict";c.d(Le,{default:function(){return ot}});var x=c(26407),W=c(92310),S=c.n(W),X=c(77900),v=c(59301),P=c(62892),I=c(32441);function K(m){const[k,re]=v.useState(m);return v.useEffect(()=>{const d=setTimeout(()=>{re(m)},m.length?0:10);return()=>{clearTimeout(d)}},[m]),k}var se=c(17313),p=c(29878),xe=c(8378),D=c(37613),me=c(83116),ve=m=>{const{componentCls:k}=m,re=`${k}-show-help`,d=`${k}-show-help-item`;return{[re]:{transition:`opacity ${m.motionDurationSlow} ${m.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[d]:{overflow:"hidden",transition:`height ${m.motionDurationSlow} ${m.motionEaseInOut},
opacity ${m.motionDurationSlow} ${m.motionEaseInOut},
transform ${m.motionDurationSlow} ${m.motionEaseInOut} !important`,[`&${d}-appear, &${d}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${d}-leave-active`]:{transform:"translateY(-5px)"}}}}};const We=m=>({legend:{display:"block",width:"100%",marginBottom:m.marginLG,padding:0,color:m.colorTextDescription,fontSize:m.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${m.lineWidth}px ${m.lineType} ${m.colorBorder}`},label:{fontSize:m.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${m.controlOutlineWidth}px ${m.controlOutline}`},output:{display:"block",paddingTop:15,color:m.colorText,fontSize:m.fontSize,lineHeight:m.lineHeight}}),Ve=(m,k)=>{const{formItemCls:re}=m;return{[re]:{[`${re}-label > label`]:{height:k},[`${re}-control-input`]:{minHeight:k}}}},Pe=m=>{const{componentCls:k}=m;return{[m.componentCls]:Object.assign(Object.assign(Object.assign({},(0,se.Wf)(m)),We(m)),{[`${k}-text`]:{display:"inline-block",paddingInlineEnd:m.paddingSM},"&-small":Object.assign({},Ve(m,m.controlHeightSM)),"&-large":Object.assign({},Ve(m,m.controlHeightLG))})}},be=m=>{const{formItemCls:k,iconCls:re,componentCls:d,rootPrefixCls:h,labelRequiredMarkColor:O,labelColor:B,labelFontSize:ye,labelHeight:ee,labelColonMarginInlineStart:ie,labelColonMarginInlineEnd:ge,itemMarginBottom:$e}=m;return{[k]:Object.assign(Object.assign({},(0,se.Wf)(m)),{marginBottom:$e,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden.${h}-row`]:{display:"none"},"&-has-warning":{[`${k}-split`]:{color:m.colorError}},"&-has-error":{[`${k}-split`]:{color:m.colorWarning}},[`${k}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${m.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:ee,color:B,fontSize:ye,[`> ${re}`]:{fontSize:m.fontSize,verticalAlign:"top"},[`&${k}-required:not(${k}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:m.marginXXS,color:O,fontSize:m.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${d}-hide-required-mark &`]:{display:"none"}},[`${k}-optional`]:{display:"inline-block",marginInlineStart:m.marginXXS,color:m.colorTextDescription,[`${d}-hide-required-mark &`]:{display:"none"}},[`${k}-tooltip`]:{color:m.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:m.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ie,marginInlineEnd:ge},[`&${k}-no-colon::after`]:{content:'"\\a0"'}}},[`${k}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${h}-col-'"]):not([class*="' ${h}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:m.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[k]:{"&-explain, &-extra":{clear:"both",color:m.colorTextDescription,fontSize:m.fontSize,lineHeight:m.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:m.controlHeightSM,transition:`color ${m.motionDurationMid} ${m.motionEaseOut}`},"&-explain":{"&-error":{color:m.colorError},"&-warning":{color:m.colorWarning}}},[`&-with-help ${k}-explain`]:{height:"auto",opacity:1},[`${k}-feedback-icon`]:{fontSize:m.fontSize,textAlign:"center",visibility:"visible",animationName:p.kr,animationDuration:m.motionDurationMid,animationTimingFunction:m.motionEaseOutBack,pointerEvents:"none","&-success":{color:m.colorSuccess},"&-error":{color:m.colorError},"&-warning":{color:m.colorWarning},"&-validating":{color:m.colorPrimary}}})}},te=m=>{const{componentCls:k,formItemCls:re}=m;return{[`${k}-horizontal`]:{[`${re}-label`]:{flexGrow:0},[`${re}-control`]:{flex:"1 1 0",minWidth:0},[`${re}-label[class$='-24'], ${re}-label[class*='-24 ']`]:{[`& + ${re}-control`]:{minWidth:"unset"}}}}},J=m=>{const{componentCls:k,formItemCls:re}=m;return{[`${k}-inline`]:{display:"flex",flexWrap:"wrap",[re]:{flex:"none",marginInlineEnd:m.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${re}-label,
> ${re}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${re}-label`]:{flex:"none"},[`${k}-text`]:{display:"inline-block"},[`${re}-has-feedback`]:{display:"inline-block"}}}}},C=m=>({padding:m.verticalLabelPadding,margin:m.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),f=m=>{const{componentCls:k,formItemCls:re,rootPrefixCls:d}=m;return{[`${re} ${re}-label`]:C(m),[k]:{[re]:{flexWrap:"wrap",[`${re}-label, ${re}-control`]:{[`&:not([class*=" ${d}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},b=m=>{const{componentCls:k,formItemCls:re,rootPrefixCls:d}=m;return{[`${k}-vertical`]:{[re]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${k}-item-control`]:{width:"100%"}}},[`${k}-vertical ${re}-label,
.${d}-col-24${re}-label,
.${d}-col-xl-24${re}-label`]:C(m),[`@media (max-width: ${m.screenXSMax}px)`]:[f(m),{[k]:{[`.${d}-col-xs-24${re}-label`]:C(m)}}],[`@media (max-width: ${m.screenSMMax}px)`]:{[k]:{[`.${d}-col-sm-24${re}-label`]:C(m)}},[`@media (max-width: ${m.screenMDMax}px)`]:{[k]:{[`.${d}-col-md-24${re}-label`]:C(m)}},[`@media (max-width: ${m.screenLGMax}px)`]:{[k]:{[`.${d}-col-lg-24${re}-label`]:C(m)}}}},T=(m,k)=>(0,D.TS)(m,{formItemCls:`${m.componentCls}-item`,rootPrefixCls:k});var q=(0,me.Z)("Form",(m,k)=>{let{rootPrefixCls:re}=k;const d=T(m,re);return[Pe(d),be(d),ve(d),te(d),J(d),b(d),(0,xe.Z)(d),p.kr]},m=>({labelRequiredMarkColor:m.colorError,labelColor:m.colorTextHeading,labelFontSize:m.fontSize,labelHeight:m.controlHeight,labelColonMarginInlineStart:m.marginXXS/2,labelColonMarginInlineEnd:m.marginXS,itemMarginBottom:m.marginLG,verticalLabelPadding:`0 0 ${m.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const z=[];function De(m,k,re){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof m=="string"?m:`${k}-${d}`,error:m,errorStatus:re}}var R=m=>{let{help:k,helpStatus:re,errors:d=z,warnings:h=z,className:O,fieldId:B,onVisibleChanged:ye}=m;const{prefixCls:ee}=v.useContext(I.Rk),ie=`${ee}-item-explain`,[,ge]=q(ee),$e=(0,v.useMemo)(()=>(0,P.Z)(ee),[ee]),je=K(d),N=K(h),ce=v.useMemo(()=>k!=null?[De(k,"help",re)]:[].concat((0,x.Z)(je.map((Ze,Ke)=>De(Ze,"error","error",Ke))),(0,x.Z)(N.map((Ze,Ke)=>De(Ze,"warning","warning",Ke)))),[k,re,je,N]),Xe={};return B&&(Xe.id=`${B}_help`),v.createElement(X.default,{motionDeadline:$e.motionDeadline,motionName:`${ee}-show-help`,visible:!!ce.length,onVisibleChanged:ye},Ze=>{const{className:Ke,style:Ye}=Ze;return v.createElement("div",Object.assign({},Xe,{className:S()(ie,Ke,O,ge),style:Ye,role:"alert"}),v.createElement(X.CSSMotionList,Object.assign({keys:ce},(0,P.Z)(ee),{motionName:`${ee}-show-help-item`,component:!1}),yt=>{const{key:pe,error:Ce,errorStatus:Be,className:bt,style:ct}=yt;return v.createElement("div",{key:pe,className:S()(bt,{[`${ie}-${Be}`]:Be}),style:ct},Ce)}))})},E=c(95013),$=c(36355),Z=c(1684),Y=c(52946),G=c(19716),H=c(16722);const V=["parentNode"],fe="form_item";function ue(m){return m===void 0||m===!1?[]:Array.isArray(m)?m:[m]}function ze(m,k){if(!m.length)return;const re=m.join("_");return k?`${k}_${re}`:V.includes(re)?`${fe}_${re}`:re}function _e(m,k,re,d,h,O){let B=d;return O!==void 0?B=O:re.validating?B="validating":m.length?B="error":k.length?B="warning":(re.touched||h&&re.validated)&&(B="success"),B}function Se(m){return ue(m).join("_")}function Te(m){const[k]=(0,E.useForm)(),re=v.useRef({}),d=v.useMemo(()=>m!=null?m:Object.assign(Object.assign({},k),{__INTERNAL__:{itemRef:h=>O=>{const B=Se(h);O?re.current[B]=O:delete re.current[B]}},scrollToField:function(h){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const B=ue(h),ye=ze(B,d.__INTERNAL__.name),ee=ye?document.getElementById(ye):null;ee&&(0,H.Z)(ee,Object.assign({scrollMode:"if-needed",block:"nearest"},O))},getFieldInstance:h=>{const O=Se(h);return re.current[O]}}),[m,k]);return[d]}var Me=c(28726),wt=function(m,k){var re={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&k.indexOf(d)<0&&(re[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)k.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(re[d[h]]=m[d[h]]);return re};const Dt=(m,k)=>{const re=v.useContext(Z.Z),{getPrefixCls:d,direction:h,form:O}=v.useContext($.E_),{prefixCls:B,className:ye,rootClassName:ee,size:ie,disabled:ge=re,form:$e,colon:je,labelAlign:N,labelWrap:ce,labelCol:Xe,wrapperCol:Ze,hideRequiredMark:Ke,layout:Ye="horizontal",scrollToFirstError:yt,requiredMark:pe,onFinishFailed:Ce,name:Be,style:bt,feedbackIcons:ct}=m,at=wt(m,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Jt=(0,G.Z)(ie),It=v.useContext(Me.Z),Ft=(0,v.useMemo)(()=>pe!==void 0?pe:O&&O.requiredMark!==void 0?O.requiredMark:!Ke,[Ke,pe,O]),Gt=je!=null?je:O==null?void 0:O.colon,Rt=d("form",B),[Yt,ln]=q(Rt),qt=S()(Rt,`${Rt}-${Ye}`,{[`${Rt}-hide-required-mark`]:Ft===!1,[`${Rt}-rtl`]:h==="rtl",[`${Rt}-${Jt}`]:Jt},ln,O==null?void 0:O.className,ye,ee),[an]=Te($e),{__INTERNAL__:pt}=an;pt.name=Be;const qe=(0,v.useMemo)(()=>({name:Be,labelAlign:N,labelCol:Xe,labelWrap:ce,wrapperCol:Ze,vertical:Ye==="vertical",colon:Gt,requiredMark:Ft,itemRef:pt.itemRef,form:an,feedbackIcons:ct}),[Be,N,Xe,Ze,Ye,Gt,Ft,an,ct]);v.useImperativeHandle(k,()=>an);const Nt=(xn,Kt)=>{if(xn){let en={block:"nearest"};typeof xn=="object"&&(en=xn),an.scrollToField(Kt,en)}},Ot=xn=>{if(Ce==null||Ce(xn),xn.errorFields.length){const Kt=xn.errorFields[0].name;if(yt!==void 0){Nt(yt,Kt);return}O&&O.scrollToFirstError!==void 0&&Nt(O.scrollToFirstError,Kt)}};return Yt(v.createElement(Z.n,{disabled:ge},v.createElement(Y.q,{size:Jt},v.createElement(I.RV,Object.assign({},{validateMessages:It}),v.createElement(I.q3.Provider,{value:qe},v.createElement(E.default,Object.assign({id:Be},at,{name:Be,onFinishFailed:Ot,form:an,style:Object.assign(Object.assign({},O==null?void 0:O.style),bt),className:qt})))))))};var rt=v.forwardRef(Dt),Mt=c(41799),st=c(8654),Ht=c(92343),Q=c(11592);function M(m){if(typeof m=="function")return m;const k=(0,Q.Z)(m);return k.length<=1?k[0]:k}const F=()=>{const{status:m,errors:k=[],warnings:re=[]}=(0,v.useContext)(I.aM);return{status:m,errors:k,warnings:re}};F.Context=I.aM;var w=F,_=c(16089);function ne(m){const[k,re]=v.useState(m),d=(0,v.useRef)(null),h=(0,v.useRef)([]),O=(0,v.useRef)(!1);v.useEffect(()=>(O.current=!1,()=>{O.current=!0,_.Z.cancel(d.current),d.current=null}),[]);function B(ye){O.current||(d.current===null&&(h.current=[],d.current=(0,_.Z)(()=>{d.current=null,re(ee=>{let ie=ee;return h.current.forEach(ge=>{ie=ge(ie)}),ie})})),h.current.push(ye))}return[k,B]}function ae(){const{itemRef:m}=v.useContext(I.q3),k=v.useRef({});function re(d,h){const O=h&&typeof h=="object"&&h.ref,B=d.join("_");return(k.current.name!==B||k.current.originRef!==O)&&(k.current.name=B,k.current.originRef=O,k.current.ref=(0,st.sQ)(m(d),O)),k.current.ref}return re}var le=c(29194),de=c(34280),Ie=c(2738),Ee=c(27382),we=c(37028);const Ne=m=>{const{formItemCls:k}=m;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${k}-control`]:{display:"flex"}}}};var Re=(0,me.b)(["Form","item-item"],(m,k)=>{let{rootPrefixCls:re}=k;const d=T(m,re);return[Ne(d)]}),U=m=>{const{prefixCls:k,status:re,wrapperCol:d,children:h,errors:O,warnings:B,_internalItemRender:ye,extra:ee,help:ie,fieldId:ge,marginBottom:$e,onErrorVisibleChanged:je}=m,N=`${k}-item`,ce=v.useContext(I.q3),Xe=d||ce.wrapperCol||{},Ze=S()(`${N}-control`,Xe.className),Ke=v.useMemo(()=>Object.assign({},ce),[ce]);delete Ke.labelCol,delete Ke.wrapperCol;const Ye=v.createElement("div",{className:`${N}-control-input`},v.createElement("div",{className:`${N}-control-input-content`},h)),yt=v.useMemo(()=>({prefixCls:k,status:re}),[k,re]),pe=$e!==null||O.length||B.length?v.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},v.createElement(I.Rk.Provider,{value:yt},v.createElement(R,{fieldId:ge,errors:O,warnings:B,help:ie,helpStatus:re,className:`${N}-explain-connected`,onVisibleChanged:je})),!!$e&&v.createElement("div",{style:{width:0,height:$e}})):null,Ce={};ge&&(Ce.id=`${ge}_extra`);const Be=ee?v.createElement("div",Object.assign({},Ce,{className:`${N}-extra`}),ee):null,bt=ye&&ye.mark==="pro_table_render"&&ye.render?ye.render(m,{input:Ye,errorList:pe,extra:Be}):v.createElement(v.Fragment,null,Ye,pe,Be);return v.createElement(I.q3.Provider,{value:Ke},v.createElement(we.Z,Object.assign({},Xe,{className:Ze}),bt),v.createElement(Re,{prefixCls:k}))},Ge=c(61485),Qe=c(31724),Ae=c(9763),Je=c(6848),it=function(m,k){var re={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&k.indexOf(d)<0&&(re[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)k.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(re[d[h]]=m[d[h]]);return re};function ke(m){return m?typeof m=="object"&&!v.isValidElement(m)?m:{title:m}:null}var vt=m=>{let{prefixCls:k,label:re,htmlFor:d,labelCol:h,labelAlign:O,colon:B,required:ye,requiredMark:ee,tooltip:ie}=m;var ge;const[$e]=(0,Ae.Z)("Form"),{vertical:je,labelAlign:N,labelCol:ce,labelWrap:Xe,colon:Ze}=v.useContext(I.q3);if(!re)return null;const Ke=h||ce||{},Ye=O||N,yt=`${k}-item-label`,pe=S()(yt,Ye==="left"&&`${yt}-left`,Ke.className,{[`${yt}-wrap`]:!!Xe});let Ce=re;const Be=B===!0||Ze!==!1&&B!==!1;Be&&!je&&typeof re=="string"&&re.trim()!==""&&(Ce=re.replace(/[:|]\s*$/,""));const ct=ke(ie);if(ct){const{icon:Ft=v.createElement(Ge.Z,null)}=ct,Gt=it(ct,["icon"]),Rt=v.createElement(Je.Z,Object.assign({},Gt),v.cloneElement(Ft,{className:`${k}-item-tooltip`,title:""}));Ce=v.createElement(v.Fragment,null,Ce,Rt)}const at=ee==="optional",Jt=typeof ee=="function";Jt?Ce=ee(Ce,{required:!!ye}):at&&!ye&&(Ce=v.createElement(v.Fragment,null,Ce,v.createElement("span",{className:`${k}-item-optional`,title:""},($e==null?void 0:$e.optional)||((ge=Qe.Z.Form)===null||ge===void 0?void 0:ge.optional))));const It=S()({[`${k}-item-required`]:ye,[`${k}-item-required-mark-optional`]:at||Jt,[`${k}-item-no-colon`]:!Be});return v.createElement(we.Z,Object.assign({},Ke,{className:pe}),v.createElement("label",{htmlFor:d,className:It,title:typeof re=="string"?re:""},Ce))},Wt=c(29679),jt=c(19248),mn=c(96512),_t=c(58617);const cn={success:Wt.Z,warning:mn.Z,error:jt.Z,validating:_t.Z};function yn(m){let{children:k,errors:re,warnings:d,hasFeedback:h,validateStatus:O,prefixCls:B,meta:ye,noStyle:ee}=m;const ie=`${B}-item`,{feedbackIcons:ge}=v.useContext(I.q3),$e=_e(re,d,ye,null,!!h,O),{isFormItemInput:je,status:N}=v.useContext(I.aM),ce=v.useMemo(()=>{var Xe;let Ze;if(h){const yt=h!==!0&&h.icons||ge,pe=$e&&((Xe=yt==null?void 0:yt({status:$e,errors:re,warnings:d}))===null||Xe===void 0?void 0:Xe[$e]),Ce=$e&&cn[$e];Ze=pe!==!1&&Ce?v.createElement("span",{className:S()(`${ie}-feedback-icon`,`${ie}-feedback-icon-${$e}`)},pe||v.createElement(Ce,null)):null}let Ke=!0,Ye=$e||"";return ee&&(Ke=je,Ye=($e!=null?$e:N)||""),{status:Ye,errors:re,warnings:d,hasFeedback:!!h,feedbackIcon:Ze,isFormItemInput:Ke}},[$e,h,ee,je,N]);return v.createElement(I.aM.Provider,{value:ce},k)}var On=function(m,k){var re={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&k.indexOf(d)<0&&(re[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)k.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(re[d[h]]=m[d[h]]);return re};function nn(m){const{prefixCls:k,className:re,rootClassName:d,style:h,help:O,errors:B,warnings:ye,validateStatus:ee,meta:ie,hasFeedback:ge,hidden:$e,children:je,fieldId:N,required:ce,isRequired:Xe,onSubItemMetaChange:Ze}=m,Ke=On(m,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Ye=`${k}-item`,{requiredMark:yt}=v.useContext(I.q3),pe=v.useRef(null),Ce=K(B),Be=K(ye),bt=O!=null,ct=!!(bt||B.length||ye.length),at=!!pe.current&&(0,le.Z)(pe.current),[Jt,It]=v.useState(null);(0,de.Z)(()=>{if(ct&&pe.current){const ln=getComputedStyle(pe.current);It(parseInt(ln.marginBottom,10))}},[ct,at]);const Ft=ln=>{ln||It(null)},Rt=function(){let ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const qt=ln?Ce:ie.errors,an=ln?Be:ie.warnings;return _e(qt,an,ie,"",!!ge,ee)}(),Yt=S()(Ye,re,d,{[`${Ye}-with-help`]:bt||Ce.length||Be.length,[`${Ye}-has-feedback`]:Rt&&ge,[`${Ye}-has-success`]:Rt==="success",[`${Ye}-has-warning`]:Rt==="warning",[`${Ye}-has-error`]:Rt==="error",[`${Ye}-is-validating`]:Rt==="validating",[`${Ye}-hidden`]:$e});return v.createElement("div",{className:Yt,style:h,ref:pe},v.createElement(Ee.Z,Object.assign({className:`${Ye}-row`},(0,Ie.Z)(Ke,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),v.createElement(vt,Object.assign({htmlFor:N},m,{requiredMark:yt,required:ce!=null?ce:Xe,prefixCls:k})),v.createElement(U,Object.assign({},m,ie,{errors:Ce,warnings:Be,prefixCls:k,status:Rt,help:O,marginBottom:Jt,onErrorVisibleChanged:Ft}),v.createElement(I.qI.Provider,{value:Ze},v.createElement(yn,{prefixCls:k,meta:ie,errors:ie.errors,warnings:ie.warnings,hasFeedback:ge,validateStatus:Rt},je)))),!!Jt&&v.createElement("div",{className:`${Ye}-margin-offset`,style:{marginBottom:-Jt}}))}const $t="__SPLIT__",on=null,kt=v.memo(m=>{let{children:k}=m;return k},(m,k)=>m.value===k.value&&m.update===k.update&&m.childProps.length===k.childProps.length&&m.childProps.every((re,d)=>re===k.childProps[d]));function Bt(m){return m!=null}function fn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ut(m){const{name:k,noStyle:re,className:d,dependencies:h,prefixCls:O,shouldUpdate:B,rules:ye,children:ee,required:ie,label:ge,messageVariables:$e,trigger:je="onChange",validateTrigger:N,hidden:ce,help:Xe}=m,{getPrefixCls:Ze}=v.useContext($.E_),{name:Ke}=v.useContext(I.q3),Ye=M(ee),yt=typeof Ye=="function",pe=v.useContext(I.qI),{validateTrigger:Ce}=v.useContext(E.FieldContext),Be=N!==void 0?N:Ce,bt=Bt(k),ct=Ze("form",O),[at,Jt]=q(ct),It=v.useContext(E.ListContext),Ft=v.useRef(),[Gt,Rt]=ne({}),[Yt,ln]=(0,Mt.Z)(()=>fn()),qt=Kt=>{const en=It==null?void 0:It.getKey(Kt.name);if(ln(Kt.destroy?fn():Kt,!0),re&&Xe!==!1&&pe){let hn=Kt.name;if(Kt.destroy)hn=Ft.current||hn;else if(en!==void 0){const[Pt,Zn]=en;hn=[Pt].concat((0,x.Z)(Zn)),Ft.current=hn}pe(Kt,hn)}},an=(Kt,en)=>{Rt(hn=>{const Pt=Object.assign({},hn),jn=[].concat((0,x.Z)(Kt.name.slice(0,-1)),(0,x.Z)(en)).join($t);return Kt.destroy?delete Pt[jn]:Pt[jn]=Kt,Pt})},[pt,qe]=v.useMemo(()=>{const Kt=(0,x.Z)(Yt.errors),en=(0,x.Z)(Yt.warnings);return Object.values(Gt).forEach(hn=>{Kt.push.apply(Kt,(0,x.Z)(hn.errors||[])),en.push.apply(en,(0,x.Z)(hn.warnings||[]))}),[Kt,en]},[Gt,Yt.errors,Yt.warnings]),Nt=ae();function Ot(Kt,en,hn){return re&&!ce?v.createElement(yn,{prefixCls:ct,hasFeedback:m.hasFeedback,validateStatus:m.validateStatus,meta:Yt,errors:pt,warnings:qe,noStyle:!0},Kt):v.createElement(nn,Object.assign({key:"row"},m,{className:S()(d,Jt),prefixCls:ct,fieldId:en,isRequired:hn,errors:pt,warnings:qe,meta:Yt,onSubItemMetaChange:an}),Kt)}if(!bt&&!yt&&!h)return at(Ot(Ye));let xn={};return typeof ge=="string"?xn.label=ge:k&&(xn.label=String(k)),$e&&(xn=Object.assign(Object.assign({},xn),$e)),at(v.createElement(E.Field,Object.assign({},m,{messageVariables:xn,trigger:je,validateTrigger:Be,onMetaChange:qt}),(Kt,en,hn)=>{const Pt=ue(k).length&&en?en.name:[],Zn=ze(Pt,Ke),jn=ie!==void 0?ie:!!(ye&&ye.some(Et=>{if(Et&&typeof Et=="object"&&Et.required&&!Et.warningOnly)return!0;if(typeof Et=="function"){const rn=Et(hn);return rn&&rn.required&&!rn.warningOnly}return!1})),Tt=Object.assign({},Kt);let St=null;if(Array.isArray(Ye)&&bt)St=Ye;else if(!(yt&&(!(B||h)||bt))){if(!(h&&!yt&&!bt))if((0,Ht.l$)(Ye)){const Et=Object.assign(Object.assign({},Ye.props),Tt);if(Et.id||(Et.id=Zn),Xe||pt.length>0||qe.length>0||m.extra){const Qt=[];(Xe||pt.length>0)&&Qt.push(`${Zn}_help`),m.extra&&Qt.push(`${Zn}_extra`),Et["aria-describedby"]=Qt.join(" ")}pt.length>0&&(Et["aria-invalid"]="true"),jn&&(Et["aria-required"]="true"),(0,st.Yr)(Ye)&&(Et.ref=Nt(Pt,Ye)),new Set([].concat((0,x.Z)(ue(je)),(0,x.Z)(ue(Be)))).forEach(Qt=>{Et[Qt]=function(){for(var zt,gn,Rn,Ln,Mn,An=arguments.length,Ue=new Array(An),nt=0;nt<An;nt++)Ue[nt]=arguments[nt];(Rn=Tt[Qt])===null||Rn===void 0||(zt=Rn).call.apply(zt,[Tt].concat(Ue)),(Mn=(Ln=Ye.props)[Qt])===null||Mn===void 0||(gn=Mn).call.apply(gn,[Ln].concat(Ue))}});const sn=[Et["aria-required"],Et["aria-invalid"],Et["aria-describedby"]];St=v.createElement(kt,{value:Tt[m.valuePropName||"value"],update:Ye,childProps:sn},(0,Ht.Tm)(Ye,Et))}else yt&&(B||h)&&!bt?St=Ye(hn):St=Ye}return Ot(St,Zn,jn)}))}const bn=Ut;bn.useStatus=w;var dn=bn,Tn=function(m,k){var re={};for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&k.indexOf(d)<0&&(re[d]=m[d]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,d=Object.getOwnPropertySymbols(m);h<d.length;h++)k.indexOf(d[h])<0&&Object.prototype.propertyIsEnumerable.call(m,d[h])&&(re[d[h]]=m[d[h]]);return re},Vn=m=>{var{prefixCls:k,children:re}=m,d=Tn(m,["prefixCls","children"]);const{getPrefixCls:h}=v.useContext($.E_),O=h("form",k),B=v.useMemo(()=>({prefixCls:O,status:"error"}),[O]);return v.createElement(E.List,Object.assign({},d),(ye,ee,ie)=>v.createElement(I.Rk.Provider,{value:B},re(ye.map(ge=>Object.assign(Object.assign({},ge),{fieldKey:ge.key})),ee,{errors:ie.errors,warnings:ie.warnings})))};function wn(){const{form:m}=(0,v.useContext)(I.q3);return m}const ut=rt;ut.Item=dn,ut.List=Vn,ut.ErrorList=R,ut.useForm=Te,ut.useFormInstance=wn,ut.useWatch=E.useWatch,ut.Provider=I.RV,ut.create=()=>{};var ot=ut},9432:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return be},n:function(){return Ve}});var x=c(19248),W=c(92310),S=c.n(W),X=c(93681),v=c(8654),P=c(59301),I=c(19080),K=c(36355),se=c(1684),p=c(19716),xe=c(32441),D=c(33234),me=c(59412),j=c(9937);function ve(te){return!!(te.prefix||te.suffix||te.allowClear)}var We=function(te,J){var C={};for(var f in te)Object.prototype.hasOwnProperty.call(te,f)&&J.indexOf(f)<0&&(C[f]=te[f]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,f=Object.getOwnPropertySymbols(te);b<f.length;b++)J.indexOf(f[b])<0&&Object.prototype.propertyIsEnumerable.call(te,f[b])&&(C[f[b]]=te[f[b]]);return C};function Ve(te,J){if(!te)return;te.focus(J);const{cursor:C}=J||{};if(C){const f=te.value.length;switch(C){case"start":te.setSelectionRange(0,0);break;case"end":te.setSelectionRange(f,f);break;default:te.setSelectionRange(0,f);break}}}var be=(0,P.forwardRef)((te,J)=>{var C;const{prefixCls:f,bordered:b=!0,status:T,size:q,disabled:z,onBlur:De,onFocus:oe,suffix:R,allowClear:E,addonAfter:$,addonBefore:Z,className:Y,style:G,styles:H,rootClassName:V,onChange:fe,classNames:ue}=te,ze=We(te,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:_e,direction:Se,input:Te}=P.useContext(K.E_),Me=_e("input",f),wt=(0,P.useRef)(null),[Dt,dt]=(0,j.ZP)(Me),{compactSize:rt,compactItemClassnames:Mt}=(0,D.ri)(Me,Se),st=(0,p.Z)(Re=>{var Fe;return(Fe=q!=null?q:rt)!==null&&Fe!==void 0?Fe:Re}),Ht=P.useContext(se.Z),Q=z!=null?z:Ht,{status:M,hasFeedback:F,feedbackIcon:w}=(0,P.useContext)(xe.aM),_=(0,I.F)(M,T),ne=ve(te)||!!F,ae=(0,P.useRef)(ne);(0,P.useEffect)(()=>{var Re;ne&&ae.current,ae.current=ne},[ne]);const le=(0,me.Z)(wt,!0),de=Re=>{le(),De==null||De(Re)},Ie=Re=>{le(),oe==null||oe(Re)},Ee=Re=>{le(),fe==null||fe(Re)},we=(F||R)&&P.createElement(P.Fragment,null,R,F&&w);let Ne;return typeof E=="object"&&(E!=null&&E.clearIcon)?Ne=E:E&&(Ne={clearIcon:P.createElement(x.Z,null)}),Dt(P.createElement(X.default,Object.assign({ref:(0,v.sQ)(J,wt),prefixCls:Me,autoComplete:Te==null?void 0:Te.autoComplete},ze,{disabled:Q,onBlur:de,onFocus:Ie,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),G),styles:Object.assign(Object.assign({},Te==null?void 0:Te.styles),H),suffix:we,allowClear:Ne,className:S()(Y,V,Mt,Te==null?void 0:Te.className),onChange:Ee,addonAfter:$&&P.createElement(D.BR,null,P.createElement(xe.Ux,{override:!0,status:!0},$)),addonBefore:Z&&P.createElement(D.BR,null,P.createElement(xe.Ux,{override:!0,status:!0},Z)),classNames:Object.assign(Object.assign(Object.assign({},ue),Te==null?void 0:Te.classNames),{input:S()({[`${Me}-sm`]:st==="small",[`${Me}-lg`]:st==="large",[`${Me}-rtl`]:Se==="rtl",[`${Me}-borderless`]:!b},!ne&&(0,I.Z)(Me,_),ue==null?void 0:ue.input,(C=Te==null?void 0:Te.classNames)===null||C===void 0?void 0:C.input,dt)}),classes:{affixWrapper:S()({[`${Me}-affix-wrapper-sm`]:st==="small",[`${Me}-affix-wrapper-lg`]:st==="large",[`${Me}-affix-wrapper-rtl`]:Se==="rtl",[`${Me}-affix-wrapper-borderless`]:!b},(0,I.Z)(`${Me}-affix-wrapper`,_,F),dt),wrapper:S()({[`${Me}-group-rtl`]:Se==="rtl"},dt),group:S()({[`${Me}-group-wrapper-sm`]:st==="small",[`${Me}-group-wrapper-lg`]:st==="large",[`${Me}-group-wrapper-rtl`]:Se==="rtl",[`${Me}-group-wrapper-disabled`]:Q},(0,I.Z)(`${Me}-group-wrapper`,_,F),dt)}})))})},1643:function(tn,Le,c){"use strict";var x=c(19248),W=c(92310),S=c.n(W),X=c(9296),v=c(59301),P=c(19080),I=c(36355),K=c(1684),se=c(19716),p=c(32441),xe=c(9432),D=c(9937),me=function(ve,We){var Ve={};for(var Pe in ve)Object.prototype.hasOwnProperty.call(ve,Pe)&&We.indexOf(Pe)<0&&(Ve[Pe]=ve[Pe]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,Pe=Object.getOwnPropertySymbols(ve);be<Pe.length;be++)We.indexOf(Pe[be])<0&&Object.prototype.propertyIsEnumerable.call(ve,Pe[be])&&(Ve[Pe[be]]=ve[Pe[be]]);return Ve};const j=(0,v.forwardRef)((ve,We)=>{const{prefixCls:Ve,bordered:Pe=!0,size:be,disabled:te,status:J,allowClear:C,showCount:f,classNames:b,rootClassName:T,className:q}=ve,z=me(ve,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:De,direction:oe}=v.useContext(I.E_),R=(0,se.Z)(be),E=v.useContext(K.Z),$=te!=null?te:E,{status:Z,hasFeedback:Y,feedbackIcon:G}=v.useContext(p.aM),H=(0,P.F)(Z,J),V=v.useRef(null);v.useImperativeHandle(We,()=>{var Se;return{resizableTextArea:(Se=V.current)===null||Se===void 0?void 0:Se.resizableTextArea,focus:Te=>{var Me,wt;(0,xe.n)((wt=(Me=V.current)===null||Me===void 0?void 0:Me.resizableTextArea)===null||wt===void 0?void 0:wt.textArea,Te)},blur:()=>{var Te;return(Te=V.current)===null||Te===void 0?void 0:Te.blur()}}});const fe=De("input",Ve);let ue;typeof C=="object"&&(C!=null&&C.clearIcon)?ue=C:C&&(ue={clearIcon:v.createElement(x.Z,null)});const[ze,_e]=(0,D.ZP)(fe);return ze(v.createElement(X.default,Object.assign({},z,{disabled:$,allowClear:ue,className:S()(q,T),classes:{affixWrapper:S()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:oe==="rtl",[`${fe}-affix-wrapper-borderless`]:!Pe,[`${fe}-affix-wrapper-sm`]:R==="small",[`${fe}-affix-wrapper-lg`]:R==="large",[`${fe}-textarea-show-count`]:f},(0,P.Z)(`${fe}-affix-wrapper`,H),_e)},classNames:Object.assign(Object.assign({},b),{textarea:S()({[`${fe}-borderless`]:!Pe,[`${fe}-sm`]:R==="small",[`${fe}-lg`]:R==="large"},(0,P.Z)(fe,H),_e,b==null?void 0:b.textarea)}),prefixCls:fe,suffix:Y&&v.createElement("span",{className:`${fe}-textarea-suffix`},G),showCount:f,ref:V})))});Le.Z=j},59412:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return W}});var x=c(59301);function W(S,X){const v=(0,x.useRef)([]),P=()=>{v.current.push(setTimeout(()=>{var I,K,se,p;!((I=S.current)===null||I===void 0)&&I.input&&((K=S.current)===null||K===void 0?void 0:K.input.getAttribute("type"))==="password"&&(!((se=S.current)===null||se===void 0)&&se.input.hasAttribute("value"))&&((p=S.current)===null||p===void 0||p.input.removeAttribute("value"))}))};return(0,x.useEffect)(()=>(X&&P(),()=>v.current.forEach(I=>{I&&clearTimeout(I)})),[]),P}},92832:function(tn,Le,c){"use strict";c.d(Le,{default:function(){return R}});var x=c(92310),W=c.n(x),S=c(59301),X=c(36355),v=c(32441),P=c(9937),K=E=>{const{getPrefixCls:$,direction:Z}=(0,S.useContext)(X.E_),{prefixCls:Y,className:G}=E,H=$("input-group",Y),V=$("input"),[fe,ue]=(0,P.ZP)(V),ze=W()(H,{[`${H}-lg`]:E.size==="large",[`${H}-sm`]:E.size==="small",[`${H}-compact`]:E.compact,[`${H}-rtl`]:Z==="rtl"},ue,G),_e=(0,S.useContext)(v.aM),Se=(0,S.useMemo)(()=>Object.assign(Object.assign({},_e),{isFormItemInput:!1}),[_e]);return fe(S.createElement("span",{className:ze,style:E.style,onMouseEnter:E.onMouseEnter,onMouseLeave:E.onMouseLeave,onFocus:E.onFocus,onBlur:E.onBlur},S.createElement(v.aM.Provider,{value:Se},E.children)))},se=c(9432),p=c(73331),xe=c(15277),D=c(2738),me=c(8654),j=c(59412),ve=function(E,$){var Z={};for(var Y in E)Object.prototype.hasOwnProperty.call(E,Y)&&$.indexOf(Y)<0&&(Z[Y]=E[Y]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,Y=Object.getOwnPropertySymbols(E);G<Y.length;G++)$.indexOf(Y[G])<0&&Object.prototype.propertyIsEnumerable.call(E,Y[G])&&(Z[Y[G]]=E[Y[G]]);return Z};const We=E=>E?S.createElement(xe.Z,null):S.createElement(p.Z,null),Ve={click:"onClick",hover:"onMouseOver"};var be=S.forwardRef((E,$)=>{const{visibilityToggle:Z=!0}=E,Y=typeof Z=="object"&&Z.visible!==void 0,[G,H]=(0,S.useState)(()=>Y?Z.visible:!1),V=(0,S.useRef)(null);S.useEffect(()=>{Y&&H(Z.visible)},[Y,Z]);const fe=(0,j.Z)(V),ue=()=>{const{disabled:Q}=E;Q||(G&&fe(),H(M=>{var F;const w=!M;return typeof Z=="object"&&((F=Z.onVisibleChange)===null||F===void 0||F.call(Z,w)),w}))},ze=Q=>{const{action:M="click",iconRender:F=We}=E,w=Ve[M]||"",_=F(G),ne={[w]:ue,className:`${Q}-icon`,key:"passwordIcon",onMouseDown:ae=>{ae.preventDefault()},onMouseUp:ae=>{ae.preventDefault()}};return S.cloneElement(S.isValidElement(_)?_:S.createElement("span",null,_),ne)},{className:_e,prefixCls:Se,inputPrefixCls:Te,size:Me}=E,wt=ve(E,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Dt}=S.useContext(X.E_),dt=Dt("input",Te),rt=Dt("input-password",Se),Mt=Z&&ze(rt),st=W()(rt,_e,{[`${rt}-${Me}`]:!!Me}),Ht=Object.assign(Object.assign({},(0,D.Z)(wt,["suffix","iconRender","visibilityToggle"])),{type:G?"text":"password",className:st,prefixCls:dt,suffix:Mt});return Me&&(Ht.size=Me),S.createElement(se.Z,Object.assign({ref:(0,me.sQ)($,V)},Ht))}),te=c(47472),J=c(92343),C=c(3113),f=c(19716),b=c(33234),T=function(E,$){var Z={};for(var Y in E)Object.prototype.hasOwnProperty.call(E,Y)&&$.indexOf(Y)<0&&(Z[Y]=E[Y]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,Y=Object.getOwnPropertySymbols(E);G<Y.length;G++)$.indexOf(Y[G])<0&&Object.prototype.propertyIsEnumerable.call(E,Y[G])&&(Z[Y[G]]=E[Y[G]]);return Z},z=S.forwardRef((E,$)=>{const{prefixCls:Z,inputPrefixCls:Y,className:G,size:H,suffix:V,enterButton:fe=!1,addonAfter:ue,loading:ze,disabled:_e,onSearch:Se,onChange:Te,onCompositionStart:Me,onCompositionEnd:wt}=E,Dt=T(E,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:dt,direction:rt}=S.useContext(X.E_),Mt=S.useRef(!1),st=dt("input-search",Z),Ht=dt("input",Y),{compactSize:Q}=(0,b.ri)(st,rt),M=(0,f.Z)(U=>{var Ge;return(Ge=H!=null?H:Q)!==null&&Ge!==void 0?Ge:U}),F=S.useRef(null),w=U=>{U&&U.target&&U.type==="click"&&Se&&Se(U.target.value,U,{source:"clear"}),Te&&Te(U)},_=U=>{var Ge;document.activeElement===((Ge=F.current)===null||Ge===void 0?void 0:Ge.input)&&U.preventDefault()},ne=U=>{var Ge,Qe;Se&&Se((Qe=(Ge=F.current)===null||Ge===void 0?void 0:Ge.input)===null||Qe===void 0?void 0:Qe.value,U,{source:"input"})},ae=U=>{Mt.current||ze||ne(U)},le=typeof fe=="boolean"?S.createElement(te.Z,null):null,de=`${st}-button`;let Ie;const Ee=fe||{},we=Ee.type&&Ee.type.__ANT_BUTTON===!0;we||Ee.type==="button"?Ie=(0,J.Tm)(Ee,Object.assign({onMouseDown:_,onClick:U=>{var Ge,Qe;(Qe=(Ge=Ee==null?void 0:Ee.props)===null||Ge===void 0?void 0:Ge.onClick)===null||Qe===void 0||Qe.call(Ge,U),ne(U)},key:"enterButton"},we?{className:de,size:M}:{})):Ie=S.createElement(C.ZP,{className:de,type:fe?"primary":void 0,size:M,disabled:_e,key:"enterButton",onMouseDown:_,onClick:ne,loading:ze,icon:le},fe),ue&&(Ie=[Ie,(0,J.Tm)(ue,{key:"addonAfter"})]);const Ne=W()(st,{[`${st}-rtl`]:rt==="rtl",[`${st}-${M}`]:!!M,[`${st}-with-button`]:!!fe},G),Re=U=>{Mt.current=!0,Me==null||Me(U)},Fe=U=>{Mt.current=!1,wt==null||wt(U)};return S.createElement(se.Z,Object.assign({ref:(0,me.sQ)(F,$),onPressEnter:ae},Dt,{size:M,onCompositionStart:Re,onCompositionEnd:Fe,prefixCls:Ht,addonAfter:Ie,suffix:V,onChange:w,className:Ne,disabled:_e}))}),De=c(1643);const oe=se.Z;oe.Group=K,oe.Search=z,oe.TextArea=De.Z,oe.Password=be;var R=oe},9937:function(tn,Le,c){"use strict";c.d(Le,{M1:function(){return I},TM:function(){return J},Xy:function(){return K},bi:function(){return xe},e5:function(){return te},ik:function(){return D},nz:function(){return v},pU:function(){return P},s7:function(){return me},x0:function(){return p}});var x=c(17313),W=c(74207),S=c(37613),X=c(83116);const v=C=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:C,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),P=C=>({borderColor:C.hoverBorderColor}),I=C=>({borderColor:C.activeBorderColor,boxShadow:C.activeShadow,outline:0}),K=C=>({color:C.colorTextDisabled,backgroundColor:C.colorBgContainerDisabled,borderColor:C.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},P((0,S.TS)(C,{hoverBorderColor:C.colorBorder})))}),se=C=>{const{paddingBlockLG:f,fontSizeLG:b,lineHeightLG:T,borderRadiusLG:q,paddingInlineLG:z}=C;return{padding:`${f}px ${z}px`,fontSize:b,lineHeight:T,borderRadius:q}},p=C=>({padding:`${C.paddingBlockSM}px ${C.paddingInlineSM}px`,borderRadius:C.borderRadiusSM}),xe=(C,f)=>{const{componentCls:b,colorError:T,colorWarning:q,errorActiveShadow:z,warningActiveShadow:De,colorErrorBorderHover:oe,colorWarningBorderHover:R}=C;return{[`&-status-error:not(${f}-disabled):not(${f}-borderless)${f}`]:{borderColor:T,"&:hover":{borderColor:oe},"&:focus, &-focused":Object.assign({},I((0,S.TS)(C,{activeBorderColor:T,activeShadow:z}))),[`${b}-prefix, ${b}-suffix`]:{color:T}},[`&-status-warning:not(${f}-disabled):not(${f}-borderless)${f}`]:{borderColor:q,"&:hover":{borderColor:R},"&:focus, &-focused":Object.assign({},I((0,S.TS)(C,{activeBorderColor:q,activeShadow:De}))),[`${b}-prefix, ${b}-suffix`]:{color:q}}}},D=C=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${C.paddingBlock}px ${C.paddingInline}px`,color:C.colorText,fontSize:C.fontSize,lineHeight:C.lineHeight,backgroundColor:C.colorBgContainer,backgroundImage:"none",borderWidth:C.lineWidth,borderStyle:C.lineType,borderColor:C.colorBorder,borderRadius:C.borderRadius,transition:`all ${C.motionDurationMid}`},v(C.colorTextPlaceholder)),{"&:hover":Object.assign({},P(C)),"&:focus, &-focused":Object.assign({},I(C)),"&-disabled, &[disabled]":Object.assign({},K(C)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:C.controlHeight,lineHeight:C.lineHeight,verticalAlign:"bottom",transition:`all ${C.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},se(C)),"&-sm":Object.assign({},p(C)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),me=C=>{const{componentCls:f,antCls:b}=C;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:C.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${f}, &-lg > ${f}-group-addon`]:Object.assign({},se(C)),[`&-sm ${f}, &-sm > ${f}-group-addon`]:Object.assign({},p(C)),[`&-lg ${b}-select-single ${b}-select-selector`]:{height:C.controlHeightLG},[`&-sm ${b}-select-single ${b}-select-selector`]:{height:C.controlHeightSM},[`> ${f}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${f}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${C.paddingInline}px`,color:C.colorText,fontWeight:"normal",fontSize:C.fontSize,textAlign:"center",backgroundColor:C.colorFillAlter,border:`${C.lineWidth}px ${C.lineType} ${C.colorBorder}`,borderRadius:C.borderRadius,transition:`all ${C.motionDurationSlow}`,lineHeight:1,[`${b}-select`]:{margin:`-${C.paddingBlock+1}px -${C.paddingInline}px`,[`&${b}-select-single:not(${b}-select-customize-input)`]:{[`${b}-select-selector`]:{backgroundColor:"inherit",border:`${C.lineWidth}px ${C.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${b}-select-selector`]:{color:C.colorPrimary}}},[`${b}-cascader-picker`]:{margin:`-9px -${C.paddingInline}px`,backgroundColor:"transparent",[`${b}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${f}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${f}-search-with-button &`]:{zIndex:0}}},[`> ${f}:first-child, ${f}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${f}-affix-wrapper`]:{[`&:not(:first-child) ${f}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${f}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${f}:last-child, ${f}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${b}-select ${b}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${f}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${f}-search &`]:{borderStartStartRadius:C.borderRadius,borderEndStartRadius:C.borderRadius}},[`&:not(:first-child), ${f}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${f}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,x.dF)()),{[`${f}-group-addon, ${f}-group-wrap, > ${f}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:C.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${f}-affix-wrapper,
& > ${f}-number-affix-wrapper,
& > ${b}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-C.lineWidth,borderInlineEndWidth:C.lineWidth},[`${f}`]:{float:"none"},[`& > ${b}-select > ${b}-select-selector,
& > ${b}-select-auto-complete ${f},
& > ${b}-cascader-picker ${f},
& > ${f}-group-wrapper ${f}`]:{borderInlineEndWidth:C.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${b}-select-focused`]:{zIndex:1},[`& > ${b}-select > ${b}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${b}-select:first-child > ${b}-select-selector,
& > ${b}-select-auto-complete:first-child ${f},
& > ${b}-cascader-picker:first-child ${f}`]:{borderStartStartRadius:C.borderRadius,borderEndStartRadius:C.borderRadius},[`& > *:last-child,
& > ${b}-select:last-child > ${b}-select-selector,
& > ${b}-cascader-picker:last-child ${f},
& > ${b}-cascader-picker-focused:last-child ${f}`]:{borderInlineEndWidth:C.lineWidth,borderStartEndRadius:C.borderRadius,borderEndEndRadius:C.borderRadius},[`& > ${b}-select-auto-complete ${f}`]:{verticalAlign:"top"},[`${f}-group-wrapper + ${f}-group-wrapper`]:{marginInlineStart:-C.lineWidth,[`${f}-affix-wrapper`]:{borderRadius:0}},[`${f}-group-wrapper:not(:last-child)`]:{[`&${f}-search > ${f}-group`]:{[`& > ${f}-group-addon > ${f}-search-button`]:{borderRadius:0},[`& > ${f}`]:{borderStartStartRadius:C.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:C.borderRadius}}}})}},j=C=>{const{componentCls:f,controlHeightSM:b,lineWidth:T}=C,z=(b-T*2-16)/2;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,x.Wf)(C)),D(C)),xe(C,f)),{'&[type="color"]':{height:C.controlHeight,[`&${f}-lg`]:{height:C.controlHeightLG},[`&${f}-sm`]:{height:b,paddingTop:z,paddingBottom:z}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},ve=C=>{const{componentCls:f}=C;return{[`${f}-clear-icon`]:{margin:0,color:C.colorTextQuaternary,fontSize:C.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${C.motionDurationSlow}`,"&:hover":{color:C.colorTextTertiary},"&:active":{color:C.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${C.inputAffixPadding}px`}}}},We=C=>{const{componentCls:f,inputAffixPadding:b,colorTextDescription:T,motionDurationSlow:q,colorIcon:z,colorIconHover:De,iconCls:oe}=C;return{[`${f}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},D(C)),{display:"inline-flex",[`&:not(${f}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},P(C)),{zIndex:1,[`${f}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${f}[disabled]`]:{background:"transparent"}},[`> input${f}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${f}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:C.paddingXS}},"&-show-count-suffix":{color:T},"&-show-count-has-suffix":{marginInlineEnd:C.paddingXXS},"&-prefix":{marginInlineEnd:b},"&-suffix":{marginInlineStart:b}}}),ve(C)),{[`${oe}${f}-password-icon`]:{color:z,cursor:"pointer",transition:`all ${q}`,"&:hover":{color:De}}}),xe(C,`${f}-affix-wrapper`))}},Ve=C=>{const{componentCls:f,colorError:b,colorWarning:T,borderRadiusLG:q,borderRadiusSM:z}=C;return{[`${f}-group`]:Object.assign(Object.assign(Object.assign({},(0,x.Wf)(C)),me(C)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${f}-group-addon`]:{borderRadius:q,fontSize:C.fontSizeLG}},"&-sm":{[`${f}-group-addon`]:{borderRadius:z}},"&-status-error":{[`${f}-group-addon`]:{color:b,borderColor:b}},"&-status-warning":{[`${f}-group-addon`]:{color:T,borderColor:T}},"&-disabled":{[`${f}-group-addon`]:Object.assign({},K(C))},[`&:not(${f}-compact-first-item):not(${f}-compact-last-item)${f}-compact-item`]:{[`${f}, ${f}-group-addon`]:{borderRadius:0}},[`&:not(${f}-compact-last-item)${f}-compact-first-item`]:{[`${f}, ${f}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${f}-compact-first-item)${f}-compact-last-item`]:{[`${f}, ${f}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Pe=C=>{const{componentCls:f,antCls:b}=C,T=`${f}-search`;return{[T]:{[`${f}`]:{"&:hover, &:focus":{borderColor:C.colorPrimaryHover,[`+ ${f}-group-addon ${T}-button:not(${b}-btn-primary)`]:{borderInlineStartColor:C.colorPrimaryHover}}},[`${f}-affix-wrapper`]:{borderRadius:0},[`${f}-lg`]:{lineHeight:C.lineHeightLG-2e-4},[`> ${f}-group`]:{[`> ${f}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${T}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:C.borderRadius,borderEndEndRadius:C.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${T}-button:not(${b}-btn-primary)`]:{color:C.colorTextDescription,"&:hover":{color:C.colorPrimaryHover},"&:active":{color:C.colorPrimaryActive},[`&${b}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${T}-button`]:{height:C.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${T}-button`]:{height:C.controlHeightLG},[`&-small ${T}-button`]:{height:C.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${f}-compact-item`]:{[`&:not(${f}-compact-last-item)`]:{[`${f}-group-addon`]:{[`${f}-search-button`]:{marginInlineEnd:-C.lineWidth,borderRadius:0}}},[`&:not(${f}-compact-first-item)`]:{[`${f},${f}-affix-wrapper`]:{borderRadius:0}},[`> ${f}-group-addon ${f}-search-button,
> ${f},
${f}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${f}-affix-wrapper-focused`]:{zIndex:2}}}}},be=C=>{const{componentCls:f,paddingLG:b}=C,T=`${f}-textarea`;return{[T]:{position:"relative","&-show-count":{[`> ${f}`]:{height:"100%"},[`${f}-data-count`]:{position:"absolute",bottom:-C.fontSize*C.lineHeight,insetInlineEnd:0,color:C.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${f}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${T}-has-feedback`]:{[`${f}`]:{paddingInlineEnd:b}},[`&-affix-wrapper${f}-affix-wrapper`]:{padding:0,[`> textarea${f}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${f}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${f}-clear-icon`]:{position:"absolute",insetInlineEnd:C.paddingXS,insetBlockStart:C.paddingXS},[`${T}-suffix`]:{position:"absolute",top:0,insetInlineEnd:C.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function te(C){return(0,S.TS)(C,{inputAffixPadding:C.paddingXXS})}const J=C=>{const{controlHeight:f,fontSize:b,lineHeight:T,lineWidth:q,controlHeightSM:z,controlHeightLG:De,fontSizeLG:oe,lineHeightLG:R,paddingSM:E,controlPaddingHorizontalSM:$,controlPaddingHorizontal:Z,colorFillAlter:Y,colorPrimaryHover:G,controlOutlineWidth:H,controlOutline:V,colorErrorOutline:fe,colorWarningOutline:ue}=C;return{paddingBlock:Math.max(Math.round((f-b*T)/2*10)/10-q,3),paddingBlockSM:Math.max(Math.round((z-b*T)/2*10)/10-q,0),paddingBlockLG:Math.ceil((De-oe*R)/2*10)/10-q,paddingInline:E-q,paddingInlineSM:$-q,paddingInlineLG:Z-q,addonBg:Y,activeBorderColor:G,hoverBorderColor:G,activeShadow:`0 0 0 ${H}px ${V}`,errorActiveShadow:`0 0 0 ${H}px ${fe}`,warningActiveShadow:`0 0 0 ${H}px ${ue}`}};Le.ZP=(0,X.Z)("Input",C=>{const f=(0,S.TS)(C,te(C));return[j(f),be(f),We(f),Ve(f),Pe(f),(0,W.c)(f)]},J)},57809:function(tn,Le,c){"use strict";var x=c(92310),W=c.n(x),S=c(77861),X=c(2738),v=c(59301),P=c(53487),I=c(62892),K=c(19080),se=c(36355),p=c(1684),xe=c(93891),D=c(19716),me=c(32441),j=c(33234),ve=c(14154),We=c(58582),Ve=c(84443),Pe=c(66339),be=function(b,T){var q={};for(var z in b)Object.prototype.hasOwnProperty.call(b,z)&&T.indexOf(z)<0&&(q[z]=b[z]);if(b!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,z=Object.getOwnPropertySymbols(b);De<z.length;De++)T.indexOf(z[De])<0&&Object.prototype.propertyIsEnumerable.call(b,z[De])&&(q[z[De]]=b[z[De]]);return q};const te="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(b,T)=>{var q,{prefixCls:z,bordered:De=!0,className:oe,rootClassName:R,getPopupContainer:E,popupClassName:$,dropdownClassName:Z,listHeight:Y=256,placement:G,listItemHeight:H=24,size:V,disabled:fe,notFoundContent:ue,status:ze,builtinPlacements:_e,dropdownMatchSelectWidth:Se,popupMatchSelectWidth:Te,direction:Me,style:wt,allowClear:Dt}=b,dt=be(b,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:rt,getPrefixCls:Mt,renderEmpty:st,direction:Ht,virtual:Q,popupMatchSelectWidth:M,popupOverflow:F,select:w}=v.useContext(se.E_),_=Mt("select",z),ne=Mt(),ae=Me!=null?Me:Ht,{compactSize:le,compactItemClassnames:de}=(0,j.ri)(_,ae),[Ie,Ee]=(0,ve.Z)(_),we=v.useMemo(()=>{const{mode:kt}=dt;if(kt!=="combobox")return kt===te?"combobox":kt},[dt.mode]),Ne=we==="multiple"||we==="tags",Re=(0,Ve.Z)(dt.suffixIcon,dt.showArrow),Fe=(q=Te!=null?Te:Se)!==null&&q!==void 0?q:M,{status:U,hasFeedback:Ge,isFormItemInput:Qe,feedbackIcon:Ae}=v.useContext(me.aM),Je=(0,K.F)(U,ze);let it;ue!==void 0?it=ue:we==="combobox"?it=null:it=(st==null?void 0:st("Select"))||v.createElement(xe.Z,{componentName:"Select"});const{suffixIcon:ke,itemIcon:Zt,removeIcon:vt,clearIcon:Wt}=(0,Pe.Z)(Object.assign(Object.assign({},dt),{multiple:Ne,hasFeedback:Ge,feedbackIcon:Ae,showSuffixIcon:Re,prefixCls:_,showArrow:dt.showArrow,componentName:"Select"})),jt=Dt===!0?{clearIcon:Wt}:Dt,mn=(0,X.Z)(dt,["suffixIcon","itemIcon"]),_t=W()($||Z,{[`${_}-dropdown-${ae}`]:ae==="rtl"},R,Ee),cn=(0,D.Z)(kt=>{var Bt;return(Bt=V!=null?V:le)!==null&&Bt!==void 0?Bt:kt}),yn=v.useContext(p.Z),On=fe!=null?fe:yn,nn=W()({[`${_}-lg`]:cn==="large",[`${_}-sm`]:cn==="small",[`${_}-rtl`]:ae==="rtl",[`${_}-borderless`]:!De,[`${_}-in-form-item`]:Qe},(0,K.Z)(_,Je,Ge),de,w==null?void 0:w.className,oe,R,Ee),$t=v.useMemo(()=>G!==void 0?G:ae==="rtl"?"bottomRight":"bottomLeft",[G,ae]),on=(0,We.Z)(_e,F);return Ie(v.createElement(S.ZP,Object.assign({ref:T,virtual:Q,showSearch:w==null?void 0:w.showSearch},mn,{style:Object.assign(Object.assign({},w==null?void 0:w.style),wt),dropdownMatchSelectWidth:Fe,builtinPlacements:on,transitionName:(0,I.m)(ne,"slide-up",dt.transitionName),listHeight:Y,listItemHeight:H,mode:we,prefixCls:_,placement:$t,direction:ae,suffixIcon:ke,menuItemSelectedIcon:Zt,removeIcon:vt,allowClear:jt,notFoundContent:it,className:nn,getPopupContainer:E||rt,dropdownClassName:_t,disabled:On})))},C=v.forwardRef(J),f=(0,P.Z)(C);C.SECRET_COMBOBOX_MODE_DO_NOT_USE=te,C.Option=S.Wx,C.OptGroup=S.Xo,C._InternalPanelDoNotUseOrYouWillBeFired=f,Le.default=C},14154:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return C}});var x=c(17313),W=c(74207),S=c(37613),X=c(83116),v=c(13826),P=c(92899);const I=f=>{const{optionHeight:b,optionFontSize:T,optionLineHeight:q,optionPadding:z}=f;return{position:"relative",display:"block",minHeight:b,padding:z,color:f.colorText,fontWeight:"normal",fontSize:T,lineHeight:q,boxSizing:"border-box"}};var se=f=>{const{antCls:b,componentCls:T}=f,q=`${T}-item`,z=`&${b}-slide-up-enter${b}-slide-up-enter-active`,De=`&${b}-slide-up-appear${b}-slide-up-appear-active`,oe=`&${b}-slide-up-leave${b}-slide-up-leave-active`,R=`${T}-dropdown-placement-`;return[{[`${T}-dropdown`]:Object.assign(Object.assign({},(0,x.Wf)(f)),{position:"absolute",top:-9999,zIndex:f.zIndexPopup,boxSizing:"border-box",padding:f.paddingXXS,overflow:"hidden",fontSize:f.fontSize,fontVariant:"initial",backgroundColor:f.colorBgElevated,borderRadius:f.borderRadiusLG,outline:"none",boxShadow:f.boxShadowSecondary,[`
${z}${R}bottomLeft,
${De}${R}bottomLeft
`]:{animationName:v.fJ},[`
${z}${R}topLeft,
${De}${R}topLeft,
${z}${R}topRight,
${De}${R}topRight
`]:{animationName:v.Qt},[`${oe}${R}bottomLeft`]:{animationName:v.Uw},[`
${oe}${R}topLeft,
${oe}${R}topRight
`]:{animationName:v.ly},"&-hidden":{display:"none"},[`${q}`]:Object.assign(Object.assign({},I(f)),{cursor:"pointer",transition:`background ${f.motionDurationSlow} ease`,borderRadius:f.borderRadiusSM,"&-group":{color:f.colorTextDescription,fontSize:f.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},x.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${q}-option-disabled)`]:{backgroundColor:f.optionActiveBg},[`&-selected:not(${q}-option-disabled)`]:{color:f.optionSelectedColor,fontWeight:f.optionSelectedFontWeight,backgroundColor:f.optionSelectedBg,[`${q}-option-state`]:{color:f.colorPrimary}},"&-disabled":{[`&${q}-option-selected`]:{backgroundColor:f.colorBgContainerDisabled},color:f.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:f.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,v.oN)(f,"slide-up"),(0,v.oN)(f,"slide-down"),(0,P.Fm)(f,"move-up"),(0,P.Fm)(f,"move-down")]};const p=2,xe=f=>{let{controlHeightSM:b,controlHeight:T,lineWidth:q}=f;const z=(T-b)/2-q,De=Math.ceil(z/2);return[z,De]};function D(f,b){const{componentCls:T,iconCls:q}=f,z=`${T}-selection-overflow`,De=f.multipleSelectItemHeight,[oe]=xe(f),R=b?`${T}-${b}`:"";return{[`${T}-multiple${R}`]:{fontSize:f.fontSize,[z]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${T}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${oe-p}px ${p*2}px`,borderRadius:f.borderRadius,[`${T}-show-search&`]:{cursor:"text"},[`${T}-disabled&`]:{background:f.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${p}px 0`,lineHeight:`${De}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${T}-show-arrow ${T}-selector,
&${T}-allow-clear ${T}-selector
`]:{paddingInlineEnd:f.fontSizeIcon+f.controlPaddingHorizontal},[`${T}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:De,marginTop:p,marginBottom:p,lineHeight:`${De-f.lineWidth*2}px`,background:f.multipleItemBg,border:`${f.lineWidth}px ${f.lineType} ${f.multipleItemBorderColor}`,borderRadius:f.borderRadiusSM,cursor:"default",transition:`font-size ${f.motionDurationSlow}, line-height ${f.motionDurationSlow}, height ${f.motionDurationSlow}`,userSelect:"none",marginInlineEnd:p*2,paddingInlineStart:f.paddingXS,paddingInlineEnd:f.paddingXS/2,[`${T}-disabled&`]:{color:f.multipleItemColorDisabled,borderColor:f.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:f.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,x.Ro)()),{display:"inline-flex",alignItems:"center",color:f.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${q}`]:{verticalAlign:"-0.2em"},"&:hover":{color:f.colorIconHover}})},[`${z}-item + ${z}-item`]:{[`${T}-selection-search`]:{marginInlineStart:0}},[`${T}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:f.inputPaddingHorizontalBase-oe,"\n &-input,\n &-mirror\n ":{height:De,fontFamily:f.fontFamily,lineHeight:`${De}px`,transition:`all ${f.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${T}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:f.inputPaddingHorizontalBase,insetInlineEnd:f.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${f.motionDurationSlow}`}}}}var j=f=>{const{componentCls:b}=f,T=(0,S.TS)(f,{controlHeight:f.controlHeightSM,multipleSelectItemHeight:f.controlHeightXS,borderRadius:f.borderRadiusSM,borderRadiusSM:f.borderRadiusXS}),q=(0,S.TS)(f,{fontSize:f.fontSizeLG,controlHeight:f.controlHeightLG,multipleSelectItemHeight:f.multipleItemHeightLG,borderRadius:f.borderRadiusLG,borderRadiusSM:f.borderRadius}),[,z]=xe(f);return[D(f),D(T,"sm"),{[`${b}-multiple${b}-sm`]:{[`${b}-selection-placeholder`]:{insetInline:f.controlPaddingHorizontalSM-f.lineWidth},[`${b}-selection-search`]:{marginInlineStart:z}}},D(q,"lg")]};function ve(f,b){const{componentCls:T,inputPaddingHorizontalBase:q,borderRadius:z}=f,De=f.controlHeight-f.lineWidth*2,oe=Math.ceil(f.fontSize*1.25),R=b?`${T}-${b}`:"";return{[`${T}-single${R}`]:{fontSize:f.fontSize,[`${T}-selector`]:Object.assign(Object.assign({},(0,x.Wf)(f)),{display:"flex",borderRadius:z,[`${T}-selection-search`]:{position:"absolute",top:0,insetInlineStart:q,insetInlineEnd:q,bottom:0,"&-input":{width:"100%"}},[`
${T}-selection-item,
${T}-selection-placeholder
`]:{padding:0,lineHeight:`${De}px`,transition:`all ${f.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${De}px`}},[`${T}-selection-item`]:{position:"relative",userSelect:"none"},[`${T}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${T}-selection-item:after`,`${T}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${T}-show-arrow ${T}-selection-item,
&${T}-show-arrow ${T}-selection-placeholder
`]:{paddingInlineEnd:oe},[`&${T}-open ${T}-selection-item`]:{color:f.colorTextPlaceholder},[`&:not(${T}-customize-input)`]:{[`${T}-selector`]:{width:"100%",height:f.controlHeight,padding:`0 ${q}px`,[`${T}-selection-search-input`]:{height:De},"&:after":{lineHeight:`${De}px`}}},[`&${T}-customize-input`]:{[`${T}-selector`]:{"&:after":{display:"none"},[`${T}-selection-search`]:{position:"static",width:"100%"},[`${T}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${q}px`,"&:after":{display:"none"}}}}}}}function We(f){const{componentCls:b}=f,T=f.controlPaddingHorizontalSM-f.lineWidth;return[ve(f),ve((0,S.TS)(f,{controlHeight:f.controlHeightSM,borderRadius:f.borderRadiusSM}),"sm"),{[`${b}-single${b}-sm`]:{[`&:not(${b}-customize-input)`]:{[`${b}-selection-search`]:{insetInlineStart:T,insetInlineEnd:T},[`${b}-selector`]:{padding:`0 ${T}px`},[`&${b}-show-arrow ${b}-selection-search`]:{insetInlineEnd:T+f.fontSize*1.5},[`
&${b}-show-arrow ${b}-selection-item,
&${b}-show-arrow ${b}-selection-placeholder
`]:{paddingInlineEnd:f.fontSize*1.5}}}},ve((0,S.TS)(f,{controlHeight:f.singleItemHeightLG,fontSize:f.fontSizeLG,borderRadius:f.borderRadiusLG}),"lg")]}const Ve=f=>{const{componentCls:b,selectorBg:T}=f;return{position:"relative",backgroundColor:T,border:`${f.lineWidth}px ${f.lineType} ${f.colorBorder}`,transition:`all ${f.motionDurationMid} ${f.motionEaseInOut}`,input:{cursor:"pointer"},[`${b}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${b}-disabled&`]:{color:f.colorTextDisabled,background:f.colorBgContainerDisabled,cursor:"not-allowed",[`${b}-multiple&`]:{background:f.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Pe=function(f,b){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:q,borderHoverColor:z,outlineColor:De,antCls:oe}=b,R=T?{[`${q}-selector`]:{borderColor:z}}:{};return{[f]:{[`&:not(${q}-disabled):not(${q}-customize-input):not(${oe}-pagination-size-changer)`]:Object.assign(Object.assign({},R),{[`${q}-focused& ${q}-selector`]:{borderColor:z,boxShadow:`0 0 0 ${b.controlOutlineWidth}px ${De}`,outline:0},[`&:hover ${q}-selector`]:{borderColor:z}})}}},be=f=>{const{componentCls:b}=f;return{[`${b}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},te=f=>{const{componentCls:b,inputPaddingHorizontalBase:T,iconCls:q}=f;return{[b]:Object.assign(Object.assign({},(0,x.Wf)(f)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${b}-customize-input) ${b}-selector`]:Object.assign(Object.assign({},Ve(f)),be(f)),[`${b}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},x.vS),[`${b}-selection-placeholder`]:Object.assign(Object.assign({},x.vS),{flex:1,color:f.colorTextPlaceholder,pointerEvents:"none"}),[`${b}-arrow`]:Object.assign(Object.assign({},(0,x.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:T,height:f.fontSizeIcon,marginTop:-f.fontSizeIcon/2,color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[q]:{verticalAlign:"top",transition:`transform ${f.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${b}-suffix)`]:{pointerEvents:"auto"}},[`${b}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${b}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:T,zIndex:1,display:"inline-block",width:f.fontSizeIcon,height:f.fontSizeIcon,marginTop:-f.fontSizeIcon/2,color:f.colorTextQuaternary,fontSize:f.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:f.clearBg,cursor:"pointer",opacity:0,transition:`color ${f.motionDurationMid} ease, opacity ${f.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:f.colorTextTertiary}},"&:hover":{[`${b}-clear`]:{opacity:1}}}),[`${b}-has-feedback`]:{[`${b}-clear`]:{insetInlineEnd:T+f.fontSize+f.paddingXS}}}},J=f=>{const{componentCls:b}=f;return[{[b]:{[`&-borderless ${b}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${b}-in-form-item`]:{width:"100%"}}},te(f),We(f),j(f),se(f),{[`${b}-rtl`]:{direction:"rtl"}},Pe(b,(0,S.TS)(f,{borderHoverColor:f.colorPrimaryHover,outlineColor:f.controlOutline})),Pe(`${b}-status-error`,(0,S.TS)(f,{borderHoverColor:f.colorErrorHover,outlineColor:f.colorErrorOutline}),!0),Pe(`${b}-status-warning`,(0,S.TS)(f,{borderHoverColor:f.colorWarningHover,outlineColor:f.colorWarningOutline}),!0),(0,W.c)(f,{borderElCls:`${b}-selector`,focusElCls:`${b}-focused`})]};var C=(0,X.Z)("Select",(f,b)=>{let{rootPrefixCls:T}=b;const q=(0,S.TS)(f,{rootPrefixCls:T,inputPaddingHorizontalBase:f.paddingSM-1,multipleSelectItemHeight:f.multipleItemHeight});return[J(q)]},f=>{const{fontSize:b,lineHeight:T,controlHeight:q,controlPaddingHorizontal:z,zIndexPopupBase:De,colorText:oe,fontWeightStrong:R,controlItemBgActive:E,controlItemBgHover:$,colorBgContainer:Z,colorFillSecondary:Y,controlHeightLG:G,controlHeightSM:H,colorBgContainerDisabled:V,colorTextDisabled:fe}=f;return{zIndexPopup:De+50,optionSelectedColor:oe,optionSelectedFontWeight:R,optionSelectedBg:E,optionActiveBg:$,optionPadding:`${(q-b*T)/2}px ${z}px`,optionFontSize:b,optionLineHeight:T,optionHeight:q,selectorBg:Z,clearBg:Z,singleItemHeightLG:G,multipleItemBg:Y,multipleItemBorderColor:"transparent",multipleItemHeight:H,multipleItemHeightLG:q,multipleSelectorBgDisabled:V,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return W}});const x=S=>{const v={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:S==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},v),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},v),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},v),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},v),{points:["br","tr"],offset:[0,-4]})}};function W(S,X){return S||x(X)}},84443:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return x}});function x(W,S){return S!==void 0?S:W!==null}},66339:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});var x=c(40001),W=c(19248),S=c(99267),X=c(84105),v=c(58617),P=c(47472),I=c(59301);function K(se){let{suffixIcon:p,clearIcon:xe,menuItemSelectedIcon:D,removeIcon:me,loading:j,multiple:ve,hasFeedback:We,prefixCls:Ve,showSuffixIcon:Pe,feedbackIcon:be,showArrow:te,componentName:J}=se;const C=xe!=null?xe:I.createElement(W.Z,null),f=z=>p===null&&!We&&!te?null:I.createElement(I.Fragment,null,Pe!==!1&&z,We&&be);let b=null;if(p!==void 0)b=f(p);else if(j)b=f(I.createElement(v.Z,{spin:!0}));else{const z=`${Ve}-suffix`;b=De=>{let{open:oe,showSearch:R}=De;return f(oe&&R?I.createElement(P.Z,{className:z}):I.createElement(X.Z,{className:z}))}}let T=null;D!==void 0?T=D:ve?T=I.createElement(x.Z,null):T=null;let q=null;return me!==void 0?q=me:q=I.createElement(S.Z,null),{clearIcon:C,suffixIcon:b,itemIcon:T,removeIcon:q}}},8378:function(tn,Le){"use strict";const c=x=>({[x.componentCls]:{[`${x.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${x.motionDurationMid} ${x.motionEaseInOut},
opacity ${x.motionDurationMid} ${x.motionEaseInOut} !important`}},[`${x.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${x.motionDurationMid} ${x.motionEaseInOut},
opacity ${x.motionDurationMid} ${x.motionEaseInOut} !important`}}});Le.Z=c},92899:function(tn,Le,c){"use strict";c.d(Le,{Fm:function(){return D}});var x=c(93083),W=c(95406);const S=new x.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),X=new x.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),v=new x.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P=new x.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I=new x.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),K=new x.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),se=new x.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),p=new x.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),xe={"move-up":{inKeyframes:se,outKeyframes:p},"move-down":{inKeyframes:S,outKeyframes:X},"move-left":{inKeyframes:v,outKeyframes:P},"move-right":{inKeyframes:I,outKeyframes:K}},D=(me,j)=>{const{antCls:ve}=me,We=`${ve}-${j}`,{inKeyframes:Ve,outKeyframes:Pe}=xe[j];return[(0,W.R)(We,Ve,Pe,me.motionDurationMid),{[`
${We}-enter,
${We}-appear
`]:{opacity:0,animationTimingFunction:me.motionEaseOutCirc},[`${We}-leave`]:{animationTimingFunction:me.motionEaseInOutCirc}}]}},13826:function(tn,Le,c){"use strict";c.d(Le,{Qt:function(){return v},Uw:function(){return X},fJ:function(){return S},ly:function(){return P},oN:function(){return D}});var x=c(93083),W=c(95406);const S=new x.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),X=new x.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),v=new x.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),P=new x.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),I=new x.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),K=new x.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),se=new x.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new x.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),xe={"slide-up":{inKeyframes:S,outKeyframes:X},"slide-down":{inKeyframes:v,outKeyframes:P},"slide-left":{inKeyframes:I,outKeyframes:K},"slide-right":{inKeyframes:se,outKeyframes:p}},D=(me,j)=>{const{antCls:ve}=me,We=`${ve}-${j}`,{inKeyframes:Ve,outKeyframes:Pe}=xe[j];return[(0,W.R)(We,Ve,Pe,me.motionDurationMid),{[`
${We}-enter,
${We}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:me.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${We}-leave`]:{animationTimingFunction:me.motionEaseInQuint}}]}},19447:function(tn,Le,c){"use strict";c.d(Le,{ZP:function(){return v},fS:function(){return S},qN:function(){return W}});var x=c(47585);const W=8;function S(P){const I=W,{contentRadius:K,limitVerticalRadius:se}=P,p=K>12?K+2:12;return{dropdownArrowOffset:p,dropdownArrowOffsetVertical:se?I:p}}function X(P,I){return P?I:{}}function v(P,I){const{componentCls:K,sizePopupArrow:se,borderRadiusXS:p,borderRadiusOuter:xe,boxShadowPopoverArrow:D}=P,{colorBg:me,contentRadius:j=P.borderRadiusLG,limitVerticalRadius:ve,arrowDistance:We=0,arrowPlacement:Ve={left:!0,right:!0,top:!0,bottom:!0}}=I,{dropdownArrowOffsetVertical:Pe,dropdownArrowOffset:be}=S({contentRadius:j,limitVerticalRadius:ve});return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({[`${K}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,x.r)(se,p,xe,me,D)),{"&:before":{background:me}})]},X(!!Ve.top,{[[`&-placement-top ${K}-arrow`,`&-placement-topLeft ${K}-arrow`,`&-placement-topRight ${K}-arrow`].join(",")]:{bottom:We,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${K}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${K}-arrow`]:{left:{_skip_check_:!0,value:be}},[`&-placement-topRight ${K}-arrow`]:{right:{_skip_check_:!0,value:be}}})),X(!!Ve.bottom,{[[`&-placement-bottom ${K}-arrow`,`&-placement-bottomLeft ${K}-arrow`,`&-placement-bottomRight ${K}-arrow`].join(",")]:{top:We,transform:"translateY(-100%)"},[`&-placement-bottom ${K}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${K}-arrow`]:{left:{_skip_check_:!0,value:be}},[`&-placement-bottomRight ${K}-arrow`]:{right:{_skip_check_:!0,value:be}}})),X(!!Ve.left,{[[`&-placement-left ${K}-arrow`,`&-placement-leftTop ${K}-arrow`,`&-placement-leftBottom ${K}-arrow`].join(",")]:{right:{_skip_check_:!0,value:We},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${K}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${K}-arrow`]:{top:Pe},[`&-placement-leftBottom ${K}-arrow`]:{bottom:Pe}})),X(!!Ve.right,{[[`&-placement-right ${K}-arrow`,`&-placement-rightTop ${K}-arrow`,`&-placement-rightBottom ${K}-arrow`].join(",")]:{left:{_skip_check_:!0,value:We},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${K}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${K}-arrow`]:{top:Pe},[`&-placement-rightBottom ${K}-arrow`]:{bottom:Pe}}))}}},47585:function(tn,Le,c){"use strict";c.d(Le,{r:function(){return x}});const x=(W,S,X,v,P)=>{const I=W/2,K=0,se=I,p=X*1/Math.sqrt(2),xe=I-X*(1-1/Math.sqrt(2)),D=I-S*(1/Math.sqrt(2)),me=X*(Math.sqrt(2)-1)+S*(1/Math.sqrt(2)),j=2*I-D,ve=me,We=2*I-p,Ve=xe,Pe=2*I-K,be=se,te=I*Math.sqrt(2)+X*(Math.sqrt(2)-2),J=X*(Math.sqrt(2)-1);return{pointerEvents:"none",width:W,height:W,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:W,height:W/2,background:v,clipPath:{_multi_value_:!0,value:[`polygon(${J}px 100%, 50% ${J}px, ${2*I-J}px 100%, ${J}px 100%)`,`path('M ${K} ${se} A ${X} ${X} 0 0 0 ${p} ${xe} L ${D} ${me} A ${S} ${S} 0 0 1 ${j} ${ve} L ${We} ${Ve} A ${X} ${X} 0 0 0 ${Pe} ${be} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:te,height:te,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${S}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:P,zIndex:0,background:"transparent"}}}},33166:function(tn,Le,c){"use strict";c.d(Le,{i:function(){return x}});const x=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},45157:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return W}});var x=c(33166);function W(S,X){return x.i.reduce((v,P)=>{const I=S[`${P}1`],K=S[`${P}3`],se=S[`${P}6`],p=S[`${P}7`];return Object.assign(Object.assign({},v),X(P,{lightColor:I,lightBorderColor:K,darkColor:se,textColor:p}))},{})}},6848:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return De}});var x=c(59301),W=c(92310),S=c.n(W),X=c(55477),v=c(18929),P=c(62892),I=c(79676),K=c(92343),se=c(36355),p=c(33234),xe=c(88088),D=c(17313),me=c(29878),j=c(19447),ve=c(45157),We=c(37613),Ve=c(83116);const Pe=oe=>{const{componentCls:R,tooltipMaxWidth:E,tooltipColor:$,tooltipBg:Z,tooltipBorderRadius:Y,zIndexPopup:G,controlHeight:H,boxShadowSecondary:V,paddingSM:fe,paddingXS:ue,tooltipRadiusOuter:ze}=oe;return[{[R]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,D.Wf)(oe)),{position:"absolute",zIndex:G,display:"block",width:"max-content",maxWidth:E,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":Z,[`${R}-inner`]:{minWidth:H,minHeight:H,padding:`${fe/2}px ${ue}px`,color:$,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:Z,borderRadius:Y,boxShadow:V,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${R}-inner`]:{borderRadius:Math.min(Y,j.qN)}},[`${R}-content`]:{position:"relative"}}),(0,ve.Z)(oe,(_e,Se)=>{let{darkColor:Te}=Se;return{[`&${R}-${_e}`]:{[`${R}-inner`]:{backgroundColor:Te},[`${R}-arrow`]:{"--antd-arrow-background-color":Te}}}})),{"&-rtl":{direction:"rtl"}})},(0,j.ZP)((0,We.TS)(oe,{borderRadiusOuter:ze}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Y,limitVerticalRadius:!0}),{[`${R}-pure`]:{position:"relative",maxWidth:"none",margin:oe.sizePopupArrow}}]};var be=(oe,R)=>(0,Ve.Z)("Tooltip",$=>{if(R===!1)return[];const{borderRadius:Z,colorTextLightSolid:Y,colorBgDefault:G,borderRadiusOuter:H}=$,V=(0,We.TS)($,{tooltipMaxWidth:250,tooltipColor:Y,tooltipBorderRadius:Z,tooltipBg:G,tooltipRadiusOuter:H>4?4:H});return[Pe(V),(0,me._y)($,"zoom-big-fast")]},$=>{let{zIndexPopupBase:Z,colorBgSpotlight:Y}=$;return{zIndexPopup:Z+70,colorBgDefault:Y}},{resetStyle:!1})(oe),te=c(36785);function J(oe,R){const E=(0,te.o2)(R),$=S()({[`${oe}-${R}`]:R&&E}),Z={},Y={};return R&&!E&&(Z.background=R,Y["--antd-arrow-background-color"]=R),{className:$,overlayStyle:Z,arrowStyle:Y}}var f=oe=>{const{prefixCls:R,className:E,placement:$="top",title:Z,color:Y,overlayInnerStyle:G}=oe,{getPrefixCls:H}=x.useContext(se.E_),V=H("tooltip",R),[fe,ue]=be(V,!0),ze=J(V,Y),_e=ze.arrowStyle,Se=Object.assign(Object.assign({},G),ze.overlayStyle),Te=S()(ue,V,`${V}-pure`,`${V}-placement-${$}`,E,ze.className);return fe(x.createElement("div",{className:Te,style:_e},x.createElement("div",{className:`${V}-arrow`}),x.createElement(X.G,Object.assign({},oe,{className:ue,prefixCls:V,overlayInnerStyle:Se}),Z)))},b=function(oe,R){var E={};for(var $ in oe)Object.prototype.hasOwnProperty.call(oe,$)&&R.indexOf($)<0&&(E[$]=oe[$]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,$=Object.getOwnPropertySymbols(oe);Z<$.length;Z++)R.indexOf($[Z])<0&&Object.prototype.propertyIsEnumerable.call(oe,$[Z])&&(E[$[Z]]=oe[$[Z]]);return E};const T=(oe,R)=>{const E={},$=Object.assign({},oe);return R.forEach(Z=>{oe&&Z in oe&&(E[Z]=oe[Z],delete $[Z])}),{picked:E,omitted:$}};function q(oe,R){const E=oe.type;if((E.__ANT_BUTTON===!0||oe.type==="button")&&oe.props.disabled||E.__ANT_SWITCH===!0&&(oe.props.disabled||oe.props.loading)||E.__ANT_RADIO===!0&&oe.props.disabled){const{picked:$,omitted:Z}=T(oe.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Y=Object.assign(Object.assign({display:"inline-block"},$),{cursor:"not-allowed",width:oe.props.block?"100%":void 0}),G=Object.assign(Object.assign({},Z),{pointerEvents:"none"}),H=(0,K.Tm)(oe,{style:G,className:null});return x.createElement("span",{style:Y,className:S()(oe.props.className,`${R}-disabled-compatible-wrapper`)},H)}return oe}const z=x.forwardRef((oe,R)=>{var E,$;const{prefixCls:Z,openClassName:Y,getTooltipContainer:G,overlayClassName:H,color:V,overlayInnerStyle:fe,children:ue,afterOpenChange:ze,afterVisibleChange:_e,destroyTooltipOnHide:Se,arrow:Te=!0,title:Me,overlay:wt,builtinPlacements:Dt,arrowPointAtCenter:dt=!1,autoAdjustOverflow:rt=!0}=oe,Mt=!!Te,[,st]=(0,xe.Z)(),{getPopupContainer:Ht,getPrefixCls:Q,direction:M}=x.useContext(se.E_),F=x.useRef(null),w=()=>{var nn;(nn=F.current)===null||nn===void 0||nn.forceAlign()};x.useImperativeHandle(R,()=>({forceAlign:w,forcePopupAlign:()=>{w()}}));const[_,ne]=(0,v.Z)(!1,{value:(E=oe.open)!==null&&E!==void 0?E:oe.visible,defaultValue:($=oe.defaultOpen)!==null&&$!==void 0?$:oe.defaultVisible}),ae=!Me&&!wt&&Me!==0,le=nn=>{var $t,on;ne(ae?!1:nn),ae||(($t=oe.onOpenChange)===null||$t===void 0||$t.call(oe,nn),(on=oe.onVisibleChange)===null||on===void 0||on.call(oe,nn))},de=x.useMemo(()=>{var nn,$t;let on=dt;return typeof Te=="object"&&(on=($t=(nn=Te.pointAtCenter)!==null&&nn!==void 0?nn:Te.arrowPointAtCenter)!==null&&$t!==void 0?$t:dt),Dt||(0,I.Z)({arrowPointAtCenter:on,autoAdjustOverflow:rt,arrowWidth:Mt?st.sizePopupArrow:0,borderRadius:st.borderRadius,offset:st.marginXXS,visibleFirst:!0})},[dt,Te,Dt,st]),Ie=x.useMemo(()=>Me===0?Me:wt||Me||"",[wt,Me]),Ee=x.createElement(p.BR,null,typeof Ie=="function"?Ie():Ie),{getPopupContainer:we,placement:Ne="top",mouseEnterDelay:Re=.1,mouseLeaveDelay:Fe=.1,overlayStyle:U,rootClassName:Ge}=oe,Qe=b(oe,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ae=Q("tooltip",Z),Je=Q(),it=oe["data-popover-inject"];let ke=_;!("open"in oe)&&!("visible"in oe)&&ae&&(ke=!1);const Zt=q((0,K.l$)(ue)&&!(0,K.M2)(ue)?ue:x.createElement("span",null,ue),Ae),vt=Zt.props,Wt=!vt.className||typeof vt.className=="string"?S()(vt.className,Y||`${Ae}-open`):vt.className,[jt,mn]=be(Ae,!it),_t=J(Ae,V),cn=_t.arrowStyle,yn=Object.assign(Object.assign({},fe),_t.overlayStyle),On=S()(H,{[`${Ae}-rtl`]:M==="rtl"},_t.className,Ge,mn);return jt(x.createElement(X.Z,Object.assign({},Qe,{showArrow:Mt,placement:Ne,mouseEnterDelay:Re,mouseLeaveDelay:Fe,prefixCls:Ae,overlayClassName:On,overlayStyle:Object.assign(Object.assign({},cn),U),getTooltipContainer:we||G||Ht,ref:F,builtinPlacements:de,overlay:Ee,visible:ke,onVisibleChange:le,afterVisibleChange:ze!=null?ze:_e,overlayInnerStyle:yn,arrowContent:x.createElement("span",{className:`${Ae}-arrow-content`}),motion:{motionName:(0,P.m)(Je,"zoom-big-fast",oe.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Se}),ke?(0,K.Tm)(Zt,{className:Wt}):Zt))});z._InternalPanelDoNotUseOrYouWillBeFired=f;var De=z},89780:function(tn){(function(Le,c){tn.exports=c()})(this,function(){"use strict";var Le=navigator.userAgent,c=navigator.platform,x=/gecko\/\d/i.test(Le),W=/MSIE \d/.test(Le),S=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Le),X=/Edge\/(\d+)/.exec(Le),v=W||S||X,P=v&&(W?document.documentMode||6:+(X||S)[1]),I=!X&&/WebKit\//.test(Le),K=I&&/Qt\/\d+\.\d+/.test(Le),se=!X&&/Chrome\//.test(Le),p=/Opera\//.test(Le),xe=/Apple Computer/.test(navigator.vendor),D=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Le),me=/PhantomJS/.test(Le),j=!X&&/AppleWebKit/.test(Le)&&/Mobile\/\w+/.test(Le),ve=/Android/.test(Le),We=j||ve||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Le),Ve=j||/Mac/.test(c),Pe=/\bCrOS\b/.test(Le),be=/win/i.test(c),te=p&&Le.match(/Version\/(\d*\.\d*)/);te&&(te=Number(te[1])),te&&te>=15&&(p=!1,I=!0);var J=Ve&&(K||p&&(te==null||te<12.11)),C=x||v&&P>=9;function f(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var b=function(e,t){var r=e.className,n=f(t).exec(r);if(n){var i=r.slice(n.index+n[0].length);e.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function T(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function q(e,t){return T(e).appendChild(t)}function z(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function De(e,t,r,n){var i=z(e,t,r,n);return i.setAttribute("role","presentation"),i}var oe;document.createRange?oe=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:oe=function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(i){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};function R(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function E(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function $(e,t){var r=e.className;f(t).test(r)||(e.className+=(r?" ":"")+t)}function Z(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!f(r[n]).test(t)&&(t+=" "+r[n]);return t}var Y=function(e){e.select()};j?Y=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:v&&(Y=function(e){try{e.select()}catch(t){}});function G(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function H(e,t,r){t||(t={});for(var n in e)e.hasOwnProperty(n)&&(r!==!1||!t.hasOwnProperty(n))&&(t[n]=e[n]);return t}function V(e,t,r,n,i){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var o=n||0,a=i||0;;){var l=e.indexOf(" ",o);if(l<0||l>=t)return a+(t-o);a+=l-o,a+=r-a%r,o=l+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=G(this.onTimeout,this)};fe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},fe.prototype.set=function(e,t){this.f=t;var r=+new Date+e;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=r)};function ue(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var ze=50,_e={toString:function(){return"CodeMirror.Pass"}},Se={scroll:!1},Te={origin:"*mouse"},Me={origin:"+move"};function wt(e,t,r){for(var n=0,i=0;;){var o=e.indexOf(" ",n);o==-1&&(o=e.length);var a=o-n;if(o==e.length||i+a>=t)return n+Math.min(a,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}var Dt=[""];function dt(e){for(;Dt.length<=e;)Dt.push(rt(Dt)+" ");return Dt[e]}function rt(e){return e[e.length-1]}function Mt(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function st(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function Ht(){}function Q(e,t){var r;return Object.create?r=Object.create(e):(Ht.prototype=e,r=new Ht),t&&H(t,r),r}var M=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function F(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||M.test(e))}function w(e,t){return t?t.source.indexOf("\\w")>-1&&F(e)?!0:t.test(e):F(e)}function _(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ae(e){return e.charCodeAt(0)>=768&&ne.test(e)}function le(e,t,r){for(;(r<0?t>0:t<e.length)&&ae(e.charAt(t));)t+=r;return t}function de(e,t,r){for(var n=t>r?-1:1;;){if(t==r)return t;var i=(t+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:r;e(o)?r=o:t=o+n}}function Ie(e,t,r,n){if(!e)return n(t,r,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<r&&a.to>t||t==r&&a.to==t)&&(n(Math.max(a.from,t),Math.min(a.to,r),a.level==1?"rtl":"ltr",o),i=!0)}i||n(t,r,"ltr")}var Ee=null;function we(e,t,r){var n;Ee=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&r=="before"?n=i:Ee=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:Ee=i)}return n!=null?n:Ee}var Ne=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,l=/[1n]/;function s(u,g,y){this.level=u,this.from=g,this.to=y}return function(u,g){var y=g=="ltr"?"L":"R";if(u.length==0||g=="ltr"&&!n.test(u))return!1;for(var A=u.length,L=[],he=0;he<A;++he)L.push(r(u.charCodeAt(he)));for(var Oe=0,He=y;Oe<A;++Oe){var et=L[Oe];et=="m"?L[Oe]=He:He=et}for(var lt=0,tt=y;lt<A;++lt){var gt=L[lt];gt=="1"&&tt=="r"?L[lt]="n":o.test(gt)&&(tt=gt,gt=="r"&&(L[lt]="R"))}for(var At=1,Lt=L[0];At<A-1;++At){var vn=L[At];vn=="+"&&Lt=="1"&&L[At+1]=="1"?L[At]="1":vn==","&&Lt==L[At+1]&&(Lt=="1"||Lt=="n")&&(L[At]=Lt),Lt=vn}for(var Bn=0;Bn<A;++Bn){var fr=L[Bn];if(fr==",")L[Bn]="N";else if(fr=="%"){var Jn=void 0;for(Jn=Bn+1;Jn<A&&L[Jn]=="%";++Jn);for(var Br=Bn&&L[Bn-1]=="!"||Jn<A&&L[Jn]=="1"?"1":"N",Dr=Bn;Dr<Jn;++Dr)L[Dr]=Br;Bn=Jn-1}}for(var ir=0,Nr=y;ir<A;++ir){var hr=L[ir];Nr=="L"&&hr=="1"?L[ir]="L":o.test(hr)&&(Nr=hr)}for(var ar=0;ar<A;++ar)if(i.test(L[ar])){var or=void 0;for(or=ar+1;or<A&&i.test(L[or]);++or);for(var qn=(ar?L[ar-1]:y)=="L",Ar=(or<A?L[or]:y)=="L",_i=qn==Ar?qn?"L":"R":y,Si=ar;Si<or;++Si)L[Si]=_i;ar=or-1}for(var Cr=[],ri,dr=0;dr<A;)if(a.test(L[dr])){var ba=dr;for(++dr;dr<A&&a.test(L[dr]);++dr);Cr.push(new s(0,ba,dr))}else{var ui=dr,Ri=Cr.length,Li=g=="rtl"?1:0;for(++dr;dr<A&&L[dr]!="L";++dr);for(var Or=ui;Or<dr;)if(l.test(L[Or])){ui<Or&&(Cr.splice(Ri,0,new s(1,ui,Or)),Ri+=Li);var ki=Or;for(++Or;Or<dr&&l.test(L[Or]);++Or);Cr.splice(Ri,0,new s(2,ki,Or)),Ri+=Li,ui=Or}else++Or;ui<dr&&Cr.splice(Ri,0,new s(1,ui,dr))}return g=="ltr"&&(Cr[0].level==1&&(ri=u.match(/^\s+/))&&(Cr[0].from=ri[0].length,Cr.unshift(new s(0,0,ri[0].length))),rt(Cr).level==1&&(ri=u.match(/\s+$/))&&(rt(Cr).to-=ri[0].length,Cr.push(new s(0,A-ri[0].length,A)))),g=="rtl"?Cr.reverse():Cr}}();function Re(e,t){var r=e.order;return r==null&&(r=e.order=Ne(e.text,t)),r}var Fe=[],U=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Fe).concat(r)}};function Ge(e,t){return e._handlers&&e._handlers[t]||Fe}function Qe(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=ue(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ae(e,t){var r=Ge(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function Je(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,r||t.type,e,t),jt(t)||t.codemirrorIgnore}function it(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)ue(r,t[n])==-1&&r.push(t[n])}function ke(e,t){return Ge(e,t).length>0}function Zt(e){e.prototype.on=function(t,r){U(this,t,r)},e.prototype.off=function(t,r){Qe(this,t,r)}}function vt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Wt(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function jt(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function mn(e){vt(e),Wt(e)}function _t(e){return e.target||e.srcElement}function cn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),Ve&&e.ctrlKey&&t==1&&(t=3),t}var yn=function(){if(v&&P<9)return!1;var e=z("div");return"draggable"in e||"dragDrop"in e}(),On;function nn(e){if(On==null){var t=z("span","\u200B");q(e,z("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(On=t.offsetWidth<=1&&t.offsetHeight>2&&!(v&&P<8))}var r=On?z("span","\u200B"):z("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var $t;function on(e){if($t!=null)return $t;var t=q(e,document.createTextNode("A\u062EA")),r=oe(t,0,1).getBoundingClientRect(),n=oe(t,1,2).getBoundingClientRect();return T(e),!r||r.left==r.right?!1:$t=n.right-r.right<3}var kt=`
b`.split(/\n/).length!=3?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf(`
`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),a=o.indexOf("\r");a!=-1?(r.push(o.slice(0,a)),t+=a+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Bt=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(r){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},fn=function(){var e=z("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ut=null;function bn(e){if(Ut!=null)return Ut;var t=q(e,z("span","x")),r=t.getBoundingClientRect(),n=oe(t,0,1).getBoundingClientRect();return Ut=Math.abs(r.left-n.left)>1}var dn={},Tn={};function nr(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),dn[e]=t}function Vn(e,t){Tn[e]=t}function wn(e){if(typeof e=="string"&&Tn.hasOwnProperty(e))e=Tn[e];else if(e&&typeof e.name=="string"&&Tn.hasOwnProperty(e.name)){var t=Tn[e.name];typeof t=="string"&&(t={name:t}),e=Q(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return wn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return wn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function ut(e,t){t=wn(t);var r=dn[t.name];if(!r)return ut(e,"text/plain");var n=r(e,t);if(ot.hasOwnProperty(t.name)){var i=ot[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)n[a]=t.modeProps[a];return n}var ot={};function m(e,t){var r=ot.hasOwnProperty(e)?ot[e]:ot[e]={};H(t,r)}function k(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function re(e,t){for(var r;e.innerMode&&(r=e.innerMode(t),!(!r||r.mode==e));)t=r.state,e=r.mode;return r||{mode:e,state:t}}function d(e,t,r){return e.startState?e.startState(t,r):!0}var h=function(e,t,r){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};h.prototype.eol=function(){return this.pos>=this.string.length},h.prototype.sol=function(){return this.pos==this.lineStart},h.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},h.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},h.prototype.eat=function(e){var t=this.string.charAt(this.pos),r;if(typeof e=="string"?r=t==e:r=t&&(e.test?e.test(t):e(t)),r)return++this.pos,t},h.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},h.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},h.prototype.skipToEnd=function(){this.pos=this.string.length},h.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},h.prototype.backUp=function(e){this.pos-=e},h.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=V(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},h.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},h.prototype.match=function(e,t,r){if(typeof e=="string"){var n=function(a){return r?a.toLowerCase():a},i=this.string.substr(this.pos,e.length);if(n(i)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var o=this.string.slice(this.pos).match(e);return o&&o.index>0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},h.prototype.current=function(){return this.string.slice(this.start,this.pos)},h.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},h.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},h.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function O(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function B(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(o){var a=o.text;i==r.line&&(a=a.slice(0,r.ch)),i==t.line&&(a=a.slice(t.ch)),n.push(a),++i}),n}function ye(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function ee(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function ie(e){if(e.parent==null)return null;for(var t=e.parent,r=ue(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function ge(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var a=0;a<e.lines.length;++a){var l=e.lines[a],s=l.height;if(t<s)break;t-=s}return r+a}function $e(e,t){return t>=e.first&&t<e.first+e.size}function je(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function N(e,t,r){if(r===void 0&&(r=null),!(this instanceof N))return new N(e,t,r);this.line=e,this.ch=t,this.sticky=r}function ce(e,t){return e.line-t.line||e.ch-t.ch}function Xe(e,t){return e.sticky==t.sticky&&ce(e,t)==0}function Ze(e){return N(e.line,e.ch)}function Ke(e,t){return ce(e,t)<0?t:e}function Ye(e,t){return ce(e,t)<0?e:t}function yt(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function pe(e,t){if(t.line<e.first)return N(e.first,0);var r=e.first+e.size-1;return t.line>r?N(r,O(e,r).text.length):Ce(t,O(e,t.line).text.length)}function Ce(e,t){var r=e.ch;return r==null||r>t?N(e.line,t):r<0?N(e.line,0):e}function Be(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=pe(e,t[n]);return r}var bt=function(e,t){this.state=e,this.lookAhead=t},ct=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};ct.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ct.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ct.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ct.fromSaved=function(e,t,r){return t instanceof bt?new ct(e,k(e.mode,t.state),r,t.lookAhead):new ct(e,k(e.mode,t),r)},ct.prototype.save=function(e){var t=e!==!1?k(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new bt(t,this.maxLookAhead):t};function at(e,t,r,n){var i=[e.state.modeGen],o={};an(e,t.text,e.doc.mode,r,function(u,g){return i.push(u,g)},o,n);for(var a=r.state,l=function(u){r.baseTokens=i;var g=e.state.overlays[u],y=1,A=0;r.state=!0,an(e,t.text,g.mode,r,function(L,he){for(var Oe=y;A<L;){var He=i[y];He>L&&i.splice(y,1,L,i[y+1],He),y+=2,A=Math.min(L,He)}if(he)if(g.opaque)i.splice(Oe,y-Oe,L,"overlay "+he),y=Oe+2;else for(;Oe<y;Oe+=2){var et=i[Oe+1];i[Oe+1]=(et?et+" ":"")+"overlay "+he}},o),r.state=a,r.baseTokens=null,r.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Jt(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=It(e,ie(t)),i=t.text.length>e.options.maxHighlightLength&&k(e.doc.mode,n.state),o=at(e,t,n);i&&(n.state=i),t.stateAfter=n.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function It(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new ct(n,!0,t);var o=pt(e,t,r),a=o>n.first&&O(n,o-1).stateAfter,l=a?ct.fromSaved(n,a,o):new ct(n,d(n.mode),o);return n.iter(o,t,function(s){Ft(e,s.text,l);var u=l.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&u<i.viewTo?l.save():null,l.nextLine()}),r&&(n.modeFrontier=l.line),l}function Ft(e,t,r,n){var i=e.doc.mode,o=new h(t,e.options.tabSize,r);for(o.start=o.pos=n||0,t==""&&Gt(i,r.state);!o.eol();)Rt(i,o,r.state),o.start=o.pos}function Gt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=re(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function Rt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=re(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var Yt=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function ln(e,t,r,n){var i=e.doc,o=i.mode,a;t=pe(i,t);var l=O(i,t.line),s=It(e,t.line,r),u=new h(l.text,e.options.tabSize,s),g;for(n&&(g=[]);(n||u.pos<t.ch)&&!u.eol();)u.start=u.pos,a=Rt(o,u,s.state),n&&g.push(new Yt(u,a,k(i.mode,s.state)));return n?g:new Yt(u,a,s.state)}function qt(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";t[n]==null?t[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(t[n])||(t[n]+=" "+r[2])}return e}function an(e,t,r,n,i,o,a){var l=r.flattenSpans;l==null&&(l=e.options.flattenSpans);var s=0,u=null,g=new h(t,e.options.tabSize,n),y,A=e.options.addModeClass&&[null];for(t==""&&qt(Gt(r,n.state),o);!g.eol();){if(g.pos>e.options.maxHighlightLength?(l=!1,a&&Ft(e,t,n,g.pos),g.pos=t.length,y=null):y=qt(Rt(r,g,n.state,A),o),A){var L=A[0].name;L&&(y="m-"+(y?L+" "+y:L))}if(!l||u!=y){for(;s<g.start;)s=Math.min(g.start,s+5e3),i(s,u);u=y}g.start=g.pos}for(;s<g.pos;){var he=Math.min(g.pos,s+5e3);i(he,u),s=he}}function pt(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>a;--l){if(l<=o.first)return o.first;var s=O(o,l-1),u=s.stateAfter;if(u&&(!r||l+(u instanceof bt?u.lookAhead:0)<=o.modeFrontier))return l;var g=V(s.text,null,e.options.tabSize);(i==null||n>g)&&(i=l-1,n=g)}return i}function qe(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var r=e.first,n=t-1;n>r;n--){var i=O(e,n).stateAfter;if(i&&(!(i instanceof bt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Nt=!1,Ot=!1;function xn(){Nt=!0}function Kt(){Ot=!0}function en(e,t,r){this.marker=e,this.from=t,this.to=r}function hn(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function Pt(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Zn(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function jn(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&a.type=="bookmark"&&(!r||!o.marker.insertLeft)){var s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new en(a,o.from,s?null:o.to))}}return n}function Tt(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,l=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&a.type=="bookmark"&&(!r||o.marker.insertLeft)){var s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new en(a,s?null:o.from-t,o.to==null?null:o.to-t))}}return n}function St(e,t){if(t.full)return null;var r=$e(e,t.from.line)&&O(e,t.from.line).markedSpans,n=$e(e,t.to.line)&&O(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,a=ce(t.from,t.to)==0,l=jn(r,i,a),s=Tt(n,o,a),u=t.text.length==1,g=rt(t.text).length+(u?i:0);if(l)for(var y=0;y<l.length;++y){var A=l[y];if(A.to==null){var L=hn(s,A.marker);L?u&&(A.to=L.to==null?null:L.to+g):A.to=i}}if(s)for(var he=0;he<s.length;++he){var Oe=s[he];if(Oe.to!=null&&(Oe.to+=g),Oe.from==null){var He=hn(l,Oe.marker);He||(Oe.from=g,u&&(l||(l=[])).push(Oe))}else Oe.from+=g,u&&(l||(l=[])).push(Oe)}l&&(l=Et(l)),s&&s!=l&&(s=Et(s));var et=[l];if(!u){var lt=t.text.length-2,tt;if(lt>0&&l)for(var gt=0;gt<l.length;++gt)l[gt].to==null&&(tt||(tt=[])).push(new en(l[gt].marker,null,null));for(var At=0;At<lt;++At)et.push(tt);et.push(s)}return et}function Et(e){for(var t=0;t<e.length;++t){var r=e[t];r.from!=null&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function rn(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(L){if(L.markedSpans)for(var he=0;he<L.markedSpans.length;++he){var Oe=L.markedSpans[he].marker;Oe.readOnly&&(!n||ue(n,Oe)==-1)&&(n||(n=[])).push(Oe)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var a=n[o],l=a.find(0),s=0;s<i.length;++s){var u=i[s];if(!(ce(u.to,l.from)<0||ce(u.from,l.to)>0)){var g=[s,1],y=ce(u.from,l.from),A=ce(u.to,l.to);(y<0||!a.inclusiveLeft&&!y)&&g.push({from:u.from,to:l.from}),(A>0||!a.inclusiveRight&&!A)&&g.push({from:l.to,to:u.to}),i.splice.apply(i,g),s+=g.length-3}}return i}function sn(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function Qt(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function zt(e){return e.inclusiveLeft?-1:0}function gn(e){return e.inclusiveRight?1:0}function Rn(e,t){var r=e.lines.length-t.lines.length;if(r!=0)return r;var n=e.find(),i=t.find(),o=ce(n.from,i.from)||zt(e)-zt(t);if(o)return-o;var a=ce(n.to,i.to)||gn(e)-gn(t);return a||t.id-e.id}function Ln(e,t){var r=Ot&&e.markedSpans,n;if(r)for(var i=void 0,o=0;o<r.length;++o)i=r[o],i.marker.collapsed&&(t?i.from:i.to)==null&&(!n||Rn(n,i.marker)<0)&&(n=i.marker);return n}function Mn(e){return Ln(e,!0)}function An(e){return Ln(e,!1)}function Ue(e,t){var r=Ot&&e.markedSpans,n;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(o.from==null||o.from<t)&&(o.to==null||o.to>t)&&(!n||Rn(n,o.marker)<0)&&(n=o.marker)}return n}function nt(e,t,r,n,i){var o=O(e,t),a=Ot&&o.markedSpans;if(a)for(var l=0;l<a.length;++l){var s=a[l];if(s.marker.collapsed){var u=s.marker.find(0),g=ce(u.from,r)||zt(s.marker)-zt(i),y=ce(u.to,n)||gn(s.marker)-gn(i);if(!(g>=0&&y<=0||g<=0&&y>=0)&&(g<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.to,r)>=0:ce(u.to,r)>0)||g>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?ce(u.from,n)<=0:ce(u.from,n)<0)))return!0}}}function ht(e){for(var t;t=Mn(e);)e=t.find(-1,!0).line;return e}function pn(e){for(var t;t=An(e);)e=t.find(1,!0).line;return e}function Dn(e){for(var t,r;t=An(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function Gn(e,t){var r=O(e,t),n=ht(r);return r==n?t:ie(n)}function Hn(e,t){if(t>e.lastLine())return t;var r=O(e,t),n;if(!Kn(e,r))return t;for(;n=An(r);)r=n.find(1,!0).line;return ie(r)+1}function Kn(e,t){var r=Ot&&t.markedSpans;if(r){for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],!!n.marker.collapsed){if(n.from==null)return!0;if(!n.marker.widgetNode&&n.from==0&&n.marker.inclusiveLeft&&_n(e,t,n))return!0}}}function _n(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return _n(e,n.line,hn(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(i.to==null||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&_n(e,t,i))return!0}function Fn(e){e=ht(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var a=0;a<o.children.length;++a){var l=o.children[a];if(l==r)break;t+=l.height}return t}function kn(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=Mn(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=An(n);){var o=r.find(0,!0);t-=n.text.length-o.from.ch,n=o.to.line,t+=n.text.length-o.to.ch}return t}function Wn(e){var t=e.display,r=e.doc;t.maxLine=O(r,r.first),t.maxLineLength=kn(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=kn(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var Xn=function(e,t,r){this.text=e,Qt(this,t),this.height=r?r(this):1};Xn.prototype.lineNo=function(){return ie(this)},Zt(Xn);function xr(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),sn(e),Qt(e,r);var i=n?n(e):1;i!=e.height&&ee(e,i)}function Mr(e){e.parent=null,sn(e)}var vr={},Hr={};function rr(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Hr:vr;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function gr(e,t){var r=De("span",null,null,I?"padding-right: .1px":null),n={pre:De("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;n.pos=0,n.addToken=ii,on(e.display.measure)&&(a=Re(o,e.doc.direction))&&(n.addToken=Ur(n.addToken,a)),n.map=[];var l=t!=e.display.externalMeasured&&ie(o);ei(o,n,Jt(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=Z(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=Z(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(nn(e.display.measure))),i==0?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(I){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=Z(n.pre.className,n.textClass||"")),n}function pr(e){var t=z("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function ii(e,t,r,n,i,o,a){if(t){var l=e.splitSpaces?qr(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,g;if(!s.test(t))e.col+=t.length,g=document.createTextNode(l),e.map.push(e.pos,e.pos+t.length,g),v&&P<9&&(u=!0),e.pos+=t.length;else{g=document.createDocumentFragment();for(var y=0;;){s.lastIndex=y;var A=s.exec(t),L=A?A.index-y:t.length-y;if(L){var he=document.createTextNode(l.slice(y,y+L));v&&P<9?g.appendChild(z("span",[he])):g.appendChild(he),e.map.push(e.pos,e.pos+L,he),e.col+=L,e.pos+=L}if(!A)break;y+=L+1;var Oe=void 0;if(A[0]==" "){var He=e.cm.options.tabSize,et=He-e.col%He;Oe=g.appendChild(z("span",dt(et),"cm-tab")),Oe.setAttribute("role","presentation"),Oe.setAttribute("cm-text"," "),e.col+=et}else A[0]=="\r"||A[0]==`
`?(Oe=g.appendChild(z("span",A[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Oe.setAttribute("cm-text",A[0]),e.col+=1):(Oe=e.cm.options.specialCharPlaceholder(A[0]),Oe.setAttribute("cm-text",A[0]),v&&P<9?g.appendChild(z("span",[Oe])):g.appendChild(Oe),e.col+=1);e.map.push(e.pos,e.pos+1,Oe),e.pos++}}if(e.trailingSpace=l.charCodeAt(t.length-1)==32,r||n||i||u||o||a){var lt=r||"";n&&(lt+=n),i&&(lt+=i);var tt=z("span",[g],lt,o);if(a)for(var gt in a)a.hasOwnProperty(gt)&&gt!="style"&&gt!="class"&&tt.setAttribute(gt,a[gt]);return e.content.appendChild(tt)}e.content.appendChild(g)}}function qr(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);o==" "&&r&&(i==e.length-1||e.charCodeAt(i+1)==32)&&(o="\xA0"),n+=o,r=o==" "}return n}function Ur(e,t){return function(r,n,i,o,a,l,s){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,g=u+n.length;;){for(var y=void 0,A=0;A<t.length&&(y=t[A],!(y.to>u&&y.from<=u));A++);if(y.to>=g)return e(r,n,i,o,a,l,s);e(r,n.slice(0,y.to-u),i,o,null,l,s),o=null,n=n.slice(y.to-u),u=y.to}}}function jr(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function ei(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(!n){for(var a=1;a<r.length;a+=2)t.addToken(t,i.slice(o,o=r[a]),rr(r[a+1],t.cm.options));return}for(var l=i.length,s=0,u=1,g="",y,A,L=0,he,Oe,He,et,lt;;){if(L==s){he=Oe=He=A="",lt=null,et=null,L=1/0;for(var tt=[],gt=void 0,At=0;At<n.length;++At){var Lt=n[At],vn=Lt.marker;if(vn.type=="bookmark"&&Lt.from==s&&vn.widgetNode)tt.push(vn);else if(Lt.from<=s&&(Lt.to==null||Lt.to>s||vn.collapsed&&Lt.to==s&&Lt.from==s)){if(Lt.to!=null&&Lt.to!=s&&L>Lt.to&&(L=Lt.to,Oe=""),vn.className&&(he+=" "+vn.className),vn.css&&(A=(A?A+";":"")+vn.css),vn.startStyle&&Lt.from==s&&(He+=" "+vn.startStyle),vn.endStyle&&Lt.to==L&&(gt||(gt=[])).push(vn.endStyle,Lt.to),vn.title&&((lt||(lt={})).title=vn.title),vn.attributes)for(var Bn in vn.attributes)(lt||(lt={}))[Bn]=vn.attributes[Bn];vn.collapsed&&(!et||Rn(et.marker,vn)<0)&&(et=Lt)}else Lt.from>s&&L>Lt.from&&(L=Lt.from)}if(gt)for(var fr=0;fr<gt.length;fr+=2)gt[fr+1]==L&&(Oe+=" "+gt[fr]);if(!et||et.from==s)for(var Jn=0;Jn<tt.length;++Jn)jr(t,0,tt[Jn]);if(et&&(et.from||0)==s){if(jr(t,(et.to==null?l+1:et.to)-s,et.marker,et.from==null),et.to==null)return;et.to==s&&(et=!1)}}if(s>=l)break;for(var Br=Math.min(l,L);;){if(g){var Dr=s+g.length;if(!et){var ir=Dr>Br?g.slice(0,Br-s):g;t.addToken(t,ir,y?y+he:he,He,s+ir.length==L?Oe:"",A,lt)}if(Dr>=Br){g=g.slice(Br-s),s=Br;break}s=Dr,He=""}g=i.slice(o,o=r[u++]),y=rr(r[u++],t.cm.options)}}}function ti(e,t,r){this.line=t,this.rest=Dn(t),this.size=this.rest?ie(rt(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Kn(e,t)}function $r(e,t,r){for(var n=[],i,o=t;o<r;o=i){var a=new ti(e.doc,O(e.doc,o),o);i=o+a.size,n.push(a)}return n}var Ir=null;function Xr(e){Ir?Ir.ops.push(e):e.ownsGroup=Ir={ops:[e],delayedCallbacks:[]}}function xt(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Vt(e,t){var r=e.ownsGroup;if(r)try{xt(r)}finally{Ir=null,t(r)}}var Ct=null;function mt(e,t){var r=Ge(e,t);if(r.length){var n=Array.prototype.slice.call(arguments,2),i;Ir?i=Ir.delayedCallbacks:Ct?i=Ct:(i=Ct=[],setTimeout(Sn,0));for(var o=function(l){i.push(function(){return r[l].apply(null,n)})},a=0;a<r.length;++a)o(a)}}function Sn(){var e=Ct;Ct=null;for(var t=0;t<e.length;++t)e[t]()}function En(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?Yn(e,t):o=="gutter"?Yr(e,t,r,n):o=="class"?yr(e,t):o=="widget"&&oi(e,t,n)}t.changes=null}function er(e){return e.node==e.text&&(e.node=z("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),v&&P<8&&(e.node.style.zIndex=2)),e.node}function lr(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var n=er(t);t.background=n.insertBefore(z("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function mr(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):gr(e,t)}function Yn(e,t){var r=t.text.className,n=mr(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,yr(e,t)):r&&(t.text.className=r)}function yr(e,t){lr(e,t),t.line.wrapClass?er(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Yr(e,t,r,n){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=er(t);t.gutterBackground=z("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=er(t),l=t.gutter=z("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),a.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=l.appendChild(z("div",je(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var u=e.display.gutterSpecs[s].className,g=o.hasOwnProperty(u)&&o[u];g&&l.appendChild(z("div",[g],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function oi(e,t,r){t.alignable&&(t.alignable=null);for(var n=f("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);Fr(e,t,r)}function ci(e,t,r,n){var i=mr(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yr(e,t),Yr(e,t,r,n),Fr(e,t,n),t.node}function Fr(e,t,r){if(ft(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)ft(e,t.rest[n],t,r,!1)}function ft(e,t,r,n,i){if(t.widgets)for(var o=er(r),a=0,l=t.widgets;a<l.length;++a){var s=l[a],u=z("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Xt(s,u,r,n),e.display.input.setUneditable(u),i&&s.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),mt(s,"redraw")}}function Xt(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function In(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!R(document.body,e.node)){var r="position: relative;";e.coverGutter&&(r+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(r+="width: "+t.display.wrapper.clientWidth+"px;"),q(t.display.measure,z("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Nn(e,t){for(var r=_t(t);r!=e.wrapper;r=r.parentNode)if(!r||r.nodeType==1&&r.getAttribute("cm-ignore-events")=="true"||r.parentNode==e.sizer&&r!=e.mover)return!0}function zn(e){return e.lineSpace.offsetTop}function ni(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function fi(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=q(e.measure,z("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return!isNaN(n.left)&&!isNaN(n.right)&&(e.cachedPaddingH=n),n}function Rr(e){return ze-e.display.nativeBarWidth}function Lr(e){return e.display.scroller.clientWidth-Rr(e)-e.display.barWidth}function Ui(e){return e.display.scroller.clientHeight-Rr(e)-e.display.barHeight}function So(e,t,r){var n=e.options.lineWrapping,i=n&&Lr(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),l=0;l<a.length-1;l++){var s=a[l],u=a[l+1];Math.abs(s.bottom-u.bottom)>2&&o.push((s.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Vi(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(ie(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function jo(e,t){t=ht(t);var r=ie(t),n=e.display.externalMeasured=new ti(e.doc,t,r);n.lineN=r;var i=n.built=gr(e,n);return n.text=i.pre,q(e.display.lineMeasure,i.pre),n}function Gi(e,t,r,n){return Vr(e,di(e,t),r,n)}function Xi(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[wi(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function di(e,t){var r=ie(t),n=Xi(e,r);n&&!n.text?n=null:n&&n.changes&&(En(e,n,r,Uo(e)),e.curOp.forceUpdate=!0),n||(n=jo(e,t));var i=Vi(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Vr(e,t,r,n,i){t.before&&(r=-1);var o=r+(n||""),a;return t.cache.hasOwnProperty(o)?a=t.cache[o]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(So(e,t.view,t.rect),t.hasHeights=!0),a=Cn(e,t,r,n),a.bogus||(t.cache[o]=a)),{left:a.left,right:a.right,top:i?a.rtop:a.top,bottom:i?a.rbottom:a.bottom}}var Co={left:0,right:0,top:0,bottom:0};function Yi(e,t,r){for(var n,i,o,a,l,s,u=0;u<e.length;u+=3)if(l=e[u],s=e[u+1],t<l?(i=0,o=1,a="left"):t<s?(i=t-l,o=i+1):(u==e.length-3||t==s&&e[u+3]>t)&&(o=s-l,i=o-1,t>=s&&(a="right")),i!=null){if(n=e[u+2],l==s&&r==(n.insertLeft?"left":"right")&&(a=r),r=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[(u-=3)+2],a="left";if(r=="right"&&i==s-l)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],a="right";break}return{node:n,start:i,end:o,collapse:a,coverStart:l,coverEnd:s}}function Qi(e,t){var r=Co;if(t=="left")for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function Cn(e,t,r,n){var i=Yi(t.map,r,n),o=i.node,a=i.start,l=i.end,s=i.collapse,u;if(o.nodeType==3){for(var g=0;g<4;g++){for(;a&&ae(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+l<i.coverEnd&&ae(t.line.text.charAt(i.coverStart+l));)++l;if(v&&P<9&&a==0&&l==i.coverEnd-i.coverStart?u=o.parentNode.getBoundingClientRect():u=Qi(oe(o,a,l).getClientRects(),n),u.left||u.right||a==0)break;l=a,a=a-1,s="right"}v&&P<11&&(u=un(e.display.measure,u))}else{a>0&&(s=n="right");var y;e.options.lineWrapping&&(y=o.getClientRects()).length>1?u=y[n=="right"?y.length-1:0]:u=o.getBoundingClientRect()}if(v&&P<9&&!a&&(!u||!u.left&&!u.right)){var A=o.parentNode.getClientRects()[0];A?u={left:A.left,right:A.left+Ti(e.display),top:A.top,bottom:A.bottom}:u=Co}for(var L=u.top-t.rect.top,he=u.bottom-t.rect.top,Oe=(L+he)/2,He=t.view.measure.heights,et=0;et<He.length-1&&!(Oe<He[et]);et++);var lt=et?He[et-1]:0,tt=He[et],gt={left:(s=="right"?u.right:u.left)-t.rect.left,right:(s=="left"?u.left:u.right)-t.rect.left,top:lt,bottom:tt};return!u.left&&!u.right&&(gt.bogus=!0),e.options.singleCursorHeightPerLine||(gt.rtop=L,gt.rbottom=he),gt}function un(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!bn(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function sr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function br(e){e.display.externalMeasure=null,T(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)sr(e.display.view[t])}function Un(e){br(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function wr(){return se&&ve?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zr(){return se&&ve?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function ai(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=In(e.widgets[r]));return t}function Kr(e,t,r,n,i){if(!i){var o=ai(t);r.top+=o,r.bottom+=o}if(n=="line")return r;n||(n="local");var a=Fn(t);if(n=="local"?a+=zn(e.display):a-=e.display.viewOffset,n=="page"||n=="window"){var l=e.display.lineSpace.getBoundingClientRect();a+=l.top+(n=="window"?0:zr());var s=l.left+(n=="window"?0:wr());r.left+=s,r.right+=s}return r.top+=a,r.bottom+=a,r}function li(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=wr(),i-=zr();else if(r=="local"||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:i-a.top}}function Gr(e,t,r,n,i){return n||(n=O(e.doc,t.line)),Kr(e,n,Gi(e,n,t.ch,i),r)}function Zr(e,t,r,n,i,o){n=n||O(e.doc,t.line),i||(i=di(e,n));function a(he,Oe){var He=Vr(e,i,he,Oe?"right":"left",o);return Oe?He.left=He.right:He.right=He.left,Kr(e,n,He,r)}var l=Re(n,e.doc.direction),s=t.ch,u=t.sticky;if(s>=n.text.length?(s=n.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return a(u=="before"?s-1:s,u=="before");function g(he,Oe,He){var et=l[Oe],lt=et.level==1;return a(He?he-1:he,lt!=He)}var y=we(l,s,u),A=Ee,L=g(s,y,u=="before");return A!=null&&(L.other=g(s,A,u!="before")),L}function Ca(e,t){var r=0;t=pe(e.doc,t),e.options.lineWrapping||(r=Ti(e.display)*t.ch);var n=O(e.doc,t.line),i=Fn(n)+zn(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Ko(e,t,r,n,i){var o=N(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function _o(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return Ko(n.first,0,null,-1,-1);var i=ge(n,r),o=n.first+n.size-1;if(i>o)return Ko(n.first+n.size-1,O(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=O(n,i);;){var l=Hl(e,a,i,t,r),s=Ue(a,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==i)return u;a=O(n,i=u.line)}}function xa(e,t,r,n){n-=ai(t);var i=t.text.length,o=de(function(a){return Vr(e,r,a-1).bottom<=n},i,0);return i=de(function(a){return Vr(e,r,a).top>n},o,i),{begin:o,end:i}}function wa(e,t,r,n){r||(r=di(e,t));var i=Kr(e,t,Vr(e,r,n),"line").top;return xa(e,t,r,i)}function ko(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function Hl(e,t,r,n,i){i-=Fn(t);var o=di(e,t),a=ai(t),l=0,s=t.text.length,u=!0,g=Re(t,e.doc.direction);if(g){var y=(e.options.lineWrapping?Kl:jl)(e,t,r,o,g,n,i);u=y.level!=1,l=u?y.from:y.to-1,s=u?y.to:y.from-1}var A=null,L=null,he=de(function(At){var Lt=Vr(e,o,At);return Lt.top+=a,Lt.bottom+=a,ko(Lt,n,i,!1)?(Lt.top<=i&&Lt.left<=n&&(A=At,L=Lt),!0):!1},l,s),Oe,He,et=!1;if(L){var lt=n-L.left<L.right-n,tt=lt==u;he=A+(tt?0:1),He=tt?"after":"before",Oe=lt?L.left:L.right}else{!u&&(he==s||he==l)&&he++,He=he==0?"after":he==t.text.length?"before":Vr(e,o,he-(u?1:0)).bottom+a<=i==u?"after":"before";var gt=Zr(e,N(r,he,He),"line",t,o);Oe=gt.left,et=i<gt.top?-1:i>=gt.bottom?1:0}return he=le(t.text,he,1),Ko(r,he,He,et,n-Oe)}function jl(e,t,r,n,i,o,a){var l=de(function(y){var A=i[y],L=A.level!=1;return ko(Zr(e,N(r,L?A.to:A.from,L?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),s=i[l];if(l>0){var u=s.level!=1,g=Zr(e,N(r,u?s.from:s.to,u?"after":"before"),"line",t,n);ko(g,o,a,!0)&&g.top>a&&(s=i[l-1])}return s}function Kl(e,t,r,n,i,o,a){var l=xa(e,t,n,a),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var g=null,y=null,A=0;A<i.length;A++){var L=i[A];if(!(L.from>=u||L.to<=s)){var he=L.level!=1,Oe=Vr(e,n,he?Math.min(u,L.to)-1:Math.max(s,L.from)).right,He=Oe<o?o-Oe+1e9:Oe-o;(!g||y>He)&&(g=L,y=He)}}return g||(g=i[i.length-1]),g.from<s&&(g={from:s,to:g.to,level:g.level}),g.to>u&&(g={from:g.from,to:u,level:g.level}),g}var Ci;function Pi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ci==null){Ci=z("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Ci.appendChild(document.createTextNode("x")),Ci.appendChild(z("br"));Ci.appendChild(document.createTextNode("x"))}q(e.measure,Ci);var r=Ci.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),T(e.measure),r||1}function Ti(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=z("span","xxxxxxxxxx"),r=z("pre",[t],"CodeMirror-line-like");q(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Uo(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var l=e.display.gutterSpecs[a].className;r[l]=o.offsetLeft+o.clientLeft+i,n[l]=o.clientWidth}return{fixedPos:Vo(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function Vo(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ea(e){var t=Pi(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Ti(e.display)-3);return function(i){if(Kn(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function Go(e){var t=e.doc,r=Ea(e);t.iter(function(n){var i=r(n);i!=n.height&&ee(n,i)})}function xi(e,t,r,n){var i=e.display;if(!r&&_t(t).getAttribute("cm-not-content")=="true")return null;var o,a,l=i.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,a=t.clientY-l.top}catch(y){return null}var s=_o(e,o,a),u;if(n&&s.xRel>0&&(u=O(e.doc,s.line).text).length==s.ch){var g=V(u,u.length,e.options.tabSize)-u.length;s=N(s.line,Math.max(0,Math.round((o-fi(e.display).left)/Ti(e.display))-g))}return s}function wi(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var r=e.display.view,n=0;n<r.length;n++)if(t-=r[n].size,t<0)return n}function Pr(e,t,r,n){t==null&&(t=e.doc.first),r==null&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&Gn(e.doc,t)<i.viewTo&&vi(e);else if(r<=i.viewFrom)Ot&&Hn(e.doc,r+n)>i.viewFrom?vi(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)vi(e);else if(t<=i.viewFrom){var o=xo(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):vi(e)}else if(r>=i.viewTo){var a=xo(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vi(e)}else{var l=xo(e,t,t,-1),s=xo(e,r,r+n,1);l&&s?(i.view=i.view.slice(0,l.index).concat($r(e,l.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=n):vi(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function hi(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[wi(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);ue(a,r)==-1&&a.push(r)}}}function vi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function xo(e,t,r,n){var i=wi(e,t),o,a=e.display.view;if(!Ot||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=a[s].size;if(l!=t){if(n>0){if(i==a.length-1)return null;o=l+a[i].size-t,i++}else o=l-t;t+=o,r+=o}for(;Gn(e.doc,r)!=r;){if(i==(n<0?0:a.length-1))return null;r+=n*a[i-(n<0?1:0)].size,i+=n}return{index:i,lineN:r}}function _l(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=$r(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=$r(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(wi(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat($r(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,wi(e,r)))),n.viewTo=r}function Oa(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];!i.hidden&&(!i.node||i.changes)&&++r}return r}function Ji(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ma(e,t){t===void 0&&(t=!0);for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),a=0;a<r.sel.ranges.length;a++)if(!(!t&&a==r.sel.primIndex)){var l=r.sel.ranges[a];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&Ia(e,l.head,i),s||kl(e,l,o)}}return n}function Ia(e,t,r){var n=Zr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild(z("div","\xA0","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*e.options.cursorHeight+"px",n.other){var o=r.appendChild(z("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=(n.other.bottom-n.other.top)*.85+"px"}}function wo(e,t){return e.top-t.top||e.left-t.left}function kl(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),a=fi(e.display),l=a.left,s=Math.max(n.sizerWidth,Lr(e)-n.sizer.offsetLeft)-a.right,u=i.direction=="ltr";function g(tt,gt,At,Lt){gt<0&&(gt=0),gt=Math.round(gt),Lt=Math.round(Lt),o.appendChild(z("div",null,"CodeMirror-selected","position: absolute; left: "+tt+`px;
top: `+gt+"px; width: "+(At==null?s-tt:At)+`px;
height: `+(Lt-gt)+"px"))}function y(tt,gt,At){var Lt=O(i,tt),vn=Lt.text.length,Bn,fr;function Jn(ir,Nr){return Gr(e,N(tt,ir),"div",Lt,Nr)}function Br(ir,Nr,hr){var ar=wa(e,Lt,null,ir),or=Nr=="ltr"==(hr=="after")?"left":"right",qn=hr=="after"?ar.begin:ar.end-(/\s/.test(Lt.text.charAt(ar.end-1))?2:1);return Jn(qn,or)[or]}var Dr=Re(Lt,i.direction);return Ie(Dr,gt||0,At==null?vn:At,function(ir,Nr,hr,ar){var or=hr=="ltr",qn=Jn(ir,or?"left":"right"),Ar=Jn(Nr-1,or?"right":"left"),_i=gt==null&&ir==0,Si=At==null&&Nr==vn,Cr=ar==0,ri=!Dr||ar==Dr.length-1;if(Ar.top-qn.top<=3){var dr=(u?_i:Si)&&Cr,ba=(u?Si:_i)&&ri,ui=dr?l:(or?qn:Ar).left,Ri=ba?s:(or?Ar:qn).right;g(ui,qn.top,Ri-ui,qn.bottom)}else{var Li,Or,ki,Sa;or?(Li=u&&_i&&Cr?l:qn.left,Or=u?s:Br(ir,hr,"before"),ki=u?l:Br(Nr,hr,"after"),Sa=u&&Si&&ri?s:Ar.right):(Li=u?Br(ir,hr,"before"):l,Or=!u&&_i&&Cr?s:qn.right,ki=!u&&Si&&ri?l:Ar.left,Sa=u?Br(Nr,hr,"after"):s),g(Li,qn.top,Or-Li,qn.bottom),qn.bottom<Ar.top&&g(l,qn.bottom,null,Ar.top),g(ki,Ar.top,Sa-ki,Ar.bottom)}(!Bn||wo(qn,Bn)<0)&&(Bn=qn),wo(Ar,Bn)<0&&(Bn=Ar),(!fr||wo(qn,fr)<0)&&(fr=qn),wo(Ar,fr)<0&&(fr=Ar)}),{start:Bn,end:fr}}var A=t.from(),L=t.to();if(A.line==L.line)y(A.line,A.ch,L.ch);else{var he=O(i,A.line),Oe=O(i,L.line),He=ht(he)==ht(Oe),et=y(A.line,A.ch,He?he.text.length+1:null).end,lt=y(L.line,He?0:null,L.ch).start;He&&(et.top<lt.top-2?(g(et.right,et.top,null,et.bottom),g(l,lt.top,lt.left,lt.bottom)):g(et.right,et.top,lt.left-et.right,et.bottom)),et.bottom<lt.top&&g(l,et.bottom,null,lt.top)}r.appendChild(o)}function Xo(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Di(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ra(e){e.state.focused||(e.display.input.focus(),Yo(e))}function La(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Di(e))},100)}function Yo(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,$(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),I&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Xo(e))}function Di(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,b(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Eo(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=e.options.lineWrapping,a=void 0,l=0;if(!i.hidden){if(v&&P<8){var s=i.node.offsetTop+i.node.offsetHeight;a=s-r,r=s}else{var u=i.node.getBoundingClientRect();a=u.bottom-u.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-u.left-1)}var g=i.line.height-a;if((g>.005||g<-.005)&&(ee(i.line,a),Pa(i.line),i.rest))for(var y=0;y<i.rest.length;y++)Pa(i.rest[y]);if(l>e.display.sizerWidth){var A=Math.ceil(l/Ti(e.display));A>e.display.maxLineLength&&(e.display.maxLineLength=A,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Pa(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var r=e.widgets[t],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function Oo(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-zn(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,o=ge(t,n),a=ge(t,i);if(r&&r.ensure){var l=r.ensure.from.line,s=r.ensure.to.line;l<o?(o=l,a=ge(t,Fn(O(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=a&&(o=ge(t,Fn(O(t,s))-e.wrapper.clientHeight),a=s)}return{from:o,to:Math.max(a,o+1)}}function Ul(e,t){if(!Je(e,"scrollCursorIntoView")){var r=e.display,n=r.sizer.getBoundingClientRect(),i=null;if(t.top+n.top<0?i=!0:t.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),i!=null&&!me){var o=z("div","\u200B",null,`position: absolute;
top: `+(t.top-r.viewOffset-zn(e.display))+`px;
height: `+(t.bottom-t.top+Rr(e)+r.barHeight)+`px;
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}function Vl(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(t=t.ch?N(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?N(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,l=Zr(e,t),s=!r||r==t?l:Zr(e,r);i={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-n,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+n};var u=Qo(e,i),g=e.doc.scrollTop,y=e.doc.scrollLeft;if(u.scrollTop!=null&&(eo(e,u.scrollTop),Math.abs(e.doc.scrollTop-g)>1&&(a=!0)),u.scrollLeft!=null&&(Ei(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-y)>1&&(a=!0)),!a)break}return i}function Gl(e,t){var r=Qo(e,t);r.scrollTop!=null&&eo(e,r.scrollTop),r.scrollLeft!=null&&Ei(e,r.scrollLeft)}function Qo(e,t){var r=e.display,n=Pi(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=Ui(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+ni(r),s=t.top<n,u=t.bottom>l-n;if(t.top<i)a.scrollTop=s?0:t.top;else if(t.bottom>i+o){var g=Math.min(t.top,(u?l:t.bottom)-o);g!=i&&(a.scrollTop=g)}var y=e.options.fixedGutter?0:r.gutters.offsetWidth,A=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-y,L=Lr(e)-r.gutters.offsetWidth,he=t.right-t.left>L;return he&&(t.right=t.left+L),t.left<10?a.scrollLeft=0:t.left<A?a.scrollLeft=Math.max(0,t.left+y-(he?0:10)):t.right>L+A-3&&(a.scrollLeft=t.right+(he?0:10)-L),a}function Jo(e,t){t!=null&&(Mo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Ni(e){Mo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function qi(e,t,r){(t!=null||r!=null)&&Mo(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Xl(e,t){Mo(e),e.curOp.scrollToPos=t}function Mo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Ca(e,t.from),n=Ca(e,t.to);Ta(e,r,n,t.margin)}}function Ta(e,t,r,n){var i=Qo(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});qi(e,i.scrollLeft,i.scrollTop)}function eo(e,t){Math.abs(e.doc.scrollTop-t)<2||(x||ea(e,{top:t}),Da(e,t,!0),x&&ea(e),ro(e,100))}function Da(e,t,r){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Ei(e,t,r,n){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n)&&(e.doc.scrollLeft=t,za(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function to(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+ni(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Rr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var Oi=function(e,t,r){this.cm=r;var n=this.vert=z("div",[z("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=z("div",[z("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),U(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),U(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,v&&P<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Oi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(n==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},Oi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Oi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Oi.prototype.zeroWidthHack=function(){var e=Ve&&!D?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new fe,this.disableVert=new fe},Oi.prototype.enableZeroWidthBar=function(e,t,r){e.style.pointerEvents="auto";function n(){var i=e.getBoundingClientRect(),o=r=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,n)}t.set(1e3,n)},Oi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var no=function(){};no.prototype.update=function(){return{bottom:0,right:0}},no.prototype.setScrollLeft=function(){},no.prototype.setScrollTop=function(){},no.prototype.clear=function(){};function Ai(e,t){t||(t=to(e));var r=e.display.barWidth,n=e.display.barHeight;Na(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Eo(e),Na(e,to(e)),r=e.display.barWidth,n=e.display.barHeight}function Na(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}var Aa={native:Oi,null:no};function $a(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&b(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Aa[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),U(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){r=="horizontal"?Ei(e,t):eo(e,t)},e),e.display.scrollbars.addClass&&$(e.display.wrapper,e.display.scrollbars.addClass)}var Yl=0;function Mi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yl},Xr(e.curOp)}function Ii(e){var t=e.curOp;t&&Vt(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;Ql(r)})}function Ql(e){for(var t=e.ops,r=0;r<t.length;r++)Jl(t[r]);for(var n=0;n<t.length;n++)ql(t[n]);for(var i=0;i<t.length;i++)es(t[i]);for(var o=0;o<t.length;o++)ts(t[o]);for(var a=0;a<t.length;a++)ns(t[a])}function Jl(e){var t=e.cm,r=t.display;is(t),e.updateMaxLine&&Wn(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Io(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ql(e){e.updatedDisplay=e.mustUpdate&&qo(e.cm,e.update)}function es(e){var t=e.cm,r=t.display;e.updatedDisplay&&Eo(t),e.barMeasure=to(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Gi(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Rr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Lr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function ts(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Ei(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==E();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ai(t,e.barMeasure),e.updatedDisplay&&na(t,e.barMeasure),e.selectionChanged&&Xo(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ra(e.cm)}function ns(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Fa(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&Da(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Ei(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=Vl(t,pe(n,e.scrollToPos.from),pe(n,e.scrollToPos.to),e.scrollToPos.margin);Ul(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||Ae(o[l],"hide");if(a)for(var s=0;s<a.length;++s)a[s].lines.length&&Ae(a[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Wr(e,t){if(e.curOp)return t();Mi(e);try{return t()}finally{Ii(e)}}function ur(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Mi(e);try{return t.apply(e,arguments)}finally{Ii(e)}}}function Er(e){return function(){if(this.curOp)return e.apply(this,arguments);Mi(this);try{return e.apply(this,arguments)}finally{Ii(this)}}}function cr(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Mi(t);try{return e.apply(this,arguments)}finally{Ii(t)}}}function ro(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,G(rs,e))}function rs(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=It(e,t.highlightFrontier),i=[];t.iter(n.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(n.line>=e.display.viewFrom){var a=o.styles,l=o.text.length>e.options.maxHighlightLength?k(t.mode,n.state):null,s=at(e,o,n,!0);l&&(n.state=l),o.styles=s.styles;var u=o.styleClasses,g=s.classes;g?o.styleClasses=g:u&&(o.styleClasses=null);for(var y=!a||a.length!=o.styles.length||u!=g&&(!u||!g||u.bgClass!=g.bgClass||u.textClass!=g.textClass),A=0;!y&&A<a.length;++A)y=a[A]!=o.styles[A];y&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Ft(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return ro(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Wr(e,function(){for(var o=0;o<i.length;o++)hi(e,i[o],"text")})}}var Io=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Oo(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Lr(e),this.force=r,this.dims=Uo(e),this.events=[]};Io.prototype.signal=function(e,t){ke(e,t)&&this.events.push(arguments)},Io.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ae.apply(null,this.events[e])};function is(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Rr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Rr(e)+"px",t.scrollbarsClipped=!0)}function os(e){if(e.hasFocus())return null;var t=E();if(!t||!R(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&R(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function as(e){if(!(!e||!e.activeElt||e.activeElt==E())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&R(document.body,e.anchorNode)&&R(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function qo(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return vi(e),!1;if(!t.force&&t.visible.from>=r.viewFrom&&t.visible.to<=r.viewTo&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&Oa(e)==0)return!1;Za(e)&&(vi(e),t.dims=Uo(e));var i=n.first+n.size,o=Math.max(t.visible.from-e.options.viewportMargin,n.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>a&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Ot&&(o=Gn(e.doc,o),a=Hn(e.doc,a));var l=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;_l(e,o,a),r.viewOffset=Fn(O(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var s=Oa(e);if(!l&&s==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var u=os(e);return s>4&&(r.lineDiv.style.display="none"),ls(e,r.updateLineNumbers,t.dims),s>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,as(u),T(r.cursorDiv),T(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,l&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,ro(e,400)),r.updateLineNumbers=null,!0}function Fa(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==Lr(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+ni(e.display)-Ui(e),r.top)}),t.visible=Oo(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=Oo(e.display,e.doc,r));if(!qo(e,t))break;Eo(e);var i=to(e);Ji(e),Ai(e,i),na(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ea(e,t){var r=new Io(e,t);if(qo(e,r)){Eo(e),Fa(e,r);var n=to(e);Ji(e),Ai(e,n),na(e,n),r.finish()}}function ls(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function l(he){var Oe=he.nextSibling;return I&&Ve&&e.display.currentWheelTarget==he?he.style.display="none":he.parentNode.removeChild(he),Oe}for(var s=n.view,u=n.viewFrom,g=0;g<s.length;g++){var y=s[g];if(!y.hidden)if(!y.node||y.node.parentNode!=o){var A=ci(e,y,u,r);o.insertBefore(A,a)}else{for(;a!=y.node;)a=l(a);var L=i&&t!=null&&t<=u&&y.lineNumber;y.changes&&(ue(y.changes,"gutter")>-1&&(L=!1),En(e,y,u,r)),L&&(T(y.lineNumber),y.lineNumber.appendChild(document.createTextNode(je(e.options,u)))),a=y.node.nextSibling}u+=y.size}for(;a;)a=l(a)}function ta(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function na(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Rr(e)+"px"}function za(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=Vo(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",a=0;a<r.length;a++)if(!r[a].hidden){e.options.fixedGutter&&(r[a].gutter&&(r[a].gutter.style.left=o),r[a].gutterBackground&&(r[a].gutterBackground.style.left=o));var l=r[a].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Za(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=je(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(z("div",[z("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-a)+1,n.lineNumWidth=n.lineNumInnerWidth+a,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",ta(e.display),!0}return!1}function ra(e,t){for(var r=[],n=!1,i=0;i<e.length;i++){var o=e[i],a=null;if(typeof o!="string"&&(a=o.style,o=o.className),o=="CodeMirror-linenumbers")if(t)n=!0;else continue;r.push({className:o,style:a})}return t&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function Wa(e){var t=e.gutters,r=e.gutterSpecs;T(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,a=i.style,l=t.appendChild(z("div",null,"CodeMirror-gutter "+o));a&&(l.style.cssText=a),o=="CodeMirror-linenumbers"&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",ta(e)}function io(e){Wa(e.display),Pr(e),za(e)}function ss(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=z("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=z("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=De("div",null,"CodeMirror-code"),i.selectionDiv=z("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=z("div",null,"CodeMirror-cursors"),i.measure=z("div",null,"CodeMirror-measure"),i.lineMeasure=z("div",null,"CodeMirror-measure"),i.lineSpace=De("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=De("div",[i.lineSpace],"CodeMirror-lines");i.mover=z("div",[o],null,"position: relative"),i.sizer=z("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=z("div",null,null,"position: absolute; height: "+ze+"px; width: 1px;"),i.gutters=z("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=z("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=z("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),v&&P<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!I&&!(x&&We)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=ra(n.gutters,n.lineNumbers),Wa(i),r.init(i)}var Ro=0,_r=null;v?_r=-.53:x?_r=15:se?_r=-.7:xe&&(_r=-1/3);function Ba(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),r==null&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:r==null&&(r=e.wheelDelta),{x:t,y:r}}function us(e){var t=Ba(e);return t.x*=_r,t.y*=_r,t}function Ha(e,t){var r=Ba(t),n=r.x,i=r.y,o=e.display,a=o.scroller,l=a.scrollWidth>a.clientWidth,s=a.scrollHeight>a.clientHeight;if(n&&l||i&&s){if(i&&Ve&&I){e:for(var u=t.target,g=o.view;u!=a;u=u.parentNode)for(var y=0;y<g.length;y++)if(g[y].node==u){e.display.currentWheelTarget=u;break e}}if(n&&!x&&!p&&_r!=null){i&&s&&eo(e,Math.max(0,a.scrollTop+i*_r)),Ei(e,Math.max(0,a.scrollLeft+n*_r)),(!i||i&&s)&&vt(t),o.wheelStartX=null;return}if(i&&_r!=null){var A=i*_r,L=e.doc.scrollTop,he=L+o.wrapper.clientHeight;A<0?L=Math.max(0,L+A-50):he=Math.min(e.doc.height,he+A+50),ea(e,{top:L,bottom:he})}Ro<20&&(o.wheelStartX==null?(o.wheelStartX=a.scrollLeft,o.wheelStartY=a.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(o.wheelStartX!=null){var Oe=a.scrollLeft-o.wheelStartX,He=a.scrollTop-o.wheelStartY,et=He&&o.wheelDY&&He/o.wheelDY||Oe&&o.wheelDX&&Oe/o.wheelDX;o.wheelStartX=o.wheelStartY=null,et&&(_r=(_r*Ro+et)/(Ro+1),++Ro)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}var kr=function(e,t){this.ranges=e,this.primIndex=t};kr.prototype.primary=function(){return this.ranges[this.primIndex]},kr.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var r=this.ranges[t],n=e.ranges[t];if(!Xe(r.anchor,n.anchor)||!Xe(r.head,n.head))return!1}return!0},kr.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Pn(Ze(this.ranges[t].anchor),Ze(this.ranges[t].head));return new kr(e,this.primIndex)},kr.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},kr.prototype.contains=function(e,t){t||(t=e);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(ce(t,n.from())>=0&&ce(e,n.to())<=0)return r}return-1};var Pn=function(e,t){this.anchor=e,this.head=t};Pn.prototype.from=function(){return Ye(this.anchor,this.head)},Pn.prototype.to=function(){return Ke(this.anchor,this.head)},Pn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qr(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(A,L){return ce(A.from(),L.from())}),r=ue(t,i);for(var o=1;o<t.length;o++){var a=t[o],l=t[o-1],s=ce(l.to(),a.from());if(n&&!a.empty()?s>0:s>=0){var u=Ye(l.from(),a.from()),g=Ke(l.to(),a.to()),y=l.empty()?a.from()==a.head:l.from()==l.head;o<=r&&--r,t.splice(--o,2,new Pn(y?g:u,y?u:g))}}return new kr(t,r)}function gi(e,t){return new kr([new Pn(e,t||e)],0)}function pi(e){return e.text?N(e.from.line+e.text.length-1,rt(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function ja(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return pi(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=pi(t).ch-t.to.ch),N(r,n)}function ia(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new Pn(ja(i.anchor,t),ja(i.head,t)))}return Qr(e.cm,r,e.sel.primIndex)}function Ka(e,t,r){return e.line==t.line?N(r.line,e.ch-t.ch+r.ch):N(r.line+(e.line-t.line),e.ch)}function cs(e,t,r){for(var n=[],i=N(e.first,0),o=i,a=0;a<t.length;a++){var l=t[a],s=Ka(l.from,i,o),u=Ka(pi(l),i,o);if(i=l.to,o=u,r=="around"){var g=e.sel.ranges[a],y=ce(g.head,g.anchor)<0;n[a]=new Pn(y?u:s,y?s:u)}else n[a]=new Pn(s,s)}return new kr(n,e.sel.primIndex)}function oa(e){e.doc.mode=ut(e.options,e.doc.modeOption),oo(e)}function oo(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ro(e,100),e.state.modeGen++,e.curOp&&Pr(e)}function _a(e,t){return t.from.ch==0&&t.to.ch==0&&rt(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function aa(e,t,r,n){function i(lt){return r?r[lt]:null}function o(lt,tt,gt){xr(lt,tt,gt,n),mt(lt,"change",lt,t)}function a(lt,tt){for(var gt=[],At=lt;At<tt;++At)gt.push(new Xn(u[At],i(At),n));return gt}var l=t.from,s=t.to,u=t.text,g=O(e,l.line),y=O(e,s.line),A=rt(u),L=i(u.length-1),he=s.line-l.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(_a(e,t)){var Oe=a(0,u.length-1);o(y,y.text,L),he&&e.remove(l.line,he),Oe.length&&e.insert(l.line,Oe)}else if(g==y)if(u.length==1)o(g,g.text.slice(0,l.ch)+A+g.text.slice(s.ch),L);else{var He=a(1,u.length-1);He.push(new Xn(A+g.text.slice(s.ch),L,n)),o(g,g.text.slice(0,l.ch)+u[0],i(0)),e.insert(l.line+1,He)}else if(u.length==1)o(g,g.text.slice(0,l.ch)+u[0]+y.text.slice(s.ch),i(0)),e.remove(l.line+1,he);else{o(g,g.text.slice(0,l.ch)+u[0],i(0)),o(y,A+y.text.slice(s.ch),L);var et=a(1,u.length-1);he>1&&e.remove(l.line+1,he-1),e.insert(l.line+1,et)}mt(e,"change",e,t)}function mi(e,t,r){function n(i,o,a){if(i.linked)for(var l=0;l<i.linked.length;++l){var s=i.linked[l];if(s.doc!=o){var u=a&&s.sharedHist;r&&!u||(t(s.doc,u),n(s.doc,i,u))}}}n(e,null,!0)}function ka(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Go(e),oa(e),Ua(e),e.options.lineWrapping||Wn(e),e.options.mode=t.modeOption,Pr(e)}function Ua(e){(e.doc.direction=="rtl"?$:b)(e.display.lineDiv,"CodeMirror-rtl")}function fs(e){Wr(e,function(){Ua(e),Pr(e)})}function Lo(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function la(e,t){var r={from:Ze(t.from),to:pi(t),text:B(e,t.from,t.to)};return Xa(e,r,t.from.line,t.to.line+1),mi(e,function(n){return Xa(n,r,t.from.line,t.to.line+1)},!0),r}function Va(e){for(;e.length;){var t=rt(e);if(t.ranges)e.pop();else break}}function ds(e,t){if(t)return Va(e.done),rt(e.done);if(e.done.length&&!rt(e.done).ranges)return rt(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),rt(e.done)}function Ga(e,t,r,n){var i=e.history;i.undone.length=0;var o=+new Date,a,l;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(a=ds(i,i.lastOp==n)))l=rt(a.changes),ce(t.from,t.to)==0&&ce(t.from,l.to)==0?l.to=pi(t):a.changes.push(la(e,t));else{var s=rt(i.done);for((!s||!s.ranges)&&Po(e.sel,i.done),a={changes:[la(e,t)],generation:i.generation},i.done.push(a);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Ae(e,"historyAdded")}function hs(e,t,r,n){var i=t.charAt(0);return i=="*"||i=="+"&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vs(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||hs(e,o,rt(i.done),t))?i.done[i.done.length-1]=t:Po(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Va(i.undone)}function Po(e,t){var r=rt(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Xa(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(a){a.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=a.markedSpans),++o})}function gs(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function ps(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(gs(r[i]));return n}function Ya(e,t){var r=ps(e,t),n=St(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],a=n[i];if(o&&a)e:for(var l=0;l<a.length;++l){for(var s=a[l],u=0;u<o.length;++u)if(o[u].marker==s.marker)continue e;o.push(s)}else a&&(r[i]=a)}return r}function $i(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){n.push(r?kr.prototype.deepCopy.call(o):o);continue}var a=o.changes,l=[];n.push({changes:l});for(var s=0;s<a.length;++s){var u=a[s],g=void 0;if(l.push({from:u.from,to:u.to,text:u.text}),t)for(var y in u)(g=y.match(/^spans_(\d+)$/))&&ue(t,Number(g[1]))>-1&&(rt(l)[y]=u[y],delete u[y])}}return n}function sa(e,t,r,n){if(n){var i=e.anchor;if(r){var o=ce(t,i)<0;o!=ce(r,i)<0?(i=t,t=r):o!=ce(t,r)<0&&(t=r)}return new Pn(i,t)}else return new Pn(r||t,t)}function To(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),Sr(e,new kr([sa(e.sel.primary(),t,r,i)],0),n)}function Qa(e,t,r){for(var n=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)n[o]=sa(e.sel.ranges[o],t[o],null,i);var a=Qr(e.cm,n,e.sel.primIndex);Sr(e,a,r)}function ua(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,Sr(e,Qr(e.cm,i,e.sel.primIndex),n)}function Ja(e,t,r,n){Sr(e,gi(t,r),n)}function ms(e,t,r){var n={ranges:t.ranges,update:function(i){this.ranges=[];for(var o=0;o<i.length;o++)this.ranges[o]=new Pn(pe(e,i[o].anchor),pe(e,i[o].head))},origin:r&&r.origin};return Ae(e,"beforeSelectionChange",e,n),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?Qr(e.cm,n.ranges,n.ranges.length-1):t}function qa(e,t,r){var n=e.history.done,i=rt(n);i&&i.ranges?(n[n.length-1]=t,Do(e,t,r)):Sr(e,t,r)}function Sr(e,t,r){Do(e,t,r),vs(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function Do(e,t,r){(ke(e,"beforeSelectionChange")||e.cm&&ke(e.cm,"beforeSelectionChange"))&&(t=ms(e,t,r));var n=r&&r.bias||(ce(t.primary().head,e.sel.primary().head)<0?-1:1);el(e,nl(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&Ni(e.cm)}function el(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,it(e.cm)),mt(e,"cursorActivity",e))}function tl(e){el(e,nl(e,e.sel,null,!1))}function nl(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=No(e,a.anchor,l&&l.anchor,r,n),u=No(e,a.head,l&&l.head,r,n);(i||s!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new Pn(s,u))}return i?Qr(e.cm,i,t.primIndex):t}function Fi(e,t,r,n,i){var o=O(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var l=o.markedSpans[a],s=l.marker,u="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,g="selectRight"in s?!s.selectRight:s.inclusiveRight;if((l.from==null||(u?l.from<=t.ch:l.from<t.ch))&&(l.to==null||(g?l.to>=t.ch:l.to>t.ch))){if(i&&(Ae(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!s.atomic)continue;if(r){var y=s.find(n<0?1:-1),A=void 0;if((n<0?g:u)&&(y=rl(e,y,-n,y&&y.line==t.line?o:null)),y&&y.line==t.line&&(A=ce(y,r))&&(n<0?A<0:A>0))return Fi(e,y,t,n,i)}var L=s.find(n<0?-1:1);return(n<0?u:g)&&(L=rl(e,L,n,L.line==t.line?o:null)),L?Fi(e,L,t,n,i):null}}return t}function No(e,t,r,n,i){var o=n||1,a=Fi(e,t,r,o,i)||!i&&Fi(e,t,r,o,!0)||Fi(e,t,r,-o,i)||!i&&Fi(e,t,r,-o,!0);return a||(e.cantEdit=!0,N(e.first,0))}function rl(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?pe(e,N(t.line-1)):null:r>0&&t.ch==(n||O(e,t.line)).text.length?t.line<e.first+e.size-1?N(t.line+1,0):null:new N(t.line,t.ch+r)}function il(e){e.setSelection(N(e.firstLine(),0),N(e.lastLine()),Se)}function ol(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(i,o,a,l){i&&(n.from=pe(e,i)),o&&(n.to=pe(e,o)),a&&(n.text=a),l!==void 0&&(n.origin=l)}),Ae(e,"beforeChange",e,n),e.cm&&Ae(e.cm,"beforeChange",e.cm,n),n.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function zi(e,t,r){if(e.cm){if(!e.cm.curOp)return ur(e.cm,zi)(e,t,r);if(e.cm.state.suppressEdits)return}if(!((ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"))&&(t=ol(e,t,!0),!t))){var n=Nt&&!r&&rn(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)al(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else al(e,t)}}function al(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var r=ia(e,t);Ga(e,t,r,e.cm?e.cm.curOp.id:NaN),ao(e,t,r,St(e,t));var n=[];mi(e,function(i,o){!o&&ue(n,i.history)==-1&&(cl(i.history,t),n.push(i.history)),ao(i,t,null,St(i,t))})}}function Ao(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,o,a=e.sel,l=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u<l.length&&(o=l[u],!(r?o.ranges&&!o.equals(e.sel):!o.ranges));u++);if(u!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=l.pop(),o.ranges){if(Po(o,s),r&&!o.equals(e.sel)){Sr(e,o,{clearRedo:!1});return}a=o}else if(n){l.push(o);return}else break;var g=[];Po(a,s),s.push({changes:g,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var y=ke(e,"beforeChange")||e.cm&&ke(e.cm,"beforeChange"),A=function(Oe){var He=o.changes[Oe];if(He.origin=t,y&&!ol(e,He,!1))return l.length=0,{};g.push(la(e,He));var et=Oe?ia(e,He):rt(l);ao(e,He,et,Ya(e,He)),!Oe&&e.cm&&e.cm.scrollIntoView({from:He.from,to:pi(He)});var lt=[];mi(e,function(tt,gt){!gt&&ue(lt,tt.history)==-1&&(cl(tt.history,He),lt.push(tt.history)),ao(tt,He,null,Ya(tt,He))})},L=o.changes.length-1;L>=0;--L){var he=A(L);if(he)return he.v}}}}function ll(e,t){if(t!=0&&(e.first+=t,e.sel=new kr(Mt(e.sel.ranges,function(i){return new Pn(N(i.anchor.line+t,i.anchor.ch),N(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){Pr(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)hi(e.cm,n,"gutter")}}function ao(e,t,r,n){if(e.cm&&!e.cm.curOp)return ur(e.cm,ao)(e,t,r,n);if(t.to.line<e.first){ll(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);ll(e,i),t={from:N(e.first,0),to:N(t.to.line+i,t.to.ch),text:[rt(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:N(o,O(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=B(e,t.from,t.to),r||(r=ia(e,t)),e.cm?ys(e.cm,t,n):aa(e,t,n),Do(e,r,Se),e.cantEdit&&No(e,N(e.firstLine(),0))&&(e.cantEdit=!1)}}function ys(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=ie(ht(O(n,o.line))),n.iter(s,a.line+1,function(L){if(L==i.maxLine)return l=!0,!0})),n.sel.contains(t.from,t.to)>-1&&it(e),aa(n,t,r,Ea(e)),e.options.lineWrapping||(n.iter(s,o.line+t.text.length,function(L){var he=kn(L);he>i.maxLineLength&&(i.maxLine=L,i.maxLineLength=he,i.maxLineChanged=!0,l=!1)}),l&&(e.curOp.updateMaxLine=!0)),qe(n,o.line),ro(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Pr(e):o.line==a.line&&t.text.length==1&&!_a(e.doc,t)?hi(e,o.line,"text"):Pr(e,o.line,a.line+1,u);var g=ke(e,"changes"),y=ke(e,"change");if(y||g){var A={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};y&&mt(e,"change",e,A),g&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(A)}e.display.selForContextMenu=null}function Zi(e,t,r,n,i){var o;n||(n=r),ce(n,r)<0&&(o=[n,r],r=o[0],n=o[1]),typeof t=="string"&&(t=e.splitLines(t)),zi(e,{from:r,to:n,text:t,origin:i})}function sl(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function ul(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var l=0;l<o.ranges.length;l++)sl(o.ranges[l].anchor,t,r,n),sl(o.ranges[l].head,t,r,n);continue}for(var s=0;s<o.changes.length;++s){var u=o.changes[s];if(r<u.from.line)u.from=N(u.from.line+n,u.from.ch),u.to=N(u.to.line+n,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}function cl(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;ul(e.done,r,n,i),ul(e.undone,r,n,i)}function lo(e,t,r,n){var i=t,o=t;return typeof t=="number"?o=O(e,yt(e,t)):i=ie(t),i==null?null:(n(o,i)&&e.cm&&hi(e.cm,i,r),o)}function so(e){this.lines=e,this.parent=null;for(var t=0,r=0;r<e.length;++r)e[r].parent=this,t+=e[r].height;this.height=t}so.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var r=e,n=e+t;r<n;++r){var i=this.lines[r];this.height-=i.height,Mr(i),mt(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,r){this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var n=0;n<t.length;++n)t[n].parent=this},iterN:function(e,t,r){for(var n=e+t;e<n;++e)if(r(this.lines[e]))return!0}};function uo(e){this.children=e;for(var t=0,r=0,n=0;n<e.length;++n){var i=e[n];t+=i.chunkSize(),r+=i.height,i.parent=this}this.size=t,this.height=r,this.parent=null}uo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(e<i){var o=Math.min(t,i-e),a=n.height;if(n.removeInner(e,o),this.height-=a-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),(t-=o)==0)break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof so))){var l=[];this.collapse(l),this.children=[new so(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,r){this.size+=t.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,r),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,l=a;l<i.lines.length;){var s=new so(i.lines.slice(l,l+=25));i.height-=s.height,this.children.splice(++n,0,s),s.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new uo(t);if(e.parent){e.size-=r.size,e.height-=r.height;var i=ue(e.parent.children,e);e.parent.children.splice(i+1,0,r)}else{var n=new uo(e.children);n.parent=e,e.children=[n,r],e=n}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,r))return!0;if((t-=a)==0)break;e=0}else e-=o}}};var co=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};co.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=ie(r);if(!(n==null||!t)){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(r.widgets=null);var o=In(this);ee(r,Math.max(0,r.height-o)),e&&(Wr(e,function(){fl(e,r,-o),hi(e,n,"widget")}),mt(e,"lineWidgetCleared",e,this,n))}},co.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=In(this)-t;i&&(Kn(this.doc,n)||ee(n,n.height+i),r&&Wr(r,function(){r.curOp.forceUpdate=!0,fl(r,n,i),mt(r,"lineWidgetChanged",r,e,ie(n))}))},Zt(co);function fl(e,t,r){Fn(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Jo(e,r)}function bs(e,t,r,n){var i=new co(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),lo(e,t,"widget",function(a){var l=a.widgets||(a.widgets=[]);if(i.insertAt==null?l.push(i):l.splice(Math.min(l.length-1,Math.max(0,i.insertAt)),0,i),i.line=a,o&&!Kn(e,a)){var s=Fn(a)<e.scrollTop;ee(a,a.height+In(i)),s&&Jo(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&mt(o,"lineWidgetAdded",o,i,typeof t=="number"?t:ie(t)),i}var dl=0,yi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++dl};yi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Mi(e),ke(this,"clear")){var r=this.find();r&&mt(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],l=hn(a.markedSpans,this);e&&!this.collapsed?hi(e,ie(a),"text"):e&&(l.to!=null&&(i=ie(a)),l.from!=null&&(n=ie(a))),a.markedSpans=Pt(a.markedSpans,l),l.from==null&&this.collapsed&&!Kn(this.doc,a)&&e&&ee(a,Pi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=ht(this.lines[s]),g=kn(u);g>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=g,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&Pr(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&tl(e.doc)),e&&mt(e,"markerCleared",e,this,n,i),t&&Ii(e),this.parent&&this.parent.clear()}},yi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var r,n,i=0;i<this.lines.length;++i){var o=this.lines[i],a=hn(o.markedSpans,this);if(a.from!=null&&(r=N(t?o:ie(o),a.from),e==-1))return r;if(a.to!=null&&(n=N(t?o:ie(o),a.to),e==1))return n}return r&&{from:r,to:n}},yi.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;!t||!n||Wr(n,function(){var i=t.line,o=ie(t.line),a=Xi(n,o);if(a&&(sr(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Kn(r.doc,i)&&r.height!=null){var l=r.height;r.height=null;var s=In(r)-l;s&&ee(i,i.height+s)}mt(n,"markerChanged",n,e)})},yi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ue(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},yi.prototype.detachLine=function(e){if(this.lines.splice(ue(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Zt(yi);function Wi(e,t,r,n,i){if(n&&n.shared)return Ss(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return ur(e.cm,Wi)(e,t,r,n,i);var o=new yi(e,i),a=ce(t,r);if(n&&H(n,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=De("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(nt(e,t.line,t,r,o)||t.line!=r.line&&nt(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Kt()}o.addToHistory&&Ga(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var l=t.line,s=e.cm,u;if(e.iter(l,r.line+1,function(y){s&&o.collapsed&&!s.options.lineWrapping&&ht(y)==s.display.maxLine&&(u=!0),o.collapsed&&l!=t.line&&ee(y,0),Zn(y,new en(o,l==t.line?t.ch:null,l==r.line?r.ch:null)),++l}),o.collapsed&&e.iter(t.line,r.line+1,function(y){Kn(e,y)&&ee(y,0)}),o.clearOnEnter&&U(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(xn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++dl,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)Pr(s,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var g=t.line;g<=r.line;g++)hi(s,g,"text");o.atomic&&tl(s.doc),mt(s,"markerAdded",s,o)}return o}var fo=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};fo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();mt(this,"clear")}},fo.prototype.find=function(e,t){return this.primary.find(e,t)},Zt(fo);function Ss(e,t,r,n,i){n=H(n),n.shared=!1;var o=[Wi(e,t,r,n,i)],a=o[0],l=n.widgetNode;return mi(e,function(s){l&&(n.widgetNode=l.cloneNode(!0)),o.push(Wi(s,pe(s,t),pe(s,r),n,i));for(var u=0;u<s.linked.length;++u)if(s.linked[u].isParent)return;a=rt(o)}),new fo(o,a)}function hl(e){return e.findMarks(N(e.first,0),e.clipPos(N(e.lastLine())),function(t){return t.parent})}function Cs(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ce(o,a)){var l=Wi(e,o,a,n.primary,n.primary.type);n.markers.push(l),l.parent=n}}}function xs(e){for(var t=function(n){var i=e[n],o=[i.primary.doc];mi(i.primary.doc,function(s){return o.push(s)});for(var a=0;a<i.markers.length;a++){var l=i.markers[a];ue(o,l.doc)==-1&&(l.parent=null,i.markers.splice(a--,1))}},r=0;r<e.length;r++)t(r)}var ws=0,Tr=function(e,t,r,n,i){if(!(this instanceof Tr))return new Tr(e,t,r,n,i);r==null&&(r=0),uo.call(this,[new so([new Xn("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=N(r,0);this.sel=gi(o),this.history=new Lo(null),this.id=++ws,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),aa(this,{from:o,to:o,text:e}),Sr(this,gi(o),Se)};Tr.prototype=Q(uo.prototype,{constructor:Tr,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=ye(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:cr(function(e){var t=N(this.first,0),r=this.first+this.size-1;zi(this,{from:t,to:N(r,O(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&qi(this.cm,0,0),Sr(this,gi(t),Se)}),replaceRange:function(e,t,r,n){t=pe(this,t),r=r?pe(this,r):t,Zi(this,e,t,r,n)},getRange:function(e,t,r){var n=B(this,pe(this,e),pe(this,t));return r===!1?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if($e(this,e))return O(this,e)},getLineNumber:function(e){return ie(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=O(this,e)),ht(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return pe(this,e)},getCursor:function(e){var t=this.sel.primary(),r;return e==null||e=="head"?r=t.head:e=="anchor"?r=t.anchor:e=="end"||e=="to"||e===!1?r=t.to():r=t.from(),r},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:cr(function(e,t,r){Ja(this,pe(this,typeof e=="number"?N(e,t||0):e),null,r)}),setSelection:cr(function(e,t,r){Ja(this,pe(this,e),pe(this,t||e),r)}),extendSelection:cr(function(e,t,r){To(this,pe(this,e),t&&pe(this,t),r)}),extendSelections:cr(function(e,t){Qa(this,Be(this,e),t)}),extendSelectionsBy:cr(function(e,t){var r=Mt(this.sel.ranges,e);Qa(this,Be(this,r),t)}),setSelections:cr(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new Pn(pe(this,e[i].anchor),pe(this,e[i].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Sr(this,Qr(this.cm,n,t),r)}}),addSelection:cr(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new Pn(pe(this,e),pe(this,t||e))),Sr(this,Qr(this.cm,n,n.length-1),r)}),getSelection:function(e){for(var t=this.sel.ranges,r,n=0;n<t.length;n++){var i=B(this,t[n].from(),t[n].to());r=r?r.concat(i):i}return e===!1?r:r.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=B(this,r[n].from(),r[n].to());e!==!1&&(i=i.join(e||this.lineSeparator())),t[n]=i}return t},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:cr(function(e,t,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];n[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:r}}for(var l=t&&t!="end"&&cs(this,n,t),s=n.length-1;s>=0;s--)zi(this,n[s]);l?qa(this,l):this.cm&&Ni(this.cm)}),undo:cr(function(){Ao(this,"undo")}),redo:cr(function(){Ao(this,"redo")}),undoSelection:cr(function(){Ao(this,"undo",!0)}),redoSelection:cr(function(){Ao(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){var e=this;this.history=new Lo(this.history.maxGeneration),mi(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:$i(this.history.done),undone:$i(this.history.undone)}},setHistory:function(e){var t=this.history=new Lo(this.history.maxGeneration);t.done=$i(e.done.slice(0),null,!0),t.undone=$i(e.undone.slice(0),null,!0)},setGutterMarker:cr(function(e,t,r){return lo(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&_(i)&&(n.gutterMarkers=null),!0})}),clearGutter:cr(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&lo(t,r,"gutter",function(){return r.gutterMarkers[e]=null,_(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!$e(this,e)||(t=e,e=O(this,e),!e))return null}else if(t=ie(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:cr(function(e,t,r){return lo(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!n[i])n[i]=r;else{if(f(r).test(n[i]))return!1;n[i]+=" "+r}return!0})}),removeLineClass:cr(function(e,t,r){return lo(this,e,t=="gutter"?"gutter":"class",function(n){var i=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",o=n[i];if(o)if(r==null)n[i]=null;else{var a=o.match(f(r));if(!a)return!1;var l=a.index+a[0].length;n[i]=o.slice(0,a.index)+(!a.index||l==o.length?"":" ")+o.slice(l)||null}else return!1;return!0})}),addLineWidget:cr(function(e,t,r){return bs(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Wi(this,pe(this,e),pe(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=pe(this,e),Wi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=pe(this,e);var t=[],r=O(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(i.from==null||i.from<=e.ch)&&(i.to==null||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=pe(this,e),t=pe(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var l=0;l<a.length;l++){var s=a[l];!(s.to!=null&&i==e.line&&e.ch>=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!r||r(s.marker))&&n.push(s.marker.parent||s.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)r[n].from!=null&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),pe(this,N(r,t))},indexFromPos:function(e){e=pe(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(n){t+=n.text.length+r}),t},copy:function(e){var t=new Tr(ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<r&&(r=e.to);var n=new Tr(ye(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Cs(n,hl(this)),n},unlinkDoc:function(e){if(e instanceof Qn&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var r=this.linked[t];if(r.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),xs(hl(this));break}}if(e.history==this.history){var n=[e.id];mi(e,function(i){return n.push(i.id)},!0),e.history=new Lo(null),e.history.done=$i(this.history.done,n),e.history.undone=$i(this.history.undone,n)}},iterLinkedDocs:function(e){mi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):kt(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:cr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&fs(this.cm))})}),Tr.prototype.eachLine=Tr.prototype.iter;var vl=0;function Es(e){var t=this;if(gl(t),!(Je(t,e)||Nn(t.display,e))){vt(e),v&&(vl=+new Date);var r=xi(t,e,!0),n=e.dataTransfer.files;if(!(!r||t.isReadOnly()))if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),a=0,l=function(){++a==i&&ur(t,function(){r=pe(t.doc,r);var L={from:r,to:r,text:t.doc.splitLines(o.filter(function(he){return he!=null}).join(t.doc.lineSeparator())),origin:"paste"};zi(t.doc,L),qa(t.doc,gi(pe(t.doc,r),pe(t.doc,pi(L))))})()},s=function(L,he){if(t.options.allowDropFileTypes&&ue(t.options.allowDropFileTypes,L.type)==-1){l();return}var Oe=new FileReader;Oe.onerror=function(){return l()},Oe.onload=function(){var He=Oe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(He)){l();return}o[he]=He,l()},Oe.readAsText(L)},u=0;u<n.length;u++)s(n[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var g=e.dataTransfer.getData("Text");if(g){var y;if(t.state.draggingText&&!t.state.draggingText.copy&&(y=t.listSelections()),Do(t.doc,gi(r,r)),y)for(var A=0;A<y.length;++A)Zi(t.doc,"",y[A].anchor,y[A].head,"drag");t.replaceSelection(g,"around","paste"),t.display.input.focus()}}catch(L){}}}}function Os(e,t){if(v&&(!e.state.draggingText||+new Date-vl<100)){mn(t);return}if(!(Je(e,t)||Nn(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!xe)){var r=z("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),p&&r.parentNode.removeChild(r)}}function Ms(e,t){var r=xi(e,t);if(r){var n=document.createDocumentFragment();Ia(e,r,n),e.display.dragCursor||(e.display.dragCursor=z("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),q(e.display.dragCursor,n)}}function gl(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function pl(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<t.length;n++){var i=t[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation(function(){for(var o=0;o<r.length;o++)e(r[o])})}}var ml=!1;function Is(){ml||(Rs(),ml=!0)}function Rs(){var e;U(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,pl(Ls)},100))}),U(window,"blur",function(){return pl(Di)})}function Ls(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var bi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ho=0;ho<10;ho++)bi[ho+48]=bi[ho+96]=String(ho);for(var $o=65;$o<=90;$o++)bi[$o]=String.fromCharCode($o);for(var vo=1;vo<=12;vo++)bi[vo+111]=bi[vo+63235]="F"+vo;var si={};si.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},si.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},si.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},si.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},si.default=Ve?si.macDefault:si.pcDefault;function Ps(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,a=0;a<t.length-1;a++){var l=t[a];if(/^(cmd|meta|m)$/i.test(l))o=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else if(/^s(hift)?$/i.test(l))i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function Ts(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if(n=="..."){delete e[r];continue}for(var i=Mt(r.split(" "),Ps),o=0;o<i.length;o++){var a=void 0,l=void 0;o==i.length-1?(l=i.join(" "),a=n):(l=i.slice(0,o+1).join(" "),a="...");var s=t[l];if(!s)t[l]=a;else if(s!=a)throw new Error("Inconsistent bindings for "+l)}delete e[r]}for(var u in t)e[u]=t[u];return e}function Bi(e,t,r,n){t=Fo(t);var i=t.call?t.call(e,n):t[e];if(i===!1)return"nothing";if(i==="...")return"multi";if(i!=null&&r(i))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Bi(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var a=Bi(e,t.fallthrough[o],r,n);if(a)return a}}}function yl(e){var t=typeof e=="string"?e:bi[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function bl(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(J?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(J?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Sl(e,t){if(p&&e.keyCode==34&&e.char)return!1;var r=bi[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),bl(r,e,t))}function Fo(e){return typeof e=="string"?si[e]:e}function Hi(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&ce(o.from,rt(n).to)<=0;){var a=n.pop();if(ce(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}Wr(e,function(){for(var l=n.length-1;l>=0;l--)Zi(e.doc,"",n[l].from,n[l].to,"+delete");Ni(e)})}function ca(e,t,r){var n=le(e.text,t+r,r);return n<0||n>e.text.length?null:n}function fa(e,t,r){var n=ca(e,t.ch,r);return n==null?null:new N(t.line,n,r<0?"after":"before")}function da(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Re(r,t.doc.direction);if(o){var a=i<0?rt(o):o[0],l=i<0==(a.level==1),s=l?"after":"before",u;if(a.level>0||t.doc.direction=="rtl"){var g=di(t,r);u=i<0?r.text.length-1:0;var y=Vr(t,g,u).top;u=de(function(A){return Vr(t,g,A).top==y},i<0==(a.level==1)?a.from:a.to-1,u),s=="before"&&(u=ca(r,u,1))}else u=i<0?a.to:a.from;return new N(n,u,s)}}return new N(n,i<0?r.text.length:0,i<0?"before":"after")}function Ds(e,t,r,n){var i=Re(t,e.doc.direction);if(!i)return fa(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=we(i,r.ch,r.sticky),a=i[o];if(e.doc.direction=="ltr"&&a.level%2==0&&(n>0?a.to>r.ch:a.from<r.ch))return fa(t,r,n);var l=function(et,lt){return ca(t,et instanceof N?et.ch:et,lt)},s,u=function(et){return e.options.lineWrapping?(s=s||di(e,t),wa(e,t,s,et)):{begin:0,end:t.text.length}},g=u(r.sticky=="before"?l(r,-1):r.ch);if(e.doc.direction=="rtl"||a.level==1){var y=a.level==1==n<0,A=l(r,y?1:-1);if(A!=null&&(y?A<=a.to&&A<=g.end:A>=a.from&&A>=g.begin)){var L=y?"before":"after";return new N(r.line,A,L)}}var he=function(et,lt,tt){for(var gt=function(Bn,fr){return fr?new N(r.line,l(Bn,1),"before"):new N(r.line,Bn,"after")};et>=0&&et<i.length;et+=lt){var At=i[et],Lt=lt>0==(At.level!=1),vn=Lt?tt.begin:l(tt.end,-1);if(At.from<=vn&&vn<At.to||(vn=Lt?At.from:l(At.to,-1),tt.begin<=vn&&vn<tt.end))return gt(vn,Lt)}},Oe=he(o+n,n,g);if(Oe)return Oe;var He=n>0?g.end:l(g.begin,-1);return He!=null&&!(n>0&&He==t.text.length)&&(Oe=he(n>0?0:i.length-1,n,u(He)),Oe)?Oe:null}var go={selectAll:il,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Se)},killLine:function(e){return Hi(e,function(t){if(t.empty()){var r=O(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:N(t.head.line+1,0)}:{from:t.head,to:N(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Hi(e,function(t){return{from:N(t.from().line,0),to:pe(e.doc,N(t.to().line+1,0))}})},delLineLeft:function(e){return Hi(e,function(t){return{from:N(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Hi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return{from:n,to:t.from()}})},delWrappedLineRight:function(e){return Hi(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(N(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(N(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Cl(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return xl(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ns(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Me)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Me)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.cursorCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?xl(e,t.head):n},Me)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),a=V(e.getLine(o.line),o.ch,n);t.push(dt(n-a%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Wr(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=O(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new N(i.line,i.ch-1)),i.ch>0)i=new N(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),N(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=O(e.doc,i.line-1).text;a&&(i=new N(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),N(i.line-1,a.length-1),i,"+transpose"))}}r.push(new Pn(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Wr(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Ni(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Cl(e,t){var r=O(e.doc,t),n=ht(r);return n!=r&&(t=ie(n)),da(!0,e,n,t,1)}function Ns(e,t){var r=O(e.doc,t),n=pn(r);return n!=r&&(t=ie(n)),da(!0,e,r,t,-1)}function xl(e,t){var r=Cl(e,t.line),n=O(e.doc,r.line),i=Re(n,e.doc.direction);if(!i||i[0].level==0){var o=Math.max(r.ch,n.text.search(/\S/)),a=t.line==r.line&&t.ch<=o&&t.ch;return N(r.line,a?0:o,r.sticky)}return r}function zo(e,t,r){if(typeof t=="string"&&(t=go[t],!t))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=_e}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function As(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=Bi(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&Bi(t,e.options.extraKeys,r,e)||Bi(t,e.options.keyMap,r,e)}var $s=new fe;function po(e,t,r,n){var i=e.state.keySeq;if(i){if(yl(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:$s.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),wl(e,i+" "+t,r,n))return!0}return wl(e,t,r,n)}function wl(e,t,r,n){var i=As(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&mt(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(vt(r),Xo(e)),!!i}function El(e,t){var r=Sl(t,!0);return r?t.shiftKey&&!e.state.keySeq?po(e,"Shift-"+r,t,function(n){return zo(e,n,!0)})||po(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return zo(e,n)}):po(e,r,t,function(n){return zo(e,n)}):!1}function Fs(e,t,r){return po(e,"'"+r+"'",t,function(n){return zo(e,n,!0)})}var ha=null;function Ol(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=E(),!Je(t,e))){v&&P<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=El(t,e);p&&(ha=n?r:null,!n&&r==88&&!fn&&(Ve?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),x&&!Ve&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&zs(t)}}function zs(e){var t=e.display.lineDiv;$(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(b(t,"CodeMirror-crosshair"),Qe(document,"keyup",r),Qe(document,"mouseover",r))}U(document,"keyup",r),U(document,"mouseover",r)}function Ml(e){e.keyCode==16&&(this.doc.sel.shift=!1),Je(this,e)}function Il(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Nn(t.display,e)||Je(t,e)||e.ctrlKey&&!e.altKey||Ve&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(p&&r==ha){ha=null,vt(e);return}if(!(p&&(!e.which||e.which<10)&&El(t,e))){var i=String.fromCharCode(n==null?r:n);i!="\b"&&(Fs(t,e,i)||t.display.input.onKeyPress(e))}}}var Zs=400,va=function(e,t,r){this.time=e,this.pos=t,this.button=r};va.prototype.compare=function(e,t,r){return this.time+Zs>e&&ce(t,this.pos)==0&&r==this.button};var mo,yo;function Ws(e,t){var r=+new Date;return yo&&yo.compare(r,e,t)?(mo=yo=null,"triple"):mo&&mo.compare(r,e,t)?(yo=new va(r,e,t),mo=null,"double"):(mo=new va(r,e,t),yo=null,"single")}function Rl(e){var t=this,r=t.display;if(!(Je(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,Nn(r,e)){I||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!ga(t,e)){var n=xi(t,e),i=cn(e),o=n?Ws(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&Bs(t,i,n,o,e))&&(i==1?n?js(t,n,o,e):_t(e)==r.scroller&&vt(e):i==2?(n&&To(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(C?t.display.input.onContextMenu(e):La(t)))}}}function Bs(e,t,r,n,i){var o="Click";return n=="double"?o="Double"+o:n=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,po(e,bl(o,i),i,function(a){if(typeof a=="string"&&(a=go[a]),!a)return!1;var l=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l=a(e,r)!=_e}finally{e.state.suppressEdits=!1}return l})}function Hs(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=Pe?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||r.shiftKey),i.addNew==null&&(i.addNew=Ve?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(Ve?r.altKey:r.ctrlKey)),i}function js(e,t,r,n){v?setTimeout(G(Ra,e),0):e.curOp.focus=E();var i=Hs(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&yn&&!e.isReadOnly()&&r=="single"&&(a=o.contains(t))>-1&&(ce((a=o.ranges[a]).from(),t)<0||t.xRel>0)&&(ce(a.to(),t)>0||t.xRel<0)?Ks(e,n,t,i):_s(e,n,t,i)}function Ks(e,t,r,n){var i=e.display,o=!1,a=ur(e,function(u){I&&(i.scroller.draggable=!1),e.state.draggingText=!1,Qe(i.wrapper.ownerDocument,"mouseup",a),Qe(i.wrapper.ownerDocument,"mousemove",l),Qe(i.scroller,"dragstart",s),Qe(i.scroller,"drop",a),o||(vt(u),n.addNew||To(e.doc,r,null,null,n.extend),I&&!xe||v&&P==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),l=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};I&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),U(i.wrapper.ownerDocument,"mouseup",a),U(i.wrapper.ownerDocument,"mousemove",l),U(i.scroller,"dragstart",s),U(i.scroller,"drop",a),La(e),setTimeout(function(){return i.input.focus()},20)}function Ll(e,t,r){if(r=="char")return new Pn(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new Pn(N(t.line,0),pe(e.doc,N(t.line+1,0)));var n=r(e,t);return new Pn(n.from,n.to)}function _s(e,t,r,n){var i=e.display,o=e.doc;vt(t);var a,l,s=o.sel,u=s.ranges;if(n.addNew&&!n.extend?(l=o.sel.contains(r),l>-1?a=u[l]:a=new Pn(r,r)):(a=o.sel.primary(),l=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new Pn(r,r)),r=xi(e,t,!0,!0),l=-1;else{var g=Ll(e,r,n.unit);n.extend?a=sa(a,g.anchor,g.head,n.extend):a=g}n.addNew?l==-1?(l=u.length,Sr(o,Qr(e,u.concat([a]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&n.unit=="char"&&!n.extend?(Sr(o,Qr(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):ua(o,l,a,Te):(l=0,Sr(o,new kr([a],0),Te),s=o.sel);var y=r;function A(tt){if(ce(y,tt)!=0)if(y=tt,n.unit=="rectangle"){for(var gt=[],At=e.options.tabSize,Lt=V(O(o,r.line).text,r.ch,At),vn=V(O(o,tt.line).text,tt.ch,At),Bn=Math.min(Lt,vn),fr=Math.max(Lt,vn),Jn=Math.min(r.line,tt.line),Br=Math.min(e.lastLine(),Math.max(r.line,tt.line));Jn<=Br;Jn++){var Dr=O(o,Jn).text,ir=wt(Dr,Bn,At);Bn==fr?gt.push(new Pn(N(Jn,ir),N(Jn,ir))):Dr.length>ir&&gt.push(new Pn(N(Jn,ir),N(Jn,wt(Dr,fr,At))))}gt.length||gt.push(new Pn(r,r)),Sr(o,Qr(e,s.ranges.slice(0,l).concat(gt),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(tt)}else{var Nr=a,hr=Ll(e,tt,n.unit),ar=Nr.anchor,or;ce(hr.anchor,ar)>0?(or=hr.head,ar=Ye(Nr.from(),hr.anchor)):(or=hr.anchor,ar=Ke(Nr.to(),hr.head));var qn=s.ranges.slice(0);qn[l]=ks(e,new Pn(pe(o,ar),or)),Sr(o,Qr(e,qn,l),Te)}}var L=i.wrapper.getBoundingClientRect(),he=0;function Oe(tt){var gt=++he,At=xi(e,tt,!0,n.unit=="rectangle");if(At)if(ce(At,y)!=0){e.curOp.focus=E(),A(At);var Lt=Oo(i,o);(At.line>=Lt.to||At.line<Lt.from)&&setTimeout(ur(e,function(){he==gt&&Oe(tt)}),150)}else{var vn=tt.clientY<L.top?-20:tt.clientY>L.bottom?20:0;vn&&setTimeout(ur(e,function(){he==gt&&(i.scroller.scrollTop+=vn,Oe(tt))}),50)}}function He(tt){e.state.selectingText=!1,he=1/0,tt&&(vt(tt),i.input.focus()),Qe(i.wrapper.ownerDocument,"mousemove",et),Qe(i.wrapper.ownerDocument,"mouseup",lt),o.history.lastSelOrigin=null}var et=ur(e,function(tt){tt.buttons===0||!cn(tt)?He(tt):Oe(tt)}),lt=ur(e,He);e.state.selectingText=lt,U(i.wrapper.ownerDocument,"mousemove",et),U(i.wrapper.ownerDocument,"mouseup",lt)}function ks(e,t){var r=t.anchor,n=t.head,i=O(e.doc,r.line);if(ce(r,n)==0&&r.sticky==n.sticky)return t;var o=Re(i);if(!o)return t;var a=we(o,r.ch,r.sticky),l=o[a];if(l.from!=r.ch&&l.to!=r.ch)return t;var s=a+(l.from==r.ch==(l.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(n.line!=r.line)u=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var g=we(o,n.ch,n.sticky),y=g-a||(n.ch-r.ch)*(l.level==1?-1:1);g==s-1||g==s?u=y<0:u=y>0}var A=o[s+(u?-1:0)],L=u==(A.level==1),he=L?A.from:A.to,Oe=L?"after":"before";return r.ch==he&&r.sticky==Oe?t:new Pn(new N(r.line,he,Oe),n)}function Pl(e,t,r,n){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(A){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&vt(t);var a=e.display,l=a.lineDiv.getBoundingClientRect();if(o>l.bottom||!ke(e,r))return jt(t);o-=l.top-a.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var u=a.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=i){var g=ge(e.doc,o),y=e.display.gutterSpecs[s];return Ae(e,r,e,g,y.className,t),jt(t)}}}function ga(e,t){return Pl(e,t,"gutterClick",!0)}function Tl(e,t){Nn(e.display,t)||Us(e,t)||Je(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function Us(e,t){return ke(e,"gutterContextMenu")?Pl(e,t,"gutterContextMenu",!1):!1}function Dl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Un(e)}var ji={toString:function(){return"CodeMirror.Init"}},Nl={},Zo={};function Vs(e){var t=e.optionHandlers;function r(n,i,o,a){e.defaults[n]=i,o&&(t[n]=a?function(l,s,u){u!=ji&&o(l,s,u)}:o)}e.defineOption=r,e.Init=ji,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,oa(n)},!0),r("indentUnit",2,oa,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){oo(n),Un(n),Pr(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var o=[],a=n.doc.first;n.doc.iter(function(s){for(var u=0;;){var g=s.text.indexOf(i,u);if(g==-1)break;u=g+i.length,o.push(N(a,g))}a++});for(var l=o.length-1;l>=0;l--)Zi(n.doc,i,o[l],N(o[l].line,o[l].ch+i.length))}}),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(n,i,o){n.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=ji&&n.refresh()}),r("specialCharPlaceholder",pr,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",We?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),r("spellcheck",!1,function(n,i){return n.getInputField().spellcheck=i},!0),r("autocorrect",!1,function(n,i){return n.getInputField().autocorrect=i},!0),r("autocapitalize",!1,function(n,i){return n.getInputField().autocapitalize=i},!0),r("rtlMoveVisually",!be),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){Dl(n),io(n)},!0),r("keyMap","default",function(n,i,o){var a=Fo(i),l=o!=ji&&Fo(o);l&&l.detach&&l.detach(n,a),a.attach&&a.attach(n,l||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Xs,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=ra(i,n.options.lineNumbers),io(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?Vo(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return Ai(n)},!0),r("scrollbarStyle","native",function(n){$a(n),Ai(n),n.display.scrollbars.setScrollTop(n.doc.scrollTop),n.display.scrollbars.setScrollLeft(n.doc.scrollLeft)},!0),r("lineNumbers",!1,function(n,i){n.display.gutterSpecs=ra(n.options.gutters,i),io(n)},!0),r("firstLineNumber",1,io,!0),r("lineNumberFormatter",function(n){return n},io,!0),r("showCursorWhenSelecting",!1,Ji,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Di(n),n.display.input.blur()),n.display.input.readOnlyChanged(i)}),r("screenReaderLabel",null,function(n,i){i=i===""?null:i,n.display.input.screenReaderLabelChanged(i)}),r("disableInput",!1,function(n,i){i||n.display.input.reset()},!0),r("dragDrop",!0,Gs),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,Ji,!0),r("singleCursorHeightPerLine",!0,Ji,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,oo,!0),r("addModeClass",!1,oo,!0),r("pollInterval",100),r("undoDepth",200,function(n,i){return n.doc.history.undoDepth=i}),r("historyEventDelay",1250),r("viewportMargin",10,function(n){return n.refresh()},!0),r("maxHighlightLength",1e4,oo,!0),r("moveInputWithCursor",!0,function(n,i){i||n.display.input.resetPosition()}),r("tabindex",null,function(n,i){return n.display.input.getField().tabIndex=i||""}),r("autofocus",null),r("direction","ltr",function(n,i){return n.doc.setDirection(i)},!0),r("phrases",null)}function Gs(e,t,r){var n=r&&r!=ji;if(!t!=!n){var i=e.display.dragFunctions,o=t?U:Qe;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function Xs(e){e.options.lineWrapping?($(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(b(e.display.wrapper,"CodeMirror-wrap"),Wn(e)),Go(e),Pr(e),Un(e),setTimeout(function(){return Ai(e)},100)}function Qn(e,t){var r=this;if(!(this instanceof Qn))return new Qn(e,t);this.options=t=t?H(t):{},H(Nl,t,!1);var n=t.value;typeof n=="string"?n=new Tr(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Qn.inputStyles[t.inputStyle](this),o=this.display=new ss(e,n,i,t);o.wrapper.CodeMirror=this,Dl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),$a(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new fe,keySeq:null,specialChars:null},t.autofocus&&!We&&o.input.focus(),v&&P<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ys(this),Is(),Mi(this),this.curOp.forceUpdate=!0,ka(this,n),t.autofocus&&!We||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Yo(r)},20):Di(this);for(var a in Zo)Zo.hasOwnProperty(a)&&Zo[a](this,t[a],ji);Za(this),t.finishInit&&t.finishInit(this);for(var l=0;l<pa.length;++l)pa[l](this);Ii(this),I&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}Qn.defaults=Nl,Qn.optionHandlers=Zo;function Ys(e){var t=e.display;U(t.scroller,"mousedown",ur(e,Rl)),v&&P<11?U(t.scroller,"dblclick",ur(e,function(s){if(!Je(e,s)){var u=xi(e,s);if(!(!u||ga(e,s)||Nn(e.display,s))){vt(s);var g=e.findWordAt(u);To(e.doc,g.anchor,g.head)}}})):U(t.scroller,"dblclick",function(s){return Je(e,s)||vt(s)}),U(t.scroller,"contextmenu",function(s){return Tl(e,s)}),U(t.input.getField(),"contextmenu",function(s){t.scroller.contains(s.target)||Tl(e,s)});var r,n={end:0};function i(){t.activeTouch&&(r=setTimeout(function(){return t.activeTouch=null},1e3),n=t.activeTouch,n.end=+new Date)}function o(s){if(s.touches.length!=1)return!1;var u=s.touches[0];return u.radiusX<=1&&u.radiusY<=1}function a(s,u){if(u.left==null)return!0;var g=u.left-s.left,y=u.top-s.top;return g*g+y*y>20*20}U(t.scroller,"touchstart",function(s){if(!Je(e,s)&&!o(s)&&!ga(e,s)){t.input.ensurePolled(),clearTimeout(r);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-n.end<=300?n:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),U(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),U(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!Nn(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var g=e.coordsChar(t.activeTouch,"page"),y;!u.prev||a(u,u.prev)?y=new Pn(g,g):!u.prev.prev||a(u,u.prev.prev)?y=e.findWordAt(g):y=new Pn(N(g.line,0),pe(e.doc,N(g.line+1,0))),e.setSelection(y.anchor,y.head),e.focus(),vt(s)}i()}),U(t.scroller,"touchcancel",i),U(t.scroller,"scroll",function(){t.scroller.clientHeight&&(eo(e,t.scroller.scrollTop),Ei(e,t.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),U(t.scroller,"mousewheel",function(s){return Ha(e,s)}),U(t.scroller,"DOMMouseScroll",function(s){return Ha(e,s)}),U(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){Je(e,s)||mn(s)},over:function(s){Je(e,s)||(Ms(e,s),mn(s))},start:function(s){return Os(e,s)},drop:ur(e,Es),leave:function(s){Je(e,s)||gl(e)}};var l=t.input.getField();U(l,"keyup",function(s){return Ml.call(e,s)}),U(l,"keydown",ur(e,Ol)),U(l,"keypress",ur(e,Il)),U(l,"focus",function(s){return Yo(e,s)}),U(l,"blur",function(s){return Di(e,s)})}var pa=[];Qn.defineInitHook=function(e){return pa.push(e)};function bo(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=It(e,t).state:r="prev");var a=e.options.tabSize,l=O(i,t),s=V(l.text,null,a);l.stateAfter&&(l.stateAfter=null);var u=l.text.match(/^\s*/)[0],g;if(!n&&!/\S/.test(l.text))g=0,r="not";else if(r=="smart"&&(g=i.mode.indent(o,l.text.slice(u.length),l.text),g==_e||g>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?g=V(O(i,t-1).text,null,a):g=0:r=="add"?g=s+e.options.indentUnit:r=="subtract"?g=s-e.options.indentUnit:typeof r=="number"&&(g=s+r),g=Math.max(0,g);var y="",A=0;if(e.options.indentWithTabs)for(var L=Math.floor(g/a);L;--L)A+=a,y+=" ";if(A<g&&(y+=dt(g-A)),y!=u)return Zi(i,y,N(t,0),N(t,u.length),"+input"),l.stateAfter=null,!0;for(var he=0;he<i.sel.ranges.length;he++){var Oe=i.sel.ranges[he];if(Oe.head.line==t&&Oe.head.ch<u.length){var He=N(t,u.length);ua(i,he,new Pn(He,He));break}}}var Jr=null;function Wo(e){Jr=e}function ma(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var a=+new Date-200,l=i=="paste"||e.state.pasteIncoming>a,s=kt(t),u=null;if(l&&n.ranges.length>1)if(Jr&&Jr.text.join(`
`)==t){if(n.ranges.length%Jr.text.length==0){u=[];for(var g=0;g<Jr.text.length;g++)u.push(o.splitLines(Jr.text[g]))}}else s.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(u=Mt(s,function(et){return[et]}));for(var y=e.curOp.updateInput,A=n.ranges.length-1;A>=0;A--){var L=n.ranges[A],he=L.from(),Oe=L.to();L.empty()&&(r&&r>0?he=N(he.line,he.ch-r):e.state.overwrite&&!l?Oe=N(Oe.line,Math.min(O(o,Oe.line).text.length,Oe.ch+rt(s).length)):l&&Jr&&Jr.lineWise&&Jr.text.join(`
`)==s.join(`
`)&&(he=Oe=N(he.line,0)));var He={from:he,to:Oe,text:u?u[A%u.length]:s,origin:i||(l?"paste":e.state.cutIncoming>a?"cut":"+input")};zi(e.doc,He),mt(e,"inputRead",e,He)}t&&!l&&$l(e,t),Ni(e),e.curOp.updateInput<2&&(e.curOp.updateInput=y),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Al(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Wr(t,function(){return ma(t,r,0,null,"paste")}),!0}function $l(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){a=bo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(O(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=bo(e,i.head.line,"smart"));a&&mt(e,"electricInput",e,i.head.line)}}}function Fl(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:N(i,0),head:N(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function zl(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function Zl(){var e=z("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=z("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return I?e.style.width="1000px":e.setAttribute("wrap","off"),j&&(e.style.border="1px solid black"),zl(e),t}function Qs(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(n,i){var o=this.options,a=o[n];o[n]==i&&n!="mode"||(o[n]=i,t.hasOwnProperty(n)&&ur(this,t[n])(this,i,a),Ae(this,"optionChange",this,n))},getOption:function(n){return this.options[n]},getDoc:function(){return this.doc},addKeyMap:function(n,i){this.state.keyMaps[i?"push":"unshift"](Fo(n))},removeKeyMap:function(n){for(var i=this.state.keyMaps,o=0;o<i.length;++o)if(i[o]==n||i[o].name==n)return i.splice(o,1),!0},addOverlay:Er(function(n,i){var o=n.token?n:e.getMode(this.options,n);if(o.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:o,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,Pr(this)}),removeOverlay:Er(function(n){for(var i=this.state.overlays,o=0;o<i.length;++o){var a=i[o].modeSpec;if(a==n||typeof n=="string"&&a.name==n){i.splice(o,1),this.state.modeGen++,Pr(this);return}}}),indentLine:Er(function(n,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),$e(this.doc,n)&&bo(this,n,i,o)}),indentSelection:Er(function(n){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var l=i[a];if(l.empty())l.head.line>o&&(bo(this,l.head.line,n,!0),o=l.head.line,a==this.doc.sel.primIndex&&Ni(this));else{var s=l.from(),u=l.to(),g=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var y=g;y<o;++y)bo(this,y,n);var A=this.doc.sel.ranges;s.ch==0&&i.length==A.length&&A[a].from().ch>0&&ua(this.doc,a,new Pn(s,A[a].to()),Se)}}}),getTokenAt:function(n,i){return ln(this,n,i)},getLineTokens:function(n,i){return ln(this,N(n),i,!0)},getTokenTypeAt:function(n){n=pe(this.doc,n);var i=Jt(this,O(this.doc,n.line)),o=0,a=(i.length-1)/2,l=n.ch,s;if(l==0)s=i[2];else for(;;){var u=o+a>>1;if((u?i[u*2-1]:0)>=l)a=u;else if(i[u*2+1]<l)o=u+1;else{s=i[u*2+2];break}}var g=s?s.indexOf("overlay "):-1;return g<0?s:g==0?null:s.slice(0,g-1)},getModeAt:function(n){var i=this.doc.mode;return i.innerMode?e.innerMode(i,this.getTokenAt(n).state).mode:i},getHelper:function(n,i){return this.getHelpers(n,i)[0]},getHelpers:function(n,i){var o=[];if(!r.hasOwnProperty(i))return o;var a=r[i],l=this.getModeAt(n);if(typeof l[i]=="string")a[l[i]]&&o.push(a[l[i]]);else if(l[i])for(var s=0;s<l[i].length;s++){var u=a[l[i][s]];u&&o.push(u)}else l.helperType&&a[l.helperType]?o.push(a[l.helperType]):a[l.name]&&o.push(a[l.name]);for(var g=0;g<a._global.length;g++){var y=a._global[g];y.pred(l,this)&&ue(o,y.val)==-1&&o.push(y.val)}return o},getStateAfter:function(n,i){var o=this.doc;return n=yt(o,n==null?o.first+o.size-1:n),It(this,n+1,i).state},cursorCoords:function(n,i){var o,a=this.doc.sel.primary();return n==null?o=a.head:typeof n=="object"?o=pe(this.doc,n):o=n?a.from():a.to(),Zr(this,o,i||"page")},charCoords:function(n,i){return Gr(this,pe(this.doc,n),i||"page")},coordsChar:function(n,i){return n=li(this,n,i||"page"),_o(this,n.left,n.top)},lineAtHeight:function(n,i){return n=li(this,{top:n,left:0},i||"page").top,ge(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,o){var a=!1,l;if(typeof n=="number"){var s=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>s&&(n=s,a=!0),l=O(this.doc,n)}else l=n;return Kr(this,l,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-Fn(l):0)},defaultTextHeight:function(){return Pi(this.display)},defaultCharWidth:function(){return Ti(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,o,a,l){var s=this.display;n=Zr(this,pe(this.doc,n));var u=n.bottom,g=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),a=="over")u=n.top;else if(a=="above"||a=="near"){var y=Math.max(s.wrapper.clientHeight,this.doc.height),A=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(a=="above"||n.bottom+i.offsetHeight>y)&&n.top>i.offsetHeight?u=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=y&&(u=n.bottom),g+i.offsetWidth>A&&(g=A-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",l=="right"?(g=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(l=="left"?g=0:l=="middle"&&(g=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=g+"px"),o&&Gl(this,{left:g,top:u,right:g+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:Er(Ol),triggerOnKeyPress:Er(Il),triggerOnKeyUp:Ml,triggerOnMouseDown:Er(Rl),execCommand:function(n){if(go.hasOwnProperty(n))return go[n].call(null,this)},triggerElectric:Er(function(n){$l(this,n)}),findPosH:function(n,i,o,a){var l=1;i<0&&(l=-1,i=-i);for(var s=pe(this.doc,n),u=0;u<i&&(s=ya(this.doc,s,l,o,a),!s.hitSide);++u);return s},moveH:Er(function(n,i){var o=this;this.extendSelectionsBy(function(a){return o.display.shift||o.doc.extend||a.empty()?ya(o.doc,a.head,n,i,o.options.rtlMoveVisually):n<0?a.from():a.to()},Me)}),deleteH:Er(function(n,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):Hi(this,function(l){var s=ya(a,l.head,n,i,!1);return n<0?{from:s,to:l.head}:{from:l.head,to:s}})}),findPosV:function(n,i,o,a){var l=1,s=a;i<0&&(l=-1,i=-i);for(var u=pe(this.doc,n),g=0;g<i;++g){var y=Zr(this,u,"div");if(s==null?s=y.left:y.left=s,u=Wl(this,y,l,o),u.hitSide)break}return u},moveV:Er(function(n,i){var o=this,a=this.doc,l=[],s=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(g){if(s)return n<0?g.from():g.to();var y=Zr(o,g.head,"div");g.goalColumn!=null&&(y.left=g.goalColumn),l.push(y.left);var A=Wl(o,y,n,i);return i=="page"&&g==a.sel.primary()&&Jo(o,Gr(o,A,"div").top-y.top),A},Me),l.length)for(var u=0;u<a.sel.ranges.length;u++)a.sel.ranges[u].goalColumn=l[u]}),findWordAt:function(n){var i=this.doc,o=O(i,n.line).text,a=n.ch,l=n.ch;if(o){var s=this.getHelper(n,"wordChars");(n.sticky=="before"||l==o.length)&&a?--a:++l;for(var u=o.charAt(a),g=w(u,s)?function(y){return w(y,s)}:/\s/.test(u)?function(y){return/\s/.test(y)}:function(y){return!/\s/.test(y)&&!w(y)};a>0&&g(o.charAt(a-1));)--a;for(;l<o.length&&g(o.charAt(l));)++l}return new Pn(N(n.line,a),N(n.line,l))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$(this.display.cursorDiv,"CodeMirror-overwrite"):b(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==E()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Er(function(n,i){qi(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-Rr(this)-this.display.barHeight,width:n.scrollWidth-Rr(this)-this.display.barWidth,clientHeight:Ui(this),clientWidth:Lr(this)}},scrollIntoView:Er(function(n,i){n==null?(n={from:this.doc.sel.primary().head,to:null},i==null&&(i=this.options.cursorScrollMargin)):typeof n=="number"?n={from:N(n,0),to:null}:n.from==null&&(n={from:n,to:null}),n.to||(n.to=n.from),n.margin=i||0,n.from.line!=null?Xl(this,n):Ta(this,n.from,n.to,n.margin)}),setSize:Er(function(n,i){var o=this,a=function(s){return typeof s=="number"||/^\d+$/.test(String(s))?s+"px":s};n!=null&&(this.display.wrapper.style.width=a(n)),i!=null&&(this.display.wrapper.style.height=a(i)),this.options.lineWrapping&&br(this);var l=this.display.viewFrom;this.doc.iter(l,this.display.viewTo,function(s){if(s.widgets){for(var u=0;u<s.widgets.length;u++)if(s.widgets[u].noHScroll){hi(o,l,"widget");break}}++l}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(n){return Wr(this,n)},startOperation:function(){return Mi(this)},endOperation:function(){return Ii(this)},refresh:Er(function(){var n=this.display.cachedTextHeight;Pr(this),this.curOp.forceUpdate=!0,Un(this),qi(this,this.doc.scrollLeft,this.doc.scrollTop),ta(this.display),(n==null||Math.abs(n-Pi(this.display))>.5||this.options.lineWrapping)&&Go(this),Ae(this,"refresh",this)}),swapDoc:Er(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),ka(this,n),Un(this),this.display.input.reset(),qi(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,mt(this,"swapDoc",this,i),i}),phrase:function(n){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,n)?i[n]:n},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Zt(e),e.registerHelper=function(n,i,o){r.hasOwnProperty(n)||(r[n]=e[n]={_global:[]}),r[n][i]=o},e.registerGlobalHelper=function(n,i,o,a){e.registerHelper(n,i,a),r[n]._global.push({pred:o,val:a})}}function ya(e,t,r,n,i){var o=t,a=r,l=O(e,t.line),s=i&&e.direction=="rtl"?-r:r;function u(){var lt=t.line+s;return lt<e.first||lt>=e.first+e.size?!1:(t=new N(lt,t.ch,t.sticky),l=O(e,lt))}function g(lt){var tt;if(n=="codepoint"){var gt=l.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(gt)?tt=null:tt=new N(t.line,Math.max(0,Math.min(l.text.length,t.ch+r*(gt>=55296&&gt<56320?2:1))),-r)}else i?tt=Ds(e.cm,l,t,r):tt=fa(l,t,r);if(tt==null)if(!lt&&u())t=da(i,e.cm,l,t.line,s);else return!1;else t=tt;return!0}if(n=="char"||n=="codepoint")g();else if(n=="column")g(!0);else if(n=="word"||n=="group")for(var y=null,A=n=="group",L=e.cm&&e.cm.getHelper(t,"wordChars"),he=!0;!(r<0&&!g(!he));he=!1){var Oe=l.text.charAt(t.ch)||`
`,He=w(Oe,L)?"w":A&&Oe==`
`?"n":!A||/\s/.test(Oe)?null:"p";if(A&&!he&&!He&&(He="s"),y&&y!=He){r<0&&(r=1,g(),t.sticky="after");break}if(He&&(y=He),r>0&&!g(!he))break}var et=No(e,t,o,a,!0);return Xe(o,et)&&(et.hitSide=!0),et}function Wl(e,t,r,n){var i=e.doc,o=t.left,a;if(n=="page"){var l=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),s=Math.max(l-.5*Pi(e.display),3);a=(r>0?t.bottom:t.top)+r*s}else n=="line"&&(a=r>0?t.bottom+3:t.top-3);for(var u;u=_o(e,o,a),!!u.outside;){if(r<0?a<=0:a>=i.height){u.hitSide=!0;break}a+=r*5}return u}var $n=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};$n.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;zl(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function o(l){for(var s=l.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}U(i,"paste",function(l){!o(l)||Je(n,l)||Al(l,n)||P<=11&&setTimeout(ur(n,function(){return t.updateFromDOM()}),20)}),U(i,"compositionstart",function(l){t.composing={data:l.data,done:!1}}),U(i,"compositionupdate",function(l){t.composing||(t.composing={data:l.data,done:!1})}),U(i,"compositionend",function(l){t.composing&&(l.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),U(i,"touchstart",function(){return r.forceCompositionEnd()}),U(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(l){if(!(!o(l)||Je(n,l))){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()}),l.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var s=Fl(n);Wo({lineWise:!0,text:s.text}),l.type=="cut"&&n.operation(function(){n.setSelections(s.ranges,0,Se),n.replaceSelection("",null,"cut")})}else return;if(l.clipboardData){l.clipboardData.clearData();var u=Jr.text.join(`
`);if(l.clipboardData.setData("Text",u),l.clipboardData.getData("Text")==u){l.preventDefault();return}}var g=Zl(),y=g.firstChild;n.display.lineSpace.insertBefore(g,n.display.lineSpace.firstChild),y.value=Jr.text.join(`
`);var A=document.activeElement;Y(y),setTimeout(function(){n.display.lineSpace.removeChild(g),A.focus(),A==i&&r.showPrimarySelection()},50)}}U(i,"copy",a),U(i,"cut",a)},$n.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$n.prototype.prepareSelection=function(){var e=Ma(this.cm,!1);return e.focus=document.activeElement==this.div,e},$n.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$n.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$n.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom){e.removeAllRanges();return}var o=Bo(t,e.anchorNode,e.anchorOffset),a=Bo(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&ce(Ye(o,a),n)==0&&ce(Ke(o,a),i)==0)){var l=t.display.view,s=n.line>=t.display.viewFrom&&Bl(t,n)||{node:l[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Bl(t,i);if(!u){var g=l[l.length-1].measure,y=g.maps?g.maps[g.maps.length-1]:g.map;u={node:y[y.length-1],offset:y[y.length-2]-y[y.length-3]}}if(!s||!u){e.removeAllRanges();return}var A=e.rangeCount&&e.getRangeAt(0),L;try{L=oe(s.node,s.offset,u.offset,u.node)}catch(he){}L&&(!x&&t.state.focused?(e.collapse(s.node,s.offset),L.collapsed||(e.removeAllRanges(),e.addRange(L))):(e.removeAllRanges(),e.addRange(L)),A&&e.anchorNode==null?e.addRange(A):x&&this.startGracePeriod()),this.rememberSelection()}},$n.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},$n.prototype.showMultipleSelections=function(e){q(this.cm.display.cursorDiv,e.cursors),q(this.cm.display.selectionDiv,e.selection)},$n.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$n.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return R(this.div,t)},$n.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},$n.prototype.blur=function(){this.div.blur()},$n.prototype.getField=function(){return this.div},$n.prototype.supportsTouch=function(){return!0},$n.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Wr(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.polling.set(this.cm.options.pollInterval,t)},$n.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$n.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(ve&&se&&this.cm.display.gutterSpecs.length&&Js(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var r=Bo(t,e.anchorNode,e.anchorOffset),n=Bo(t,e.focusNode,e.focusOffset);r&&n&&Wr(t,function(){Sr(t.doc,gi(r,n),Se),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},$n.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(n.ch==0&&n.line>e.firstLine()&&(n=N(n.line-1,O(e.doc,n.line-1).length)),i.ch==O(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=N(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,l;n.line==t.viewFrom||(o=wi(e,n.line))==0?(a=ie(t.view[0].line),l=t.view[0].node):(a=ie(t.view[o].line),l=t.view[o-1].node.nextSibling);var s=wi(e,i.line),u,g;if(s==t.view.length-1?(u=t.viewTo-1,g=t.lineDiv.lastChild):(u=ie(t.view[s+1].line)-1,g=t.view[s+1].node.previousSibling),!l)return!1;for(var y=e.doc.splitLines(qs(e,l,g,a,u)),A=B(e.doc,N(a,0),N(u,O(e.doc,u).text.length));y.length>1&&A.length>1;)if(rt(y)==rt(A))y.pop(),A.pop(),u--;else if(y[0]==A[0])y.shift(),A.shift(),a++;else break;for(var L=0,he=0,Oe=y[0],He=A[0],et=Math.min(Oe.length,He.length);L<et&&Oe.charCodeAt(L)==He.charCodeAt(L);)++L;for(var lt=rt(y),tt=rt(A),gt=Math.min(lt.length-(y.length==1?L:0),tt.length-(A.length==1?L:0));he<gt&&lt.charCodeAt(lt.length-he-1)==tt.charCodeAt(tt.length-he-1);)++he;if(y.length==1&&A.length==1&&a==n.line)for(;L&&L>n.ch&&lt.charCodeAt(lt.length-he-1)==tt.charCodeAt(tt.length-he-1);)L--,he++;y[y.length-1]=lt.slice(0,lt.length-he).replace(/^\u200b+/,""),y[0]=y[0].slice(L).replace(/\u200b+$/,"");var At=N(a,L),Lt=N(u,A.length?rt(A).length-he:0);if(y.length>1||y[0]||ce(At,Lt))return Zi(e.doc,y,At,Lt,"+input"),!0},$n.prototype.ensurePolled=function(){this.forceCompositionEnd()},$n.prototype.reset=function(){this.forceCompositionEnd()},$n.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$n.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},$n.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Pr(e.cm)})},$n.prototype.setUneditable=function(e){e.contentEditable="false"},$n.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ur(this.cm,ma)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},$n.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},$n.prototype.onContextMenu=function(){},$n.prototype.resetPosition=function(){},$n.prototype.needsContentAttribute=!0;function Bl(e,t){var r=Xi(e,t.line);if(!r||r.hidden)return null;var n=O(e.doc,t.line),i=Vi(r,n,t.line),o=Re(n,e.doc.direction),a="left";if(o){var l=we(o,t.ch);a=l%2?"right":"left"}var s=Yi(i.map,t.ch,a);return s.offset=s.collapse=="right"?s.end:s.start,s}function Js(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Ki(e,t){return t&&(e.bad=!0),e}function qs(e,t,r,n,i){var o="",a=!1,l=e.doc.lineSeparator(),s=!1;function u(L){return function(he){return he.id==L}}function g(){a&&(o+=l,s&&(o+=l),a=s=!1)}function y(L){L&&(g(),o+=L)}function A(L){if(L.nodeType==1){var he=L.getAttribute("cm-text");if(he){y(he);return}var Oe=L.getAttribute("cm-marker"),He;if(Oe){var et=e.findMarks(N(n,0),N(i+1,0),u(+Oe));et.length&&(He=et[0].find(0))&&y(B(e.doc,He.from,He.to).join(l));return}if(L.getAttribute("contenteditable")=="false")return;var lt=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;lt&&g();for(var tt=0;tt<L.childNodes.length;tt++)A(L.childNodes[tt]);/^(pre|p)$/i.test(L.nodeName)&&(s=!0),lt&&(a=!0)}else L.nodeType==3&&y(L.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;A(t),t!=r;)t=t.nextSibling,s=!1;return o}function Bo(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return Ki(e.clipPos(N(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return eu(o,t,r)}}function eu(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!R(n,t))return Ki(N(ie(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?rt(e.rest):e.line;return Ki(N(ie(o),o.text.length),i)}var a=t.nodeType==3?t:null,l=t;for(!a&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(a=t.firstChild,r&&(r=a.nodeValue.length));l.parentNode!=n;)l=l.parentNode;var s=e.measure,u=s.maps;function g(He,et,lt){for(var tt=-1;tt<(u?u.length:0);tt++)for(var gt=tt<0?s.map:u[tt],At=0;At<gt.length;At+=3){var Lt=gt[At+2];if(Lt==He||Lt==et){var vn=ie(tt<0?e.line:e.rest[tt]),Bn=gt[At]+lt;return(lt<0||Lt!=He)&&(Bn=gt[At+(lt?1:0)]),N(vn,Bn)}}}var y=g(a,l,r);if(y)return Ki(y,i);for(var A=l.nextSibling,L=a?a.nodeValue.length-r:0;A;A=A.nextSibling){if(y=g(A,A.firstChild,0),y)return Ki(N(y.line,y.ch-L),i);L+=A.textContent.length}for(var he=l.previousSibling,Oe=r;he;he=he.previousSibling){if(y=g(he,he.firstChild,-1),y)return Ki(N(y.line,y.ch+Oe),i);Oe+=he.textContent.length}}var tr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};tr.prototype.init=function(e){var t=this,r=this,n=this.cm;this.createField(e);var i=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),j&&(i.style.width="0px"),U(i,"input",function(){v&&P>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),U(i,"paste",function(a){Je(n,a)||Al(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!Je(n,a)){if(n.somethingSelected())Wo({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var l=Fl(n);Wo({lineWise:!0,text:l.text}),a.type=="cut"?n.setSelections(l.ranges,null,Se):(r.prevInput="",i.value=l.text.join(`
`),Y(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}U(i,"cut",o),U(i,"copy",o),U(e.scroller,"paste",function(a){if(!(Nn(e,a)||Je(n,a))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var l=new Event("paste");l.clipboardData=a.clipboardData,i.dispatchEvent(l)}}),U(e.lineSpace,"selectstart",function(a){Nn(e,a)||vt(a)}),U(i,"compositionstart",function(){var a=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:a,range:n.markText(a,n.getCursor("to"),{className:"CodeMirror-composing"})}}),U(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},tr.prototype.createField=function(e){this.wrapper=Zl(),this.textarea=this.wrapper.firstChild},tr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},tr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Ma(e);if(e.options.moveInputWithCursor){var i=Zr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return n},tr.prototype.showSelection=function(e){var t=this.cm,r=t.display;q(r.cursorDiv,e.cursors),q(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},tr.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var r=t.getSelection();this.textarea.value=r,t.state.focused&&Y(this.textarea),v&&P>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",v&&P>=9&&(this.hasSelection=null))}},tr.prototype.getField=function(){return this.textarea},tr.prototype.supportsTouch=function(){return!1},tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!We||E()!=this.textarea))try{this.textarea.focus()}catch(e){}},tr.prototype.blur=function(){this.textarea.blur()},tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},tr.prototype.receivedFocus=function(){this.slowPoll()},tr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},tr.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function r(){var n=t.poll();!n&&!e?(e=!0,t.polling.set(60,r)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,r)},tr.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Bt(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(v&&P>=9&&this.hasSelection===i||Ve&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!n&&(n="\u200B"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var a=0,l=Math.min(n.length,i.length);a<l&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return Wr(t,function(){ma(t,i.slice(a),n.length-a,null,e.composing?"*compose":null),i.length>1e3||i.indexOf(`
`)>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},tr.prototype.onKeyPress=function(){v&&P>=9&&(this.hasSelection=null),this.fastPoll()},tr.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=xi(r,e),a=n.scroller.scrollTop;if(!o||p)return;var l=r.options.resetSelectionOnContextMenu;l&&r.doc.sel.contains(o)==-1&&ur(r,Sr)(r.doc,gi(o),Se);var s=i.style.cssText,u=t.wrapper.style.cssText,g=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-g.top-5)+"px; left: "+(e.clientX-g.left-5)+`px;
z-index: 1000; background: `+(v?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var y;I&&(y=window.scrollY),n.input.focus(),I&&window.scrollTo(null,y),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=L,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function A(){if(i.selectionStart!=null){var Oe=r.somethingSelected(),He="\u200B"+(Oe?i.value:"");i.value="\u21DA",i.value=He,t.prevInput=Oe?"":"\u200B",i.selectionStart=1,i.selectionEnd=He.length,n.selForContextMenu=r.doc.sel}}function L(){if(t.contextMenuPending==L&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,v&&P<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!v||v&&P<9)&&A();var Oe=0,He=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?ur(r,il)(r):Oe++<10?n.detectingSelectAll=setTimeout(He,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(He,200)}}if(v&&P>=9&&A(),C){mn(e);var he=function(){Qe(window,"mouseup",he),setTimeout(L,20)};U(window,"mouseup",he)}else setTimeout(L,50)},tr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},tr.prototype.setUneditable=function(){},tr.prototype.needsContentAttribute=!1;function tu(e,t){if(t=t?H(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var r=E();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=l.getValue()}var i;if(e.form&&(U(e.form,"submit",n),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(s){}}t.finishInit=function(s){s.save=n,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,n(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(Qe(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var l=Qn(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return l}function nu(e){e.off=Qe,e.on=U,e.wheelEventPixels=us,e.Doc=Tr,e.splitLines=kt,e.countColumn=V,e.findColumn=wt,e.isWordChar=F,e.Pass=_e,e.signal=Ae,e.Line=Xn,e.changeEnd=pi,e.scrollbarModel=Aa,e.Pos=N,e.cmpPos=ce,e.modes=dn,e.mimeModes=Tn,e.resolveMode=wn,e.getMode=ut,e.modeExtensions=ot,e.extendMode=m,e.copyState=k,e.startState=d,e.innerMode=re,e.commands=go,e.keyMap=si,e.keyName=Sl,e.isModifierKey=yl,e.lookupKey=Bi,e.normalizeKeyMap=Ts,e.StringStream=h,e.SharedTextMarker=fo,e.TextMarker=yi,e.LineWidget=co,e.e_preventDefault=vt,e.e_stopPropagation=Wt,e.e_stop=mn,e.addClass=$,e.contains=R,e.rmClass=b,e.keyNames=bi}Vs(Qn),Qs(Qn);var ru="iter insert remove copy getEditor constructor".split(" ");for(var Ho in Tr.prototype)Tr.prototype.hasOwnProperty(Ho)&&ue(ru,Ho)<0&&(Qn.prototype[Ho]=function(e){return function(){return e.apply(this.doc,arguments)}}(Tr.prototype[Ho]));return Zt(Tr),Qn.inputStyles={textarea:tr,contenteditable:$n},Qn.defineMode=function(e){!Qn.defaults.mode&&e!="null"&&(Qn.defaults.mode=e),nr.apply(this,arguments)},Qn.defineMIME=Vn,Qn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Qn.defineMIME("text/plain","null"),Qn.defineExtension=function(e,t){Qn.prototype[e]=t},Qn.defineDocExtension=function(e,t){Tr.prototype[e]=t},Qn.fromTextArea=tu,nu(Qn),Qn.version="5.58.2",Qn})},93681:function(tn,Le,c){"use strict";c.r(Le),c.d(Le,{BaseInput:function(){return p},default:function(){return be}});var x=c(92413),W=c(33708),S=c(400),X=c(39559),v=c(92310),P=c.n(v),I=c(59301),K=c(5643),se=function(J){var C,f,b=J.inputElement,T=J.prefixCls,q=J.prefix,z=J.suffix,De=J.addonBefore,oe=J.addonAfter,R=J.className,E=J.style,$=J.disabled,Z=J.readOnly,Y=J.focused,G=J.triggerFocus,H=J.allowClear,V=J.value,fe=J.handleReset,ue=J.hidden,ze=J.classes,_e=J.classNames,Se=J.dataAttrs,Te=J.styles,Me=J.components,wt=(Me==null?void 0:Me.affixWrapper)||"span",Dt=(Me==null?void 0:Me.groupWrapper)||"span",dt=(Me==null?void 0:Me.wrapper)||"span",rt=(Me==null?void 0:Me.groupAddon)||"span",Mt=(0,I.useRef)(null),st=function(Ee){var we;(we=Mt.current)!==null&&we!==void 0&&we.contains(Ee.target)&&(G==null||G())},Ht=function(){var Ee;if(!H)return null;var we=!$&&!Z&&V,Ne="".concat(T,"-clear-icon"),Re=(0,X.Z)(H)==="object"&&H!==null&&H!==void 0&&H.clearIcon?H.clearIcon:"\u2716";return I.createElement("span",{onClick:fe,onMouseDown:function(U){return U.preventDefault()},className:P()(Ne,(Ee={},(0,S.Z)(Ee,"".concat(Ne,"-hidden"),!we),(0,S.Z)(Ee,"".concat(Ne,"-has-suffix"),!!z),Ee)),role:"button",tabIndex:-1},Re)},Q=(0,I.cloneElement)(b,{value:V,hidden:ue,className:P()((C=b.props)===null||C===void 0?void 0:C.className,!(0,K.X3)(J)&&!(0,K.He)(J)&&R)||null,style:(0,W.Z)((0,W.Z)({},(f=b.props)===null||f===void 0?void 0:f.style),!(0,K.X3)(J)&&!(0,K.He)(J)?E:{})});if((0,K.X3)(J)){var M,F="".concat(T,"-affix-wrapper"),w=P()(F,(M={},(0,S.Z)(M,"".concat(F,"-disabled"),$),(0,S.Z)(M,"".concat(F,"-focused"),Y),(0,S.Z)(M,"".concat(F,"-readonly"),Z),(0,S.Z)(M,"".concat(F,"-input-with-clear-btn"),z&&H&&V),M),!(0,K.He)(J)&&R,ze==null?void 0:ze.affixWrapper,_e==null?void 0:_e.affixWrapper),_=(z||H)&&I.createElement("span",{className:P()("".concat(T,"-suffix"),_e==null?void 0:_e.suffix),style:Te==null?void 0:Te.suffix},Ht(),z);Q=I.createElement(wt,(0,x.Z)({className:w,style:(0,W.Z)((0,W.Z)({},(0,K.He)(J)?void 0:E),Te==null?void 0:Te.affixWrapper),hidden:!(0,K.He)(J)&&ue,onClick:st},Se==null?void 0:Se.affixWrapper,{ref:Mt}),q&&I.createElement("span",{className:P()("".concat(T,"-prefix"),_e==null?void 0:_e.prefix),style:Te==null?void 0:Te.prefix},q),(0,I.cloneElement)(b,{value:V,hidden:null}),_)}if((0,K.He)(J)){var ne="".concat(T,"-group"),ae="".concat(ne,"-addon"),le=P()("".concat(T,"-wrapper"),ne,ze==null?void 0:ze.wrapper),de=P()("".concat(T,"-group-wrapper"),R,ze==null?void 0:ze.group);return I.createElement(Dt,{className:de,style:E,hidden:ue},I.createElement(dt,{className:le},De&&I.createElement(rt,{className:ae},De),(0,I.cloneElement)(Q,{hidden:null}),oe&&I.createElement(rt,{className:ae},oe)))}return Q},p=se,xe=c(26407),D=c(33606),me=c(37061),j=c(18929),ve=c(2738),We=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Ve=(0,I.forwardRef)(function(te,J){var C=te.autoComplete,f=te.onChange,b=te.onFocus,T=te.onBlur,q=te.onPressEnter,z=te.onKeyDown,De=te.prefixCls,oe=De===void 0?"rc-input":De,R=te.disabled,E=te.htmlSize,$=te.className,Z=te.maxLength,Y=te.suffix,G=te.showCount,H=te.type,V=H===void 0?"text":H,fe=te.classes,ue=te.classNames,ze=te.styles,_e=(0,me.Z)(te,We),Se=(0,j.Z)(te.defaultValue,{value:te.value}),Te=(0,D.Z)(Se,2),Me=Te[0],wt=Te[1],Dt=(0,I.useState)(!1),dt=(0,D.Z)(Dt,2),rt=dt[0],Mt=dt[1],st=(0,I.useRef)(null),Ht=function(de){st.current&&(0,K.nH)(st.current,de)};(0,I.useImperativeHandle)(J,function(){return{focus:Ht,blur:function(){var de;(de=st.current)===null||de===void 0||de.blur()},setSelectionRange:function(de,Ie,Ee){var we;(we=st.current)===null||we===void 0||we.setSelectionRange(de,Ie,Ee)},select:function(){var de;(de=st.current)===null||de===void 0||de.select()},input:st.current}}),(0,I.useEffect)(function(){Mt(function(le){return le&&R?!1:le})},[R]);var Q=function(de){te.value===void 0&&wt(de.target.value),st.current&&(0,K.rJ)(st.current,de,f)},M=function(de){q&&de.key==="Enter"&&q(de),z==null||z(de)},F=function(de){Mt(!0),b==null||b(de)},w=function(de){Mt(!1),T==null||T(de)},_=function(de){wt(""),Ht(),st.current&&(0,K.rJ)(st.current,de,f)},ne=function(){var de=(0,ve.Z)(te,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return I.createElement("input",(0,x.Z)({autoComplete:C},de,{onChange:Q,onFocus:F,onBlur:w,onKeyDown:M,className:P()(oe,(0,S.Z)({},"".concat(oe,"-disabled"),R),ue==null?void 0:ue.input),style:ze==null?void 0:ze.input,ref:st,size:E,type:V}))},ae=function(){var de=Number(Z)>0;if(Y||G){var Ie=(0,K.D7)(Me),Ee=(0,xe.Z)(Ie).length,we=(0,X.Z)(G)==="object"?G.formatter({value:Ie,count:Ee,maxLength:Z}):"".concat(Ee).concat(de?" / ".concat(Z):"");return I.createElement(I.Fragment,null,!!G&&I.createElement("span",{className:P()("".concat(oe,"-show-count-suffix"),(0,S.Z)({},"".concat(oe,"-show-count-has-suffix"),!!Y),ue==null?void 0:ue.count),style:(0,W.Z)({},ze==null?void 0:ze.count)},we),Y)}return null};return I.createElement(p,(0,x.Z)({},_e,{prefixCls:oe,className:$,inputElement:ne(),handleReset:_,value:(0,K.D7)(Me),focused:rt,triggerFocus:Ht,suffix:ae(),disabled:R,classes:fe,classNames:ue,styles:ze}))}),Pe=Ve,be=Pe},5643:function(tn,Le,c){"use strict";c.d(Le,{D7:function(){return v},He:function(){return x},X3:function(){return W},nH:function(){return X},rJ:function(){return S}});function x(P){return!!(P.addonBefore||P.addonAfter)}function W(P){return!!(P.prefix||P.suffix||P.allowClear)}function S(P,I,K,se){if(K){var p=I;if(I.type==="click"){var xe=P.cloneNode(!0);p=Object.create(I,{target:{value:xe},currentTarget:{value:xe}}),xe.value="",K(p);return}if(se!==void 0){p=Object.create(I,{target:{value:P},currentTarget:{value:P}}),P.value=se,K(p);return}K(p)}}function X(P,I){if(P){P.focus(I);var K=I||{},se=K.cursor;if(se){var p=P.value.length;switch(se){case"start":P.setSelectionRange(0,0);break;case"end":P.setSelectionRange(p,p);break;default:P.setSelectionRange(0,p)}}}}function v(P){return typeof P=="undefined"||P===null?"":String(P)}},11780:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return G}});var x=c(92413),W=c(33708),S=c(33606),X=c(37061),v=c(59301),P=c(92310),I=c.n(P),K=c(29301),se=c(34280),p=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],xe=void 0;function D(H,V){var fe=H.prefixCls,ue=H.invalidate,ze=H.item,_e=H.renderItem,Se=H.responsive,Te=H.responsiveDisabled,Me=H.registerSize,wt=H.itemKey,Dt=H.className,dt=H.style,rt=H.children,Mt=H.display,st=H.order,Ht=H.component,Q=Ht===void 0?"div":Ht,M=(0,X.Z)(H,p),F=Se&&!Mt;function w(de){Me(wt,de)}v.useEffect(function(){return function(){w(null)}},[]);var _=_e&&ze!==xe?_e(ze,{index:st}):rt,ne;ue||(ne={opacity:F?0:1,height:F?0:xe,overflowY:F?"hidden":xe,order:Se?st:xe,pointerEvents:F?"none":xe,position:F?"absolute":xe});var ae={};F&&(ae["aria-hidden"]=!0);var le=v.createElement(Q,(0,x.Z)({className:I()(!ue&&fe,Dt),style:(0,W.Z)((0,W.Z)({},ne),dt)},ae,M,{ref:V}),_);return Se&&(le=v.createElement(K.Z,{onResize:function(Ie){var Ee=Ie.offsetWidth;w(Ee)},disabled:Te},le)),le}var me=v.forwardRef(D);me.displayName="Item";var j=me,ve=c(6089),We=c(4676),Ve=c(16089);function Pe(H){if(typeof MessageChannel=="undefined")(0,Ve.Z)(H);else{var V=new MessageChannel;V.port1.onmessage=function(){return H()},V.port2.postMessage(void 0)}}function be(){var H=v.useRef(null),V=function(ue){H.current||(H.current=[],Pe(function(){(0,We.unstable_batchedUpdates)(function(){H.current.forEach(function(ze){ze()}),H.current=null})})),H.current.push(ue)};return V}function te(H,V){var fe=v.useState(V),ue=(0,S.Z)(fe,2),ze=ue[0],_e=ue[1],Se=(0,ve.Z)(function(Te){H(function(){_e(Te)})});return[ze,Se]}var J=v.createContext(null),C=["component"],f=["className"],b=["className"],T=function(V,fe){var ue=v.useContext(J);if(!ue){var ze=V.component,_e=ze===void 0?"div":ze,Se=(0,X.Z)(V,C);return v.createElement(_e,(0,x.Z)({},Se,{ref:fe}))}var Te=ue.className,Me=(0,X.Z)(ue,f),wt=V.className,Dt=(0,X.Z)(V,b);return v.createElement(J.Provider,{value:null},v.createElement(j,(0,x.Z)({ref:fe,className:I()(Te,wt)},Me,Dt)))},q=v.forwardRef(T);q.displayName="RawItem";var z=q,De=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],oe="responsive",R="invalidate";function E(H){return"+ ".concat(H.length," ...")}function $(H,V){var fe=H.prefixCls,ue=fe===void 0?"rc-overflow":fe,ze=H.data,_e=ze===void 0?[]:ze,Se=H.renderItem,Te=H.renderRawItem,Me=H.itemKey,wt=H.itemWidth,Dt=wt===void 0?10:wt,dt=H.ssr,rt=H.style,Mt=H.className,st=H.maxCount,Ht=H.renderRest,Q=H.renderRawRest,M=H.suffix,F=H.component,w=F===void 0?"div":F,_=H.itemComponent,ne=H.onVisibleChange,ae=(0,X.Z)(H,De),le=dt==="full",de=be(),Ie=te(de,null),Ee=(0,S.Z)(Ie,2),we=Ee[0],Ne=Ee[1],Re=we||0,Fe=te(de,new Map),U=(0,S.Z)(Fe,2),Ge=U[0],Qe=U[1],Ae=te(de,0),Je=(0,S.Z)(Ae,2),it=Je[0],ke=Je[1],Zt=te(de,0),vt=(0,S.Z)(Zt,2),Wt=vt[0],jt=vt[1],mn=te(de,0),_t=(0,S.Z)(mn,2),cn=_t[0],yn=_t[1],On=(0,v.useState)(null),nn=(0,S.Z)(On,2),$t=nn[0],on=nn[1],kt=(0,v.useState)(null),Bt=(0,S.Z)(kt,2),fn=Bt[0],Ut=Bt[1],bn=v.useMemo(function(){return fn===null&&le?Number.MAX_SAFE_INTEGER:fn||0},[fn,we]),dn=(0,v.useState)(!1),Tn=(0,S.Z)(dn,2),nr=Tn[0],Vn=Tn[1],wn="".concat(ue,"-item"),ut=Math.max(it,Wt),ot=st===oe,m=_e.length&&ot,k=st===R,re=m||typeof st=="number"&&_e.length>st,d=(0,v.useMemo)(function(){var Ce=_e;return m?we===null&&le?Ce=_e:Ce=_e.slice(0,Math.min(_e.length,Re/Dt)):typeof st=="number"&&(Ce=_e.slice(0,st)),Ce},[_e,Dt,we,st,m]),h=(0,v.useMemo)(function(){return m?_e.slice(bn+1):_e.slice(d.length)},[_e,d,m,bn]),O=(0,v.useCallback)(function(Ce,Be){var bt;return typeof Me=="function"?Me(Ce):(bt=Me&&(Ce==null?void 0:Ce[Me]))!==null&&bt!==void 0?bt:Be},[Me]),B=(0,v.useCallback)(Se||function(Ce){return Ce},[Se]);function ye(Ce,Be,bt){fn===Ce&&(Be===void 0||Be===$t)||(Ut(Ce),bt||(Vn(Ce<_e.length-1),ne==null||ne(Ce)),Be!==void 0&&on(Be))}function ee(Ce,Be){Ne(Be.clientWidth)}function ie(Ce,Be){Qe(function(bt){var ct=new Map(bt);return Be===null?ct.delete(Ce):ct.set(Ce,Be),ct})}function ge(Ce,Be){jt(Be),ke(Wt)}function $e(Ce,Be){yn(Be)}function je(Ce){return Ge.get(O(d[Ce],Ce))}(0,se.Z)(function(){if(Re&&typeof ut=="number"&&d){var Ce=cn,Be=d.length,bt=Be-1;if(!Be){ye(0,null);return}for(var ct=0;ct<Be;ct+=1){var at=je(ct);if(le&&(at=at||0),at===void 0){ye(ct-1,void 0,!0);break}if(Ce+=at,bt===0&&Ce<=Re||ct===bt-1&&Ce+je(bt)<=Re){ye(bt,null);break}else if(Ce+ut>Re){ye(ct-1,Ce-at-cn+Wt);break}}M&&je(0)+cn>Re&&on(null)}},[Re,Ge,Wt,cn,O,d]);var N=nr&&!!h.length,ce={};$t!==null&&m&&(ce={position:"absolute",left:$t,top:0});var Xe={prefixCls:wn,responsive:m,component:_,invalidate:k},Ze=Te?function(Ce,Be){var bt=O(Ce,Be);return v.createElement(J.Provider,{key:bt,value:(0,W.Z)((0,W.Z)({},Xe),{},{order:Be,item:Ce,itemKey:bt,registerSize:ie,display:Be<=bn})},Te(Ce,Be))}:function(Ce,Be){var bt=O(Ce,Be);return v.createElement(j,(0,x.Z)({},Xe,{order:Be,key:bt,item:Ce,renderItem:B,itemKey:bt,registerSize:ie,display:Be<=bn}))},Ke={order:N?bn:Number.MAX_SAFE_INTEGER,className:"".concat(wn,"-rest"),registerSize:ge,display:N},Ye=Ht||E,yt=Q?v.createElement(J.Provider,{value:(0,W.Z)((0,W.Z)({},Xe),Ke)},Q(h)):v.createElement(j,(0,x.Z)({},Xe,Ke),typeof Ye=="function"?Ye(h):Ye),pe=v.createElement(w,(0,x.Z)({className:I()(!k&&ue,Mt),style:rt,ref:V},ae),d.map(Ze),re?yt:null,M&&v.createElement(j,(0,x.Z)({},Xe,{responsive:ot,responsiveDisabled:!m,order:bn,className:"".concat(wn,"-suffix"),registerSize:$e,display:!0,style:ce}),M));return ot?v.createElement(K.Z,{onResize:ee,disabled:!m},pe):pe}var Z=v.forwardRef($);Z.displayName="Overflow",Z.Item=z,Z.RESPONSIVE=oe,Z.INVALIDATE=R;var Y=Z,G=Y},29301:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return R}});var x=c(92413),W=c(59301),S=c(11592),X=c(48736),v=c(33708),P=c(39559),I=c(76846),K=c(8654),se=W.createContext(null);function p(E){var $=E.children,Z=E.onBatchResize,Y=W.useRef(0),G=W.useRef([]),H=W.useContext(se),V=W.useCallback(function(fe,ue,ze){Y.current+=1;var _e=Y.current;G.current.push({size:fe,element:ue,data:ze}),Promise.resolve().then(function(){_e===Y.current&&(Z==null||Z(G.current),G.current=[])}),H==null||H(fe,ue,ze)},[Z,H]);return W.createElement(se.Provider,{value:V},$)}var xe=c(76374),D=new Map;function me(E){E.forEach(function($){var Z,Y=$.target;(Z=D.get(Y))===null||Z===void 0||Z.forEach(function(G){return G(Y)})})}var j=new xe.Z(me),ve=null,We=null;function Ve(E,$){D.has(E)||(D.set(E,new Set),j.observe(E)),D.get(E).add($)}function Pe(E,$){D.has(E)&&(D.get(E).delete($),D.get(E).size||(j.unobserve(E),D.delete(E)))}var be=c(6909),te=c(4771),J=c(9427),C=c(25440),f=function(E){(0,J.Z)(Z,E);var $=(0,C.Z)(Z);function Z(){return(0,be.Z)(this,Z),$.apply(this,arguments)}return(0,te.Z)(Z,[{key:"render",value:function(){return this.props.children}}]),Z}(W.Component);function b(E,$){var Z=E.children,Y=E.disabled,G=W.useRef(null),H=W.useRef(null),V=W.useContext(se),fe=typeof Z=="function",ue=fe?Z(G):Z,ze=W.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),_e=!fe&&W.isValidElement(ue)&&(0,K.Yr)(ue),Se=_e?(0,K.C4)(ue):null,Te=(0,K.x1)(Se,G),Me=function(){var rt;return(0,I.ZP)(G.current)||(G.current&&(0,P.Z)(G.current)==="object"?(0,I.ZP)((rt=G.current)===null||rt===void 0?void 0:rt.nativeElement):null)||(0,I.ZP)(H.current)};W.useImperativeHandle($,function(){return Me()});var wt=W.useRef(E);wt.current=E;var Dt=W.useCallback(function(dt){var rt=wt.current,Mt=rt.onResize,st=rt.data,Ht=dt.getBoundingClientRect(),Q=Ht.width,M=Ht.height,F=dt.offsetWidth,w=dt.offsetHeight,_=Math.floor(Q),ne=Math.floor(M);if(ze.current.width!==_||ze.current.height!==ne||ze.current.offsetWidth!==F||ze.current.offsetHeight!==w){var ae={width:_,height:ne,offsetWidth:F,offsetHeight:w};ze.current=ae;var le=F===Math.round(Q)?Q:F,de=w===Math.round(M)?M:w,Ie=(0,v.Z)((0,v.Z)({},ae),{},{offsetWidth:le,offsetHeight:de});V==null||V(Ie,dt,st),Mt&&Promise.resolve().then(function(){Mt(Ie,dt)})}},[]);return W.useEffect(function(){var dt=Me();return dt&&!Y&&Ve(dt,Dt),function(){return Pe(dt,Dt)}},[G.current,Y]),W.createElement(f,{ref:H},_e?W.cloneElement(ue,{ref:Te}):ue)}var T=W.forwardRef(b),q=T,z="rc-observer-key";function De(E,$){var Z=E.children,Y=typeof Z=="function"?[Z]:(0,S.Z)(Z);return Y.map(function(G,H){var V=(G==null?void 0:G.key)||"".concat(z,"-").concat(H);return W.createElement(q,(0,x.Z)({},E,{key:V,ref:H===0?$:void 0}),G)})}var oe=W.forwardRef(De);oe.Collection=p;var R=oe},17115:function(tn,Le,c){"use strict";c.d(Le,{ZP:function(){return I}});var x=c(33606),W=c(59301),S=c(47273),X=0,v=(0,S.Z)();function P(){var K;return v?(K=X,X+=1):K="TEST_OR_SSR",K}function I(K){var se=W.useState(),p=(0,x.Z)(se,2),xe=p[0],D=p[1];return W.useEffect(function(){D("rc_select_".concat(P()))},[]),K||xe}},77861:function(tn,Le,c){"use strict";c.d(Le,{Ac:function(){return Ne},Xo:function(){return jt},Wx:function(){return _t},ZP:function(){return re},lk:function(){return J}});var x=c(92413),W=c(26407),S=c(400),X=c(33708),v=c(33606),P=c(37061),I=c(39559),K=c(18929),se=c(48736),p=c(59301),xe=c(92310),D=c.n(xe),me=c(34280),j=c(49658),ve=c(10228),We=c(8654),Ve=function(h){var O=h.className,B=h.customizeIcon,ye=h.customizeIconProps,ee=h.onMouseDown,ie=h.onClick,ge=h.children,$e;return typeof B=="function"?$e=B(ye):$e=B,p.createElement("span",{className:O,onMouseDown:function(N){N.preventDefault(),ee&&ee(N)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ie,"aria-hidden":!0},$e!==void 0?$e:p.createElement("span",{className:D()(O.split(/\s+/).map(function(je){return"".concat(je,"-icon")}))},ge))},Pe=Ve;function be(d,h,O,B,ye){var ee=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ie=arguments.length>6?arguments[6]:void 0,ge=arguments.length>7?arguments[7]:void 0,$e=p.useMemo(function(){if((0,I.Z)(B)==="object")return B.clearIcon;if(ye)return ye},[B,ye]),je=p.useMemo(function(){return!!(!ee&&B&&(O.length||ie)&&!(ge==="combobox"&&ie===""))},[B,ee,O.length,ie,ge]);return{allowClear:je,clearIcon:p.createElement(Pe,{className:"".concat(d,"-clear"),onMouseDown:h,customizeIcon:$e},"\xD7")}}var te=p.createContext(null);function J(){return p.useContext(te)}function C(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,h=p.useState(!1),O=(0,v.Z)(h,2),B=O[0],ye=O[1],ee=p.useRef(null),ie=function(){window.clearTimeout(ee.current)};p.useEffect(function(){return ie},[]);var ge=function(je,N){ie(),ee.current=window.setTimeout(function(){ye(je),N&&N()},d)};return[B,ge,ie]}function f(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,h=p.useRef(null),O=p.useRef(null);p.useEffect(function(){return function(){window.clearTimeout(O.current)}},[]);function B(ye){(ye||h.current===null)&&(h.current=ye),window.clearTimeout(O.current),O.current=window.setTimeout(function(){h.current=null},d)}return[function(){return h.current},B]}function b(d,h,O,B){var ye=p.useRef(null);ye.current={open:h,triggerOpen:O,customizedTrigger:B},p.useEffect(function(){function ee(ie){var ge;if(!((ge=ye.current)!==null&&ge!==void 0&&ge.customizedTrigger)){var $e=ie.target;$e.shadowRoot&&ie.composed&&($e=ie.composedPath()[0]||$e),ye.current.open&&d().filter(function(je){return je}).every(function(je){return!je.contains($e)&&je!==$e})&&ye.current.triggerOpen(!1)}}return window.addEventListener("mousedown",ee),function(){return window.removeEventListener("mousedown",ee)}},[])}var T=c(26112),q=c(11780),z=function(h,O){var B,ye,ee=h.prefixCls,ie=h.id,ge=h.inputElement,$e=h.disabled,je=h.tabIndex,N=h.autoFocus,ce=h.autoComplete,Xe=h.editable,Ze=h.activeDescendantId,Ke=h.value,Ye=h.maxLength,yt=h.onKeyDown,pe=h.onMouseDown,Ce=h.onChange,Be=h.onPaste,bt=h.onCompositionStart,ct=h.onCompositionEnd,at=h.open,Jt=h.attrs,It=ge||p.createElement("input",null),Ft=It,Gt=Ft.ref,Rt=Ft.props,Yt=Rt.onKeyDown,ln=Rt.onChange,qt=Rt.onMouseDown,an=Rt.onCompositionStart,pt=Rt.onCompositionEnd,qe=Rt.style;return(0,se.Kp)(!("maxLength"in It.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),It=p.cloneElement(It,(0,X.Z)((0,X.Z)((0,X.Z)({type:"search"},Rt),{},{id:ie,ref:(0,We.sQ)(O,Gt),disabled:$e,tabIndex:je,autoComplete:ce||"off",autoFocus:N,className:D()("".concat(ee,"-selection-search-input"),(B=It)===null||B===void 0||(ye=B.props)===null||ye===void 0?void 0:ye.className),role:"combobox","aria-label":"Search","aria-expanded":at||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ie,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ie,"_list"),"aria-activedescendant":at?Ze:void 0},Jt),{},{value:Xe?Ke:"",maxLength:Ye,readOnly:!Xe,unselectable:Xe?null:"on",style:(0,X.Z)((0,X.Z)({},qe),{},{opacity:Xe?null:0}),onKeyDown:function(Ot){yt(Ot),Yt&&Yt(Ot)},onMouseDown:function(Ot){pe(Ot),qt&&qt(Ot)},onChange:function(Ot){Ce(Ot),ln&&ln(Ot)},onCompositionStart:function(Ot){bt(Ot),an&&an(Ot)},onCompositionEnd:function(Ot){ct(Ot),pt&&pt(Ot)},onPaste:Be})),It},De=p.forwardRef(z);De.displayName="Input";var oe=De;function R(d){return Array.isArray(d)?d:d!==void 0?[d]:[]}var E=typeof window!="undefined"&&window.document&&window.document.documentElement,$=E;function Z(d){return d!=null}function Y(d){return!d&&d!==0}function G(d){return["string","number"].includes((0,I.Z)(d))}function H(d){var h=void 0;return d&&(G(d.title)?h=d.title.toString():G(d.label)&&(h=d.label.toString())),h}function V(d,h){$?p.useLayoutEffect(d,h):p.useEffect(d,h)}function fe(d){var h;return(h=d.key)!==null&&h!==void 0?h:d.value}var ue=function(h){h.preventDefault(),h.stopPropagation()},ze=function(h){var O=h.id,B=h.prefixCls,ye=h.values,ee=h.open,ie=h.searchValue,ge=h.autoClearSearchValue,$e=h.inputRef,je=h.placeholder,N=h.disabled,ce=h.mode,Xe=h.showSearch,Ze=h.autoFocus,Ke=h.autoComplete,Ye=h.activeDescendantId,yt=h.tabIndex,pe=h.removeIcon,Ce=h.maxTagCount,Be=h.maxTagTextLength,bt=h.maxTagPlaceholder,ct=bt===void 0?function(zt){return"+ ".concat(zt.length," ...")}:bt,at=h.tagRender,Jt=h.onToggleOpen,It=h.onRemove,Ft=h.onInputChange,Gt=h.onInputPaste,Rt=h.onInputKeyDown,Yt=h.onInputMouseDown,ln=h.onInputCompositionStart,qt=h.onInputCompositionEnd,an=p.useRef(null),pt=(0,p.useState)(0),qe=(0,v.Z)(pt,2),Nt=qe[0],Ot=qe[1],xn=(0,p.useState)(!1),Kt=(0,v.Z)(xn,2),en=Kt[0],hn=Kt[1],Pt="".concat(B,"-selection"),Zn=ee||ce==="multiple"&&ge===!1||ce==="tags"?ie:"",jn=ce==="tags"||ce==="multiple"&&ge===!1||Xe&&(ee||en);V(function(){Ot(an.current.scrollWidth)},[Zn]);function Tt(zt,gn,Rn,Ln,Mn){return p.createElement("span",{className:D()("".concat(Pt,"-item"),(0,S.Z)({},"".concat(Pt,"-item-disabled"),Rn)),title:H(zt)},p.createElement("span",{className:"".concat(Pt,"-item-content")},gn),Ln&&p.createElement(Pe,{className:"".concat(Pt,"-item-remove"),onMouseDown:ue,onClick:Mn,customizeIcon:pe},"\xD7"))}function St(zt,gn,Rn,Ln,Mn){var An=function(nt){ue(nt),Jt(!ee)};return p.createElement("span",{onMouseDown:An},at({label:gn,value:zt,disabled:Rn,closable:Ln,onClose:Mn}))}function Et(zt){var gn=zt.disabled,Rn=zt.label,Ln=zt.value,Mn=!N&&!gn,An=Rn;if(typeof Be=="number"&&(typeof Rn=="string"||typeof Rn=="number")){var Ue=String(An);Ue.length>Be&&(An="".concat(Ue.slice(0,Be),"..."))}var nt=function(pn){pn&&pn.stopPropagation(),It(zt)};return typeof at=="function"?St(Ln,An,gn,Mn,nt):Tt(zt,An,gn,Mn,nt)}function rn(zt){var gn=typeof ct=="function"?ct(zt):ct;return Tt({title:gn},gn,!1)}var sn=p.createElement("div",{className:"".concat(Pt,"-search"),style:{width:Nt},onFocus:function(){hn(!0)},onBlur:function(){hn(!1)}},p.createElement(oe,{ref:$e,open:ee,prefixCls:B,id:O,inputElement:null,disabled:N,autoFocus:Ze,autoComplete:Ke,editable:jn,activeDescendantId:Ye,value:Zn,onKeyDown:Rt,onMouseDown:Yt,onChange:Ft,onPaste:Gt,onCompositionStart:ln,onCompositionEnd:qt,tabIndex:yt,attrs:(0,T.Z)(h,!0)}),p.createElement("span",{ref:an,className:"".concat(Pt,"-search-mirror"),"aria-hidden":!0},Zn,"\xA0")),Qt=p.createElement(q.Z,{prefixCls:"".concat(Pt,"-overflow"),data:ye,renderItem:Et,renderRest:rn,suffix:sn,itemKey:fe,maxCount:Ce});return p.createElement(p.Fragment,null,Qt,!ye.length&&!Zn&&p.createElement("span",{className:"".concat(Pt,"-placeholder")},je))},_e=ze,Se=function(h){var O=h.inputElement,B=h.prefixCls,ye=h.id,ee=h.inputRef,ie=h.disabled,ge=h.autoFocus,$e=h.autoComplete,je=h.activeDescendantId,N=h.mode,ce=h.open,Xe=h.values,Ze=h.placeholder,Ke=h.tabIndex,Ye=h.showSearch,yt=h.searchValue,pe=h.activeValue,Ce=h.maxLength,Be=h.onInputKeyDown,bt=h.onInputMouseDown,ct=h.onInputChange,at=h.onInputPaste,Jt=h.onInputCompositionStart,It=h.onInputCompositionEnd,Ft=h.title,Gt=p.useState(!1),Rt=(0,v.Z)(Gt,2),Yt=Rt[0],ln=Rt[1],qt=N==="combobox",an=qt||Ye,pt=Xe[0],qe=yt||"";qt&&pe&&!Yt&&(qe=pe),p.useEffect(function(){qt&&ln(!1)},[qt,pe]);var Nt=N!=="combobox"&&!ce&&!Ye?!1:!!qe,Ot=Ft===void 0?H(pt):Ft,xn=function(){if(pt)return null;var en=Nt?{visibility:"hidden"}:void 0;return p.createElement("span",{className:"".concat(B,"-selection-placeholder"),style:en},Ze)};return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(B,"-selection-search")},p.createElement(oe,{ref:ee,prefixCls:B,id:ye,open:ce,inputElement:O,disabled:ie,autoFocus:ge,autoComplete:$e,editable:an,activeDescendantId:je,value:qe,onKeyDown:Be,onMouseDown:bt,onChange:function(en){ln(!0),ct(en)},onPaste:at,onCompositionStart:Jt,onCompositionEnd:It,tabIndex:Ke,attrs:(0,T.Z)(h,!0),maxLength:qt?Ce:void 0})),!qt&&pt?p.createElement("span",{className:"".concat(B,"-selection-item"),title:Ot,style:Nt?{visibility:"hidden"}:void 0},pt.label):null,xn())},Te=Se;function Me(d){return![ve.Z.ESC,ve.Z.SHIFT,ve.Z.BACKSPACE,ve.Z.TAB,ve.Z.WIN_KEY,ve.Z.ALT,ve.Z.META,ve.Z.WIN_KEY_RIGHT,ve.Z.CTRL,ve.Z.SEMICOLON,ve.Z.EQUALS,ve.Z.CAPS_LOCK,ve.Z.CONTEXT_MENU,ve.Z.F1,ve.Z.F2,ve.Z.F3,ve.Z.F4,ve.Z.F5,ve.Z.F6,ve.Z.F7,ve.Z.F8,ve.Z.F9,ve.Z.F10,ve.Z.F11,ve.Z.F12].includes(d)}var wt=function(h,O){var B=(0,p.useRef)(null),ye=(0,p.useRef)(!1),ee=h.prefixCls,ie=h.open,ge=h.mode,$e=h.showSearch,je=h.tokenWithEnter,N=h.autoClearSearchValue,ce=h.onSearch,Xe=h.onSearchSubmit,Ze=h.onToggleOpen,Ke=h.onInputKeyDown,Ye=h.domRef;p.useImperativeHandle(O,function(){return{focus:function(){B.current.focus()},blur:function(){B.current.blur()}}});var yt=f(0),pe=(0,v.Z)(yt,2),Ce=pe[0],Be=pe[1],bt=function(qe){var Nt=qe.which;(Nt===ve.Z.UP||Nt===ve.Z.DOWN)&&qe.preventDefault(),Ke&&Ke(qe),Nt===ve.Z.ENTER&&ge==="tags"&&!ye.current&&!ie&&(Xe==null||Xe(qe.target.value)),Me(Nt)&&Ze(!0)},ct=function(){Be(!0)},at=(0,p.useRef)(null),Jt=function(qe){ce(qe,!0,ye.current)!==!1&&Ze(!0)},It=function(){ye.current=!0},Ft=function(qe){ye.current=!1,ge!=="combobox"&&Jt(qe.target.value)},Gt=function(qe){var Nt=qe.target.value;if(je&&at.current&&/[\r\n]/.test(at.current)){var Ot=at.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Nt=Nt.replace(Ot,at.current)}at.current=null,Jt(Nt)},Rt=function(qe){var Nt=qe.clipboardData,Ot=Nt.getData("text");at.current=Ot},Yt=function(qe){var Nt=qe.target;if(Nt!==B.current){var Ot=document.body.style.msTouchAction!==void 0;Ot?setTimeout(function(){B.current.focus()}):B.current.focus()}},ln=function(qe){var Nt=Ce();qe.target!==B.current&&!Nt&&ge!=="combobox"&&qe.preventDefault(),(ge!=="combobox"&&(!$e||!Nt)||!ie)&&(ie&&N!==!1&&ce("",!0,!1),Ze())},qt={inputRef:B,onInputKeyDown:bt,onInputMouseDown:ct,onInputChange:Gt,onInputPaste:Rt,onInputCompositionStart:It,onInputCompositionEnd:Ft},an=ge==="multiple"||ge==="tags"?p.createElement(_e,(0,x.Z)({},h,qt)):p.createElement(Te,(0,x.Z)({},h,qt));return p.createElement("div",{ref:Ye,className:"".concat(ee,"-selector"),onClick:Yt,onMouseDown:ln},an)},Dt=p.forwardRef(wt);Dt.displayName="Selector";var dt=Dt,rt=c(35593),Mt=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],st=function(h){var O=h===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:O,adjustY:1},htmlRegion:"scroll"}}},Ht=function(h,O){var B=h.prefixCls,ye=h.disabled,ee=h.visible,ie=h.children,ge=h.popupElement,$e=h.animation,je=h.transitionName,N=h.dropdownStyle,ce=h.dropdownClassName,Xe=h.direction,Ze=Xe===void 0?"ltr":Xe,Ke=h.placement,Ye=h.builtinPlacements,yt=h.dropdownMatchSelectWidth,pe=h.dropdownRender,Ce=h.dropdownAlign,Be=h.getPopupContainer,bt=h.empty,ct=h.getTriggerDOMNode,at=h.onPopupVisibleChange,Jt=h.onPopupMouseEnter,It=(0,P.Z)(h,Mt),Ft="".concat(B,"-dropdown"),Gt=ge;pe&&(Gt=pe(ge));var Rt=p.useMemo(function(){return Ye||st(yt)},[Ye,yt]),Yt=$e?"".concat(Ft,"-").concat($e):je,ln=typeof yt=="number",qt=p.useMemo(function(){return ln?null:yt===!1?"minWidth":"width"},[yt,ln]),an=N;ln&&(an=(0,X.Z)((0,X.Z)({},an),{},{width:yt}));var pt=p.useRef(null);return p.useImperativeHandle(O,function(){return{getPopupElement:function(){return pt.current}}}),p.createElement(rt.Z,(0,x.Z)({},It,{showAction:at?["click"]:[],hideAction:at?["click"]:[],popupPlacement:Ke||(Ze==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Rt,prefixCls:Ft,popupTransitionName:Yt,popup:p.createElement("div",{ref:pt,onMouseEnter:Jt},Gt),stretch:qt,popupAlign:Ce,popupVisible:ee,getPopupContainer:Be,popupClassName:D()(ce,(0,S.Z)({},"".concat(Ft,"-empty"),bt)),popupStyle:an,getTriggerDOMNode:ct,onPopupVisibleChange:at}),ie)},Q=p.forwardRef(Ht);Q.displayName="SelectTrigger";var M=Q,F=c(34589);function w(d,h){var O=d.key,B;return"value"in d&&(B=d.value),O!=null?O:B!==void 0?B:"rc-index-key-".concat(h)}function _(d,h){var O=d||{},B=O.label,ye=O.value,ee=O.options,ie=O.groupLabel,ge=B||(h?"children":"label");return{label:ge,value:ye||"value",options:ee||"options",groupLabel:ie||ge}}function ne(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},O=h.fieldNames,B=h.childrenAsData,ye=[],ee=_(O,!1),ie=ee.label,ge=ee.value,$e=ee.options,je=ee.groupLabel;function N(ce,Xe){ce.forEach(function(Ze){if(Xe||!($e in Ze)){var Ke=Ze[ge];ye.push({key:w(Ze,ye.length),groupOption:Xe,data:Ze,label:Ze[ie],value:Ke})}else{var Ye=Ze[je];Ye===void 0&&B&&(Ye=Ze.label),ye.push({key:w(Ze,ye.length),group:!0,data:Ze,label:Ye}),N(Ze[$e],!0)}})}return N(d,!1),ye}function ae(d){var h=(0,X.Z)({},d);return"props"in h||Object.defineProperty(h,"props",{get:function(){return(0,se.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),h}}),h}function le(d,h){if(!h||!h.length)return null;var O=!1;function B(ee,ie){var ge=(0,F.Z)(ie),$e=ge[0],je=ge.slice(1);if(!$e)return[ee];var N=ee.split($e);return O=O||N.length>1,N.reduce(function(ce,Xe){return[].concat((0,W.Z)(ce),(0,W.Z)(B(Xe,je)))},[]).filter(function(ce){return ce})}var ye=B(d,h);return O?ye:null}var de=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Ie=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ee(d){return d==="tags"||d==="multiple"}var we=p.forwardRef(function(d,h){var O,B,ye=d.id,ee=d.prefixCls,ie=d.className,ge=d.showSearch,$e=d.tagRender,je=d.direction,N=d.omitDomProps,ce=d.displayValues,Xe=d.onDisplayValuesChange,Ze=d.emptyOptions,Ke=d.notFoundContent,Ye=Ke===void 0?"Not Found":Ke,yt=d.onClear,pe=d.mode,Ce=d.disabled,Be=d.loading,bt=d.getInputElement,ct=d.getRawInputElement,at=d.open,Jt=d.defaultOpen,It=d.onDropdownVisibleChange,Ft=d.activeValue,Gt=d.onActiveValueChange,Rt=d.activeDescendantId,Yt=d.searchValue,ln=d.autoClearSearchValue,qt=d.onSearch,an=d.onSearchSplit,pt=d.tokenSeparators,qe=d.allowClear,Nt=d.suffixIcon,Ot=d.clearIcon,xn=d.OptionList,Kt=d.animation,en=d.transitionName,hn=d.dropdownStyle,Pt=d.dropdownClassName,Zn=d.dropdownMatchSelectWidth,jn=d.dropdownRender,Tt=d.dropdownAlign,St=d.placement,Et=d.builtinPlacements,rn=d.getPopupContainer,sn=d.showAction,Qt=sn===void 0?[]:sn,zt=d.onFocus,gn=d.onBlur,Rn=d.onKeyUp,Ln=d.onKeyDown,Mn=d.onMouseDown,An=(0,P.Z)(d,de),Ue=Ee(pe),nt=(ge!==void 0?ge:Ue)||pe==="combobox",ht=(0,X.Z)({},An);Ie.forEach(function(Cn){delete ht[Cn]}),N==null||N.forEach(function(Cn){delete ht[Cn]});var pn=p.useState(!1),Dn=(0,v.Z)(pn,2),Gn=Dn[0],Hn=Dn[1];p.useEffect(function(){Hn((0,j.Z)())},[]);var Kn=p.useRef(null),_n=p.useRef(null),Fn=p.useRef(null),kn=p.useRef(null),Wn=p.useRef(null),Xn=C(),xr=(0,v.Z)(Xn,3),Mr=xr[0],vr=xr[1],Hr=xr[2];p.useImperativeHandle(h,function(){var Cn,un;return{focus:(Cn=kn.current)===null||Cn===void 0?void 0:Cn.focus,blur:(un=kn.current)===null||un===void 0?void 0:un.blur,scrollTo:function(br){var Un;return(Un=Wn.current)===null||Un===void 0?void 0:Un.scrollTo(br)}}});var rr=p.useMemo(function(){var Cn;if(pe!=="combobox")return Yt;var un=(Cn=ce[0])===null||Cn===void 0?void 0:Cn.value;return typeof un=="string"||typeof un=="number"?String(un):""},[Yt,pe,ce]),gr=pe==="combobox"&&typeof bt=="function"&&bt()||null,pr=typeof ct=="function"&&ct(),ii=(0,We.x1)(_n,pr==null||(O=pr.props)===null||O===void 0?void 0:O.ref),qr=p.useState(!1),Ur=(0,v.Z)(qr,2),jr=Ur[0],ei=Ur[1];(0,me.Z)(function(){ei(!0)},[]);var ti=(0,K.Z)(!1,{defaultValue:Jt,value:at}),$r=(0,v.Z)(ti,2),Ir=$r[0],Xr=$r[1],xt=jr?Ir:!1,Vt=!Ye&&Ze;(Ce||Vt&&xt&&pe==="combobox")&&(xt=!1);var Ct=Vt?!1:xt,mt=p.useCallback(function(Cn){var un=Cn!==void 0?Cn:!xt;Ce||(Xr(un),xt!==un&&(It==null||It(un)))},[Ce,xt,Xr,It]),Sn=p.useMemo(function(){return(pt||[]).some(function(Cn){return[`
`,`\r
`].includes(Cn)})},[pt]),En=function(un,sr,br){var Un=!0,wr=un;Gt==null||Gt(null);var zr=br?null:le(un,pt);return pe!=="combobox"&&zr&&(wr="",an==null||an(zr),mt(!1),Un=!1),qt&&rr!==wr&&qt(wr,{source:sr?"typing":"effect"}),Un},er=function(un){!un||!un.trim()||qt(un,{source:"submit"})};p.useEffect(function(){!xt&&!Ue&&pe!=="combobox"&&En("",!1,!1)},[xt]),p.useEffect(function(){Ir&&Ce&&Xr(!1),Ce&&vr(!1)},[Ce]);var lr=f(),mr=(0,v.Z)(lr,2),Yn=mr[0],yr=mr[1],Yr=function(un){var sr=Yn(),br=un.which;if(br===ve.Z.ENTER&&(pe!=="combobox"&&un.preventDefault(),xt||mt(!0)),yr(!!rr),br===ve.Z.BACKSPACE&&!sr&&Ue&&!rr&&ce.length){for(var Un=(0,W.Z)(ce),wr=null,zr=Un.length-1;zr>=0;zr-=1){var ai=Un[zr];if(!ai.disabled){Un.splice(zr,1),wr=ai;break}}wr&&Xe(Un,{type:"remove",values:[wr]})}for(var Kr=arguments.length,li=new Array(Kr>1?Kr-1:0),Gr=1;Gr<Kr;Gr++)li[Gr-1]=arguments[Gr];if(xt&&Wn.current){var Zr;(Zr=Wn.current).onKeyDown.apply(Zr,[un].concat(li))}Ln==null||Ln.apply(void 0,[un].concat(li))},oi=function(un){for(var sr=arguments.length,br=new Array(sr>1?sr-1:0),Un=1;Un<sr;Un++)br[Un-1]=arguments[Un];if(xt&&Wn.current){var wr;(wr=Wn.current).onKeyUp.apply(wr,[un].concat(br))}Rn==null||Rn.apply(void 0,[un].concat(br))},ci=function(un){var sr=ce.filter(function(br){return br!==un});Xe(sr,{type:"remove",values:[un]})},Fr=p.useRef(!1),ft=function(){vr(!0),Ce||(zt&&!Fr.current&&zt.apply(void 0,arguments),Qt.includes("focus")&&mt(!0)),Fr.current=!0},Xt=function(){vr(!1,function(){Fr.current=!1,mt(!1)}),!Ce&&(rr&&(pe==="tags"?qt(rr,{source:"submit"}):pe==="multiple"&&qt("",{source:"blur"})),gn&&gn.apply(void 0,arguments))},In=[];p.useEffect(function(){return function(){In.forEach(function(Cn){return clearTimeout(Cn)}),In.splice(0,In.length)}},[]);var Nn=function(un){var sr,br=un.target,Un=(sr=Fn.current)===null||sr===void 0?void 0:sr.getPopupElement();if(Un&&Un.contains(br)){var wr=setTimeout(function(){var li=In.indexOf(wr);if(li!==-1&&In.splice(li,1),Hr(),!Gn&&!Un.contains(document.activeElement)){var Gr;(Gr=kn.current)===null||Gr===void 0||Gr.focus()}});In.push(wr)}for(var zr=arguments.length,ai=new Array(zr>1?zr-1:0),Kr=1;Kr<zr;Kr++)ai[Kr-1]=arguments[Kr];Mn==null||Mn.apply(void 0,[un].concat(ai))},zn=p.useState({}),ni=(0,v.Z)(zn,2),fi=ni[1];function Rr(){fi({})}var Lr;pr&&(Lr=function(un){mt(un)}),b(function(){var Cn;return[Kn.current,(Cn=Fn.current)===null||Cn===void 0?void 0:Cn.getPopupElement()]},Ct,mt,!!pr);var Ui=p.useMemo(function(){return(0,X.Z)((0,X.Z)({},d),{},{notFoundContent:Ye,open:xt,triggerOpen:Ct,id:ye,showSearch:nt,multiple:Ue,toggleOpen:mt})},[d,Ye,Ct,xt,ye,nt,Ue,mt]),So=!!Nt||Be,Vi;So&&(Vi=p.createElement(Pe,{className:D()("".concat(ee,"-arrow"),(0,S.Z)({},"".concat(ee,"-arrow-loading"),Be)),customizeIcon:Nt,customizeIconProps:{loading:Be,searchValue:rr,open:xt,focused:Mr,showSearch:nt}}));var jo=function(){var un;yt==null||yt(),(un=kn.current)===null||un===void 0||un.focus(),Xe([],{type:"clear",values:ce}),En("",!1,!1)},Gi=be(ee,jo,ce,qe,Ot,Ce,rr,pe),Xi=Gi.allowClear,di=Gi.clearIcon,Vr=p.createElement(xn,{ref:Wn}),Co=D()(ee,ie,(B={},(0,S.Z)(B,"".concat(ee,"-focused"),Mr),(0,S.Z)(B,"".concat(ee,"-multiple"),Ue),(0,S.Z)(B,"".concat(ee,"-single"),!Ue),(0,S.Z)(B,"".concat(ee,"-allow-clear"),qe),(0,S.Z)(B,"".concat(ee,"-show-arrow"),So),(0,S.Z)(B,"".concat(ee,"-disabled"),Ce),(0,S.Z)(B,"".concat(ee,"-loading"),Be),(0,S.Z)(B,"".concat(ee,"-open"),xt),(0,S.Z)(B,"".concat(ee,"-customize-input"),gr),(0,S.Z)(B,"".concat(ee,"-show-search"),nt),B)),Yi=p.createElement(M,{ref:Fn,disabled:Ce,prefixCls:ee,visible:Ct,popupElement:Vr,animation:Kt,transitionName:en,dropdownStyle:hn,dropdownClassName:Pt,direction:je,dropdownMatchSelectWidth:Zn,dropdownRender:jn,dropdownAlign:Tt,placement:St,builtinPlacements:Et,getPopupContainer:rn,empty:Ze,getTriggerDOMNode:function(){return _n.current},onPopupVisibleChange:Lr,onPopupMouseEnter:Rr},pr?p.cloneElement(pr,{ref:ii}):p.createElement(dt,(0,x.Z)({},d,{domRef:_n,prefixCls:ee,inputElement:gr,ref:kn,id:ye,showSearch:nt,autoClearSearchValue:ln,mode:pe,activeDescendantId:Rt,tagRender:$e,values:ce,open:xt,onToggleOpen:mt,activeValue:Ft,searchValue:rr,onSearch:En,onSearchSubmit:er,onRemove:ci,tokenWithEnter:Sn}))),Qi;return pr?Qi=Yi:Qi=p.createElement("div",(0,x.Z)({className:Co},ht,{ref:Kn,onMouseDown:Nn,onKeyDown:Yr,onKeyUp:oi,onFocus:ft,onBlur:Xt}),Mr&&!xt&&p.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ce.map(function(Cn){var un=Cn.label,sr=Cn.value;return["number","string"].includes((0,I.Z)(un))?un:sr}).join(", "))),Yi,Vi,Xi&&di),p.createElement(te.Provider,{value:Ui},Qi)}),Ne=we,Re=function(d,h){var O=p.useRef({values:new Map,options:new Map}),B=p.useMemo(function(){var ee=O.current,ie=ee.values,ge=ee.options,$e=d.map(function(ce){if(ce.label===void 0){var Xe;return(0,X.Z)((0,X.Z)({},ce),{},{label:(Xe=ie.get(ce.value))===null||Xe===void 0?void 0:Xe.label})}return ce}),je=new Map,N=new Map;return $e.forEach(function(ce){je.set(ce.value,ce),N.set(ce.value,h.get(ce.value)||ge.get(ce.value))}),O.current.values=je,O.current.options=N,$e},[d,h]),ye=p.useCallback(function(ee){return h.get(ee)||O.current.options.get(ee)},[h]);return[B,ye]};function Fe(d,h){return R(d).join("").toUpperCase().includes(h)}var U=function(d,h,O,B,ye){return p.useMemo(function(){if(!O||B===!1)return d;var ee=h.options,ie=h.label,ge=h.value,$e=[],je=typeof B=="function",N=O.toUpperCase(),ce=je?B:function(Ze,Ke){return ye?Fe(Ke[ye],N):Ke[ee]?Fe(Ke[ie!=="children"?ie:"label"],N):Fe(Ke[ge],N)},Xe=je?function(Ze){return ae(Ze)}:function(Ze){return Ze};return d.forEach(function(Ze){if(Ze[ee]){var Ke=ce(O,Xe(Ze));if(Ke)$e.push(Ze);else{var Ye=Ze[ee].filter(function(yt){return ce(O,Xe(yt))});Ye.length&&$e.push((0,X.Z)((0,X.Z)({},Ze),{},(0,S.Z)({},ee,Ye)))}return}ce(O,Xe(Ze))&&$e.push(Ze)}),$e},[d,B,ye,O,h])},Ge=c(17115),Qe=c(11592),Ae=["children","value"],Je=["children"];function it(d){var h=d,O=h.key,B=h.props,ye=B.children,ee=B.value,ie=(0,P.Z)(B,Ae);return(0,X.Z)({key:O,value:ee!==void 0?ee:O,children:ye},ie)}function ke(d){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Qe.Z)(d).map(function(O,B){if(!p.isValidElement(O)||!O.type)return null;var ye=O,ee=ye.type.isSelectOptGroup,ie=ye.key,ge=ye.props,$e=ge.children,je=(0,P.Z)(ge,Je);return h||!ee?it(O):(0,X.Z)((0,X.Z)({key:"__RC_SELECT_GRP__".concat(ie===null?B:ie,"__"),label:ie},je),{},{options:ke($e)})}).filter(function(O){return O})}function Zt(d,h,O,B,ye){return p.useMemo(function(){var ee=d,ie=!d;ie&&(ee=ke(h));var ge=new Map,$e=new Map,je=function(Xe,Ze,Ke){Ke&&typeof Ke=="string"&&Xe.set(Ze[Ke],Ze)};function N(ce){for(var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=0;Ze<ce.length;Ze+=1){var Ke=ce[Ze];!Ke[O.options]||Xe?(ge.set(Ke[O.value],Ke),je($e,Ke,O.label),je($e,Ke,B),je($e,Ke,ye)):N(Ke[O.options],!0)}}return N(ee),{options:ee,valueOptions:ge,labelOptions:$e}},[d,h,O,B,ye])}function vt(d){var h=p.useRef();h.current=d;var O=p.useCallback(function(){return h.current.apply(h,arguments)},[]);return O}var Wt=function(){return null};Wt.isSelectOptGroup=!0;var jt=Wt,mn=function(){return null};mn.isSelectOption=!0;var _t=mn,cn=c(80547),yn=c(2738),On=c(4409),nn=p.createContext(null),$t=nn;function on(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var kt=["disabled","title","children","style","className"];function Bt(d){return typeof d=="string"||typeof d=="number"}var fn=function(h,O){var B=J(),ye=B.prefixCls,ee=B.id,ie=B.open,ge=B.multiple,$e=B.mode,je=B.searchValue,N=B.toggleOpen,ce=B.notFoundContent,Xe=B.onPopupScroll,Ze=p.useContext($t),Ke=Ze.flattenOptions,Ye=Ze.onActiveValue,yt=Ze.defaultActiveFirstOption,pe=Ze.onSelect,Ce=Ze.menuItemSelectedIcon,Be=Ze.rawValues,bt=Ze.fieldNames,ct=Ze.virtual,at=Ze.direction,Jt=Ze.listHeight,It=Ze.listItemHeight,Ft="".concat(ye,"-item"),Gt=(0,cn.Z)(function(){return Ke},[ie,Ke],function(Tt,St){return St[0]&&Tt[1]!==St[1]}),Rt=p.useRef(null),Yt=function(St){St.preventDefault()},ln=function(St){Rt.current&&Rt.current.scrollTo(typeof St=="number"?{index:St}:St)},qt=function(St){for(var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,rn=Gt.length,sn=0;sn<rn;sn+=1){var Qt=(St+sn*Et+rn)%rn,zt=Gt[Qt],gn=zt.group,Rn=zt.data;if(!gn&&!Rn.disabled)return Qt}return-1},an=p.useState(function(){return qt(0)}),pt=(0,v.Z)(an,2),qe=pt[0],Nt=pt[1],Ot=function(St){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Nt(St);var rn={source:Et?"keyboard":"mouse"},sn=Gt[St];if(!sn){Ye(null,-1,rn);return}Ye(sn.value,St,rn)};(0,p.useEffect)(function(){Ot(yt!==!1?qt(0):-1)},[Gt.length,je]);var xn=p.useCallback(function(Tt){return Be.has(Tt)&&$e!=="combobox"},[$e,(0,W.Z)(Be).toString(),Be.size]);(0,p.useEffect)(function(){var Tt=setTimeout(function(){if(!ge&&ie&&Be.size===1){var Et=Array.from(Be)[0],rn=Gt.findIndex(function(sn){var Qt=sn.data;return Qt.value===Et});rn!==-1&&(Ot(rn),ln(rn))}});if(ie){var St;(St=Rt.current)===null||St===void 0||St.scrollTo(void 0)}return function(){return clearTimeout(Tt)}},[ie,je,Ke.length]);var Kt=function(St){St!==void 0&&pe(St,{selected:!Be.has(St)}),ge||N(!1)};if(p.useImperativeHandle(O,function(){return{onKeyDown:function(St){var Et=St.which,rn=St.ctrlKey;switch(Et){case ve.Z.N:case ve.Z.P:case ve.Z.UP:case ve.Z.DOWN:{var sn=0;if(Et===ve.Z.UP?sn=-1:Et===ve.Z.DOWN?sn=1:on()&&rn&&(Et===ve.Z.N?sn=1:Et===ve.Z.P&&(sn=-1)),sn!==0){var Qt=qt(qe+sn,sn);ln(Qt),Ot(Qt,!0)}break}case ve.Z.ENTER:{var zt=Gt[qe];zt&&!zt.data.disabled?Kt(zt.value):Kt(void 0),ie&&St.preventDefault();break}case ve.Z.ESC:N(!1),ie&&St.stopPropagation()}},onKeyUp:function(){},scrollTo:function(St){ln(St)}}}),Gt.length===0)return p.createElement("div",{role:"listbox",id:"".concat(ee,"_list"),className:"".concat(Ft,"-empty"),onMouseDown:Yt},ce);var en=Object.keys(bt).map(function(Tt){return bt[Tt]}),hn=function(St){return St.label};function Pt(Tt,St){var Et=Tt.group;return{role:Et?"presentation":"option",id:"".concat(ee,"_list_").concat(St)}}var Zn=function(St){var Et=Gt[St];if(!Et)return null;var rn=Et.data||{},sn=rn.value,Qt=Et.group,zt=(0,T.Z)(rn,!0),gn=hn(Et);return Et?p.createElement("div",(0,x.Z)({"aria-label":typeof gn=="string"&&!Qt?gn:null},zt,{key:St},Pt(Et,St),{"aria-selected":xn(sn)}),sn):null},jn={role:"listbox",id:"".concat(ee,"_list")};return p.createElement(p.Fragment,null,ct&&p.createElement("div",(0,x.Z)({},jn,{style:{height:0,width:0,overflow:"hidden"}}),Zn(qe-1),Zn(qe),Zn(qe+1)),p.createElement(On.Z,{itemKey:"key",ref:Rt,data:Gt,height:Jt,itemHeight:It,fullHeight:!1,onMouseDown:Yt,onScroll:Xe,virtual:ct,direction:at,innerProps:ct?null:jn},function(Tt,St){var Et,rn=Tt.group,sn=Tt.groupOption,Qt=Tt.data,zt=Tt.label,gn=Tt.value,Rn=Qt.key;if(rn){var Ln,Mn=(Ln=Qt.title)!==null&&Ln!==void 0?Ln:Bt(zt)?zt.toString():void 0;return p.createElement("div",{className:D()(Ft,"".concat(Ft,"-group")),title:Mn},zt!==void 0?zt:Rn)}var An=Qt.disabled,Ue=Qt.title,nt=Qt.children,ht=Qt.style,pn=Qt.className,Dn=(0,P.Z)(Qt,kt),Gn=(0,yn.Z)(Dn,en),Hn=xn(gn),Kn="".concat(Ft,"-option"),_n=D()(Ft,Kn,pn,(Et={},(0,S.Z)(Et,"".concat(Kn,"-grouped"),sn),(0,S.Z)(Et,"".concat(Kn,"-active"),qe===St&&!An),(0,S.Z)(Et,"".concat(Kn,"-disabled"),An),(0,S.Z)(Et,"".concat(Kn,"-selected"),Hn),Et)),Fn=hn(Tt),kn=!Ce||typeof Ce=="function"||Hn,Wn=typeof Fn=="number"?Fn:Fn||gn,Xn=Bt(Wn)?Wn.toString():void 0;return Ue!==void 0&&(Xn=Ue),p.createElement("div",(0,x.Z)({},(0,T.Z)(Gn),ct?{}:Pt(Tt,St),{"aria-selected":Hn,className:_n,title:Xn,onMouseMove:function(){qe===St||An||Ot(St)},onClick:function(){An||Kt(gn)},style:ht}),p.createElement("div",{className:"".concat(Kn,"-content")},Wn),p.isValidElement(Ce)||Hn,kn&&p.createElement(Pe,{className:"".concat(Ft,"-option-state"),customizeIcon:Ce,customizeIconProps:{isSelected:Hn}},Hn?"\u2713":null))}))},Ut=p.forwardRef(fn);Ut.displayName="OptionList";var bn=Ut;function dn(d){var h=d.mode,O=d.options,B=d.children,ye=d.backfill,ee=d.allowClear,ie=d.placeholder,ge=d.getInputElement,$e=d.showSearch,je=d.onSearch,N=d.defaultOpen,ce=d.autoFocus,Xe=d.labelInValue,Ze=d.value,Ke=d.inputValue,Ye=d.optionLabelProp,yt=isMultiple(h),pe=$e!==void 0?$e:yt||h==="combobox",Ce=O||convertChildrenToData(B);if(warning(h!=="tags"||Ce.every(function(at){return!at.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),h==="tags"||h==="combobox"){var Be=Ce.some(function(at){return at.options?at.options.some(function(Jt){return typeof("value"in Jt?Jt.value:Jt.key)=="number"}):typeof("value"in at?at.value:at.key)=="number"});warning(!Be,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(h!=="combobox"||!Ye,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(h==="combobox"||!ye,"`backfill` only works with `combobox` mode."),warning(h==="combobox"||!ge,"`getInputElement` only work with `combobox` mode."),noteOnce(h!=="combobox"||!ge||!ee||!ie,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),je&&!pe&&h!=="combobox"&&h!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!N||ce,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ze!=null){var bt=toArray(Ze);warning(!Xe||bt.every(function(at){return _typeof(at)==="object"&&("key"in at||"value"in at)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!yt||Array.isArray(Ze),"`value` should be array when `mode` is `multiple` or `tags`")}if(B){var ct=null;toNodeArray(B).some(function(at){if(!React.isValidElement(at)||!at.type)return!1;var Jt=at,It=Jt.type;if(It.isSelectOption)return!1;if(It.isSelectOptGroup){var Ft=toNodeArray(at.props.children).every(function(Gt){return!React.isValidElement(Gt)||!at.type||Gt.type.isSelectOption?!0:(ct=Gt.type,!1)});return!Ft}return ct=It,!0}),ct&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ct.displayName||ct.name||ct,"`.")),warning(Ke===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Tn(d,h){if(d){var O=function B(ye){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ie=0;ie<ye.length;ie++){var ge=ye[ie];if(ge[h==null?void 0:h.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!ee&&Array.isArray(ge[h==null?void 0:h.options])&&B(ge[h==null?void 0:h.options],!0))break}};O(d)}}var nr=null,Vn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],wn=["inputValue"];function ut(d){return!d||(0,I.Z)(d)!=="object"}var ot=p.forwardRef(function(d,h){var O=d.id,B=d.mode,ye=d.prefixCls,ee=ye===void 0?"rc-select":ye,ie=d.backfill,ge=d.fieldNames,$e=d.inputValue,je=d.searchValue,N=d.onSearch,ce=d.autoClearSearchValue,Xe=ce===void 0?!0:ce,Ze=d.onSelect,Ke=d.onDeselect,Ye=d.dropdownMatchSelectWidth,yt=Ye===void 0?!0:Ye,pe=d.filterOption,Ce=d.filterSort,Be=d.optionFilterProp,bt=d.optionLabelProp,ct=d.options,at=d.children,Jt=d.defaultActiveFirstOption,It=d.menuItemSelectedIcon,Ft=d.virtual,Gt=d.direction,Rt=d.listHeight,Yt=Rt===void 0?200:Rt,ln=d.listItemHeight,qt=ln===void 0?20:ln,an=d.value,pt=d.defaultValue,qe=d.labelInValue,Nt=d.onChange,Ot=(0,P.Z)(d,Vn),xn=(0,Ge.ZP)(O),Kt=Ee(B),en=!!(!ct&&at),hn=p.useMemo(function(){return pe===void 0&&B==="combobox"?!1:pe},[pe,B]),Pt=p.useMemo(function(){return _(ge,en)},[JSON.stringify(ge),en]),Zn=(0,K.Z)("",{value:je!==void 0?je:$e,postState:function(Vt){return Vt||""}}),jn=(0,v.Z)(Zn,2),Tt=jn[0],St=jn[1],Et=Zt(ct,at,Pt,Be,bt),rn=Et.valueOptions,sn=Et.labelOptions,Qt=Et.options,zt=p.useCallback(function(xt){var Vt=R(xt);return Vt.map(function(Ct){var mt,Sn,En,er,lr;if(ut(Ct))mt=Ct;else{var mr;En=Ct.key,Sn=Ct.label,mt=(mr=Ct.value)!==null&&mr!==void 0?mr:En}var Yn=rn.get(mt);if(Yn){var yr;if(Sn===void 0&&(Sn=Yn==null?void 0:Yn[bt||Pt.label]),En===void 0&&(En=(yr=Yn==null?void 0:Yn.key)!==null&&yr!==void 0?yr:mt),er=Yn==null?void 0:Yn.disabled,lr=Yn==null?void 0:Yn.title,0)var Yr}return{label:Sn,value:mt,key:En,disabled:er,title:lr}})},[Pt,bt,rn]),gn=(0,K.Z)(pt,{value:an}),Rn=(0,v.Z)(gn,2),Ln=Rn[0],Mn=Rn[1],An=p.useMemo(function(){var xt,Vt=zt(Ln);return B==="combobox"&&Y((xt=Vt[0])===null||xt===void 0?void 0:xt.value)?[]:Vt},[Ln,zt,B]),Ue=Re(An,rn),nt=(0,v.Z)(Ue,2),ht=nt[0],pn=nt[1],Dn=p.useMemo(function(){if(!B&&ht.length===1){var xt=ht[0];if(xt.value===null&&(xt.label===null||xt.label===void 0))return[]}return ht.map(function(Vt){var Ct;return(0,X.Z)((0,X.Z)({},Vt),{},{label:(Ct=Vt.label)!==null&&Ct!==void 0?Ct:Vt.value})})},[B,ht]),Gn=p.useMemo(function(){return new Set(ht.map(function(xt){return xt.value}))},[ht]);p.useEffect(function(){if(B==="combobox"){var xt,Vt=(xt=ht[0])===null||xt===void 0?void 0:xt.value;St(Z(Vt)?String(Vt):"")}},[ht]);var Hn=vt(function(xt,Vt){var Ct,mt=Vt!=null?Vt:xt;return Ct={},(0,S.Z)(Ct,Pt.value,xt),(0,S.Z)(Ct,Pt.label,mt),Ct}),Kn=p.useMemo(function(){if(B!=="tags")return Qt;var xt=(0,W.Z)(Qt),Vt=function(mt){return rn.has(mt)};return(0,W.Z)(ht).sort(function(Ct,mt){return Ct.value<mt.value?-1:1}).forEach(function(Ct){var mt=Ct.value;Vt(mt)||xt.push(Hn(mt,Ct.label))}),xt},[Hn,Qt,rn,ht,B]),_n=U(Kn,Pt,Tt,hn,Be),Fn=p.useMemo(function(){return B!=="tags"||!Tt||_n.some(function(xt){return xt[Be||"value"]===Tt})||_n.some(function(xt){return xt[Pt.value]===Tt})?_n:[Hn(Tt)].concat((0,W.Z)(_n))},[Hn,Be,B,_n,Tt,Pt]),kn=p.useMemo(function(){return Ce?(0,W.Z)(Fn).sort(function(xt,Vt){return Ce(xt,Vt)}):Fn},[Fn,Ce]),Wn=p.useMemo(function(){return ne(kn,{fieldNames:Pt,childrenAsData:en})},[kn,Pt,en]),Xn=function(Vt){var Ct=zt(Vt);if(Mn(Ct),Nt&&(Ct.length!==ht.length||Ct.some(function(En,er){var lr;return((lr=ht[er])===null||lr===void 0?void 0:lr.value)!==(En==null?void 0:En.value)}))){var mt=qe?Ct:Ct.map(function(En){return En.value}),Sn=Ct.map(function(En){return ae(pn(En.value))});Nt(Kt?mt:mt[0],Kt?Sn:Sn[0])}},xr=p.useState(null),Mr=(0,v.Z)(xr,2),vr=Mr[0],Hr=Mr[1],rr=p.useState(0),gr=(0,v.Z)(rr,2),pr=gr[0],ii=gr[1],qr=Jt!==void 0?Jt:B!=="combobox",Ur=p.useCallback(function(xt,Vt){var Ct=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},mt=Ct.source,Sn=mt===void 0?"keyboard":mt;ii(Vt),ie&&B==="combobox"&&xt!==null&&Sn==="keyboard"&&Hr(String(xt))},[ie,B]),jr=function(Vt,Ct,mt){var Sn=function(){var Fr,ft=pn(Vt);return[qe?{label:ft==null?void 0:ft[Pt.label],value:Vt,key:(Fr=ft==null?void 0:ft.key)!==null&&Fr!==void 0?Fr:Vt}:Vt,ae(ft)]};if(Ct&&Ze){var En=Sn(),er=(0,v.Z)(En,2),lr=er[0],mr=er[1];Ze(lr,mr)}else if(!Ct&&Ke&&mt!=="clear"){var Yn=Sn(),yr=(0,v.Z)(Yn,2),Yr=yr[0],oi=yr[1];Ke(Yr,oi)}},ei=vt(function(xt,Vt){var Ct,mt=Kt?Vt.selected:!0;mt?Ct=Kt?[].concat((0,W.Z)(ht),[xt]):[xt]:Ct=ht.filter(function(Sn){return Sn.value!==xt}),Xn(Ct),jr(xt,mt),B==="combobox"?Hr(""):(!Ee||Xe)&&(St(""),Hr(""))}),ti=function(Vt,Ct){Xn(Vt);var mt=Ct.type,Sn=Ct.values;(mt==="remove"||mt==="clear")&&Sn.forEach(function(En){jr(En.value,!1,mt)})},$r=function(Vt,Ct){if(St(Vt),Hr(null),Ct.source==="submit"){var mt=(Vt||"").trim();if(mt){var Sn=Array.from(new Set([].concat((0,W.Z)(Gn),[mt])));Xn(Sn),jr(mt,!0),St("")}return}Ct.source!=="blur"&&(B==="combobox"&&Xn(Vt),N==null||N(Vt))},Ir=function(Vt){var Ct=Vt;B!=="tags"&&(Ct=Vt.map(function(Sn){var En=sn.get(Sn);return En==null?void 0:En.value}).filter(function(Sn){return Sn!==void 0}));var mt=Array.from(new Set([].concat((0,W.Z)(Gn),(0,W.Z)(Ct))));Xn(mt),mt.forEach(function(Sn){jr(Sn,!0)})},Xr=p.useMemo(function(){var xt=Ft!==!1&&yt!==!1;return(0,X.Z)((0,X.Z)({},Et),{},{flattenOptions:Wn,onActiveValue:Ur,defaultActiveFirstOption:qr,onSelect:ei,menuItemSelectedIcon:It,rawValues:Gn,fieldNames:Pt,virtual:xt,direction:Gt,listHeight:Yt,listItemHeight:qt,childrenAsData:en})},[Et,Wn,Ur,qr,ei,It,Gn,Pt,Ft,yt,Yt,qt,en]);return p.createElement($t.Provider,{value:Xr},p.createElement(Ne,(0,x.Z)({},Ot,{id:xn,prefixCls:ee,ref:h,omitDomProps:wn,mode:B,displayValues:Dn,onDisplayValuesChange:ti,direction:Gt,searchValue:Tt,onSearch:$r,autoClearSearchValue:Xe,onSearchSplit:Ir,dropdownMatchSelectWidth:yt,OptionList:bn,emptyOptions:!Wn.length,activeValue:vr,activeDescendantId:"".concat(xn,"_list_").concat(pr)})))}),m=ot;m.Option=_t,m.OptGroup=jt;var k=m,re=k},9296:function(tn,Le,c){"use strict";c.r(Le),c.d(Le,{ResizableTextArea:function(){return De},default:function(){return Y}});var x=c(92413),W=c(33708),S=c(400),X=c(39559),v=c(33606),P=c(37061),I=c(26407),K=c(92310),se=c.n(K),p=c(93681),xe=c(5643),D=c(18929),me=c(59301),j=c(29301),ve=c(34280),We=c(16089),Ve=`
min-height:0 !important;
max-height:none !important;
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
pointer-events: none !important;
`,Pe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],be={},te;function J(G){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=G.getAttribute("id")||G.getAttribute("data-reactid")||G.getAttribute("name");if(H&&be[V])return be[V];var fe=window.getComputedStyle(G),ue=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),ze=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),_e=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),Se=Pe.map(function(Me){return"".concat(Me,":").concat(fe.getPropertyValue(Me))}).join(";"),Te={sizingStyle:Se,paddingSize:ze,borderSize:_e,boxSizing:ue};return H&&V&&(be[V]=Te),Te}function C(G){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;te||(te=document.createElement("textarea"),te.setAttribute("tab-index","-1"),te.setAttribute("aria-hidden","true"),document.body.appendChild(te)),G.getAttribute("wrap")?te.setAttribute("wrap",G.getAttribute("wrap")):te.removeAttribute("wrap");var ue=J(G,H),ze=ue.paddingSize,_e=ue.borderSize,Se=ue.boxSizing,Te=ue.sizingStyle;te.setAttribute("style","".concat(Te,";").concat(Ve)),te.value=G.value||G.placeholder||"";var Me=void 0,wt=void 0,Dt,dt=te.scrollHeight;if(Se==="border-box"?dt+=_e:Se==="content-box"&&(dt-=ze),V!==null||fe!==null){te.value=" ";var rt=te.scrollHeight-ze;V!==null&&(Me=rt*V,Se==="border-box"&&(Me=Me+ze+_e),dt=Math.max(Me,dt)),fe!==null&&(wt=rt*fe,Se==="border-box"&&(wt=wt+ze+_e),Dt=dt>wt?"":"hidden",dt=Math.min(wt,dt))}var Mt={height:dt,overflowY:Dt,resize:"none"};return Me&&(Mt.minHeight=Me),wt&&(Mt.maxHeight=wt),Mt}var f=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],b=0,T=1,q=2,z=me.forwardRef(function(G,H){var V=G,fe=V.prefixCls,ue=V.onPressEnter,ze=V.defaultValue,_e=V.value,Se=V.autoSize,Te=V.onResize,Me=V.className,wt=V.style,Dt=V.disabled,dt=V.onChange,rt=V.onInternalAutoSize,Mt=(0,P.Z)(V,f),st=(0,D.Z)(ze,{value:_e,postState:function(jt){return jt!=null?jt:""}}),Ht=(0,v.Z)(st,2),Q=Ht[0],M=Ht[1],F=function(jt){M(jt.target.value),dt==null||dt(jt)},w=me.useRef();me.useImperativeHandle(H,function(){return{textArea:w.current}});var _=me.useMemo(function(){return Se&&(0,X.Z)(Se)==="object"?[Se.minRows,Se.maxRows]:[]},[Se]),ne=(0,v.Z)(_,2),ae=ne[0],le=ne[1],de=!!Se,Ie=function(){try{if(document.activeElement===w.current){var jt=w.current,mn=jt.selectionStart,_t=jt.selectionEnd,cn=jt.scrollTop;w.current.setSelectionRange(mn,_t),w.current.scrollTop=cn}}catch(yn){}},Ee=me.useState(q),we=(0,v.Z)(Ee,2),Ne=we[0],Re=we[1],Fe=me.useState(),U=(0,v.Z)(Fe,2),Ge=U[0],Qe=U[1],Ae=function(){Re(b)};(0,ve.Z)(function(){de&&Ae()},[_e,ae,le,de]),(0,ve.Z)(function(){if(Ne===b)Re(T);else if(Ne===T){var Wt=C(w.current,!1,ae,le);Re(q),Qe(Wt)}else Ie()},[Ne]);var Je=me.useRef(),it=function(){We.Z.cancel(Je.current)},ke=function(jt){Ne===q&&(Te==null||Te(jt),Se&&(it(),Je.current=(0,We.Z)(function(){Ae()})))};me.useEffect(function(){return it},[]);var Zt=de?Ge:null,vt=(0,W.Z)((0,W.Z)({},wt),Zt);return(Ne===b||Ne===T)&&(vt.overflowY="hidden",vt.overflowX="hidden"),me.createElement(j.Z,{onResize:ke,disabled:!(Se||Te)},me.createElement("textarea",(0,x.Z)({},Mt,{ref:w,style:vt,className:se()(fe,Me,(0,S.Z)({},"".concat(fe,"-disabled"),Dt)),disabled:Dt,value:Q,onChange:F})))}),De=z,oe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function R(G,H){return(0,I.Z)(G||"").slice(0,H).join("")}function E(G,H,V,fe){var ue=V;return G?ue=R(V,fe):(0,I.Z)(H||"").length<V.length&&(0,I.Z)(V||"").length>fe&&(ue=H),ue}var $=me.forwardRef(function(G,H){var V,fe=G.defaultValue,ue=G.value,ze=G.onFocus,_e=G.onBlur,Se=G.onChange,Te=G.allowClear,Me=G.maxLength,wt=G.onCompositionStart,Dt=G.onCompositionEnd,dt=G.suffix,rt=G.prefixCls,Mt=rt===void 0?"rc-textarea":rt,st=G.classes,Ht=G.showCount,Q=G.className,M=G.style,F=G.disabled,w=G.hidden,_=G.classNames,ne=G.styles,ae=G.onResize,le=(0,P.Z)(G,oe),de=(0,D.Z)(fe,{value:ue,defaultValue:fe}),Ie=(0,v.Z)(de,2),Ee=Ie[0],we=Ie[1],Ne=(0,me.useRef)(null),Re=me.useState(!1),Fe=(0,v.Z)(Re,2),U=Fe[0],Ge=Fe[1],Qe=me.useState(!1),Ae=(0,v.Z)(Qe,2),Je=Ae[0],it=Ae[1],ke=me.useRef(),Zt=me.useRef(0),vt=me.useState(null),Wt=(0,v.Z)(vt,2),jt=Wt[0],mn=Wt[1],_t=function(){var ut;(ut=Ne.current)===null||ut===void 0||ut.textArea.focus()};(0,me.useImperativeHandle)(H,function(){return{resizableTextArea:Ne.current,focus:_t,blur:function(){var ut;(ut=Ne.current)===null||ut===void 0||ut.textArea.blur()}}}),(0,me.useEffect)(function(){Ge(function(wn){return!F&&wn})},[F]);var cn=Number(Me)>0,yn=function(ut){it(!0),ke.current=Ee,Zt.current=ut.currentTarget.selectionStart,wt==null||wt(ut)},On=function(ut){it(!1);var ot=ut.currentTarget.value;if(cn){var m,k=Zt.current>=Me+1||Zt.current===((m=ke.current)===null||m===void 0?void 0:m.length);ot=E(k,ke.current,ot,Me)}ot!==Ee&&(we(ot),(0,xe.rJ)(ut.currentTarget,ut,Se,ot)),Dt==null||Dt(ut)},nn=function(ut){var ot=ut.target.value;if(!Je&&cn){var m=ut.target.selectionStart>=Me+1||ut.target.selectionStart===ot.length||!ut.target.selectionStart;ot=E(m,Ee,ot,Me)}we(ot),(0,xe.rJ)(ut.currentTarget,ut,Se,ot)},$t=function(ut){var ot=le.onPressEnter,m=le.onKeyDown;ut.key==="Enter"&&ot&&ot(ut),m==null||m(ut)},on=function(ut){Ge(!0),ze==null||ze(ut)},kt=function(ut){Ge(!1),_e==null||_e(ut)},Bt=function(ut){var ot;we(""),_t(),(0,xe.rJ)((ot=Ne.current)===null||ot===void 0?void 0:ot.textArea,ut,Se)},fn=(0,xe.D7)(Ee);!Je&&cn&&ue==null&&(fn=R(fn,Me));var Ut=dt,bn;if(Ht){var dn=(0,I.Z)(fn).length;(0,X.Z)(Ht)==="object"?bn=Ht.formatter({value:fn,count:dn,maxLength:Me}):bn="".concat(dn).concat(cn?" / ".concat(Me):""),Ut=me.createElement(me.Fragment,null,Ut,me.createElement("span",{className:se()("".concat(Mt,"-data-count"),_==null?void 0:_.count),style:ne==null?void 0:ne.count},bn))}var Tn=function(ut){var ot;ae==null||ae(ut),(ot=Ne.current)!==null&&ot!==void 0&&ot.textArea.style.height&&mn(!0)},nr=!le.autoSize&&!Ht&&!Te,Vn=me.createElement(p.BaseInput,{value:fn,allowClear:Te,handleReset:Bt,suffix:Ut,prefixCls:Mt,classes:{affixWrapper:se()(st==null?void 0:st.affixWrapper,(V={},(0,S.Z)(V,"".concat(Mt,"-show-count"),Ht),(0,S.Z)(V,"".concat(Mt,"-textarea-allow-clear"),Te),V))},disabled:F,focused:U,className:Q,style:(0,W.Z)((0,W.Z)({},M),jt&&!nr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof bn=="string"?bn:void 0}},hidden:w,inputElement:me.createElement(De,(0,x.Z)({},le,{onKeyDown:$t,onChange:nn,onFocus:on,onBlur:kt,onCompositionStart:yn,onCompositionEnd:On,className:_==null?void 0:_.textarea,style:(0,W.Z)((0,W.Z)({},ne==null?void 0:ne.textarea),{},{resize:M==null?void 0:M.resize}),disabled:F,prefixCls:Mt,onResize:Tn,ref:Ne}))});return Vn}),Z=$,Y=Z},55477:function(tn,Le,c){"use strict";c.d(Le,{G:function(){return me},Z:function(){return Ve}});var x=c(92413),W=c(33708),S=c(37061),X=c(35593),v=c(59301),P={shiftX:64,adjustY:1},I={adjustX:1,shiftY:!0},K=[0,0],se={left:{points:["cr","cl"],overflow:I,offset:[-4,0],targetOffset:K},right:{points:["cl","cr"],overflow:I,offset:[4,0],targetOffset:K},top:{points:["bc","tc"],overflow:P,offset:[0,-4],targetOffset:K},bottom:{points:["tc","bc"],overflow:P,offset:[0,4],targetOffset:K},topLeft:{points:["bl","tl"],overflow:P,offset:[0,-4],targetOffset:K},leftTop:{points:["tr","tl"],overflow:I,offset:[-4,0],targetOffset:K},topRight:{points:["br","tr"],overflow:P,offset:[0,-4],targetOffset:K},rightTop:{points:["tl","tr"],overflow:I,offset:[4,0],targetOffset:K},bottomRight:{points:["tr","br"],overflow:P,offset:[0,4],targetOffset:K},rightBottom:{points:["bl","br"],overflow:I,offset:[4,0],targetOffset:K},bottomLeft:{points:["tl","bl"],overflow:P,offset:[0,4],targetOffset:K},leftBottom:{points:["br","bl"],overflow:I,offset:[-4,0],targetOffset:K}},p=null,xe=c(92310),D=c.n(xe);function me(Pe){var be=Pe.children,te=Pe.prefixCls,J=Pe.id,C=Pe.overlayInnerStyle,f=Pe.className,b=Pe.style;return v.createElement("div",{className:D()("".concat(te,"-content"),f),style:b},v.createElement("div",{className:"".concat(te,"-inner"),id:J,role:"tooltip",style:C},typeof be=="function"?be():be))}var j=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],ve=function(be,te){var J=be.overlayClassName,C=be.trigger,f=C===void 0?["hover"]:C,b=be.mouseEnterDelay,T=b===void 0?0:b,q=be.mouseLeaveDelay,z=q===void 0?.1:q,De=be.overlayStyle,oe=be.prefixCls,R=oe===void 0?"rc-tooltip":oe,E=be.children,$=be.onVisibleChange,Z=be.afterVisibleChange,Y=be.transitionName,G=be.animation,H=be.motion,V=be.placement,fe=V===void 0?"right":V,ue=be.align,ze=ue===void 0?{}:ue,_e=be.destroyTooltipOnHide,Se=_e===void 0?!1:_e,Te=be.defaultVisible,Me=be.getTooltipContainer,wt=be.overlayInnerStyle,Dt=be.arrowContent,dt=be.overlay,rt=be.id,Mt=be.showArrow,st=Mt===void 0?!0:Mt,Ht=(0,S.Z)(be,j),Q=(0,v.useRef)(null);(0,v.useImperativeHandle)(te,function(){return Q.current});var M=(0,W.Z)({},Ht);"visible"in be&&(M.popupVisible=be.visible);var F=function(){return v.createElement(me,{key:"content",prefixCls:R,id:rt,overlayInnerStyle:wt},dt)};return v.createElement(X.Z,(0,x.Z)({popupClassName:J,prefixCls:R,popup:F,action:f,builtinPlacements:se,popupPlacement:fe,ref:Q,popupAlign:ze,getPopupContainer:Me,onPopupVisibleChange:$,afterPopupVisibleChange:Z,popupTransitionName:Y,popupAnimation:G,popupMotion:H,defaultPopupVisible:Te,autoDestroy:Se,mouseLeaveDelay:z,popupStyle:De,mouseEnterDelay:T,arrow:st},M),E)},We=(0,v.forwardRef)(ve),Ve=We},49658:function(tn,Le){"use strict";Le.Z=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var c=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(c==null?void 0:c.substr(0,4))}},4409:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return Ht}});var x=c(92413),W=c(39559),S=c(33708),X=c(400),v=c(33606),P=c(37061),I=c(92310),K=c.n(I),se=c(29301),p=c(70425),xe=c(34280),D=c(59301),me=c(4676),j=D.forwardRef(function(Q,M){var F=Q.height,w=Q.offsetY,_=Q.offsetX,ne=Q.children,ae=Q.prefixCls,le=Q.onInnerResize,de=Q.innerProps,Ie=Q.rtl,Ee=Q.extra,we={},Ne={display:"flex",flexDirection:"column"};return w!==void 0&&(we={height:F,position:"relative",overflow:"hidden"},Ne=(0,S.Z)((0,S.Z)({},Ne),{},(0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)({transform:"translateY(".concat(w,"px)")},Ie?"marginRight":"marginLeft",-_),"position","absolute"),"left",0),"right",0),"top",0))),D.createElement("div",{style:we},D.createElement(se.Z,{onResize:function(Fe){var U=Fe.offsetHeight;U&&le&&le()}},D.createElement("div",(0,x.Z)({style:Ne,className:K()((0,X.Z)({},"".concat(ae,"-holder-inner"),ae)),ref:M},de),ne,Ee)))});j.displayName="Filler";var ve=j;function We(Q){var M=Q.children,F=Q.setRef,w=D.useCallback(function(_){F(_)},[]);return D.cloneElement(M,{ref:w})}function Ve(Q,M,F,w,_,ne,ae,le){var de=le.getKey;return Q.slice(M,F+1).map(function(Ie,Ee){var we=M+Ee,Ne=ae(Ie,we,{style:{width:w},offsetX:_}),Re=de(Ie);return D.createElement(We,{key:Re,setRef:function(U){return ne(Ie,U)}},Ne)})}function Pe(Q,M,F,w){var _=F-Q,ne=M-F,ae=Math.min(_,ne)*2;if(w<=ae){var le=Math.floor(w/2);return w%2?F+le+1:F-le}return _>ne?F-(w-ne):F+(w-_)}function be(Q,M,F){var w=Q.length,_=M.length,ne,ae;if(w===0&&_===0)return null;w<_?(ne=Q,ae=M):(ne=M,ae=Q);var le={__EMPTY_ITEM__:!0};function de(Fe){return Fe!==void 0?F(Fe):le}for(var Ie=null,Ee=Math.abs(w-_)!==1,we=0;we<ae.length;we+=1){var Ne=de(ne[we]),Re=de(ae[we]);if(Ne!==Re){Ie=we,Ee=Ee||Ne!==de(ae[we+1]);break}}return Ie===null?null:{index:Ie,multiple:Ee}}function te(Q,M,F){var w=D.useState(Q),_=(0,v.Z)(w,2),ne=_[0],ae=_[1],le=D.useState(null),de=(0,v.Z)(le,2),Ie=de[0],Ee=de[1];return D.useEffect(function(){var we=be(ne||[],Q||[],M);(we==null?void 0:we.index)!==void 0&&(F==null||F(we.index),Ee(Q[we.index])),ae(Q)},[Q]),[Ie]}var J=c(16089),C=(typeof navigator=="undefined"?"undefined":(0,W.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),f=C,b=function(Q,M,F,w){var _=(0,D.useRef)(!1),ne=(0,D.useRef)(null);function ae(){clearTimeout(ne.current),_.current=!0,ne.current=setTimeout(function(){_.current=!1},50)}var le=(0,D.useRef)({top:Q,bottom:M,left:F,right:w});return le.current.top=Q,le.current.bottom=M,le.current.left=F,le.current.right=w,function(de,Ie){var Ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=de?Ie<0&&le.current.left||Ie>0&&le.current.right:Ie<0&&le.current.top||Ie>0&&le.current.bottom;return Ee&&we?(clearTimeout(ne.current),_.current=!1):(!we||_.current)&&ae(),!_.current&&we}};function T(Q,M,F,w,_,ne,ae){var le=(0,D.useRef)(0),de=(0,D.useRef)(null),Ie=(0,D.useRef)(null),Ee=(0,D.useRef)(!1),we=b(M,F,w,_);function Ne(Ae,Je){if(J.Z.cancel(de.current),!we(!1,Je)){var it=Ae;if(!it._virtualHandled)it._virtualHandled=!0;else return;le.current+=Je,Ie.current=Je,f||it.preventDefault(),de.current=(0,J.Z)(function(){var ke=Ee.current?10:1;ae(le.current*ke,!1),le.current=0})}}function Re(Ae,Je){ae(Je,!0),f||Ae.preventDefault()}var Fe=(0,D.useRef)(null),U=(0,D.useRef)(null);function Ge(Ae){if(Q){J.Z.cancel(U.current),U.current=(0,J.Z)(function(){Fe.current=null},2);var Je=Ae.deltaX,it=Ae.deltaY,ke=Ae.shiftKey,Zt=Je,vt=it;(Fe.current==="sx"||!Fe.current&&ke&&it&&!Je)&&(Zt=it,vt=0,Fe.current="sx");var Wt=Math.abs(Zt),jt=Math.abs(vt);Fe.current===null&&(Fe.current=ne&&Wt>jt?"x":"y"),Fe.current==="y"?Ne(Ae,vt):Re(Ae,Zt)}}function Qe(Ae){Q&&(Ee.current=Ae.detail===Ie.current)}return[Ge,Qe]}function q(Q,M,F,w){var _=D.useMemo(function(){return[new Map,[]]},[Q,F.id,w]),ne=(0,v.Z)(_,2),ae=ne[0],le=ne[1],de=function(Ee){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ee,Ne=ae.get(Ee),Re=ae.get(we);if(Ne===void 0||Re===void 0)for(var Fe=Q.length,U=le.length;U<Fe;U+=1){var Ge,Qe=Q[U],Ae=M(Qe);ae.set(Ae,U);var Je=(Ge=F.get(Ae))!==null&&Ge!==void 0?Ge:w;if(le[U]=(le[U-1]||0)+Je,Ae===Ee&&(Ne=U),Ae===we&&(Re=U),Ne!==void 0&&Re!==void 0)break}return{top:le[Ne-1]||0,bottom:le[Re]}};return de}var z=c(76846),De=c(6909),oe=c(4771),R=function(){function Q(){(0,De.Z)(this,Q),(0,X.Z)(this,"maps",void 0),(0,X.Z)(this,"id",0),(0,X.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,oe.Z)(Q,[{key:"set",value:function(F,w){this.maps[F]=w,this.id+=1,this.diffKeys.add(F)}},{key:"get",value:function(F){return this.maps[F]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Q}(),E=R;function $(Q){var M=parseFloat(Q);return isNaN(M)?0:M}function Z(Q,M,F){var w=D.useState(0),_=(0,v.Z)(w,2),ne=_[0],ae=_[1],le=(0,D.useRef)(new Map),de=(0,D.useRef)(new E),Ie=(0,D.useRef)(0);function Ee(){Ie.current+=1}function we(){var Re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ee();var Fe=function(){var Qe=!1;le.current.forEach(function(Ae,Je){if(Ae&&Ae.offsetParent){var it=(0,z.ZP)(Ae),ke=it.offsetHeight,Zt=getComputedStyle(it),vt=Zt.marginTop,Wt=Zt.marginBottom,jt=$(vt),mn=$(Wt),_t=ke+jt+mn;de.current.get(Je)!==_t&&(de.current.set(Je,_t),Qe=!0)}}),Qe&&ae(function(Ae){return Ae+1})};if(Re)Fe();else{Ie.current+=1;var U=Ie.current;Promise.resolve().then(function(){U===Ie.current&&Fe()})}}function Ne(Re,Fe){var U=Q(Re),Ge=le.current.get(U);Fe?(le.current.set(U,Fe),we()):le.current.delete(U),!Ge!=!Fe&&(Fe?M==null||M(Re):F==null||F(Re))}return(0,D.useEffect)(function(){return Ee},[]),[Ne,we,de.current,ne]}var Y=14/15;function G(Q,M,F){var w=(0,D.useRef)(!1),_=(0,D.useRef)(0),ne=(0,D.useRef)(0),ae=(0,D.useRef)(null),le=(0,D.useRef)(null),de,Ie=function(Re){if(w.current){var Fe=Math.ceil(Re.touches[0].pageX),U=Math.ceil(Re.touches[0].pageY),Ge=_.current-Fe,Qe=ne.current-U,Ae=Math.abs(Ge)>Math.abs(Qe);Ae?_.current=Fe:ne.current=U;var Je=F(Ae,Ae?Ge:Qe,!1,Re);Je&&Re.preventDefault(),clearInterval(le.current),Je&&(le.current=setInterval(function(){Ae?Ge*=Y:Qe*=Y;var it=Math.floor(Ae?Ge:Qe);(!F(Ae,it,!0)||Math.abs(it)<=.1)&&clearInterval(le.current)},16))}},Ee=function(){w.current=!1,de()},we=function(Re){de(),Re.touches.length===1&&!w.current&&(w.current=!0,_.current=Math.ceil(Re.touches[0].pageX),ne.current=Math.ceil(Re.touches[0].pageY),ae.current=Re.target,ae.current.addEventListener("touchmove",Ie,{passive:!1}),ae.current.addEventListener("touchend",Ee,{passive:!0}))};de=function(){ae.current&&(ae.current.removeEventListener("touchmove",Ie),ae.current.removeEventListener("touchend",Ee))},(0,xe.Z)(function(){return Q&&M.current.addEventListener("touchstart",we,{passive:!0}),function(){var Ne;(Ne=M.current)===null||Ne===void 0||Ne.removeEventListener("touchstart",we),de(),clearInterval(le.current)}},[Q])}function H(Q){return Math.floor(Math.pow(Q,.5))}function V(Q,M){var F="touches"in Q?Q.touches[0]:Q;return F[M?"pageX":"pageY"]-window[M?"scrollX":"scrollY"]}function fe(Q,M,F){D.useEffect(function(){var w=M.current;if(Q&&w){var _=!1,ne,ae,le=function(){J.Z.cancel(ne)},de=function Ne(){le(),ne=(0,J.Z)(function(){F(ae),Ne()})},Ie=function(Re){if(!Re.target.draggable){var Fe=Re;Fe._virtualHandled||(Fe._virtualHandled=!0,_=!0)}},Ee=function(){_=!1,le()},we=function(Re){if(_){var Fe=V(Re,!1),U=w.getBoundingClientRect(),Ge=U.top,Qe=U.bottom;if(Fe<=Ge){var Ae=Ge-Fe;ae=-H(Ae),de()}else if(Fe>=Qe){var Je=Fe-Qe;ae=H(Je),de()}else le()}};return w.addEventListener("mousedown",Ie),w.ownerDocument.addEventListener("mouseup",Ee),w.ownerDocument.addEventListener("mousemove",we),function(){w.removeEventListener("mousedown",Ie),w.ownerDocument.removeEventListener("mouseup",Ee),w.ownerDocument.removeEventListener("mousemove",we),le()}}},[Q])}var ue=10;function ze(Q,M,F,w,_,ne,ae,le){var de=D.useRef(),Ie=D.useState(null),Ee=(0,v.Z)(Ie,2),we=Ee[0],Ne=Ee[1];return(0,xe.Z)(function(){if(we&&we.times<ue){if(!Q.current){Ne(function(Bt){return(0,S.Z)({},Bt)});return}ne();var Re=we.targetAlign,Fe=we.originAlign,U=we.index,Ge=we.offset,Qe=Q.current.clientHeight,Ae=!1,Je=Re,it=null;if(Qe){for(var ke=Re||Fe,Zt=0,vt=0,Wt=0,jt=Math.min(M.length-1,U),mn=0;mn<=jt;mn+=1){var _t=_(M[mn]);vt=Zt;var cn=F.get(_t);Wt=vt+(cn===void 0?w:cn),Zt=Wt}for(var yn=ke==="top"?Ge:Qe-Ge,On=jt;On>=0;On-=1){var nn=_(M[On]),$t=F.get(nn);if($t===void 0){Ae=!0;break}if(yn-=$t,yn<=0)break}switch(ke){case"top":it=vt-Ge;break;case"bottom":it=Wt-Qe+Ge;break;default:{var on=Q.current.scrollTop,kt=on+Qe;vt<on?Je="top":Wt>kt&&(Je="bottom")}}it!==null&&ae(it),it!==we.lastTop&&(Ae=!0)}Ae&&Ne((0,S.Z)((0,S.Z)({},we),{},{times:we.times+1,targetAlign:Je,lastTop:it}))}},[we,Q.current]),function(Re){if(Re==null){le();return}if(J.Z.cancel(de.current),typeof Re=="number")ae(Re);else if(Re&&(0,W.Z)(Re)==="object"){var Fe,U=Re.align;"index"in Re?Fe=Re.index:Fe=M.findIndex(function(Ae){return _(Ae)===Re.key});var Ge=Re.offset,Qe=Ge===void 0?0:Ge;Ne({times:0,index:Fe,offset:Qe,originAlign:U})}}}var _e=D.forwardRef(function(Q,M){var F=Q.prefixCls,w=Q.rtl,_=Q.scrollOffset,ne=Q.scrollRange,ae=Q.onStartMove,le=Q.onStopMove,de=Q.onScroll,Ie=Q.horizontal,Ee=Q.spinSize,we=Q.containerSize,Ne=Q.style,Re=Q.thumbStyle,Fe=Q.showScrollBar,U=D.useState(!1),Ge=(0,v.Z)(U,2),Qe=Ge[0],Ae=Ge[1],Je=D.useState(null),it=(0,v.Z)(Je,2),ke=it[0],Zt=it[1],vt=D.useState(null),Wt=(0,v.Z)(vt,2),jt=Wt[0],mn=Wt[1],_t=!w,cn=D.useRef(),yn=D.useRef(),On=D.useState(Fe),nn=(0,v.Z)(On,2),$t=nn[0],on=nn[1],kt=D.useRef(),Bt=function(){Fe===!0||Fe===!1||(clearTimeout(kt.current),on(!0),kt.current=setTimeout(function(){on(!1)},3e3))},fn=ne-we||0,Ut=we-Ee||0,bn=D.useMemo(function(){if(_===0||fn===0)return 0;var k=_/fn;return k*Ut},[_,fn,Ut]),dn=function(re){re.stopPropagation(),re.preventDefault()},Tn=D.useRef({top:bn,dragging:Qe,pageY:ke,startTop:jt});Tn.current={top:bn,dragging:Qe,pageY:ke,startTop:jt};var nr=function(re){Ae(!0),Zt(V(re,Ie)),mn(Tn.current.top),ae(),re.stopPropagation(),re.preventDefault()};D.useEffect(function(){var k=function(O){O.preventDefault()},re=cn.current,d=yn.current;return re.addEventListener("touchstart",k,{passive:!1}),d.addEventListener("touchstart",nr,{passive:!1}),function(){re.removeEventListener("touchstart",k),d.removeEventListener("touchstart",nr)}},[]);var Vn=D.useRef();Vn.current=fn;var wn=D.useRef();wn.current=Ut,D.useEffect(function(){if(Qe){var k,re=function(O){var B=Tn.current,ye=B.dragging,ee=B.pageY,ie=B.startTop;J.Z.cancel(k);var ge=cn.current.getBoundingClientRect(),$e=we/(Ie?ge.width:ge.height);if(ye){var je=(V(O,Ie)-ee)*$e,N=ie;!_t&&Ie?N-=je:N+=je;var ce=Vn.current,Xe=wn.current,Ze=Xe?N/Xe:0,Ke=Math.ceil(Ze*ce);Ke=Math.max(Ke,0),Ke=Math.min(Ke,ce),k=(0,J.Z)(function(){de(Ke,Ie)})}},d=function(){Ae(!1),le()};return window.addEventListener("mousemove",re,{passive:!0}),window.addEventListener("touchmove",re,{passive:!0}),window.addEventListener("mouseup",d,{passive:!0}),window.addEventListener("touchend",d,{passive:!0}),function(){window.removeEventListener("mousemove",re),window.removeEventListener("touchmove",re),window.removeEventListener("mouseup",d),window.removeEventListener("touchend",d),J.Z.cancel(k)}}},[Qe]),D.useEffect(function(){return Bt(),function(){clearTimeout(kt.current)}},[_]),D.useImperativeHandle(M,function(){return{delayHidden:Bt}});var ut="".concat(F,"-scrollbar"),ot={position:"absolute",visibility:$t?null:"hidden"},m={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ie?(ot.height=8,ot.left=0,ot.right=0,ot.bottom=0,m.height="100%",m.width=Ee,_t?m.left=bn:m.right=bn):(ot.width=8,ot.top=0,ot.bottom=0,_t?ot.right=0:ot.left=0,m.width="100%",m.height=Ee,m.top=bn),D.createElement("div",{ref:cn,className:K()(ut,(0,X.Z)((0,X.Z)((0,X.Z)({},"".concat(ut,"-horizontal"),Ie),"".concat(ut,"-vertical"),!Ie),"".concat(ut,"-visible"),$t)),style:(0,S.Z)((0,S.Z)({},ot),Ne),onMouseDown:dn,onMouseMove:Bt},D.createElement("div",{ref:yn,className:K()("".concat(ut,"-thumb"),(0,X.Z)({},"".concat(ut,"-thumb-moving"),Qe)),style:(0,S.Z)((0,S.Z)({},m),Re),onMouseDown:nr}))}),Se=_e,Te=20;function Me(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=Q/M*Q;return isNaN(F)&&(F=0),F=Math.max(F,Te),Math.floor(F)}var wt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Dt=[],dt={overflowY:"auto",overflowAnchor:"none"};function rt(Q,M){var F=Q.prefixCls,w=F===void 0?"rc-virtual-list":F,_=Q.className,ne=Q.height,ae=Q.itemHeight,le=Q.fullHeight,de=le===void 0?!0:le,Ie=Q.style,Ee=Q.data,we=Q.children,Ne=Q.itemKey,Re=Q.virtual,Fe=Q.direction,U=Q.scrollWidth,Ge=Q.component,Qe=Ge===void 0?"div":Ge,Ae=Q.onScroll,Je=Q.onVirtualScroll,it=Q.onVisibleChange,ke=Q.innerProps,Zt=Q.extraRender,vt=Q.styles,Wt=Q.showScrollBar,jt=Wt===void 0?"optional":Wt,mn=(0,P.Z)(Q,wt),_t=D.useCallback(function(Ue){return typeof Ne=="function"?Ne(Ue):Ue==null?void 0:Ue[Ne]},[Ne]),cn=Z(_t,null,null),yn=(0,v.Z)(cn,4),On=yn[0],nn=yn[1],$t=yn[2],on=yn[3],kt=!!(Re!==!1&&ne&&ae),Bt=D.useMemo(function(){return Object.values($t.maps).reduce(function(Ue,nt){return Ue+nt},0)},[$t.id,$t.maps]),fn=kt&&Ee&&(Math.max(ae*Ee.length,Bt)>ne||!!U),Ut=Fe==="rtl",bn=K()(w,(0,X.Z)({},"".concat(w,"-rtl"),Ut),_),dn=Ee||Dt,Tn=(0,D.useRef)(),nr=(0,D.useRef)(),Vn=(0,D.useRef)(),wn=(0,D.useState)(0),ut=(0,v.Z)(wn,2),ot=ut[0],m=ut[1],k=(0,D.useState)(0),re=(0,v.Z)(k,2),d=re[0],h=re[1],O=(0,D.useState)(!1),B=(0,v.Z)(O,2),ye=B[0],ee=B[1],ie=function(){ee(!0)},ge=function(){ee(!1)},$e={getKey:_t};function je(Ue){m(function(nt){var ht;typeof Ue=="function"?ht=Ue(nt):ht=Ue;var pn=an(ht);return Tn.current.scrollTop=pn,pn})}var N=(0,D.useRef)({start:0,end:dn.length}),ce=(0,D.useRef)(),Xe=te(dn,_t),Ze=(0,v.Z)(Xe,1),Ke=Ze[0];ce.current=Ke;var Ye=D.useMemo(function(){if(!kt)return{scrollHeight:void 0,start:0,end:dn.length-1,offset:void 0};if(!fn){var Ue;return{scrollHeight:((Ue=nr.current)===null||Ue===void 0?void 0:Ue.offsetHeight)||0,start:0,end:dn.length-1,offset:void 0}}for(var nt=0,ht,pn,Dn,Gn=dn.length,Hn=0;Hn<Gn;Hn+=1){var Kn=dn[Hn],_n=_t(Kn),Fn=$t.get(_n),kn=nt+(Fn===void 0?ae:Fn);kn>=ot&&ht===void 0&&(ht=Hn,pn=nt),kn>ot+ne&&Dn===void 0&&(Dn=Hn),nt=kn}return ht===void 0&&(ht=0,pn=0,Dn=Math.ceil(ne/ae)),Dn===void 0&&(Dn=dn.length-1),Dn=Math.min(Dn+1,dn.length-1),{scrollHeight:nt,start:ht,end:Dn,offset:pn}},[fn,kt,ot,dn,on,ne]),yt=Ye.scrollHeight,pe=Ye.start,Ce=Ye.end,Be=Ye.offset;N.current.start=pe,N.current.end=Ce,D.useLayoutEffect(function(){var Ue=$t.getRecord();if(Ue.size===1){var nt=Array.from(Ue)[0],ht=_t(dn[pe]);if(ht===nt){var pn=$t.get(nt),Dn=pn-ae;je(function(Gn){return Gn+Dn})}}$t.resetRecord()},[yt]);var bt=D.useState({width:0,height:ne}),ct=(0,v.Z)(bt,2),at=ct[0],Jt=ct[1],It=function(nt){Jt({width:nt.offsetWidth,height:nt.offsetHeight})},Ft=(0,D.useRef)(),Gt=(0,D.useRef)(),Rt=D.useMemo(function(){return Me(at.width,U)},[at.width,U]),Yt=D.useMemo(function(){return Me(at.height,yt)},[at.height,yt]),ln=yt-ne,qt=(0,D.useRef)(ln);qt.current=ln;function an(Ue){var nt=Ue;return Number.isNaN(qt.current)||(nt=Math.min(nt,qt.current)),nt=Math.max(nt,0),nt}var pt=ot<=0,qe=ot>=ln,Nt=d<=0,Ot=d>=U,xn=b(pt,qe,Nt,Ot),Kt=function(){return{x:Ut?-d:d,y:ot}},en=(0,D.useRef)(Kt()),hn=(0,p.useEvent)(function(Ue){if(Je){var nt=(0,S.Z)((0,S.Z)({},Kt()),Ue);(en.current.x!==nt.x||en.current.y!==nt.y)&&(Je(nt),en.current=nt)}});function Pt(Ue,nt){var ht=Ue;nt?((0,me.flushSync)(function(){h(ht)}),hn()):je(ht)}function Zn(Ue){var nt=Ue.currentTarget.scrollTop;nt!==ot&&je(nt),Ae==null||Ae(Ue),hn()}var jn=function(nt){var ht=nt,pn=U?U-at.width:0;return ht=Math.max(ht,0),ht=Math.min(ht,pn),ht},Tt=(0,p.useEvent)(function(Ue,nt){nt?((0,me.flushSync)(function(){h(function(ht){var pn=ht+(Ut?-Ue:Ue);return jn(pn)})}),hn()):je(function(ht){var pn=ht+Ue;return pn})}),St=T(kt,pt,qe,Nt,Ot,!!U,Tt),Et=(0,v.Z)(St,2),rn=Et[0],sn=Et[1];G(kt,Tn,function(Ue,nt,ht,pn){var Dn=pn;return xn(Ue,nt,ht)?!1:!Dn||!Dn._virtualHandled?(Dn&&(Dn._virtualHandled=!0),rn({preventDefault:function(){},deltaX:Ue?nt:0,deltaY:Ue?0:nt}),!0):!1}),fe(fn,Tn,function(Ue){je(function(nt){return nt+Ue})}),(0,xe.Z)(function(){function Ue(ht){var pn=pt&&ht.detail<0,Dn=qe&&ht.detail>0;kt&&!pn&&!Dn&&ht.preventDefault()}var nt=Tn.current;return nt.addEventListener("wheel",rn,{passive:!1}),nt.addEventListener("DOMMouseScroll",sn,{passive:!0}),nt.addEventListener("MozMousePixelScroll",Ue,{passive:!1}),function(){nt.removeEventListener("wheel",rn),nt.removeEventListener("DOMMouseScroll",sn),nt.removeEventListener("MozMousePixelScroll",Ue)}},[kt,pt,qe]),(0,xe.Z)(function(){if(U){var Ue=jn(d);h(Ue),hn({x:Ue})}},[at.width,U]);var Qt=function(){var nt,ht;(nt=Ft.current)===null||nt===void 0||nt.delayHidden(),(ht=Gt.current)===null||ht===void 0||ht.delayHidden()},zt=ze(Tn,dn,$t,ae,_t,function(){return nn(!0)},je,Qt);D.useImperativeHandle(M,function(){return{nativeElement:Vn.current,getScrollInfo:Kt,scrollTo:function(nt){function ht(pn){return pn&&(0,W.Z)(pn)==="object"&&("left"in pn||"top"in pn)}ht(nt)?(nt.left!==void 0&&h(jn(nt.left)),zt(nt.top)):zt(nt)}}}),(0,xe.Z)(function(){if(it){var Ue=dn.slice(pe,Ce+1);it(Ue,dn)}},[pe,Ce,dn]);var gn=q(dn,_t,$t,ae),Rn=Zt==null?void 0:Zt({start:pe,end:Ce,virtual:fn,offsetX:d,offsetY:Be,rtl:Ut,getSize:gn}),Ln=Ve(dn,pe,Ce,U,d,On,we,$e),Mn=null;ne&&(Mn=(0,S.Z)((0,X.Z)({},de?"height":"maxHeight",ne),dt),kt&&(Mn.overflowY="hidden",U&&(Mn.overflowX="hidden"),ye&&(Mn.pointerEvents="none")));var An={};return Ut&&(An.dir="rtl"),D.createElement("div",(0,x.Z)({ref:Vn,style:(0,S.Z)((0,S.Z)({},Ie),{},{position:"relative"}),className:bn},An,mn),D.createElement(se.Z,{onResize:It},D.createElement(Qe,{className:"".concat(w,"-holder"),style:Mn,ref:Tn,onScroll:Zn,onMouseEnter:Qt},D.createElement(ve,{prefixCls:w,height:yt,offsetX:d,offsetY:Be,scrollWidth:U,onInnerResize:nn,ref:nr,innerProps:ke,rtl:Ut,extra:Rn},Ln))),fn&&yt>ne&&D.createElement(Se,{ref:Ft,prefixCls:w,scrollOffset:ot,scrollRange:yt,rtl:Ut,onScroll:Pt,onStartMove:ie,onStopMove:ge,spinSize:Yt,containerSize:at.height,style:vt==null?void 0:vt.verticalScrollBar,thumbStyle:vt==null?void 0:vt.verticalScrollBarThumb,showScrollBar:jt}),fn&&U>at.width&&D.createElement(Se,{ref:Gt,prefixCls:w,scrollOffset:d,scrollRange:U,rtl:Ut,onScroll:Pt,onStartMove:ie,onStopMove:ge,spinSize:Rt,containerSize:at.width,horizontal:!0,style:vt==null?void 0:vt.horizontalScrollBar,thumbStyle:vt==null?void 0:vt.horizontalScrollBarThumb,showScrollBar:jt}))}var Mt=D.forwardRef(rt);Mt.displayName="List";var st=Mt,Ht=st},76374:function(tn,Le,c){"use strict";var x=function(){if(typeof Map!="undefined")return Map;function R(E,$){var Z=-1;return E.some(function(Y,G){return Y[0]===$?(Z=G,!0):!1}),Z}return function(){function E(){this.__entries__=[]}return Object.defineProperty(E.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),E.prototype.get=function($){var Z=R(this.__entries__,$),Y=this.__entries__[Z];return Y&&Y[1]},E.prototype.set=function($,Z){var Y=R(this.__entries__,$);~Y?this.__entries__[Y][1]=Z:this.__entries__.push([$,Z])},E.prototype.delete=function($){var Z=this.__entries__,Y=R(Z,$);~Y&&Z.splice(Y,1)},E.prototype.has=function($){return!!~R(this.__entries__,$)},E.prototype.clear=function(){this.__entries__.splice(0)},E.prototype.forEach=function($,Z){Z===void 0&&(Z=null);for(var Y=0,G=this.__entries__;Y<G.length;Y++){var H=G[Y];$.call(Z,H[1],H[0])}},E}()}(),W=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,S=function(){return typeof c.g!="undefined"&&c.g.Math===Math?c.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),X=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(S):function(R){return setTimeout(function(){return R(Date.now())},1e3/60)}}(),v=2;function P(R,E){var $=!1,Z=!1,Y=0;function G(){$&&($=!1,R()),Z&&V()}function H(){X(G)}function V(){var fe=Date.now();if($){if(fe-Y<v)return;Z=!0}else $=!0,Z=!1,setTimeout(H,E);Y=fe}return V}var I=20,K=["top","right","bottom","left","width","height","size","weight"],se=typeof MutationObserver!="undefined",p=function(){function R(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=P(this.refresh.bind(this),I)}return R.prototype.addObserver=function(E){~this.observers_.indexOf(E)||this.observers_.push(E),this.connected_||this.connect_()},R.prototype.removeObserver=function(E){var $=this.observers_,Z=$.indexOf(E);~Z&&$.splice(Z,1),!$.length&&this.connected_&&this.disconnect_()},R.prototype.refresh=function(){var E=this.updateObservers_();E&&this.refresh()},R.prototype.updateObservers_=function(){var E=this.observers_.filter(function($){return $.gatherActive(),$.hasActive()});return E.forEach(function($){return $.broadcastActive()}),E.length>0},R.prototype.connect_=function(){!W||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),se?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},R.prototype.disconnect_=function(){!W||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},R.prototype.onTransitionEnd_=function(E){var $=E.propertyName,Z=$===void 0?"":$,Y=K.some(function(G){return!!~Z.indexOf(G)});Y&&this.refresh()},R.getInstance=function(){return this.instance_||(this.instance_=new R),this.instance_},R.instance_=null,R}(),xe=function(R,E){for(var $=0,Z=Object.keys(E);$<Z.length;$++){var Y=Z[$];Object.defineProperty(R,Y,{value:E[Y],enumerable:!1,writable:!1,configurable:!0})}return R},D=function(R){var E=R&&R.ownerDocument&&R.ownerDocument.defaultView;return E||S},me=f(0,0,0,0);function j(R){return parseFloat(R)||0}function ve(R){for(var E=[],$=1;$<arguments.length;$++)E[$-1]=arguments[$];return E.reduce(function(Z,Y){var G=R["border-"+Y+"-width"];return Z+j(G)},0)}function We(R){for(var E=["top","right","bottom","left"],$={},Z=0,Y=E;Z<Y.length;Z++){var G=Y[Z],H=R["padding-"+G];$[G]=j(H)}return $}function Ve(R){var E=R.getBBox();return f(0,0,E.width,E.height)}function Pe(R){var E=R.clientWidth,$=R.clientHeight;if(!E&&!$)return me;var Z=D(R).getComputedStyle(R),Y=We(Z),G=Y.left+Y.right,H=Y.top+Y.bottom,V=j(Z.width),fe=j(Z.height);if(Z.boxSizing==="border-box"&&(Math.round(V+G)!==E&&(V-=ve(Z,"left","right")+G),Math.round(fe+H)!==$&&(fe-=ve(Z,"top","bottom")+H)),!te(R)){var ue=Math.round(V+G)-E,ze=Math.round(fe+H)-$;Math.abs(ue)!==1&&(V-=ue),Math.abs(ze)!==1&&(fe-=ze)}return f(Y.left,Y.top,V,fe)}var be=function(){return typeof SVGGraphicsElement!="undefined"?function(R){return R instanceof D(R).SVGGraphicsElement}:function(R){return R instanceof D(R).SVGElement&&typeof R.getBBox=="function"}}();function te(R){return R===D(R).document.documentElement}function J(R){return W?be(R)?Ve(R):Pe(R):me}function C(R){var E=R.x,$=R.y,Z=R.width,Y=R.height,G=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,H=Object.create(G.prototype);return xe(H,{x:E,y:$,width:Z,height:Y,top:$,right:E+Z,bottom:Y+$,left:E}),H}function f(R,E,$,Z){return{x:R,y:E,width:$,height:Z}}var b=function(){function R(E){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=f(0,0,0,0),this.target=E}return R.prototype.isActive=function(){var E=J(this.target);return this.contentRect_=E,E.width!==this.broadcastWidth||E.height!==this.broadcastHeight},R.prototype.broadcastRect=function(){var E=this.contentRect_;return this.broadcastWidth=E.width,this.broadcastHeight=E.height,E},R}(),T=function(){function R(E,$){var Z=C($);xe(this,{target:E,contentRect:Z})}return R}(),q=function(){function R(E,$,Z){if(this.activeObservations_=[],this.observations_=new x,typeof E!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=E,this.controller_=$,this.callbackCtx_=Z}return R.prototype.observe=function(E){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(E instanceof D(E).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(E)||($.set(E,new b(E)),this.controller_.addObserver(this),this.controller_.refresh())}},R.prototype.unobserve=function(E){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(E instanceof D(E).Element))throw new TypeError('parameter 1 is not of type "Element".');var $=this.observations_;$.has(E)&&($.delete(E),$.size||this.controller_.removeObserver(this))}},R.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},R.prototype.gatherActive=function(){var E=this;this.clearActive(),this.observations_.forEach(function($){$.isActive()&&E.activeObservations_.push($)})},R.prototype.broadcastActive=function(){if(this.hasActive()){var E=this.callbackCtx_,$=this.activeObservations_.map(function(Z){return new T(Z.target,Z.broadcastRect())});this.callback_.call(E,$,E),this.clearActive()}},R.prototype.clearActive=function(){this.activeObservations_.splice(0)},R.prototype.hasActive=function(){return this.activeObservations_.length>0},R}(),z=typeof WeakMap!="undefined"?new WeakMap:new x,De=function(){function R(E){if(!(this instanceof R))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var $=p.getInstance(),Z=new q(E,$,this);z.set(this,Z)}return R}();["observe","unobserve","disconnect"].forEach(function(R){De.prototype[R]=function(){var E;return(E=z.get(this))[R].apply(E,arguments)}});var oe=function(){return typeof S.ResizeObserver!="undefined"?S.ResizeObserver:De}();Le.Z=oe},16722:function(tn,Le,c){"use strict";c.d(Le,{Z:function(){return K}});const x=se=>typeof se=="object"&&se!=null&&se.nodeType===1,W=(se,p)=>(!p||se!=="hidden")&&se!=="visible"&&se!=="clip",S=(se,p)=>{if(se.clientHeight<se.scrollHeight||se.clientWidth<se.scrollWidth){const xe=getComputedStyle(se,null);return W(xe.overflowY,p)||W(xe.overflowX,p)||(D=>{const me=(j=>{if(!j.ownerDocument||!j.ownerDocument.defaultView)return null;try{return j.ownerDocument.defaultView.frameElement}catch(ve){return null}})(D);return!!me&&(me.clientHeight<D.scrollHeight||me.clientWidth<D.scrollWidth)})(se)}return!1},X=(se,p,xe,D,me,j,ve,We)=>j<se&&ve>p||j>se&&ve<p?0:j<=se&&We<=xe||ve>=p&&We>=xe?j-se-D:ve>p&&We<xe||j<se&&We>xe?ve-p+me:0,v=se=>{const p=se.parentElement;return p==null?se.getRootNode().host||null:p},P=(se,p)=>{var xe,D,me,j;if(typeof document=="undefined")return[];const{scrollMode:ve,block:We,inline:Ve,boundary:Pe,skipOverflowHiddenElements:be}=p,te=typeof Pe=="function"?Pe:_e=>_e!==Pe;if(!x(se))throw new TypeError("Invalid target");const J=document.scrollingElement||document.documentElement,C=[];let f=se;for(;x(f)&&te(f);){if(f=v(f),f===J){C.push(f);break}f!=null&&f===document.body&&S(f)&&!S(document.documentElement)||f!=null&&S(f,be)&&C.push(f)}const b=(D=(xe=window.visualViewport)==null?void 0:xe.width)!=null?D:innerWidth,T=(j=(me=window.visualViewport)==null?void 0:me.height)!=null?j:innerHeight,{scrollX:q,scrollY:z}=window,{height:De,width:oe,top:R,right:E,bottom:$,left:Z}=se.getBoundingClientRect(),{top:Y,right:G,bottom:H,left:V}=(_e=>{const Se=window.getComputedStyle(_e);return{top:parseFloat(Se.scrollMarginTop)||0,right:parseFloat(Se.scrollMarginRight)||0,bottom:parseFloat(Se.scrollMarginBottom)||0,left:parseFloat(Se.scrollMarginLeft)||0}})(se);let fe=We==="start"||We==="nearest"?R-Y:We==="end"?$+H:R+De/2-Y+H,ue=Ve==="center"?Z+oe/2-V+G:Ve==="end"?E+G:Z-V;const ze=[];for(let _e=0;_e<C.length;_e++){const Se=C[_e],{height:Te,width:Me,top:wt,right:Dt,bottom:dt,left:rt}=Se.getBoundingClientRect();if(ve==="if-needed"&&R>=0&&Z>=0&&$<=T&&E<=b&&(Se===J&&!S(Se)||R>=wt&&$<=dt&&Z>=rt&&E<=Dt))return ze;const Mt=getComputedStyle(Se),st=parseInt(Mt.borderLeftWidth,10),Ht=parseInt(Mt.borderTopWidth,10),Q=parseInt(Mt.borderRightWidth,10),M=parseInt(Mt.borderBottomWidth,10);let F=0,w=0;const _="offsetWidth"in Se?Se.offsetWidth-Se.clientWidth-st-Q:0,ne="offsetHeight"in Se?Se.offsetHeight-Se.clientHeight-Ht-M:0,ae="offsetWidth"in Se?Se.offsetWidth===0?0:Me/Se.offsetWidth:0,le="offsetHeight"in Se?Se.offsetHeight===0?0:Te/Se.offsetHeight:0;if(J===Se)F=We==="start"?fe:We==="end"?fe-T:We==="nearest"?X(z,z+T,T,Ht,M,z+fe,z+fe+De,De):fe-T/2,w=Ve==="start"?ue:Ve==="center"?ue-b/2:Ve==="end"?ue-b:X(q,q+b,b,st,Q,q+ue,q+ue+oe,oe),F=Math.max(0,F+z),w=Math.max(0,w+q);else{F=We==="start"?fe-wt-Ht:We==="end"?fe-dt+M+ne:We==="nearest"?X(wt,dt,Te,Ht,M+ne,fe,fe+De,De):fe-(wt+Te/2)+ne/2,w=Ve==="start"?ue-rt-st:Ve==="center"?ue-(rt+Me/2)+_/2:Ve==="end"?ue-Dt+Q+_:X(rt,Dt,Me,st,Q+_,ue,ue+oe,oe);const{scrollLeft:de,scrollTop:Ie}=Se;F=le===0?0:Math.max(0,Math.min(Ie+F/le,Se.scrollHeight-Te/le+ne)),w=ae===0?0:Math.max(0,Math.min(de+w/ae,Se.scrollWidth-Me/ae+_)),fe+=Ie-F,ue+=de-w}ze.push({el:Se,top:F,left:w})}return ze},I=se=>se===!1?{block:"end",inline:"nearest"}:(p=>p===Object(p)&&Object.keys(p).length!==0)(se)?se:{block:"start",inline:"nearest"};function K(se,p){if(!se.isConnected||!(me=>{let j=me;for(;j&&j.parentNode;){if(j.parentNode===document)return!0;j=j.parentNode instanceof ShadowRoot?j.parentNode.host:j.parentNode}return!1})(se))return;const xe=(me=>{const j=window.getComputedStyle(me);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(se);if((me=>typeof me=="object"&&typeof me.behavior=="function")(p))return p.behavior(P(se,p));const D=typeof p=="boolean"||p==null?void 0:p.behavior;for(const{el:me,top:j,left:ve}of P(se,I(p))){const We=j-xe.top+xe.bottom,Ve=ve-xe.left+xe.right;me.scroll({top:We,left:Ve,behavior:D})}}}}]);