|
|
(self.webpackChunk=self.webpackChunk||[]).push([[7046],{71749:function(){"use strict"},30483:function(){"use strict"},96670:function(Sn,me,g){"use strict";g.d(me,{t:function(){return se}});var T=g(67294),Q=g(71577),O={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},q=g(94184),x=g.n(q),M=Object.defineProperty,y=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable,v=(be,Se,Ie)=>Se in be?M(be,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):be[Se]=Ie,Me=(be,Se)=>{for(var Ie in Se||(Se={}))de.call(Se,Ie)&&v(be,Ie,Se[Ie]);if(y)for(var Ie of y(Se))j.call(Se,Ie)&&v(be,Ie,Se[Ie]);return be};const se=({cancelText:be="\u53D6\u6D88",okText:Se="\u786E\u5B9A",loading:Ie=!1,hasOkBtn:ce=!0,hasCancelBtn:P=!0,okButtonProps:xe={},onCancel:nt=()=>{},onOk:V=()=>{},className:ne=""})=>T.createElement("div",{className:x()(O.buttonFixed,ne)},T.createElement("div",{className:O.buttonWrap},P&&T.createElement(Q.ZP,{size:"middle",className:`${O.button} mr20`,onClick:nt},be),ce&&T.createElement(Q.ZP,Me({size:"middle",type:"primary",className:`${O.button} mr20`,loading:Ie,onClick:V},xe),Se)))},57444:function(Sn,me,g){"use strict";g.d(me,{h:function(){return ne}});var T=g(67294),Q=g(42563),O=g(91773),q=g(71577),x=g(4631),M=g.n(x),y=g(71749),de=g(30483),j=Object.defineProperty,v=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Se=Object.prototype.propertyIsEnumerable,Ie=(b,h,I)=>h in b?j(b,h,{enumerable:!0,configurable:!0,writable:!0,value:I}):b[h]=I,ce=(b,h)=>{for(var I in h||(h={}))be.call(h,I)&&Ie(b,I,h[I]);if(se)for(var I of se(h))Se.call(h,I)&&Ie(b,I,h[I]);return b},P=(b,h)=>v(b,Me(h));const xe=Q.default.Option,nt={labelCol:{span:4},wrapperCol:{span:20}},V={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"]};me.Z=({callback:b,onCancel:h})=>{const[I,A]=(0,T.useState)("python");function X(ze){A(V[ze][1])}function $(ze){b(ze)}return T.createElement(O.default,P(ce({},nt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:$,style:{width:500}}),T.createElement(O.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},T.createElement(Q.default,{getPopupContainer:ze=>ze.parentNode,onChange:X},Object.keys(V).map(ze=>T.createElement(xe,{key:ze,value:ze},V[ze][0])))),T.createElement(O.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},T.createElement(ne,{mode:I})),T.createElement("div",{className:"flex-container flex-end"},T.createElement(q.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),T.createElement(q.ZP,{type:"ghost",onClick:h},"\u53D6\u6D88")))};function ne({value:b,onChange:h,mode:I,options:A={}}){const X=(0,T.useRef)(),[$,ze]=(0,T.useState)();return(0,T.useEffect)(()=>{if($){let re=function(oe){const Tt=oe.getValue();h&&h(Tt)};return $.on("change",re),()=>{$.off("change",re)}}},[$,h]),(0,T.useEffect)(()=>{$&&$.setOption("mode",I)},[$,I]),(0,T.useEffect)(()=>{$&&(b!==$.getValue()||b==="")&&setTimeout(()=>{$.setValue(b||"")},300)},[$,b]),(0,T.useEffect)(()=>{if(X.current&&!$){const re=M().fromTextArea(X.current,ce({mode:I,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},A));ze(re)}},[X.current,$]),T.createElement("div",{className:"my-codemirror-container"},T.createElement("textarea",{ref:X}))}},74131:function(Sn,me,g){"use strict";g.r(me),g.d(me,{default:function(){return P}});var T=g(67294),Q=g(35973),O=g(91773),q=g(11486),x=g(57444),M=g(96670),y={bg:"bg___YV4bB",wrap:"wrap___kzW1f",title:"title___qum64",path:"path___G15kO",colorBlue:"colorBlue___LDjoN",width240:"width240___QOLSj"},de=Object.defineProperty,j=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,se=(xe,nt,V)=>nt in xe?de(xe,nt,{enumerable:!0,configurable:!0,writable:!0,value:V}):xe[nt]=V,be=(xe,nt)=>{for(var V in nt||(nt={}))v.call(nt,V)&&se(xe,V,nt[V]);if(j)for(var V of j(nt))Me.call(nt,V)&&se(xe,V,nt[V]);return xe},Se=(xe,nt)=>{var V={};for(var ne in xe)v.call(xe,ne)&&nt.indexOf(ne)<0&&(V[ne]=xe[ne]);if(xe!=null&&j)for(var ne of j(xe))nt.indexOf(ne)<0&&Me.call(xe,ne)&&(V[ne]=xe[ne]);return V},Ie=(xe,nt,V)=>new Promise((ne,b)=>{var h=X=>{try{A(V.next(X))}catch($){b($)}},I=X=>{try{A(V.throw(X))}catch($){b($)}},A=X=>X.done?ne(X.value):Promise.resolve(X.value).then(h,I);A((V=V.apply(xe,nt)).next())});const ce=xe=>{var nt=xe,{shixunsDetail:V,globalSetting:ne,loading:b,user:h,dispatch:I}=nt,A=Se(nt,["shixunsDetail","globalSetting","loading","user","dispatch"]);const X=(0,Q.useLocation)(),[$,ze]=(0,T.useState)({}),re=(0,T.useRef)(),oe=(0,T.useRef)(),[Tt]=O.default.useForm(),[wt,on]=(0,T.useState)("");(0,T.useEffect)(()=>(I({type:"globalSetting/footerToggle",payload:!1}),()=>{I({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,T.useEffect)(()=>{const ye=sessionStorage.getItem("pathArray");if(ye){const Ue=ye.split(",").join("/"),pe=Ue.indexOf("/")===0?Ue.substr(1):Ue;on(pe)}},[]),(0,T.useEffect)(()=>{var ye,Ue,pe,ve;oe.current=(Ue=(ye=X.pathname)==null?void 0:ye.split("/"))==null?void 0:Ue[2],re.current=((ve=(pe=X.pathname)==null?void 0:pe.split("/"))==null?void 0:ve[3])==="repository"},[]);const Xt=(...ye)=>Ie(void 0,[...ye],function*(Ue={}){if(yield I({type:"shixunsDetail/addRepositoryFile",payload:{id:oe.current,message:Ue.commitMessage,content:Ue.codeMirror,path:`${wt?`${wt}/`:""}${Ue.path||""}`,secret_repository:re.current?void 0:!0}})){const ve=re.current?`/shixuns/${oe.current}/repository${wt?`/master/shixun_show/${wt}`:""}`:`/shixuns/${oe.current}/secret_repository`;Q.history.replace(ve)}}),On=()=>{var ye,Ue;Q.history.push(`/shixuns/${oe.current}/${(Ue=(ye=X.pathname)==null?void 0:ye.split("/"))==null?void 0:Ue[3]}${wt?`/master/shixun_show/${wt}`:""}`)};return T.createElement("section",{className:y.bg},T.createElement("div",{className:y.wrap},T.createElement("div",{className:y.title},"\u65B0\u5EFA\u6587\u4EF6"),T.createElement(O.default,{className:"mt10",form:Tt,scrollToFirstError:!0,layout:"vertical",onFinish:Xt,onValuesChange:()=>ze(be({},Tt.getFieldsValue()))},T.createElement(O.default.Item,{label:"\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84\uFF1A"},T.createElement(O.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},T.createElement("span",null,T.createElement("span",{className:"mr5"},wt?`${wt}/`:""),T.createElement(q.default,{className:y.width240,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u540D\u79F0\u6216\u6587\u4EF6\u8DEF\u5F84"}))),T.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")),T.createElement(O.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"}]},T.createElement(q.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"})),T.createElement("div",{className:"mt10 mb20"},T.createElement(O.default.Item,{name:"codeMirror",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5185\u5BB9"}]},T.createElement(x.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"]}}))),T.createElement(O.default.Item,{noStyle:!0},T.createElement(M.t,{okButtonProps:{htmlType:"submit"},onCancel:On})))))};var P=(0,Q.connect)(({shixunsDetail:xe,loading:nt,globalSetting:V,user:ne})=>({shixunsDetail:xe,globalSetting:V,user:ne,loading:nt.models.index}))(ce)},9708:function(Sn,me,g){"use strict";g.d(me,{F:function(){return x},Z:function(){return q}});var T=g(94184),Q=g.n(T);const O=null;function q(M,y,de){return Q()({[`${M}-status-success`]:y==="success",[`${M}-status-warning`]:y==="warning",[`${M}-status-error`]:y==="error",[`${M}-status-validating`]:y==="validating",[`${M}-has-feedback`]:de})}const x=(M,y)=>y||M},88258:function(Sn,me,g){"use strict";var T=g(67294),Q=g(53124),O=g(32983);const q=x=>{const{componentName:M}=x,{getPrefixCls:y}=(0,T.useContext)(Q.E_),de=y("empty");switch(M){case"Table":case"List":return T.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return T.createElement(O.Z,{image:O.Z.PRESENTED_IMAGE_SIMPLE,className:`${de}-small`});default:return T.createElement(O.Z,null)}};me.Z=q},32983:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return V}});var T=g(94184),Q=g.n(T),O=g(67294),q=g(53124),x=g(10110),M=g(84780),y=g(46605),j=()=>{const[,ne]=(0,y.Z)(),h=new M.C(ne.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return O.createElement("svg",{style:h,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},O.createElement("g",{fill:"none",fillRule:"evenodd"},O.createElement("g",{transform:"translate(24 31.67)"},O.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),O.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"}),O.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)"}),O.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"}),O.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"})),O.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"}),O.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},O.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),O.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Me=()=>{const[,ne]=(0,y.Z)(),{colorFill:b,colorFillTertiary:h,colorFillQuaternary:I,colorBgContainer:A}=ne,{borderColor:X,shadowColor:$,contentColor:ze}=(0,O.useMemo)(()=>({borderColor:new M.C(b).onBackground(A).toHexShortString(),shadowColor:new M.C(h).onBackground(A).toHexShortString(),contentColor:new M.C(I).onBackground(A).toHexShortString()}),[b,h,I,A]);return O.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},O.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},O.createElement("ellipse",{fill:$,cx:"32",cy:"33",rx:"32",ry:"7"}),O.createElement("g",{fillRule:"nonzero",stroke:X},O.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"}),O.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:ze}))))},se=g(67968),be=g(45503);const Se=ne=>{const{componentCls:b,margin:h,marginXS:I,marginXL:A,fontSize:X,lineHeight:$}=ne;return{[b]:{marginInline:I,fontSize:X,lineHeight:$,textAlign:"center",[`${b}-image`]:{height:ne.emptyImgHeight,marginBottom:I,opacity:ne.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${b}-description`]:{color:ne.colorText},[`${b}-footer`]:{marginTop:h},"&-normal":{marginBlock:A,color:ne.colorTextDisabled,[`${b}-description`]:{color:ne.colorTextDisabled},[`${b}-image`]:{height:ne.emptyImgHeightMD}},"&-small":{marginBlock:I,color:ne.colorTextDisabled,[`${b}-image`]:{height:ne.emptyImgHeightSM}}}}};var Ie=(0,se.Z)("Empty",ne=>{const{componentCls:b,controlHeightLG:h}=ne,I=(0,be.TS)(ne,{emptyImgCls:`${b}-img`,emptyImgHeight:h*2.5,emptyImgHeightMD:h,emptyImgHeightSM:h*.875});return[Se(I)]}),ce=function(ne,b){var h={};for(var I in ne)Object.prototype.hasOwnProperty.call(ne,I)&&b.indexOf(I)<0&&(h[I]=ne[I]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,I=Object.getOwnPropertySymbols(ne);A<I.length;A++)b.indexOf(I[A])<0&&Object.prototype.propertyIsEnumerable.call(ne,I[A])&&(h[I[A]]=ne[I[A]]);return h};const P=O.createElement(j,null),xe=O.createElement(Me,null),nt=ne=>{var{className:b,rootClassName:h,prefixCls:I,image:A=P,description:X,children:$,imageStyle:ze,style:re}=ne,oe=ce(ne,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Tt,direction:wt,empty:on}=O.useContext(q.E_),Xt=Tt("empty",I),[On,ye]=Ie(Xt),[Ue]=(0,x.Z)("Empty"),pe=typeof X!="undefined"?X:Ue==null?void 0:Ue.description,ve=typeof pe=="string"?pe:"empty";let at=null;return typeof A=="string"?at=O.createElement("img",{alt:ve,src:A}):at=A,On(O.createElement("div",Object.assign({className:Q()(ye,Xt,on==null?void 0:on.className,{[`${Xt}-normal`]:A===xe,[`${Xt}-rtl`]:wt==="rtl"},b,h),style:Object.assign(Object.assign({},on==null?void 0:on.style),re)},oe),O.createElement("div",{className:`${Xt}-image`,style:ze},at),pe&&O.createElement("div",{className:`${Xt}-description`},pe),$&&O.createElement("div",{className:`${Xt}-footer`},$)))};nt.PRESENTED_IMAGE_DEFAULT=P,nt.PRESENTED_IMAGE_SIMPLE=xe;var V=nt},91773:function(Sn,me,g){"use strict";g.d(me,{default:function(){return Qe}});var T=g(74902),Q=g(94184),O=g.n(Q),q=g(38379),x=g(67294),M=g(33603),y=g(65223);function de(m){const[F,K]=x.useState(m);return x.useEffect(()=>{const H=setTimeout(()=>{K(m)},m.length?0:10);return()=>{clearTimeout(H)}},[m]),F}var j=g(14747),v=g(50438),Me=g(33507),se=g(45503),be=g(67968),Ie=m=>{const{componentCls:F}=m,K=`${F}-show-help`,H=`${F}-show-help-item`;return{[K]:{transition:`opacity ${m.motionDurationSlow} ${m.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[H]:{overflow:"hidden",transition:`height ${m.motionDurationSlow} ${m.motionEaseInOut},
|
|
|
opacity ${m.motionDurationSlow} ${m.motionEaseInOut},
|
|
|
transform ${m.motionDurationSlow} ${m.motionEaseInOut} !important`,[`&${H}-appear, &${H}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${H}-leave-active`]:{transform:"translateY(-5px)"}}}}};const ce=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}}),P=(m,F)=>{const{formItemCls:K}=m;return{[K]:{[`${K}-label > label`]:{height:F},[`${K}-control-input`]:{minHeight:F}}}},xe=m=>{const{componentCls:F}=m;return{[m.componentCls]:Object.assign(Object.assign(Object.assign({},(0,j.Wf)(m)),ce(m)),{[`${F}-text`]:{display:"inline-block",paddingInlineEnd:m.paddingSM},"&-small":Object.assign({},P(m,m.controlHeightSM)),"&-large":Object.assign({},P(m,m.controlHeightLG))})}},nt=m=>{const{formItemCls:F,iconCls:K,componentCls:H,rootPrefixCls:J,labelRequiredMarkColor:ae,labelColor:we,labelFontSize:Lt,labelHeight:W,labelColonMarginInlineStart:Ce,labelColonMarginInlineEnd:Vt,itemMarginBottom:sn}=m;return{[F]:Object.assign(Object.assign({},(0,j.Wf)(m)),{marginBottom:sn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${J}-row`]:{display:"none"},"&-has-warning":{[`${F}-split`]:{color:m.colorError}},"&-has-error":{[`${F}-split`]:{color:m.colorWarning}},[`${F}-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:W,color:we,fontSize:Lt,[`> ${K}`]:{fontSize:m.fontSize,verticalAlign:"top"},[`&${F}-required:not(${F}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:m.marginXXS,color:ae,fontSize:m.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${H}-hide-required-mark &`]:{display:"none"}},[`${F}-optional`]:{display:"inline-block",marginInlineStart:m.marginXXS,color:m.colorTextDescription,[`${H}-hide-required-mark &`]:{display:"none"}},[`${F}-tooltip`]:{color:m.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:m.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Ce,marginInlineEnd:Vt},[`&${F}-no-colon::after`]:{content:'"\\a0"'}}},[`${F}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${J}-col-'"]):not([class*="' ${J}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:m.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[F]:{"&-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 ${F}-explain`]:{height:"auto",opacity:1},[`${F}-feedback-icon`]:{fontSize:m.fontSize,textAlign:"center",visibility:"visible",animationName:v.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}}})}},V=m=>{const{componentCls:F,formItemCls:K}=m;return{[`${F}-horizontal`]:{[`${K}-label`]:{flexGrow:0},[`${K}-control`]:{flex:"1 1 0",minWidth:0},[`${K}-label[class$='-24'], ${K}-label[class*='-24 ']`]:{[`& + ${K}-control`]:{minWidth:"unset"}}}}},ne=m=>{const{componentCls:F,formItemCls:K}=m;return{[`${F}-inline`]:{display:"flex",flexWrap:"wrap",[K]:{flex:"none",marginInlineEnd:m.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${K}-label,
|
|
|
> ${K}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${K}-label`]:{flex:"none"},[`${F}-text`]:{display:"inline-block"},[`${K}-has-feedback`]:{display:"inline-block"}}}}},b=m=>({padding:m.verticalLabelPadding,margin:m.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),h=m=>{const{componentCls:F,formItemCls:K,rootPrefixCls:H}=m;return{[`${K} ${K}-label`]:b(m),[F]:{[K]:{flexWrap:"wrap",[`${K}-label, ${K}-control`]:{[`&:not([class*=" ${H}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},I=m=>{const{componentCls:F,formItemCls:K,rootPrefixCls:H}=m;return{[`${F}-vertical`]:{[K]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${F}-item-control`]:{width:"100%"}}},[`${F}-vertical ${K}-label,
|
|
|
.${H}-col-24${K}-label,
|
|
|
.${H}-col-xl-24${K}-label`]:b(m),[`@media (max-width: ${m.screenXSMax}px)`]:[h(m),{[F]:{[`.${H}-col-xs-24${K}-label`]:b(m)}}],[`@media (max-width: ${m.screenSMMax}px)`]:{[F]:{[`.${H}-col-sm-24${K}-label`]:b(m)}},[`@media (max-width: ${m.screenMDMax}px)`]:{[F]:{[`.${H}-col-md-24${K}-label`]:b(m)}},[`@media (max-width: ${m.screenLGMax}px)`]:{[F]:{[`.${H}-col-lg-24${K}-label`]:b(m)}}}},A=(m,F)=>(0,se.TS)(m,{formItemCls:`${m.componentCls}-item`,rootPrefixCls:F});var X=(0,be.Z)("Form",(m,F)=>{let{rootPrefixCls:K}=F;const H=A(m,K);return[xe(H),nt(H),Ie(H),V(H),ne(H),I(H),(0,Me.Z)(H),v.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 $=[];function ze(m,F,K){let H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof m=="string"?m:`${F}-${H}`,error:m,errorStatus:K}}var oe=m=>{let{help:F,helpStatus:K,errors:H=$,warnings:J=$,className:ae,fieldId:we,onVisibleChanged:Lt}=m;const{prefixCls:W}=x.useContext(y.Rk),Ce=`${W}-item-explain`,[,Vt]=X(W),sn=(0,x.useMemo)(()=>(0,M.Z)(W),[W]),Jt=de(H),Ln=de(J),ir=x.useMemo(()=>F!=null?[ze(F,"help",K)]:[].concat((0,T.Z)(Jt.map((Bn,En)=>ze(Bn,"error","error",En))),(0,T.Z)(Ln.map((Bn,En)=>ze(Bn,"warning","warning",En)))),[F,K,Jt,Ln]),Ve={};return we&&(Ve.id=`${we}_help`),x.createElement(q.default,{motionDeadline:sn.motionDeadline,motionName:`${W}-show-help`,visible:!!ir.length,onVisibleChanged:Lt},Bn=>{const{className:En,style:Pt}=Bn;return x.createElement("div",Object.assign({},Ve,{className:O()(Ce,En,ae,Vt),style:Pt,role:"alert"}),x.createElement(q.CSSMotionList,Object.assign({keys:ir},(0,M.Z)(W),{motionName:`${W}-show-help-item`,component:!1}),pn=>{const{key:kn,error:Tn,errorStatus:Mn,className:Or,style:fr}=pn;return x.createElement("div",{key:kn,className:O()(Or,{[`${Ce}-${Mn}`]:Mn}),style:fr},Tn)}))})},Tt=g(58083),wt=g(53124),on=g(98866),Xt=g(97647),On=g(98675),ye=g(17423);const Ue=["parentNode"],pe="form_item";function ve(m){return m===void 0||m===!1?[]:Array.isArray(m)?m:[m]}function at(m,F){if(!m.length)return;const K=m.join("_");return F?`${F}_${K}`:Ue.includes(K)?`${pe}_${K}`:K}function kt(m,F,K,H,J,ae){let we=H;return ae!==void 0?we=ae:K.validating?we="validating":m.length?we="error":F.length?we="warning":(K.touched||J&&K.validated)&&(we="success"),we}function lt(m){return ve(m).join("_")}function ut(m){const[F]=(0,Tt.useForm)(),K=x.useRef({}),H=x.useMemo(()=>m!=null?m:Object.assign(Object.assign({},F),{__INTERNAL__:{itemRef:J=>ae=>{const we=lt(J);ae?K.current[we]=ae:delete K.current[we]}},scrollToField:function(J){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const we=ve(J),Lt=at(we,H.__INTERNAL__.name),W=Lt?document.getElementById(Lt):null;W&&(0,ye.Z)(W,Object.assign({scrollMode:"if-needed",block:"nearest"},ae))},getFieldInstance:J=>{const ae=lt(J);return K.current[ae]}}),[m,F]);return[H]}var dt=g(37920),Wn=function(m,F){var K={};for(var H in m)Object.prototype.hasOwnProperty.call(m,H)&&F.indexOf(H)<0&&(K[H]=m[H]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,H=Object.getOwnPropertySymbols(m);J<H.length;J++)F.indexOf(H[J])<0&&Object.prototype.propertyIsEnumerable.call(m,H[J])&&(K[H[J]]=m[H[J]]);return K};const ar=(m,F)=>{const K=x.useContext(on.Z),{getPrefixCls:H,direction:J,form:ae}=x.useContext(wt.E_),{prefixCls:we,className:Lt,rootClassName:W,size:Ce,disabled:Vt=K,form:sn,colon:Jt,labelAlign:Ln,labelWrap:ir,labelCol:Ve,wrapperCol:Bn,hideRequiredMark:En,layout:Pt="horizontal",scrollToFirstError:pn,requiredMark:kn,onFinishFailed:Tn,name:Mn,style:Or,feedbackIcons:fr}=m,Xr=Wn(m,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),Pr=(0,On.Z)(Ce),Yr=x.useContext(dt.Z),Lr=(0,x.useMemo)(()=>kn!==void 0?kn:ae&&ae.requiredMark!==void 0?ae.requiredMark:!En,[En,kn,ae]),Qn=Jt!=null?Jt:ae==null?void 0:ae.colon,zn=H("form",we),[or,Un]=X(zn),mr=O()(zn,`${zn}-${Pt}`,{[`${zn}-hide-required-mark`]:Lr===!1,[`${zn}-rtl`]:J==="rtl",[`${zn}-${Pr}`]:Pr},Un,ae==null?void 0:ae.className,Lt,W),[Qr]=ut(sn),{__INTERNAL__:Dr}=Qr;Dr.name=Mn;const mi=(0,x.useMemo)(()=>({name:Mn,labelAlign:Ln,labelCol:Ve,labelWrap:ir,wrapperCol:Bn,vertical:Pt==="vertical",colon:Qn,requiredMark:Lr,itemRef:Dr.itemRef,form:Qr,feedbackIcons:fr}),[Mn,Ln,Ve,Bn,Pt,Qn,Lr,Qr,fr]);x.useImperativeHandle(F,()=>Qr);const Ci=(Br,Kn)=>{if(Br){let dr={block:"nearest"};typeof Br=="object"&&(dr=Br),Qr.scrollToField(Kn,dr)}},qi=Br=>{if(Tn==null||Tn(Br),Br.errorFields.length){const Kn=Br.errorFields[0].name;if(pn!==void 0){Ci(pn,Kn);return}ae&&ae.scrollToFirstError!==void 0&&Ci(ae.scrollToFirstError,Kn)}};return or(x.createElement(on.n,{disabled:Vt},x.createElement(Xt.q,{size:Pr},x.createElement(y.RV,Object.assign({},{validateMessages:Yr}),x.createElement(y.q3.Provider,{value:mi},x.createElement(Tt.default,Object.assign({id:Mn},Xr,{name:Mn,onFinishFailed:qi,form:Qr,style:Object.assign(Object.assign({},ae==null?void 0:ae.style),Or),className:mr})))))))};var Re=x.forwardRef(ar),je=g(9475),Ne=g(17799),St=g(96159),At=g(37419);function Dt(m){if(typeof m=="function")return m;const F=(0,At.Z)(m);return F.length<=1?F[0]:F}const Ct=()=>{const{status:m,errors:F=[],warnings:K=[]}=(0,x.useContext)(y.aM);return{status:m,errors:F,warnings:K}};Ct.Context=y.aM;var Et=Ct,zt=g(96523);function tn(m){const[F,K]=x.useState(m),H=(0,x.useRef)(null),J=(0,x.useRef)([]),ae=(0,x.useRef)(!1);x.useEffect(()=>(ae.current=!1,()=>{ae.current=!0,zt.Z.cancel(H.current),H.current=null}),[]);function we(Lt){ae.current||(H.current===null&&(J.current=[],H.current=(0,zt.Z)(()=>{H.current=null,K(W=>{let Ce=W;return J.current.forEach(Vt=>{Ce=Vt(Ce)}),Ce})})),J.current.push(Lt))}return[F,we]}function jt(){const{itemRef:m}=x.useContext(y.q3),F=x.useRef({});function K(H,J){const ae=J&&typeof J=="object"&&J.ref,we=H.join("_");return(F.current.name!==we||F.current.originRef!==ae)&&(F.current.name=we,F.current.originRef=ae,F.current.ref=(0,Ne.sQ)(m(H),ae)),F.current.ref}return K}var Rt=g(48130),ct=g(14075),Cn=g(10366),gn=g(92820),cn=g(21584);const wr=m=>{const{formItemCls:F}=m;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${F}-control`]:{display:"flex"}}}};var xn=(0,be.b)(["Form","item-item"],(m,F)=>{let{rootPrefixCls:K}=F;const H=A(m,K);return[wr(H)]}),ke=m=>{const{prefixCls:F,status:K,wrapperCol:H,children:J,errors:ae,warnings:we,_internalItemRender:Lt,extra:W,help:Ce,fieldId:Vt,marginBottom:sn,onErrorVisibleChanged:Jt}=m,Ln=`${F}-item`,ir=x.useContext(y.q3),Ve=H||ir.wrapperCol||{},Bn=O()(`${Ln}-control`,Ve.className),En=x.useMemo(()=>Object.assign({},ir),[ir]);delete En.labelCol,delete En.wrapperCol;const Pt=x.createElement("div",{className:`${Ln}-control-input`},x.createElement("div",{className:`${Ln}-control-input-content`},J)),pn=x.useMemo(()=>({prefixCls:F,status:K}),[F,K]),kn=sn!==null||ae.length||we.length?x.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},x.createElement(y.Rk.Provider,{value:pn},x.createElement(oe,{fieldId:Vt,errors:ae,warnings:we,help:Ce,helpStatus:K,className:`${Ln}-explain-connected`,onVisibleChanged:Jt})),!!sn&&x.createElement("div",{style:{width:0,height:sn}})):null,Tn={};Vt&&(Tn.id=`${Vt}_extra`);const Mn=W?x.createElement("div",Object.assign({},Tn,{className:`${Ln}-extra`}),W):null,Or=Lt&&Lt.mark==="pro_table_render"&&Lt.render?Lt.render(m,{input:Pt,errorList:kn,extra:Mn}):x.createElement(x.Fragment,null,Pt,kn,Mn);return x.createElement(y.q3.Provider,{value:En},x.createElement(cn.Z,Object.assign({},Ve,{className:Bn}),Or),x.createElement(xn,{prefixCls:F}))},_r=g(87462),er={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"},Dn=er,$n=g(44327),Nn=function(F,K){return x.createElement($n.Z,(0,_r.Z)({},F,{ref:K,icon:Dn}))},wn=x.forwardRef(Nn),ur=g(24457),cr=g(10110),Zr=g(83062),oi=function(m,F){var K={};for(var H in m)Object.prototype.hasOwnProperty.call(m,H)&&F.indexOf(H)<0&&(K[H]=m[H]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,H=Object.getOwnPropertySymbols(m);J<H.length;J++)F.indexOf(H[J])<0&&Object.prototype.propertyIsEnumerable.call(m,H[J])&&(K[H[J]]=m[H[J]]);return K};function Li(m){return m?typeof m=="object"&&!x.isValidElement(m)?m:{title:m}:null}var Ji=m=>{let{prefixCls:F,label:K,htmlFor:H,labelCol:J,labelAlign:ae,colon:we,required:Lt,requiredMark:W,tooltip:Ce}=m;var Vt;const[sn]=(0,cr.Z)("Form"),{vertical:Jt,labelAlign:Ln,labelCol:ir,labelWrap:Ve,colon:Bn}=x.useContext(y.q3);if(!K)return null;const En=J||ir||{},Pt=ae||Ln,pn=`${F}-item-label`,kn=O()(pn,Pt==="left"&&`${pn}-left`,En.className,{[`${pn}-wrap`]:!!Ve});let Tn=K;const Mn=we===!0||Bn!==!1&&we!==!1;Mn&&!Jt&&typeof K=="string"&&K.trim()!==""&&(Tn=K.replace(/[:|:]\s*$/,""));const fr=Li(Ce);if(fr){const{icon:Lr=x.createElement(wn,null)}=fr,Qn=oi(fr,["icon"]),zn=x.createElement(Zr.Z,Object.assign({},Qn),x.cloneElement(Lr,{className:`${F}-item-tooltip`,title:""}));Tn=x.createElement(x.Fragment,null,Tn,zn)}const Xr=W==="optional",Pr=typeof W=="function";Pr?Tn=W(Tn,{required:!!Lt}):Xr&&!Lt&&(Tn=x.createElement(x.Fragment,null,Tn,x.createElement("span",{className:`${F}-item-optional`,title:""},(sn==null?void 0:sn.optional)||((Vt=ur.Z.Form)===null||Vt===void 0?void 0:Vt.optional))));const Yr=O()({[`${F}-item-required`]:Lt,[`${F}-item-required-mark-optional`]:Xr||Pr,[`${F}-item-no-colon`]:!Mn});return x.createElement(cn.Z,Object.assign({},En,{className:kn}),x.createElement("label",{htmlFor:H,className:Yr,title:typeof K=="string"?K:""},Tn))},po=g(23526),Ti=g(30186),Fi=g(39291),$i=g(77322);const co={success:po.Z,warning:Fi.Z,error:Ti.Z,validating:$i.Z};function N(m){let{children:F,errors:K,warnings:H,hasFeedback:J,validateStatus:ae,prefixCls:we,meta:Lt,noStyle:W}=m;const Ce=`${we}-item`,{feedbackIcons:Vt}=x.useContext(y.q3),sn=kt(K,H,Lt,null,!!J,ae),{isFormItemInput:Jt,status:Ln}=x.useContext(y.aM),ir=x.useMemo(()=>{var Ve;let Bn;if(J){const pn=J!==!0&&J.icons||Vt,kn=sn&&((Ve=pn==null?void 0:pn({status:sn,errors:K,warnings:H}))===null||Ve===void 0?void 0:Ve[sn]),Tn=sn&&co[sn];Bn=kn!==!1&&Tn?x.createElement("span",{className:O()(`${Ce}-feedback-icon`,`${Ce}-feedback-icon-${sn}`)},kn||x.createElement(Tn,null)):null}let En=!0,Pt=sn||"";return W&&(En=Jt,Pt=(sn!=null?sn:Ln)||""),{status:Pt,errors:K,warnings:H,hasFeedback:!!J,feedbackIcon:Bn,isFormItemInput:En}},[sn,J,W,Jt,Ln]);return x.createElement(y.aM.Provider,{value:ir},F)}var te=function(m,F){var K={};for(var H in m)Object.prototype.hasOwnProperty.call(m,H)&&F.indexOf(H)<0&&(K[H]=m[H]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,H=Object.getOwnPropertySymbols(m);J<H.length;J++)F.indexOf(H[J])<0&&Object.prototype.propertyIsEnumerable.call(m,H[J])&&(K[H[J]]=m[H[J]]);return K};function Y(m){const{prefixCls:F,className:K,rootClassName:H,style:J,help:ae,errors:we,warnings:Lt,validateStatus:W,meta:Ce,hasFeedback:Vt,hidden:sn,children:Jt,fieldId:Ln,required:ir,isRequired:Ve,onSubItemMetaChange:Bn}=m,En=te(m,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),Pt=`${F}-item`,{requiredMark:pn}=x.useContext(y.q3),kn=x.useRef(null),Tn=de(we),Mn=de(Lt),Or=ae!=null,fr=!!(Or||we.length||Lt.length),Xr=!!kn.current&&(0,Rt.Z)(kn.current),[Pr,Yr]=x.useState(null);(0,ct.Z)(()=>{if(fr&&kn.current){const Un=getComputedStyle(kn.current);Yr(parseInt(Un.marginBottom,10))}},[fr,Xr]);const Lr=Un=>{Un||Yr(null)},zn=function(){let Un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=Un?Tn:Ce.errors,Qr=Un?Mn:Ce.warnings;return kt(mr,Qr,Ce,"",!!Vt,W)}(),or=O()(Pt,K,H,{[`${Pt}-with-help`]:Or||Tn.length||Mn.length,[`${Pt}-has-feedback`]:zn&&Vt,[`${Pt}-has-success`]:zn==="success",[`${Pt}-has-warning`]:zn==="warning",[`${Pt}-has-error`]:zn==="error",[`${Pt}-is-validating`]:zn==="validating",[`${Pt}-hidden`]:sn});return x.createElement("div",{className:or,style:J,ref:kn},x.createElement(gn.Z,Object.assign({className:`${Pt}-row`},(0,Cn.Z)(En,["_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"])),x.createElement(Ji,Object.assign({htmlFor:Ln},m,{requiredMark:pn,required:ir!=null?ir:Ve,prefixCls:F})),x.createElement(ke,Object.assign({},m,Ce,{errors:Tn,warnings:Mn,prefixCls:F,status:zn,help:ae,marginBottom:Pr,onErrorVisibleChanged:Lr}),x.createElement(y.qI.Provider,{value:Bn},x.createElement(N,{prefixCls:F,meta:Ce,errors:Ce.errors,warnings:Ce.warnings,hasFeedback:Vt,validateStatus:zn},Jt)))),!!Pr&&x.createElement("div",{className:`${Pt}-margin-offset`,style:{marginBottom:-Pr}}))}const ee="__SPLIT__",Ye=null,Pe=x.memo(m=>{let{children:F}=m;return F},(m,F)=>m.value===F.value&&m.update===F.update&&m.childProps.length===F.childProps.length&&m.childProps.every((K,H)=>K===F.childProps[H]));function De(m){return m!=null}function pt(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Bt(m){const{name:F,noStyle:K,className:H,dependencies:J,prefixCls:ae,shouldUpdate:we,rules:Lt,children:W,required:Ce,label:Vt,messageVariables:sn,trigger:Jt="onChange",validateTrigger:Ln,hidden:ir,help:Ve}=m,{getPrefixCls:Bn}=x.useContext(wt.E_),{name:En}=x.useContext(y.q3),Pt=Dt(W),pn=typeof Pt=="function",kn=x.useContext(y.qI),{validateTrigger:Tn}=x.useContext(Tt.FieldContext),Mn=Ln!==void 0?Ln:Tn,Or=De(F),fr=Bn("form",ae),[Xr,Pr]=X(fr),Yr=x.useContext(Tt.ListContext),Lr=x.useRef(),[Qn,zn]=tn({}),[or,Un]=(0,je.Z)(()=>pt()),mr=Kn=>{const dr=Yr==null?void 0:Yr.getKey(Kn.name);if(Un(Kn.destroy?pt():Kn,!0),K&&Ve!==!1&&kn){let yr=Kn.name;if(Kn.destroy)yr=Lr.current||yr;else if(dr!==void 0){const[kr,ci]=dr;yr=[kr].concat((0,T.Z)(ci)),Lr.current=yr}kn(Kn,yr)}},Qr=(Kn,dr)=>{zn(yr=>{const kr=Object.assign({},yr),tr=[].concat((0,T.Z)(Kn.name.slice(0,-1)),(0,T.Z)(dr)).join(ee);return Kn.destroy?delete kr[tr]:kr[tr]=Kn,kr})},[Dr,mi]=x.useMemo(()=>{const Kn=(0,T.Z)(or.errors),dr=(0,T.Z)(or.warnings);return Object.values(Qn).forEach(yr=>{Kn.push.apply(Kn,(0,T.Z)(yr.errors||[])),dr.push.apply(dr,(0,T.Z)(yr.warnings||[]))}),[Kn,dr]},[Qn,or.errors,or.warnings]),Ci=jt();function qi(Kn,dr,yr){return K&&!ir?x.createElement(N,{prefixCls:fr,hasFeedback:m.hasFeedback,validateStatus:m.validateStatus,meta:or,errors:Dr,warnings:mi,noStyle:!0},Kn):x.createElement(Y,Object.assign({key:"row"},m,{className:O()(H,Pr),prefixCls:fr,fieldId:dr,isRequired:yr,errors:Dr,warnings:mi,meta:or,onSubItemMetaChange:Qr}),Kn)}if(!Or&&!pn&&!J)return Xr(qi(Pt));let Br={};return typeof Vt=="string"?Br.label=Vt:F&&(Br.label=String(F)),sn&&(Br=Object.assign(Object.assign({},Br),sn)),Xr(x.createElement(Tt.Field,Object.assign({},m,{messageVariables:Br,trigger:Jt,validateTrigger:Mn,onMetaChange:mr}),(Kn,dr,yr)=>{const kr=ve(F).length&&dr?dr.name:[],ci=at(kr,En),tr=Ce!==void 0?Ce:!!(Lt&&Lt.some(vr=>{if(vr&&typeof vr=="object"&&vr.required&&!vr.warningOnly)return!0;if(typeof vr=="function"){const eo=vr(yr);return eo&&eo.required&&!eo.warningOnly}return!1})),zi=Object.assign({},Kn);let Wi=null;if(Array.isArray(Pt)&&Or)Wi=Pt;else if(!(pn&&(!(we||J)||Or))){if(!(J&&!pn&&!Or))if((0,St.l$)(Pt)){const vr=Object.assign(Object.assign({},Pt.props),zi);if(vr.id||(vr.id=ci),Ve||Dr.length>0||mi.length>0||m.extra){const to=[];(Ve||Dr.length>0)&&to.push(`${ci}_help`),m.extra&&to.push(`${ci}_extra`),vr["aria-describedby"]=to.join(" ")}Dr.length>0&&(vr["aria-invalid"]="true"),tr&&(vr["aria-required"]="true"),(0,Ne.Yr)(Pt)&&(vr.ref=Ci(kr,Pt)),new Set([].concat((0,T.Z)(ve(Jt)),(0,T.Z)(ve(Mn)))).forEach(to=>{vr[to]=function(){for(var Ro,Yo,mo,Jr,Oo,no=arguments.length,xi=new Array(no),yo=0;yo<no;yo++)xi[yo]=arguments[yo];(mo=zi[to])===null||mo===void 0||(Ro=mo).call.apply(Ro,[zi].concat(xi)),(Oo=(Jr=Pt.props)[to])===null||Oo===void 0||(Yo=Oo).call.apply(Yo,[Jr].concat(xi))}});const Hi=[vr["aria-required"],vr["aria-invalid"],vr["aria-describedby"]];Wi=x.createElement(Pe,{value:zi[m.valuePropName||"value"],update:Pt,childProps:Hi},(0,St.Tm)(Pt,vr))}else pn&&(we||J)&&!Or?Wi=Pt(yr):Wi=Pt}return qi(Wi,ci,tr)}))}const Yt=Bt;Yt.useStatus=Et;var Wt=Yt,ot=function(m,F){var K={};for(var H in m)Object.prototype.hasOwnProperty.call(m,H)&&F.indexOf(H)<0&&(K[H]=m[H]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,H=Object.getOwnPropertySymbols(m);J<H.length;J++)F.indexOf(H[J])<0&&Object.prototype.propertyIsEnumerable.call(m,H[J])&&(K[H[J]]=m[H[J]]);return K},mt=m=>{var{prefixCls:F,children:K}=m,H=ot(m,["prefixCls","children"]);const{getPrefixCls:J}=x.useContext(wt.E_),ae=J("form",F),we=x.useMemo(()=>({prefixCls:ae,status:"error"}),[ae]);return x.createElement(Tt.List,Object.assign({},H),(Lt,W,Ce)=>x.createElement(y.Rk.Provider,{value:we},K(Lt.map(Vt=>Object.assign(Object.assign({},Vt),{fieldKey:Vt.key})),W,{errors:Ce.errors,warnings:Ce.warnings})))};function Qt(){const{form:m}=(0,x.useContext)(y.q3);return m}const Ot=Re;Ot.Item=Wt,Ot.List=mt,Ot.ErrorList=oe,Ot.useForm=ut,Ot.useFormInstance=Qt,Ot.useWatch=Tt.useWatch,Ot.Provider=y.RV,Ot.create=()=>{};var Qe=Ot},82586:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return nt},n:function(){return P}});var T=g(30186),Q=g(94184),O=g.n(Q),q=g(67656),x=g(17799),M=g(67294),y=g(9708),de=g(53124),j=g(98866),v=g(98675),Me=g(65223),se=g(4173),be=g(72922),Se=g(47673);function Ie(V){return!!(V.prefix||V.suffix||V.allowClear)}var ce=function(V,ne){var b={};for(var h in V)Object.prototype.hasOwnProperty.call(V,h)&&ne.indexOf(h)<0&&(b[h]=V[h]);if(V!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,h=Object.getOwnPropertySymbols(V);I<h.length;I++)ne.indexOf(h[I])<0&&Object.prototype.propertyIsEnumerable.call(V,h[I])&&(b[h[I]]=V[h[I]]);return b};function P(V,ne){if(!V)return;V.focus(ne);const{cursor:b}=ne||{};if(b){const h=V.value.length;switch(b){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(h,h);break;default:V.setSelectionRange(0,h);break}}}var nt=(0,M.forwardRef)((V,ne)=>{var b;const{prefixCls:h,bordered:I=!0,status:A,size:X,disabled:$,onBlur:ze,onFocus:re,suffix:oe,allowClear:Tt,addonAfter:wt,addonBefore:on,className:Xt,style:On,styles:ye,rootClassName:Ue,onChange:pe,classNames:ve}=V,at=ce(V,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:kt,direction:lt,input:ut}=M.useContext(de.E_),dt=kt("input",h),Wn=(0,M.useRef)(null),[ar,Oe]=(0,Se.ZP)(dt),{compactSize:Re,compactItemClassnames:je}=(0,se.ri)(dt,lt),Ne=(0,v.Z)(xn=>{var rr;return(rr=X!=null?X:Re)!==null&&rr!==void 0?rr:xn}),St=M.useContext(j.Z),At=$!=null?$:St,{status:Dt,hasFeedback:Ct,feedbackIcon:Et}=(0,M.useContext)(Me.aM),zt=(0,y.F)(Dt,A),tn=Ie(V)||!!Ct,jt=(0,M.useRef)(tn);(0,M.useEffect)(()=>{var xn;tn&&jt.current,jt.current=tn},[tn]);const Rt=(0,be.Z)(Wn,!0),ct=xn=>{Rt(),ze==null||ze(xn)},Cn=xn=>{Rt(),re==null||re(xn)},gn=xn=>{Rt(),pe==null||pe(xn)},cn=(Ct||oe)&&M.createElement(M.Fragment,null,oe,Ct&&Et);let wr;return typeof Tt=="object"&&(Tt!=null&&Tt.clearIcon)?wr=Tt:Tt&&(wr={clearIcon:M.createElement(T.Z,null)}),ar(M.createElement(q.default,Object.assign({ref:(0,x.sQ)(ne,Wn),prefixCls:dt,autoComplete:ut==null?void 0:ut.autoComplete},at,{disabled:At,onBlur:ct,onFocus:Cn,style:Object.assign(Object.assign({},ut==null?void 0:ut.style),On),styles:Object.assign(Object.assign({},ut==null?void 0:ut.styles),ye),suffix:cn,allowClear:wr,className:O()(Xt,Ue,je,ut==null?void 0:ut.className),onChange:gn,addonAfter:wt&&M.createElement(se.BR,null,M.createElement(Me.Ux,{override:!0,status:!0},wt)),addonBefore:on&&M.createElement(se.BR,null,M.createElement(Me.Ux,{override:!0,status:!0},on)),classNames:Object.assign(Object.assign(Object.assign({},ve),ut==null?void 0:ut.classNames),{input:O()({[`${dt}-sm`]:Ne==="small",[`${dt}-lg`]:Ne==="large",[`${dt}-rtl`]:lt==="rtl",[`${dt}-borderless`]:!I},!tn&&(0,y.Z)(dt,zt),ve==null?void 0:ve.input,(b=ut==null?void 0:ut.classNames)===null||b===void 0?void 0:b.input,Oe)}),classes:{affixWrapper:O()({[`${dt}-affix-wrapper-sm`]:Ne==="small",[`${dt}-affix-wrapper-lg`]:Ne==="large",[`${dt}-affix-wrapper-rtl`]:lt==="rtl",[`${dt}-affix-wrapper-borderless`]:!I},(0,y.Z)(`${dt}-affix-wrapper`,zt,Ct),Oe),wrapper:O()({[`${dt}-group-rtl`]:lt==="rtl"},Oe),group:O()({[`${dt}-group-wrapper-sm`]:Ne==="small",[`${dt}-group-wrapper-lg`]:Ne==="large",[`${dt}-group-wrapper-rtl`]:lt==="rtl",[`${dt}-group-wrapper-disabled`]:At},(0,y.Z)(`${dt}-group-wrapper`,zt,Ct),Oe)}})))})},96330:function(Sn,me,g){"use strict";var T=g(30186),Q=g(94184),O=g.n(Q),q=g(64701),x=g(67294),M=g(9708),y=g(53124),de=g(98866),j=g(98675),v=g(65223),Me=g(82586),se=g(47673),be=function(Ie,ce){var P={};for(var xe in Ie)Object.prototype.hasOwnProperty.call(Ie,xe)&&ce.indexOf(xe)<0&&(P[xe]=Ie[xe]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,xe=Object.getOwnPropertySymbols(Ie);nt<xe.length;nt++)ce.indexOf(xe[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,xe[nt])&&(P[xe[nt]]=Ie[xe[nt]]);return P};const Se=(0,x.forwardRef)((Ie,ce)=>{const{prefixCls:P,bordered:xe=!0,size:nt,disabled:V,status:ne,allowClear:b,showCount:h,classNames:I,rootClassName:A,className:X}=Ie,$=be(Ie,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:ze,direction:re}=x.useContext(y.E_),oe=(0,j.Z)(nt),Tt=x.useContext(de.Z),wt=V!=null?V:Tt,{status:on,hasFeedback:Xt,feedbackIcon:On}=x.useContext(v.aM),ye=(0,M.F)(on,ne),Ue=x.useRef(null);x.useImperativeHandle(ce,()=>{var lt;return{resizableTextArea:(lt=Ue.current)===null||lt===void 0?void 0:lt.resizableTextArea,focus:ut=>{var dt,Wn;(0,Me.n)((Wn=(dt=Ue.current)===null||dt===void 0?void 0:dt.resizableTextArea)===null||Wn===void 0?void 0:Wn.textArea,ut)},blur:()=>{var ut;return(ut=Ue.current)===null||ut===void 0?void 0:ut.blur()}}});const pe=ze("input",P);let ve;typeof b=="object"&&(b!=null&&b.clearIcon)?ve=b:b&&(ve={clearIcon:x.createElement(T.Z,null)});const[at,kt]=(0,se.ZP)(pe);return at(x.createElement(q.default,Object.assign({},$,{disabled:wt,allowClear:ve,className:O()(X,A),classes:{affixWrapper:O()(`${pe}-textarea-affix-wrapper`,{[`${pe}-affix-wrapper-rtl`]:re==="rtl",[`${pe}-affix-wrapper-borderless`]:!xe,[`${pe}-affix-wrapper-sm`]:oe==="small",[`${pe}-affix-wrapper-lg`]:oe==="large",[`${pe}-textarea-show-count`]:h},(0,M.Z)(`${pe}-affix-wrapper`,ye),kt)},classNames:Object.assign(Object.assign({},I),{textarea:O()({[`${pe}-borderless`]:!xe,[`${pe}-sm`]:oe==="small",[`${pe}-lg`]:oe==="large"},(0,M.Z)(pe,ye),kt,I==null?void 0:I.textarea)}),prefixCls:pe,suffix:Xt&&x.createElement("span",{className:`${pe}-textarea-suffix`},On),showCount:h,ref:Ue})))});me.Z=Se},72922:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return Q}});var T=g(67294);function Q(O,q){const x=(0,T.useRef)([]),M=()=>{x.current.push(setTimeout(()=>{var y,de,j,v;!((y=O.current)===null||y===void 0)&&y.input&&((de=O.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&(!((j=O.current)===null||j===void 0)&&j.input.hasAttribute("value"))&&((v=O.current)===null||v===void 0||v.input.removeAttribute("value"))}))};return(0,T.useEffect)(()=>(q&&M(),()=>x.current.forEach(y=>{y&&clearTimeout(y)})),[]),M}},11486:function(Sn,me,g){"use strict";g.d(me,{default:function(){return On}});var T=g(94184),Q=g.n(T),O=g(67294),q=g(53124),x=g(65223),M=g(47673),de=ye=>{const{getPrefixCls:Ue,direction:pe}=(0,O.useContext)(q.E_),{prefixCls:ve,className:at}=ye,kt=Ue("input-group",ve),lt=Ue("input"),[ut,dt]=(0,M.ZP)(lt),Wn=Q()(kt,{[`${kt}-lg`]:ye.size==="large",[`${kt}-sm`]:ye.size==="small",[`${kt}-compact`]:ye.compact,[`${kt}-rtl`]:pe==="rtl"},dt,at),ar=(0,O.useContext)(x.aM),Oe=(0,O.useMemo)(()=>Object.assign(Object.assign({},ar),{isFormItemInput:!1}),[ar]);return ut(O.createElement("span",{className:Wn,style:ye.style,onMouseEnter:ye.onMouseEnter,onMouseLeave:ye.onMouseLeave,onFocus:ye.onFocus,onBlur:ye.onBlur},O.createElement(x.aM.Provider,{value:Oe},ye.children)))},j=g(82586),v=g(87462),Me={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"},se=Me,be=g(44327),Se=function(Ue,pe){return O.createElement(be.Z,(0,v.Z)({},Ue,{ref:pe,icon:se}))},Ie=O.forwardRef(Se),ce=g(43481),P=g(10366),xe=g(17799),nt=g(72922),V=function(ye,Ue){var pe={};for(var ve in ye)Object.prototype.hasOwnProperty.call(ye,ve)&&Ue.indexOf(ve)<0&&(pe[ve]=ye[ve]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,ve=Object.getOwnPropertySymbols(ye);at<ve.length;at++)Ue.indexOf(ve[at])<0&&Object.prototype.propertyIsEnumerable.call(ye,ve[at])&&(pe[ve[at]]=ye[ve[at]]);return pe};const ne=ye=>ye?O.createElement(ce.Z,null):O.createElement(Ie,null),b={click:"onClick",hover:"onMouseOver"};var I=O.forwardRef((ye,Ue)=>{const{visibilityToggle:pe=!0}=ye,ve=typeof pe=="object"&&pe.visible!==void 0,[at,kt]=(0,O.useState)(()=>ve?pe.visible:!1),lt=(0,O.useRef)(null);O.useEffect(()=>{ve&&kt(pe.visible)},[ve,pe]);const ut=(0,nt.Z)(lt),dt=()=>{const{disabled:tn}=ye;tn||(at&&ut(),kt(jt=>{var Rt;const ct=!jt;return typeof pe=="object"&&((Rt=pe.onVisibleChange)===null||Rt===void 0||Rt.call(pe,ct)),ct}))},Wn=tn=>{const{action:jt="click",iconRender:Rt=ne}=ye,ct=b[jt]||"",Cn=Rt(at),gn={[ct]:dt,className:`${tn}-icon`,key:"passwordIcon",onMouseDown:cn=>{cn.preventDefault()},onMouseUp:cn=>{cn.preventDefault()}};return O.cloneElement(O.isValidElement(Cn)?Cn:O.createElement("span",null,Cn),gn)},{className:ar,prefixCls:Oe,inputPrefixCls:Re,size:je}=ye,Ne=V(ye,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:St}=O.useContext(q.E_),At=St("input",Re),Dt=St("input-password",Oe),Ct=pe&&Wn(Dt),Et=Q()(Dt,ar,{[`${Dt}-${je}`]:!!je}),zt=Object.assign(Object.assign({},(0,P.Z)(Ne,["suffix","iconRender","visibilityToggle"])),{type:at?"text":"password",className:Et,prefixCls:At,suffix:Ct});return je&&(zt.size=je),O.createElement(j.Z,Object.assign({ref:(0,xe.sQ)(Ue,lt)},zt))}),A=g(47880),X=g(96159),$=g(71577),ze=g(98675),re=g(4173),oe=function(ye,Ue){var pe={};for(var ve in ye)Object.prototype.hasOwnProperty.call(ye,ve)&&Ue.indexOf(ve)<0&&(pe[ve]=ye[ve]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,ve=Object.getOwnPropertySymbols(ye);at<ve.length;at++)Ue.indexOf(ve[at])<0&&Object.prototype.propertyIsEnumerable.call(ye,ve[at])&&(pe[ve[at]]=ye[ve[at]]);return pe},wt=O.forwardRef((ye,Ue)=>{const{prefixCls:pe,inputPrefixCls:ve,className:at,size:kt,suffix:lt,enterButton:ut=!1,addonAfter:dt,loading:Wn,disabled:ar,onSearch:Oe,onChange:Re,onCompositionStart:je,onCompositionEnd:Ne}=ye,St=oe(ye,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:At,direction:Dt}=O.useContext(q.E_),Ct=O.useRef(!1),Et=At("input-search",pe),zt=At("input",ve),{compactSize:tn}=(0,re.ri)(Et,Dt),jt=(0,ze.Z)(Nn=>{var wn;return(wn=kt!=null?kt:tn)!==null&&wn!==void 0?wn:Nn}),Rt=O.useRef(null),ct=Nn=>{Nn&&Nn.target&&Nn.type==="click"&&Oe&&Oe(Nn.target.value,Nn,{source:"clear"}),Re&&Re(Nn)},Cn=Nn=>{var wn;document.activeElement===((wn=Rt.current)===null||wn===void 0?void 0:wn.input)&&Nn.preventDefault()},gn=Nn=>{var wn,ur;Oe&&Oe((ur=(wn=Rt.current)===null||wn===void 0?void 0:wn.input)===null||ur===void 0?void 0:ur.value,Nn,{source:"input"})},cn=Nn=>{Ct.current||Wn||gn(Nn)},wr=typeof ut=="boolean"?O.createElement(A.Z,null):null,xn=`${Et}-button`;let rr;const ke=ut||{},_r=ke.type&&ke.type.__ANT_BUTTON===!0;_r||ke.type==="button"?rr=(0,X.Tm)(ke,Object.assign({onMouseDown:Cn,onClick:Nn=>{var wn,ur;(ur=(wn=ke==null?void 0:ke.props)===null||wn===void 0?void 0:wn.onClick)===null||ur===void 0||ur.call(wn,Nn),gn(Nn)},key:"enterButton"},_r?{className:xn,size:jt}:{})):rr=O.createElement($.ZP,{className:xn,type:ut?"primary":void 0,size:jt,disabled:ar,key:"enterButton",onMouseDown:Cn,onClick:gn,loading:Wn,icon:wr},ut),dt&&(rr=[rr,(0,X.Tm)(dt,{key:"addonAfter"})]);const er=Q()(Et,{[`${Et}-rtl`]:Dt==="rtl",[`${Et}-${jt}`]:!!jt,[`${Et}-with-button`]:!!ut},at),Dn=Nn=>{Ct.current=!0,je==null||je(Nn)},$n=Nn=>{Ct.current=!1,Ne==null||Ne(Nn)};return O.createElement(j.Z,Object.assign({ref:(0,xe.sQ)(Rt,Ue),onPressEnter:cn},St,{size:jt,onCompositionStart:Dn,onCompositionEnd:$n,prefixCls:zt,addonAfter:rr,suffix:lt,onChange:ct,className:er,disabled:ar}))}),on=g(96330);const Xt=j.Z;Xt.Group=de,Xt.Search=wt,Xt.TextArea=on.Z,Xt.Password=I;var On=Xt},47673:function(Sn,me,g){"use strict";g.d(me,{M1:function(){return y},TM:function(){return ne},Xy:function(){return de},bi:function(){return Me},e5:function(){return V},ik:function(){return se},nz:function(){return x},pU:function(){return M},s7:function(){return be},x0:function(){return v}});var T=g(14747),Q=g(80110),O=g(45503),q=g(67968);const x=b=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:b,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),M=b=>({borderColor:b.hoverBorderColor}),y=b=>({borderColor:b.activeBorderColor,boxShadow:b.activeShadow,outline:0}),de=b=>({color:b.colorTextDisabled,backgroundColor:b.colorBgContainerDisabled,borderColor:b.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},M((0,O.TS)(b,{hoverBorderColor:b.colorBorder})))}),j=b=>{const{paddingBlockLG:h,fontSizeLG:I,lineHeightLG:A,borderRadiusLG:X,paddingInlineLG:$}=b;return{padding:`${h}px ${$}px`,fontSize:I,lineHeight:A,borderRadius:X}},v=b=>({padding:`${b.paddingBlockSM}px ${b.paddingInlineSM}px`,borderRadius:b.borderRadiusSM}),Me=(b,h)=>{const{componentCls:I,colorError:A,colorWarning:X,errorActiveShadow:$,warningActiveShadow:ze,colorErrorBorderHover:re,colorWarningBorderHover:oe}=b;return{[`&-status-error:not(${h}-disabled):not(${h}-borderless)${h}`]:{borderColor:A,"&:hover":{borderColor:re},"&:focus, &-focused":Object.assign({},y((0,O.TS)(b,{activeBorderColor:A,activeShadow:$}))),[`${I}-prefix, ${I}-suffix`]:{color:A}},[`&-status-warning:not(${h}-disabled):not(${h}-borderless)${h}`]:{borderColor:X,"&:hover":{borderColor:oe},"&:focus, &-focused":Object.assign({},y((0,O.TS)(b,{activeBorderColor:X,activeShadow:ze}))),[`${I}-prefix, ${I}-suffix`]:{color:X}}}},se=b=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${b.paddingBlock}px ${b.paddingInline}px`,color:b.colorText,fontSize:b.fontSize,lineHeight:b.lineHeight,backgroundColor:b.colorBgContainer,backgroundImage:"none",borderWidth:b.lineWidth,borderStyle:b.lineType,borderColor:b.colorBorder,borderRadius:b.borderRadius,transition:`all ${b.motionDurationMid}`},x(b.colorTextPlaceholder)),{"&:hover":Object.assign({},M(b)),"&:focus, &-focused":Object.assign({},y(b)),"&-disabled, &[disabled]":Object.assign({},de(b)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:b.controlHeight,lineHeight:b.lineHeight,verticalAlign:"bottom",transition:`all ${b.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},j(b)),"&-sm":Object.assign({},v(b)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),be=b=>{const{componentCls:h,antCls:I}=b;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:b.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${h}, &-lg > ${h}-group-addon`]:Object.assign({},j(b)),[`&-sm ${h}, &-sm > ${h}-group-addon`]:Object.assign({},v(b)),[`&-lg ${I}-select-single ${I}-select-selector`]:{height:b.controlHeightLG},[`&-sm ${I}-select-single ${I}-select-selector`]:{height:b.controlHeightSM},[`> ${h}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${h}-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 ${b.paddingInline}px`,color:b.colorText,fontWeight:"normal",fontSize:b.fontSize,textAlign:"center",backgroundColor:b.colorFillAlter,border:`${b.lineWidth}px ${b.lineType} ${b.colorBorder}`,borderRadius:b.borderRadius,transition:`all ${b.motionDurationSlow}`,lineHeight:1,[`${I}-select`]:{margin:`-${b.paddingBlock+1}px -${b.paddingInline}px`,[`&${I}-select-single:not(${I}-select-customize-input)`]:{[`${I}-select-selector`]:{backgroundColor:"inherit",border:`${b.lineWidth}px ${b.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${I}-select-selector`]:{color:b.colorPrimary}}},[`${I}-cascader-picker`]:{margin:`-9px -${b.paddingInline}px`,backgroundColor:"transparent",[`${I}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${h}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${h}-search-with-button &`]:{zIndex:0}}},[`> ${h}:first-child, ${h}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${I}-select ${I}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${h}-affix-wrapper`]:{[`&:not(:first-child) ${h}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${h}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${h}:last-child, ${h}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${I}-select ${I}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${h}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${h}-search &`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius}},[`&:not(:first-child), ${h}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${h}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,T.dF)()),{[`${h}-group-addon, ${h}-group-wrap, > ${h}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:b.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${h}-affix-wrapper,
|
|
|
& > ${h}-number-affix-wrapper,
|
|
|
& > ${I}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-b.lineWidth,borderInlineEndWidth:b.lineWidth},[`${h}`]:{float:"none"},[`& > ${I}-select > ${I}-select-selector,
|
|
|
& > ${I}-select-auto-complete ${h},
|
|
|
& > ${I}-cascader-picker ${h},
|
|
|
& > ${h}-group-wrapper ${h}`]:{borderInlineEndWidth:b.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${I}-select-focused`]:{zIndex:1},[`& > ${I}-select > ${I}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${I}-select:first-child > ${I}-select-selector,
|
|
|
& > ${I}-select-auto-complete:first-child ${h},
|
|
|
& > ${I}-cascader-picker:first-child ${h}`]:{borderStartStartRadius:b.borderRadius,borderEndStartRadius:b.borderRadius},[`& > *:last-child,
|
|
|
& > ${I}-select:last-child > ${I}-select-selector,
|
|
|
& > ${I}-cascader-picker:last-child ${h},
|
|
|
& > ${I}-cascader-picker-focused:last-child ${h}`]:{borderInlineEndWidth:b.lineWidth,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius},[`& > ${I}-select-auto-complete ${h}`]:{verticalAlign:"top"},[`${h}-group-wrapper + ${h}-group-wrapper`]:{marginInlineStart:-b.lineWidth,[`${h}-affix-wrapper`]:{borderRadius:0}},[`${h}-group-wrapper:not(:last-child)`]:{[`&${h}-search > ${h}-group`]:{[`& > ${h}-group-addon > ${h}-search-button`]:{borderRadius:0},[`& > ${h}`]:{borderStartStartRadius:b.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b.borderRadius}}}})}},Se=b=>{const{componentCls:h,controlHeightSM:I,lineWidth:A}=b,$=(I-A*2-16)/2;return{[h]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,T.Wf)(b)),se(b)),Me(b,h)),{'&[type="color"]':{height:b.controlHeight,[`&${h}-lg`]:{height:b.controlHeightLG},[`&${h}-sm`]:{height:I,paddingTop:$,paddingBottom:$}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},Ie=b=>{const{componentCls:h}=b;return{[`${h}-clear-icon`]:{margin:0,color:b.colorTextQuaternary,fontSize:b.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${b.motionDurationSlow}`,"&:hover":{color:b.colorTextTertiary},"&:active":{color:b.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${b.inputAffixPadding}px`}}}},ce=b=>{const{componentCls:h,inputAffixPadding:I,colorTextDescription:A,motionDurationSlow:X,colorIcon:$,colorIconHover:ze,iconCls:re}=b;return{[`${h}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se(b)),{display:"inline-flex",[`&:not(${h}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},M(b)),{zIndex:1,[`${h}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${h}[disabled]`]:{background:"transparent"}},[`> input${h}`]:{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"'},[`${h}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:b.paddingXS}},"&-show-count-suffix":{color:A},"&-show-count-has-suffix":{marginInlineEnd:b.paddingXXS},"&-prefix":{marginInlineEnd:I},"&-suffix":{marginInlineStart:I}}}),Ie(b)),{[`${re}${h}-password-icon`]:{color:$,cursor:"pointer",transition:`all ${X}`,"&:hover":{color:ze}}}),Me(b,`${h}-affix-wrapper`))}},P=b=>{const{componentCls:h,colorError:I,colorWarning:A,borderRadiusLG:X,borderRadiusSM:$}=b;return{[`${h}-group`]:Object.assign(Object.assign(Object.assign({},(0,T.Wf)(b)),be(b)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${h}-group-addon`]:{borderRadius:X,fontSize:b.fontSizeLG}},"&-sm":{[`${h}-group-addon`]:{borderRadius:$}},"&-status-error":{[`${h}-group-addon`]:{color:I,borderColor:I}},"&-status-warning":{[`${h}-group-addon`]:{color:A,borderColor:A}},"&-disabled":{[`${h}-group-addon`]:Object.assign({},de(b))},[`&:not(${h}-compact-first-item):not(${h}-compact-last-item)${h}-compact-item`]:{[`${h}, ${h}-group-addon`]:{borderRadius:0}},[`&:not(${h}-compact-last-item)${h}-compact-first-item`]:{[`${h}, ${h}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${h}-compact-first-item)${h}-compact-last-item`]:{[`${h}, ${h}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},xe=b=>{const{componentCls:h,antCls:I}=b,A=`${h}-search`;return{[A]:{[`${h}`]:{"&:hover, &:focus":{borderColor:b.colorPrimaryHover,[`+ ${h}-group-addon ${A}-button:not(${I}-btn-primary)`]:{borderInlineStartColor:b.colorPrimaryHover}}},[`${h}-affix-wrapper`]:{borderRadius:0},[`${h}-lg`]:{lineHeight:b.lineHeightLG-2e-4},[`> ${h}-group`]:{[`> ${h}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${A}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:b.borderRadius,borderEndEndRadius:b.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${A}-button:not(${I}-btn-primary)`]:{color:b.colorTextDescription,"&:hover":{color:b.colorPrimaryHover},"&:active":{color:b.colorPrimaryActive},[`&${I}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${A}-button`]:{height:b.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${A}-button`]:{height:b.controlHeightLG},[`&-small ${A}-button`]:{height:b.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${h}-compact-item`]:{[`&:not(${h}-compact-last-item)`]:{[`${h}-group-addon`]:{[`${h}-search-button`]:{marginInlineEnd:-b.lineWidth,borderRadius:0}}},[`&:not(${h}-compact-first-item)`]:{[`${h},${h}-affix-wrapper`]:{borderRadius:0}},[`> ${h}-group-addon ${h}-search-button,
|
|
|
> ${h},
|
|
|
${h}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${h}-affix-wrapper-focused`]:{zIndex:2}}}}},nt=b=>{const{componentCls:h,paddingLG:I}=b,A=`${h}-textarea`;return{[A]:{position:"relative","&-show-count":{[`> ${h}`]:{height:"100%"},[`${h}-data-count`]:{position:"absolute",bottom:-b.fontSize*b.lineHeight,insetInlineEnd:0,color:b.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${h}`]:{paddingInlineEnd:I}},[`&-affix-wrapper${A}-has-feedback`]:{[`${h}`]:{paddingInlineEnd:I}},[`&-affix-wrapper${h}-affix-wrapper`]:{padding:0,[`> textarea${h}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${h}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${h}-clear-icon`]:{position:"absolute",insetInlineEnd:b.paddingXS,insetBlockStart:b.paddingXS},[`${A}-suffix`]:{position:"absolute",top:0,insetInlineEnd:b.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function V(b){return(0,O.TS)(b,{inputAffixPadding:b.paddingXXS})}const ne=b=>{const{controlHeight:h,fontSize:I,lineHeight:A,lineWidth:X,controlHeightSM:$,controlHeightLG:ze,fontSizeLG:re,lineHeightLG:oe,paddingSM:Tt,controlPaddingHorizontalSM:wt,controlPaddingHorizontal:on,colorFillAlter:Xt,colorPrimaryHover:On,controlOutlineWidth:ye,controlOutline:Ue,colorErrorOutline:pe,colorWarningOutline:ve}=b;return{paddingBlock:Math.max(Math.round((h-I*A)/2*10)/10-X,3),paddingBlockSM:Math.max(Math.round(($-I*A)/2*10)/10-X,0),paddingBlockLG:Math.ceil((ze-re*oe)/2*10)/10-X,paddingInline:Tt-X,paddingInlineSM:wt-X,paddingInlineLG:on-X,addonBg:Xt,activeBorderColor:On,hoverBorderColor:On,activeShadow:`0 0 0 ${ye}px ${Ue}`,errorActiveShadow:`0 0 0 ${ye}px ${pe}`,warningActiveShadow:`0 0 0 ${ye}px ${ve}`}};me.ZP=(0,q.Z)("Input",b=>{const h=(0,O.TS)(b,V(b));return[Se(h),nt(h),ce(h),P(h),xe(h),(0,Q.c)(h)]},ne)},42563:function(Sn,me,g){"use strict";g.d(me,{default:function(){return eu}});var T=g(94184),Q=g.n(T),O=g(87462),q=g(74902),x=g(4942),M=g(1413),y=g(97685),de=g(45987),j=g(71002),v=g(67294),Me=g.t(v,2);function se(l){var u=v.useRef();u.current=l;var d=v.useCallback(function(){for(var p,C=arguments.length,E=new Array(C),R=0;R<C;R++)E[R]=arguments[R];return(p=u.current)===null||p===void 0?void 0:p.call.apply(p,[u].concat(E))},[]);return d}function be(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Se=be()?v.useLayoutEffect:v.useEffect,Ie=Se,ce=function(u,d){var p=v.useRef(!0);Se(function(){if(!p.current)return u()},d),Se(function(){return p.current=!1,function(){p.current=!0}},[])};function P(l){var u=v.useRef(!1),d=v.useState(l),p=(0,y.Z)(d,2),C=p[0],E=p[1];v.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);function R(z,Z){Z&&u.current||E(z)}return[C,R]}function xe(l){return l!==void 0}function nt(l,u){var d=u||{},p=d.defaultValue,C=d.value,E=d.onChange,R=d.postState,z=P(function(){return xe(C)?C:xe(p)?typeof p=="function"?p():p:typeof l=="function"?l():l}),Z=(0,y.Z)(z,2),k=Z[0],_=Z[1],U=C!==void 0?C:k,ue=R?R(U):U,B=se(E),le=P([U]),$e=(0,y.Z)(le,2),Te=$e[0],We=$e[1];ce(function(){var Ee=Te[0];k!==Ee&&B(k,Ee)},[Te]),ce(function(){xe(C)||_(C)},[C]);var He=se(function(Ee,fe){_(Ee,fe),We([U],fe)});return[ue,He]}var V={};function ne(l,u){}function b(l,u){}function h(){V={}}function I(l,u,d){!u&&!V[d]&&(l(!1,d),V[d]=!0)}function A(l,u){I(ne,l,u)}function X(l,u){I(b,l,u)}var $=A,ze=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var l=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(l)||/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(l==null?void 0:l.substr(0,4))},re={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(u){var d=u.keyCode;if(u.altKey&&!u.ctrlKey||u.metaKey||d>=re.F1&&d<=re.F12)return!1;switch(d){case re.ALT:case re.CAPS_LOCK:case re.CONTEXT_MENU:case re.CTRL:case re.DOWN:case re.END:case re.ESC:case re.HOME:case re.INSERT:case re.LEFT:case re.MAC_FF_META:case re.META:case re.NUMLOCK:case re.NUM_CENTER:case re.PAGE_DOWN:case re.PAGE_UP:case re.PAUSE:case re.PRINT_SCREEN:case re.RIGHT:case re.SHIFT:case re.UP:case re.WIN_KEY:case re.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(u){if(u>=re.ZERO&&u<=re.NINE||u>=re.NUM_ZERO&&u<=re.NUM_MULTIPLY||u>=re.A&&u<=re.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&u===0)return!0;switch(u){case re.SPACE:case re.QUESTION_MARK:case re.NUM_PLUS:case re.NUM_MINUS:case re.NUM_PERIOD:case re.NUM_DIVISION:case re.SEMICOLON:case re.DASH:case re.EQUALS:case re.COMMA:case re.PERIOD:case re.SLASH:case re.APOSTROPHE:case re.SINGLE_QUOTE:case re.OPEN_SQUARE_BRACKET:case re.BACKSLASH:case re.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},oe=re,Tt=g(47655);function wt(l,u,d){var p=v.useRef({});return(!("value"in p.current)||d(p.current.condition,u))&&(p.current.value=l(),p.current.condition=u),p.current.value}function on(l,u){typeof l=="function"?l(u):(0,j.Z)(l)==="object"&&l&&"current"in l&&(l.current=u)}function Xt(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var p=u.filter(function(C){return C});return p.length<=1?p[0]:function(C){u.forEach(function(E){on(E,C)})}}function On(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return wt(function(){return Xt.apply(void 0,u)},u,function(p,C){return p.length===C.length&&p.every(function(E,R){return E===C[R]})})}function ye(l){var u,d,p=(0,Tt.isMemo)(l)?l.type.type:l.type;return!(typeof p=="function"&&!((u=p.prototype)!==null&&u!==void 0&&u.render)||typeof l=="function"&&!((d=l.prototype)!==null&&d!==void 0&&d.render))}var Ue=function(u){var d=u.className,p=u.customizeIcon,C=u.customizeIconProps,E=u.onMouseDown,R=u.onClick,z=u.children,Z;return typeof p=="function"?Z=p(C):Z=p,v.createElement("span",{className:d,onMouseDown:function(_){_.preventDefault(),E&&E(_)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:R,"aria-hidden":!0},Z!==void 0?Z:v.createElement("span",{className:Q()(d.split(/\s+/).map(function(k){return"".concat(k,"-icon")}))},z))},pe=Ue;function ve(l,u,d,p,C){var E=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,R=arguments.length>6?arguments[6]:void 0,z=arguments.length>7?arguments[7]:void 0,Z=v.useMemo(function(){if((0,j.Z)(p)==="object")return p.clearIcon;if(C)return C},[p,C]),k=v.useMemo(function(){return!!(!E&&p&&(d.length||R)&&!(z==="combobox"&&R===""))},[p,E,d.length,R,z]);return{allowClear:k,clearIcon:v.createElement(pe,{className:"".concat(l,"-clear"),onMouseDown:u,customizeIcon:Z},"\xD7")}}var at=v.createContext(null);function kt(){return v.useContext(at)}function lt(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,u=v.useState(!1),d=(0,y.Z)(u,2),p=d[0],C=d[1],E=v.useRef(null),R=function(){window.clearTimeout(E.current)};v.useEffect(function(){return R},[]);var z=function(k,_){R(),E.current=window.setTimeout(function(){C(k),_&&_()},l)};return[p,z,R]}function ut(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,u=v.useRef(null),d=v.useRef(null);v.useEffect(function(){return function(){window.clearTimeout(d.current)}},[]);function p(C){(C||u.current===null)&&(u.current=C),window.clearTimeout(d.current),d.current=window.setTimeout(function(){u.current=null},l)}return[function(){return u.current},p]}function dt(l,u,d,p){var C=v.useRef(null);C.current={open:u,triggerOpen:d,customizedTrigger:p},v.useEffect(function(){function E(R){var z;if(!((z=C.current)!==null&&z!==void 0&&z.customizedTrigger)){var Z=R.target;Z.shadowRoot&&R.composed&&(Z=R.composedPath()[0]||Z),C.current.open&&l().filter(function(k){return k}).every(function(k){return!k.contains(Z)&&k!==Z})&&C.current.triggerOpen(!1)}}return window.addEventListener("mousedown",E),function(){return window.removeEventListener("mousedown",E)}},[])}var Wn=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
|
summary tabIndex target title type useMap value width wmode wrap`,ar=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Oe="".concat(Wn," ").concat(ar).split(/[\s\n]+/),Re="aria-",je="data-";function Ne(l,u){return l.indexOf(u)===0}function St(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d;u===!1?d={aria:!0,data:!0,attr:!0}:u===!0?d={aria:!0}:d=(0,M.Z)({},u);var p={};return Object.keys(l).forEach(function(C){(d.aria&&(C==="role"||Ne(C,Re))||d.data&&Ne(C,je)||d.attr&&Oe.includes(C))&&(p[C]=l[C])}),p}var At=g(48555),Dt=g(14075),Ct=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Et=void 0;function zt(l,u){var d=l.prefixCls,p=l.invalidate,C=l.item,E=l.renderItem,R=l.responsive,z=l.responsiveDisabled,Z=l.registerSize,k=l.itemKey,_=l.className,U=l.style,ue=l.children,B=l.display,le=l.order,$e=l.component,Te=$e===void 0?"div":$e,We=(0,de.Z)(l,Ct),He=R&&!B;function Ee(ht){Z(k,ht)}v.useEffect(function(){return function(){Ee(null)}},[]);var fe=E&&C!==Et?E(C):ue,ft;p||(ft={opacity:He?0:1,height:He?0:Et,overflowY:He?"hidden":Et,order:R?le:Et,pointerEvents:He?"none":Et,position:He?"absolute":Et});var Ze={};He&&(Ze["aria-hidden"]=!0);var vt=v.createElement(Te,(0,O.Z)({className:Q()(!p&&d,_),style:(0,M.Z)((0,M.Z)({},ft),U)},Ze,We,{ref:u}),fe);return R&&(vt=v.createElement(At.Z,{onResize:function(Ht){var it=Ht.offsetWidth;Ee(it)},disabled:z},vt)),vt}var tn=v.forwardRef(zt);tn.displayName="Item";var jt=tn,Rt=g(77527),ct=g(73935),Cn=g(96523);function gn(l){if(typeof MessageChannel=="undefined")(0,Cn.Z)(l);else{var u=new MessageChannel;u.port1.onmessage=function(){return l()},u.port2.postMessage(void 0)}}function cn(){var l=v.useRef(null),u=function(p){l.current||(l.current=[],gn(function(){(0,ct.unstable_batchedUpdates)(function(){l.current.forEach(function(C){C()}),l.current=null})})),l.current.push(p)};return u}function wr(l,u){var d=v.useState(u),p=(0,y.Z)(d,2),C=p[0],E=p[1],R=(0,Rt.Z)(function(z){l(function(){E(z)})});return[C,R]}var xn=v.createContext(null),rr=["component"],ke=["className"],_r=["className"],er=function(u,d){var p=v.useContext(xn);if(!p){var C=u.component,E=C===void 0?"div":C,R=(0,de.Z)(u,rr);return v.createElement(E,(0,O.Z)({},R,{ref:d}))}var z=p.className,Z=(0,de.Z)(p,ke),k=u.className,_=(0,de.Z)(u,_r);return v.createElement(xn.Provider,{value:null},v.createElement(jt,(0,O.Z)({ref:d,className:Q()(z,k)},Z,_)))},Dn=v.forwardRef(er);Dn.displayName="RawItem";var $n=Dn,Nn=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],wn="responsive",ur="invalidate";function cr(l){return"+ ".concat(l.length," ...")}function Zr(l,u){var d=l.prefixCls,p=d===void 0?"rc-overflow":d,C=l.data,E=C===void 0?[]:C,R=l.renderItem,z=l.renderRawItem,Z=l.itemKey,k=l.itemWidth,_=k===void 0?10:k,U=l.ssr,ue=l.style,B=l.className,le=l.maxCount,$e=l.renderRest,Te=l.renderRawRest,We=l.suffix,He=l.component,Ee=He===void 0?"div":He,fe=l.itemComponent,ft=l.onVisibleChange,Ze=(0,de.Z)(l,Nn),vt=U==="full",ht=cn(),Ht=wr(ht,null),it=(0,y.Z)(Ht,2),tt=it[0],_t=it[1],Ft=tt||0,yt=wr(ht,new Map),Je=(0,y.Z)(yt,2),Ke=Je[0],Le=Je[1],bt=wr(ht,0),st=(0,y.Z)(bt,2),Hn=st[0],Pn=st[1],fn=wr(ht,0),Vn=(0,y.Z)(fn,2),an=Vn[0],_n=Vn[1],Nr=wr(ht,0),gt=(0,y.Z)(Nr,2),Be=gt[0],qe=gt[1],nn=(0,v.useState)(null),un=(0,y.Z)(nn,2),ln=un[0],Mt=un[1],rn=(0,v.useState)(null),Fn=(0,y.Z)(rn,2),mn=Fn[0],Ut=Fn[1],Ge=v.useMemo(function(){return mn===null&&vt?Number.MAX_SAFE_INTEGER:mn||0},[mn,tt]),dn=(0,v.useState)(!1),vn=(0,y.Z)(dn,2),yn=vn[0],Er=vn[1],Mr="".concat(p,"-item"),br=Math.max(Hn,an),Ir=le===wn,In=E.length&&Ir,nr=le===ur,hr=In||typeof le=="number"&&E.length>le,Xn=(0,v.useMemo)(function(){var Zt=E;return In?tt===null&&vt?Zt=E:Zt=E.slice(0,Math.min(E.length,Ft/_)):typeof le=="number"&&(Zt=E.slice(0,le)),Zt},[E,_,tt,le,In]),Rr=(0,v.useMemo)(function(){return In?E.slice(Ge+1):E.slice(Xn.length)},[E,Xn,In,Ge]),Jn=(0,v.useCallback)(function(Zt,he){var et;return typeof Z=="function"?Z(Zt):(et=Z&&(Zt==null?void 0:Zt[Z]))!==null&&et!==void 0?et:he},[Z]),ai=(0,v.useCallback)(R||function(Zt){return Zt},[R]);function fi(Zt,he,et){mn===Zt&&(he===void 0||he===ln)||(Ut(Zt),et||(Er(Zt<E.length-1),ft==null||ft(Zt)),he!==void 0&&Mt(he))}function bi(Zt,he){_t(he.clientWidth)}function Sr(Zt,he){Le(function(et){var _e=new Map(et);return he===null?_e.delete(Zt):_e.set(Zt,he),_e})}function zr(Zt,he){_n(he),Pn(an)}function Ei(Zt,he){qe(he)}function Cr(Zt){return Ke.get(Jn(Xn[Zt],Zt))}(0,Dt.Z)(function(){if(Ft&&typeof br=="number"&&Xn){var Zt=Be,he=Xn.length,et=he-1;if(!he){fi(0,null);return}for(var _e=0;_e<he;_e+=1){var xt=Cr(_e);if(vt&&(xt=xt||0),xt===void 0){fi(_e-1,void 0,!0);break}if(Zt+=xt,et===0&&Zt<=Ft||_e===et-1&&Zt+Cr(et)<=Ft){fi(et,null);break}else if(Zt+br>Ft){fi(_e-1,Zt-xt-Be+an);break}}We&&Cr(0)+Be>Ft&&Mt(null)}},[Ft,Ke,an,Be,Jn,Xn]);var Ur=yn&&!!Rr.length,ji={};ln!==null&&In&&(ji={position:"absolute",left:ln,top:0});var Kr={prefixCls:Mr,responsive:In,component:fe,invalidate:nr},di=z?function(Zt,he){var et=Jn(Zt,he);return v.createElement(xn.Provider,{key:et,value:(0,M.Z)((0,M.Z)({},Kr),{},{order:he,item:Zt,itemKey:et,registerSize:Sr,display:he<=Ge})},z(Zt,he))}:function(Zt,he){var et=Jn(Zt,he);return v.createElement(jt,(0,O.Z)({},Kr,{order:he,key:et,item:Zt,renderItem:ai,itemKey:et,registerSize:Sr,display:he<=Ge}))},qn,hn={order:Ur?Ge:Number.MAX_SAFE_INTEGER,className:"".concat(Mr,"-rest"),registerSize:zr,display:Ur};if(Te)Te&&(qn=v.createElement(xn.Provider,{value:(0,M.Z)((0,M.Z)({},Kr),hn)},Te(Rr)));else{var jr=$e||cr;qn=v.createElement(jt,(0,O.Z)({},Kr,hn),typeof jr=="function"?jr(Rr):jr)}var Vr=v.createElement(Ee,(0,O.Z)({className:Q()(!nr&&p,B),style:ue,ref:u},Ze),Xn.map(di),hr?qn:null,We&&v.createElement(jt,(0,O.Z)({},Kr,{responsive:Ir,responsiveDisabled:!In,order:Ge,className:"".concat(Mr,"-suffix"),registerSize:Ei,display:!0,style:ji}),We));return Ir&&(Vr=v.createElement(At.Z,{onResize:bi,disabled:!In},Vr)),Vr}var oi=v.forwardRef(Zr);oi.displayName="Overflow",oi.Item=$n,oi.RESPONSIVE=wn,oi.INVALIDATE=ur;var Li=oi,uo=Li,Ji=function(u,d){var p,C,E=u.prefixCls,R=u.id,z=u.inputElement,Z=u.disabled,k=u.tabIndex,_=u.autoFocus,U=u.autoComplete,ue=u.editable,B=u.activeDescendantId,le=u.value,$e=u.maxLength,Te=u.onKeyDown,We=u.onMouseDown,He=u.onChange,Ee=u.onPaste,fe=u.onCompositionStart,ft=u.onCompositionEnd,Ze=u.open,vt=u.attrs,ht=z||v.createElement("input",null),Ht=ht,it=Ht.ref,tt=Ht.props,_t=tt.onKeyDown,Ft=tt.onChange,yt=tt.onMouseDown,Je=tt.onCompositionStart,Ke=tt.onCompositionEnd,Le=tt.style;return"maxLength"in ht.props,ht=v.cloneElement(ht,(0,M.Z)((0,M.Z)((0,M.Z)({type:"search"},tt),{},{id:R,ref:Xt(d,it),disabled:Z,tabIndex:k,autoComplete:U||"off",autoFocus:_,className:Q()("".concat(E,"-selection-search-input"),(p=ht)===null||p===void 0||(C=p.props)===null||C===void 0?void 0:C.className),role:"combobox","aria-label":"Search","aria-expanded":Ze||!1,"aria-haspopup":"listbox","aria-owns":"".concat(R,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(R,"_list"),"aria-activedescendant":Ze?B:void 0},vt),{},{value:ue?le:"",maxLength:$e,readOnly:!ue,unselectable:ue?null:"on",style:(0,M.Z)((0,M.Z)({},Le),{},{opacity:ue?null:0}),onKeyDown:function(st){Te(st),_t&&_t(st)},onMouseDown:function(st){We(st),yt&&yt(st)},onChange:function(st){He(st),Ft&&Ft(st)},onCompositionStart:function(st){fe(st),Je&&Je(st)},onCompositionEnd:function(st){ft(st),Ke&&Ke(st)},onPaste:Ee})),ht},po=v.forwardRef(Ji);po.displayName="Input";var Ti=po;function Fi(l){return Array.isArray(l)?l:l!==void 0?[l]:[]}var $i=typeof window!="undefined"&&window.document&&window.document.documentElement,co=$i;function N(l){return l!=null}function te(l){return!l&&l!==0}function Y(l){return["string","number"].includes((0,j.Z)(l))}function ee(l){var u=void 0;return l&&(Y(l.title)?u=l.title.toString():Y(l.label)&&(u=l.label.toString())),u}function Ye(l,u){co?v.useLayoutEffect(l,u):v.useEffect(l,u)}function Pe(l){var u;return(u=l.key)!==null&&u!==void 0?u:l.value}var De=function(u){u.preventDefault(),u.stopPropagation()},pt=function(u){var d=u.id,p=u.prefixCls,C=u.values,E=u.open,R=u.searchValue,z=u.autoClearSearchValue,Z=u.inputRef,k=u.placeholder,_=u.disabled,U=u.mode,ue=u.showSearch,B=u.autoFocus,le=u.autoComplete,$e=u.activeDescendantId,Te=u.tabIndex,We=u.removeIcon,He=u.maxTagCount,Ee=u.maxTagTextLength,fe=u.maxTagPlaceholder,ft=fe===void 0?function(Mt){return"+ ".concat(Mt.length," ...")}:fe,Ze=u.tagRender,vt=u.onToggleOpen,ht=u.onRemove,Ht=u.onInputChange,it=u.onInputPaste,tt=u.onInputKeyDown,_t=u.onInputMouseDown,Ft=u.onInputCompositionStart,yt=u.onInputCompositionEnd,Je=v.useRef(null),Ke=(0,v.useState)(0),Le=(0,y.Z)(Ke,2),bt=Le[0],st=Le[1],Hn=(0,v.useState)(!1),Pn=(0,y.Z)(Hn,2),fn=Pn[0],Vn=Pn[1],an="".concat(p,"-selection"),_n=E||U==="multiple"&&z===!1||U==="tags"?R:"",Nr=U==="tags"||U==="multiple"&&z===!1||ue&&(E||fn);Ye(function(){st(Je.current.scrollWidth)},[_n]);function gt(Mt,rn,Fn,mn,Ut){return v.createElement("span",{className:Q()("".concat(an,"-item"),(0,x.Z)({},"".concat(an,"-item-disabled"),Fn)),title:ee(Mt)},v.createElement("span",{className:"".concat(an,"-item-content")},rn),mn&&v.createElement(pe,{className:"".concat(an,"-item-remove"),onMouseDown:De,onClick:Ut,customizeIcon:We},"\xD7"))}function Be(Mt,rn,Fn,mn,Ut){var Ge=function(vn){De(vn),vt(!E)};return v.createElement("span",{onMouseDown:Ge},Ze({label:rn,value:Mt,disabled:Fn,closable:mn,onClose:Ut}))}function qe(Mt){var rn=Mt.disabled,Fn=Mt.label,mn=Mt.value,Ut=!_&&!rn,Ge=Fn;if(typeof Ee=="number"&&(typeof Fn=="string"||typeof Fn=="number")){var dn=String(Ge);dn.length>Ee&&(Ge="".concat(dn.slice(0,Ee),"..."))}var vn=function(Er){Er&&Er.stopPropagation(),ht(Mt)};return typeof Ze=="function"?Be(mn,Ge,rn,Ut,vn):gt(Mt,Ge,rn,Ut,vn)}function nn(Mt){var rn=typeof ft=="function"?ft(Mt):ft;return gt({title:rn},rn,!1)}var un=v.createElement("div",{className:"".concat(an,"-search"),style:{width:bt},onFocus:function(){Vn(!0)},onBlur:function(){Vn(!1)}},v.createElement(Ti,{ref:Z,open:E,prefixCls:p,id:d,inputElement:null,disabled:_,autoFocus:B,autoComplete:le,editable:Nr,activeDescendantId:$e,value:_n,onKeyDown:tt,onMouseDown:_t,onChange:Ht,onPaste:it,onCompositionStart:Ft,onCompositionEnd:yt,tabIndex:Te,attrs:St(u,!0)}),v.createElement("span",{ref:Je,className:"".concat(an,"-search-mirror"),"aria-hidden":!0},_n,"\xA0")),ln=v.createElement(uo,{prefixCls:"".concat(an,"-overflow"),data:C,renderItem:qe,renderRest:nn,suffix:un,itemKey:Pe,maxCount:He});return v.createElement(v.Fragment,null,ln,!C.length&&!_n&&v.createElement("span",{className:"".concat(an,"-placeholder")},k))},Bt=pt,Yt=function(u){var d=u.inputElement,p=u.prefixCls,C=u.id,E=u.inputRef,R=u.disabled,z=u.autoFocus,Z=u.autoComplete,k=u.activeDescendantId,_=u.mode,U=u.open,ue=u.values,B=u.placeholder,le=u.tabIndex,$e=u.showSearch,Te=u.searchValue,We=u.activeValue,He=u.maxLength,Ee=u.onInputKeyDown,fe=u.onInputMouseDown,ft=u.onInputChange,Ze=u.onInputPaste,vt=u.onInputCompositionStart,ht=u.onInputCompositionEnd,Ht=u.title,it=v.useState(!1),tt=(0,y.Z)(it,2),_t=tt[0],Ft=tt[1],yt=_==="combobox",Je=yt||$e,Ke=ue[0],Le=Te||"";yt&&We&&!_t&&(Le=We),v.useEffect(function(){yt&&Ft(!1)},[yt,We]);var bt=_!=="combobox"&&!U&&!$e?!1:!!Le,st=Ht===void 0?ee(Ke):Ht,Hn=function(){if(Ke)return null;var fn=bt?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(p,"-selection-placeholder"),style:fn},B)};return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(p,"-selection-search")},v.createElement(Ti,{ref:E,prefixCls:p,id:C,open:U,inputElement:d,disabled:R,autoFocus:z,autoComplete:Z,editable:Je,activeDescendantId:k,value:Le,onKeyDown:Ee,onMouseDown:fe,onChange:function(fn){Ft(!0),ft(fn)},onPaste:Ze,onCompositionStart:vt,onCompositionEnd:ht,tabIndex:le,attrs:St(u,!0),maxLength:yt?He:void 0})),!yt&&Ke?v.createElement("span",{className:"".concat(p,"-selection-item"),title:st,style:bt?{visibility:"hidden"}:void 0},Ke.label):null,Hn())},Wt=Yt;function ot(l){return![oe.ESC,oe.SHIFT,oe.BACKSPACE,oe.TAB,oe.WIN_KEY,oe.ALT,oe.META,oe.WIN_KEY_RIGHT,oe.CTRL,oe.SEMICOLON,oe.EQUALS,oe.CAPS_LOCK,oe.CONTEXT_MENU,oe.F1,oe.F2,oe.F3,oe.F4,oe.F5,oe.F6,oe.F7,oe.F8,oe.F9,oe.F10,oe.F11,oe.F12].includes(l)}var $t=function(u,d){var p=(0,v.useRef)(null),C=(0,v.useRef)(!1),E=u.prefixCls,R=u.open,z=u.mode,Z=u.showSearch,k=u.tokenWithEnter,_=u.autoClearSearchValue,U=u.onSearch,ue=u.onSearchSubmit,B=u.onToggleOpen,le=u.onInputKeyDown,$e=u.domRef;v.useImperativeHandle(d,function(){return{focus:function(){p.current.focus()},blur:function(){p.current.blur()}}});var Te=ut(0),We=(0,y.Z)(Te,2),He=We[0],Ee=We[1],fe=function(Le){var bt=Le.which;(bt===oe.UP||bt===oe.DOWN)&&Le.preventDefault(),le&&le(Le),bt===oe.ENTER&&z==="tags"&&!C.current&&!R&&(ue==null||ue(Le.target.value)),ot(bt)&&B(!0)},ft=function(){Ee(!0)},Ze=(0,v.useRef)(null),vt=function(Le){U(Le,!0,C.current)!==!1&&B(!0)},ht=function(){C.current=!0},Ht=function(Le){C.current=!1,z!=="combobox"&&vt(Le.target.value)},it=function(Le){var bt=Le.target.value;if(k&&Ze.current&&/[\r\n]/.test(Ze.current)){var st=Ze.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");bt=bt.replace(st,Ze.current)}Ze.current=null,vt(bt)},tt=function(Le){var bt=Le.clipboardData,st=bt.getData("text");Ze.current=st},_t=function(Le){var bt=Le.target;if(bt!==p.current){var st=document.body.style.msTouchAction!==void 0;st?setTimeout(function(){p.current.focus()}):p.current.focus()}},Ft=function(Le){var bt=He();Le.target!==p.current&&!bt&&z!=="combobox"&&Le.preventDefault(),(z!=="combobox"&&(!Z||!bt)||!R)&&(R&&_!==!1&&U("",!0,!1),B())},yt={inputRef:p,onInputKeyDown:fe,onInputMouseDown:ft,onInputChange:it,onInputPaste:tt,onInputCompositionStart:ht,onInputCompositionEnd:Ht},Je=z==="multiple"||z==="tags"?v.createElement(Bt,(0,O.Z)({},u,yt)):v.createElement(Wt,(0,O.Z)({},u,yt));return v.createElement("div",{ref:$e,className:"".concat(E,"-selector"),onClick:_t,onMouseDown:Ft},Je)},mt=v.forwardRef($t);mt.displayName="Selector";var Qt=mt,Ot=v.createContext(null),Qe=Ot,m=[];function F(l,u){var d=v.useState(function(){if(!be())return null;var le=document.createElement("div");return le}),p=(0,y.Z)(d,1),C=p[0],E=v.useRef(!1),R=v.useContext(Qe),z=v.useState(m),Z=(0,y.Z)(z,2),k=Z[0],_=Z[1],U=R||(E.current?void 0:function(le){_(function($e){var Te=[le].concat((0,q.Z)($e));return Te})});function ue(){C.parentElement||document.body.appendChild(C),E.current=!0}function B(){var le;(le=C.parentElement)===null||le===void 0||le.removeChild(C),E.current=!1}return Ie(function(){return l?R?R(ue):ue():B(),B},[l]),Ie(function(){k.length&&(k.forEach(function(le){return le()}),_(m))},[k]),[C,U]}function K(l,u){if(!l)return!1;if(l.contains)return l.contains(u);for(var d=u;d;){if(d===l)return!0;d=d.parentNode}return!1}var H="data-rc-order",J="rc-util-key",ae=new Map;function we(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=l.mark;return u?u.startsWith("data-")?u:"data-".concat(u):J}function Lt(l){if(l.attachTo)return l.attachTo;var u=document.querySelector("head");return u||document.body}function W(l){return l==="queue"?"prependQueue":l?"prepend":"append"}function Ce(l){return Array.from((ae.get(l)||l).children).filter(function(u){return u.tagName==="STYLE"})}function Vt(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!be())return null;var d=u.csp,p=u.prepend,C=document.createElement("style");C.setAttribute(H,W(p)),d!=null&&d.nonce&&(C.nonce=d==null?void 0:d.nonce),C.innerHTML=l;var E=Lt(u),R=E.firstChild;if(p){if(p==="queue"){var z=Ce(E).filter(function(Z){return["prepend","prependQueue"].includes(Z.getAttribute(H))});if(z.length)return E.insertBefore(C,z[z.length-1].nextSibling),C}E.insertBefore(C,R)}else E.appendChild(C);return C}function sn(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=Lt(u);return Ce(d).find(function(p){return p.getAttribute(we(u))===l})}function Jt(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=sn(l,u);if(d){var p=Lt(u);p.removeChild(d)}}function Ln(l,u){var d=ae.get(l);if(!d||!K(document,d)){var p=Vt("",u),C=p.parentNode;ae.set(l,C),l.removeChild(p)}}function ir(){ae.clear()}function Ve(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=Lt(d);Ln(p,d);var C=sn(u,d);if(C){var E,R;if((E=d.csp)!==null&&E!==void 0&&E.nonce&&C.nonce!==((R=d.csp)===null||R===void 0?void 0:R.nonce)){var z;C.nonce=(z=d.csp)===null||z===void 0?void 0:z.nonce}return C.innerHTML!==l&&(C.innerHTML=l),C}var Z=Vt(l,d);return Z.setAttribute(we(d),u),Z}var Bn;function En(l){if(typeof document=="undefined")return 0;if(l||Bn===void 0){var u=document.createElement("div");u.style.width="100%",u.style.height="200px";var d=document.createElement("div"),p=d.style;p.position="absolute",p.top="0",p.left="0",p.pointerEvents="none",p.visibility="hidden",p.width="200px",p.height="150px",p.overflow="hidden",d.appendChild(u),document.body.appendChild(d);var C=u.offsetWidth;d.style.overflow="scroll";var E=u.offsetWidth;C===E&&(E=d.clientWidth),document.body.removeChild(d),Bn=C-E}return Bn}function Pt(l){var u=l.match(/^(.*)px$/),d=Number(u==null?void 0:u[1]);return Number.isNaN(d)?En():d}function pn(l){if(typeof document=="undefined"||!l||!(l instanceof Element))return{width:0,height:0};var u=getComputedStyle(l,"::-webkit-scrollbar"),d=u.width,p=u.height;return{width:Pt(d),height:Pt(p)}}function kn(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Tn="rc-util-locker-".concat(Date.now()),Mn=0;function Or(l){var u=!!l,d=v.useState(function(){return Mn+=1,"".concat(Tn,"_").concat(Mn)}),p=(0,y.Z)(d,1),C=p[0];Ie(function(){if(u){var E=pn(document.body).width,R=kn();Ve(`
|
|
|
html body {
|
|
|
overflow-y: hidden;
|
|
|
`.concat(R?"width: calc(100% - ".concat(E,"px);"):"",`
|
|
|
}`),C)}else Jt(C);return function(){Jt(C)}},[u,C])}var fr=!1;function Xr(l){return typeof l=="boolean"&&(fr=l),fr}var Pr=function(u){return u===!1?!1:!be()||!u?null:typeof u=="string"?document.querySelector(u):typeof u=="function"?u():u},Yr=v.forwardRef(function(l,u){var d=l.open,p=l.autoLock,C=l.getContainer,E=l.debug,R=l.autoDestroy,z=R===void 0?!0:R,Z=l.children,k=v.useState(d),_=(0,y.Z)(k,2),U=_[0],ue=_[1],B=U||d;v.useEffect(function(){(z||d)&&ue(d)},[d,z]);var le=v.useState(function(){return Pr(C)}),$e=(0,y.Z)(le,2),Te=$e[0],We=$e[1];v.useEffect(function(){var _t=Pr(C);We(_t!=null?_t:null)});var He=F(B&&!Te,E),Ee=(0,y.Z)(He,2),fe=Ee[0],ft=Ee[1],Ze=Te!=null?Te:fe;Or(p&&d&&be()&&(Ze===fe||Ze===document.body));var vt=null;if(Z&&ye(Z)&&u){var ht=Z;vt=ht.ref}var Ht=On(vt,u);if(!B||!be()||Te===void 0)return null;var it=Ze===!1||Xr(),tt=Z;return u&&(tt=v.cloneElement(Z,{ref:Ht})),v.createElement(Qe.Provider,{value:ft},it?tt:(0,ct.createPortal)(tt,Ze))}),Lr=Yr,Qn=Lr;function zn(l){return l instanceof HTMLElement||l instanceof SVGElement}function or(l){return zn(l)?l:l instanceof React.Component?ReactDOM.findDOMNode(l):null}function Un(l){var u;return l==null||(u=l.getRootNode)===null||u===void 0?void 0:u.call(l)}function mr(l){return Un(l)instanceof ShadowRoot}function Qr(l){return mr(l)?Un(l):null}function Dr(l){var u=v.useRef();u.current=l;var d=v.useCallback(function(){for(var p,C=arguments.length,E=new Array(C),R=0;R<C;R++)E[R]=arguments[R];return(p=u.current)===null||p===void 0?void 0:p.call.apply(p,[u].concat(E))},[]);return d}function mi(){var l=(0,M.Z)({},Me);return l.useId}var Ci=0;function qi(){}var Br=mi(),Kn=Br?function(u){var d=Br();return u||d}:function(u){var d=v.useState("ssr-id"),p=(0,y.Z)(d,2),C=p[0],E=p[1];return v.useEffect(function(){var R=Ci;Ci+=1,E("rc_unique_".concat(R))},[]),u||C};function dr(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var yr=dr()?v.useLayoutEffect:v.useEffect,kr=function(u,d){var p=v.useRef(!0);yr(function(){return u(p.current)},d),yr(function(){return p.current=!1,function(){p.current=!0}},[])},ci=function(u,d){kr(function(p){if(!p)return u()},d)},tr=kr,zi=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var l=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(l)||/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(l==null?void 0:l.substr(0,4))},Wi=v.createContext(null),vr=Wi;function eo(l){return l?Array.isArray(l)?l:[l]:[]}function Hi(l,u,d,p){return v.useMemo(function(){var C=eo(d!=null?d:u),E=eo(p!=null?p:u),R=new Set(C),z=new Set(E);return l&&(R.has("hover")&&(R.delete("hover"),R.add("click")),z.has("hover")&&(z.delete("hover"),z.add("click"))),[R,z]},[l,u,d,p])}var to=function(l){if(!l)return!1;if(l instanceof Element){if(l.offsetParent)return!0;if(l.getBBox){var u=l.getBBox(),d=u.width,p=u.height;if(d||p)return!0}if(l.getBoundingClientRect){var C=l.getBoundingClientRect(),E=C.width,R=C.height;if(E||R)return!0}}return!1};function Ro(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=arguments.length>2?arguments[2]:void 0;return d?l[0]===u[0]:l[0]===u[0]&&l[1]===u[1]}function Yo(l,u,d,p){for(var C=d.points,E=Object.keys(l),R=0;R<E.length;R+=1){var z,Z=E[R];if(Ro((z=l[Z])===null||z===void 0?void 0:z.points,C,p))return"".concat(u,"-placement-").concat(Z)}return""}function mo(l,u,d,p){return u||(d?{motionName:"".concat(l,"-").concat(d)}:p?{motionName:p}:null)}function Jr(l){return l.ownerDocument.defaultView}function Oo(l){for(var u=[],d=l==null?void 0:l.parentElement,p=["hidden","scroll","clip","auto"];d;){var C=Jr(d).getComputedStyle(d),E=C.overflowX,R=C.overflowY,z=C.overflow;[E,R,z].some(function(Z){return p.includes(Z)})&&u.push(d),d=d.parentElement}return u}function no(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(l)?u:l}function xi(l){return no(parseFloat(l),0)}function yo(l,u){var d=(0,M.Z)({},l);return(u||[]).forEach(function(p){if(!(p instanceof HTMLBodyElement||p instanceof HTMLHtmlElement)){var C=Jr(p).getComputedStyle(p),E=C.overflow,R=C.overflowClipMargin,z=C.borderTopWidth,Z=C.borderBottomWidth,k=C.borderLeftWidth,_=C.borderRightWidth,U=p.getBoundingClientRect(),ue=p.offsetHeight,B=p.clientHeight,le=p.offsetWidth,$e=p.clientWidth,Te=xi(z),We=xi(Z),He=xi(k),Ee=xi(_),fe=no(Math.round(U.width/le*1e3)/1e3),ft=no(Math.round(U.height/ue*1e3)/1e3),Ze=(le-$e-He-Ee)*fe,vt=(ue-B-Te-We)*ft,ht=Te*ft,Ht=We*ft,it=He*fe,tt=Ee*fe,_t=0,Ft=0;if(E==="clip"){var yt=xi(R);_t=yt*fe,Ft=yt*ft}var Je=U.x+it-_t,Ke=U.y+ht-Ft,Le=Je+U.width+2*_t-it-tt-Ze,bt=Ke+U.height+2*Ft-ht-Ht-vt;d.left=Math.max(d.left,Je),d.top=Math.max(d.top,Ke),d.right=Math.min(d.right,Le),d.bottom=Math.min(d.bottom,bt)}}),d}function ro(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,d="".concat(u),p=d.match(/^(.*)\%$/);return p?l*(parseFloat(p[1])/100):parseFloat(d)}function Qo(l,u){var d=u||[],p=(0,y.Z)(d,2),C=p[0],E=p[1];return[ro(l.width,C),ro(l.height,E)]}function io(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[l[0],l[1]]}function Zi(l,u){var d=u[0],p=u[1],C,E;return d==="t"?E=l.y:d==="b"?E=l.y+l.height:E=l.y+l.height/2,p==="l"?C=l.x:p==="r"?C=l.x+l.width:C=l.x+l.width/2,{x:C,y:E}}function Pi(l,u){var d={t:"b",b:"t",l:"r",r:"l"};return l.map(function(p,C){return C===u?d[p]||"c":p}).join("")}function bo(l,u,d,p,C,E,R){var z=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:C[p]||{}}),Z=(0,y.Z)(z,2),k=Z[0],_=Z[1],U=v.useRef(0),ue=v.useMemo(function(){return u?Oo(u):[]},[u]),B=v.useRef({}),le=function(){B.current={}};l||le();var $e=Dr(function(){if(u&&d&&l){let Ri=function(xr,va){var _o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:dn,Va=st.x+xr,$o=st.y+va,e=Va+Be,t=$o+gt,r=Math.max(Va,_o.left),n=Math.max($o,_o.top),i=Math.min(e,_o.right),o=Math.min(t,_o.bottom);return Math.max(0,(i-r)*(o-n))},Fo=function(){sr=st.y+hn,hi=sr+gt,oo=st.x+qn,ho=oo+Be};var He,Ee,fe=u,ft=fe.ownerDocument,Ze=Jr(fe),vt=Ze.getComputedStyle(fe),ht=vt.width,Ht=vt.height,it=vt.position,tt=fe.style.left,_t=fe.style.top,Ft=fe.style.right,yt=fe.style.bottom,Je=(0,M.Z)((0,M.Z)({},C[p]),E),Ke=ft.createElement("div");(He=fe.parentElement)===null||He===void 0||He.appendChild(Ke),Ke.style.left="".concat(fe.offsetLeft,"px"),Ke.style.top="".concat(fe.offsetTop,"px"),Ke.style.position=it,Ke.style.height="".concat(fe.offsetHeight,"px"),Ke.style.width="".concat(fe.offsetWidth,"px"),fe.style.left="0",fe.style.top="0",fe.style.right="auto",fe.style.bottom="auto";var Le;if(Array.isArray(d))Le={x:d[0],y:d[1],width:0,height:0};else{var bt=d.getBoundingClientRect();Le={x:bt.x,y:bt.y,width:bt.width,height:bt.height}}var st=fe.getBoundingClientRect(),Hn=ft.documentElement,Pn=Hn.clientWidth,fn=Hn.clientHeight,Vn=Hn.scrollWidth,an=Hn.scrollHeight,_n=Hn.scrollTop,Nr=Hn.scrollLeft,gt=st.height,Be=st.width,qe=Le.height,nn=Le.width,un={left:0,top:0,right:Pn,bottom:fn},ln={left:-Nr,top:-_n,right:Vn-Nr,bottom:an-_n},Mt=Je.htmlRegion,rn="visible",Fn="visibleFirst";Mt!=="scroll"&&Mt!==Fn&&(Mt=rn);var mn=Mt===Fn,Ut=yo(ln,ue),Ge=yo(un,ue),dn=Mt===rn?Ge:Ut,vn=mn?Ge:dn;fe.style.left="auto",fe.style.top="auto",fe.style.right="0",fe.style.bottom="0";var yn=fe.getBoundingClientRect();fe.style.left=tt,fe.style.top=_t,fe.style.right=Ft,fe.style.bottom=yt,(Ee=fe.parentElement)===null||Ee===void 0||Ee.removeChild(Ke);var Er=no(Math.round(Be/parseFloat(ht)*1e3)/1e3),Mr=no(Math.round(gt/parseFloat(Ht)*1e3)/1e3);if(Er===0||Mr===0||zn(d)&&!to(d))return;var br=Je.offset,Ir=Je.targetOffset,In=Qo(st,br),nr=(0,y.Z)(In,2),hr=nr[0],Xn=nr[1],Rr=Qo(Le,Ir),Jn=(0,y.Z)(Rr,2),ai=Jn[0],fi=Jn[1];Le.x-=ai,Le.y-=fi;var bi=Je.points||[],Sr=(0,y.Z)(bi,2),zr=Sr[0],Ei=Sr[1],Cr=io(Ei),Ur=io(zr),ji=Zi(Le,Cr),Kr=Zi(st,Ur),di=(0,M.Z)({},Je),qn=ji.x-Kr.x+hr,hn=ji.y-Kr.y+Xn,jr=Ri(qn,hn),Vr=Ri(qn,hn,Ge),Zt=Zi(Le,["t","l"]),he=Zi(st,["t","l"]),et=Zi(Le,["b","r"]),_e=Zi(st,["b","r"]),xt=Je.overflow||{},Gn=xt.adjustX,Yn=xt.adjustY,vi=xt.shiftX,ei=xt.shiftY,li=function(va){return typeof va=="boolean"?va:va>=0},sr,hi,oo,ho;Fo();var Ko=li(Yn),ao=Ur[0]===Cr[0];if(Ko&&Ur[0]==="t"&&(hi>vn.bottom||B.current.bt)){var Wr=hn;ao?Wr-=gt-qe:Wr=Zt.y-_e.y-Xn;var Ia=Ri(qn,Wr),Gr=Ri(qn,Wr,Ge);Ia>jr||Ia===jr&&(!mn||Gr>=Vr)?(B.current.bt=!0,hn=Wr,Xn=-Xn,di.points=[Pi(Ur,0),Pi(Cr,0)]):B.current.bt=!1}if(Ko&&Ur[0]==="b"&&(sr<vn.top||B.current.tb)){var Eo=hn;ao?Eo+=gt-qe:Eo=et.y-he.y-Xn;var jo=Ri(qn,Eo),Ra=Ri(qn,Eo,Ge);jo>jr||jo===jr&&(!mn||Ra>=Vr)?(B.current.tb=!0,hn=Eo,Xn=-Xn,di.points=[Pi(Ur,0),Pi(Cr,0)]):B.current.tb=!1}var Oa=li(Gn),ca=Ur[1]===Cr[1];if(Oa&&Ur[1]==="l"&&(ho>vn.right||B.current.rl)){var Mi=qn;ca?Mi-=Be-nn:Mi=Zt.x-_e.x-hr;var fa=Ri(Mi,hn),No=Ri(Mi,hn,Ge);fa>jr||fa===jr&&(!mn||No>=Vr)?(B.current.rl=!0,qn=Mi,hr=-hr,di.points=[Pi(Ur,1),Pi(Cr,1)]):B.current.rl=!1}if(Oa&&Ur[1]==="r"&&(oo<vn.left||B.current.lr)){var Mo=qn;ca?Mo+=Be-nn:Mo=et.x-he.x-hr;var Ao=Ri(Mo,hn),Vo=Ri(Mo,hn,Ge);Ao>jr||Ao===jr&&(!mn||Vo>=Vr)?(B.current.lr=!0,qn=Mo,hr=-hr,di.points=[Pi(Ur,1),Pi(Cr,1)]):B.current.lr=!1}Fo();var Zn=vi===!0?0:vi;typeof Zn=="number"&&(oo<Ge.left&&(qn-=oo-Ge.left-hr,Le.x+nn<Ge.left+Zn&&(qn+=Le.x-Ge.left+nn-Zn)),ho>Ge.right&&(qn-=ho-Ge.right-hr,Le.x>Ge.right-Zn&&(qn+=Le.x-Ge.right+Zn)));var Io=ei===!0?0:ei;typeof Io=="number"&&(sr<Ge.top&&(hn-=sr-Ge.top-Xn,Le.y+qe<Ge.top+Io&&(hn+=Le.y-Ge.top+qe-Io)),hi>Ge.bottom&&(hn-=hi-Ge.bottom-Xn,Le.y>Ge.bottom-Io&&(hn+=Le.y-Ge.bottom+Io)));var lo=st.x+qn,Vi=lo+Be,ti=st.y+hn,Gi=ti+gt,Kt=Le.x,en=Kt+nn,Ar=Le.y,ni=Ar+qe,gr=Math.max(lo,Kt),si=Math.min(Vi,en),Ii=(gr+si)/2,go=Ii-lo,Ni=Math.max(ti,Ar),Rn=Math.min(Gi,ni),_i=(Ni+Rn)/2,da=_i-ti;R==null||R(u,di);var Go=yn.right-st.x-(qn+st.width),Jl=yn.bottom-st.y-(hn+st.height);_({ready:!0,offsetX:qn/Er,offsetY:hn/Mr,offsetR:Go/Er,offsetB:Jl/Mr,arrowX:go/Er,arrowY:da/Mr,scaleX:Er,scaleY:Mr,align:di})}}),Te=function(){U.current+=1;var Ee=U.current;Promise.resolve().then(function(){U.current===Ee&&$e()})},We=function(){_(function(Ee){return(0,M.Z)((0,M.Z)({},Ee),{},{ready:!1})})};return tr(We,[p]),tr(function(){l||We()},[l]),[k.ready,k.offsetX,k.offsetY,k.offsetR,k.offsetB,k.arrowX,k.arrowY,k.scaleX,k.scaleY,k.align,Te]}function Xa(l,u,d,p,C){tr(function(){if(l&&u&&d){let U=function(){p(),C()};var E=u,R=d,z=Oo(E),Z=Oo(R),k=Jr(R),_=new Set([k].concat((0,q.Z)(z),(0,q.Z)(Z)));return _.forEach(function(ue){ue.addEventListener("scroll",U,{passive:!0})}),k.addEventListener("resize",U,{passive:!0}),p(),function(){_.forEach(function(ue){ue.removeEventListener("scroll",U),k.removeEventListener("resize",U)})}}},[l,u,d])}function ql(l){var u=React.useRef(!1),d=React.useState(l),p=_slicedToArray(d,2),C=p[0],E=p[1];React.useEffect(function(){return u.current=!1,function(){u.current=!0}},[]);function R(z,Z){Z&&u.current||E(z)}return[C,R]}function Jo(l){return l!==void 0}function es(l,u){var d=u||{},p=d.defaultValue,C=d.value,E=d.onChange,R=d.postState,z=useState(function(){return Jo(C)?C:Jo(p)?typeof p=="function"?p():p:typeof l=="function"?l():l}),Z=_slicedToArray(z,2),k=Z[0],_=Z[1],U=C!==void 0?C:k,ue=R?R(U):U,B=useEvent(E),le=useState([U]),$e=_slicedToArray(le,2),Te=$e[0],We=$e[1];useLayoutUpdateEffect(function(){var Ee=Te[0];k!==Ee&&B(k,Ee)},[Te]),useLayoutUpdateEffect(function(){Jo(C)||_(C)},[C]);var He=useEvent(function(Ee,fe){_(Ee,fe),We([U],fe)});return[ue,He]}var Ya=g(71326);function Ta(l,u,d){var p=v.useRef({});return(!("value"in p.current)||d(p.current.condition,u))&&(p.current.value=l(),p.current.condition=u),p.current.value}function ga(l,u){typeof l=="function"?l(u):(0,j.Z)(l)==="object"&&l&&"current"in l&&(l.current=u)}function Pa(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var p=u.filter(function(C){return C});return p.length<=1?p[0]:function(C){u.forEach(function(E){ga(E,C)})}}function Qa(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];return Ta(function(){return Pa.apply(void 0,u)},u,function(p,C){return p.length!==C.length||p.every(function(E,R){return E!==C[R]})})}function Da(l){var u,d,p=(0,Ya.isMemo)(l)?l.type.type:l.type;return!(typeof p=="function"&&!((u=p.prototype)!==null&&u!==void 0&&u.render)||typeof l=="function"&&!((d=l.prototype)!==null&&d!==void 0&&d.render))}function wl(l){return!isValidElement(l)||isFragment(l)?!1:Da(l)}function Ja(l,u,d,p){if(!u.length)return d;var C=_toArray(u),E=C[0],R=C.slice(1),z;return!l&&typeof E=="number"?z=[]:Array.isArray(l)?z=_toConsumableArray(l):z=_objectSpread({},l),p&&d===void 0&&R.length===1?delete z[E][R[0]]:z[E]=Ja(z[E],R,d,p),z}function pa(l,u,d){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return u.length&&p&&d===void 0&&!get(l,u.slice(0,-1))?l:Ja(l,u,d,p)}function So(l){return _typeof(l)==="object"&&l!==null&&Object.getPrototypeOf(l)===Object.prototype}function Co(l){return Array.isArray(l)?[]:{}}var Gt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function qt(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];var p=Co(u[0]);return u.forEach(function(C){function E(R,z){var Z=new Set(z),k=get(C,R),_=Array.isArray(k);if(_||So(k)){if(!Z.has(k)){Z.add(k);var U=get(p,R);_?p=pa(p,R,[]):(!U||_typeof(U)!=="object")&&(p=pa(p,R,Co(k))),Gt(k).forEach(function(ue){E([].concat(_toConsumableArray(R),[ue]),Z)})}}else p=pa(p,R,k)}E([])}),p}var An={},Tr=[],lr=function(u){Tr.push(u)};function El(l,u){if(0)var d}function zo(l,u){if(0)var d}function qo(){An={}}function qa(l,u,d){!u&&!An[d]&&(l(!1,d),An[d]=!0)}function ea(l,u){qa(El,l,u)}function Na(l,u){qa(zo,l,u)}ea.preMessage=lr,ea.resetWarned=qo,ea.noteOnce=Na;var ts=null,Ml=function(u){return+setTimeout(u,16)},ns=function(u){return clearTimeout(u)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Ml=function(u){return window.requestAnimationFrame(u)},ns=function(u){return window.cancelAnimationFrame(u)});var rs=0,el=new Map;function Il(l){el.delete(l)}var is=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;rs+=1;var p=rs;function C(E){if(E===0)Il(p),u();else{var R=Ml(function(){C(E-1)});el.set(p,R)}}return C(d),p};is.cancel=function(l){var u=el.get(l);return Il(u),ns(u)};var ma=is;function Lo(l,u,d,p,C,E,R,z){var Z=v.useRef(l),k=v.useRef(!1);Z.current!==l&&(k.current=!0,Z.current=l),v.useEffect(function(){var _=ma(function(){k.current=!1});return function(){ma.cancel(_)}},[l]),v.useEffect(function(){if(u&&p&&(!C||E)){var _=function(){var it=!1,tt=function(yt){var Je=yt.target;it=R(Je)},_t=function(yt){var Je=yt.target;!k.current&&Z.current&&!it&&!R(Je)&&z(!1)};return[tt,_t]},U=_(),ue=(0,y.Z)(U,2),B=ue[0],le=ue[1],$e=_(),Te=(0,y.Z)($e,2),We=Te[0],He=Te[1],Ee=Jr(p);Ee.addEventListener("mousedown",B,!0),Ee.addEventListener("click",le,!0),Ee.addEventListener("contextmenu",le,!0);var fe=Qr(d);if(fe&&(fe.addEventListener("mousedown",We,!0),fe.addEventListener("click",He,!0),fe.addEventListener("contextmenu",He,!0)),0)var ft,Ze,vt,ht;return function(){Ee.removeEventListener("mousedown",B,!0),Ee.removeEventListener("click",le,!0),Ee.removeEventListener("contextmenu",le,!0),fe&&(fe.removeEventListener("mousedown",We,!0),fe.removeEventListener("click",He,!0),fe.removeEventListener("contextmenu",He,!0))}}},[u,d,p,C,E])}function tl(l){return l instanceof HTMLElement||l instanceof SVGElement}function Rl(l){return tl(l)?l:l instanceof v.Component?ct.findDOMNode(l):null}function Ol(l,u){var d={};return d[l.toLowerCase()]=u.toLowerCase(),d["Webkit".concat(l)]="webkit".concat(u),d["Moz".concat(l)]="moz".concat(u),d["ms".concat(l)]="MS".concat(u),d["O".concat(l)]="o".concat(u.toLowerCase()),d}function xo(l,u){var d={animationend:Ol("Animation","AnimationEnd"),transitionend:Ol("Transition","TransitionEnd")};return l&&("AnimationEvent"in u||delete d.animationend.animation,"TransitionEvent"in u||delete d.transitionend.transition),d}var ta=xo(be(),typeof window!="undefined"?window:{}),nl={};if(be()){var Ns=document.createElement("div");nl=Ns.style}var Aa={};function os(l){if(Aa[l])return Aa[l];var u=ta[l];if(u)for(var d=Object.keys(u),p=d.length,C=0;C<p;C+=1){var E=d[C];if(Object.prototype.hasOwnProperty.call(u,E)&&E in nl)return Aa[l]=u[E],Aa[l]}return""}var Ll=os("animationend"),rl=os("transitionend"),na=!!(Ll&&rl),fo=Ll||"animationend",Tl=rl||"transitionend";function Pl(l,u){if(!l)return null;if((0,j.Z)(l)==="object"){var d=u.replace(/-\w/g,function(p){return p[1].toUpperCase()});return l[d]}return"".concat(l,"-").concat(u)}var ya="none",il="appear",ol="enter",Fa="leave",Dl="none",Bi="prepare",ra="start",ia="active",$a="end",za=function(u){return+setTimeout(u,16)},Nl=function(u){return clearTimeout(u)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(za=function(u){return window.requestAnimationFrame(u)},Nl=function(u){return window.cancelAnimationFrame(u)});var al=0,ki=new Map;function Al(l){ki.delete(l)}var ll=function(u){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;al+=1;var p=al;function C(E){if(E===0)Al(p),u();else{var R=za(function(){C(E-1)});ki.set(p,R)}}return C(d),p};ll.cancel=function(l){var u=ki.get(l);return Al(u),Nl(u)};var sl=ll,as=function(){var l=v.useRef(null);function u(){sl.cancel(l.current)}function d(p){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;u();var E=sl(function(){C<=1?p({isCanceled:function(){return E!==l.current}}):d(p,C-1)});l.current=E}return v.useEffect(function(){return function(){u()}},[]),[d,u]},ls=be()?v.useLayoutEffect:v.useEffect,ul=ls,ss=[Bi,ra,ia,$a],us=!1,As=!0;function Wo(l){return l===ia||l===$a}var ba=function(l,u){var d=P(Dl),p=(0,y.Z)(d,2),C=p[0],E=p[1],R=as(),z=(0,y.Z)(R,2),Z=z[0],k=z[1];function _(){E(Bi,!0)}return ul(function(){if(C!==Dl&&C!==$a){var U=ss.indexOf(C),ue=ss[U+1],B=u(C);B===us?E(ue,!0):Z(function(le){function $e(){le.isCanceled()||E(ue,!0)}B===!0?$e():Promise.resolve(B).then($e)})}},[l,C]),v.useEffect(function(){return function(){k()}},[]),[_,C]},Sa=function(l){var u=(0,v.useRef)(),d=(0,v.useRef)(l);d.current=l;var p=v.useCallback(function(R){d.current(R)},[]);function C(R){R&&(R.removeEventListener(Tl,p),R.removeEventListener(fo,p))}function E(R){u.current&&u.current!==R&&C(u.current),R&&R!==u.current&&(R.addEventListener(Tl,p),R.addEventListener(fo,p),u.current=R)}return v.useEffect(function(){return function(){C(u.current)}},[]),[E,C]};function Fl(l,u,d,p){var C=p.motionEnter,E=C===void 0?!0:C,R=p.motionAppear,z=R===void 0?!0:R,Z=p.motionLeave,k=Z===void 0?!0:Z,_=p.motionDeadline,U=p.motionLeaveImmediately,ue=p.onAppearPrepare,B=p.onEnterPrepare,le=p.onLeavePrepare,$e=p.onAppearStart,Te=p.onEnterStart,We=p.onLeaveStart,He=p.onAppearActive,Ee=p.onEnterActive,fe=p.onLeaveActive,ft=p.onAppearEnd,Ze=p.onEnterEnd,vt=p.onLeaveEnd,ht=p.onVisibleChanged,Ht=P(),it=(0,y.Z)(Ht,2),tt=it[0],_t=it[1],Ft=P(ya),yt=(0,y.Z)(Ft,2),Je=yt[0],Ke=yt[1],Le=P(null),bt=(0,y.Z)(Le,2),st=bt[0],Hn=bt[1],Pn=(0,v.useRef)(!1),fn=(0,v.useRef)(null);function Vn(){return d()}var an=(0,v.useRef)(!1);function _n(Ut){var Ge=Vn();if(!(Ut&&!Ut.deadline&&Ut.target!==Ge)){var dn=an.current,vn;Je===il&&dn?vn=ft==null?void 0:ft(Ge,Ut):Je===ol&&dn?vn=Ze==null?void 0:Ze(Ge,Ut):Je===Fa&&dn&&(vn=vt==null?void 0:vt(Ge,Ut)),Je!==ya&&dn&&vn!==!1&&(Ke(ya,!0),Hn(null,!0))}}var Nr=Sa(_n),gt=(0,y.Z)(Nr,1),Be=gt[0],qe=v.useMemo(function(){var Ut,Ge,dn;switch(Je){case il:return Ut={},(0,x.Z)(Ut,Bi,ue),(0,x.Z)(Ut,ra,$e),(0,x.Z)(Ut,ia,He),Ut;case ol:return Ge={},(0,x.Z)(Ge,Bi,B),(0,x.Z)(Ge,ra,Te),(0,x.Z)(Ge,ia,Ee),Ge;case Fa:return dn={},(0,x.Z)(dn,Bi,le),(0,x.Z)(dn,ra,We),(0,x.Z)(dn,ia,fe),dn;default:return{}}},[Je]),nn=ba(Je,function(Ut){if(Ut===Bi){var Ge=qe[Bi];return Ge?Ge(Vn()):us}if(Mt in qe){var dn;Hn(((dn=qe[Mt])===null||dn===void 0?void 0:dn.call(qe,Vn(),null))||null)}return Mt===ia&&(Be(Vn()),_>0&&(clearTimeout(fn.current),fn.current=setTimeout(function(){_n({deadline:!0})},_))),As}),un=(0,y.Z)(nn,2),ln=un[0],Mt=un[1],rn=Wo(Mt);an.current=rn,ul(function(){_t(u);var Ut=Pn.current;if(Pn.current=!0,!!l){var Ge;!Ut&&u&&z&&(Ge=il),Ut&&u&&E&&(Ge=ol),(Ut&&!u&&k||!Ut&&U&&!u&&k)&&(Ge=Fa),Ge&&(Ke(Ge),ln())}},[u]),(0,v.useEffect)(function(){(Je===il&&!z||Je===ol&&!E||Je===Fa&&!k)&&Ke(ya)},[z,E,k]),(0,v.useEffect)(function(){return function(){Pn.current=!1,clearTimeout(fn.current)}},[]);var Fn=v.useRef(!1);(0,v.useEffect)(function(){tt&&(Fn.current=!0),tt!==void 0&&Je===ya&&((Fn.current||tt)&&(ht==null||ht(tt)),Fn.current=!0)},[tt,Je]);var mn=st;return qe[Bi]&&Mt===ra&&(mn=(0,M.Z)({transition:"none"},mn)),[Je,Mt,mn,tt!=null?tt:u]}var cl=g(15671),$l=g(43144),fl=g(60136),Ho=g(51630),oa=function(l){(0,fl.Z)(d,l);var u=(0,Ho.Z)(d);function d(){return(0,cl.Z)(this,d),u.apply(this,arguments)}return(0,$l.Z)(d,[{key:"render",value:function(){return this.props.children}}]),d}(v.Component),wi=oa;function Zo(l){var u=l;(0,j.Z)(l)==="object"&&(u=l.transitionSupport);function d(C){return!!(C.motionName&&u)}var p=v.forwardRef(function(C,E){var R=C.visible,z=R===void 0?!0:R,Z=C.removeOnLeave,k=Z===void 0?!0:Z,_=C.forceRender,U=C.children,ue=C.motionName,B=C.leavedClassName,le=C.eventProps,$e=d(C),Te=(0,v.useRef)(),We=(0,v.useRef)();function He(){try{return Te.current instanceof HTMLElement?Te.current:Rl(We.current)}catch(Le){return null}}var Ee=Fl($e,z,He,C),fe=(0,y.Z)(Ee,4),ft=fe[0],Ze=fe[1],vt=fe[2],ht=fe[3],Ht=v.useRef(ht);ht&&(Ht.current=!0);var it=v.useCallback(function(Le){Te.current=Le,on(E,Le)},[E]),tt,_t=(0,M.Z)((0,M.Z)({},le),{},{visible:z});if(!U)tt=null;else if(ft===ya||!d(C))ht?tt=U((0,M.Z)({},_t),it):!k&&Ht.current&&B?tt=U((0,M.Z)((0,M.Z)({},_t),{},{className:B}),it):_||!k&&!B?tt=U((0,M.Z)((0,M.Z)({},_t),{},{style:{display:"none"}}),it):tt=null;else{var Ft,yt;Ze===Bi?yt="prepare":Wo(Ze)?yt="active":Ze===ra&&(yt="start"),tt=U((0,M.Z)((0,M.Z)({},_t),{},{className:Q()(Pl(ue,ft),(Ft={},(0,x.Z)(Ft,Pl(ue,"".concat(ft,"-").concat(yt)),yt),(0,x.Z)(Ft,ue,typeof ue=="string"),Ft)),style:vt}),it)}if(v.isValidElement(tt)&&ye(tt)){var Je=tt,Ke=Je.ref;Ke||(tt=v.cloneElement(tt,{ref:it}))}return v.createElement(wi,{ref:We},tt)});return p.displayName="CSSMotion",p}var To=Zo(na),Wa=g(97326),zl="add",dl="keep",aa="remove",vl="removed";function cs(l){var u;return l&&(0,j.Z)(l)==="object"&&"key"in l?u=l:u={key:l},(0,M.Z)((0,M.Z)({},u),{},{key:String(u.key)})}function Ca(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return l.map(cs)}function Fs(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=[],p=0,C=u.length,E=Ca(l),R=Ca(u);E.forEach(function(k){for(var _=!1,U=p;U<C;U+=1){var ue=R[U];if(ue.key===k.key){p<U&&(d=d.concat(R.slice(p,U).map(function(B){return(0,M.Z)((0,M.Z)({},B),{},{status:zl})})),p=U),d.push((0,M.Z)((0,M.Z)({},ue),{},{status:dl})),p+=1,_=!0;break}}_||d.push((0,M.Z)((0,M.Z)({},k),{},{status:aa}))}),p<C&&(d=d.concat(R.slice(p).map(function(k){return(0,M.Z)((0,M.Z)({},k),{},{status:zl})})));var z={};d.forEach(function(k){var _=k.key;z[_]=(z[_]||0)+1});var Z=Object.keys(z).filter(function(k){return z[k]>1});return Z.forEach(function(k){d=d.filter(function(_){var U=_.key,ue=_.status;return U!==k||ue!==aa}),d.forEach(function(_){_.key===k&&(_.status=dl)})}),d}var Wl=["component","children","onVisibleChanged","onAllRemoved"],fs=["status"],ds=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Hl(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:To,d=function(p){(0,fl.Z)(E,p);var C=(0,Ho.Z)(E);function E(){var R;(0,cl.Z)(this,E);for(var z=arguments.length,Z=new Array(z),k=0;k<z;k++)Z[k]=arguments[k];return R=C.call.apply(C,[this].concat(Z)),(0,x.Z)((0,Wa.Z)(R),"state",{keyEntities:[]}),(0,x.Z)((0,Wa.Z)(R),"removeKey",function(_){var U=R.state.keyEntities,ue=U.map(function(B){return B.key!==_?B:(0,M.Z)((0,M.Z)({},B),{},{status:vl})});return R.setState({keyEntities:ue}),ue.filter(function(B){var le=B.status;return le!==vl}).length}),R}return(0,$l.Z)(E,[{key:"render",value:function(){var z=this,Z=this.state.keyEntities,k=this.props,_=k.component,U=k.children,ue=k.onVisibleChanged,B=k.onAllRemoved,le=(0,de.Z)(k,Wl),$e=_||v.Fragment,Te={};return ds.forEach(function(We){Te[We]=le[We],delete le[We]}),delete le.keys,v.createElement($e,le,Z.map(function(We){var He=We.status,Ee=(0,de.Z)(We,fs),fe=He===zl||He===dl;return v.createElement(u,(0,O.Z)({},Te,{key:Ee.key,visible:fe,eventProps:Ee,onVisibleChanged:function(Ze){if(ue==null||ue(Ze,{key:Ee.key}),!Ze){var vt=z.removeKey(Ee.key);vt===0&&B&&B()}}}),U)}))}}],[{key:"getDerivedStateFromProps",value:function(z,Z){var k=z.keys,_=Z.keyEntities,U=Ca(k),ue=Fs(_,U);return{keyEntities:ue.filter(function(B){var le=_.find(function($e){var Te=$e.key;return B.key===Te});return!(le&&le.status===vl&&B.status===aa)})}}}]),E}(v.Component);return(0,x.Z)(d,"defaultProps",{component:"div"}),d}var Ha=Hl(na),Za=To;function vs(l){var u=l.prefixCls,d=l.align,p=l.arrow,C=l.arrowPos,E=p||{},R=E.className,z=E.content,Z=C.x,k=Z===void 0?0:Z,_=C.y,U=_===void 0?0:_,ue=v.useRef();if(!d||!d.points)return null;var B={position:"absolute"};if(d.autoArrow!==!1){var le=d.points[0],$e=d.points[1],Te=le[0],We=le[1],He=$e[0],Ee=$e[1];Te===He||!["t","b"].includes(Te)?B.top=U:Te==="t"?B.top=0:B.bottom=0,We===Ee||!["l","r"].includes(We)?B.left=k:We==="l"?B.left=0:B.right=0}return v.createElement("div",{ref:ue,className:Q()("".concat(u,"-arrow"),R),style:B},z)}function hl(l){var u=l.prefixCls,d=l.open,p=l.zIndex,C=l.mask,E=l.motion;return C?v.createElement(Za,(0,O.Z)({},E,{motionAppear:!0,visible:d,removeOnLeave:!0}),function(R){var z=R.className;return v.createElement("div",{style:{zIndex:p},className:Q()("".concat(u,"-mask"),z)})}):null}var $s=v.memo(function(l){var u=l.children;return u},function(l,u){return u.cache}),zs=$s,Ws=v.forwardRef(function(l,u){var d=l.popup,p=l.className,C=l.prefixCls,E=l.style,R=l.target,z=l.onVisibleChanged,Z=l.open,k=l.keepDom,_=l.fresh,U=l.onClick,ue=l.mask,B=l.arrow,le=l.arrowPos,$e=l.align,Te=l.motion,We=l.maskMotion,He=l.forceRender,Ee=l.getPopupContainer,fe=l.autoDestroy,ft=l.portal,Ze=l.zIndex,vt=l.onMouseEnter,ht=l.onMouseLeave,Ht=l.onPointerEnter,it=l.ready,tt=l.offsetX,_t=l.offsetY,Ft=l.offsetR,yt=l.offsetB,Je=l.onAlign,Ke=l.onPrepare,Le=l.stretch,bt=l.targetWidth,st=l.targetHeight,Hn=typeof d=="function"?d():d,Pn=Z||k,fn=(Ee==null?void 0:Ee.length)>0,Vn=v.useState(!Ee||!fn),an=(0,y.Z)(Vn,2),_n=an[0],Nr=an[1];if(tr(function(){!_n&&fn&&R&&Nr(!0)},[_n,fn,R]),!_n)return null;var gt="auto",Be={left:"-1000vw",top:"-1000vh",right:gt,bottom:gt};if(it||!Z){var qe,nn=$e.points,un=$e.dynamicInset||((qe=$e._experimental)===null||qe===void 0?void 0:qe.dynamicInset),ln=un&&nn[0][1]==="r",Mt=un&&nn[0][0]==="b";ln?(Be.right=Ft,Be.left=gt):(Be.left=tt,Be.right=gt),Mt?(Be.bottom=yt,Be.top=gt):(Be.top=_t,Be.bottom=gt)}var rn={};return Le&&(Le.includes("height")&&st?rn.height=st:Le.includes("minHeight")&&st&&(rn.minHeight=st),Le.includes("width")&&bt?rn.width=bt:Le.includes("minWidth")&&bt&&(rn.minWidth=bt)),Z||(rn.pointerEvents="none"),v.createElement(ft,{open:He||Pn,getContainer:Ee&&function(){return Ee(R)},autoDestroy:fe},v.createElement(hl,{prefixCls:C,open:Z,zIndex:Ze,mask:ue,motion:We}),v.createElement(At.Z,{onResize:Je,disabled:!Z},function(Fn){return v.createElement(Za,(0,O.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:He,leavedClassName:"".concat(C,"-hidden")},Te,{onAppearPrepare:Ke,onEnterPrepare:Ke,visible:Z,onVisibleChanged:function(Ut){var Ge;Te==null||(Ge=Te.onVisibleChanged)===null||Ge===void 0||Ge.call(Te,Ut),z(Ut)}}),function(mn,Ut){var Ge=mn.className,dn=mn.style,vn=Q()(C,Ge,p);return v.createElement("div",{ref:Pa(Fn,u,Ut),className:vn,style:(0,M.Z)((0,M.Z)((0,M.Z)((0,M.Z)({"--arrow-x":"".concat(le.x||0,"px"),"--arrow-y":"".concat(le.y||0,"px")},Be),rn),dn),{},{boxSizing:"border-box",zIndex:Ze},E),onMouseEnter:vt,onMouseLeave:ht,onPointerEnter:Ht,onClick:U},B&&v.createElement(vs,{prefixCls:C,arrow:B,arrowPos:le,align:$e}),v.createElement(zs,{cache:!Z&&!_},Hn))})}))}),Zl=Ws,Bl=v.forwardRef(function(l,u){var d=l.children,p=l.getTriggerDOMNode,C=Da(d),E=v.useCallback(function(z){ga(u,p?p(z):z)},[p]),R=Qa(E,d.ref);return C?v.cloneElement(d,{ref:R}):d}),xa=Bl,Ba=["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 Hs(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Qn,u=v.forwardRef(function(d,p){var C=d.prefixCls,E=C===void 0?"rc-trigger-popup":C,R=d.children,z=d.action,Z=z===void 0?"hover":z,k=d.showAction,_=d.hideAction,U=d.popupVisible,ue=d.defaultPopupVisible,B=d.onPopupVisibleChange,le=d.afterPopupVisibleChange,$e=d.mouseEnterDelay,Te=d.mouseLeaveDelay,We=Te===void 0?.1:Te,He=d.focusDelay,Ee=d.blurDelay,fe=d.mask,ft=d.maskClosable,Ze=ft===void 0?!0:ft,vt=d.getPopupContainer,ht=d.forceRender,Ht=d.autoDestroy,it=d.destroyPopupOnHide,tt=d.popup,_t=d.popupClassName,Ft=d.popupStyle,yt=d.popupPlacement,Je=d.builtinPlacements,Ke=Je===void 0?{}:Je,Le=d.popupAlign,bt=d.zIndex,st=d.stretch,Hn=d.getPopupClassNameFromAlign,Pn=d.fresh,fn=d.alignPoint,Vn=d.onPopupClick,an=d.onPopupAlign,_n=d.arrow,Nr=d.popupMotion,gt=d.maskMotion,Be=d.popupTransitionName,qe=d.popupAnimation,nn=d.maskTransitionName,un=d.maskAnimation,ln=d.className,Mt=d.getTriggerDOMNode,rn=(0,de.Z)(d,Ba),Fn=Ht||it||!1,mn=v.useState(!1),Ut=(0,y.Z)(mn,2),Ge=Ut[0],dn=Ut[1];tr(function(){dn(zi())},[]);var vn=v.useRef({}),yn=v.useContext(vr),Er=v.useMemo(function(){return{registerSubPopup:function(a,s){vn.current[a]=s,yn==null||yn.registerSubPopup(a,s)}}},[yn]),Mr=Kn(),br=v.useState(null),Ir=(0,y.Z)(br,2),In=Ir[0],nr=Ir[1],hr=Dr(function(o){zn(o)&&In!==o&&nr(o),yn==null||yn.registerSubPopup(Mr,o)}),Xn=v.useState(null),Rr=(0,y.Z)(Xn,2),Jn=Rr[0],ai=Rr[1],fi=Dr(function(o){zn(o)&&Jn!==o&&ai(o)}),bi=v.Children.only(R),Sr=(bi==null?void 0:bi.props)||{},zr={},Ei=Dr(function(o){var a,s,c=Jn;return(c==null?void 0:c.contains(o))||((a=Qr(c))===null||a===void 0?void 0:a.host)===o||o===c||(In==null?void 0:In.contains(o))||((s=Qr(In))===null||s===void 0?void 0:s.host)===o||o===In||Object.values(vn.current).some(function(f){return(f==null?void 0:f.contains(o))||o===f})}),Cr=mo(E,Nr,qe,Be),Ur=mo(E,gt,un,nn),ji=v.useState(ue||!1),Kr=(0,y.Z)(ji,2),di=Kr[0],qn=Kr[1],hn=U!=null?U:di,jr=Dr(function(o){U===void 0&&qn(o)});tr(function(){qn(U||!1)},[U]);var Vr=v.useRef(hn);Vr.current=hn;var Zt=Dr(function(o){(0,ct.flushSync)(function(){hn!==o&&(jr(o),B==null||B(o))})}),he=v.useRef(),et=function(){clearTimeout(he.current)},_e=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;et(),s===0?Zt(a):he.current=setTimeout(function(){Zt(a)},s*1e3)};v.useEffect(function(){return et},[]);var xt=v.useState(!1),Gn=(0,y.Z)(xt,2),Yn=Gn[0],vi=Gn[1];tr(function(o){(!o||hn)&&vi(!0)},[hn]);var ei=v.useState(null),li=(0,y.Z)(ei,2),sr=li[0],hi=li[1],oo=v.useState([0,0]),ho=(0,y.Z)(oo,2),Ko=ho[0],ao=ho[1],Wr=function(a){ao([a.clientX,a.clientY])},Ia=bo(hn,In,fn?Ko:Jn,yt,Ke,Le,an),Gr=(0,y.Z)(Ia,11),Eo=Gr[0],jo=Gr[1],Ra=Gr[2],Oa=Gr[3],ca=Gr[4],Mi=Gr[5],fa=Gr[6],No=Gr[7],Mo=Gr[8],Ao=Gr[9],Vo=Gr[10],Zn=Hi(Ge,Z,k,_),Io=(0,y.Z)(Zn,2),lo=Io[0],Vi=Io[1],ti=lo.has("click"),Gi=Vi.has("click")||Vi.has("contextMenu"),Kt=Dr(function(){Yn||Vo()}),en=function(){Vr.current&&fn&&Gi&&_e(!1)};Xa(hn,Jn,In,Kt,en),tr(function(){Kt()},[Ko,yt]),tr(function(){hn&&!(Ke!=null&&Ke[yt])&&Kt()},[JSON.stringify(Le)]);var Ar=v.useMemo(function(){var o=Yo(Ke,E,Ao,fn);return Q()(o,Hn==null?void 0:Hn(Ao))},[Ao,Hn,Ke,E,fn]);v.useImperativeHandle(p,function(){return{forceAlign:Kt}});var ni=v.useState(0),gr=(0,y.Z)(ni,2),si=gr[0],Ii=gr[1],go=v.useState(0),Ni=(0,y.Z)(go,2),Rn=Ni[0],_i=Ni[1],da=function(){if(st&&Jn){var a=Jn.getBoundingClientRect();Ii(a.width),_i(a.height)}},Go=function(){da(),Kt()},Jl=function(a){vi(!1),Vo(),le==null||le(a)},Ri=function(){return new Promise(function(a){da(),hi(function(){return a})})};tr(function(){sr&&(Vo(),sr(),hi(null))},[sr]);function Fo(o,a,s,c){zr[o]=function(f){var S;c==null||c(f),_e(a,s);for(var w=arguments.length,D=new Array(w>1?w-1:0),L=1;L<w;L++)D[L-1]=arguments[L];(S=Sr[o])===null||S===void 0||S.call.apply(S,[Sr,f].concat(D))}}(ti||Gi)&&(zr.onClick=function(o){var a;Vr.current&&Gi?_e(!1):!Vr.current&&ti&&(Wr(o),_e(!0));for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];(a=Sr.onClick)===null||a===void 0||a.call.apply(a,[Sr,o].concat(c))}),Lo(hn,Gi,Jn,In,fe,Ze,Ei,_e);var xr=lo.has("hover"),va=Vi.has("hover"),_o,Va;xr&&(Fo("onMouseEnter",!0,$e,function(o){Wr(o)}),Fo("onPointerEnter",!0,$e,function(o){Wr(o)}),_o=function(){(hn||Yn)&&_e(!0,$e)},fn&&(zr.onMouseMove=function(o){var a;(a=Sr.onMouseMove)===null||a===void 0||a.call(Sr,o)})),va&&(Fo("onMouseLeave",!1,We),Fo("onPointerLeave",!1,We),Va=function(){_e(!1,We)}),lo.has("focus")&&Fo("onFocus",!0,He),Vi.has("focus")&&Fo("onBlur",!1,Ee),lo.has("contextMenu")&&(zr.onContextMenu=function(o){var a;Vr.current&&Vi.has("contextMenu")?_e(!1):(Wr(o),_e(!0)),o.preventDefault();for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f<s;f++)c[f-1]=arguments[f];(a=Sr.onContextMenu)===null||a===void 0||a.call.apply(a,[Sr,o].concat(c))}),ln&&(zr.className=Q()(Sr.className,ln));var $o=(0,M.Z)((0,M.Z)({},Sr),zr),e={},t=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];t.forEach(function(o){rn[o]&&(e[o]=function(){for(var a,s=arguments.length,c=new Array(s),f=0;f<s;f++)c[f]=arguments[f];(a=$o[o])===null||a===void 0||a.call.apply(a,[$o].concat(c)),rn[o].apply(rn,c)})});var r=v.cloneElement(bi,(0,M.Z)((0,M.Z)({},$o),e)),n={x:Mi,y:fa},i=_n?(0,M.Z)({},_n!==!0?_n:{}):null;return v.createElement(v.Fragment,null,v.createElement(At.Z,{disabled:!hn,ref:fi,onResize:Go},v.createElement(xa,{getTriggerDOMNode:Mt},r)),v.createElement(vr.Provider,{value:Er},v.createElement(Zl,{portal:l,ref:hr,prefixCls:E,popup:tt,className:Q()(_t,Ar),style:Ft,target:Jn,onMouseEnter:_o,onMouseLeave:Va,onPointerEnter:_o,zIndex:bt,open:hn,keepDom:Yn,fresh:Pn,onClick:Vn,mask:fe,motion:Cr,maskMotion:Ur,onVisibleChanged:Jl,onPrepare:Ri,forceRender:ht,autoDestroy:Fn,getPopupContainer:vt,align:Ao,arrow:i,arrowPos:n,ready:Eo,offsetX:jo,offsetY:Ra,offsetR:Oa,offsetB:ca,onAlign:Kt,stretch:st,targetWidth:si/No,targetHeight:Rn/Mo})))});return u}var gl=Hs(Qn),hs=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ka=function(u){var d=u===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:d,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:d,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:d,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:d,adjustY:1},htmlRegion:"scroll"}}},gs=function(u,d){var p=u.prefixCls,C=u.disabled,E=u.visible,R=u.children,z=u.popupElement,Z=u.animation,k=u.transitionName,_=u.dropdownStyle,U=u.dropdownClassName,ue=u.direction,B=ue===void 0?"ltr":ue,le=u.placement,$e=u.builtinPlacements,Te=u.dropdownMatchSelectWidth,We=u.dropdownRender,He=u.dropdownAlign,Ee=u.getPopupContainer,fe=u.empty,ft=u.getTriggerDOMNode,Ze=u.onPopupVisibleChange,vt=u.onPopupMouseEnter,ht=(0,de.Z)(u,hs),Ht="".concat(p,"-dropdown"),it=z;We&&(it=We(z));var tt=v.useMemo(function(){return $e||ka(Te)},[$e,Te]),_t=Z?"".concat(Ht,"-").concat(Z):k,Ft=typeof Te=="number",yt=v.useMemo(function(){return Ft?null:Te===!1?"minWidth":"width"},[Te,Ft]),Je=_;Ft&&(Je=(0,M.Z)((0,M.Z)({},Je),{},{width:Te}));var Ke=v.useRef(null);return v.useImperativeHandle(d,function(){return{getPopupElement:function(){return Ke.current}}}),v.createElement(gl,(0,O.Z)({},ht,{showAction:Ze?["click"]:[],hideAction:Ze?["click"]:[],popupPlacement:le||(B==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:tt,prefixCls:Ht,popupTransitionName:_t,popup:v.createElement("div",{ref:Ke,onMouseEnter:vt},it),stretch:yt,popupAlign:He,popupVisible:E,getPopupContainer:Ee,popupClassName:Q()(U,(0,x.Z)({},"".concat(Ht,"-empty"),fe)),popupStyle:Je,getTriggerDOMNode:ft,onPopupVisibleChange:Ze}),R)},Bo=v.forwardRef(gs);Bo.displayName="SelectTrigger";var Ua=Bo,la=g(84506);function wa(l,u){var d=l.key,p;return"value"in l&&(p=l.value),d!=null?d:p!==void 0?p:"rc-index-key-".concat(u)}function sa(l,u){var d=l||{},p=d.label,C=d.value,E=d.options,R=d.groupLabel,z=p||(u?"children":"label");return{label:z,value:C||"value",options:E||"options",groupLabel:R||z}}function ps(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=u.fieldNames,p=u.childrenAsData,C=[],E=sa(d,!1),R=E.label,z=E.value,Z=E.options,k=E.groupLabel;function _(U,ue){U.forEach(function(B){if(ue||!(Z in B)){var le=B[z];C.push({key:wa(B,C.length),groupOption:ue,data:B,label:B[R],value:le})}else{var $e=B[k];$e===void 0&&p&&($e=B.label),C.push({key:wa(B,C.length),group:!0,data:B,label:$e}),_(B[Z],!0)}})}return _(l,!1),C}function pl(l){var u=(0,M.Z)({},l);return"props"in u||Object.defineProperty(u,"props",{get:function(){return $(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),u}}),u}function ms(l,u){if(!u||!u.length)return null;var d=!1;function p(E,R){var z=(0,la.Z)(R),Z=z[0],k=z.slice(1);if(!Z)return[E];var _=E.split(Z);return d=d||_.length>1,_.reduce(function(U,ue){return[].concat((0,q.Z)(U),(0,q.Z)(p(ue,k)))},[]).filter(function(U){return U})}var C=p(l,u);return d?C:null}var Zs=["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"],ua=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Po(l){return l==="tags"||l==="multiple"}var Bs=v.forwardRef(function(l,u){var d,p,C=l.id,E=l.prefixCls,R=l.className,z=l.showSearch,Z=l.tagRender,k=l.direction,_=l.omitDomProps,U=l.displayValues,ue=l.onDisplayValuesChange,B=l.emptyOptions,le=l.notFoundContent,$e=le===void 0?"Not Found":le,Te=l.onClear,We=l.mode,He=l.disabled,Ee=l.loading,fe=l.getInputElement,ft=l.getRawInputElement,Ze=l.open,vt=l.defaultOpen,ht=l.onDropdownVisibleChange,Ht=l.activeValue,it=l.onActiveValueChange,tt=l.activeDescendantId,_t=l.searchValue,Ft=l.autoClearSearchValue,yt=l.onSearch,Je=l.onSearchSplit,Ke=l.tokenSeparators,Le=l.allowClear,bt=l.suffixIcon,st=l.clearIcon,Hn=l.OptionList,Pn=l.animation,fn=l.transitionName,Vn=l.dropdownStyle,an=l.dropdownClassName,_n=l.dropdownMatchSelectWidth,Nr=l.dropdownRender,gt=l.dropdownAlign,Be=l.placement,qe=l.builtinPlacements,nn=l.getPopupContainer,un=l.showAction,ln=un===void 0?[]:un,Mt=l.onFocus,rn=l.onBlur,Fn=l.onKeyUp,mn=l.onKeyDown,Ut=l.onMouseDown,Ge=(0,de.Z)(l,Zs),dn=Po(We),vn=(z!==void 0?z:dn)||We==="combobox",yn=(0,M.Z)({},Ge);ua.forEach(function(Kt){delete yn[Kt]}),_==null||_.forEach(function(Kt){delete yn[Kt]});var Er=v.useState(!1),Mr=(0,y.Z)(Er,2),br=Mr[0],Ir=Mr[1];v.useEffect(function(){Ir(ze())},[]);var In=v.useRef(null),nr=v.useRef(null),hr=v.useRef(null),Xn=v.useRef(null),Rr=v.useRef(null),Jn=lt(),ai=(0,y.Z)(Jn,3),fi=ai[0],bi=ai[1],Sr=ai[2];v.useImperativeHandle(u,function(){var Kt,en;return{focus:(Kt=Xn.current)===null||Kt===void 0?void 0:Kt.focus,blur:(en=Xn.current)===null||en===void 0?void 0:en.blur,scrollTo:function(ni){var gr;return(gr=Rr.current)===null||gr===void 0?void 0:gr.scrollTo(ni)}}});var zr=v.useMemo(function(){var Kt;if(We!=="combobox")return _t;var en=(Kt=U[0])===null||Kt===void 0?void 0:Kt.value;return typeof en=="string"||typeof en=="number"?String(en):""},[_t,We,U]),Ei=We==="combobox"&&typeof fe=="function"&&fe()||null,Cr=typeof ft=="function"&&ft(),Ur=On(nr,Cr==null||(d=Cr.props)===null||d===void 0?void 0:d.ref),ji=v.useState(!1),Kr=(0,y.Z)(ji,2),di=Kr[0],qn=Kr[1];Ie(function(){qn(!0)},[]);var hn=nt(!1,{defaultValue:vt,value:Ze}),jr=(0,y.Z)(hn,2),Vr=jr[0],Zt=jr[1],he=di?Vr:!1,et=!$e&&B;(He||et&&he&&We==="combobox")&&(he=!1);var _e=et?!1:he,xt=v.useCallback(function(Kt){var en=Kt!==void 0?Kt:!he;He||(Zt(en),he!==en&&(ht==null||ht(en)))},[He,he,Zt,ht]),Gn=v.useMemo(function(){return(Ke||[]).some(function(Kt){return[`
|
|
|
`,`\r
|
|
|
`].includes(Kt)})},[Ke]),Yn=function(en,Ar,ni){var gr=!0,si=en;it==null||it(null);var Ii=ni?null:ms(en,Ke);return We!=="combobox"&&Ii&&(si="",Je==null||Je(Ii),xt(!1),gr=!1),yt&&zr!==si&&yt(si,{source:Ar?"typing":"effect"}),gr},vi=function(en){!en||!en.trim()||yt(en,{source:"submit"})};v.useEffect(function(){!he&&!dn&&We!=="combobox"&&Yn("",!1,!1)},[he]),v.useEffect(function(){Vr&&He&&Zt(!1),He&&bi(!1)},[He]);var ei=ut(),li=(0,y.Z)(ei,2),sr=li[0],hi=li[1],oo=function(en){var Ar=sr(),ni=en.which;if(ni===oe.ENTER&&(We!=="combobox"&&en.preventDefault(),he||xt(!0)),hi(!!zr),ni===oe.BACKSPACE&&!Ar&&dn&&!zr&&U.length){for(var gr=(0,q.Z)(U),si=null,Ii=gr.length-1;Ii>=0;Ii-=1){var go=gr[Ii];if(!go.disabled){gr.splice(Ii,1),si=go;break}}si&&ue(gr,{type:"remove",values:[si]})}for(var Ni=arguments.length,Rn=new Array(Ni>1?Ni-1:0),_i=1;_i<Ni;_i++)Rn[_i-1]=arguments[_i];if(he&&Rr.current){var da;(da=Rr.current).onKeyDown.apply(da,[en].concat(Rn))}mn==null||mn.apply(void 0,[en].concat(Rn))},ho=function(en){for(var Ar=arguments.length,ni=new Array(Ar>1?Ar-1:0),gr=1;gr<Ar;gr++)ni[gr-1]=arguments[gr];if(he&&Rr.current){var si;(si=Rr.current).onKeyUp.apply(si,[en].concat(ni))}Fn==null||Fn.apply(void 0,[en].concat(ni))},Ko=function(en){var Ar=U.filter(function(ni){return ni!==en});ue(Ar,{type:"remove",values:[en]})},ao=v.useRef(!1),Wr=function(){bi(!0),He||(Mt&&!ao.current&&Mt.apply(void 0,arguments),ln.includes("focus")&&xt(!0)),ao.current=!0},Ia=function(){bi(!1,function(){ao.current=!1,xt(!1)}),!He&&(zr&&(We==="tags"?yt(zr,{source:"submit"}):We==="multiple"&&yt("",{source:"blur"})),rn&&rn.apply(void 0,arguments))},Gr=[];v.useEffect(function(){return function(){Gr.forEach(function(Kt){return clearTimeout(Kt)}),Gr.splice(0,Gr.length)}},[]);var Eo=function(en){var Ar,ni=en.target,gr=(Ar=hr.current)===null||Ar===void 0?void 0:Ar.getPopupElement();if(gr&&gr.contains(ni)){var si=setTimeout(function(){var Rn=Gr.indexOf(si);if(Rn!==-1&&Gr.splice(Rn,1),Sr(),!br&&!gr.contains(document.activeElement)){var _i;(_i=Xn.current)===null||_i===void 0||_i.focus()}});Gr.push(si)}for(var Ii=arguments.length,go=new Array(Ii>1?Ii-1:0),Ni=1;Ni<Ii;Ni++)go[Ni-1]=arguments[Ni];Ut==null||Ut.apply(void 0,[en].concat(go))},jo=v.useState({}),Ra=(0,y.Z)(jo,2),Oa=Ra[1];function ca(){Oa({})}var Mi;Cr&&(Mi=function(en){xt(en)}),dt(function(){var Kt;return[In.current,(Kt=hr.current)===null||Kt===void 0?void 0:Kt.getPopupElement()]},_e,xt,!!Cr);var fa=v.useMemo(function(){return(0,M.Z)((0,M.Z)({},l),{},{notFoundContent:$e,open:he,triggerOpen:_e,id:C,showSearch:vn,multiple:dn,toggleOpen:xt})},[l,$e,_e,he,C,vn,dn,xt]),No=!!bt||Ee,Mo;No&&(Mo=v.createElement(pe,{className:Q()("".concat(E,"-arrow"),(0,x.Z)({},"".concat(E,"-arrow-loading"),Ee)),customizeIcon:bt,customizeIconProps:{loading:Ee,searchValue:zr,open:he,focused:fi,showSearch:vn}}));var Ao=function(){var en;Te==null||Te(),(en=Xn.current)===null||en===void 0||en.focus(),ue([],{type:"clear",values:U}),Yn("",!1,!1)},Vo=ve(E,Ao,U,Le,st,He,zr,We),Zn=Vo.allowClear,Io=Vo.clearIcon,lo=v.createElement(Hn,{ref:Rr}),Vi=Q()(E,R,(p={},(0,x.Z)(p,"".concat(E,"-focused"),fi),(0,x.Z)(p,"".concat(E,"-multiple"),dn),(0,x.Z)(p,"".concat(E,"-single"),!dn),(0,x.Z)(p,"".concat(E,"-allow-clear"),Le),(0,x.Z)(p,"".concat(E,"-show-arrow"),No),(0,x.Z)(p,"".concat(E,"-disabled"),He),(0,x.Z)(p,"".concat(E,"-loading"),Ee),(0,x.Z)(p,"".concat(E,"-open"),he),(0,x.Z)(p,"".concat(E,"-customize-input"),Ei),(0,x.Z)(p,"".concat(E,"-show-search"),vn),p)),ti=v.createElement(Ua,{ref:hr,disabled:He,prefixCls:E,visible:_e,popupElement:lo,animation:Pn,transitionName:fn,dropdownStyle:Vn,dropdownClassName:an,direction:k,dropdownMatchSelectWidth:_n,dropdownRender:Nr,dropdownAlign:gt,placement:Be,builtinPlacements:qe,getPopupContainer:nn,empty:B,getTriggerDOMNode:function(){return nr.current},onPopupVisibleChange:Mi,onPopupMouseEnter:ca},Cr?v.cloneElement(Cr,{ref:Ur}):v.createElement(Qt,(0,O.Z)({},l,{domRef:nr,prefixCls:E,inputElement:Ei,ref:Xn,id:C,showSearch:vn,autoClearSearchValue:Ft,mode:We,activeDescendantId:tt,tagRender:Z,values:U,open:he,onToggleOpen:xt,activeValue:Ht,searchValue:zr,onSearch:Yn,onSearchSubmit:vi,onRemove:Ko,tokenWithEnter:Gn}))),Gi;return Cr?Gi=ti:Gi=v.createElement("div",(0,O.Z)({className:Vi},yn,{ref:In,onMouseDown:Eo,onKeyDown:oo,onKeyUp:ho,onFocus:Wr,onBlur:Ia}),fi&&!he&&v.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(U.map(function(Kt){var en=Kt.label,Ar=Kt.value;return["number","string"].includes((0,j.Z)(en))?en:Ar}).join(", "))),ti,Mo,Zn&&Io),v.createElement(at.Provider,{value:fa},Gi)}),ks=Bs,Us=function(l,u){var d=v.useRef({values:new Map,options:new Map}),p=v.useMemo(function(){var E=d.current,R=E.values,z=E.options,Z=l.map(function(U){if(U.label===void 0){var ue;return(0,M.Z)((0,M.Z)({},U),{},{label:(ue=R.get(U.value))===null||ue===void 0?void 0:ue.label})}return U}),k=new Map,_=new Map;return Z.forEach(function(U){k.set(U.value,U),_.set(U.value,u.get(U.value)||z.get(U.value))}),d.current.values=k,d.current.options=_,Z},[l,u]),C=v.useCallback(function(E){return u.get(E)||d.current.options.get(E)},[u]);return[p,C]};function kl(l,u){return Fi(l).join("").toUpperCase().includes(u)}var Ks=function(l,u,d,p,C){return v.useMemo(function(){if(!d||p===!1)return l;var E=u.options,R=u.label,z=u.value,Z=[],k=typeof p=="function",_=d.toUpperCase(),U=k?p:function(B,le){return C?kl(le[C],_):le[E]?kl(le[R!=="children"?R:"label"],_):kl(le[z],_)},ue=k?function(B){return pl(B)}:function(B){return B};return l.forEach(function(B){if(B[E]){var le=U(d,ue(B));if(le)Z.push(B);else{var $e=B[E].filter(function(Te){return U(d,ue(Te))});$e.length&&Z.push((0,M.Z)((0,M.Z)({},B),{},(0,x.Z)({},E,$e)))}return}U(d,ue(B))&&Z.push(B)}),Z},[l,p,C,d,u])},ys=0,Di=be();function qr(){var l;return Di?(l=ys,ys+=1):l="TEST_OR_SSR",l}function yi(l){var u=v.useState(),d=(0,y.Z)(u,2),p=d[0],C=d[1];return v.useEffect(function(){C("rc_select_".concat(qr()))},[]),l||p}function $r(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=[];return v.Children.forEach(l,function(p){p==null&&!u.keepEmpty||(Array.isArray(p)?d=d.concat($r(p)):(0,Tt.isFragment)(p)&&p.props?d=d.concat($r(p.props.children,u)):d.push(p))}),d}var Ka=["children","value"],js=["children"];function ml(l){var u=l,d=u.key,p=u.props,C=p.children,E=p.value,R=(0,de.Z)(p,Ka);return(0,M.Z)({key:d,value:E!==void 0?E:d,children:C},R)}function bs(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return $r(l).map(function(d,p){if(!v.isValidElement(d)||!d.type)return null;var C=d,E=C.type.isSelectOptGroup,R=C.key,z=C.props,Z=z.children,k=(0,de.Z)(z,js);return u||!E?ml(d):(0,M.Z)((0,M.Z)({key:"__RC_SELECT_GRP__".concat(R===null?p:R,"__"),label:R},k),{},{options:bs(Z)})}).filter(function(d){return d})}function Vs(l,u,d,p,C){return v.useMemo(function(){var E=l,R=!l;R&&(E=bs(u));var z=new Map,Z=new Map,k=function(ue,B,le){le&&typeof le=="string"&&ue.set(B[le],B)};function _(U){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,B=0;B<U.length;B+=1){var le=U[B];!le[d.options]||ue?(z.set(le[d.value],le),k(Z,le,d.label),k(Z,le,p),k(Z,le,C)):_(le[d.options],!0)}}return _(E),{options:E,valueOptions:z,labelOptions:Z}},[l,u,d,p,C])}function Ss(l){var u=v.useRef();u.current=l;var d=v.useCallback(function(){return u.current.apply(u,arguments)},[]);return d}var yl=function(){return null};yl.isSelectOptGroup=!0;var Ul=yl,bl=function(){return null};bl.isSelectOption=!0;var Cs=bl;function Kl(l,u){var d=(0,M.Z)({},l);return Array.isArray(u)&&u.forEach(function(p){delete d[p]}),d}var jl=g(73299),xs=v.createContext(null),Vl=xs;function Gl(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ws=["disabled","title","children","style","className"];function Ea(l){return typeof l=="string"||typeof l=="number"}var Gs=function(u,d){var p=kt(),C=p.prefixCls,E=p.id,R=p.open,z=p.multiple,Z=p.mode,k=p.searchValue,_=p.toggleOpen,U=p.notFoundContent,ue=p.onPopupScroll,B=v.useContext(Vl),le=B.flattenOptions,$e=B.onActiveValue,Te=B.defaultActiveFirstOption,We=B.onSelect,He=B.menuItemSelectedIcon,Ee=B.rawValues,fe=B.fieldNames,ft=B.virtual,Ze=B.direction,vt=B.listHeight,ht=B.listItemHeight,Ht="".concat(C,"-item"),it=wt(function(){return le},[R,le],function(gt,Be){return Be[0]&>[1]!==Be[1]}),tt=v.useRef(null),_t=function(Be){Be.preventDefault()},Ft=function(Be){tt.current&&tt.current.scrollTo(typeof Be=="number"?{index:Be}:Be)},yt=function(Be){for(var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,nn=it.length,un=0;un<nn;un+=1){var ln=(Be+un*qe+nn)%nn,Mt=it[ln],rn=Mt.group,Fn=Mt.data;if(!rn&&!Fn.disabled)return ln}return-1},Je=v.useState(function(){return yt(0)}),Ke=(0,y.Z)(Je,2),Le=Ke[0],bt=Ke[1],st=function(Be){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;bt(Be);var nn={source:qe?"keyboard":"mouse"},un=it[Be];if(!un){$e(null,-1,nn);return}$e(un.value,Be,nn)};(0,v.useEffect)(function(){st(Te!==!1?yt(0):-1)},[it.length,k]);var Hn=v.useCallback(function(gt){return Ee.has(gt)&&Z!=="combobox"},[Z,(0,q.Z)(Ee).toString(),Ee.size]);(0,v.useEffect)(function(){var gt=setTimeout(function(){if(!z&&R&&Ee.size===1){var qe=Array.from(Ee)[0],nn=it.findIndex(function(un){var ln=un.data;return ln.value===qe});nn!==-1&&(st(nn),Ft(nn))}});if(R){var Be;(Be=tt.current)===null||Be===void 0||Be.scrollTo(void 0)}return function(){return clearTimeout(gt)}},[R,k,le.length]);var Pn=function(Be){Be!==void 0&&We(Be,{selected:!Ee.has(Be)}),z||_(!1)};if(v.useImperativeHandle(d,function(){return{onKeyDown:function(Be){var qe=Be.which,nn=Be.ctrlKey;switch(qe){case oe.N:case oe.P:case oe.UP:case oe.DOWN:{var un=0;if(qe===oe.UP?un=-1:qe===oe.DOWN?un=1:Gl()&&nn&&(qe===oe.N?un=1:qe===oe.P&&(un=-1)),un!==0){var ln=yt(Le+un,un);Ft(ln),st(ln,!0)}break}case oe.ENTER:{var Mt=it[Le];Mt&&!Mt.data.disabled?Pn(Mt.value):Pn(void 0),R&&Be.preventDefault();break}case oe.ESC:_(!1),R&&Be.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Be){Ft(Be)}}}),it.length===0)return v.createElement("div",{role:"listbox",id:"".concat(E,"_list"),className:"".concat(Ht,"-empty"),onMouseDown:_t},U);var fn=Object.keys(fe).map(function(gt){return fe[gt]}),Vn=function(Be){return Be.label};function an(gt,Be){var qe=gt.group;return{role:qe?"presentation":"option",id:"".concat(E,"_list_").concat(Be)}}var _n=function(Be){var qe=it[Be];if(!qe)return null;var nn=qe.data||{},un=nn.value,ln=qe.group,Mt=St(nn,!0),rn=Vn(qe);return qe?v.createElement("div",(0,O.Z)({"aria-label":typeof rn=="string"&&!ln?rn:null},Mt,{key:Be},an(qe,Be),{"aria-selected":Hn(un)}),un):null},Nr={role:"listbox",id:"".concat(E,"_list")};return v.createElement(v.Fragment,null,ft&&v.createElement("div",(0,O.Z)({},Nr,{style:{height:0,width:0,overflow:"hidden"}}),_n(Le-1),_n(Le),_n(Le+1)),v.createElement(jl.Z,{itemKey:"key",ref:tt,data:it,height:vt,itemHeight:ht,fullHeight:!1,onMouseDown:_t,onScroll:ue,virtual:ft,direction:Ze,innerProps:ft?null:Nr},function(gt,Be){var qe,nn=gt.group,un=gt.groupOption,ln=gt.data,Mt=gt.label,rn=gt.value,Fn=ln.key;if(nn){var mn,Ut=(mn=ln.title)!==null&&mn!==void 0?mn:Ea(Mt)?Mt.toString():void 0;return v.createElement("div",{className:Q()(Ht,"".concat(Ht,"-group")),title:Ut},Mt!==void 0?Mt:Fn)}var Ge=ln.disabled,dn=ln.title,vn=ln.children,yn=ln.style,Er=ln.className,Mr=(0,de.Z)(ln,ws),br=Kl(Mr,fn),Ir=Hn(rn),In="".concat(Ht,"-option"),nr=Q()(Ht,In,Er,(qe={},(0,x.Z)(qe,"".concat(In,"-grouped"),un),(0,x.Z)(qe,"".concat(In,"-active"),Le===Be&&!Ge),(0,x.Z)(qe,"".concat(In,"-disabled"),Ge),(0,x.Z)(qe,"".concat(In,"-selected"),Ir),qe)),hr=Vn(gt),Xn=!He||typeof He=="function"||Ir,Rr=typeof hr=="number"?hr:hr||rn,Jn=Ea(Rr)?Rr.toString():void 0;return dn!==void 0&&(Jn=dn),v.createElement("div",(0,O.Z)({},St(br),ft?{}:an(gt,Be),{"aria-selected":Ir,className:nr,title:Jn,onMouseMove:function(){Le===Be||Ge||st(Be)},onClick:function(){Ge||Pn(rn)},style:yn}),v.createElement("div",{className:"".concat(In,"-content")},Rr),v.isValidElement(He)||Ir,Xn&&v.createElement(pe,{className:"".concat(Ht,"-option-state"),customizeIcon:He,customizeIconProps:{isSelected:Ir}},Ir?"\u2713":null))}))},ja=v.forwardRef(Gs);ja.displayName="OptionList";var Ui=ja;function _s(l){var u=l.mode,d=l.options,p=l.children,C=l.backfill,E=l.allowClear,R=l.placeholder,z=l.getInputElement,Z=l.showSearch,k=l.onSearch,_=l.defaultOpen,U=l.autoFocus,ue=l.labelInValue,B=l.value,le=l.inputValue,$e=l.optionLabelProp,Te=isMultiple(u),We=Z!==void 0?Z:Te||u==="combobox",He=d||convertChildrenToData(p);if(warning(u!=="tags"||He.every(function(Ze){return!Ze.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),u==="tags"||u==="combobox"){var Ee=He.some(function(Ze){return Ze.options?Ze.options.some(function(vt){return typeof("value"in vt?vt.value:vt.key)=="number"}):typeof("value"in Ze?Ze.value:Ze.key)=="number"});warning(!Ee,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(u!=="combobox"||!$e,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(u==="combobox"||!C,"`backfill` only works with `combobox` mode."),warning(u==="combobox"||!z,"`getInputElement` only work with `combobox` mode."),noteOnce(u!=="combobox"||!z||!E||!R,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),k&&!We&&u!=="combobox"&&u!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!_||U,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),B!=null){var fe=toArray(B);warning(!ue||fe.every(function(Ze){return _typeof(Ze)==="object"&&("key"in Ze||"value"in Ze)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Te||Array.isArray(B),"`value` should be array when `mode` is `multiple` or `tags`")}if(p){var ft=null;toNodeArray(p).some(function(Ze){if(!React.isValidElement(Ze)||!Ze.type)return!1;var vt=Ze,ht=vt.type;if(ht.isSelectOption)return!1;if(ht.isSelectOptGroup){var Ht=toNodeArray(Ze.props.children).every(function(it){return!React.isValidElement(it)||!Ze.type||it.type.isSelectOption?!0:(ft=it.type,!1)});return!Ht}return ft=ht,!0}),ft&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ft.displayName||ft.name||ft,"`.")),warning(le===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ru(l,u){if(l){var d=function p(C){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=0;R<C.length;R++){var z=C[R];if(z[u==null?void 0:u.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!E&&Array.isArray(z[u==null?void 0:u.options])&&p(z[u==null?void 0:u.options],!0))break}};d(l)}}var Xs=null,Ki=["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"],jn=["inputValue"];function vo(l){return!l||(0,j.Z)(l)!=="object"}var ko=v.forwardRef(function(l,u){var d=l.id,p=l.mode,C=l.prefixCls,E=C===void 0?"rc-select":C,R=l.backfill,z=l.fieldNames,Z=l.inputValue,k=l.searchValue,_=l.onSearch,U=l.autoClearSearchValue,ue=U===void 0?!0:U,B=l.onSelect,le=l.onDeselect,$e=l.dropdownMatchSelectWidth,Te=$e===void 0?!0:$e,We=l.filterOption,He=l.filterSort,Ee=l.optionFilterProp,fe=l.optionLabelProp,ft=l.options,Ze=l.children,vt=l.defaultActiveFirstOption,ht=l.menuItemSelectedIcon,Ht=l.virtual,it=l.direction,tt=l.listHeight,_t=tt===void 0?200:tt,Ft=l.listItemHeight,yt=Ft===void 0?20:Ft,Je=l.value,Ke=l.defaultValue,Le=l.labelInValue,bt=l.onChange,st=(0,de.Z)(l,Ki),Hn=yi(d),Pn=Po(p),fn=!!(!ft&&Ze),Vn=v.useMemo(function(){return We===void 0&&p==="combobox"?!1:We},[We,p]),an=v.useMemo(function(){return sa(z,fn)},[JSON.stringify(z),fn]),_n=nt("",{value:k!==void 0?k:Z,postState:function(et){return et||""}}),Nr=(0,y.Z)(_n,2),gt=Nr[0],Be=Nr[1],qe=Vs(ft,Ze,an,Ee,fe),nn=qe.valueOptions,un=qe.labelOptions,ln=qe.options,Mt=v.useCallback(function(he){var et=Fi(he);return et.map(function(_e){var xt,Gn,Yn,vi,ei;if(vo(_e))xt=_e;else{var li;Yn=_e.key,Gn=_e.label,xt=(li=_e.value)!==null&&li!==void 0?li:Yn}var sr=nn.get(xt);if(sr){var hi;if(Gn===void 0&&(Gn=sr==null?void 0:sr[fe||an.label]),Yn===void 0&&(Yn=(hi=sr==null?void 0:sr.key)!==null&&hi!==void 0?hi:xt),vi=sr==null?void 0:sr.disabled,ei=sr==null?void 0:sr.title,0)var oo}return{label:Gn,value:xt,key:Yn,disabled:vi,title:ei}})},[an,fe,nn]),rn=nt(Ke,{value:Je}),Fn=(0,y.Z)(rn,2),mn=Fn[0],Ut=Fn[1],Ge=v.useMemo(function(){var he,et=Mt(mn);return p==="combobox"&&te((he=et[0])===null||he===void 0?void 0:he.value)?[]:et},[mn,Mt,p]),dn=Us(Ge,nn),vn=(0,y.Z)(dn,2),yn=vn[0],Er=vn[1],Mr=v.useMemo(function(){if(!p&&yn.length===1){var he=yn[0];if(he.value===null&&(he.label===null||he.label===void 0))return[]}return yn.map(function(et){var _e;return(0,M.Z)((0,M.Z)({},et),{},{label:(_e=et.label)!==null&&_e!==void 0?_e:et.value})})},[p,yn]),br=v.useMemo(function(){return new Set(yn.map(function(he){return he.value}))},[yn]);v.useEffect(function(){if(p==="combobox"){var he,et=(he=yn[0])===null||he===void 0?void 0:he.value;Be(N(et)?String(et):"")}},[yn]);var Ir=Ss(function(he,et){var _e,xt=et!=null?et:he;return _e={},(0,x.Z)(_e,an.value,he),(0,x.Z)(_e,an.label,xt),_e}),In=v.useMemo(function(){if(p!=="tags")return ln;var he=(0,q.Z)(ln),et=function(xt){return nn.has(xt)};return(0,q.Z)(yn).sort(function(_e,xt){return _e.value<xt.value?-1:1}).forEach(function(_e){var xt=_e.value;et(xt)||he.push(Ir(xt,_e.label))}),he},[Ir,ln,nn,yn,p]),nr=Ks(In,an,gt,Vn,Ee),hr=v.useMemo(function(){return p!=="tags"||!gt||nr.some(function(he){return he[Ee||"value"]===gt})||nr.some(function(he){return he[an.value]===gt})?nr:[Ir(gt)].concat((0,q.Z)(nr))},[Ir,Ee,p,nr,gt,an]),Xn=v.useMemo(function(){return He?(0,q.Z)(hr).sort(function(he,et){return He(he,et)}):hr},[hr,He]),Rr=v.useMemo(function(){return ps(Xn,{fieldNames:an,childrenAsData:fn})},[Xn,an,fn]),Jn=function(et){var _e=Mt(et);if(Ut(_e),bt&&(_e.length!==yn.length||_e.some(function(Yn,vi){var ei;return((ei=yn[vi])===null||ei===void 0?void 0:ei.value)!==(Yn==null?void 0:Yn.value)}))){var xt=Le?_e:_e.map(function(Yn){return Yn.value}),Gn=_e.map(function(Yn){return pl(Er(Yn.value))});bt(Pn?xt:xt[0],Pn?Gn:Gn[0])}},ai=v.useState(null),fi=(0,y.Z)(ai,2),bi=fi[0],Sr=fi[1],zr=v.useState(0),Ei=(0,y.Z)(zr,2),Cr=Ei[0],Ur=Ei[1],ji=vt!==void 0?vt:p!=="combobox",Kr=v.useCallback(function(he,et){var _e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},xt=_e.source,Gn=xt===void 0?"keyboard":xt;Ur(et),R&&p==="combobox"&&he!==null&&Gn==="keyboard"&&Sr(String(he))},[R,p]),di=function(et,_e,xt){var Gn=function(){var ao,Wr=Er(et);return[Le?{label:Wr==null?void 0:Wr[an.label],value:et,key:(ao=Wr==null?void 0:Wr.key)!==null&&ao!==void 0?ao:et}:et,pl(Wr)]};if(_e&&B){var Yn=Gn(),vi=(0,y.Z)(Yn,2),ei=vi[0],li=vi[1];B(ei,li)}else if(!_e&&le&&xt!=="clear"){var sr=Gn(),hi=(0,y.Z)(sr,2),oo=hi[0],ho=hi[1];le(oo,ho)}},qn=Ss(function(he,et){var _e,xt=Pn?et.selected:!0;xt?_e=Pn?[].concat((0,q.Z)(yn),[he]):[he]:_e=yn.filter(function(Gn){return Gn.value!==he}),Jn(_e),di(he,xt),p==="combobox"?Sr(""):(!Po||ue)&&(Be(""),Sr(""))}),hn=function(et,_e){Jn(et);var xt=_e.type,Gn=_e.values;(xt==="remove"||xt==="clear")&&Gn.forEach(function(Yn){di(Yn.value,!1,xt)})},jr=function(et,_e){if(Be(et),Sr(null),_e.source==="submit"){var xt=(et||"").trim();if(xt){var Gn=Array.from(new Set([].concat((0,q.Z)(br),[xt])));Jn(Gn),di(xt,!0),Be("")}return}_e.source!=="blur"&&(p==="combobox"&&Jn(et),_==null||_(et))},Vr=function(et){var _e=et;p!=="tags"&&(_e=et.map(function(Gn){var Yn=un.get(Gn);return Yn==null?void 0:Yn.value}).filter(function(Gn){return Gn!==void 0}));var xt=Array.from(new Set([].concat((0,q.Z)(br),(0,q.Z)(_e))));Jn(xt),xt.forEach(function(Gn){di(Gn,!0)})},Zt=v.useMemo(function(){var he=Ht!==!1&&Te!==!1;return(0,M.Z)((0,M.Z)({},qe),{},{flattenOptions:Rr,onActiveValue:Kr,defaultActiveFirstOption:ji,onSelect:qn,menuItemSelectedIcon:ht,rawValues:br,fieldNames:an,virtual:he,direction:it,listHeight:_t,listItemHeight:yt,childrenAsData:fn})},[qe,Rr,Kr,ji,qn,ht,br,an,Ht,Te,_t,yt,fn]);return v.createElement(Vl.Provider,{value:Zt},v.createElement(ks,(0,O.Z)({},st,{id:Hn,prefixCls:E,ref:u,omitDomProps:jn,mode:p,displayValues:Mr,onDisplayValuesChange:hn,direction:it,searchValue:gt,onSearch:jr,autoClearSearchValue:ue,onSearchSplit:Vr,dropdownMatchSelectWidth:Te,OptionList:Ui,emptyOptions:!Rr.length,activeValue:bi,activeDescendantId:"".concat(Hn,"_list_").concat(Cr)})))}),wo=ko;wo.Option=Cs,wo.OptGroup=Ul;var Es=wo,_l=Es,Ms=g(10366),Ys=g(8745),Xl=g(33603),Ma=g(9708),Is=g(53124),Yl=g(98866),Uo=g(88258),Rs=g(98675),Os=g(65223),Qs=g(4173),Sl=g(87244),Ql=g(13458),Ls=g(78642),Js=g(46163),Ts=function(l,u){var d={};for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&u.indexOf(p)<0&&(d[p]=l[p]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,p=Object.getOwnPropertySymbols(l);C<p.length;C++)u.indexOf(p[C])<0&&Object.prototype.propertyIsEnumerable.call(l,p[C])&&(d[p[C]]=l[p[C]]);return d};const Ps="SECRET_COMBOBOX_MODE_DO_NOT_USE",qs=(l,u)=>{var d,{prefixCls:p,bordered:C=!0,className:E,rootClassName:R,getPopupContainer:z,popupClassName:Z,dropdownClassName:k,listHeight:_=256,placement:U,listItemHeight:ue=24,size:B,disabled:le,notFoundContent:$e,status:Te,builtinPlacements:We,dropdownMatchSelectWidth:He,popupMatchSelectWidth:Ee,direction:fe,style:ft,allowClear:Ze}=l,vt=Ts(l,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ht,getPrefixCls:Ht,renderEmpty:it,direction:tt,virtual:_t,popupMatchSelectWidth:Ft,popupOverflow:yt,select:Je}=v.useContext(Is.E_),Ke=Ht("select",p),Le=Ht(),bt=fe!=null?fe:tt,{compactSize:st,compactItemClassnames:Hn}=(0,Qs.ri)(Ke,bt),[Pn,fn]=(0,Sl.Z)(Ke),Vn=v.useMemo(()=>{const{mode:In}=vt;if(In!=="combobox")return In===Ps?"combobox":In},[vt.mode]),an=Vn==="multiple"||Vn==="tags",_n=(0,Ls.Z)(vt.suffixIcon,vt.showArrow),Nr=(d=Ee!=null?Ee:He)!==null&&d!==void 0?d:Ft,{status:gt,hasFeedback:Be,isFormItemInput:qe,feedbackIcon:nn}=v.useContext(Os.aM),un=(0,Ma.F)(gt,Te);let ln;$e!==void 0?ln=$e:Vn==="combobox"?ln=null:ln=(it==null?void 0:it("Select"))||v.createElement(Uo.Z,{componentName:"Select"});const{suffixIcon:Mt,itemIcon:rn,removeIcon:Fn,clearIcon:mn}=(0,Js.Z)(Object.assign(Object.assign({},vt),{multiple:an,hasFeedback:Be,feedbackIcon:nn,showSuffixIcon:_n,prefixCls:Ke,showArrow:vt.showArrow,componentName:"Select"})),Ut=Ze===!0?{clearIcon:mn}:Ze,Ge=(0,Ms.Z)(vt,["suffixIcon","itemIcon"]),dn=Q()(Z||k,{[`${Ke}-dropdown-${bt}`]:bt==="rtl"},R,fn),vn=(0,Rs.Z)(In=>{var nr;return(nr=B!=null?B:st)!==null&&nr!==void 0?nr:In}),yn=v.useContext(Yl.Z),Er=le!=null?le:yn,Mr=Q()({[`${Ke}-lg`]:vn==="large",[`${Ke}-sm`]:vn==="small",[`${Ke}-rtl`]:bt==="rtl",[`${Ke}-borderless`]:!C,[`${Ke}-in-form-item`]:qe},(0,Ma.Z)(Ke,un,Be),Hn,Je==null?void 0:Je.className,E,R,fn),br=v.useMemo(()=>U!==void 0?U:bt==="rtl"?"bottomRight":"bottomLeft",[U,bt]),Ir=(0,Ql.Z)(We,yt);return Pn(v.createElement(_l,Object.assign({ref:u,virtual:_t,showSearch:Je==null?void 0:Je.showSearch},Ge,{style:Object.assign(Object.assign({},Je==null?void 0:Je.style),ft),dropdownMatchSelectWidth:Nr,builtinPlacements:Ir,transitionName:(0,Xl.m)(Le,"slide-up",vt.transitionName),listHeight:_,listItemHeight:ue,mode:Vn,prefixCls:Ke,placement:br,direction:bt,suffixIcon:Mt,menuItemSelectedIcon:rn,removeIcon:Fn,allowClear:Ut,notFoundContent:ln,className:Mr,getPopupContainer:z||ht,dropdownClassName:dn,disabled:Er})))},Do=v.forwardRef(qs),Ds=(0,Ys.Z)(Do);Do.SECRET_COMBOBOX_MODE_DO_NOT_USE=Ps,Do.Option=Cs,Do.OptGroup=Ul,Do._InternalPanelDoNotUseOrYouWillBeFired=Ds;var eu=Do},87244:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return b}});var T=g(14747),Q=g(80110),O=g(45503),q=g(67968),x=g(67771),M=g(33297);const y=h=>{const{optionHeight:I,optionFontSize:A,optionLineHeight:X,optionPadding:$}=h;return{position:"relative",display:"block",minHeight:I,padding:$,color:h.colorText,fontWeight:"normal",fontSize:A,lineHeight:X,boxSizing:"border-box"}};var j=h=>{const{antCls:I,componentCls:A}=h,X=`${A}-item`,$=`&${I}-slide-up-enter${I}-slide-up-enter-active`,ze=`&${I}-slide-up-appear${I}-slide-up-appear-active`,re=`&${I}-slide-up-leave${I}-slide-up-leave-active`,oe=`${A}-dropdown-placement-`;return[{[`${A}-dropdown`]:Object.assign(Object.assign({},(0,T.Wf)(h)),{position:"absolute",top:-9999,zIndex:h.zIndexPopup,boxSizing:"border-box",padding:h.paddingXXS,overflow:"hidden",fontSize:h.fontSize,fontVariant:"initial",backgroundColor:h.colorBgElevated,borderRadius:h.borderRadiusLG,outline:"none",boxShadow:h.boxShadowSecondary,[`
|
|
|
${$}${oe}bottomLeft,
|
|
|
${ze}${oe}bottomLeft
|
|
|
`]:{animationName:x.fJ},[`
|
|
|
${$}${oe}topLeft,
|
|
|
${ze}${oe}topLeft,
|
|
|
${$}${oe}topRight,
|
|
|
${ze}${oe}topRight
|
|
|
`]:{animationName:x.Qt},[`${re}${oe}bottomLeft`]:{animationName:x.Uw},[`
|
|
|
${re}${oe}topLeft,
|
|
|
${re}${oe}topRight
|
|
|
`]:{animationName:x.ly},"&-hidden":{display:"none"},[`${X}`]:Object.assign(Object.assign({},y(h)),{cursor:"pointer",transition:`background ${h.motionDurationSlow} ease`,borderRadius:h.borderRadiusSM,"&-group":{color:h.colorTextDescription,fontSize:h.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},T.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${X}-option-disabled)`]:{backgroundColor:h.optionActiveBg},[`&-selected:not(${X}-option-disabled)`]:{color:h.optionSelectedColor,fontWeight:h.optionSelectedFontWeight,backgroundColor:h.optionSelectedBg,[`${X}-option-state`]:{color:h.colorPrimary}},"&-disabled":{[`&${X}-option-selected`]:{backgroundColor:h.colorBgContainerDisabled},color:h.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:h.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,x.oN)(h,"slide-up"),(0,x.oN)(h,"slide-down"),(0,M.Fm)(h,"move-up"),(0,M.Fm)(h,"move-down")]};const v=2,Me=h=>{let{controlHeightSM:I,controlHeight:A,lineWidth:X}=h;const $=(A-I)/2-X,ze=Math.ceil($/2);return[$,ze]};function se(h,I){const{componentCls:A,iconCls:X}=h,$=`${A}-selection-overflow`,ze=h.multipleSelectItemHeight,[re]=Me(h),oe=I?`${A}-${I}`:"";return{[`${A}-multiple${oe}`]:{fontSize:h.fontSize,[$]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${A}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${re-v}px ${v*2}px`,borderRadius:h.borderRadius,[`${A}-show-search&`]:{cursor:"text"},[`${A}-disabled&`]:{background:h.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${v}px 0`,lineHeight:`${ze}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${A}-show-arrow ${A}-selector,
|
|
|
&${A}-allow-clear ${A}-selector
|
|
|
`]:{paddingInlineEnd:h.fontSizeIcon+h.controlPaddingHorizontal},[`${A}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:ze,marginTop:v,marginBottom:v,lineHeight:`${ze-h.lineWidth*2}px`,background:h.multipleItemBg,border:`${h.lineWidth}px ${h.lineType} ${h.multipleItemBorderColor}`,borderRadius:h.borderRadiusSM,cursor:"default",transition:`font-size ${h.motionDurationSlow}, line-height ${h.motionDurationSlow}, height ${h.motionDurationSlow}`,userSelect:"none",marginInlineEnd:v*2,paddingInlineStart:h.paddingXS,paddingInlineEnd:h.paddingXS/2,[`${A}-disabled&`]:{color:h.multipleItemColorDisabled,borderColor:h.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:h.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,T.Ro)()),{display:"inline-flex",alignItems:"center",color:h.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${X}`]:{verticalAlign:"-0.2em"},"&:hover":{color:h.colorIconHover}})},[`${$}-item + ${$}-item`]:{[`${A}-selection-search`]:{marginInlineStart:0}},[`${A}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:h.inputPaddingHorizontalBase-re,"\n &-input,\n &-mirror\n ":{height:ze,fontFamily:h.fontFamily,lineHeight:`${ze}px`,transition:`all ${h.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${A}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:h.inputPaddingHorizontalBase,insetInlineEnd:h.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${h.motionDurationSlow}`}}}}var Se=h=>{const{componentCls:I}=h,A=(0,O.TS)(h,{controlHeight:h.controlHeightSM,multipleSelectItemHeight:h.controlHeightXS,borderRadius:h.borderRadiusSM,borderRadiusSM:h.borderRadiusXS}),X=(0,O.TS)(h,{fontSize:h.fontSizeLG,controlHeight:h.controlHeightLG,multipleSelectItemHeight:h.multipleItemHeightLG,borderRadius:h.borderRadiusLG,borderRadiusSM:h.borderRadius}),[,$]=Me(h);return[se(h),se(A,"sm"),{[`${I}-multiple${I}-sm`]:{[`${I}-selection-placeholder`]:{insetInline:h.controlPaddingHorizontalSM-h.lineWidth},[`${I}-selection-search`]:{marginInlineStart:$}}},se(X,"lg")]};function Ie(h,I){const{componentCls:A,inputPaddingHorizontalBase:X,borderRadius:$}=h,ze=h.controlHeight-h.lineWidth*2,re=Math.ceil(h.fontSize*1.25),oe=I?`${A}-${I}`:"";return{[`${A}-single${oe}`]:{fontSize:h.fontSize,[`${A}-selector`]:Object.assign(Object.assign({},(0,T.Wf)(h)),{display:"flex",borderRadius:$,[`${A}-selection-search`]:{position:"absolute",top:0,insetInlineStart:X,insetInlineEnd:X,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${A}-selection-item,
|
|
|
${A}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${ze}px`,transition:`all ${h.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${ze}px`}},[`${A}-selection-item`]:{position:"relative",userSelect:"none"},[`${A}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${A}-selection-item:after`,`${A}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${A}-show-arrow ${A}-selection-item,
|
|
|
&${A}-show-arrow ${A}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:re},[`&${A}-open ${A}-selection-item`]:{color:h.colorTextPlaceholder},[`&:not(${A}-customize-input)`]:{[`${A}-selector`]:{width:"100%",height:h.controlHeight,padding:`0 ${X}px`,[`${A}-selection-search-input`]:{height:ze},"&:after":{lineHeight:`${ze}px`}}},[`&${A}-customize-input`]:{[`${A}-selector`]:{"&:after":{display:"none"},[`${A}-selection-search`]:{position:"static",width:"100%"},[`${A}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${X}px`,"&:after":{display:"none"}}}}}}}function ce(h){const{componentCls:I}=h,A=h.controlPaddingHorizontalSM-h.lineWidth;return[Ie(h),Ie((0,O.TS)(h,{controlHeight:h.controlHeightSM,borderRadius:h.borderRadiusSM}),"sm"),{[`${I}-single${I}-sm`]:{[`&:not(${I}-customize-input)`]:{[`${I}-selection-search`]:{insetInlineStart:A,insetInlineEnd:A},[`${I}-selector`]:{padding:`0 ${A}px`},[`&${I}-show-arrow ${I}-selection-search`]:{insetInlineEnd:A+h.fontSize*1.5},[`
|
|
|
&${I}-show-arrow ${I}-selection-item,
|
|
|
&${I}-show-arrow ${I}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:h.fontSize*1.5}}}},Ie((0,O.TS)(h,{controlHeight:h.singleItemHeightLG,fontSize:h.fontSizeLG,borderRadius:h.borderRadiusLG}),"lg")]}const P=h=>{const{componentCls:I,selectorBg:A}=h;return{position:"relative",backgroundColor:A,border:`${h.lineWidth}px ${h.lineType} ${h.colorBorder}`,transition:`all ${h.motionDurationMid} ${h.motionEaseInOut}`,input:{cursor:"pointer"},[`${I}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${I}-disabled&`]:{color:h.colorTextDisabled,background:h.colorBgContainerDisabled,cursor:"not-allowed",[`${I}-multiple&`]:{background:h.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},xe=function(h,I){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:X,borderHoverColor:$,outlineColor:ze,antCls:re}=I,oe=A?{[`${X}-selector`]:{borderColor:$}}:{};return{[h]:{[`&:not(${X}-disabled):not(${X}-customize-input):not(${re}-pagination-size-changer)`]:Object.assign(Object.assign({},oe),{[`${X}-focused& ${X}-selector`]:{borderColor:$,boxShadow:`0 0 0 ${I.controlOutlineWidth}px ${ze}`,outline:0},[`&:hover ${X}-selector`]:{borderColor:$}})}}},nt=h=>{const{componentCls:I}=h;return{[`${I}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},V=h=>{const{componentCls:I,inputPaddingHorizontalBase:A,iconCls:X}=h;return{[I]:Object.assign(Object.assign({},(0,T.Wf)(h)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${I}-customize-input) ${I}-selector`]:Object.assign(Object.assign({},P(h)),nt(h)),[`${I}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},T.vS),[`${I}-selection-placeholder`]:Object.assign(Object.assign({},T.vS),{flex:1,color:h.colorTextPlaceholder,pointerEvents:"none"}),[`${I}-arrow`]:Object.assign(Object.assign({},(0,T.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:A,height:h.fontSizeIcon,marginTop:-h.fontSizeIcon/2,color:h.colorTextQuaternary,fontSize:h.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[X]:{verticalAlign:"top",transition:`transform ${h.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${I}-suffix)`]:{pointerEvents:"auto"}},[`${I}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${I}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:A,zIndex:1,display:"inline-block",width:h.fontSizeIcon,height:h.fontSizeIcon,marginTop:-h.fontSizeIcon/2,color:h.colorTextQuaternary,fontSize:h.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:h.clearBg,cursor:"pointer",opacity:0,transition:`color ${h.motionDurationMid} ease, opacity ${h.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:h.colorTextTertiary}},"&:hover":{[`${I}-clear`]:{opacity:1}}}),[`${I}-has-feedback`]:{[`${I}-clear`]:{insetInlineEnd:A+h.fontSize+h.paddingXS}}}},ne=h=>{const{componentCls:I}=h;return[{[I]:{[`&-borderless ${I}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${I}-in-form-item`]:{width:"100%"}}},V(h),ce(h),Se(h),j(h),{[`${I}-rtl`]:{direction:"rtl"}},xe(I,(0,O.TS)(h,{borderHoverColor:h.colorPrimaryHover,outlineColor:h.controlOutline})),xe(`${I}-status-error`,(0,O.TS)(h,{borderHoverColor:h.colorErrorHover,outlineColor:h.colorErrorOutline}),!0),xe(`${I}-status-warning`,(0,O.TS)(h,{borderHoverColor:h.colorWarningHover,outlineColor:h.colorWarningOutline}),!0),(0,Q.c)(h,{borderElCls:`${I}-selector`,focusElCls:`${I}-focused`})]};var b=(0,q.Z)("Select",(h,I)=>{let{rootPrefixCls:A}=I;const X=(0,O.TS)(h,{rootPrefixCls:A,inputPaddingHorizontalBase:h.paddingSM-1,multipleSelectItemHeight:h.multipleItemHeight});return[ne(X)]},h=>{const{fontSize:I,lineHeight:A,controlHeight:X,controlPaddingHorizontal:$,zIndexPopupBase:ze,colorText:re,fontWeightStrong:oe,controlItemBgActive:Tt,controlItemBgHover:wt,colorBgContainer:on,colorFillSecondary:Xt,controlHeightLG:On,controlHeightSM:ye,colorBgContainerDisabled:Ue,colorTextDisabled:pe}=h;return{zIndexPopup:ze+50,optionSelectedColor:re,optionSelectedFontWeight:oe,optionSelectedBg:Tt,optionActiveBg:wt,optionPadding:`${(X-I*A)/2}px ${$}px`,optionFontSize:I,optionLineHeight:A,optionHeight:X,selectorBg:on,clearBg:on,singleItemHeightLG:On,multipleItemBg:Xt,multipleItemBorderColor:"transparent",multipleItemHeight:ye,multipleItemHeightLG:X,multipleSelectorBgDisabled:Ue,multipleItemColorDisabled:pe,multipleItemBorderColorDisabled:"transparent"}})},13458:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return Q}});const T=O=>{const x={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:O==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},x),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},x),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},x),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},x),{points:["br","tr"],offset:[0,-4]})}};function Q(O,q){return O||T(q)}},78642:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return T}});function T(Q,O){return O!==void 0?O:Q!==null}},46163:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return de}});var T=g(60068),Q=g(30186),O=g(85846),q=g(15558),x=g(77322),M=g(47880),y=g(67294);function de(j){let{suffixIcon:v,clearIcon:Me,menuItemSelectedIcon:se,removeIcon:be,loading:Se,multiple:Ie,hasFeedback:ce,prefixCls:P,showSuffixIcon:xe,feedbackIcon:nt,showArrow:V,componentName:ne}=j;const b=Me!=null?Me:y.createElement(Q.Z,null),h=$=>v===null&&!ce&&!V?null:y.createElement(y.Fragment,null,xe!==!1&&$,ce&&nt);let I=null;if(v!==void 0)I=h(v);else if(Se)I=h(y.createElement(x.Z,{spin:!0}));else{const $=`${P}-suffix`;I=ze=>{let{open:re,showSearch:oe}=ze;return h(re&&oe?y.createElement(M.Z,{className:$}):y.createElement(q.Z,{className:$}))}}let A=null;se!==void 0?A=se:Ie?A=y.createElement(T.Z,null):A=null;let X=null;return be!==void 0?X=be:X=y.createElement(O.Z,null),{clearIcon:b,suffixIcon:I,itemIcon:A,removeIcon:X}}},33507:function(Sn,me){"use strict";const g=T=>({[T.componentCls]:{[`${T.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${T.motionDurationMid} ${T.motionEaseInOut},
|
|
|
opacity ${T.motionDurationMid} ${T.motionEaseInOut} !important`}},[`${T.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${T.motionDurationMid} ${T.motionEaseInOut},
|
|
|
opacity ${T.motionDurationMid} ${T.motionEaseInOut} !important`}}});me.Z=g},33297:function(Sn,me,g){"use strict";g.d(me,{Fm:function(){return se}});var T=g(45930),Q=g(93590);const O=new T.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),q=new T.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),x=new T.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M=new T.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),y=new T.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),de=new T.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),j=new T.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new T.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Me={"move-up":{inKeyframes:j,outKeyframes:v},"move-down":{inKeyframes:O,outKeyframes:q},"move-left":{inKeyframes:x,outKeyframes:M},"move-right":{inKeyframes:y,outKeyframes:de}},se=(be,Se)=>{const{antCls:Ie}=be,ce=`${Ie}-${Se}`,{inKeyframes:P,outKeyframes:xe}=Me[Se];return[(0,Q.R)(ce,P,xe,be.motionDurationMid),{[`
|
|
|
${ce}-enter,
|
|
|
${ce}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:be.motionEaseOutCirc},[`${ce}-leave`]:{animationTimingFunction:be.motionEaseInOutCirc}}]}},67771:function(Sn,me,g){"use strict";g.d(me,{Qt:function(){return x},Uw:function(){return q},fJ:function(){return O},ly:function(){return M},oN:function(){return se}});var T=g(45930),Q=g(93590);const O=new T.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),q=new T.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),x=new T.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),M=new T.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),y=new T.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),de=new T.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),j=new T.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),v=new T.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Me={"slide-up":{inKeyframes:O,outKeyframes:q},"slide-down":{inKeyframes:x,outKeyframes:M},"slide-left":{inKeyframes:y,outKeyframes:de},"slide-right":{inKeyframes:j,outKeyframes:v}},se=(be,Se)=>{const{antCls:Ie}=be,ce=`${Ie}-${Se}`,{inKeyframes:P,outKeyframes:xe}=Me[Se];return[(0,Q.R)(ce,P,xe,be.motionDurationMid),{[`
|
|
|
${ce}-enter,
|
|
|
${ce}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:be.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${ce}-leave`]:{animationTimingFunction:be.motionEaseInQuint}}]}},60068:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return y}});var T=g(87462),Q=g(67294),O={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"},q=O,x=g(44327),M=function(j,v){return Q.createElement(x.Z,(0,T.Z)({},j,{ref:v,icon:q}))},y=Q.forwardRef(M)},15558:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return y}});var T=g(87462),Q=g(67294),O={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"},q=O,x=g(44327),M=function(j,v){return Q.createElement(x.Z,(0,T.Z)({},j,{ref:v,icon:q}))},y=Q.forwardRef(M)},43481:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return y}});var T=g(87462),Q=g(67294),O={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"},q=O,x=g(44327),M=function(j,v){return Q.createElement(x.Z,(0,T.Z)({},j,{ref:v,icon:q}))},y=Q.forwardRef(M)},47880:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return y}});var T=g(87462),Q=g(67294),O={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"},q=O,x=g(44327),M=function(j,v){return Q.createElement(x.Z,(0,T.Z)({},j,{ref:v,icon:q}))},y=Q.forwardRef(M)},56396:function(Sn,me){"use strict";var g;var T=Symbol.for("react.element"),Q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),y=Symbol.for("react.context"),de=Symbol.for("react.server_context"),j=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),Ie;Ie=Symbol.for("react.module.reference");function ce(P){if(typeof P=="object"&&P!==null){var xe=P.$$typeof;switch(xe){case T:switch(P=P.type,P){case O:case x:case q:case v:case Me:return P;default:switch(P=P&&P.$$typeof,P){case de:case y:case j:case be:case se:case M:return P;default:return xe}}case Q:return xe}}}g=y,g=M,g=T,g=j,g=O,g=be,g=se,g=Q,g=x,g=q,g=v,g=Me,g=function(){return!1},g=function(){return!1},g=function(P){return ce(P)===y},g=function(P){return ce(P)===M},g=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===T},g=function(P){return ce(P)===j},g=function(P){return ce(P)===O},g=function(P){return ce(P)===be},me.isMemo=function(P){return ce(P)===se},g=function(P){return ce(P)===Q},g=function(P){return ce(P)===x},g=function(P){return ce(P)===q},g=function(P){return ce(P)===v},g=function(P){return ce(P)===Me},g=function(P){return typeof P=="string"||typeof P=="function"||P===O||P===x||P===q||P===v||P===Me||P===Se||typeof P=="object"&&P!==null&&(P.$$typeof===be||P.$$typeof===se||P.$$typeof===M||P.$$typeof===y||P.$$typeof===j||P.$$typeof===Ie||P.getModuleId!==void 0)},g=ce},71326:function(Sn,me,g){"use strict";Sn.exports=g(56396)},41771:function(Sn,me){"use strict";var g;var T=typeof Symbol=="function"&&Symbol.for,Q=T?Symbol.for("react.element"):60103,O=T?Symbol.for("react.portal"):60106,q=T?Symbol.for("react.fragment"):60107,x=T?Symbol.for("react.strict_mode"):60108,M=T?Symbol.for("react.profiler"):60114,y=T?Symbol.for("react.provider"):60109,de=T?Symbol.for("react.context"):60110,j=T?Symbol.for("react.async_mode"):60111,v=T?Symbol.for("react.concurrent_mode"):60111,Me=T?Symbol.for("react.forward_ref"):60112,se=T?Symbol.for("react.suspense"):60113,be=T?Symbol.for("react.suspense_list"):60120,Se=T?Symbol.for("react.memo"):60115,Ie=T?Symbol.for("react.lazy"):60116,ce=T?Symbol.for("react.block"):60121,P=T?Symbol.for("react.fundamental"):60117,xe=T?Symbol.for("react.responder"):60118,nt=T?Symbol.for("react.scope"):60119;function V(b){if(typeof b=="object"&&b!==null){var h=b.$$typeof;switch(h){case Q:switch(b=b.type,b){case j:case v:case q:case M:case x:case se:return b;default:switch(b=b&&b.$$typeof,b){case de:case Me:case Ie:case Se:case y:return b;default:return h}}case O:return h}}}function ne(b){return V(b)===v}g=j,g=v,g=de,g=y,g=Q,g=Me,g=q,g=Ie,g=Se,g=O,g=M,g=x,g=se,g=function(b){return ne(b)||V(b)===j},g=ne,g=function(b){return V(b)===de},g=function(b){return V(b)===y},g=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===Q},g=function(b){return V(b)===Me},me.isFragment=function(b){return V(b)===q},g=function(b){return V(b)===Ie},me.isMemo=function(b){return V(b)===Se},g=function(b){return V(b)===O},g=function(b){return V(b)===M},g=function(b){return V(b)===x},g=function(b){return V(b)===se},g=function(b){return typeof b=="string"||typeof b=="function"||b===q||b===v||b===M||b===x||b===se||b===be||typeof b=="object"&&b!==null&&(b.$$typeof===Ie||b.$$typeof===Se||b.$$typeof===y||b.$$typeof===de||b.$$typeof===Me||b.$$typeof===P||b.$$typeof===xe||b.$$typeof===nt||b.$$typeof===ce)},g=V},47655:function(Sn,me,g){"use strict";Sn.exports=g(41771)},64701:function(Sn,me,g){"use strict";g.r(me),g.d(me,{ResizableTextArea:function(){return at},default:function(){return ar}});var T=g(87462),Q=g(1413),O=g(4942),q=g(71002),x=g(97685),M=g(45987),y=g(74902),de=g(94184),j=g.n(de),v=g(67656),Me=g(87887),se=g(67294);function be(Oe){var Re=se.useRef();Re.current=Oe;var je=se.useCallback(function(){for(var Ne,St=arguments.length,At=new Array(St),Dt=0;Dt<St;Dt++)At[Dt]=arguments[Dt];return(Ne=Re.current)===null||Ne===void 0?void 0:Ne.call.apply(Ne,[Re].concat(At))},[]);return je}function Se(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Ie=Se()?se.useLayoutEffect:se.useEffect,ce=Ie,P=function(Re,je){var Ne=se.useRef(!0);Ie(function(){if(!Ne.current)return Re()},je),Ie(function(){return Ne.current=!1,function(){Ne.current=!0}},[])};function xe(Oe){var Re=se.useRef(!1),je=se.useState(Oe),Ne=(0,x.Z)(je,2),St=Ne[0],At=Ne[1];se.useEffect(function(){return Re.current=!1,function(){Re.current=!0}},[]);function Dt(Ct,Et){Et&&Re.current||At(Ct)}return[St,Dt]}function nt(Oe){return Oe!==void 0}function V(Oe,Re){var je=Re||{},Ne=je.defaultValue,St=je.value,At=je.onChange,Dt=je.postState,Ct=xe(function(){return nt(St)?St:nt(Ne)?typeof Ne=="function"?Ne():Ne:typeof Oe=="function"?Oe():Oe}),Et=(0,x.Z)(Ct,2),zt=Et[0],tn=Et[1],jt=St!==void 0?St:zt,Rt=Dt?Dt(jt):jt,ct=be(At),Cn=xe([jt]),gn=(0,x.Z)(Cn,2),cn=gn[0],wr=gn[1];P(function(){var rr=cn[0];zt!==rr&&ct(zt,rr)},[cn]),P(function(){nt(St)||tn(St)},[St]);var xn=be(function(rr,ke){tn(rr,ke),wr([jt],ke)});return[Rt,xn]}var ne=g(48555),b=function(Re){return+setTimeout(Re,16)},h=function(Re){return clearTimeout(Re)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(b=function(Re){return window.requestAnimationFrame(Re)},h=function(Re){return window.cancelAnimationFrame(Re)});var I=0,A=new Map;function X(Oe){A.delete(Oe)}var $=function(Re){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;I+=1;var Ne=I;function St(At){if(At===0)X(Ne),Re();else{var Dt=b(function(){St(At-1)});A.set(Ne,Dt)}}return St(je),Ne};$.cancel=function(Oe){var Re=A.get(Oe);return X(Re),h(Re)};var ze=$,re=`
|
|
|
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;
|
|
|
`,oe=["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"],Tt={},wt;function on(Oe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=Oe.getAttribute("id")||Oe.getAttribute("data-reactid")||Oe.getAttribute("name");if(Re&&Tt[je])return Tt[je];var Ne=window.getComputedStyle(Oe),St=Ne.getPropertyValue("box-sizing")||Ne.getPropertyValue("-moz-box-sizing")||Ne.getPropertyValue("-webkit-box-sizing"),At=parseFloat(Ne.getPropertyValue("padding-bottom"))+parseFloat(Ne.getPropertyValue("padding-top")),Dt=parseFloat(Ne.getPropertyValue("border-bottom-width"))+parseFloat(Ne.getPropertyValue("border-top-width")),Ct=oe.map(function(zt){return"".concat(zt,":").concat(Ne.getPropertyValue(zt))}).join(";"),Et={sizingStyle:Ct,paddingSize:At,borderSize:Dt,boxSizing:St};return Re&&je&&(Tt[je]=Et),Et}function Xt(Oe){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;wt||(wt=document.createElement("textarea"),wt.setAttribute("tab-index","-1"),wt.setAttribute("aria-hidden","true"),document.body.appendChild(wt)),Oe.getAttribute("wrap")?wt.setAttribute("wrap",Oe.getAttribute("wrap")):wt.removeAttribute("wrap");var St=on(Oe,Re),At=St.paddingSize,Dt=St.borderSize,Ct=St.boxSizing,Et=St.sizingStyle;wt.setAttribute("style","".concat(Et,";").concat(re)),wt.value=Oe.value||Oe.placeholder||"";var zt=void 0,tn=void 0,jt,Rt=wt.scrollHeight;if(Ct==="border-box"?Rt+=Dt:Ct==="content-box"&&(Rt-=At),je!==null||Ne!==null){wt.value=" ";var ct=wt.scrollHeight-At;je!==null&&(zt=ct*je,Ct==="border-box"&&(zt=zt+At+Dt),Rt=Math.max(zt,Rt)),Ne!==null&&(tn=ct*Ne,Ct==="border-box"&&(tn=tn+At+Dt),jt=Rt>tn?"":"hidden",Rt=Math.min(tn,Rt))}var Cn={height:Rt,overflowY:jt,resize:"none"};return zt&&(Cn.minHeight=zt),tn&&(Cn.maxHeight=tn),Cn}var On=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ye=0,Ue=1,pe=2,ve=se.forwardRef(function(Oe,Re){var je=Oe,Ne=je.prefixCls,St=je.onPressEnter,At=je.defaultValue,Dt=je.value,Ct=je.autoSize,Et=je.onResize,zt=je.className,tn=je.style,jt=je.disabled,Rt=je.onChange,ct=je.onInternalAutoSize,Cn=(0,M.Z)(je,On),gn=V(At,{value:Dt,postState:function(ee){return ee!=null?ee:""}}),cn=(0,x.Z)(gn,2),wr=cn[0],xn=cn[1],rr=function(ee){xn(ee.target.value),Rt==null||Rt(ee)},ke=se.useRef();se.useImperativeHandle(Re,function(){return{textArea:ke.current}});var _r=se.useMemo(function(){return Ct&&(0,q.Z)(Ct)==="object"?[Ct.minRows,Ct.maxRows]:[]},[Ct]),er=(0,x.Z)(_r,2),Dn=er[0],$n=er[1],Nn=!!Ct,wn=function(){try{if(document.activeElement===ke.current){var ee=ke.current,Ye=ee.selectionStart,Pe=ee.selectionEnd,De=ee.scrollTop;ke.current.setSelectionRange(Ye,Pe),ke.current.scrollTop=De}}catch(pt){}},ur=se.useState(pe),cr=(0,x.Z)(ur,2),Zr=cr[0],oi=cr[1],Li=se.useState(),uo=(0,x.Z)(Li,2),Ji=uo[0],po=uo[1],Ti=function(){oi(ye)};ce(function(){Nn&&Ti()},[Dt,Dn,$n,Nn]),ce(function(){if(Zr===ye)oi(Ue);else if(Zr===Ue){var Y=Xt(ke.current,!1,Dn,$n);oi(pe),po(Y)}else wn()},[Zr]);var Fi=se.useRef(),$i=function(){ze.cancel(Fi.current)},co=function(ee){Zr===pe&&(Et==null||Et(ee),Ct&&($i(),Fi.current=ze(function(){Ti()})))};se.useEffect(function(){return $i},[]);var N=Nn?Ji:null,te=(0,Q.Z)((0,Q.Z)({},tn),N);return(Zr===ye||Zr===Ue)&&(te.overflowY="hidden",te.overflowX="hidden"),se.createElement(ne.Z,{onResize:co,disabled:!(Ct||Et)},se.createElement("textarea",(0,T.Z)({},Cn,{ref:ke,style:te,className:j()(Ne,zt,(0,O.Z)({},"".concat(Ne,"-disabled"),jt)),disabled:jt,value:wr,onChange:rr})))}),at=ve,kt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function lt(Oe,Re){return(0,y.Z)(Oe||"").slice(0,Re).join("")}function ut(Oe,Re,je,Ne){var St=je;return Oe?St=lt(je,Ne):(0,y.Z)(Re||"").length<je.length&&(0,y.Z)(je||"").length>Ne&&(St=Re),St}var dt=se.forwardRef(function(Oe,Re){var je,Ne=Oe.defaultValue,St=Oe.value,At=Oe.onFocus,Dt=Oe.onBlur,Ct=Oe.onChange,Et=Oe.allowClear,zt=Oe.maxLength,tn=Oe.onCompositionStart,jt=Oe.onCompositionEnd,Rt=Oe.suffix,ct=Oe.prefixCls,Cn=ct===void 0?"rc-textarea":ct,gn=Oe.classes,cn=Oe.showCount,wr=Oe.className,xn=Oe.style,rr=Oe.disabled,ke=Oe.hidden,_r=Oe.classNames,er=Oe.styles,Dn=Oe.onResize,$n=(0,M.Z)(Oe,kt),Nn=V(Ne,{value:St,defaultValue:Ne}),wn=(0,x.Z)(Nn,2),ur=wn[0],cr=wn[1],Zr=(0,se.useRef)(null),oi=se.useState(!1),Li=(0,x.Z)(oi,2),uo=Li[0],Ji=Li[1],po=se.useState(!1),Ti=(0,x.Z)(po,2),Fi=Ti[0],$i=Ti[1],co=se.useRef(),N=se.useRef(0),te=se.useState(null),Y=(0,x.Z)(te,2),ee=Y[0],Ye=Y[1],Pe=function(){var ae;(ae=Zr.current)===null||ae===void 0||ae.textArea.focus()};(0,se.useImperativeHandle)(Re,function(){return{resizableTextArea:Zr.current,focus:Pe,blur:function(){var ae;(ae=Zr.current)===null||ae===void 0||ae.textArea.blur()}}}),(0,se.useEffect)(function(){Ji(function(J){return!rr&&J})},[rr]);var De=Number(zt)>0,pt=function(ae){$i(!0),co.current=ur,N.current=ae.currentTarget.selectionStart,tn==null||tn(ae)},Bt=function(ae){$i(!1);var we=ae.currentTarget.value;if(De){var Lt,W=N.current>=zt+1||N.current===((Lt=co.current)===null||Lt===void 0?void 0:Lt.length);we=ut(W,co.current,we,zt)}we!==ur&&(cr(we),(0,Me.rJ)(ae.currentTarget,ae,Ct,we)),jt==null||jt(ae)},Yt=function(ae){var we=ae.target.value;if(!Fi&&De){var Lt=ae.target.selectionStart>=zt+1||ae.target.selectionStart===we.length||!ae.target.selectionStart;we=ut(Lt,ur,we,zt)}cr(we),(0,Me.rJ)(ae.currentTarget,ae,Ct,we)},Wt=function(ae){var we=$n.onPressEnter,Lt=$n.onKeyDown;ae.key==="Enter"&&we&&we(ae),Lt==null||Lt(ae)},ot=function(ae){Ji(!0),At==null||At(ae)},$t=function(ae){Ji(!1),Dt==null||Dt(ae)},mt=function(ae){var we;cr(""),Pe(),(0,Me.rJ)((we=Zr.current)===null||we===void 0?void 0:we.textArea,ae,Ct)},Qt=(0,Me.D7)(ur);!Fi&&De&&St==null&&(Qt=lt(Qt,zt));var Ot=Rt,Qe;if(cn){var m=(0,y.Z)(Qt).length;(0,q.Z)(cn)==="object"?Qe=cn.formatter({value:Qt,count:m,maxLength:zt}):Qe="".concat(m).concat(De?" / ".concat(zt):""),Ot=se.createElement(se.Fragment,null,Ot,se.createElement("span",{className:j()("".concat(Cn,"-data-count"),_r==null?void 0:_r.count),style:er==null?void 0:er.count},Qe))}var F=function(ae){var we;Dn==null||Dn(ae),(we=Zr.current)!==null&&we!==void 0&&we.textArea.style.height&&Ye(!0)},K=!$n.autoSize&&!cn&&!Et,H=se.createElement(v.BaseInput,{value:Qt,allowClear:Et,handleReset:mt,suffix:Ot,prefixCls:Cn,classes:{affixWrapper:j()(gn==null?void 0:gn.affixWrapper,(je={},(0,O.Z)(je,"".concat(Cn,"-show-count"),cn),(0,O.Z)(je,"".concat(Cn,"-textarea-allow-clear"),Et),je))},disabled:rr,focused:uo,className:wr,style:(0,Q.Z)((0,Q.Z)({},xn),ee&&!K?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Qe=="string"?Qe:void 0}},hidden:ke,inputElement:se.createElement(at,(0,T.Z)({},$n,{onKeyDown:Wt,onChange:Yt,onFocus:ot,onBlur:$t,onCompositionStart:pt,onCompositionEnd:Bt,className:_r==null?void 0:_r.textarea,style:(0,Q.Z)((0,Q.Z)({},er==null?void 0:er.textarea),{},{resize:xn==null?void 0:xn.resize}),disabled:rr,prefixCls:Cn,onResize:F,ref:Zr}))});return H}),Wn=dt,ar=Wn},4631:function(Sn){(function(me,g){Sn.exports=g()})(this,function(){"use strict";var me=navigator.userAgent,g=navigator.platform,T=/gecko\/\d/i.test(me),Q=/MSIE \d/.test(me),O=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(me),q=/Edge\/(\d+)/.exec(me),x=Q||O||q,M=x&&(Q?document.documentMode||6:+(q||O)[1]),y=!q&&/WebKit\//.test(me),de=y&&/Qt\/\d+\.\d+/.test(me),j=!q&&/Chrome\//.test(me),v=/Opera\//.test(me),Me=/Apple Computer/.test(navigator.vendor),se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(me),be=/PhantomJS/.test(me),Se=!q&&/AppleWebKit/.test(me)&&/Mobile\/\w+/.test(me),Ie=/Android/.test(me),ce=Se||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(me),P=Se||/Mac/.test(g),xe=/\bCrOS\b/.test(me),nt=/win/i.test(g),V=v&&me.match(/Version\/(\d*\.\d*)/);V&&(V=Number(V[1])),V&&V>=15&&(v=!1,y=!0);var ne=P&&(de||v&&(V==null||V<12.11)),b=T||x&&M>=9;function h(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var I=function(e,t){var r=e.className,n=h(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 A(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function X(e,t){return A(e).appendChild(t)}function $(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 ze(e,t,r,n){var i=$(e,t,r,n);return i.setAttribute("role","presentation"),i}var re;document.createRange?re=function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:re=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 oe(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 Tt(){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 wt(e,t){var r=e.className;h(t).test(r)||(e.className+=(r?" ":"")+t)}function on(e,t){for(var r=e.split(" "),n=0;n<r.length;n++)r[n]&&!h(r[n]).test(t)&&(t+=" "+r[n]);return t}var Xt=function(e){e.select()};Se?Xt=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:x&&(Xt=function(e){try{e.select()}catch(t){}});function On(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ye(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 Ue(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 s=e.indexOf(" ",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=r-a%r,o=s+1}}var pe=function(){this.id=null,this.f=null,this.time=0,this.handler=On(this.onTimeout,this)};pe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},pe.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 ve(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}var at=50,kt={toString:function(){return"CodeMirror.Pass"}},lt={scroll:!1},ut={origin:"*mouse"},dt={origin:"+move"};function Wn(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 ar=[""];function Oe(e){for(;ar.length<=e;)ar.push(Re(ar)+" ");return ar[e]}function Re(e){return e[e.length-1]}function je(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function Ne(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function St(){}function At(e,t){var r;return Object.create?r=Object.create(e):(St.prototype=e,r=new St),t&&ye(t,r),r}var Dt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ct(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Dt.test(e))}function Et(e,t){return t?t.source.indexOf("\\w")>-1&&Ct(e)?!0:t.test(e):Ct(e)}function zt(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var tn=/[\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 jt(e){return e.charCodeAt(0)>=768&&tn.test(e)}function Rt(e,t,r){for(;(r<0?t>0:t<e.length)&&jt(e.charAt(t));)t+=r;return t}function ct(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 Cn(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 gn=null;function cn(e,t,r){var n;gn=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:gn=i),o.from==t&&(o.from!=o.to&&r!="before"?n=i:gn=i)}return n!=null?n:gn}var wr=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function r(f){return f<=247?e.charAt(f):1424<=f&&f<=1524?"R":1536<=f&&f<=1785?t.charAt(f-1536):1774<=f&&f<=2220?"r":8192<=f&&f<=8203?"w":f==8204?"b":"L"}var n=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function c(f,S,w){this.level=f,this.from=S,this.to=w}return function(f,S){var w=S=="ltr"?"L":"R";if(f.length==0||S=="ltr"&&!n.test(f))return!1;for(var D=f.length,L=[],G=0;G<D;++G)L.push(r(f.charCodeAt(G)));for(var ie=0,ge=w;ie<D;++ie){var Ae=L[ie];Ae=="m"?L[ie]=ge:ge=Ae}for(var Xe=0,Fe=w;Xe<D;++Xe){var rt=L[Xe];rt=="1"&&Fe=="r"?L[Xe]="n":o.test(rt)&&(Fe=rt,rt=="r"&&(L[Xe]="R"))}for(var Nt=1,It=L[0];Nt<D-1;++Nt){var bn=L[Nt];bn=="+"&&It=="1"&&L[Nt+1]=="1"?L[Nt]="1":bn==","&&It==L[Nt+1]&&(It=="1"||It=="n")&&(L[Nt]=It),It=bn}for(var pr=0;pr<D;++pr){var gi=L[pr];if(gi==",")L[pr]="N";else if(gi=="%"){var Fr=void 0;for(Fr=pr+1;Fr<D&&L[Fr]=="%";++Fr);for(var so=pr&&L[pr-1]=="!"||Fr<D&&L[Fr]=="1"?"1":"N",Xi=pr;Xi<Fr;++Xi)L[Xi]=so;pr=Fr-1}}for(var ri=0,Yi=w;ri<D;++ri){var Si=L[ri];Yi=="L"&&Si=="1"?L[ri]="L":o.test(Si)&&(Yi=Si)}for(var ui=0;ui<D;++ui)if(i.test(L[ui])){var ii=void 0;for(ii=ui+1;ii<D&&i.test(L[ii]);++ii);for(var Hr=(ui?L[ui-1]:w)=="L",Qi=(ii<D?L[ii]:w)=="L",Cl=Hr==Qi?Hr?"L":"R":w,La=ui;La<ii;++La)L[La]=Cl;ui=ii-1}for(var Oi=[],Xo,pi=0;pi<D;)if(a.test(L[pi])){var tu=pi;for(++pi;pi<D&&a.test(L[pi]);++pi);Oi.push(new c(0,tu,pi))}else{var ha=pi,Ga=Oi.length,_a=S=="rtl"?1:0;for(++pi;pi<D&&L[pi]!="L";++pi);for(var Ai=ha;Ai<pi;)if(s.test(L[Ai])){ha<Ai&&(Oi.splice(Ga,0,new c(1,ha,Ai)),Ga+=_a);var xl=Ai;for(++Ai;Ai<pi&&s.test(L[Ai]);++Ai);Oi.splice(Ga,0,new c(2,xl,Ai)),Ga+=_a,ha=Ai}else++Ai;ha<pi&&Oi.splice(Ga,0,new c(1,ha,pi))}return S=="ltr"&&(Oi[0].level==1&&(Xo=f.match(/^\s+/))&&(Oi[0].from=Xo[0].length,Oi.unshift(new c(0,0,Xo[0].length))),Re(Oi).level==1&&(Xo=f.match(/\s+$/))&&(Re(Oi).to-=Xo[0].length,Oi.push(new c(0,D-Xo[0].length,D)))),S=="rtl"?Oi.reverse():Oi}}();function xn(e,t){var r=e.order;return r==null&&(r=e.order=wr(e.text,t)),r}var rr=[],ke=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]||rr).concat(r)}};function _r(e,t){return e._handlers&&e._handlers[t]||rr}function er(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=ve(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Dn(e,t){var r=_r(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 $n(e,t,r){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Dn(e,r||t.type,e,t),oi(t)||t.codemirrorIgnore}function Nn(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)ve(r,t[n])==-1&&r.push(t[n])}function wn(e,t){return _r(e,t).length>0}function ur(e){e.prototype.on=function(t,r){ke(this,t,r)},e.prototype.off=function(t,r){er(this,t,r)}}function cr(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Zr(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function oi(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Li(e){cr(e),Zr(e)}function uo(e){return e.target||e.srcElement}function Ji(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),P&&e.ctrlKey&&t==1&&(t=3),t}var po=function(){if(x&&M<9)return!1;var e=$("div");return"draggable"in e||"dragDrop"in e}(),Ti;function Fi(e){if(Ti==null){var t=$("span","\u200B");X(e,$("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Ti=t.offsetWidth<=1&&t.offsetHeight>2&&!(x&&M<8))}var r=Ti?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}var $i;function co(e){if($i!=null)return $i;var t=X(e,document.createTextNode("A\u062EA")),r=re(t,0,1).getBoundingClientRect(),n=re(t,1,2).getBoundingClientRect();return A(e),!r||r.left==r.right?!1:$i=n.right-r.right<3}var N=`
|
|
|
|
|
|
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/)},te=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},Y=function(){var e=$("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ee=null;function Ye(e){if(ee!=null)return ee;var t=X(e,$("span","x")),r=t.getBoundingClientRect(),n=re(t,0,1).getBoundingClientRect();return ee=Math.abs(r.left-n.left)>1}var Pe={},De={};function pt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Pe[e]=t}function Bt(e,t){De[e]=t}function Yt(e){if(typeof e=="string"&&De.hasOwnProperty(e))e=De[e];else if(e&&typeof e.name=="string"&&De.hasOwnProperty(e.name)){var t=De[e.name];typeof t=="string"&&(t={name:t}),e=At(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Yt("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Yt("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Wt(e,t){t=Yt(t);var r=Pe[t.name];if(!r)return Wt(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 $t(e,t){var r=ot.hasOwnProperty(e)?ot[e]:ot[e]={};ye(t,r)}function mt(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 Qt(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 Ot(e,t,r){return e.startState?e.startState(t,r):!0}var Qe=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};Qe.prototype.eol=function(){return this.pos>=this.string.length},Qe.prototype.sol=function(){return this.pos==this.lineStart},Qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Qe.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},Qe.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Qe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Qe.prototype.skipToEnd=function(){this.pos=this.string.length},Qe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Qe.prototype.backUp=function(e){this.pos-=e},Qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},Qe.prototype.indentation=function(){return Ue(this.string,null,this.tabSize)-(this.lineStart?Ue(this.string,this.lineStart,this.tabSize):0)},Qe.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)}},Qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Qe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Qe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Qe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function m(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 F(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 K(e,t,r){var n=[];return e.iter(t,r,function(i){n.push(i.text)}),n}function H(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function J(e){if(e.parent==null)return null;for(var t=e.parent,r=ve(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 ae(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 s=e.lines[a],c=s.height;if(t<c)break;t-=c}return r+a}function we(e,t){return t>=e.first&&t<e.first+e.size}function Lt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function W(e,t,r){if(r===void 0&&(r=null),!(this instanceof W))return new W(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 Vt(e,t){return e.sticky==t.sticky&&Ce(e,t)==0}function sn(e){return W(e.line,e.ch)}function Jt(e,t){return Ce(e,t)<0?t:e}function Ln(e,t){return Ce(e,t)<0?e:t}function ir(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function Ve(e,t){if(t.line<e.first)return W(e.first,0);var r=e.first+e.size-1;return t.line>r?W(r,m(e,r).text.length):Bn(t,m(e,t.line).text.length)}function Bn(e,t){var r=e.ch;return r==null||r>t?W(e.line,t):r<0?W(e.line,0):e}function En(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=Ve(e,t[n]);return r}var Pt=function(e,t){this.state=e,this.lookAhead=t},pn=function(e,t,r,n){this.state=t,this.doc=e,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};pn.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},pn.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}},pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},pn.fromSaved=function(e,t,r){return t instanceof Pt?new pn(e,mt(e.mode,t.state),r,t.lookAhead):new pn(e,mt(e.mode,t),r)},pn.prototype.save=function(e){var t=e!==!1?mt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Pt(t,this.maxLookAhead):t};function kn(e,t,r,n){var i=[e.state.modeGen],o={};Qn(e,t.text,e.doc.mode,r,function(f,S){return i.push(f,S)},o,n);for(var a=r.state,s=function(f){r.baseTokens=i;var S=e.state.overlays[f],w=1,D=0;r.state=!0,Qn(e,t.text,S.mode,r,function(L,G){for(var ie=w;D<L;){var ge=i[w];ge>L&&i.splice(w,1,L,i[w+1],ge),w+=2,D=Math.min(L,ge)}if(G)if(S.opaque)i.splice(ie,w-ie,L,"overlay "+G),w=ie+2;else for(;ie<w;ie+=2){var Ae=i[ie+1];i[ie+1]=(Ae?Ae+" ":"")+"overlay "+G}},o),r.state=a,r.baseTokens=null,r.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Tn(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=Mn(e,J(t)),i=t.text.length>e.options.maxHighlightLength&&mt(e.doc.mode,n.state),o=kn(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 Mn(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return new pn(n,!0,t);var o=zn(e,t,r),a=o>n.first&&m(n,o-1).stateAfter,s=a?pn.fromSaved(n,a,o):new pn(n,Ot(n.mode),o);return n.iter(o,t,function(c){Or(e,c.text,s);var f=s.line;c.stateAfter=f==t-1||f%5==0||f>=i.viewFrom&&f<i.viewTo?s.save():null,s.nextLine()}),r&&(n.modeFrontier=s.line),s}function Or(e,t,r,n){var i=e.doc.mode,o=new Qe(t,e.options.tabSize,r);for(o.start=o.pos=n||0,t==""&&fr(i,r.state);!o.eol();)Xr(i,o,r.state),o.start=o.pos}function fr(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=Qt(e,t);if(r.mode.blankLine)return r.mode.blankLine(r.state)}}function Xr(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=Qt(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 Pr=function(e,t,r){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=r};function Yr(e,t,r,n){var i=e.doc,o=i.mode,a;t=Ve(i,t);var s=m(i,t.line),c=Mn(e,t.line,r),f=new Qe(s.text,e.options.tabSize,c),S;for(n&&(S=[]);(n||f.pos<t.ch)&&!f.eol();)f.start=f.pos,a=Xr(o,f,c.state),n&&S.push(new Pr(f,a,mt(i.mode,c.state)));return n?S:new Pr(f,a,c.state)}function Lr(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 Qn(e,t,r,n,i,o,a){var s=r.flattenSpans;s==null&&(s=e.options.flattenSpans);var c=0,f=null,S=new Qe(t,e.options.tabSize,n),w,D=e.options.addModeClass&&[null];for(t==""&&Lr(fr(r,n.state),o);!S.eol();){if(S.pos>e.options.maxHighlightLength?(s=!1,a&&Or(e,t,n,S.pos),S.pos=t.length,w=null):w=Lr(Xr(r,S,n.state,D),o),D){var L=D[0].name;L&&(w="m-"+(w?L+" "+w:L))}if(!s||f!=w){for(;c<S.start;)c=Math.min(S.start,c+5e3),i(c,f);f=w}S.start=S.pos}for(;c<S.pos;){var G=Math.min(S.pos,c+5e3);i(G,f),c=G}}function zn(e,t,r){for(var n,i,o=e.doc,a=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=m(o,s-1),f=c.stateAfter;if(f&&(!r||s+(f instanceof Pt?f.lookAhead:0)<=o.modeFrontier))return s;var S=Ue(c.text,null,e.options.tabSize);(i==null||n>S)&&(i=s-1,n=S)}return i}function or(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=m(e,n).stateAfter;if(i&&(!(i instanceof Pt)||n+i.lookAhead<t)){r=n+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,r)}}var Un=!1,mr=!1;function Qr(){Un=!0}function Dr(){mr=!0}function mi(e,t,r){this.marker=e,this.from=t,this.to=r}function Ci(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function qi(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function Br(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Kn(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&a.type=="bookmark"&&(!r||!o.marker.insertLeft)){var c=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new mi(a,o.from,c?null:o.to))}}return n}function dr(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker,s=o.to==null||(a.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&a.type=="bookmark"&&(!r||o.marker.insertLeft)){var c=o.from==null||(a.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new mi(a,c?null:o.from-t,o.to==null?null:o.to-t))}}return n}function yr(e,t){if(t.full)return null;var r=we(e,t.from.line)&&m(e,t.from.line).markedSpans,n=we(e,t.to.line)&&m(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,s=Kn(r,i,a),c=dr(n,o,a),f=t.text.length==1,S=Re(t.text).length+(f?i:0);if(s)for(var w=0;w<s.length;++w){var D=s[w];if(D.to==null){var L=Ci(c,D.marker);L?f&&(D.to=L.to==null?null:L.to+S):D.to=i}}if(c)for(var G=0;G<c.length;++G){var ie=c[G];if(ie.to!=null&&(ie.to+=S),ie.from==null){var ge=Ci(s,ie.marker);ge||(ie.from=S,f&&(s||(s=[])).push(ie))}else ie.from+=S,f&&(s||(s=[])).push(ie)}s&&(s=kr(s)),c&&c!=s&&(c=kr(c));var Ae=[s];if(!f){var Xe=t.text.length-2,Fe;if(Xe>0&&s)for(var rt=0;rt<s.length;++rt)s[rt].to==null&&(Fe||(Fe=[])).push(new mi(s[rt].marker,null,null));for(var Nt=0;Nt<Xe;++Nt)Ae.push(Fe);Ae.push(c)}return Ae}function kr(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 ci(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(L){if(L.markedSpans)for(var G=0;G<L.markedSpans.length;++G){var ie=L.markedSpans[G].marker;ie.readOnly&&(!n||ve(n,ie)==-1)&&(n||(n=[])).push(ie)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var a=n[o],s=a.find(0),c=0;c<i.length;++c){var f=i[c];if(!(Ce(f.to,s.from)<0||Ce(f.from,s.to)>0)){var S=[c,1],w=Ce(f.from,s.from),D=Ce(f.to,s.to);(w<0||!a.inclusiveLeft&&!w)&&S.push({from:f.from,to:s.from}),(D>0||!a.inclusiveRight&&!D)&&S.push({from:s.to,to:f.to}),i.splice.apply(i,S),c+=S.length-3}}return i}function tr(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function zi(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function Wi(e){return e.inclusiveLeft?-1:0}function vr(e){return e.inclusiveRight?1:0}function eo(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)||Wi(e)-Wi(t);if(o)return-o;var a=Ce(n.to,i.to)||vr(e)-vr(t);return a||t.id-e.id}function Hi(e,t){var r=mr&&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||eo(n,i.marker)<0)&&(n=i.marker);return n}function to(e){return Hi(e,!0)}function Ro(e){return Hi(e,!1)}function Yo(e,t){var r=mr&&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||eo(n,o.marker)<0)&&(n=o.marker)}return n}function mo(e,t,r,n,i){var o=m(e,t),a=mr&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];if(c.marker.collapsed){var f=c.marker.find(0),S=Ce(f.from,r)||Wi(c.marker)-Wi(i),w=Ce(f.to,n)||vr(c.marker)-vr(i);if(!(S>=0&&w<=0||S<=0&&w>=0)&&(S<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Ce(f.to,r)>=0:Ce(f.to,r)>0)||S>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?Ce(f.from,n)<=0:Ce(f.from,n)<0)))return!0}}}function Jr(e){for(var t;t=to(e);)e=t.find(-1,!0).line;return e}function Oo(e){for(var t;t=Ro(e);)e=t.find(1,!0).line;return e}function no(e){for(var t,r;t=Ro(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function xi(e,t){var r=m(e,t),n=Jr(r);return r==n?t:J(n)}function yo(e,t){if(t>e.lastLine())return t;var r=m(e,t),n;if(!ro(e,r))return t;for(;n=Ro(r);)r=n.find(1,!0).line;return J(r)+1}function ro(e,t){var r=mr&&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&&Qo(e,t,n))return!0}}}function Qo(e,t,r){if(r.to==null){var n=r.marker.find(1,!0);return Qo(e,n.line,Ci(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)&&Qo(e,t,i))return!0}function io(e){e=Jr(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 s=o.children[a];if(s==r)break;t+=s.height}return t}function Zi(e){if(e.height==0)return 0;for(var t=e.text.length,r,n=e;r=to(n);){var i=r.find(0,!0);n=i.from.line,t+=i.from.ch-i.to.ch}for(n=e;r=Ro(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 Pi(e){var t=e.display,r=e.doc;t.maxLine=m(r,r.first),t.maxLineLength=Zi(t.maxLine),t.maxLineChanged=!0,r.iter(function(n){var i=Zi(n);i>t.maxLineLength&&(t.maxLineLength=i,t.maxLine=n)})}var bo=function(e,t,r){this.text=e,zi(this,t),this.height=r?r(this):1};bo.prototype.lineNo=function(){return J(this)},ur(bo);function Xa(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),tr(e),zi(e,r);var i=n?n(e):1;i!=e.height&&H(e,i)}function ql(e){e.parent=null,tr(e)}var Jo={},es={};function Ya(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?es:Jo;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function Ta(e,t){var r=ze("span",null,null,y?"padding-right: .1px":null),n={pre:ze("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=Pa,co(e.display.measure)&&(a=xn(o,e.doc.direction))&&(n.addToken=Da(n.addToken,a)),n.map=[];var s=t!=e.display.externalMeasured&&J(o);Ja(o,n,Tn(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=on(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=on(o.styleClasses.textClass,n.textClass||""))),n.map.length==0&&n.map.push(0,0,n.content.appendChild(Fi(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(y){var c=n.content.lastChild;(/\bcm-tab\b/.test(c.className)||c.querySelector&&c.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Dn(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=on(n.pre.className,n.textClass||"")),n}function ga(e){var t=$("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Pa(e,t,r,n,i,o,a){if(t){var s=e.splitSpaces?Qa(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1,S;if(!c.test(t))e.col+=t.length,S=document.createTextNode(s),e.map.push(e.pos,e.pos+t.length,S),x&&M<9&&(f=!0),e.pos+=t.length;else{S=document.createDocumentFragment();for(var w=0;;){c.lastIndex=w;var D=c.exec(t),L=D?D.index-w:t.length-w;if(L){var G=document.createTextNode(s.slice(w,w+L));x&&M<9?S.appendChild($("span",[G])):S.appendChild(G),e.map.push(e.pos,e.pos+L,G),e.col+=L,e.pos+=L}if(!D)break;w+=L+1;var ie=void 0;if(D[0]==" "){var ge=e.cm.options.tabSize,Ae=ge-e.col%ge;ie=S.appendChild($("span",Oe(Ae),"cm-tab")),ie.setAttribute("role","presentation"),ie.setAttribute("cm-text"," "),e.col+=Ae}else D[0]=="\r"||D[0]==`
|
|
|
`?(ie=S.appendChild($("span",D[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ie.setAttribute("cm-text",D[0]),e.col+=1):(ie=e.cm.options.specialCharPlaceholder(D[0]),ie.setAttribute("cm-text",D[0]),x&&M<9?S.appendChild($("span",[ie])):S.appendChild(ie),e.col+=1);e.map.push(e.pos,e.pos+1,ie),e.pos++}}if(e.trailingSpace=s.charCodeAt(t.length-1)==32,r||n||i||f||o||a){var Xe=r||"";n&&(Xe+=n),i&&(Xe+=i);var Fe=$("span",[S],Xe,o);if(a)for(var rt in a)a.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Fe.setAttribute(rt,a[rt]);return e.content.appendChild(Fe)}e.content.appendChild(S)}}function Qa(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 Da(e,t){return function(r,n,i,o,a,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var f=r.pos,S=f+n.length;;){for(var w=void 0,D=0;D<t.length&&(w=t[D],!(w.to>f&&w.from<=f));D++);if(w.to>=S)return e(r,n,i,o,a,s,c);e(r,n.slice(0,w.to-f),i,o,null,s,c),o=null,n=n.slice(w.to-f),f=w.to}}}function wl(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 Ja(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]),Ya(r[a+1],t.cm.options));return}for(var s=i.length,c=0,f=1,S="",w,D,L=0,G,ie,ge,Ae,Xe;;){if(L==c){G=ie=ge=D="",Xe=null,Ae=null,L=1/0;for(var Fe=[],rt=void 0,Nt=0;Nt<n.length;++Nt){var It=n[Nt],bn=It.marker;if(bn.type=="bookmark"&&It.from==c&&bn.widgetNode)Fe.push(bn);else if(It.from<=c&&(It.to==null||It.to>c||bn.collapsed&&It.to==c&&It.from==c)){if(It.to!=null&&It.to!=c&&L>It.to&&(L=It.to,ie=""),bn.className&&(G+=" "+bn.className),bn.css&&(D=(D?D+";":"")+bn.css),bn.startStyle&&It.from==c&&(ge+=" "+bn.startStyle),bn.endStyle&&It.to==L&&(rt||(rt=[])).push(bn.endStyle,It.to),bn.title&&((Xe||(Xe={})).title=bn.title),bn.attributes)for(var pr in bn.attributes)(Xe||(Xe={}))[pr]=bn.attributes[pr];bn.collapsed&&(!Ae||eo(Ae.marker,bn)<0)&&(Ae=It)}else It.from>c&&L>It.from&&(L=It.from)}if(rt)for(var gi=0;gi<rt.length;gi+=2)rt[gi+1]==L&&(ie+=" "+rt[gi]);if(!Ae||Ae.from==c)for(var Fr=0;Fr<Fe.length;++Fr)wl(t,0,Fe[Fr]);if(Ae&&(Ae.from||0)==c){if(wl(t,(Ae.to==null?s+1:Ae.to)-c,Ae.marker,Ae.from==null),Ae.to==null)return;Ae.to==c&&(Ae=!1)}}if(c>=s)break;for(var so=Math.min(s,L);;){if(S){var Xi=c+S.length;if(!Ae){var ri=Xi>so?S.slice(0,so-c):S;t.addToken(t,ri,w?w+G:G,ge,c+ri.length==L?ie:"",D,Xe)}if(Xi>=so){S=S.slice(so-c),c=so;break}c=Xi,ge=""}S=i.slice(o,o=r[f++]),w=Ya(r[f++],t.cm.options)}}}function pa(e,t,r){this.line=t,this.rest=no(t),this.size=this.rest?J(Re(this.rest))-r+1:1,this.node=this.text=null,this.hidden=ro(e,t)}function So(e,t,r){for(var n=[],i,o=t;o<r;o=i){var a=new pa(e.doc,m(e.doc,o),o);i=o+a.size,n.push(a)}return n}var Co=null;function Gt(e){Co?Co.ops.push(e):e.ownsGroup=Co={ops:[e],delayedCallbacks:[]}}function qt(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 An(e,t){var r=e.ownsGroup;if(r)try{qt(r)}finally{Co=null,t(r)}}var Tr=null;function lr(e,t){var r=_r(e,t);if(r.length){var n=Array.prototype.slice.call(arguments,2),i;Co?i=Co.delayedCallbacks:Tr?i=Tr:(i=Tr=[],setTimeout(El,0));for(var o=function(s){i.push(function(){return r[s].apply(null,n)})},a=0;a<r.length;++a)o(a)}}function El(){var e=Tr;Tr=null;for(var t=0;t<e.length;++t)e[t]()}function zo(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];o=="text"?Na(e,t):o=="gutter"?Ml(e,t,r,n):o=="class"?ts(e,t):o=="widget"&&ns(e,t,n)}t.changes=null}function qo(e){return e.node==e.text&&(e.node=$("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),x&&M<8&&(e.node.style.zIndex=2)),e.node}function qa(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=qo(t);t.background=n.insertBefore($("div",null,r),n.firstChild),e.display.input.setUneditable(t.background)}}function ea(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):Ta(e,t)}function Na(e,t){var r=t.text.className,n=ea(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,ts(e,t)):r&&(t.text.className=r)}function ts(e,t){qa(e,t),t.line.wrapClass?qo(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 Ml(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=qo(t);t.gutterBackground=$("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=qo(t),s=t.gutter=$("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!o||!o["CodeMirror-linenumbers"])&&(t.lineNumber=s.appendChild($("div",Lt(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var c=0;c<e.display.gutterSpecs.length;++c){var f=e.display.gutterSpecs[c].className,S=o.hasOwnProperty(f)&&o[f];S&&s.appendChild($("div",[S],"CodeMirror-gutter-elt","left: "+n.gutterLeft[f]+"px; width: "+n.gutterWidth[f]+"px"))}}}function ns(e,t,r){t.alignable&&(t.alignable=null);for(var n=h("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&t.node.removeChild(i);el(e,t,r)}function rs(e,t,r,n){var i=ea(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),ts(e,t),Ml(e,t,r,n),el(e,t,n),t.node}function el(e,t,r){if(Il(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Il(e,t.rest[n],t,r,!1)}function Il(e,t,r,n,i){if(t.widgets)for(var o=qo(r),a=0,s=t.widgets;a<s.length;++a){var c=s[a],f=$("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||f.setAttribute("cm-ignore-events","true"),is(c,f,r,n),e.display.input.setUneditable(f),i&&c.above?o.insertBefore(f,r.gutter||r.text):o.appendChild(f),lr(c,"redraw")}}function is(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 ma(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!oe(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;"),X(t.display.measure,$("div",[e.node],null,r))}return e.height=e.node.parentNode.offsetHeight}function Lo(e,t){for(var r=uo(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 tl(e){return e.lineSpace.offsetTop}function Rl(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Ol(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=X(e.measure,$("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 xo(e){return at-e.display.nativeBarWidth}function ta(e){return e.display.scroller.clientWidth-xo(e)-e.display.barWidth}function nl(e){return e.display.scroller.clientHeight-xo(e)-e.display.barHeight}function Ns(e,t,r){var n=e.options.lineWrapping,i=n&&ta(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(),s=0;s<a.length-1;s++){var c=a[s],f=a[s+1];Math.abs(c.bottom-f.bottom)>2&&o.push((c.bottom+f.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Aa(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(J(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function os(e,t){t=Jr(t);var r=J(t),n=e.display.externalMeasured=new pa(e.doc,t,r);n.lineN=r;var i=n.built=Ta(e,n);return n.text=i.pre,X(e.display.lineMeasure,i.pre),n}function Ll(e,t,r,n){return fo(e,na(e,t),r,n)}function rl(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[oa(e,t)];var r=e.display.externalMeasured;if(r&&t>=r.lineN&&t<r.lineN+r.size)return r}function na(e,t){var r=J(t),n=rl(e,r);n&&!n.text?n=null:n&&n.changes&&(zo(e,n,r,Fl(e)),e.curOp.forceUpdate=!0),n||(n=os(e,t));var i=Aa(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function fo(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||(Ns(e,t.view,t.rect),t.hasHeights=!0),a=il(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 Tl={left:0,right:0,top:0,bottom:0};function Pl(e,t,r){for(var n,i,o,a,s,c,f=0;f<e.length;f+=3)if(s=e[f],c=e[f+1],t<s?(i=0,o=1,a="left"):t<c?(i=t-s,o=i+1):(f==e.length-3||t==c&&e[f+3]>t)&&(o=c-s,i=o-1,t>=c&&(a="right")),i!=null){if(n=e[f+2],s==c&&r==(n.insertLeft?"left":"right")&&(a=r),r=="left"&&i==0)for(;f&&e[f-2]==e[f-3]&&e[f-1].insertLeft;)n=e[(f-=3)+2],a="left";if(r=="right"&&i==c-s)for(;f<e.length-3&&e[f+3]==e[f+4]&&!e[f+5].insertLeft;)n=e[(f+=3)+2],a="right";break}return{node:n,start:i,end:o,collapse:a,coverStart:s,coverEnd:c}}function ya(e,t){var r=Tl;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 il(e,t,r,n){var i=Pl(t.map,r,n),o=i.node,a=i.start,s=i.end,c=i.collapse,f;if(o.nodeType==3){for(var S=0;S<4;S++){for(;a&&jt(t.line.text.charAt(i.coverStart+a));)--a;for(;i.coverStart+s<i.coverEnd&&jt(t.line.text.charAt(i.coverStart+s));)++s;if(x&&M<9&&a==0&&s==i.coverEnd-i.coverStart?f=o.parentNode.getBoundingClientRect():f=ya(re(o,a,s).getClientRects(),n),f.left||f.right||a==0)break;s=a,a=a-1,c="right"}x&&M<11&&(f=ol(e.display.measure,f))}else{a>0&&(c=n="right");var w;e.options.lineWrapping&&(w=o.getClientRects()).length>1?f=w[n=="right"?w.length-1:0]:f=o.getBoundingClientRect()}if(x&&M<9&&!a&&(!f||!f.left&&!f.right)){var D=o.parentNode.getClientRects()[0];D?f={left:D.left,right:D.left+Sa(e.display),top:D.top,bottom:D.bottom}:f=Tl}for(var L=f.top-t.rect.top,G=f.bottom-t.rect.top,ie=(L+G)/2,ge=t.view.measure.heights,Ae=0;Ae<ge.length-1&&!(ie<ge[Ae]);Ae++);var Xe=Ae?ge[Ae-1]:0,Fe=ge[Ae],rt={left:(c=="right"?f.right:f.left)-t.rect.left,right:(c=="left"?f.left:f.right)-t.rect.left,top:Xe,bottom:Fe};return!f.left&&!f.right&&(rt.bogus=!0),e.options.singleCursorHeightPerLine||(rt.rtop=L,rt.rbottom=G),rt}function ol(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ye(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 Fa(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 Dl(e){e.display.externalMeasure=null,A(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Fa(e.display.view[t])}function Bi(e){Dl(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ra(){return j&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function ia(){return j&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function $a(e){var t=0;if(e.widgets)for(var r=0;r<e.widgets.length;++r)e.widgets[r].above&&(t+=ma(e.widgets[r]));return t}function za(e,t,r,n,i){if(!i){var o=$a(t);r.top+=o,r.bottom+=o}if(n=="line")return r;n||(n="local");var a=io(t);if(n=="local"?a+=tl(e.display):a-=e.display.viewOffset,n=="page"||n=="window"){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+(n=="window"?0:ia());var c=s.left+(n=="window"?0:ra());r.left+=c,r.right+=c}return r.top+=a,r.bottom+=a,r}function Nl(e,t,r){if(r=="div")return t;var n=t.left,i=t.top;if(r=="page")n-=ra(),i-=ia();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 al(e,t,r,n,i){return n||(n=m(e.doc,t.line)),za(e,n,Ll(e,n,t.ch,i),r)}function ki(e,t,r,n,i,o){n=n||m(e.doc,t.line),i||(i=na(e,n));function a(G,ie){var ge=fo(e,i,G,ie?"right":"left",o);return ie?ge.left=ge.right:ge.right=ge.left,za(e,n,ge,r)}var s=xn(n,e.doc.direction),c=t.ch,f=t.sticky;if(c>=n.text.length?(c=n.text.length,f="before"):c<=0&&(c=0,f="after"),!s)return a(f=="before"?c-1:c,f=="before");function S(G,ie,ge){var Ae=s[ie],Xe=Ae.level==1;return a(ge?G-1:G,Xe!=ge)}var w=cn(s,c,f),D=gn,L=S(c,w,f=="before");return D!=null&&(L.other=S(c,D,f!="before")),L}function Al(e,t){var r=0;t=Ve(e.doc,t),e.options.lineWrapping||(r=Sa(e.display)*t.ch);var n=m(e.doc,t.line),i=io(n)+tl(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function ll(e,t,r,n,i){var o=W(e,t,r);return o.xRel=i,n&&(o.outside=n),o}function sl(e,t,r){var n=e.doc;if(r+=e.display.viewOffset,r<0)return ll(n.first,0,null,-1,-1);var i=ae(n,r),o=n.first+n.size-1;if(i>o)return ll(n.first+n.size-1,m(n,o).text.length,null,1,1);t<0&&(t=0);for(var a=m(n,i);;){var s=ss(e,a,i,t,r),c=Yo(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var f=c.find(1);if(f.line==i)return f;a=m(n,i=f.line)}}function as(e,t,r,n){n-=$a(t);var i=t.text.length,o=ct(function(a){return fo(e,r,a-1).bottom<=n},i,0);return i=ct(function(a){return fo(e,r,a).top>n},o,i),{begin:o,end:i}}function ls(e,t,r,n){r||(r=na(e,t));var i=za(e,t,fo(e,r,n),"line").top;return as(e,t,r,i)}function ul(e,t,r,n){return e.bottom<=r?!1:e.top>r?!0:(n?e.left:e.right)>t}function ss(e,t,r,n,i){i-=io(t);var o=na(e,t),a=$a(t),s=0,c=t.text.length,f=!0,S=xn(t,e.doc.direction);if(S){var w=(e.options.lineWrapping?As:us)(e,t,r,o,S,n,i);f=w.level!=1,s=f?w.from:w.to-1,c=f?w.to:w.from-1}var D=null,L=null,G=ct(function(Nt){var It=fo(e,o,Nt);return It.top+=a,It.bottom+=a,ul(It,n,i,!1)?(It.top<=i&&It.left<=n&&(D=Nt,L=It),!0):!1},s,c),ie,ge,Ae=!1;if(L){var Xe=n-L.left<L.right-n,Fe=Xe==f;G=D+(Fe?0:1),ge=Fe?"after":"before",ie=Xe?L.left:L.right}else{!f&&(G==c||G==s)&&G++,ge=G==0?"after":G==t.text.length?"before":fo(e,o,G-(f?1:0)).bottom+a<=i==f?"after":"before";var rt=ki(e,W(r,G,ge),"line",t,o);ie=rt.left,Ae=i<rt.top?-1:i>=rt.bottom?1:0}return G=Rt(t.text,G,1),ll(r,G,ge,Ae,n-ie)}function us(e,t,r,n,i,o,a){var s=ct(function(w){var D=i[w],L=D.level!=1;return ul(ki(e,W(r,L?D.to:D.from,L?"before":"after"),"line",t,n),o,a,!0)},0,i.length-1),c=i[s];if(s>0){var f=c.level!=1,S=ki(e,W(r,f?c.from:c.to,f?"after":"before"),"line",t,n);ul(S,o,a,!0)&&S.top>a&&(c=i[s-1])}return c}function As(e,t,r,n,i,o,a){var s=as(e,t,n,a),c=s.begin,f=s.end;/\s/.test(t.text.charAt(f-1))&&f--;for(var S=null,w=null,D=0;D<i.length;D++){var L=i[D];if(!(L.from>=f||L.to<=c)){var G=L.level!=1,ie=fo(e,n,G?Math.min(f,L.to)-1:Math.max(c,L.from)).right,ge=ie<o?o-ie+1e9:ie-o;(!S||w>ge)&&(S=L,w=ge)}}return S||(S=i[i.length-1]),S.from<c&&(S={from:c,to:S.to,level:S.level}),S.to>f&&(S={from:S.from,to:f,level:S.level}),S}var Wo;function ba(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Wo==null){Wo=$("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Wo.appendChild(document.createTextNode("x")),Wo.appendChild($("br"));Wo.appendChild(document.createTextNode("x"))}X(e.measure,Wo);var r=Wo.offsetHeight/50;return r>3&&(e.cachedTextHeight=r),A(e.measure),r||1}function Sa(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=$("span","xxxxxxxxxx"),r=$("pre",[t],"CodeMirror-line-like");X(e.measure,r);var n=t.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Fl(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;r[s]=o.offsetLeft+o.clientLeft+i,n[s]=o.clientWidth}return{fixedPos:cl(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function cl(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function $l(e){var t=ba(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/Sa(e.display)-3);return function(i){if(ro(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 fl(e){var t=e.doc,r=$l(e);t.iter(function(n){var i=r(n);i!=n.height&&H(n,i)})}function Ho(e,t,r,n){var i=e.display;if(!r&&uo(t).getAttribute("cm-not-content")=="true")return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(w){return null}var c=sl(e,o,a),f;if(n&&c.xRel>0&&(f=m(e.doc,c.line).text).length==c.ch){var S=Ue(f,f.length,e.options.tabSize)-f.length;c=W(c.line,Math.max(0,Math.round((o-Ol(e.display).left)/Sa(e.display))-S))}return c}function oa(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 wi(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)mr&&xi(e.doc,t)<i.viewTo&&To(e);else if(r<=i.viewFrom)mr&&yo(e.doc,r+n)>i.viewFrom?To(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)To(e);else if(t<=i.viewFrom){var o=Wa(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):To(e)}else if(r>=i.viewTo){var a=Wa(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):To(e)}else{var s=Wa(e,t,t,-1),c=Wa(e,r,r+n,1);s&&c?(i.view=i.view.slice(0,s.index).concat(So(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=n):To(e)}var f=i.externalMeasured;f&&(r<f.lineN?f.lineN+=n:t<f.lineN+f.size&&(i.externalMeasured=null))}function Zo(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[oa(e,t)];if(o.node!=null){var a=o.changes||(o.changes=[]);ve(a,r)==-1&&a.push(r)}}}function To(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Wa(e,t,r,n){var i=oa(e,t),o,a=e.display.view;if(!mr||r==e.doc.first+e.doc.size)return{index:i,lineN:r};for(var s=e.display.viewFrom,c=0;c<i;c++)s+=a[c].size;if(s!=t){if(n>0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,r+=o}for(;xi(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 zl(e,t,r){var n=e.display,i=n.view;i.length==0||t>=n.viewTo||r<=n.viewFrom?(n.view=So(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=So(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(oa(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(So(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,oa(e,r)))),n.viewTo=r}function dl(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 aa(e){e.display.input.showSelection(e.display.input.prepareSelection())}function vl(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 s=r.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();(c||e.options.showCursorWhenSelecting)&&cs(e,s.head,i),c||Fs(e,s,o)}}return n}function cs(e,t,r){var n=ki(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=r.appendChild($("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($("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 Ca(e,t){return e.top-t.top||e.left-t.left}function Fs(e,t,r){var n=e.display,i=e.doc,o=document.createDocumentFragment(),a=Ol(e.display),s=a.left,c=Math.max(n.sizerWidth,ta(e)-n.sizer.offsetLeft)-a.right,f=i.direction=="ltr";function S(Fe,rt,Nt,It){rt<0&&(rt=0),rt=Math.round(rt),It=Math.round(It),o.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+Fe+`px;
|
|
|
top: `+rt+"px; width: "+(Nt==null?c-Fe:Nt)+`px;
|
|
|
height: `+(It-rt)+"px"))}function w(Fe,rt,Nt){var It=m(i,Fe),bn=It.text.length,pr,gi;function Fr(ri,Yi){return al(e,W(Fe,ri),"div",It,Yi)}function so(ri,Yi,Si){var ui=ls(e,It,null,ri),ii=Yi=="ltr"==(Si=="after")?"left":"right",Hr=Si=="after"?ui.begin:ui.end-(/\s/.test(It.text.charAt(ui.end-1))?2:1);return Fr(Hr,ii)[ii]}var Xi=xn(It,i.direction);return Cn(Xi,rt||0,Nt==null?bn:Nt,function(ri,Yi,Si,ui){var ii=Si=="ltr",Hr=Fr(ri,ii?"left":"right"),Qi=Fr(Yi-1,ii?"right":"left"),Cl=rt==null&&ri==0,La=Nt==null&&Yi==bn,Oi=ui==0,Xo=!Xi||ui==Xi.length-1;if(Qi.top-Hr.top<=3){var pi=(f?Cl:La)&&Oi,tu=(f?La:Cl)&&Xo,ha=pi?s:(ii?Hr:Qi).left,Ga=tu?c:(ii?Qi:Hr).right;S(ha,Hr.top,Ga-ha,Hr.bottom)}else{var _a,Ai,xl,nu;ii?(_a=f&&Cl&&Oi?s:Hr.left,Ai=f?c:so(ri,Si,"before"),xl=f?s:so(Yi,Si,"after"),nu=f&&La&&Xo?c:Qi.right):(_a=f?so(ri,Si,"before"):s,Ai=!f&&Cl&&Oi?c:Hr.right,xl=!f&&La&&Xo?s:Qi.left,nu=f?so(Yi,Si,"after"):c),S(_a,Hr.top,Ai-_a,Hr.bottom),Hr.bottom<Qi.top&&S(s,Hr.bottom,null,Qi.top),S(xl,Qi.top,nu-xl,Qi.bottom)}(!pr||Ca(Hr,pr)<0)&&(pr=Hr),Ca(Qi,pr)<0&&(pr=Qi),(!gi||Ca(Hr,gi)<0)&&(gi=Hr),Ca(Qi,gi)<0&&(gi=Qi)}),{start:pr,end:gi}}var D=t.from(),L=t.to();if(D.line==L.line)w(D.line,D.ch,L.ch);else{var G=m(i,D.line),ie=m(i,L.line),ge=Jr(G)==Jr(ie),Ae=w(D.line,D.ch,ge?G.text.length+1:null).end,Xe=w(L.line,ge?0:null,L.ch).start;ge&&(Ae.top<Xe.top-2?(S(Ae.right,Ae.top,null,Ae.bottom),S(s,Xe.top,Xe.left,Xe.bottom)):S(Ae.right,Ae.top,Xe.left-Ae.right,Ae.bottom)),Ae.bottom<Xe.top&&S(s,Ae.bottom,null,Xe.top)}r.appendChild(o)}function Wl(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()||Ha(e),t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function fs(e){e.state.focused||(e.display.input.focus(),Hl(e))}function ds(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Ha(e))},100)}function Hl(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Dn(e,"focus",e,t),e.state.focused=!0,wt(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),y&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wl(e))}function Ha(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Dn(e,"blur",e,t),e.state.focused=!1,I(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Za(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,s=0;if(!i.hidden){if(x&&M<8){var c=i.node.offsetTop+i.node.offsetHeight;a=c-r,r=c}else{var f=i.node.getBoundingClientRect();a=f.bottom-f.top,!o&&i.text.firstChild&&(s=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var S=i.line.height-a;if((S>.005||S<-.005)&&(H(i.line,a),vs(i.line),i.rest))for(var w=0;w<i.rest.length;w++)vs(i.rest[w]);if(s>e.display.sizerWidth){var D=Math.ceil(s/Sa(e.display));D>e.display.maxLineLength&&(e.display.maxLineLength=D,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function vs(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 hl(e,t,r){var n=r&&r.top!=null?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-tl(e));var i=r&&r.bottom!=null?r.bottom:n+e.wrapper.clientHeight,o=ae(t,n),a=ae(t,i);if(r&&r.ensure){var s=r.ensure.from.line,c=r.ensure.to.line;s<o?(o=s,a=ae(t,io(m(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=a&&(o=ae(t,io(m(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function $s(e,t){if(!$n(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&&!be){var o=$("div","\u200B",null,`position: absolute;
|
|
|
top: `+(t.top-r.viewOffset-tl(e.display))+`px;
|
|
|
height: `+(t.bottom-t.top+xo(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 zs(e,t,r,n){n==null&&(n=0);var i;!e.options.lineWrapping&&t==r&&(t=t.ch?W(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,r=t.sticky=="before"?W(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var a=!1,s=ki(e,t),c=!r||r==t?s:ki(e,r);i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-n,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+n};var f=Zl(e,i),S=e.doc.scrollTop,w=e.doc.scrollLeft;if(f.scrollTop!=null&&(ka(e,f.scrollTop),Math.abs(e.doc.scrollTop-S)>1&&(a=!0)),f.scrollLeft!=null&&(Bo(e,f.scrollLeft),Math.abs(e.doc.scrollLeft-w)>1&&(a=!0)),!a)break}return i}function Ws(e,t){var r=Zl(e,t);r.scrollTop!=null&&ka(e,r.scrollTop),r.scrollLeft!=null&&Bo(e,r.scrollLeft)}function Zl(e,t){var r=e.display,n=ba(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:r.scroller.scrollTop,o=nl(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Rl(r),c=t.top<n,f=t.bottom>s-n;if(t.top<i)a.scrollTop=c?0:t.top;else if(t.bottom>i+o){var S=Math.min(t.top,(f?s:t.bottom)-o);S!=i&&(a.scrollTop=S)}var w=e.options.fixedGutter?0:r.gutters.offsetWidth,D=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:r.scroller.scrollLeft-w,L=ta(e)-r.gutters.offsetWidth,G=t.right-t.left>L;return G&&(t.right=t.left+L),t.left<10?a.scrollLeft=0:t.left<D?a.scrollLeft=Math.max(0,t.left+w-(G?0:10)):t.right>L+D-3&&(a.scrollLeft=t.right+(G?0:10)-L),a}function Bl(e,t){t!=null&&(gl(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function xa(e){gl(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Ba(e,t,r){(t!=null||r!=null)&&gl(e),t!=null&&(e.curOp.scrollLeft=t),r!=null&&(e.curOp.scrollTop=r)}function Hs(e,t){gl(e),e.curOp.scrollToPos=t}function gl(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var r=Al(e,t.from),n=Al(e,t.to);hs(e,r,n,t.margin)}}function hs(e,t,r,n){var i=Zl(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});Ba(e,i.scrollLeft,i.scrollTop)}function ka(e,t){Math.abs(e.doc.scrollTop-t)<2||(T||bl(e,{top:t}),gs(e,t,!0),T&&bl(e),Ka(e,100))}function gs(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 Bo(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,xs(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Ua(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Rl(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+xo(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}var la=function(e,t,r){this.cm=r;var n=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,e(n),e(i),ke(n,"scroll",function(){n.clientHeight&&t(n.scrollTop,"vertical")}),ke(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,x&&M<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};la.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}},la.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},la.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},la.prototype.zeroWidthHack=function(){var e=P&&!se?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new pe,this.disableVert=new pe},la.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)},la.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var wa=function(){};wa.prototype.update=function(){return{bottom:0,right:0}},wa.prototype.setScrollLeft=function(){},wa.prototype.setScrollTop=function(){},wa.prototype.clear=function(){};function sa(e,t){t||(t=Ua(e));var r=e.display.barWidth,n=e.display.barHeight;ps(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Za(e),ps(e,Ua(e)),r=e.display.barWidth,n=e.display.barHeight}function ps(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 pl={native:la,null:wa};function ms(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new pl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ke(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"?Bo(e,t):ka(e,t)},e),e.display.scrollbars.addClass&&wt(e.display.wrapper,e.display.scrollbars.addClass)}var Zs=0;function ua(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:++Zs},Gt(e.curOp)}function Po(e){var t=e.curOp;t&&An(t,function(r){for(var n=0;n<r.ops.length;n++)r.ops[n].cm.curOp=null;Bs(r)})}function Bs(e){for(var t=e.ops,r=0;r<t.length;r++)ks(t[r]);for(var n=0;n<t.length;n++)Us(t[n]);for(var i=0;i<t.length;i++)kl(t[i]);for(var o=0;o<t.length;o++)Ks(t[o]);for(var a=0;a<t.length;a++)ys(t[a])}function ks(e){var t=e.cm,r=t.display;bs(t),e.updateMaxLine&&Pi(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 ml(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Us(e){e.updatedDisplay=e.mustUpdate&&yl(e.cm,e.update)}function kl(e){var t=e.cm,r=t.display;e.updatedDisplay&&Za(t),e.barMeasure=Ua(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ll(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+xo(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-ta(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection())}function Ks(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Bo(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==Tt();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&sa(t,e.barMeasure),e.updatedDisplay&&jl(t,e.barMeasure),e.selectionChanged&&Wl(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&fs(e.cm)}function ys(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Ul(t,e.update),r.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(r.wheelStartX=r.wheelStartY=null),e.scrollTop!=null&&gs(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Bo(t,e.scrollLeft,!0,!0),e.scrollToPos){var i=zs(t,Ve(n,e.scrollToPos.from),Ve(n,e.scrollToPos.to),e.scrollToPos.margin);$s(t,i)}var o=e.maybeHiddenMarkers,a=e.maybeUnhiddenMarkers;if(o)for(var s=0;s<o.length;++s)o[s].lines.length||Dn(o[s],"hide");if(a)for(var c=0;c<a.length;++c)a[c].lines.length&&Dn(a[c],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Dn(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Di(e,t){if(e.curOp)return t();ua(e);try{return t()}finally{Po(e)}}function qr(e,t){return function(){if(e.curOp)return t.apply(e,arguments);ua(e);try{return t.apply(e,arguments)}finally{Po(e)}}}function yi(e){return function(){if(this.curOp)return e.apply(this,arguments);ua(this);try{return e.apply(this,arguments)}finally{Po(this)}}}function $r(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);ua(t);try{return e.apply(this,arguments)}finally{Po(t)}}}function Ka(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,On(js,e))}function js(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=Mn(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,s=o.text.length>e.options.maxHighlightLength?mt(t.mode,n.state):null,c=kn(e,o,n,!0);s&&(n.state=s),o.styles=c.styles;var f=o.styleClasses,S=c.classes;S?o.styleClasses=S:f&&(o.styleClasses=null);for(var w=!a||a.length!=o.styles.length||f!=S&&(!f||!S||f.bgClass!=S.bgClass||f.textClass!=S.textClass),D=0;!w&&D<a.length;++D)w=a[D]!=o.styles[D];w&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=e.options.maxHighlightLength&&Or(e,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return Ka(e,e.options.workDelay),!0}),t.highlightFrontier=n.line,t.modeFrontier=Math.max(t.modeFrontier,n.line),i.length&&Di(e,function(){for(var o=0;o<i.length;o++)Zo(e,i[o],"text")})}}var ml=function(e,t,r){var n=e.display;this.viewport=t,this.visible=hl(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=ta(e),this.force=r,this.dims=Fl(e),this.events=[]};ml.prototype.signal=function(e,t){wn(e,t)&&this.events.push(arguments)},ml.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Dn.apply(null,this.events[e])};function bs(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=xo(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=xo(e)+"px",t.scrollbarsClipped=!0)}function Vs(e){if(e.hasFocus())return null;var t=Tt();if(!t||!oe(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&oe(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function Ss(e){if(!(!e||!e.activeElt||e.activeElt==Tt())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&oe(document.body,e.anchorNode)&&oe(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 yl(e,t){var r=e.display,n=e.doc;if(t.editorIsHidden)return To(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&&dl(e)==0)return!1;Vl(e)&&(To(e),t.dims=Fl(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)),mr&&(o=xi(e.doc,o),a=yo(e.doc,a));var s=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=t.wrapperHeight||r.lastWrapWidth!=t.wrapperWidth;zl(e,o,a),r.viewOffset=io(m(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var c=dl(e);if(!s&&c==0&&!t.force&&r.renderedView==r.view&&(r.updateLineNumbers==null||r.updateLineNumbers>=r.viewTo))return!1;var f=Vs(e);return c>4&&(r.lineDiv.style.display="none"),Cs(e,r.updateLineNumbers,t.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Ss(f),A(r.cursorDiv),A(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=t.wrapperHeight,r.lastWrapWidth=t.wrapperWidth,Ka(e,400)),r.updateLineNumbers=null,!0}function Ul(e,t){for(var r=t.viewport,n=!0;;n=!1){if(!n||!e.options.lineWrapping||t.oldDisplayWidth==ta(e)){if(r&&r.top!=null&&(r={top:Math.min(e.doc.height+Rl(e.display)-nl(e),r.top)}),t.visible=hl(e.display,e.doc,r),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else n&&(t.visible=hl(e.display,e.doc,r));if(!yl(e,t))break;Za(e);var i=Ua(e);aa(e),sa(e,i),jl(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 bl(e,t){var r=new ml(e,t);if(yl(e,r)){Za(e),Ul(e,r);var n=Ua(e);aa(e),sa(e,n),jl(e,n),r.finish()}}function Cs(e,t,r){var n=e.display,i=e.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function s(G){var ie=G.nextSibling;return y&&P&&e.display.currentWheelTarget==G?G.style.display="none":G.parentNode.removeChild(G),ie}for(var c=n.view,f=n.viewFrom,S=0;S<c.length;S++){var w=c[S];if(!w.hidden)if(!w.node||w.node.parentNode!=o){var D=rs(e,w,f,r);o.insertBefore(D,a)}else{for(;a!=w.node;)a=s(a);var L=i&&t!=null&&t<=f&&w.lineNumber;w.changes&&(ve(w.changes,"gutter")>-1&&(L=!1),zo(e,w,f,r)),L&&(A(w.lineNumber),w.lineNumber.appendChild(document.createTextNode(Lt(e.options,f)))),a=w.node.nextSibling}f+=w.size}for(;a;)a=s(a)}function Kl(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function jl(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+xo(e)+"px"}function xs(e){var t=e.display,r=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var n=cl(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 s=r[a].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function Vl(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=Lt(e.options,t.first+t.size-1),n=e.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild($("div",[$("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",Kl(e.display),!0}return!1}function Gl(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 ws(e){var t=e.gutters,r=e.gutterSpecs;A(t),e.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,a=i.style,s=t.appendChild($("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),o=="CodeMirror-linenumbers"&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=r.length?"":"none",Kl(e)}function Ea(e){ws(e.display),wi(e),xs(e)}function Gs(e,t,r,n){var i=this;this.input=r,i.scrollbarFiller=$("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=$("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=ze("div",null,"CodeMirror-code"),i.selectionDiv=$("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=$("div",null,"CodeMirror-cursors"),i.measure=$("div",null,"CodeMirror-measure"),i.lineMeasure=$("div",null,"CodeMirror-measure"),i.lineSpace=ze("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var o=ze("div",[i.lineSpace],"CodeMirror-lines");i.mover=$("div",[o],null,"position: relative"),i.sizer=$("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=$("div",null,null,"position: absolute; height: "+at+"px; width: 1px;"),i.gutters=$("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=$("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=$("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),x&&M<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!y&&!(T&&ce)&&(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=Gl(n.gutters,n.lineNumbers),ws(i),r.init(i)}var ja=0,Ui=null;x?Ui=-.53:T?Ui=15:j?Ui=-.7:Me&&(Ui=-1/3);function _s(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 ru(e){var t=_s(e);return t.x*=Ui,t.y*=Ui,t}function Xs(e,t){var r=_s(t),n=r.x,i=r.y,o=e.display,a=o.scroller,s=a.scrollWidth>a.clientWidth,c=a.scrollHeight>a.clientHeight;if(n&&s||i&&c){if(i&&P&&y){e:for(var f=t.target,S=o.view;f!=a;f=f.parentNode)for(var w=0;w<S.length;w++)if(S[w].node==f){e.display.currentWheelTarget=f;break e}}if(n&&!T&&!v&&Ui!=null){i&&c&&ka(e,Math.max(0,a.scrollTop+i*Ui)),Bo(e,Math.max(0,a.scrollLeft+n*Ui)),(!i||i&&c)&&cr(t),o.wheelStartX=null;return}if(i&&Ui!=null){var D=i*Ui,L=e.doc.scrollTop,G=L+o.wrapper.clientHeight;D<0?L=Math.max(0,L+D-50):G=Math.min(e.doc.height,G+D+50),bl(e,{top:L,bottom:G})}ja<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 ie=a.scrollLeft-o.wheelStartX,ge=a.scrollTop-o.wheelStartY,Ae=ge&&o.wheelDY&&ge/o.wheelDY||ie&&o.wheelDX&&ie/o.wheelDX;o.wheelStartX=o.wheelStartY=null,Ae&&(Ui=(Ui*ja+Ae)/(ja+1),++ja)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}var Ki=function(e,t){this.ranges=e,this.primIndex=t};Ki.prototype.primary=function(){return this.ranges[this.primIndex]},Ki.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(!Vt(r.anchor,n.anchor)||!Vt(r.head,n.head))return!1}return!0},Ki.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new jn(sn(this.ranges[t].anchor),sn(this.ranges[t].head));return new Ki(e,this.primIndex)},Ki.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ki.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 jn=function(e,t){this.anchor=e,this.head=t};jn.prototype.from=function(){return Ln(this.anchor,this.head)},jn.prototype.to=function(){return Jt(this.anchor,this.head)},jn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function vo(e,t,r){var n=e&&e.options.selectionsMayTouch,i=t[r];t.sort(function(D,L){return Ce(D.from(),L.from())}),r=ve(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],c=Ce(s.to(),a.from());if(n&&!a.empty()?c>0:c>=0){var f=Ln(s.from(),a.from()),S=Jt(s.to(),a.to()),w=s.empty()?a.from()==a.head:s.from()==s.head;o<=r&&--r,t.splice(--o,2,new jn(w?S:f,w?f:S))}}return new Ki(t,r)}function ko(e,t){return new Ki([new jn(e,t||e)],0)}function wo(e){return e.text?W(e.from.line+e.text.length-1,Re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Es(e,t){if(Ce(e,t.from)<0)return e;if(Ce(e,t.to)<=0)return wo(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+=wo(t).ch-t.to.ch),W(r,n)}function _l(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new jn(Es(i.anchor,t),Es(i.head,t)))}return vo(e.cm,r,e.sel.primIndex)}function Ms(e,t,r){return e.line==t.line?W(r.line,e.ch-t.ch+r.ch):W(r.line+(e.line-t.line),e.ch)}function Ys(e,t,r){for(var n=[],i=W(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],c=Ms(s.from,i,o),f=Ms(wo(s),i,o);if(i=s.to,o=f,r=="around"){var S=e.sel.ranges[a],w=Ce(S.head,S.anchor)<0;n[a]=new jn(w?f:c,w?c:f)}else n[a]=new jn(c,c)}return new Ki(n,e.sel.primIndex)}function Xl(e){e.doc.mode=Wt(e.options,e.doc.modeOption),Ma(e)}function Ma(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,Ka(e,100),e.state.modeGen++,e.curOp&&wi(e)}function Is(e,t){return t.from.ch==0&&t.to.ch==0&&Re(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Yl(e,t,r,n){function i(Xe){return r?r[Xe]:null}function o(Xe,Fe,rt){Xa(Xe,Fe,rt,n),lr(Xe,"change",Xe,t)}function a(Xe,Fe){for(var rt=[],Nt=Xe;Nt<Fe;++Nt)rt.push(new bo(f[Nt],i(Nt),n));return rt}var s=t.from,c=t.to,f=t.text,S=m(e,s.line),w=m(e,c.line),D=Re(f),L=i(f.length-1),G=c.line-s.line;if(t.full)e.insert(0,a(0,f.length)),e.remove(f.length,e.size-f.length);else if(Is(e,t)){var ie=a(0,f.length-1);o(w,w.text,L),G&&e.remove(s.line,G),ie.length&&e.insert(s.line,ie)}else if(S==w)if(f.length==1)o(S,S.text.slice(0,s.ch)+D+S.text.slice(c.ch),L);else{var ge=a(1,f.length-1);ge.push(new bo(D+S.text.slice(c.ch),L,n)),o(S,S.text.slice(0,s.ch)+f[0],i(0)),e.insert(s.line+1,ge)}else if(f.length==1)o(S,S.text.slice(0,s.ch)+f[0]+w.text.slice(c.ch),i(0)),e.remove(s.line+1,G);else{o(S,S.text.slice(0,s.ch)+f[0],i(0)),o(w,D+w.text.slice(c.ch),L);var Ae=a(1,f.length-1);G>1&&e.remove(s.line+1,G-1),e.insert(s.line+1,Ae)}lr(e,"change",e,t)}function Uo(e,t,r){function n(i,o,a){if(i.linked)for(var s=0;s<i.linked.length;++s){var c=i.linked[s];if(c.doc!=o){var f=a&&c.sharedHist;r&&!f||(t(c.doc,f),n(c.doc,i,f))}}}n(e,null,!0)}function Rs(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,fl(e),Xl(e),Os(e),e.options.lineWrapping||Pi(e),e.options.mode=t.modeOption,wi(e)}function Os(e){(e.doc.direction=="rtl"?wt:I)(e.display.lineDiv,"CodeMirror-rtl")}function Qs(e){Di(e,function(){Os(e),wi(e)})}function Sl(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 Ql(e,t){var r={from:sn(t.from),to:wo(t),text:F(e,t.from,t.to)};return Ds(e,r,t.from.line,t.to.line+1),Uo(e,function(n){return Ds(n,r,t.from.line,t.to.line+1)},!0),r}function Ls(e){for(;e.length;){var t=Re(e);if(t.ranges)e.pop();else break}}function Js(e,t){if(t)return Ls(e.done),Re(e.done);if(e.done.length&&!Re(e.done).ranges)return Re(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Re(e.done)}function Ts(e,t,r,n){var i=e.history;i.undone.length=0;var o=+new Date,a,s;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=Js(i,i.lastOp==n)))s=Re(a.changes),Ce(t.from,t.to)==0&&Ce(t.from,s.to)==0?s.to=wo(t):a.changes.push(Ql(e,t));else{var c=Re(i.done);for((!c||!c.ranges)&&Do(e.sel,i.done),a={changes:[Ql(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,s||Dn(e,"historyAdded")}function Ps(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 qs(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||Ps(e,o,Re(i.done),t))?i.done[i.done.length-1]=t:Do(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&Ls(i.undone)}function Do(e,t){var r=Re(t);r&&r.ranges&&r.equals(e)||t.push(e)}function Ds(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 eu(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 l(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(eu(r[i]));return n}function u(e,t){var r=l(e,t),n=yr(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 s=0;s<a.length;++s){for(var c=a[s],f=0;f<o.length;++f)if(o[f].marker==c.marker)continue e;o.push(c)}else a&&(r[i]=a)}return r}function d(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges){n.push(r?Ki.prototype.deepCopy.call(o):o);continue}var a=o.changes,s=[];n.push({changes:s});for(var c=0;c<a.length;++c){var f=a[c],S=void 0;if(s.push({from:f.from,to:f.to,text:f.text}),t)for(var w in f)(S=w.match(/^spans_(\d+)$/))&&ve(t,Number(S[1]))>-1&&(Re(s)[w]=f[w],delete f[w])}}return n}function p(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 jn(i,t)}else return new jn(r||t,t)}function C(e,t,r,n,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),_(e,new Ki([p(e.sel.primary(),t,r,i)],0),n)}function E(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]=p(e.sel.ranges[o],t[o],null,i);var a=vo(e.cm,n,e.sel.primIndex);_(e,a,r)}function R(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,_(e,vo(e.cm,i,e.sel.primIndex),n)}function z(e,t,r,n){_(e,ko(t,r),n)}function Z(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 jn(Ve(e,i[o].anchor),Ve(e,i[o].head))},origin:r&&r.origin};return Dn(e,"beforeSelectionChange",e,n),e.cm&&Dn(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?vo(e.cm,n.ranges,n.ranges.length-1):t}function k(e,t,r){var n=e.history.done,i=Re(n);i&&i.ranges?(n[n.length-1]=t,U(e,t,r)):_(e,t,r)}function _(e,t,r){U(e,t,r),qs(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function U(e,t,r){(wn(e,"beforeSelectionChange")||e.cm&&wn(e.cm,"beforeSelectionChange"))&&(t=Z(e,t,r));var n=r&&r.bias||(Ce(t.primary().head,e.sel.primary().head)<0?-1:1);ue(e,le(e,t,n,!0)),!(r&&r.scroll===!1)&&e.cm&&xa(e.cm)}function ue(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Nn(e.cm)),lr(e,"cursorActivity",e))}function B(e){ue(e,le(e,e.sel,null,!1))}function le(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],c=Te(e,a.anchor,s&&s.anchor,r,n),f=Te(e,a.head,s&&s.head,r,n);(i||c!=a.anchor||f!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new jn(c,f))}return i?vo(e.cm,i,t.primIndex):t}function $e(e,t,r,n,i){var o=m(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],c=s.marker,f="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,S="selectRight"in c?!c.selectRight:c.inclusiveRight;if((s.from==null||(f?s.from<=t.ch:s.from<t.ch))&&(s.to==null||(S?s.to>=t.ch:s.to>t.ch))){if(i&&(Dn(c,"beforeCursorEnter"),c.explicitlyCleared))if(o.markedSpans){--a;continue}else break;if(!c.atomic)continue;if(r){var w=c.find(n<0?1:-1),D=void 0;if((n<0?S:f)&&(w=We(e,w,-n,w&&w.line==t.line?o:null)),w&&w.line==t.line&&(D=Ce(w,r))&&(n<0?D<0:D>0))return $e(e,w,t,n,i)}var L=c.find(n<0?-1:1);return(n<0?f:S)&&(L=We(e,L,n,L.line==t.line?o:null)),L?$e(e,L,t,n,i):null}}return t}function Te(e,t,r,n,i){var o=n||1,a=$e(e,t,r,o,i)||!i&&$e(e,t,r,o,!0)||$e(e,t,r,-o,i)||!i&&$e(e,t,r,-o,!0);return a||(e.cantEdit=!0,W(e.first,0))}function We(e,t,r,n){return r<0&&t.ch==0?t.line>e.first?Ve(e,W(t.line-1)):null:r>0&&t.ch==(n||m(e,t.line)).text.length?t.line<e.first+e.size-1?W(t.line+1,0):null:new W(t.line,t.ch+r)}function He(e){e.setSelection(W(e.firstLine(),0),W(e.lastLine()),lt)}function Ee(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,s){i&&(n.from=Ve(e,i)),o&&(n.to=Ve(e,o)),a&&(n.text=a),s!==void 0&&(n.origin=s)}),Dn(e,"beforeChange",e,n),e.cm&&Dn(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 fe(e,t,r){if(e.cm){if(!e.cm.curOp)return qr(e.cm,fe)(e,t,r);if(e.cm.state.suppressEdits)return}if(!((wn(e,"beforeChange")||e.cm&&wn(e.cm,"beforeChange"))&&(t=Ee(e,t,!0),!t))){var n=Un&&!r&&ci(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)ft(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text,origin:t.origin});else ft(e,t)}}function ft(e,t){if(!(t.text.length==1&&t.text[0]==""&&Ce(t.from,t.to)==0)){var r=_l(e,t);Ts(e,t,r,e.cm?e.cm.curOp.id:NaN),ht(e,t,r,yr(e,t));var n=[];Uo(e,function(i,o){!o&&ve(n,i.history)==-1&&(Ft(i.history,t),n.push(i.history)),ht(i,t,null,yr(i,t))})}}function Ze(e,t,r){var n=e.cm&&e.cm.state.suppressEdits;if(!(n&&!r)){for(var i=e.history,o,a=e.sel,s=t=="undo"?i.done:i.undone,c=t=="undo"?i.undone:i.done,f=0;f<s.length&&(o=s[f],!(r?o.ranges&&!o.equals(e.sel):!o.ranges));f++);if(f!=s.length){for(i.lastOrigin=i.lastSelOrigin=null;;)if(o=s.pop(),o.ranges){if(Do(o,c),r&&!o.equals(e.sel)){_(e,o,{clearRedo:!1});return}a=o}else if(n){s.push(o);return}else break;var S=[];Do(a,c),c.push({changes:S,generation:i.generation}),i.generation=o.generation||++i.maxGeneration;for(var w=wn(e,"beforeChange")||e.cm&&wn(e.cm,"beforeChange"),D=function(ie){var ge=o.changes[ie];if(ge.origin=t,w&&!Ee(e,ge,!1))return s.length=0,{};S.push(Ql(e,ge));var Ae=ie?_l(e,ge):Re(s);ht(e,ge,Ae,u(e,ge)),!ie&&e.cm&&e.cm.scrollIntoView({from:ge.from,to:wo(ge)});var Xe=[];Uo(e,function(Fe,rt){!rt&&ve(Xe,Fe.history)==-1&&(Ft(Fe.history,ge),Xe.push(Fe.history)),ht(Fe,ge,null,u(Fe,ge))})},L=o.changes.length-1;L>=0;--L){var G=D(L);if(G)return G.v}}}}function vt(e,t){if(t!=0&&(e.first+=t,e.sel=new Ki(je(e.sel.ranges,function(i){return new jn(W(i.anchor.line+t,i.anchor.ch),W(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){wi(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)Zo(e.cm,n,"gutter")}}function ht(e,t,r,n){if(e.cm&&!e.cm.curOp)return qr(e.cm,ht)(e,t,r,n);if(t.to.line<e.first){vt(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);vt(e,i),t={from:W(e.first,0),to:W(t.to.line+i,t.to.ch),text:[Re(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:W(o,m(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=F(e,t.from,t.to),r||(r=_l(e,t)),e.cm?Ht(e.cm,t,n):Yl(e,t,n),U(e,r,lt),e.cantEdit&&Te(e,W(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ht(e,t,r){var n=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=J(Jr(m(n,o.line))),n.iter(c,a.line+1,function(L){if(L==i.maxLine)return s=!0,!0})),n.sel.contains(t.from,t.to)>-1&&Nn(e),Yl(n,t,r,$l(e)),e.options.lineWrapping||(n.iter(c,o.line+t.text.length,function(L){var G=Zi(L);G>i.maxLineLength&&(i.maxLine=L,i.maxLineLength=G,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),or(n,o.line),Ka(e,400);var f=t.text.length-(a.line-o.line)-1;t.full?wi(e):o.line==a.line&&t.text.length==1&&!Is(e.doc,t)?Zo(e,o.line,"text"):wi(e,o.line,a.line+1,f);var S=wn(e,"changes"),w=wn(e,"change");if(w||S){var D={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};w&&lr(e,"change",e,D),S&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(D)}e.display.selForContextMenu=null}function it(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)),fe(e,{from:r,to:n,text:t,origin:i})}function tt(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function _t(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 s=0;s<o.ranges.length;s++)tt(o.ranges[s].anchor,t,r,n),tt(o.ranges[s].head,t,r,n);continue}for(var c=0;c<o.changes.length;++c){var f=o.changes[c];if(r<f.from.line)f.from=W(f.from.line+n,f.from.ch),f.to=W(f.to.line+n,f.to.ch);else if(t<=f.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}function Ft(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;_t(e.done,r,n,i),_t(e.undone,r,n,i)}function yt(e,t,r,n){var i=t,o=t;return typeof t=="number"?o=m(e,ir(e,t)):i=J(t),i==null?null:(n(o,i)&&e.cm&&Zo(e.cm,i,r),o)}function Je(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}Je.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,ql(i),lr(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 Ke(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}Ke.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 Je))){var s=[];this.collapse(s),this.children=[new Je(s)],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,s=a;s<i.lines.length;){var c=new Je(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++n,0,c),c.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 Ke(t);if(e.parent){e.size-=r.size,e.height-=r.height;var i=ve(e.parent.children,e);e.parent.children.splice(i+1,0,r)}else{var n=new Ke(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 Le=function(e,t,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=e,this.node=t};Le.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,r=this.line,n=J(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=ma(this);H(r,Math.max(0,r.height-o)),e&&(Di(e,function(){bt(e,r,-o),Zo(e,n,"widget")}),lr(e,"lineWidgetCleared",e,this,n))}},Le.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=ma(this)-t;i&&(ro(this.doc,n)||H(n,n.height+i),r&&Di(r,function(){r.curOp.forceUpdate=!0,bt(r,n,i),lr(r,"lineWidgetChanged",r,e,J(n))}))},ur(Le);function bt(e,t,r){io(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Bl(e,r)}function st(e,t,r,n){var i=new Le(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),yt(e,t,"widget",function(a){var s=a.widgets||(a.widgets=[]);if(i.insertAt==null?s.push(i):s.splice(Math.min(s.length-1,Math.max(0,i.insertAt)),0,i),i.line=a,o&&!ro(e,a)){var c=io(a)<e.scrollTop;H(a,a.height+ma(i)),c&&Bl(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&lr(o,"lineWidgetAdded",o,i,typeof t=="number"?t:J(t)),i}var Hn=0,Pn=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Hn};Pn.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&ua(e),wn(this,"clear")){var r=this.find();r&&lr(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Ci(a.markedSpans,this);e&&!this.collapsed?Zo(e,J(a),"text"):e&&(s.to!=null&&(i=J(a)),s.from!=null&&(n=J(a))),a.markedSpans=qi(a.markedSpans,s),s.from==null&&this.collapsed&&!ro(this.doc,a)&&e&&H(a,ba(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var f=Jr(this.lines[c]),S=Zi(f);S>e.display.maxLineLength&&(e.display.maxLine=f,e.display.maxLineLength=S,e.display.maxLineChanged=!0)}n!=null&&e&&this.collapsed&&wi(e,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&B(e.doc)),e&&lr(e,"markerCleared",e,this,n,i),t&&Po(e),this.parent&&this.parent.clear()}},Pn.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=Ci(o.markedSpans,this);if(a.from!=null&&(r=W(t?o:J(o),a.from),e==-1))return r;if(a.to!=null&&(n=W(t?o:J(o),a.to),e==1))return n}return r&&{from:r,to:n}},Pn.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;!t||!n||Di(n,function(){var i=t.line,o=J(t.line),a=rl(n,o);if(a&&(Fa(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ro(r.doc,i)&&r.height!=null){var s=r.height;r.height=null;var c=ma(r)-s;c&&H(i,i.height+c)}lr(n,"markerChanged",n,e)})},Pn.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||ve(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Pn.prototype.detachLine=function(e){if(this.lines.splice(ve(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ur(Pn);function fn(e,t,r,n,i){if(n&&n.shared)return an(e,t,r,n,i);if(e.cm&&!e.cm.curOp)return qr(e.cm,fn)(e,t,r,n,i);var o=new Pn(e,i),a=Ce(t,r);if(n&&ye(n,o,!1),a>0||a==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=ze("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(mo(e,t.line,t,r,o)||t.line!=r.line&&mo(e,r.line,t,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Dr()}o.addToHistory&&Ts(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var s=t.line,c=e.cm,f;if(e.iter(s,r.line+1,function(w){c&&o.collapsed&&!c.options.lineWrapping&&Jr(w)==c.display.maxLine&&(f=!0),o.collapsed&&s!=t.line&&H(w,0),Br(w,new mi(o,s==t.line?t.ch:null,s==r.line?r.ch:null)),++s}),o.collapsed&&e.iter(t.line,r.line+1,function(w){ro(e,w)&&H(w,0)}),o.clearOnEnter&&ke(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(Qr(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Hn,o.atomic=!0),c){if(f&&(c.curOp.updateMaxLine=!0),o.collapsed)wi(c,t.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var S=t.line;S<=r.line;S++)Zo(c,S,"text");o.atomic&&B(c.doc),lr(c,"markerAdded",c,o)}return o}var Vn=function(e,t){this.markers=e,this.primary=t;for(var r=0;r<e.length;++r)e[r].parent=this};Vn.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();lr(this,"clear")}},Vn.prototype.find=function(e,t){return this.primary.find(e,t)},ur(Vn);function an(e,t,r,n,i){n=ye(n),n.shared=!1;var o=[fn(e,t,r,n,i)],a=o[0],s=n.widgetNode;return Uo(e,function(c){s&&(n.widgetNode=s.cloneNode(!0)),o.push(fn(c,Ve(c,t),Ve(c,r),n,i));for(var f=0;f<c.linked.length;++f)if(c.linked[f].isParent)return;a=Re(o)}),new Vn(o,a)}function _n(e){return e.findMarks(W(e.first,0),e.clipPos(W(e.lastLine())),function(t){return t.parent})}function Nr(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 s=fn(e,o,a,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function gt(e){for(var t=function(n){var i=e[n],o=[i.primary.doc];Uo(i.primary.doc,function(c){return o.push(c)});for(var a=0;a<i.markers.length;a++){var s=i.markers[a];ve(o,s.doc)==-1&&(s.parent=null,i.markers.splice(a--,1))}},r=0;r<e.length;r++)t(r)}var Be=0,qe=function(e,t,r,n,i){if(!(this instanceof qe))return new qe(e,t,r,n,i);r==null&&(r=0),Ke.call(this,[new Je([new bo("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=W(r,0);this.sel=ko(o),this.history=new Sl(null),this.id=++Be,this.modeOption=t,this.lineSep=n,this.direction=i=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Yl(this,{from:o,to:o,text:e}),_(this,ko(o),lt)};qe.prototype=At(Ke.prototype,{constructor:qe,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=K(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:$r(function(e){var t=W(this.first,0),r=this.first+this.size-1;fe(this,{from:t,to:W(r,m(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ba(this.cm,0,0),_(this,ko(t),lt)}),replaceRange:function(e,t,r,n){t=Ve(this,t),r=r?Ve(this,r):t,it(this,e,t,r,n)},getRange:function(e,t,r){var n=F(this,Ve(this,e),Ve(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(we(this,e))return m(this,e)},getLineNumber:function(e){return J(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=m(this,e)),Jr(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Ve(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:$r(function(e,t,r){z(this,Ve(this,typeof e=="number"?W(e,t||0):e),null,r)}),setSelection:$r(function(e,t,r){z(this,Ve(this,e),Ve(this,t||e),r)}),extendSelection:$r(function(e,t,r){C(this,Ve(this,e),t&&Ve(this,t),r)}),extendSelections:$r(function(e,t){E(this,En(this,e),t)}),extendSelectionsBy:$r(function(e,t){var r=je(this.sel.ranges,e);E(this,En(this,r),t)}),setSelections:$r(function(e,t,r){if(e.length){for(var n=[],i=0;i<e.length;i++)n[i]=new jn(Ve(this,e[i].anchor),Ve(this,e[i].head));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),_(this,vo(this.cm,n,t),r)}}),addSelection:$r(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new jn(Ve(this,e),Ve(this,t||e))),_(this,vo(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=F(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=F(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:$r(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 s=t&&t!="end"&&Ys(this,n,t),c=n.length-1;c>=0;c--)fe(this,n[c]);s?k(this,s):this.cm&&xa(this.cm)}),undo:$r(function(){Ze(this,"undo")}),redo:$r(function(){Ze(this,"redo")}),undoSelection:$r(function(){Ze(this,"undo",!0)}),redoSelection:$r(function(){Ze(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 Sl(this.history.maxGeneration),Uo(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:d(this.history.done),undone:d(this.history.undone)}},setHistory:function(e){var t=this.history=new Sl(this.history.maxGeneration);t.done=d(e.done.slice(0),null,!0),t.undone=d(e.undone.slice(0),null,!0)},setGutterMarker:$r(function(e,t,r){return yt(this,e,"gutter",function(n){var i=n.gutterMarkers||(n.gutterMarkers={});return i[t]=r,!r&&zt(i)&&(n.gutterMarkers=null),!0})}),clearGutter:$r(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&yt(t,r,"gutter",function(){return r.gutterMarkers[e]=null,zt(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!we(this,e)||(t=e,e=m(this,e),!e))return null}else if(t=J(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:$r(function(e,t,r){return yt(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(h(r).test(n[i]))return!1;n[i]+=" "+r}return!0})}),removeLineClass:$r(function(e,t,r){return yt(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(h(r));if(!a)return!1;var s=a.index+a[0].length;n[i]=o.slice(0,a.index)+(!a.index||s==o.length?"":" ")+o.slice(s)||null}else return!1;return!0})}),addLineWidget:$r(function(e,t,r){return st(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return fn(this,Ve(this,e),Ve(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=Ve(this,e),fn(this,e,e,r,"bookmark")},findMarksAt:function(e){e=Ve(this,e);var t=[],r=m(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=Ve(this,e),t=Ve(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 s=0;s<a.length;s++){var c=a[s];!(c.to!=null&&i==e.line&&e.ch>=c.to||c.from==null&&i!=e.line||c.from!=null&&i==t.line&&c.from>=t.ch)&&(!r||r(c.marker))&&n.push(c.marker.parent||c.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}),Ve(this,W(r,t))},indexFromPos:function(e){e=Ve(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 qe(K(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 qe(K(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}],Nr(n,_n(this)),n},unlinkDoc:function(e){if(e instanceof Zn&&(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),gt(_n(this));break}}if(e.history==this.history){var n=[e.id];Uo(e,function(i){return n.push(i.id)},!0),e.history=new Sl(null),e.history.done=d(this.history.done,n),e.history.undone=d(this.history.undone,n)}},iterLinkedDocs:function(e){Uo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):N(e)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:$r(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&Qs(this.cm))})}),qe.prototype.eachLine=qe.prototype.iter;var nn=0;function un(e){var t=this;if(rn(t),!($n(t,e)||Lo(t.display,e))){cr(e),x&&(nn=+new Date);var r=Ho(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,s=function(){++a==i&&qr(t,function(){r=Ve(t.doc,r);var L={from:r,to:r,text:t.doc.splitLines(o.filter(function(G){return G!=null}).join(t.doc.lineSeparator())),origin:"paste"};fe(t.doc,L),k(t.doc,ko(Ve(t.doc,r),Ve(t.doc,wo(L))))})()},c=function(L,G){if(t.options.allowDropFileTypes&&ve(t.options.allowDropFileTypes,L.type)==-1){s();return}var ie=new FileReader;ie.onerror=function(){return s()},ie.onload=function(){var ge=ie.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){s();return}o[G]=ge,s()},ie.readAsText(L)},f=0;f<n.length;f++)c(n[f],f);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 S=e.dataTransfer.getData("Text");if(S){var w;if(t.state.draggingText&&!t.state.draggingText.copy&&(w=t.listSelections()),U(t.doc,ko(r,r)),w)for(var D=0;D<w.length;++D)it(t.doc,"",w[D].anchor,w[D].head,"drag");t.replaceSelection(S,"around","paste"),t.display.input.focus()}}catch(L){}}}}function ln(e,t){if(x&&(!e.state.draggingText||+new Date-nn<100)){Li(t);return}if(!($n(e,t)||Lo(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!Me)){var r=$("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",v&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),v&&r.parentNode.removeChild(r)}}function Mt(e,t){var r=Ho(e,t);if(r){var n=document.createDocumentFragment();cs(e,r,n),e.display.dragCursor||(e.display.dragCursor=$("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),X(e.display.dragCursor,n)}}function rn(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Fn(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 mn=!1;function Ut(){mn||(Ge(),mn=!0)}function Ge(){var e;ke(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Fn(dn)},100))}),ke(window,"blur",function(){return Fn(Ha)})}function dn(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var vn={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"},yn=0;yn<10;yn++)vn[yn+48]=vn[yn+96]=String(yn);for(var Er=65;Er<=90;Er++)vn[Er]=String.fromCharCode(Er);for(var Mr=1;Mr<=12;Mr++)vn[Mr+111]=vn[Mr+63235]="F"+Mr;var br={};br.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"},br.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"},br.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"},br.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"]},br.default=P?br.macDefault:br.pcDefault;function Ir(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,a=0;a<t.length-1;a++){var s=t[a];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))r=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else if(/^s(hift)?$/i.test(s))i=!0;else throw new Error("Unrecognized modifier name: "+s)}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function In(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=je(r.split(" "),Ir),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=n):(s=i.slice(0,o+1).join(" "),a="...");var c=t[s];if(!c)t[s]=a;else if(c!=a)throw new Error("Inconsistent bindings for "+s)}delete e[r]}for(var f in t)e[f]=t[f];return e}function nr(e,t,r,n){t=Jn(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 nr(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var a=nr(e,t.fallthrough[o],r,n);if(a)return a}}}function hr(e){var t=typeof e=="string"?e:vn[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function Xn(e,t,r){var n=e;return t.altKey&&n!="Alt"&&(e="Alt-"+e),(ne?t.metaKey:t.ctrlKey)&&n!="Ctrl"&&(e="Ctrl-"+e),(ne?t.ctrlKey:t.metaKey)&&n!="Mod"&&(e="Cmd-"+e),!r&&t.shiftKey&&n!="Shift"&&(e="Shift-"+e),e}function Rr(e,t){if(v&&e.keyCode==34&&e.char)return!1;var r=vn[e.keyCode];return r==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(r=e.code),Xn(r,e,t))}function Jn(e){return typeof e=="string"?br[e]:e}function ai(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,Re(n).to)<=0;){var a=n.pop();if(Ce(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}Di(e,function(){for(var s=n.length-1;s>=0;s--)it(e.doc,"",n[s].from,n[s].to,"+delete");xa(e)})}function fi(e,t,r){var n=Rt(e.text,t+r,r);return n<0||n>e.text.length?null:n}function bi(e,t,r){var n=fi(e,t.ch,r);return n==null?null:new W(t.line,n,r<0?"after":"before")}function Sr(e,t,r,n,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=xn(r,t.doc.direction);if(o){var a=i<0?Re(o):o[0],s=i<0==(a.level==1),c=s?"after":"before",f;if(a.level>0||t.doc.direction=="rtl"){var S=na(t,r);f=i<0?r.text.length-1:0;var w=fo(t,S,f).top;f=ct(function(D){return fo(t,S,D).top==w},i<0==(a.level==1)?a.from:a.to-1,f),c=="before"&&(f=fi(r,f,1))}else f=i<0?a.to:a.from;return new W(n,f,c)}}return new W(n,i<0?r.text.length:0,i<0?"before":"after")}function zr(e,t,r,n){var i=xn(t,e.doc.direction);if(!i)return bi(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=cn(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 bi(t,r,n);var s=function(Ae,Xe){return fi(t,Ae instanceof W?Ae.ch:Ae,Xe)},c,f=function(Ae){return e.options.lineWrapping?(c=c||na(e,t),ls(e,t,c,Ae)):{begin:0,end:t.text.length}},S=f(r.sticky=="before"?s(r,-1):r.ch);if(e.doc.direction=="rtl"||a.level==1){var w=a.level==1==n<0,D=s(r,w?1:-1);if(D!=null&&(w?D<=a.to&&D<=S.end:D>=a.from&&D>=S.begin)){var L=w?"before":"after";return new W(r.line,D,L)}}var G=function(Ae,Xe,Fe){for(var rt=function(pr,gi){return gi?new W(r.line,s(pr,1),"before"):new W(r.line,pr,"after")};Ae>=0&&Ae<i.length;Ae+=Xe){var Nt=i[Ae],It=Xe>0==(Nt.level!=1),bn=It?Fe.begin:s(Fe.end,-1);if(Nt.from<=bn&&bn<Nt.to||(bn=It?Nt.from:s(Nt.to,-1),Fe.begin<=bn&&bn<Fe.end))return rt(bn,It)}},ie=G(o+n,n,S);if(ie)return ie;var ge=n>0?S.end:s(S.begin,-1);return ge!=null&&!(n>0&&ge==t.text.length)&&(ie=G(n>0?0:i.length-1,n,f(ge)),ie)?ie:null}var Ei={selectAll:He,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),lt)},killLine:function(e){return ai(e,function(t){if(t.empty()){var r=m(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:W(t.head.line+1,0)}:{from:t.head,to:W(t.head.line,r)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return ai(e,function(t){return{from:W(t.from().line,0),to:Ve(e.doc,W(t.to().line+1,0))}})},delLineLeft:function(e){return ai(e,function(t){return{from:W(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return ai(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 ai(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(W(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(W(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return Cr(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return ji(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return Ur(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")},dt)},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")},dt)},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/)?ji(e,t.head):n},dt)},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=Ue(e.getLine(o.line),o.ch,n);t.push(Oe(n-a%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Di(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=m(e.doc,i.line).text;if(o){if(i.ch==o.length&&(i=new W(i.line,i.ch-1)),i.ch>0)i=new W(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),W(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=m(e.doc,i.line-1).text;a&&(i=new W(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),W(i.line-1,a.length-1),i,"+transpose"))}}r.push(new jn(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return Di(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);xa(e)})},openLine:function(e){return e.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Cr(e,t){var r=m(e.doc,t),n=Jr(r);return n!=r&&(t=J(n)),Sr(!0,e,n,t,1)}function Ur(e,t){var r=m(e.doc,t),n=Oo(r);return n!=r&&(t=J(n)),Sr(!0,e,r,t,-1)}function ji(e,t){var r=Cr(e,t.line),n=m(e.doc,r.line),i=xn(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 W(r.line,a?0:o,r.sticky)}return r}function Kr(e,t,r){if(typeof t=="string"&&(t=Ei[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)!=kt}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function di(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=nr(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&nr(t,e.options.extraKeys,r,e)||nr(t,e.options.keyMap,r,e)}var qn=new pe;function hn(e,t,r,n){var i=e.state.keySeq;if(i){if(hr(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:qn.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),jr(e,i+" "+t,r,n))return!0}return jr(e,t,r,n)}function jr(e,t,r,n){var i=di(e,t,n);return i=="multi"&&(e.state.keySeq=t),i=="handled"&&lr(e,"keyHandled",e,t,r),(i=="handled"||i=="multi")&&(cr(r),Wl(e)),!!i}function Vr(e,t){var r=Rr(t,!0);return r?t.shiftKey&&!e.state.keySeq?hn(e,"Shift-"+r,t,function(n){return Kr(e,n,!0)})||hn(e,r,t,function(n){if(typeof n=="string"?/^go[A-Z]/.test(n):n.motion)return Kr(e,n)}):hn(e,r,t,function(n){return Kr(e,n)}):!1}function Zt(e,t,r){return hn(e,"'"+r+"'",t,function(n){return Kr(e,n,!0)})}var he=null;function et(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=Tt(),!$n(t,e))){x&&M<11&&e.keyCode==27&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=r==16||e.shiftKey;var n=Vr(t,e);v&&(he=n?r:null,!n&&r==88&&!Y&&(P?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),T&&!P&&!n&&r==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),r==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&_e(t)}}function _e(e){var t=e.display.lineDiv;wt(t,"CodeMirror-crosshair");function r(n){(n.keyCode==18||!n.altKey)&&(I(t,"CodeMirror-crosshair"),er(document,"keyup",r),er(document,"mouseover",r))}ke(document,"keyup",r),ke(document,"mouseover",r)}function xt(e){e.keyCode==16&&(this.doc.sel.shift=!1),$n(this,e)}function Gn(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Lo(t.display,e)||$n(t,e)||e.ctrlKey&&!e.altKey||P&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(v&&r==he){he=null,cr(e);return}if(!(v&&(!e.which||e.which<10)&&Vr(t,e))){var i=String.fromCharCode(n==null?r:n);i!="\b"&&(Zt(t,e,i)||t.display.input.onKeyPress(e))}}}var Yn=400,vi=function(e,t,r){this.time=e,this.pos=t,this.button=r};vi.prototype.compare=function(e,t,r){return this.time+Yn>e&&Ce(t,this.pos)==0&&r==this.button};var ei,li;function sr(e,t){var r=+new Date;return li&&li.compare(r,e,t)?(ei=li=null,"triple"):ei&&ei.compare(r,e,t)?(li=new vi(r,e,t),ei=null,"double"):(ei=new vi(r,e,t),li=null,"single")}function hi(e){var t=this,r=t.display;if(!($n(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,Lo(r,e)){y||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100));return}if(!jo(t,e)){var n=Ho(t,e),i=Ji(e),o=n?sr(n,i):"single";window.focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(n&&oo(t,i,n,o,e))&&(i==1?n?Ko(t,n,o,e):uo(e)==r.scroller&&cr(e):i==2?(n&&C(t.doc,n),setTimeout(function(){return r.input.focus()},20)):i==3&&(b?t.display.input.onContextMenu(e):ds(t)))}}}function oo(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,hn(e,Xn(o,i),i,function(a){if(typeof a=="string"&&(a=Ei[a]),!a)return!1;var s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s=a(e,r)!=kt}finally{e.state.suppressEdits=!1}return s})}function ho(e,t,r){var n=e.getOption("configureMouse"),i=n?n(e,t,r):{};if(i.unit==null){var o=xe?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=P?r.metaKey:r.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(P?r.altKey:r.ctrlKey)),i}function Ko(e,t,r,n){x?setTimeout(On(fs,e),0):e.curOp.focus=Tt();var i=ho(e,r,n),o=e.doc.sel,a;e.options.dragDrop&&po&&!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)?ao(e,n,t,i):Ia(e,n,t,i)}function ao(e,t,r,n){var i=e.display,o=!1,a=qr(e,function(f){y&&(i.scroller.draggable=!1),e.state.draggingText=!1,er(i.wrapper.ownerDocument,"mouseup",a),er(i.wrapper.ownerDocument,"mousemove",s),er(i.scroller,"dragstart",c),er(i.scroller,"drop",a),o||(cr(f),n.addNew||C(e.doc,r,null,null,n.extend),y&&!Me||x&&M==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),s=function(f){o=o||Math.abs(t.clientX-f.clientX)+Math.abs(t.clientY-f.clientY)>=10},c=function(){return o=!0};y&&(i.scroller.draggable=!0),e.state.draggingText=a,a.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ke(i.wrapper.ownerDocument,"mouseup",a),ke(i.wrapper.ownerDocument,"mousemove",s),ke(i.scroller,"dragstart",c),ke(i.scroller,"drop",a),ds(e),setTimeout(function(){return i.input.focus()},20)}function Wr(e,t,r){if(r=="char")return new jn(t,t);if(r=="word")return e.findWordAt(t);if(r=="line")return new jn(W(t.line,0),Ve(e.doc,W(t.line+1,0)));var n=r(e,t);return new jn(n.from,n.to)}function Ia(e,t,r,n){var i=e.display,o=e.doc;cr(t);var a,s,c=o.sel,f=c.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(r),s>-1?a=f[s]:a=new jn(r,r)):(a=o.sel.primary(),s=o.sel.primIndex),n.unit=="rectangle")n.addNew||(a=new jn(r,r)),r=Ho(e,t,!0,!0),s=-1;else{var S=Wr(e,r,n.unit);n.extend?a=p(a,S.anchor,S.head,n.extend):a=S}n.addNew?s==-1?(s=f.length,_(o,vo(e,f.concat([a]),s),{scroll:!1,origin:"*mouse"})):f.length>1&&f[s].empty()&&n.unit=="char"&&!n.extend?(_(o,vo(e,f.slice(0,s).concat(f.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),c=o.sel):R(o,s,a,ut):(s=0,_(o,new Ki([a],0),ut),c=o.sel);var w=r;function D(Fe){if(Ce(w,Fe)!=0)if(w=Fe,n.unit=="rectangle"){for(var rt=[],Nt=e.options.tabSize,It=Ue(m(o,r.line).text,r.ch,Nt),bn=Ue(m(o,Fe.line).text,Fe.ch,Nt),pr=Math.min(It,bn),gi=Math.max(It,bn),Fr=Math.min(r.line,Fe.line),so=Math.min(e.lastLine(),Math.max(r.line,Fe.line));Fr<=so;Fr++){var Xi=m(o,Fr).text,ri=Wn(Xi,pr,Nt);pr==gi?rt.push(new jn(W(Fr,ri),W(Fr,ri))):Xi.length>ri&&rt.push(new jn(W(Fr,ri),W(Fr,Wn(Xi,gi,Nt))))}rt.length||rt.push(new jn(r,r)),_(o,vo(e,c.ranges.slice(0,s).concat(rt),s),{origin:"*mouse",scroll:!1}),e.scrollIntoView(Fe)}else{var Yi=a,Si=Wr(e,Fe,n.unit),ui=Yi.anchor,ii;Ce(Si.anchor,ui)>0?(ii=Si.head,ui=Ln(Yi.from(),Si.anchor)):(ii=Si.anchor,ui=Jt(Yi.to(),Si.head));var Hr=c.ranges.slice(0);Hr[s]=Gr(e,new jn(Ve(o,ui),ii)),_(o,vo(e,Hr,s),ut)}}var L=i.wrapper.getBoundingClientRect(),G=0;function ie(Fe){var rt=++G,Nt=Ho(e,Fe,!0,n.unit=="rectangle");if(Nt)if(Ce(Nt,w)!=0){e.curOp.focus=Tt(),D(Nt);var It=hl(i,o);(Nt.line>=It.to||Nt.line<It.from)&&setTimeout(qr(e,function(){G==rt&&ie(Fe)}),150)}else{var bn=Fe.clientY<L.top?-20:Fe.clientY>L.bottom?20:0;bn&&setTimeout(qr(e,function(){G==rt&&(i.scroller.scrollTop+=bn,ie(Fe))}),50)}}function ge(Fe){e.state.selectingText=!1,G=1/0,Fe&&(cr(Fe),i.input.focus()),er(i.wrapper.ownerDocument,"mousemove",Ae),er(i.wrapper.ownerDocument,"mouseup",Xe),o.history.lastSelOrigin=null}var Ae=qr(e,function(Fe){Fe.buttons===0||!Ji(Fe)?ge(Fe):ie(Fe)}),Xe=qr(e,ge);e.state.selectingText=Xe,ke(i.wrapper.ownerDocument,"mousemove",Ae),ke(i.wrapper.ownerDocument,"mouseup",Xe)}function Gr(e,t){var r=t.anchor,n=t.head,i=m(e.doc,r.line);if(Ce(r,n)==0&&r.sticky==n.sticky)return t;var o=xn(i);if(!o)return t;var a=cn(o,r.ch,r.sticky),s=o[a];if(s.from!=r.ch&&s.to!=r.ch)return t;var c=a+(s.from==r.ch==(s.level!=1)?0:1);if(c==0||c==o.length)return t;var f;if(n.line!=r.line)f=(n.line-r.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var S=cn(o,n.ch,n.sticky),w=S-a||(n.ch-r.ch)*(s.level==1?-1:1);S==c-1||S==c?f=w<0:f=w>0}var D=o[c+(f?-1:0)],L=f==(D.level==1),G=L?D.from:D.to,ie=L?"after":"before";return r.ch==G&&r.sticky==ie?t:new jn(new W(r.line,G,ie),n)}function Eo(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(D){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&cr(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!wn(e,r))return oi(t);o-=s.top-a.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var f=a.gutters.childNodes[c];if(f&&f.getBoundingClientRect().right>=i){var S=ae(e.doc,o),w=e.display.gutterSpecs[c];return Dn(e,r,e,S,w.className,t),oi(t)}}}function jo(e,t){return Eo(e,t,"gutterClick",!0)}function Ra(e,t){Lo(e.display,t)||Oa(e,t)||$n(e,t,"contextmenu")||b||e.display.input.onContextMenu(t)}function Oa(e,t){return wn(e,"gutterContextMenu")?Eo(e,t,"gutterContextMenu",!1):!1}function ca(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Bi(e)}var Mi={toString:function(){return"CodeMirror.Init"}},fa={},No={};function Mo(e){var t=e.optionHandlers;function r(n,i,o,a){e.defaults[n]=i,o&&(t[n]=a?function(s,c,f){f!=Mi&&o(s,c,f)}:o)}e.defineOption=r,e.Init=Mi,r("value","",function(n,i){return n.setValue(i)},!0),r("mode",null,function(n,i){n.doc.modeOption=i,Xl(n)},!0),r("indentUnit",2,Xl,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,function(n){Ma(n),Bi(n),wi(n)},!0),r("lineSeparator",null,function(n,i){if(n.doc.lineSep=i,!!i){var o=[],a=n.doc.first;n.doc.iter(function(c){for(var f=0;;){var S=c.text.indexOf(i,f);if(S==-1)break;f=S+i.length,o.push(W(a,S))}a++});for(var s=o.length-1;s>=0;s--)it(n.doc,i,o[s],W(o[s].line,o[s].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!=Mi&&n.refresh()}),r("specialCharPlaceholder",ga,function(n){return n.refresh()},!0),r("electricChars",!0),r("inputStyle",ce?"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",!nt),r("wholeLineUpdateBefore",!0),r("theme","default",function(n){ca(n),Ea(n)},!0),r("keyMap","default",function(n,i,o){var a=Jn(i),s=o!=Mi&&Jn(o);s&&s.detach&&s.detach(n,a),a.attach&&a.attach(n,s||null)}),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Vo,!0),r("gutters",[],function(n,i){n.display.gutterSpecs=Gl(i,n.options.lineNumbers),Ea(n)},!0),r("fixedGutter",!0,function(n,i){n.display.gutters.style.left=i?cl(n.display)+"px":"0",n.refresh()},!0),r("coverGutterNextToScrollbar",!1,function(n){return sa(n)},!0),r("scrollbarStyle","native",function(n){ms(n),sa(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=Gl(n.options.gutters,i),Ea(n)},!0),r("firstLineNumber",1,Ea,!0),r("lineNumberFormatter",function(n){return n},Ea,!0),r("showCursorWhenSelecting",!1,aa,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,function(n,i){i=="nocursor"&&(Ha(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,Ao),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,aa,!0),r("singleCursorHeightPerLine",!0,aa,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Ma,!0),r("addModeClass",!1,Ma,!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,Ma,!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 Ao(e,t,r){var n=r&&r!=Mi;if(!t!=!n){var i=e.display.dragFunctions,o=t?ke:er;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 Vo(e){e.options.lineWrapping?(wt(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(I(e.display.wrapper,"CodeMirror-wrap"),Pi(e)),fl(e),wi(e),Bi(e),setTimeout(function(){return sa(e)},100)}function Zn(e,t){var r=this;if(!(this instanceof Zn))return new Zn(e,t);this.options=t=t?ye(t):{},ye(fa,t,!1);var n=t.value;typeof n=="string"?n=new qe(n,t.mode,null,t.lineSeparator,t.direction):t.mode&&(n.modeOption=t.mode),this.doc=n;var i=new Zn.inputStyles[t.inputStyle](this),o=this.display=new Gs(e,n,i,t);o.wrapper.CodeMirror=this,ca(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ms(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 pe,keySeq:null,specialChars:null},t.autofocus&&!ce&&o.input.focus(),x&&M<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Io(this),Ut(),ua(this),this.curOp.forceUpdate=!0,Rs(this,n),t.autofocus&&!ce||this.hasFocus()?setTimeout(function(){r.hasFocus()&&!r.state.focused&&Hl(r)},20):Ha(this);for(var a in No)No.hasOwnProperty(a)&&No[a](this,t[a],Mi);Vl(this),t.finishInit&&t.finishInit(this);for(var s=0;s<lo.length;++s)lo[s](this);Po(this),y&&t.lineWrapping&&getComputedStyle(o.lineDiv).textRendering=="optimizelegibility"&&(o.lineDiv.style.textRendering="auto")}Zn.defaults=fa,Zn.optionHandlers=No;function Io(e){var t=e.display;ke(t.scroller,"mousedown",qr(e,hi)),x&&M<11?ke(t.scroller,"dblclick",qr(e,function(c){if(!$n(e,c)){var f=Ho(e,c);if(!(!f||jo(e,c)||Lo(e.display,c))){cr(c);var S=e.findWordAt(f);C(e.doc,S.anchor,S.head)}}})):ke(t.scroller,"dblclick",function(c){return $n(e,c)||cr(c)}),ke(t.scroller,"contextmenu",function(c){return Ra(e,c)}),ke(t.input.getField(),"contextmenu",function(c){t.scroller.contains(c.target)||Ra(e,c)});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(c){if(c.touches.length!=1)return!1;var f=c.touches[0];return f.radiusX<=1&&f.radiusY<=1}function a(c,f){if(f.left==null)return!0;var S=f.left-c.left,w=f.top-c.top;return S*S+w*w>20*20}ke(t.scroller,"touchstart",function(c){if(!$n(e,c)&&!o(c)&&!jo(e,c)){t.input.ensurePolled(),clearTimeout(r);var f=+new Date;t.activeTouch={start:f,moved:!1,prev:f-n.end<=300?n:null},c.touches.length==1&&(t.activeTouch.left=c.touches[0].pageX,t.activeTouch.top=c.touches[0].pageY)}}),ke(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ke(t.scroller,"touchend",function(c){var f=t.activeTouch;if(f&&!Lo(t,c)&&f.left!=null&&!f.moved&&new Date-f.start<300){var S=e.coordsChar(t.activeTouch,"page"),w;!f.prev||a(f,f.prev)?w=new jn(S,S):!f.prev.prev||a(f,f.prev.prev)?w=e.findWordAt(S):w=new jn(W(S.line,0),Ve(e.doc,W(S.line+1,0))),e.setSelection(w.anchor,w.head),e.focus(),cr(c)}i()}),ke(t.scroller,"touchcancel",i),ke(t.scroller,"scroll",function(){t.scroller.clientHeight&&(ka(e,t.scroller.scrollTop),Bo(e,t.scroller.scrollLeft,!0),Dn(e,"scroll",e))}),ke(t.scroller,"mousewheel",function(c){return Xs(e,c)}),ke(t.scroller,"DOMMouseScroll",function(c){return Xs(e,c)}),ke(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(c){$n(e,c)||Li(c)},over:function(c){$n(e,c)||(Mt(e,c),Li(c))},start:function(c){return ln(e,c)},drop:qr(e,un),leave:function(c){$n(e,c)||rn(e)}};var s=t.input.getField();ke(s,"keyup",function(c){return xt.call(e,c)}),ke(s,"keydown",qr(e,et)),ke(s,"keypress",qr(e,Gn)),ke(s,"focus",function(c){return Hl(e,c)}),ke(s,"blur",function(c){return Ha(e,c)})}var lo=[];Zn.defineInitHook=function(e){return lo.push(e)};function Vi(e,t,r,n){var i=e.doc,o;r==null&&(r="add"),r=="smart"&&(i.mode.indent?o=Mn(e,t).state:r="prev");var a=e.options.tabSize,s=m(i,t),c=Ue(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var f=s.text.match(/^\s*/)[0],S;if(!n&&!/\S/.test(s.text))S=0,r="not";else if(r=="smart"&&(S=i.mode.indent(o,s.text.slice(f.length),s.text),S==kt||S>150)){if(!n)return;r="prev"}r=="prev"?t>i.first?S=Ue(m(i,t-1).text,null,a):S=0:r=="add"?S=c+e.options.indentUnit:r=="subtract"?S=c-e.options.indentUnit:typeof r=="number"&&(S=c+r),S=Math.max(0,S);var w="",D=0;if(e.options.indentWithTabs)for(var L=Math.floor(S/a);L;--L)D+=a,w+=" ";if(D<S&&(w+=Oe(S-D)),w!=f)return it(i,w,W(t,0),W(t,f.length),"+input"),s.stateAfter=null,!0;for(var G=0;G<i.sel.ranges.length;G++){var ie=i.sel.ranges[G];if(ie.head.line==t&&ie.head.ch<f.length){var ge=W(t,f.length);R(i,G,new jn(ge,ge));break}}}var ti=null;function Gi(e){ti=e}function Kt(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var a=+new Date-200,s=i=="paste"||e.state.pasteIncoming>a,c=N(t),f=null;if(s&&n.ranges.length>1)if(ti&&ti.text.join(`
|
|
|
`)==t){if(n.ranges.length%ti.text.length==0){f=[];for(var S=0;S<ti.text.length;S++)f.push(o.splitLines(ti.text[S]))}}else c.length==n.ranges.length&&e.options.pasteLinesPerSelection&&(f=je(c,function(Ae){return[Ae]}));for(var w=e.curOp.updateInput,D=n.ranges.length-1;D>=0;D--){var L=n.ranges[D],G=L.from(),ie=L.to();L.empty()&&(r&&r>0?G=W(G.line,G.ch-r):e.state.overwrite&&!s?ie=W(ie.line,Math.min(m(o,ie.line).text.length,ie.ch+Re(c).length)):s&&ti&&ti.lineWise&&ti.text.join(`
|
|
|
`)==c.join(`
|
|
|
`)&&(G=ie=W(G.line,0)));var ge={from:G,to:ie,text:f?f[D%f.length]:c,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};fe(e.doc,ge),lr(e,"inputRead",e,ge)}t&&!s&&Ar(e,t),xa(e),e.curOp.updateInput<2&&(e.curOp.updateInput=w),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function en(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Di(t,function(){return Kt(t,r,0,null,"paste")}),!0}function Ar(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 s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Vi(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(m(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Vi(e,i.head.line,"smart"));a&&lr(e,"electricInput",e,i.head.line)}}}function ni(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:W(i,0),head:W(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function gr(e,t,r,n){e.setAttribute("autocorrect",r?"":"off"),e.setAttribute("autocapitalize",n?"":"off"),e.setAttribute("spellcheck",!!t)}function si(){var e=$("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=$("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return y?e.style.width="1000px":e.setAttribute("wrap","off"),Se&&(e.style.border="1px solid black"),gr(e),t}function Ii(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)&&qr(this,t[n])(this,i,a),Dn(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"](Jn(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:yi(function(n,i){var o=n.token?n:e.getMode(this.options,n);if(o.startState)throw new Error("Overlays may not be stateful.");Ne(this.state.overlays,{mode:o,modeSpec:n,opaque:i&&i.opaque,priority:i&&i.priority||0},function(a){return a.priority}),this.state.modeGen++,wi(this)}),removeOverlay:yi(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++,wi(this);return}}}),indentLine:yi(function(n,i,o){typeof i!="string"&&typeof i!="number"&&(i==null?i=this.options.smartIndent?"smart":"prev":i=i?"add":"subtract"),we(this.doc,n)&&Vi(this,n,i,o)}),indentSelection:yi(function(n){for(var i=this.doc.sel.ranges,o=-1,a=0;a<i.length;a++){var s=i[a];if(s.empty())s.head.line>o&&(Vi(this,s.head.line,n,!0),o=s.head.line,a==this.doc.sel.primIndex&&xa(this));else{var c=s.from(),f=s.to(),S=Math.max(o,c.line);o=Math.min(this.lastLine(),f.line-(f.ch?0:1))+1;for(var w=S;w<o;++w)Vi(this,w,n);var D=this.doc.sel.ranges;c.ch==0&&i.length==D.length&&D[a].from().ch>0&&R(this.doc,a,new jn(c,D[a].to()),lt)}}}),getTokenAt:function(n,i){return Yr(this,n,i)},getLineTokens:function(n,i){return Yr(this,W(n),i,!0)},getTokenTypeAt:function(n){n=Ve(this.doc,n);var i=Tn(this,m(this.doc,n.line)),o=0,a=(i.length-1)/2,s=n.ch,c;if(s==0)c=i[2];else for(;;){var f=o+a>>1;if((f?i[f*2-1]:0)>=s)a=f;else if(i[f*2+1]<s)o=f+1;else{c=i[f*2+2];break}}var S=c?c.indexOf("overlay "):-1;return S<0?c:S==0?null:c.slice(0,S-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],s=this.getModeAt(n);if(typeof s[i]=="string")a[s[i]]&&o.push(a[s[i]]);else if(s[i])for(var c=0;c<s[i].length;c++){var f=a[s[i][c]];f&&o.push(f)}else s.helperType&&a[s.helperType]?o.push(a[s.helperType]):a[s.name]&&o.push(a[s.name]);for(var S=0;S<a._global.length;S++){var w=a._global[S];w.pred(s,this)&&ve(o,w.val)==-1&&o.push(w.val)}return o},getStateAfter:function(n,i){var o=this.doc;return n=ir(o,n==null?o.first+o.size-1:n),Mn(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=Ve(this.doc,n):o=n?a.from():a.to(),ki(this,o,i||"page")},charCoords:function(n,i){return al(this,Ve(this.doc,n),i||"page")},coordsChar:function(n,i){return n=Nl(this,n,i||"page"),sl(this,n.left,n.top)},lineAtHeight:function(n,i){return n=Nl(this,{top:n,left:0},i||"page").top,ae(this.doc,n+this.display.viewOffset)},heightAtLine:function(n,i,o){var a=!1,s;if(typeof n=="number"){var c=this.doc.first+this.doc.size-1;n<this.doc.first?n=this.doc.first:n>c&&(n=c,a=!0),s=m(this.doc,n)}else s=n;return za(this,s,{top:0,left:0},i||"page",o||a).top+(a?this.doc.height-io(s):0)},defaultTextHeight:function(){return ba(this.display)},defaultCharWidth:function(){return Sa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(n,i,o,a,s){var c=this.display;n=ki(this,Ve(this.doc,n));var f=n.bottom,S=n.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),c.sizer.appendChild(i),a=="over")f=n.top;else if(a=="above"||a=="near"){var w=Math.max(c.wrapper.clientHeight,this.doc.height),D=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);(a=="above"||n.bottom+i.offsetHeight>w)&&n.top>i.offsetHeight?f=n.top-i.offsetHeight:n.bottom+i.offsetHeight<=w&&(f=n.bottom),S+i.offsetWidth>D&&(S=D-i.offsetWidth)}i.style.top=f+"px",i.style.left=i.style.right="",s=="right"?(S=c.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(s=="left"?S=0:s=="middle"&&(S=(c.sizer.clientWidth-i.offsetWidth)/2),i.style.left=S+"px"),o&&Ws(this,{left:S,top:f,right:S+i.offsetWidth,bottom:f+i.offsetHeight})},triggerOnKeyDown:yi(et),triggerOnKeyPress:yi(Gn),triggerOnKeyUp:xt,triggerOnMouseDown:yi(hi),execCommand:function(n){if(Ei.hasOwnProperty(n))return Ei[n].call(null,this)},triggerElectric:yi(function(n){Ar(this,n)}),findPosH:function(n,i,o,a){var s=1;i<0&&(s=-1,i=-i);for(var c=Ve(this.doc,n),f=0;f<i&&(c=go(this.doc,c,s,o,a),!c.hitSide);++f);return c},moveH:yi(function(n,i){var o=this;this.extendSelectionsBy(function(a){return o.display.shift||o.doc.extend||a.empty()?go(o.doc,a.head,n,i,o.options.rtlMoveVisually):n<0?a.from():a.to()},dt)}),deleteH:yi(function(n,i){var o=this.doc.sel,a=this.doc;o.somethingSelected()?a.replaceSelection("",null,"+delete"):ai(this,function(s){var c=go(a,s.head,n,i,!1);return n<0?{from:c,to:s.head}:{from:s.head,to:c}})}),findPosV:function(n,i,o,a){var s=1,c=a;i<0&&(s=-1,i=-i);for(var f=Ve(this.doc,n),S=0;S<i;++S){var w=ki(this,f,"div");if(c==null?c=w.left:w.left=c,f=Ni(this,w,s,o),f.hitSide)break}return f},moveV:yi(function(n,i){var o=this,a=this.doc,s=[],c=!this.display.shift&&!a.extend&&a.sel.somethingSelected();if(a.extendSelectionsBy(function(S){if(c)return n<0?S.from():S.to();var w=ki(o,S.head,"div");S.goalColumn!=null&&(w.left=S.goalColumn),s.push(w.left);var D=Ni(o,w,n,i);return i=="page"&&S==a.sel.primary()&&Bl(o,al(o,D,"div").top-w.top),D},dt),s.length)for(var f=0;f<a.sel.ranges.length;f++)a.sel.ranges[f].goalColumn=s[f]}),findWordAt:function(n){var i=this.doc,o=m(i,n.line).text,a=n.ch,s=n.ch;if(o){var c=this.getHelper(n,"wordChars");(n.sticky=="before"||s==o.length)&&a?--a:++s;for(var f=o.charAt(a),S=Et(f,c)?function(w){return Et(w,c)}:/\s/.test(f)?function(w){return/\s/.test(w)}:function(w){return!/\s/.test(w)&&!Et(w)};a>0&&S(o.charAt(a-1));)--a;for(;s<o.length&&S(o.charAt(s));)++s}return new jn(W(n.line,a),W(n.line,s))},toggleOverwrite:function(n){n!=null&&n==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?wt(this.display.cursorDiv,"CodeMirror-overwrite"):I(this.display.cursorDiv,"CodeMirror-overwrite"),Dn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Tt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:yi(function(n,i){Ba(this,n,i)}),getScrollInfo:function(){var n=this.display.scroller;return{left:n.scrollLeft,top:n.scrollTop,height:n.scrollHeight-xo(this)-this.display.barHeight,width:n.scrollWidth-xo(this)-this.display.barWidth,clientHeight:nl(this),clientWidth:ta(this)}},scrollIntoView:yi(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:W(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?Hs(this,n):hs(this,n.from,n.to,n.margin)}),setSize:yi(function(n,i){var o=this,a=function(c){return typeof c=="number"||/^\d+$/.test(String(c))?c+"px":c};n!=null&&(this.display.wrapper.style.width=a(n)),i!=null&&(this.display.wrapper.style.height=a(i)),this.options.lineWrapping&&Dl(this);var s=this.display.viewFrom;this.doc.iter(s,this.display.viewTo,function(c){if(c.widgets){for(var f=0;f<c.widgets.length;f++)if(c.widgets[f].noHScroll){Zo(o,s,"widget");break}}++s}),this.curOp.forceUpdate=!0,Dn(this,"refresh",this)}),operation:function(n){return Di(this,n)},startOperation:function(){return ua(this)},endOperation:function(){return Po(this)},refresh:yi(function(){var n=this.display.cachedTextHeight;wi(this),this.curOp.forceUpdate=!0,Bi(this),Ba(this,this.doc.scrollLeft,this.doc.scrollTop),Kl(this.display),(n==null||Math.abs(n-ba(this.display))>.5||this.options.lineWrapping)&&fl(this),Dn(this,"refresh",this)}),swapDoc:yi(function(n){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),Rs(this,n),Bi(this),this.display.input.reset(),Ba(this,n.scrollLeft,n.scrollTop),this.curOp.forceScroll=!0,lr(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}},ur(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 go(e,t,r,n,i){var o=t,a=r,s=m(e,t.line),c=i&&e.direction=="rtl"?-r:r;function f(){var Xe=t.line+c;return Xe<e.first||Xe>=e.first+e.size?!1:(t=new W(Xe,t.ch,t.sticky),s=m(e,Xe))}function S(Xe){var Fe;if(n=="codepoint"){var rt=s.text.charCodeAt(t.ch+(n>0?0:-1));isNaN(rt)?Fe=null:Fe=new W(t.line,Math.max(0,Math.min(s.text.length,t.ch+r*(rt>=55296&&rt<56320?2:1))),-r)}else i?Fe=zr(e.cm,s,t,r):Fe=bi(s,t,r);if(Fe==null)if(!Xe&&f())t=Sr(i,e.cm,s,t.line,c);else return!1;else t=Fe;return!0}if(n=="char"||n=="codepoint")S();else if(n=="column")S(!0);else if(n=="word"||n=="group")for(var w=null,D=n=="group",L=e.cm&&e.cm.getHelper(t,"wordChars"),G=!0;!(r<0&&!S(!G));G=!1){var ie=s.text.charAt(t.ch)||`
|
|
|
`,ge=Et(ie,L)?"w":D&&ie==`
|
|
|
`?"n":!D||/\s/.test(ie)?null:"p";if(D&&!G&&!ge&&(ge="s"),w&&w!=ge){r<0&&(r=1,S(),t.sticky="after");break}if(ge&&(w=ge),r>0&&!S(!G))break}var Ae=Te(e,t,o,a,!0);return Vt(o,Ae)&&(Ae.hitSide=!0),Ae}function Ni(e,t,r,n){var i=e.doc,o=t.left,a;if(n=="page"){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*ba(e.display),3);a=(r>0?t.bottom:t.top)+r*c}else n=="line"&&(a=r>0?t.bottom+3:t.top-3);for(var f;f=sl(e,o,a),!!f.outside;){if(r<0?a<=0:a>=i.height){f.hitSide=!0;break}a+=r*5}return f}var Rn=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Rn.prototype.init=function(e){var t=this,r=this,n=r.cm,i=r.div=e.lineDiv;gr(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize);function o(s){for(var c=s.target;c;c=c.parentNode){if(c==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(c.className))break}return!1}ke(i,"paste",function(s){!o(s)||$n(n,s)||en(s,n)||M<=11&&setTimeout(qr(n,function(){return t.updateFromDOM()}),20)}),ke(i,"compositionstart",function(s){t.composing={data:s.data,done:!1}}),ke(i,"compositionupdate",function(s){t.composing||(t.composing={data:s.data,done:!1})}),ke(i,"compositionend",function(s){t.composing&&(s.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ke(i,"touchstart",function(){return r.forceCompositionEnd()}),ke(i,"input",function(){t.composing||t.readFromDOMSoon()});function a(s){if(!(!o(s)||$n(n,s))){if(n.somethingSelected())Gi({lineWise:!1,text:n.getSelections()}),s.type=="cut"&&n.replaceSelection("",null,"cut");else if(n.options.lineWiseCopyCut){var c=ni(n);Gi({lineWise:!0,text:c.text}),s.type=="cut"&&n.operation(function(){n.setSelections(c.ranges,0,lt),n.replaceSelection("",null,"cut")})}else return;if(s.clipboardData){s.clipboardData.clearData();var f=ti.text.join(`
|
|
|
`);if(s.clipboardData.setData("Text",f),s.clipboardData.getData("Text")==f){s.preventDefault();return}}var S=si(),w=S.firstChild;n.display.lineSpace.insertBefore(S,n.display.lineSpace.firstChild),w.value=ti.text.join(`
|
|
|
`);var D=document.activeElement;Xt(w),setTimeout(function(){n.display.lineSpace.removeChild(S),D.focus(),D==i&&r.showPrimarySelection()},50)}}ke(i,"copy",a),ke(i,"cut",a)},Rn.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Rn.prototype.prepareSelection=function(){var e=vl(this.cm,!1);return e.focus=document.activeElement==this.div,e},Rn.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Rn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Rn.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=Ri(t,e.anchorNode,e.anchorOffset),a=Ri(t,e.focusNode,e.focusOffset);if(!(o&&!o.bad&&a&&!a.bad&&Ce(Ln(o,a),n)==0&&Ce(Jt(o,a),i)==0)){var s=t.display.view,c=n.line>=t.display.viewFrom&&_i(t,n)||{node:s[0].measure.map[2],offset:0},f=i.line<t.display.viewTo&&_i(t,i);if(!f){var S=s[s.length-1].measure,w=S.maps?S.maps[S.maps.length-1]:S.map;f={node:w[w.length-1],offset:w[w.length-2]-w[w.length-3]}}if(!c||!f){e.removeAllRanges();return}var D=e.rangeCount&&e.getRangeAt(0),L;try{L=re(c.node,c.offset,f.offset,f.node)}catch(G){}L&&(!T&&t.state.focused?(e.collapse(c.node,c.offset),L.collapsed||(e.removeAllRanges(),e.addRange(L))):(e.removeAllRanges(),e.addRange(L)),D&&e.anchorNode==null?e.addRange(D):T&&this.startGracePeriod()),this.rememberSelection()}},Rn.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)},Rn.prototype.showMultipleSelections=function(e){X(this.cm.display.cursorDiv,e.cursors),X(this.cm.display.selectionDiv,e.selection)},Rn.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Rn.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return oe(this.div,t)},Rn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Rn.prototype.blur=function(){this.div.blur()},Rn.prototype.getField=function(){return this.div},Rn.prototype.supportsTouch=function(){return!0},Rn.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Di(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)},Rn.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Rn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),t=this.cm;if(Ie&&j&&this.cm.display.gutterSpecs.length&&da(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var r=Ri(t,e.anchorNode,e.anchorOffset),n=Ri(t,e.focusNode,e.focusOffset);r&&n&&Di(t,function(){_(t.doc,ko(r,n),lt),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Rn.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=W(n.line-1,m(e.doc,n.line-1).length)),i.ch==m(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=W(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,a,s;n.line==t.viewFrom||(o=oa(e,n.line))==0?(a=J(t.view[0].line),s=t.view[0].node):(a=J(t.view[o].line),s=t.view[o-1].node.nextSibling);var c=oa(e,i.line),f,S;if(c==t.view.length-1?(f=t.viewTo-1,S=t.lineDiv.lastChild):(f=J(t.view[c+1].line)-1,S=t.view[c+1].node.previousSibling),!s)return!1;for(var w=e.doc.splitLines(Jl(e,s,S,a,f)),D=F(e.doc,W(a,0),W(f,m(e.doc,f).text.length));w.length>1&&D.length>1;)if(Re(w)==Re(D))w.pop(),D.pop(),f--;else if(w[0]==D[0])w.shift(),D.shift(),a++;else break;for(var L=0,G=0,ie=w[0],ge=D[0],Ae=Math.min(ie.length,ge.length);L<Ae&&ie.charCodeAt(L)==ge.charCodeAt(L);)++L;for(var Xe=Re(w),Fe=Re(D),rt=Math.min(Xe.length-(w.length==1?L:0),Fe.length-(D.length==1?L:0));G<rt&&Xe.charCodeAt(Xe.length-G-1)==Fe.charCodeAt(Fe.length-G-1);)++G;if(w.length==1&&D.length==1&&a==n.line)for(;L&&L>n.ch&&Xe.charCodeAt(Xe.length-G-1)==Fe.charCodeAt(Fe.length-G-1);)L--,G++;w[w.length-1]=Xe.slice(0,Xe.length-G).replace(/^\u200b+/,""),w[0]=w[0].slice(L).replace(/\u200b+$/,"");var Nt=W(a,L),It=W(f,D.length?Re(D).length-G:0);if(w.length>1||w[0]||Ce(Nt,It))return it(e.doc,w,Nt,It,"+input"),!0},Rn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Rn.prototype.reset=function(){this.forceCompositionEnd()},Rn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Rn.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))},Rn.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Di(this.cm,function(){return wi(e.cm)})},Rn.prototype.setUneditable=function(e){e.contentEditable="false"},Rn.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||qr(this.cm,Kt)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Rn.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Rn.prototype.onContextMenu=function(){},Rn.prototype.resetPosition=function(){},Rn.prototype.needsContentAttribute=!0;function _i(e,t){var r=rl(e,t.line);if(!r||r.hidden)return null;var n=m(e.doc,t.line),i=Aa(r,n,t.line),o=xn(n,e.doc.direction),a="left";if(o){var s=cn(o,t.ch);a=s%2?"right":"left"}var c=Pl(i.map,t.ch,a);return c.offset=c.collapse=="right"?c.end:c.start,c}function da(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Go(e,t){return t&&(e.bad=!0),e}function Jl(e,t,r,n,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function f(L){return function(G){return G.id==L}}function S(){a&&(o+=s,c&&(o+=s),a=c=!1)}function w(L){L&&(S(),o+=L)}function D(L){if(L.nodeType==1){var G=L.getAttribute("cm-text");if(G){w(G);return}var ie=L.getAttribute("cm-marker"),ge;if(ie){var Ae=e.findMarks(W(n,0),W(i+1,0),f(+ie));Ae.length&&(ge=Ae[0].find(0))&&w(F(e.doc,ge.from,ge.to).join(s));return}if(L.getAttribute("contenteditable")=="false")return;var Xe=/^(pre|div|p|li|table|br)$/i.test(L.nodeName);if(!/^br$/i.test(L.nodeName)&&L.textContent.length==0)return;Xe&&S();for(var Fe=0;Fe<L.childNodes.length;Fe++)D(L.childNodes[Fe]);/^(pre|p)$/i.test(L.nodeName)&&(c=!0),Xe&&(a=!0)}else L.nodeType==3&&w(L.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;D(t),t!=r;)t=t.nextSibling,c=!1;return o}function Ri(e,t,r){var n;if(t==e.display.lineDiv){if(n=e.display.lineDiv.childNodes[r],!n)return Go(e.clipPos(W(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 Fo(o,t,r)}}function Fo(e,t,r){var n=e.text.firstChild,i=!1;if(!t||!oe(n,t))return Go(W(J(e.line),0),!0);if(t==n&&(i=!0,t=n.childNodes[r],r=0,!t)){var o=e.rest?Re(e.rest):e.line;return Go(W(J(o),o.text.length),i)}var a=t.nodeType==3?t:null,s=t;for(!a&&t.childNodes.length==1&&t.firstChild.nodeType==3&&(a=t.firstChild,r&&(r=a.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var c=e.measure,f=c.maps;function S(ge,Ae,Xe){for(var Fe=-1;Fe<(f?f.length:0);Fe++)for(var rt=Fe<0?c.map:f[Fe],Nt=0;Nt<rt.length;Nt+=3){var It=rt[Nt+2];if(It==ge||It==Ae){var bn=J(Fe<0?e.line:e.rest[Fe]),pr=rt[Nt]+Xe;return(Xe<0||It!=ge)&&(pr=rt[Nt+(Xe?1:0)]),W(bn,pr)}}}var w=S(a,s,r);if(w)return Go(w,i);for(var D=s.nextSibling,L=a?a.nodeValue.length-r:0;D;D=D.nextSibling){if(w=S(D,D.firstChild,0),w)return Go(W(w.line,w.ch-L),i);L+=D.textContent.length}for(var G=s.previousSibling,ie=r;G;G=G.previousSibling){if(w=S(G,G.firstChild,-1),w)return Go(W(w.line,w.ch+ie),i);ie+=G.textContent.length}}var xr=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new pe,this.hasSelection=!1,this.composing=null};xr.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),Se&&(i.style.width="0px"),ke(i,"input",function(){x&&M>=9&&t.hasSelection&&(t.hasSelection=null),r.poll()}),ke(i,"paste",function(a){$n(n,a)||en(a,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())});function o(a){if(!$n(n,a)){if(n.somethingSelected())Gi({lineWise:!1,text:n.getSelections()});else if(n.options.lineWiseCopyCut){var s=ni(n);Gi({lineWise:!0,text:s.text}),a.type=="cut"?n.setSelections(s.ranges,null,lt):(r.prevInput="",i.value=s.text.join(`
|
|
|
`),Xt(i))}else return;a.type=="cut"&&(n.state.cutIncoming=+new Date)}}ke(i,"cut",o),ke(i,"copy",o),ke(e.scroller,"paste",function(a){if(!(Lo(e,a)||$n(n,a))){if(!i.dispatchEvent){n.state.pasteIncoming=+new Date,r.focus();return}var s=new Event("paste");s.clipboardData=a.clipboardData,i.dispatchEvent(s)}}),ke(e.lineSpace,"selectstart",function(a){Lo(e,a)||cr(a)}),ke(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"})}}),ke(i,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},xr.prototype.createField=function(e){this.wrapper=si(),this.textarea=this.wrapper.firstChild},xr.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},xr.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=vl(e);if(e.options.moveInputWithCursor){var i=ki(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},xr.prototype.showSelection=function(e){var t=this.cm,r=t.display;X(r.cursorDiv,e.cursors),X(r.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},xr.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&&Xt(this.textarea),x&&M>=9&&(this.hasSelection=r)}else e||(this.prevInput=this.textarea.value="",x&&M>=9&&(this.hasSelection=null))}},xr.prototype.getField=function(){return this.textarea},xr.prototype.supportsTouch=function(){return!1},xr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ce||Tt()!=this.textarea))try{this.textarea.focus()}catch(e){}},xr.prototype.blur=function(){this.textarea.blur()},xr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},xr.prototype.receivedFocus=function(){this.slowPoll()},xr.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},xr.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)},xr.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||te(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(x&&M>=9&&this.hasSelection===i||P&&/[\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,s=Math.min(n.length,i.length);a<s&&n.charCodeAt(a)==i.charCodeAt(a);)++a;return Di(t,function(){Kt(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},xr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},xr.prototype.onKeyPress=function(){x&&M>=9&&(this.hasSelection=null),this.fastPoll()},xr.prototype.onContextMenu=function(e){var t=this,r=t.cm,n=r.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Ho(r,e),a=n.scroller.scrollTop;if(!o||v)return;var s=r.options.resetSelectionOnContextMenu;s&&r.doc.sel.contains(o)==-1&&qr(r,_)(r.doc,ko(o),lt);var c=i.style.cssText,f=t.wrapper.style.cssText,S=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(e.clientY-S.top-5)+"px; left: "+(e.clientX-S.left-5)+`px;
|
|
|
z-index: 1000; background: `+(x?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var w;y&&(w=window.scrollY),n.input.focus(),y&&window.scrollTo(null,w),n.input.reset(),r.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=L,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll);function D(){if(i.selectionStart!=null){var ie=r.somethingSelected(),ge="\u200B"+(ie?i.value:"");i.value="\u21DA",i.value=ge,t.prevInput=ie?"":"\u200B",i.selectionStart=1,i.selectionEnd=ge.length,n.selForContextMenu=r.doc.sel}}function L(){if(t.contextMenuPending==L&&(t.contextMenuPending=!1,t.wrapper.style.cssText=f,i.style.cssText=c,x&&M<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=a),i.selectionStart!=null)){(!x||x&&M<9)&&D();var ie=0,ge=function(){n.selForContextMenu==r.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="\u200B"?qr(r,He)(r):ie++<10?n.detectingSelectAll=setTimeout(ge,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(ge,200)}}if(x&&M>=9&&D(),b){Li(e);var G=function(){er(window,"mouseup",G),setTimeout(L,20)};ke(window,"mouseup",G)}else setTimeout(L,50)},xr.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},xr.prototype.setUneditable=function(){},xr.prototype.needsContentAttribute=!1;function va(e,t){if(t=t?ye(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=Tt();t.autofocus=r==e||e.getAttribute("autofocus")!=null&&r==document.body}function n(){e.value=s.getValue()}var i;if(e.form&&(ke(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(c){}}t.finishInit=function(c){c.save=n,c.getTextArea=function(){return e},c.toTextArea=function(){c.toTextArea=isNaN,n(),e.parentNode.removeChild(c.getWrapperElement()),e.style.display="",e.form&&(er(e.form,"submit",n),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var s=Zn(function(c){return e.parentNode.insertBefore(c,e.nextSibling)},t);return s}function _o(e){e.off=er,e.on=ke,e.wheelEventPixels=ru,e.Doc=qe,e.splitLines=N,e.countColumn=Ue,e.findColumn=Wn,e.isWordChar=Ct,e.Pass=kt,e.signal=Dn,e.Line=bo,e.changeEnd=wo,e.scrollbarModel=pl,e.Pos=W,e.cmpPos=Ce,e.modes=Pe,e.mimeModes=De,e.resolveMode=Yt,e.getMode=Wt,e.modeExtensions=ot,e.extendMode=$t,e.copyState=mt,e.startState=Ot,e.innerMode=Qt,e.commands=Ei,e.keyMap=br,e.keyName=Rr,e.isModifierKey=hr,e.lookupKey=nr,e.normalizeKeyMap=In,e.StringStream=Qe,e.SharedTextMarker=Vn,e.TextMarker=Pn,e.LineWidget=Le,e.e_preventDefault=cr,e.e_stopPropagation=Zr,e.e_stop=Li,e.addClass=wt,e.contains=oe,e.rmClass=I,e.keyNames=vn}Mo(Zn),Ii(Zn);var Va="iter insert remove copy getEditor constructor".split(" ");for(var $o in qe.prototype)qe.prototype.hasOwnProperty($o)&&ve(Va,$o)<0&&(Zn.prototype[$o]=function(e){return function(){return e.apply(this.doc,arguments)}}(qe.prototype[$o]));return ur(qe),Zn.inputStyles={textarea:xr,contenteditable:Rn},Zn.defineMode=function(e){!Zn.defaults.mode&&e!="null"&&(Zn.defaults.mode=e),pt.apply(this,arguments)},Zn.defineMIME=Bt,Zn.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Zn.defineMIME("text/plain","null"),Zn.defineExtension=function(e,t){Zn.prototype[e]=t},Zn.defineDocExtension=function(e,t){qe.prototype[e]=t},Zn.fromTextArea=va,_o(Zn),Zn.version="5.58.2",Zn})},67656:function(Sn,me,g){"use strict";g.r(me),g.d(me,{BaseInput:function(){return v},default:function(){return nt}});var T=g(87462),Q=g(1413),O=g(4942),q=g(71002),x=g(94184),M=g.n(x),y=g(67294),de=g(87887),j=function(ne){var b,h,I=ne.inputElement,A=ne.prefixCls,X=ne.prefix,$=ne.suffix,ze=ne.addonBefore,re=ne.addonAfter,oe=ne.className,Tt=ne.style,wt=ne.disabled,on=ne.readOnly,Xt=ne.focused,On=ne.triggerFocus,ye=ne.allowClear,Ue=ne.value,pe=ne.handleReset,ve=ne.hidden,at=ne.classes,kt=ne.classNames,lt=ne.dataAttrs,ut=ne.styles,dt=ne.components,Wn=(dt==null?void 0:dt.affixWrapper)||"span",ar=(dt==null?void 0:dt.groupWrapper)||"span",Oe=(dt==null?void 0:dt.wrapper)||"span",Re=(dt==null?void 0:dt.groupAddon)||"span",je=(0,y.useRef)(null),Ne=function(gn){var cn;(cn=je.current)!==null&&cn!==void 0&&cn.contains(gn.target)&&(On==null||On())},St=function(){var gn;if(!ye)return null;var cn=!wt&&!on&&Ue,wr="".concat(A,"-clear-icon"),xn=(0,q.Z)(ye)==="object"&&ye!==null&&ye!==void 0&&ye.clearIcon?ye.clearIcon:"\u2716";return y.createElement("span",{onClick:pe,onMouseDown:function(ke){return ke.preventDefault()},className:M()(wr,(gn={},(0,O.Z)(gn,"".concat(wr,"-hidden"),!cn),(0,O.Z)(gn,"".concat(wr,"-has-suffix"),!!$),gn)),role:"button",tabIndex:-1},xn)},At=(0,y.cloneElement)(I,{value:Ue,hidden:ve,className:M()((b=I.props)===null||b===void 0?void 0:b.className,!(0,de.X3)(ne)&&!(0,de.He)(ne)&&oe)||null,style:(0,Q.Z)((0,Q.Z)({},(h=I.props)===null||h===void 0?void 0:h.style),!(0,de.X3)(ne)&&!(0,de.He)(ne)?Tt:{})});if((0,de.X3)(ne)){var Dt,Ct="".concat(A,"-affix-wrapper"),Et=M()(Ct,(Dt={},(0,O.Z)(Dt,"".concat(Ct,"-disabled"),wt),(0,O.Z)(Dt,"".concat(Ct,"-focused"),Xt),(0,O.Z)(Dt,"".concat(Ct,"-readonly"),on),(0,O.Z)(Dt,"".concat(Ct,"-input-with-clear-btn"),$&&ye&&Ue),Dt),!(0,de.He)(ne)&&oe,at==null?void 0:at.affixWrapper,kt==null?void 0:kt.affixWrapper),zt=($||ye)&&y.createElement("span",{className:M()("".concat(A,"-suffix"),kt==null?void 0:kt.suffix),style:ut==null?void 0:ut.suffix},St(),$);At=y.createElement(Wn,(0,T.Z)({className:Et,style:(0,Q.Z)((0,Q.Z)({},(0,de.He)(ne)?void 0:Tt),ut==null?void 0:ut.affixWrapper),hidden:!(0,de.He)(ne)&&ve,onClick:Ne},lt==null?void 0:lt.affixWrapper,{ref:je}),X&&y.createElement("span",{className:M()("".concat(A,"-prefix"),kt==null?void 0:kt.prefix),style:ut==null?void 0:ut.prefix},X),(0,y.cloneElement)(I,{value:Ue,hidden:null}),zt)}if((0,de.He)(ne)){var tn="".concat(A,"-group"),jt="".concat(tn,"-addon"),Rt=M()("".concat(A,"-wrapper"),tn,at==null?void 0:at.wrapper),ct=M()("".concat(A,"-group-wrapper"),oe,at==null?void 0:at.group);return y.createElement(ar,{className:ct,style:Tt,hidden:ve},y.createElement(Oe,{className:Rt},ze&&y.createElement(Re,{className:jt},ze),(0,y.cloneElement)(At,{hidden:null}),re&&y.createElement(Re,{className:jt},re)))}return At},v=j,Me=g(74902),se=g(97685),be=g(45987),Se=g(21770),Ie=g(98423),ce=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],P=(0,y.forwardRef)(function(V,ne){var b=V.autoComplete,h=V.onChange,I=V.onFocus,A=V.onBlur,X=V.onPressEnter,$=V.onKeyDown,ze=V.prefixCls,re=ze===void 0?"rc-input":ze,oe=V.disabled,Tt=V.htmlSize,wt=V.className,on=V.maxLength,Xt=V.suffix,On=V.showCount,ye=V.type,Ue=ye===void 0?"text":ye,pe=V.classes,ve=V.classNames,at=V.styles,kt=(0,be.Z)(V,ce),lt=(0,Se.Z)(V.defaultValue,{value:V.value}),ut=(0,se.Z)(lt,2),dt=ut[0],Wn=ut[1],ar=(0,y.useState)(!1),Oe=(0,se.Z)(ar,2),Re=Oe[0],je=Oe[1],Ne=(0,y.useRef)(null),St=function(ct){Ne.current&&(0,de.nH)(Ne.current,ct)};(0,y.useImperativeHandle)(ne,function(){return{focus:St,blur:function(){var ct;(ct=Ne.current)===null||ct===void 0||ct.blur()},setSelectionRange:function(ct,Cn,gn){var cn;(cn=Ne.current)===null||cn===void 0||cn.setSelectionRange(ct,Cn,gn)},select:function(){var ct;(ct=Ne.current)===null||ct===void 0||ct.select()},input:Ne.current}}),(0,y.useEffect)(function(){je(function(Rt){return Rt&&oe?!1:Rt})},[oe]);var At=function(ct){V.value===void 0&&Wn(ct.target.value),Ne.current&&(0,de.rJ)(Ne.current,ct,h)},Dt=function(ct){X&&ct.key==="Enter"&&X(ct),$==null||$(ct)},Ct=function(ct){je(!0),I==null||I(ct)},Et=function(ct){je(!1),A==null||A(ct)},zt=function(ct){Wn(""),St(),Ne.current&&(0,de.rJ)(Ne.current,ct,h)},tn=function(){var ct=(0,Ie.Z)(V,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return y.createElement("input",(0,T.Z)({autoComplete:b},ct,{onChange:At,onFocus:Ct,onBlur:Et,onKeyDown:Dt,className:M()(re,(0,O.Z)({},"".concat(re,"-disabled"),oe),ve==null?void 0:ve.input),style:at==null?void 0:at.input,ref:Ne,size:Tt,type:Ue}))},jt=function(){var ct=Number(on)>0;if(Xt||On){var Cn=(0,de.D7)(dt),gn=(0,Me.Z)(Cn).length,cn=(0,q.Z)(On)==="object"?On.formatter({value:Cn,count:gn,maxLength:on}):"".concat(gn).concat(ct?" / ".concat(on):"");return y.createElement(y.Fragment,null,!!On&&y.createElement("span",{className:M()("".concat(re,"-show-count-suffix"),(0,O.Z)({},"".concat(re,"-show-count-has-suffix"),!!Xt),ve==null?void 0:ve.count),style:(0,Q.Z)({},at==null?void 0:at.count)},cn),Xt)}return null};return y.createElement(v,(0,T.Z)({},kt,{prefixCls:re,className:wt,inputElement:tn(),handleReset:zt,value:(0,de.D7)(dt),focused:Re,triggerFocus:St,suffix:jt(),disabled:oe,classes:pe,classNames:ve,styles:at}))}),xe=P,nt=xe},87887:function(Sn,me,g){"use strict";g.d(me,{D7:function(){return x},He:function(){return T},X3:function(){return Q},nH:function(){return q},rJ:function(){return O}});function T(M){return!!(M.addonBefore||M.addonAfter)}function Q(M){return!!(M.prefix||M.suffix||M.allowClear)}function O(M,y,de,j){if(de){var v=y;if(y.type==="click"){var Me=M.cloneNode(!0);v=Object.create(y,{target:{value:Me},currentTarget:{value:Me}}),Me.value="",de(v);return}if(j!==void 0){v=Object.create(y,{target:{value:M},currentTarget:{value:M}}),M.value=j,de(v);return}de(v)}}function q(M,y){if(M){M.focus(y);var de=y||{},j=de.cursor;if(j){var v=M.value.length;switch(j){case"start":M.setSelectionRange(0,0);break;case"end":M.setSelectionRange(v,v);break;default:M.setSelectionRange(0,v)}}}}function x(M){return typeof M=="undefined"||M===null?"":String(M)}},66680:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return Q}});var T=g(67294);function Q(O){var q=T.useRef();q.current=O;var x=T.useCallback(function(){for(var M,y=arguments.length,de=new Array(y),j=0;j<y;j++)de[j]=arguments[j];return(M=q.current)===null||M===void 0?void 0:M.call.apply(M,[q].concat(de))},[]);return x}},21770:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return M}});var T=g(97685),Q=g(66680),O=g(8410),q=g(63896);function x(y){return y!==void 0}function M(y,de){var j=de||{},v=j.defaultValue,Me=j.value,se=j.onChange,be=j.postState,Se=(0,q.Z)(function(){return x(Me)?Me:x(v)?typeof v=="function"?v():v:typeof y=="function"?y():y}),Ie=(0,T.Z)(Se,2),ce=Ie[0],P=Ie[1],xe=Me!==void 0?Me:ce,nt=be?be(xe):xe,V=(0,Q.Z)(se),ne=(0,q.Z)([xe]),b=(0,T.Z)(ne,2),h=b[0],I=b[1];(0,O.o)(function(){var X=h[0];ce!==X&&V(ce,X)},[h]),(0,O.o)(function(){x(Me)||P(Me)},[Me]);var A=(0,Q.Z)(function(X,$){P(X,$),I([xe],$)});return[nt,A]}},98423:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return Q}});var T=g(1413);function Q(O,q){var x=(0,T.Z)({},O);return Array.isArray(q)&&q.forEach(function(M){delete x[M]}),x}},73299:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return co}});var T=g(87462),Q=g(1413),O=g(71002),q=g(97685),x=g(4942),M=g(45987),y=g(67294),de=g(73935),j=g(94184),v=g.n(j),Me=g(48555),se=y.forwardRef(function(N,te){var Y=N.height,ee=N.offsetY,Ye=N.offsetX,Pe=N.children,De=N.prefixCls,pt=N.onInnerResize,Bt=N.innerProps,Yt=N.rtl,Wt=N.extra,ot={},$t={display:"flex",flexDirection:"column"};if(ee!==void 0){var mt;ot={height:Y,position:"relative",overflow:"hidden"},$t=(0,Q.Z)((0,Q.Z)({},$t),{},(mt={transform:"translateY(".concat(ee,"px)")},(0,x.Z)(mt,Yt?"marginRight":"marginLeft",-Ye),(0,x.Z)(mt,"position","absolute"),(0,x.Z)(mt,"left",0),(0,x.Z)(mt,"right",0),(0,x.Z)(mt,"top",0),mt))}return y.createElement("div",{style:ot},y.createElement(Me.Z,{onResize:function(Ot){var Qe=Ot.offsetHeight;Qe&&pt&&pt()}},y.createElement("div",(0,T.Z)({style:$t,className:v()((0,x.Z)({},"".concat(De,"-holder-inner"),De)),ref:te},Bt),Pe,Wt)))});se.displayName="Filler";var be=se,Se=function(te){return+setTimeout(te,16)},Ie=function(te){return clearTimeout(te)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Se=function(te){return window.requestAnimationFrame(te)},Ie=function(te){return window.cancelAnimationFrame(te)});var ce=0,P=new Map;function xe(N){P.delete(N)}var nt=function(te){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ce+=1;var ee=ce;function Ye(Pe){if(Pe===0)xe(ee),te();else{var De=Se(function(){Ye(Pe-1)});P.set(ee,De)}}return Ye(Y),ee};nt.cancel=function(N){var te=P.get(N);return xe(te),Ie(te)};var V=nt;function ne(N,te){var Y="touches"in N?N.touches[0]:N;return Y[te?"pageX":"pageY"]}var b=y.forwardRef(function(N,te){var Y,ee=N.prefixCls,Ye=N.rtl,Pe=N.scrollOffset,De=N.scrollRange,pt=N.onStartMove,Bt=N.onStopMove,Yt=N.onScroll,Wt=N.horizontal,ot=N.spinSize,$t=N.containerSize,mt=N.style,Qt=N.thumbStyle,Ot=y.useState(!1),Qe=(0,q.Z)(Ot,2),m=Qe[0],F=Qe[1],K=y.useState(null),H=(0,q.Z)(K,2),J=H[0],ae=H[1],we=y.useState(null),Lt=(0,q.Z)(we,2),W=Lt[0],Ce=Lt[1],Vt=!Ye,sn=y.useRef(),Jt=y.useRef(),Ln=y.useState(!1),ir=(0,q.Z)(Ln,2),Ve=ir[0],Bn=ir[1],En=y.useRef(),Pt=function(){clearTimeout(En.current),Bn(!0),En.current=setTimeout(function(){Bn(!1)},3e3)},pn=De-$t||0,kn=$t-ot||0,Tn=pn>0,Mn=y.useMemo(function(){if(Pe===0||pn===0)return 0;var or=Pe/pn;return or*kn},[Pe,pn,kn]),Or=function(Un){Un.stopPropagation(),Un.preventDefault()},fr=y.useRef({top:Mn,dragging:m,pageY:J,startTop:W});fr.current={top:Mn,dragging:m,pageY:J,startTop:W};var Xr=function(Un){F(!0),ae(ne(Un,Wt)),Ce(fr.current.top),pt(),Un.stopPropagation(),Un.preventDefault()};y.useEffect(function(){var or=function(Dr){Dr.preventDefault()},Un=sn.current,mr=Jt.current;return Un.addEventListener("touchstart",or),mr.addEventListener("touchstart",Xr),function(){Un.removeEventListener("touchstart",or),mr.removeEventListener("touchstart",Xr)}},[]);var Pr=y.useRef();Pr.current=pn;var Yr=y.useRef();Yr.current=kn,y.useEffect(function(){if(m){var or,Un=function(Dr){var mi=fr.current,Ci=mi.dragging,qi=mi.pageY,Br=mi.startTop;if(V.cancel(or),Ci){var Kn=ne(Dr,Wt)-qi,dr=Br;!Vt&&Wt?dr-=Kn:dr+=Kn;var yr=Pr.current,kr=Yr.current,ci=kr?dr/kr:0,tr=Math.ceil(ci*yr);tr=Math.max(tr,0),tr=Math.min(tr,yr),or=V(function(){Yt(tr,Wt)})}},mr=function(){F(!1),Bt()};return window.addEventListener("mousemove",Un),window.addEventListener("touchmove",Un),window.addEventListener("mouseup",mr),window.addEventListener("touchend",mr),function(){window.removeEventListener("mousemove",Un),window.removeEventListener("touchmove",Un),window.removeEventListener("mouseup",mr),window.removeEventListener("touchend",mr),V.cancel(or)}}},[m]),y.useEffect(function(){Pt()},[Pe]),y.useImperativeHandle(te,function(){return{delayHidden:Pt}});var Lr="".concat(ee,"-scrollbar"),Qn={position:"absolute",visibility:Ve&&Tn?null:"hidden"},zn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Wt?(Qn.height=8,Qn.left=0,Qn.right=0,Qn.bottom=0,zn.height="100%",zn.width=ot,Vt?zn.left=Mn:zn.right=Mn):(Qn.width=8,Qn.top=0,Qn.bottom=0,Vt?Qn.right=0:Qn.left=0,zn.width="100%",zn.height=ot,zn.top=Mn),y.createElement("div",{ref:sn,className:v()(Lr,(Y={},(0,x.Z)(Y,"".concat(Lr,"-horizontal"),Wt),(0,x.Z)(Y,"".concat(Lr,"-vertical"),!Wt),(0,x.Z)(Y,"".concat(Lr,"-visible"),Ve),Y)),style:(0,Q.Z)((0,Q.Z)({},Qn),mt),onMouseDown:Or,onMouseMove:Pt},y.createElement("div",{ref:Jt,className:v()("".concat(Lr,"-thumb"),(0,x.Z)({},"".concat(Lr,"-thumb-moving"),m)),style:(0,Q.Z)((0,Q.Z)({},zn),Qt),onMouseDown:Xr}))}),h=b;function I(N){var te=N.children,Y=N.setRef,ee=y.useCallback(function(Ye){Y(Ye)},[]);return y.cloneElement(te,{ref:ee})}function A(N,te,Y,ee,Ye,Pe,De){var pt=De.getKey;return N.slice(te,Y+1).map(function(Bt,Yt){var Wt=te+Yt,ot=Pe(Bt,Wt,{style:{width:ee}}),$t=pt(Bt);return y.createElement(I,{key:$t,setRef:function(Qt){return Ye(Bt,Qt)}},ot)})}function X(N){return N instanceof HTMLElement||N instanceof SVGElement}function $(N){return X(N)?N:N instanceof y.Component?de.findDOMNode(N):null}var ze=g(15671),re=g(43144),oe=function(){function N(){(0,ze.Z)(this,N),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,re.Z)(N,[{key:"set",value:function(Y,ee){this.maps[Y]=ee,this.id+=1}},{key:"get",value:function(Y){return this.maps[Y]}}]),N}(),Tt=oe;function wt(N,te,Y){var ee=y.useState(0),Ye=(0,q.Z)(ee,2),Pe=Ye[0],De=Ye[1],pt=(0,y.useRef)(new Map),Bt=(0,y.useRef)(new Tt),Yt=(0,y.useRef)();function Wt(){V.cancel(Yt.current)}function ot(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Wt();var Qt=function(){pt.current.forEach(function(Qe,m){if(Qe&&Qe.offsetParent){var F=$(Qe),K=F.offsetHeight;Bt.current.get(m)!==K&&Bt.current.set(m,F.offsetHeight)}}),De(function(Qe){return Qe+1})};mt?Qt():Yt.current=V(Qt)}function $t(mt,Qt){var Ot=N(mt),Qe=pt.current.get(Ot);Qt?(pt.current.set(Ot,Qt),ot()):pt.current.delete(Ot),!Qe!=!Qt&&(Qt?te==null||te(mt):Y==null||Y(mt))}return(0,y.useEffect)(function(){return Wt},[]),[$t,ot,Bt.current,Pe]}function on(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var Xt=on()?y.useLayoutEffect:y.useEffect,On=function(te,Y){var ee=y.useRef(!0);Xt(function(){return te(ee.current)},Y),Xt(function(){return ee.current=!1,function(){ee.current=!0}},[])},ye=function(te,Y){On(function(ee){if(!ee)return te()},Y)},Ue=On;function pe(N){var te=y.useRef();te.current=N;var Y=y.useCallback(function(){for(var ee,Ye=arguments.length,Pe=new Array(Ye),De=0;De<Ye;De++)Pe[De]=arguments[De];return(ee=te.current)===null||ee===void 0?void 0:ee.call.apply(ee,[te].concat(Pe))},[]);return Y}function ve(N){var te=React.useRef(!1),Y=React.useState(N),ee=_slicedToArray(Y,2),Ye=ee[0],Pe=ee[1];React.useEffect(function(){return te.current=!1,function(){te.current=!0}},[]);function De(pt,Bt){Bt&&te.current||Pe(pt)}return[Ye,De]}function at(N){return N!==void 0}function kt(N,te){var Y=te||{},ee=Y.defaultValue,Ye=Y.value,Pe=Y.onChange,De=Y.postState,pt=useState(function(){return at(Ye)?Ye:at(ee)?typeof ee=="function"?ee():ee:typeof N=="function"?N():N}),Bt=_slicedToArray(pt,2),Yt=Bt[0],Wt=Bt[1],ot=Ye!==void 0?Ye:Yt,$t=De?De(ot):ot,mt=useEvent(Pe),Qt=useState([ot]),Ot=_slicedToArray(Qt,2),Qe=Ot[0],m=Ot[1];useLayoutUpdateEffect(function(){var K=Qe[0];Yt!==K&&mt(Yt,K)},[Qe]),useLayoutUpdateEffect(function(){at(Ye)||Wt(Ye)},[Ye]);var F=useEvent(function(K,H){Wt(K,H),m([ot],H)});return[$t,F]}var lt=g(31461);function ut(N,te,Y){var ee=React.useRef({});return(!("value"in ee.current)||Y(ee.current.condition,te))&&(ee.current.value=N(),ee.current.condition=te),ee.current.value}function dt(N,te){typeof N=="function"?N(te):_typeof(N)==="object"&&N&&"current"in N&&(N.current=te)}function Wn(){for(var N=arguments.length,te=new Array(N),Y=0;Y<N;Y++)te[Y]=arguments[Y];var ee=te.filter(function(Ye){return Ye});return ee.length<=1?ee[0]:function(Ye){te.forEach(function(Pe){dt(Pe,Ye)})}}function ar(){for(var N=arguments.length,te=new Array(N),Y=0;Y<N;Y++)te[Y]=arguments[Y];return useMemo(function(){return Wn.apply(void 0,te)},te,function(ee,Ye){return ee.length!==Ye.length||ee.every(function(Pe,De){return Pe!==Ye[De]})})}function Oe(N){var te,Y,ee=isMemo(N)?N.type.type:N.type;return!(typeof ee=="function"&&!((te=ee.prototype)!==null&&te!==void 0&&te.render)||typeof N=="function"&&!((Y=N.prototype)!==null&&Y!==void 0&&Y.render))}function Re(N){return!isValidElement(N)||isFragment(N)?!1:Oe(N)}function je(N,te,Y,ee){if(!te.length)return Y;var Ye=_toArray(te),Pe=Ye[0],De=Ye.slice(1),pt;return!N&&typeof Pe=="number"?pt=[]:Array.isArray(N)?pt=_toConsumableArray(N):pt=_objectSpread({},N),ee&&Y===void 0&&De.length===1?delete pt[Pe][De[0]]:pt[Pe]=je(pt[Pe],De,Y,ee),pt}function Ne(N,te,Y){var ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return te.length&&ee&&Y===void 0&&!get(N,te.slice(0,-1))?N:je(N,te,Y,ee)}function St(N){return _typeof(N)==="object"&&N!==null&&Object.getPrototypeOf(N)===Object.prototype}function At(N){return Array.isArray(N)?[]:{}}var Dt=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function Ct(){for(var N=arguments.length,te=new Array(N),Y=0;Y<N;Y++)te[Y]=arguments[Y];var ee=At(te[0]);return te.forEach(function(Ye){function Pe(De,pt){var Bt=new Set(pt),Yt=get(Ye,De),Wt=Array.isArray(Yt);if(Wt||St(Yt)){if(!Bt.has(Yt)){Bt.add(Yt);var ot=get(ee,De);Wt?ee=Ne(ee,De,[]):(!ot||_typeof(ot)!=="object")&&(ee=Ne(ee,De,At(Yt))),Dt(Yt).forEach(function($t){Pe([].concat(_toConsumableArray(De),[$t]),Bt)})}}else ee=Ne(ee,De,Yt)}Pe([])}),ee}var Et={},zt=[],tn=function(te){zt.push(te)};function jt(N,te){if(0)var Y}function Rt(N,te){if(0)var Y}function ct(){Et={}}function Cn(N,te,Y){!te&&!Et[Y]&&(N(!1,Y),Et[Y]=!0)}function gn(N,te){Cn(jt,N,te)}function cn(N,te){Cn(Rt,N,te)}gn.preMessage=tn,gn.resetWarned=ct,gn.noteOnce=cn;var wr=null,xn=10;function rr(N,te,Y,ee,Ye,Pe,De,pt){var Bt=y.useRef(),Yt=y.useState(null),Wt=(0,q.Z)(Yt,2),ot=Wt[0],$t=Wt[1];return Ue(function(){if(ot&&ot.times<xn){if(!N.current){$t(function(Pt){return(0,Q.Z)({},Pt)});return}Pe();var mt=ot.targetAlign,Qt=ot.originAlign,Ot=ot.index,Qe=ot.offset,m=N.current.clientHeight,F=!1,K=mt,H=null;if(m){for(var J=mt||Qt,ae=0,we=0,Lt=0,W=Math.min(te.length-1,Ot),Ce=0;Ce<=W;Ce+=1){var Vt=Ye(te[Ce]);we=ae;var sn=Y.get(Vt);Lt=we+(sn===void 0?ee:sn),ae=Lt}for(var Jt=J==="top"?Qe:m-Qe,Ln=W;Ln>=0;Ln-=1){var ir=Ye(te[Ln]),Ve=Y.get(ir);if(Ve===void 0){F=!0;break}if(Jt-=Ve,Jt<=0)break}switch(J){case"top":H=we-Qe;break;case"bottom":H=Lt-m+Qe;break;default:{var Bn=N.current.scrollTop,En=Bn+m;we<Bn?K="top":Lt>En&&(K="bottom")}}H!==null&&De(H),H!==ot.lastTop&&(F=!0)}F&&$t(function(Pt){return(0,Q.Z)((0,Q.Z)({},Pt),{},{times:Pt.times+1,targetAlign:K,lastTop:H})})}},[ot,N.current]),function(mt){if(mt==null){pt();return}if(V.cancel(Bt.current),typeof mt=="number")De(mt);else if(mt&&(0,O.Z)(mt)==="object"){var Qt,Ot=mt.align;"index"in mt?Qt=mt.index:Qt=te.findIndex(function(F){return Ye(F)===mt.key});var Qe=mt.offset,m=Qe===void 0?0:Qe;$t({times:0,index:Qt,offset:m,originAlign:Ot})}}}function ke(N,te,Y,ee){var Ye=Y-N,Pe=te-Y,De=Math.min(Ye,Pe)*2;if(ee<=De){var pt=Math.floor(ee/2);return ee%2?Y+pt+1:Y-pt}return Ye>Pe?Y-(ee-Pe):Y+(ee-Ye)}function _r(N,te,Y){var ee=N.length,Ye=te.length,Pe,De;if(ee===0&&Ye===0)return null;ee<Ye?(Pe=N,De=te):(Pe=te,De=N);var pt={__EMPTY_ITEM__:!0};function Bt(Qt){return Qt!==void 0?Y(Qt):pt}for(var Yt=null,Wt=Math.abs(ee-Ye)!==1,ot=0;ot<De.length;ot+=1){var $t=Bt(Pe[ot]),mt=Bt(De[ot]);if($t!==mt){Yt=ot,Wt=Wt||$t!==Bt(De[ot+1]);break}}return Yt===null?null:{index:Yt,multiple:Wt}}function er(N,te,Y){var ee=y.useState(N),Ye=(0,q.Z)(ee,2),Pe=Ye[0],De=Ye[1],pt=y.useState(null),Bt=(0,q.Z)(pt,2),Yt=Bt[0],Wt=Bt[1];return y.useEffect(function(){var ot=_r(Pe||[],N||[],te);(ot==null?void 0:ot.index)!==void 0&&(Y==null||Y(ot.index),Wt(N[ot.index])),De(N)},[N]),[Yt]}var Dn=(typeof navigator=="undefined"?"undefined":(0,O.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),$n=Dn,Nn=function(N,te){var Y=(0,y.useRef)(!1),ee=(0,y.useRef)(null);function Ye(){clearTimeout(ee.current),Y.current=!0,ee.current=setTimeout(function(){Y.current=!1},50)}var Pe=(0,y.useRef)({top:N,bottom:te});return Pe.current.top=N,Pe.current.bottom=te,function(De){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Bt=De<0&&Pe.current.top||De>0&&Pe.current.bottom;return pt&&Bt?(clearTimeout(ee.current),Y.current=!1):(!Bt||Y.current)&&Ye(),!Y.current&&Bt}};function wn(N,te,Y,ee,Ye){var Pe=(0,y.useRef)(0),De=(0,y.useRef)(null),pt=(0,y.useRef)(null),Bt=(0,y.useRef)(!1),Yt=Nn(te,Y);function Wt(Qe,m){V.cancel(De.current),Pe.current+=m,pt.current=m,!Yt(m)&&($n||Qe.preventDefault(),De.current=V(function(){var F=Bt.current?10:1;Ye(Pe.current*F),Pe.current=0}))}function ot(Qe,m){Ye(m,!0),$n||Qe.preventDefault()}var $t=(0,y.useRef)(null),mt=(0,y.useRef)(null);function Qt(Qe){if(N){V.cancel(mt.current),mt.current=V(function(){$t.current=null},2);var m=Qe.deltaX,F=Qe.deltaY,K=Qe.shiftKey,H=m,J=F;($t.current==="sx"||!$t.current&&K&&F&&!m)&&(H=F,J=0,$t.current="sx");var ae=Math.abs(H),we=Math.abs(J);$t.current===null&&($t.current=ee&&ae>we?"x":"y"),$t.current==="y"?Wt(Qe,J):ot(Qe,H)}}function Ot(Qe){N&&(Bt.current=Qe.detail===pt.current)}return[Qt,Ot]}var ur=14/15;function cr(N,te,Y){var ee=(0,y.useRef)(!1),Ye=(0,y.useRef)(0),Pe=(0,y.useRef)(null),De=(0,y.useRef)(null),pt,Bt=function($t){if(ee.current){var mt=Math.ceil($t.touches[0].pageY),Qt=Ye.current-mt;Ye.current=mt,Y(Qt)&&$t.preventDefault(),clearInterval(De.current),De.current=setInterval(function(){Qt*=ur,(!Y(Qt,!0)||Math.abs(Qt)<=.1)&&clearInterval(De.current)},16)}},Yt=function(){ee.current=!1,pt()},Wt=function($t){pt(),$t.touches.length===1&&!ee.current&&(ee.current=!0,Ye.current=Math.ceil($t.touches[0].pageY),Pe.current=$t.target,Pe.current.addEventListener("touchmove",Bt),Pe.current.addEventListener("touchend",Yt))};pt=function(){Pe.current&&(Pe.current.removeEventListener("touchmove",Bt),Pe.current.removeEventListener("touchend",Yt))},Ue(function(){return N&&te.current.addEventListener("touchstart",Wt),function(){var ot;(ot=te.current)===null||ot===void 0||ot.removeEventListener("touchstart",Wt),pt(),clearInterval(De.current)}},[N])}var Zr=20;function oi(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Y=N/te*100;return isNaN(Y)&&(Y=0),Y=Math.max(Y,Zr),Y=Math.min(Y,N/2),Math.floor(Y)}function Li(N,te,Y,ee){var Ye=y.useMemo(function(){return[new Map,[]]},[N,Y.id,ee]),Pe=(0,q.Z)(Ye,2),De=Pe[0],pt=Pe[1],Bt=function(Wt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wt,$t=De.get(Wt),mt=De.get(ot);if($t===void 0||mt===void 0)for(var Qt=N.length,Ot=pt.length;Ot<Qt;Ot+=1){var Qe,m=N[Ot],F=te(m);De.set(F,Ot);var K=(Qe=Y.get(F))!==null&&Qe!==void 0?Qe:ee;if(pt[Ot]=(pt[Ot-1]||0)+K,F===Wt&&($t=Ot),F===ot&&(mt=Ot),$t!==void 0&&mt!==void 0)break}return{top:pt[$t-1]||0,bottom:pt[mt]}};return Bt}var uo=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Ji=[],po={overflowY:"auto",overflowAnchor:"none"};function Ti(N,te){var Y=N.prefixCls,ee=Y===void 0?"rc-virtual-list":Y,Ye=N.className,Pe=N.height,De=N.itemHeight,pt=N.fullHeight,Bt=pt===void 0?!0:pt,Yt=N.style,Wt=N.data,ot=N.children,$t=N.itemKey,mt=N.virtual,Qt=N.direction,Ot=N.scrollWidth,Qe=N.component,m=Qe===void 0?"div":Qe,F=N.onScroll,K=N.onVirtualScroll,H=N.onVisibleChange,J=N.innerProps,ae=N.extraRender,we=N.styles,Lt=(0,M.Z)(N,uo),W=!!(mt!==!1&&Pe&&De),Ce=W&&Wt&&(De*Wt.length>Pe||!!Ot),Vt=Qt==="rtl",sn=v()(ee,(0,x.Z)({},"".concat(ee,"-rtl"),Vt),Ye),Jt=Wt||Ji,Ln=(0,y.useRef)(),ir=(0,y.useRef)(),Ve=(0,y.useState)(0),Bn=(0,q.Z)(Ve,2),En=Bn[0],Pt=Bn[1],pn=(0,y.useState)(0),kn=(0,q.Z)(pn,2),Tn=kn[0],Mn=kn[1],Or=(0,y.useState)(!1),fr=(0,q.Z)(Or,2),Xr=fr[0],Pr=fr[1],Yr=function(){Pr(!0)},Lr=function(){Pr(!1)},Qn=y.useCallback(function(Gt){return typeof $t=="function"?$t(Gt):Gt==null?void 0:Gt[$t]},[$t]),zn={getKey:Qn};function or(Gt){Pt(function(qt){var An;typeof Gt=="function"?An=Gt(qt):An=Gt;var Tr=yo(An);return Ln.current.scrollTop=Tr,Tr})}var Un=(0,y.useRef)({start:0,end:Jt.length}),mr=(0,y.useRef)(),Qr=er(Jt,Qn),Dr=(0,q.Z)(Qr,1),mi=Dr[0];mr.current=mi;var Ci=wt(Qn,null,null),qi=(0,q.Z)(Ci,4),Br=qi[0],Kn=qi[1],dr=qi[2],yr=qi[3],kr=y.useMemo(function(){if(!W)return{scrollHeight:void 0,start:0,end:Jt.length-1,offset:void 0};if(!Ce){var Gt;return{scrollHeight:((Gt=ir.current)===null||Gt===void 0?void 0:Gt.offsetHeight)||0,start:0,end:Jt.length-1,offset:void 0}}for(var qt=0,An,Tr,lr,El=Jt.length,zo=0;zo<El;zo+=1){var qo=Jt[zo],qa=Qn(qo),ea=dr.get(qa),Na=qt+(ea===void 0?De:ea);Na>=En&&An===void 0&&(An=zo,Tr=qt),Na>En+Pe&&lr===void 0&&(lr=zo),qt=Na}return An===void 0&&(An=0,Tr=0,lr=Math.ceil(Pe/De)),lr===void 0&&(lr=Jt.length-1),lr=Math.min(lr+1,Jt.length-1),{scrollHeight:qt,start:An,end:lr,offset:Tr}},[Ce,W,En,Jt,yr,Pe]),ci=kr.scrollHeight,tr=kr.start,zi=kr.end,Wi=kr.offset;Un.current.start=tr,Un.current.end=zi;var vr=y.useState({width:0,height:Pe}),eo=(0,q.Z)(vr,2),Hi=eo[0],to=eo[1],Ro=function(qt){to({width:qt.width||qt.offsetWidth,height:qt.height||qt.offsetHeight})},Yo=(0,y.useRef)(),mo=(0,y.useRef)(),Jr=y.useMemo(function(){return oi(Hi.width,Ot)},[Hi.width,Ot]),Oo=y.useMemo(function(){return oi(Hi.height,ci)},[Hi.height,ci]),no=ci-Pe,xi=(0,y.useRef)(no);xi.current=no;function yo(Gt){var qt=Gt;return Number.isNaN(xi.current)||(qt=Math.min(qt,xi.current)),qt=Math.max(qt,0),qt}var ro=En<=0,Qo=En>=no,io=Nn(ro,Qo),Zi=function(){return{x:Vt?-Tn:Tn,y:En}},Pi=(0,y.useRef)(Zi()),bo=pe(function(){if(K){var Gt=Zi();(Pi.current.x!==Gt.x||Pi.current.y!==Gt.y)&&(K(Gt),Pi.current=Gt)}});function Xa(Gt,qt){var An=Gt;qt?((0,de.flushSync)(function(){Mn(An)}),bo()):or(An)}function ql(Gt){var qt=Gt.currentTarget.scrollTop;qt!==En&&or(qt),F==null||F(Gt),bo()}var Jo=function(qt){var An=qt,Tr=Ot-Hi.width;return An=Math.max(An,0),An=Math.min(An,Tr),An},es=pe(function(Gt,qt){qt?((0,de.flushSync)(function(){Mn(function(An){var Tr=An+(Vt?-Gt:Gt);return Jo(Tr)})}),bo()):or(function(An){var Tr=An+Gt;return Tr})}),Ya=wn(W,ro,Qo,!!Ot,es),Ta=(0,q.Z)(Ya,2),ga=Ta[0],Pa=Ta[1];cr(W,Ln,function(Gt,qt){return io(Gt,qt)?!1:(ga({preventDefault:function(){},deltaY:Gt}),!0)}),Ue(function(){function Gt(An){W&&An.preventDefault()}var qt=Ln.current;return qt.addEventListener("wheel",ga),qt.addEventListener("DOMMouseScroll",Pa),qt.addEventListener("MozMousePixelScroll",Gt),function(){qt.removeEventListener("wheel",ga),qt.removeEventListener("DOMMouseScroll",Pa),qt.removeEventListener("MozMousePixelScroll",Gt)}},[W]),Ue(function(){Ot&&Mn(function(Gt){return Jo(Gt)})},[Hi.width,Ot]);var Qa=function(){var qt,An;(qt=Yo.current)===null||qt===void 0||qt.delayHidden(),(An=mo.current)===null||An===void 0||An.delayHidden()},Da=rr(Ln,Jt,dr,De,Qn,function(){return Kn(!0)},or,Qa);y.useImperativeHandle(te,function(){return{getScrollInfo:Zi,scrollTo:function(qt){function An(Tr){return Tr&&(0,O.Z)(Tr)==="object"&&("left"in Tr||"top"in Tr)}An(qt)?(qt.left!==void 0&&Mn(Jo(qt.left)),Da(qt.top)):Da(qt)}}}),Ue(function(){if(H){var Gt=Jt.slice(tr,zi+1);H(Gt,Jt)}},[tr,zi,Jt]);var wl=Li(Jt,Qn,dr,De),Ja=ae==null?void 0:ae({start:tr,end:zi,virtual:Ce,offsetX:Tn,offsetY:Wi,rtl:Vt,getSize:wl}),pa=A(Jt,tr,zi,Ot,Br,ot,zn),So=null;Pe&&(So=(0,Q.Z)((0,x.Z)({},Bt?"height":"maxHeight",Pe),po),W&&(So.overflowY="hidden",Ot&&(So.overflowX="hidden"),Xr&&(So.pointerEvents="none")));var Co={};return Vt&&(Co.dir="rtl"),y.createElement("div",(0,T.Z)({style:(0,Q.Z)((0,Q.Z)({},Yt),{},{position:"relative"}),className:sn},Co,Lt),y.createElement(Me.Z,{onResize:Ro},y.createElement(m,{className:"".concat(ee,"-holder"),style:So,ref:Ln,onScroll:ql,onMouseEnter:Qa},y.createElement(be,{prefixCls:ee,height:ci,offsetX:Tn,offsetY:Wi,scrollWidth:Ot,onInnerResize:Kn,ref:ir,innerProps:J,rtl:Vt,extra:Ja},pa))),Ce&&ci>Pe&&y.createElement(h,{ref:Yo,prefixCls:ee,scrollOffset:En,scrollRange:ci,rtl:Vt,onScroll:Xa,onStartMove:Yr,onStopMove:Lr,spinSize:Oo,containerSize:Hi.height,style:we==null?void 0:we.verticalScrollBar,thumbStyle:we==null?void 0:we.verticalScrollBarThumb}),Ce&&Ot&&y.createElement(h,{ref:mo,prefixCls:ee,scrollOffset:Tn,scrollRange:Ot,rtl:Vt,onScroll:Xa,onStartMove:Yr,onStopMove:Lr,spinSize:Jr,containerSize:Hi.width,horizontal:!0,style:we==null?void 0:we.horizontalScrollBar,thumbStyle:we==null?void 0:we.horizontalScrollBarThumb}))}var Fi=y.forwardRef(Ti);Fi.displayName="List";var $i=Fi,co=$i},66392:function(Sn,me){"use strict";var g;var T=Symbol.for("react.element"),Q=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),M=Symbol.for("react.provider"),y=Symbol.for("react.context"),de=Symbol.for("react.server_context"),j=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),se=Symbol.for("react.memo"),be=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),Ie;Ie=Symbol.for("react.module.reference");function ce(P){if(typeof P=="object"&&P!==null){var xe=P.$$typeof;switch(xe){case T:switch(P=P.type,P){case O:case x:case q:case v:case Me:return P;default:switch(P=P&&P.$$typeof,P){case de:case y:case j:case be:case se:case M:return P;default:return xe}}case Q:return xe}}}g=y,g=M,g=T,g=j,g=O,g=be,g=se,g=Q,g=x,g=q,g=v,g=Me,g=function(){return!1},g=function(){return!1},g=function(P){return ce(P)===y},g=function(P){return ce(P)===M},g=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===T},g=function(P){return ce(P)===j},g=function(P){return ce(P)===O},g=function(P){return ce(P)===be},g=function(P){return ce(P)===se},g=function(P){return ce(P)===Q},g=function(P){return ce(P)===x},g=function(P){return ce(P)===q},g=function(P){return ce(P)===v},g=function(P){return ce(P)===Me},g=function(P){return typeof P=="string"||typeof P=="function"||P===O||P===x||P===q||P===v||P===Me||P===Se||typeof P=="object"&&P!==null&&(P.$$typeof===be||P.$$typeof===se||P.$$typeof===M||P.$$typeof===y||P.$$typeof===j||P.$$typeof===Ie||P.getModuleId!==void 0)},g=ce},31461:function(Sn,me,g){"use strict";g(66392)},17423:function(Sn,me,g){"use strict";g.d(me,{Z:function(){return de}});const T=j=>typeof j=="object"&&j!=null&&j.nodeType===1,Q=(j,v)=>(!v||j!=="hidden")&&j!=="visible"&&j!=="clip",O=(j,v)=>{if(j.clientHeight<j.scrollHeight||j.clientWidth<j.scrollWidth){const Me=getComputedStyle(j,null);return Q(Me.overflowY,v)||Q(Me.overflowX,v)||(se=>{const be=(Se=>{if(!Se.ownerDocument||!Se.ownerDocument.defaultView)return null;try{return Se.ownerDocument.defaultView.frameElement}catch(Ie){return null}})(se);return!!be&&(be.clientHeight<se.scrollHeight||be.clientWidth<se.scrollWidth)})(j)}return!1},q=(j,v,Me,se,be,Se,Ie,ce)=>Se<j&&Ie>v||Se>j&&Ie<v?0:Se<=j&&ce<=Me||Ie>=v&&ce>=Me?Se-j-se:Ie>v&&ce<Me||Se<j&&ce>Me?Ie-v+be:0,x=j=>{const v=j.parentElement;return v==null?j.getRootNode().host||null:v},M=(j,v)=>{var Me,se,be,Se;if(typeof document=="undefined")return[];const{scrollMode:Ie,block:ce,inline:P,boundary:xe,skipOverflowHiddenElements:nt}=v,V=typeof xe=="function"?xe:kt=>kt!==xe;if(!T(j))throw new TypeError("Invalid target");const ne=document.scrollingElement||document.documentElement,b=[];let h=j;for(;T(h)&&V(h);){if(h=x(h),h===ne){b.push(h);break}h!=null&&h===document.body&&O(h)&&!O(document.documentElement)||h!=null&&O(h,nt)&&b.push(h)}const I=(se=(Me=window.visualViewport)==null?void 0:Me.width)!=null?se:innerWidth,A=(Se=(be=window.visualViewport)==null?void 0:be.height)!=null?Se:innerHeight,{scrollX:X,scrollY:$}=window,{height:ze,width:re,top:oe,right:Tt,bottom:wt,left:on}=j.getBoundingClientRect(),{top:Xt,right:On,bottom:ye,left:Ue}=(kt=>{const lt=window.getComputedStyle(kt);return{top:parseFloat(lt.scrollMarginTop)||0,right:parseFloat(lt.scrollMarginRight)||0,bottom:parseFloat(lt.scrollMarginBottom)||0,left:parseFloat(lt.scrollMarginLeft)||0}})(j);let pe=ce==="start"||ce==="nearest"?oe-Xt:ce==="end"?wt+ye:oe+ze/2-Xt+ye,ve=P==="center"?on+re/2-Ue+On:P==="end"?Tt+On:on-Ue;const at=[];for(let kt=0;kt<b.length;kt++){const lt=b[kt],{height:ut,width:dt,top:Wn,right:ar,bottom:Oe,left:Re}=lt.getBoundingClientRect();if(Ie==="if-needed"&&oe>=0&&on>=0&&wt<=A&&Tt<=I&&oe>=Wn&&wt<=Oe&&on>=Re&&Tt<=ar)return at;const je=getComputedStyle(lt),Ne=parseInt(je.borderLeftWidth,10),St=parseInt(je.borderTopWidth,10),At=parseInt(je.borderRightWidth,10),Dt=parseInt(je.borderBottomWidth,10);let Ct=0,Et=0;const zt="offsetWidth"in lt?lt.offsetWidth-lt.clientWidth-Ne-At:0,tn="offsetHeight"in lt?lt.offsetHeight-lt.clientHeight-St-Dt:0,jt="offsetWidth"in lt?lt.offsetWidth===0?0:dt/lt.offsetWidth:0,Rt="offsetHeight"in lt?lt.offsetHeight===0?0:ut/lt.offsetHeight:0;if(ne===lt)Ct=ce==="start"?pe:ce==="end"?pe-A:ce==="nearest"?q($,$+A,A,St,Dt,$+pe,$+pe+ze,ze):pe-A/2,Et=P==="start"?ve:P==="center"?ve-I/2:P==="end"?ve-I:q(X,X+I,I,Ne,At,X+ve,X+ve+re,re),Ct=Math.max(0,Ct+$),Et=Math.max(0,Et+X);else{Ct=ce==="start"?pe-Wn-St:ce==="end"?pe-Oe+Dt+tn:ce==="nearest"?q(Wn,Oe,ut,St,Dt+tn,pe,pe+ze,ze):pe-(Wn+ut/2)+tn/2,Et=P==="start"?ve-Re-Ne:P==="center"?ve-(Re+dt/2)+zt/2:P==="end"?ve-ar+At+zt:q(Re,ar,dt,Ne,At+zt,ve,ve+re,re);const{scrollLeft:ct,scrollTop:Cn}=lt;Ct=Rt===0?0:Math.max(0,Math.min(Cn+Ct/Rt,lt.scrollHeight-ut/Rt+tn)),Et=jt===0?0:Math.max(0,Math.min(ct+Et/jt,lt.scrollWidth-dt/jt+zt)),pe+=Cn-Ct,ve+=ct-Et}at.push({el:lt,top:Ct,left:Et})}return at},y=j=>j===!1?{block:"end",inline:"nearest"}:(v=>v===Object(v)&&Object.keys(v).length!==0)(j)?j:{block:"start",inline:"nearest"};function de(j,v){if(!j.isConnected||!(be=>{let Se=be;for(;Se&&Se.parentNode;){if(Se.parentNode===document)return!0;Se=Se.parentNode instanceof ShadowRoot?Se.parentNode.host:Se.parentNode}return!1})(j))return;const Me=(be=>{const Se=window.getComputedStyle(be);return{top:parseFloat(Se.scrollMarginTop)||0,right:parseFloat(Se.scrollMarginRight)||0,bottom:parseFloat(Se.scrollMarginBottom)||0,left:parseFloat(Se.scrollMarginLeft)||0}})(j);if((be=>typeof be=="object"&&typeof be.behavior=="function")(v))return v.behavior(M(j,v));const se=typeof v=="boolean"||v==null?void 0:v.behavior;for(const{el:be,top:Se,left:Ie}of M(j,y(v))){const ce=Se-Me.top+Me.bottom,P=Ie-Me.left+Me.right;be.scroll({top:ce,left:P,behavior:se})}}}}]);
|