You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
94 lines
565 KiB
94 lines
565 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5775],{65966:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return be}});var T=l(20439),A=l(50298),j=l(62646),X=l(43403),V=l(92310),h=l.n(V),H=l(29301),$=l(76846),e=l(96452),s=l(6089),c=l(80402),t=l(34280),r=l(49658),i=l(59301),o=l(14809),v=l(77900),b=l(8654);function S(E){var B=E.prefixCls,O=E.align,q=E.arrow,ie=E.arrowPos,R=q||{},g=R.className,P=R.content,z=ie.x,D=z===void 0?0:z,U=ie.y,Z=U===void 0?0:U,te=i.useRef();if(!O||!O.points)return null;var J={position:"absolute"};if(O.autoArrow!==!1){var ce=O.points[0],Ee=O.points[1],xe=ce[0],Fe=ce[1],Ie=Ee[0],de=Ee[1];xe===Ie||!["t","b"].includes(xe)?J.top=Z:xe==="t"?J.top=0:J.bottom=0,Fe===de||!["l","r"].includes(Fe)?J.left=D:Fe==="l"?J.left=0:J.right=0}return i.createElement("div",{ref:te,className:h()("".concat(B,"-arrow"),g),style:J},P)}function p(E){var B=E.prefixCls,O=E.open,q=E.zIndex,ie=E.mask,R=E.motion;return ie?i.createElement(v.default,(0,o.Z)({},R,{motionAppear:!0,visible:O,removeOnLeave:!0}),function(g){var P=g.className;return i.createElement("div",{style:{zIndex:q},className:h()("".concat(B,"-mask"),P)})}):null}var m=i.memo(function(E){var B=E.children;return B},function(E,B){return B.cache}),f=m,u=i.forwardRef(function(E,B){var O=E.popup,q=E.className,ie=E.prefixCls,R=E.style,g=E.target,P=E.onVisibleChanged,z=E.open,D=E.keepDom,U=E.fresh,Z=E.onClick,te=E.mask,J=E.arrow,ce=E.arrowPos,Ee=E.align,xe=E.motion,Fe=E.maskMotion,Ie=E.forceRender,de=E.getPopupContainer,Le=E.autoDestroy,Oe=E.portal,De=E.zIndex,at=E.onMouseEnter,Et=E.onMouseLeave,et=E.onPointerEnter,Tt=E.onPointerDownCapture,tn=E.ready,pt=E.offsetX,st=E.offsetY,bt=E.offsetR,Qt=E.offsetB,kt=E.onAlign,Lt=E.onPrepare,Mt=E.stretch,sn=E.targetWidth,qe=E.targetHeight,ut=typeof O=="function"?O():O,yt=z||D,kn=(de==null?void 0:de.length)>0,vn=i.useState(!de||!kn),Fn=(0,A.Z)(vn,2),zn=Fn[0],bn=Fn[1];if((0,t.Z)(function(){!zn&&kn&&g&&bn(!0)},[zn,kn,g]),!zn)return null;var zt="auto",Nn={left:"-1000vw",top:"-1000vh",right:zt,bottom:zt};if(tn||!z){var En,On=Ee.points,gn=Ee.dynamicInset||((En=Ee._experimental)===null||En===void 0?void 0:En.dynamicInset),Cn=gn&&On[0][1]==="r",Zn=gn&&On[0][0]==="b";Cn?(Nn.right=bt,Nn.left=zt):(Nn.left=pt,Nn.right=zt),Zn?(Nn.bottom=Qt,Nn.top=zt):(Nn.top=st,Nn.bottom=zt)}var cn={};return Mt&&(Mt.includes("height")&&qe?cn.height=qe:Mt.includes("minHeight")&&qe&&(cn.minHeight=qe),Mt.includes("width")&&sn?cn.width=sn:Mt.includes("minWidth")&&sn&&(cn.minWidth=sn)),z||(cn.pointerEvents="none"),i.createElement(Oe,{open:Ie||yt,getContainer:de&&function(){return de(g)},autoDestroy:Le},i.createElement(p,{prefixCls:ie,open:z,zIndex:De,mask:te,motion:Fe}),i.createElement(H.Z,{onResize:kt,disabled:!z},function(nn){return i.createElement(v.default,(0,o.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ie,leavedClassName:"".concat(ie,"-hidden")},xe,{onAppearPrepare:Lt,onEnterPrepare:Lt,visible:z,onVisibleChanged:function(Wn){var ne;xe==null||(ne=xe.onVisibleChanged)===null||ne===void 0||ne.call(xe,Wn),P(Wn)}}),function(Ln,Wn){var ne=Ln.className,Q=Ln.style,Ue=h()(ie,ne,q);return i.createElement("div",{ref:(0,b.sQ)(nn,B,Wn),className:Ue,style:(0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)({"--arrow-x":"".concat(ce.x||0,"px"),"--arrow-y":"".concat(ce.y||0,"px")},Nn),cn),Q),{},{boxSizing:"border-box",zIndex:De},R),onMouseEnter:at,onMouseLeave:Et,onPointerEnter:et,onClick:Z,onPointerDownCapture:Tt},J&&i.createElement(S,{prefixCls:ie,arrow:J,arrowPos:ce,align:Ee}),i.createElement(f,{cache:!z&&!U},ut))})}))}),k=u,I=i.forwardRef(function(E,B){var O=E.children,q=E.getTriggerDOMNode,ie=(0,b.Yr)(O),R=i.useCallback(function(P){(0,b.mH)(B,q?q(P):P)},[q]),g=(0,b.x1)(R,(0,b.C4)(O));return ie?i.cloneElement(O,{ref:g}):O}),F=I,K=i.createContext(null),G=K;function W(E){return E?Array.isArray(E)?E:[E]:[]}function Pe(E,B,O,q){return i.useMemo(function(){var ie=W(O!=null?O:B),R=W(q!=null?q:B),g=new Set(ie),P=new Set(R);return E&&(g.has("hover")&&(g.delete("hover"),g.add("click")),P.has("hover")&&(P.delete("hover"),P.add("click"))),[g,P]},[E,B,O,q])}var w=l(29194);function _(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],O=arguments.length>2?arguments[2]:void 0;return O?E[0]===B[0]:E[0]===B[0]&&E[1]===B[1]}function x(E,B,O,q){for(var ie=O.points,R=Object.keys(E),g=0;g<R.length;g+=1){var P,z=R[g];if(_((P=E[z])===null||P===void 0?void 0:P.points,ie,q))return"".concat(B,"-placement-").concat(z)}return""}function N(E,B,O,q){return B||(O?{motionName:"".concat(E,"-").concat(O)}:q?{motionName:q}:null)}function C(E){return E.ownerDocument.defaultView}function y(E){for(var B=[],O=E==null?void 0:E.parentElement,q=["hidden","scroll","clip","auto"];O;){var ie=C(O).getComputedStyle(O),R=ie.overflowX,g=ie.overflowY,P=ie.overflow;[R,g,P].some(function(z){return q.includes(z)})&&B.push(O),O=O.parentElement}return B}function n(E){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(E)?B:E}function a(E){return n(parseFloat(E),0)}function d(E,B){var O=(0,T.Z)({},E);return(B||[]).forEach(function(q){if(!(q instanceof HTMLBodyElement||q instanceof HTMLHtmlElement)){var ie=C(q).getComputedStyle(q),R=ie.overflow,g=ie.overflowClipMargin,P=ie.borderTopWidth,z=ie.borderBottomWidth,D=ie.borderLeftWidth,U=ie.borderRightWidth,Z=q.getBoundingClientRect(),te=q.offsetHeight,J=q.clientHeight,ce=q.offsetWidth,Ee=q.clientWidth,xe=a(P),Fe=a(z),Ie=a(D),de=a(U),Le=n(Math.round(Z.width/ce*1e3)/1e3),Oe=n(Math.round(Z.height/te*1e3)/1e3),De=(ce-Ee-Ie-de)*Le,at=(te-J-xe-Fe)*Oe,Et=xe*Oe,et=Fe*Oe,Tt=Ie*Le,tn=de*Le,pt=0,st=0;if(R==="clip"){var bt=a(g);pt=bt*Le,st=bt*Oe}var Qt=Z.x+Tt-pt,kt=Z.y+Et-st,Lt=Qt+Z.width+2*pt-Tt-tn-De,Mt=kt+Z.height+2*st-Et-et-at;O.left=Math.max(O.left,Qt),O.top=Math.max(O.top,kt),O.right=Math.min(O.right,Lt),O.bottom=Math.min(O.bottom,Mt)}}),O}function M(E){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,O="".concat(B),q=O.match(/^(.*)\%$/);return q?E*(parseFloat(q[1])/100):parseFloat(O)}function ae(E,B){var O=B||[],q=(0,A.Z)(O,2),ie=q[0],R=q[1];return[M(E.width,ie),M(E.height,R)]}function he(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[E[0],E[1]]}function ge(E,B){var O=B[0],q=B[1],ie,R;return O==="t"?R=E.y:O==="b"?R=E.y+E.height:R=E.y+E.height/2,q==="l"?ie=E.x:q==="r"?ie=E.x+E.width:ie=E.x+E.width/2,{x:ie,y:R}}function Ae(E,B){var O={t:"b",b:"t",l:"r",r:"l"};return E.map(function(q,ie){return ie===B?O[q]||"c":q}).join("")}function We(E,B,O,q,ie,R,g){var P=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:ie[q]||{}}),z=(0,A.Z)(P,2),D=z[0],U=z[1],Z=i.useRef(0),te=i.useMemo(function(){return B?y(B):[]},[B]),J=i.useRef({}),ce=function(){J.current={}};E||ce();var Ee=(0,s.Z)(function(){if(B&&O&&E){let xn=function(Sn,St){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:we,en=yt.x+Sn,an=yt.y+St,Dn=en+Zn,Kn=an+Cn,Nt=Math.max(en,qt.left),Wt=Math.max(an,qt.top),Rn=Math.min(Dn,qt.right),Ht=Math.min(Kn,qt.bottom);return Math.max(0,(Rn-Nt)*(Ht-Wt))},wn=function(){Se=yt.y+Pt,Be=Se+Cn,ke=yt.x+xt,Re=ke+Zn};var Ie,de,Le,Oe,De=B,at=De.ownerDocument,Et=C(De),et=Et.getComputedStyle(De),Tt=et.position,tn=De.style.left,pt=De.style.top,st=De.style.right,bt=De.style.bottom,Qt=De.style.overflow,kt=(0,T.Z)((0,T.Z)({},ie[q]),R),Lt=at.createElement("div");(Ie=De.parentElement)===null||Ie===void 0||Ie.appendChild(Lt),Lt.style.left="".concat(De.offsetLeft,"px"),Lt.style.top="".concat(De.offsetTop,"px"),Lt.style.position=Tt,Lt.style.height="".concat(De.offsetHeight,"px"),Lt.style.width="".concat(De.offsetWidth,"px"),De.style.left="0",De.style.top="0",De.style.right="auto",De.style.bottom="auto",De.style.overflow="hidden";var Mt;if(Array.isArray(O))Mt={x:O[0],y:O[1],width:0,height:0};else{var sn,qe,ut=O.getBoundingClientRect();ut.x=(sn=ut.x)!==null&&sn!==void 0?sn:ut.left,ut.y=(qe=ut.y)!==null&&qe!==void 0?qe:ut.top,Mt={x:ut.x,y:ut.y,width:ut.width,height:ut.height}}var yt=De.getBoundingClientRect(),kn=Et.getComputedStyle(De),vn=kn.height,Fn=kn.width;yt.x=(de=yt.x)!==null&&de!==void 0?de:yt.left,yt.y=(Le=yt.y)!==null&&Le!==void 0?Le:yt.top;var zn=at.documentElement,bn=zn.clientWidth,zt=zn.clientHeight,Nn=zn.scrollWidth,En=zn.scrollHeight,On=zn.scrollTop,gn=zn.scrollLeft,Cn=yt.height,Zn=yt.width,cn=Mt.height,nn=Mt.width,Ln={left:0,top:0,right:bn,bottom:zt},Wn={left:-gn,top:-On,right:Nn-gn,bottom:En-On},ne=kt.htmlRegion,Q="visible",Ue="visibleFirst";ne!=="scroll"&&ne!==Ue&&(ne=Q);var Ze=ne===Ue,Xe=d(Wn,te),Je=d(Ln,te),we=ne===Q?Je:Xe,pe=Ze?Je:we;De.style.left="auto",De.style.top="auto",De.style.right="0",De.style.bottom="0";var ze=De.getBoundingClientRect();De.style.left=tn,De.style.top=pt,De.style.right=st,De.style.bottom=bt,De.style.overflow=Qt,(Oe=De.parentElement)===null||Oe===void 0||Oe.removeChild(Lt);var Ye=n(Math.round(Zn/parseFloat(Fn)*1e3)/1e3),it=n(Math.round(Cn/parseFloat(vn)*1e3)/1e3);if(Ye===0||it===0||(0,$.Sh)(O)&&!(0,w.Z)(O))return;var wt=kt.offset,nt=kt.targetOffset,He=ae(yt,wt),Y=(0,A.Z)(He,2),se=Y[0],fe=Y[1],ve=ae(Mt,nt),Me=(0,A.Z)(ve,2),je=Me[0],Te=Me[1];Mt.x-=je,Mt.y-=Te;var Ge=kt.points||[],Qe=(0,A.Z)(Ge,2),lt=Qe[0],Kt=Qe[1],ft=he(Kt),Ct=he(lt),Ft=ge(Mt,ft),$t=ge(yt,Ct),Ut=(0,T.Z)({},kt),xt=Ft.x-$t.x+se,Pt=Ft.y-$t.y+fe,tt=xn(xt,Pt),ct=xn(xt,Pt,Je),_t=ge(Mt,["t","l"]),Gt=ge(yt,["t","l"]),At=ge(Mt,["b","r"]),Vt=ge(yt,["b","r"]),An=kt.overflow||{},L=An.adjustX,le=An.adjustY,ee=An.shiftX,oe=An.shiftY,me=function(St){return typeof St=="boolean"?St:St>=0},Se,Be,ke,Re;wn();var re=me(le),ue=Ct[0]===ft[0];if(re&&Ct[0]==="t"&&(Be>pe.bottom||J.current.bt)){var _e=Pt;ue?_e-=Cn-cn:_e=_t.y-Vt.y-fe;var Ce=xn(xt,_e),Ne=xn(xt,_e,Je);Ce>tt||Ce===tt&&(!Ze||Ne>=ct)?(J.current.bt=!0,Pt=_e,fe=-fe,Ut.points=[Ae(Ct,0),Ae(ft,0)]):J.current.bt=!1}if(re&&Ct[0]==="b"&&(Se<pe.top||J.current.tb)){var $e=Pt;ue?$e+=Cn-cn:$e=At.y-Gt.y-fe;var ht=xn(xt,$e),rt=xn(xt,$e,Je);ht>tt||ht===tt&&(!Ze||rt>=ct)?(J.current.tb=!0,Pt=$e,fe=-fe,Ut.points=[Ae(Ct,0),Ae(ft,0)]):J.current.tb=!1}var Ot=me(L),jt=Ct[1]===ft[1];if(Ot&&Ct[1]==="l"&&(Re>pe.right||J.current.rl)){var Dt=xt;jt?Dt-=Zn-nn:Dt=_t.x-Vt.x-se;var Xt=xn(Dt,Pt),mt=xn(Dt,Pt,Je);Xt>tt||Xt===tt&&(!Ze||mt>=ct)?(J.current.rl=!0,xt=Dt,se=-se,Ut.points=[Ae(Ct,1),Ae(ft,1)]):J.current.rl=!1}if(Ot&&Ct[1]==="r"&&(ke<pe.left||J.current.lr)){var pn=xt;jt?pn+=Zn-nn:pn=At.x-Gt.x-se;var on=xn(pn,Pt),_n=xn(pn,Pt,Je);on>tt||on===tt&&(!Ze||_n>=ct)?(J.current.lr=!0,xt=pn,se=-se,Ut.points=[Ae(Ct,1),Ae(ft,1)]):J.current.lr=!1}wn();var Yt=ee===!0?0:ee;typeof Yt=="number"&&(ke<Je.left&&(xt-=ke-Je.left-se,Mt.x+nn<Je.left+Yt&&(xt+=Mt.x-Je.left+nn-Yt)),Re>Je.right&&(xt-=Re-Je.right-se,Mt.x>Je.right-Yt&&(xt+=Mt.x-Je.right+Yt)));var rn=oe===!0?0:oe;typeof rn=="number"&&(Se<Je.top&&(Pt-=Se-Je.top-fe,Mt.y+cn<Je.top+rn&&(Pt+=Mt.y-Je.top+cn-rn)),Be>Je.bottom&&(Pt-=Be-Je.bottom-fe,Mt.y>Je.bottom-rn&&(Pt+=Mt.y-Je.bottom+rn)));var mn=yt.x+xt,ln=mn+Zn,dn=yt.y+Pt,Bt=dn+Cn,gt=Mt.x,It=gt+nn,Jt=Mt.y,hn=Jt+cn,un=Math.max(mn,gt),fn=Math.min(ln,It),Un=(un+fn)/2,Xn=Un-mn,$n=Math.max(dn,Jt),sr=Math.min(Bt,hn),ar=($n+sr)/2,qn=ar-dn;g==null||g(B,Ut);var yn=ze.right-yt.x-(xt+yt.width),In=ze.bottom-yt.y-(Pt+yt.height);Ye===1&&(xt=Math.round(xt),yn=Math.round(yn)),it===1&&(Pt=Math.round(Pt),In=Math.round(In));var Gn={ready:!0,offsetX:xt/Ye,offsetY:Pt/it,offsetR:yn/Ye,offsetB:In/it,arrowX:Xn/Ye,arrowY:qn/it,scaleX:Ye,scaleY:it,align:Ut};U(Gn)}}),xe=function(){Z.current+=1;var de=Z.current;Promise.resolve().then(function(){Z.current===de&&Ee()})},Fe=function(){U(function(de){return(0,T.Z)((0,T.Z)({},de),{},{ready:!1})})};return(0,t.Z)(Fe,[q]),(0,t.Z)(function(){E||Fe()},[E]),[D.ready,D.offsetX,D.offsetY,D.offsetR,D.offsetB,D.arrowX,D.arrowY,D.scaleX,D.scaleY,D.align,xe]}var vt=l(95190);function ye(E,B,O,q,ie){(0,t.Z)(function(){if(E&&B&&O){let Z=function(){q(),ie()};var R=B,g=O,P=y(R),z=y(g),D=C(g),U=new Set([D].concat((0,vt.Z)(P),(0,vt.Z)(z)));return U.forEach(function(te){te.addEventListener("scroll",Z,{passive:!0})}),D.addEventListener("resize",Z,{passive:!0}),q(),function(){U.forEach(function(te){te.removeEventListener("scroll",Z),D.removeEventListener("resize",Z)})}}},[E,B,O])}var Ve=l(48736);function dt(E,B,O,q,ie,R,g,P){var z=i.useRef(E);z.current=E;var D=i.useRef(!1);i.useEffect(function(){if(B&&q&&(!ie||R)){var Z=function(){D.current=!1},te=function(Le){var Oe;z.current&&!g(((Oe=Le.composedPath)===null||Oe===void 0||(Oe=Oe.call(Le))===null||Oe===void 0?void 0:Oe[0])||Le.target)&&!D.current&&P(!1)},J=C(q);J.addEventListener("pointerdown",Z,!0),J.addEventListener("mousedown",te,!0),J.addEventListener("contextmenu",te,!0);var ce=(0,e.A)(O);if(ce&&(ce.addEventListener("mousedown",te,!0),ce.addEventListener("contextmenu",te,!0)),0)var Ee,xe,Fe,Ie;return function(){J.removeEventListener("pointerdown",Z,!0),J.removeEventListener("mousedown",te,!0),J.removeEventListener("contextmenu",te,!0),ce&&(ce.removeEventListener("mousedown",te,!0),ce.removeEventListener("contextmenu",te,!0))}}},[B,O,q,ie,R]);function U(){D.current=!0}return U}var Rt=["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 ot(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:X.Z,B=i.forwardRef(function(O,q){var ie=O.prefixCls,R=ie===void 0?"rc-trigger-popup":ie,g=O.children,P=O.action,z=P===void 0?"hover":P,D=O.showAction,U=O.hideAction,Z=O.popupVisible,te=O.defaultPopupVisible,J=O.onPopupVisibleChange,ce=O.afterPopupVisibleChange,Ee=O.mouseEnterDelay,xe=O.mouseLeaveDelay,Fe=xe===void 0?.1:xe,Ie=O.focusDelay,de=O.blurDelay,Le=O.mask,Oe=O.maskClosable,De=Oe===void 0?!0:Oe,at=O.getPopupContainer,Et=O.forceRender,et=O.autoDestroy,Tt=O.destroyPopupOnHide,tn=O.popup,pt=O.popupClassName,st=O.popupStyle,bt=O.popupPlacement,Qt=O.builtinPlacements,kt=Qt===void 0?{}:Qt,Lt=O.popupAlign,Mt=O.zIndex,sn=O.stretch,qe=O.getPopupClassNameFromAlign,ut=O.fresh,yt=O.alignPoint,kn=O.onPopupClick,vn=O.onPopupAlign,Fn=O.arrow,zn=O.popupMotion,bn=O.maskMotion,zt=O.popupTransitionName,Nn=O.popupAnimation,En=O.maskTransitionName,On=O.maskAnimation,gn=O.className,Cn=O.getTriggerDOMNode,Zn=(0,j.Z)(O,Rt),cn=et||Tt||!1,nn=i.useState(!1),Ln=(0,A.Z)(nn,2),Wn=Ln[0],ne=Ln[1];(0,t.Z)(function(){ne((0,r.Z)())},[]);var Q=i.useRef({}),Ue=i.useContext(G),Ze=i.useMemo(function(){return{registerSubPopup:function(Wt,Rn){Q.current[Wt]=Rn,Ue==null||Ue.registerSubPopup(Wt,Rn)}}},[Ue]),Xe=(0,c.Z)(),Je=i.useState(null),we=(0,A.Z)(Je,2),pe=we[0],ze=we[1],Ye=i.useRef(null),it=(0,s.Z)(function(Nt){Ye.current=Nt,(0,$.Sh)(Nt)&&pe!==Nt&&ze(Nt),Ue==null||Ue.registerSubPopup(Xe,Nt)}),wt=i.useState(null),nt=(0,A.Z)(wt,2),He=nt[0],Y=nt[1],se=i.useRef(null),fe=(0,s.Z)(function(Nt){(0,$.Sh)(Nt)&&He!==Nt&&(Y(Nt),se.current=Nt)}),ve=i.Children.only(g),Me=(ve==null?void 0:ve.props)||{},je={},Te=(0,s.Z)(function(Nt){var Wt,Rn,Ht=He;return(Ht==null?void 0:Ht.contains(Nt))||((Wt=(0,e.A)(Ht))===null||Wt===void 0?void 0:Wt.host)===Nt||Nt===Ht||(pe==null?void 0:pe.contains(Nt))||((Rn=(0,e.A)(pe))===null||Rn===void 0?void 0:Rn.host)===Nt||Nt===pe||Object.values(Q.current).some(function(Tn){return(Tn==null?void 0:Tn.contains(Nt))||Nt===Tn})}),Ge=N(R,zn,Nn,zt),Qe=N(R,bn,On,En),lt=i.useState(te||!1),Kt=(0,A.Z)(lt,2),ft=Kt[0],Ct=Kt[1],Ft=Z!=null?Z:ft,$t=(0,s.Z)(function(Nt){Z===void 0&&Ct(Nt)});(0,t.Z)(function(){Ct(Z||!1)},[Z]);var Ut=i.useRef(Ft);Ut.current=Ft;var xt=i.useRef([]);xt.current=[];var Pt=(0,s.Z)(function(Nt){var Wt;$t(Nt),((Wt=xt.current[xt.current.length-1])!==null&&Wt!==void 0?Wt:Ft)!==Nt&&(xt.current.push(Nt),J==null||J(Nt))}),tt=i.useRef(),ct=function(){clearTimeout(tt.current)},_t=function(Wt){var Rn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;ct(),Rn===0?Pt(Wt):tt.current=setTimeout(function(){Pt(Wt)},Rn*1e3)};i.useEffect(function(){return ct},[]);var Gt=i.useState(!1),At=(0,A.Z)(Gt,2),Vt=At[0],An=At[1];(0,t.Z)(function(Nt){(!Nt||Ft)&&An(!0)},[Ft]);var L=i.useState(null),le=(0,A.Z)(L,2),ee=le[0],oe=le[1],me=i.useState(null),Se=(0,A.Z)(me,2),Be=Se[0],ke=Se[1],Re=function(Wt){ke([Wt.clientX,Wt.clientY])},re=We(Ft,pe,yt&&Be!==null?Be:He,bt,kt,Lt,vn),ue=(0,A.Z)(re,11),_e=ue[0],Ce=ue[1],Ne=ue[2],$e=ue[3],ht=ue[4],rt=ue[5],Ot=ue[6],jt=ue[7],Dt=ue[8],Xt=ue[9],mt=ue[10],pn=Pe(Wn,z,D,U),on=(0,A.Z)(pn,2),_n=on[0],Yt=on[1],rn=_n.has("click"),mn=Yt.has("click")||Yt.has("contextMenu"),ln=(0,s.Z)(function(){Vt||mt()}),dn=function(){Ut.current&&yt&&mn&&_t(!1)};ye(Ft,He,pe,ln,dn),(0,t.Z)(function(){ln()},[Be,bt]),(0,t.Z)(function(){Ft&&!(kt!=null&&kt[bt])&&ln()},[JSON.stringify(Lt)]);var Bt=i.useMemo(function(){var Nt=x(kt,R,Xt,yt);return h()(Nt,qe==null?void 0:qe(Xt))},[Xt,qe,kt,R,yt]);i.useImperativeHandle(q,function(){return{nativeElement:se.current,popupElement:Ye.current,forceAlign:ln}});var gt=i.useState(0),It=(0,A.Z)(gt,2),Jt=It[0],hn=It[1],un=i.useState(0),fn=(0,A.Z)(un,2),Un=fn[0],Xn=fn[1],$n=function(){if(sn&&He){var Wt=He.getBoundingClientRect();hn(Wt.width),Xn(Wt.height)}},sr=function(){$n(),ln()},ar=function(Wt){An(!1),mt(),ce==null||ce(Wt)},qn=function(){return new Promise(function(Wt){$n(),oe(function(){return Wt})})};(0,t.Z)(function(){ee&&(mt(),ee(),oe(null))},[ee]);function yn(Nt,Wt,Rn,Ht){je[Nt]=function(Tn){var or;Ht==null||Ht(Tn),_t(Wt,Rn);for(var Hn=arguments.length,fr=new Array(Hn>1?Hn-1:0),ur=1;ur<Hn;ur++)fr[ur-1]=arguments[ur];(or=Me[Nt])===null||or===void 0||or.call.apply(or,[Me,Tn].concat(fr))}}(rn||mn)&&(je.onClick=function(Nt){var Wt;Ut.current&&mn?_t(!1):!Ut.current&&rn&&(Re(Nt),_t(!0));for(var Rn=arguments.length,Ht=new Array(Rn>1?Rn-1:0),Tn=1;Tn<Rn;Tn++)Ht[Tn-1]=arguments[Tn];(Wt=Me.onClick)===null||Wt===void 0||Wt.call.apply(Wt,[Me,Nt].concat(Ht))});var In=dt(Ft,mn,He,pe,Le,De,Te,_t),Gn=_n.has("hover"),xn=Yt.has("hover"),wn,Sn;Gn&&(yn("onMouseEnter",!0,Ee,function(Nt){Re(Nt)}),yn("onPointerEnter",!0,Ee,function(Nt){Re(Nt)}),wn=function(Wt){(Ft||Vt)&&pe!==null&&pe!==void 0&&pe.contains(Wt.target)&&_t(!0,Ee)},yt&&(je.onMouseMove=function(Nt){var Wt;(Wt=Me.onMouseMove)===null||Wt===void 0||Wt.call(Me,Nt)})),xn&&(yn("onMouseLeave",!1,Fe),yn("onPointerLeave",!1,Fe),Sn=function(){_t(!1,Fe)}),_n.has("focus")&&yn("onFocus",!0,Ie),Yt.has("focus")&&yn("onBlur",!1,de),_n.has("contextMenu")&&(je.onContextMenu=function(Nt){var Wt;Ut.current&&Yt.has("contextMenu")?_t(!1):(Re(Nt),_t(!0)),Nt.preventDefault();for(var Rn=arguments.length,Ht=new Array(Rn>1?Rn-1:0),Tn=1;Tn<Rn;Tn++)Ht[Tn-1]=arguments[Tn];(Wt=Me.onContextMenu)===null||Wt===void 0||Wt.call.apply(Wt,[Me,Nt].concat(Ht))}),gn&&(je.className=h()(Me.className,gn));var St=(0,T.Z)((0,T.Z)({},Me),je),qt={},en=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];en.forEach(function(Nt){Zn[Nt]&&(qt[Nt]=function(){for(var Wt,Rn=arguments.length,Ht=new Array(Rn),Tn=0;Tn<Rn;Tn++)Ht[Tn]=arguments[Tn];(Wt=St[Nt])===null||Wt===void 0||Wt.call.apply(Wt,[St].concat(Ht)),Zn[Nt].apply(Zn,Ht)})});var an=i.cloneElement(ve,(0,T.Z)((0,T.Z)({},St),qt)),Dn={x:rt,y:Ot},Kn=Fn?(0,T.Z)({},Fn!==!0?Fn:{}):null;return i.createElement(i.Fragment,null,i.createElement(H.Z,{disabled:!Ft,ref:fe,onResize:sr},i.createElement(F,{getTriggerDOMNode:Cn},an)),i.createElement(G.Provider,{value:Ze},i.createElement(k,{portal:E,ref:it,prefixCls:R,popup:tn,className:h()(pt,Bt),style:st,target:He,onMouseEnter:wn,onMouseLeave:Sn,onPointerEnter:wn,zIndex:Mt,open:Ft,keepDom:Vt,fresh:ut,onClick:kn,onPointerDownCapture:In,mask:Le,motion:Ge,maskMotion:Qe,onVisibleChanged:ar,onPrepare:qn,forceRender:Et,autoDestroy:cn,getPopupContainer:at,align:Xt,arrow:Kn,arrowPos:Dn,ready:_e,offsetX:Ce,offsetY:Ne,offsetR:$e,offsetB:ht,onAlign:ln,stretch:sn,targetWidth:Jt/jt,targetHeight:Un/Dt})))});return B}var be=ot(X.Z)},28426:function(Zt,Ke,l){"use strict";var T=l(59301),A=l(93314),j=l(99571),X=Object.defineProperty,V=Object.defineProperties,h=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,s=(i,o,v)=>o in i?X(i,o,{enumerable:!0,configurable:!0,writable:!0,value:v}):i[o]=v,c=(i,o)=>{for(var v in o||(o={}))$.call(o,v)&&s(i,v,o[v]);if(H)for(var v of H(o))e.call(o,v)&&s(i,v,o[v]);return i},t=(i,o)=>V(i,h(o));const r=({img:i,buttonProps:o={},styles:v={},customText:b,ButtonText:S,ButtonClick:p,Buttonclass:m,ButtonTwo:f,imgStyles:u,loading:k=!1,className:I=""})=>T.createElement("section",{className:`tc animated fadeIn ${I}`,style:c({color:"#999",margin:"100px auto",visibility:k?"hidden":"visible"},v)},T.createElement("img",{src:i||A,style:t(c({},u),{pointerEvents:"none",userSelect:"none"})}),T.createElement("p",{className:"mt20 font14"},b||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),S&&T.createElement(j.ZP,c({className:m,onClick:p},o),S),f&&f);Ke.Z=r},45677:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return m}});var T=l(59301),A={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},j=l(99571),X=l(70557),V=l(75975),h=l(25399),H=l(51257),$=l(81722),e=l(28426),s=l(346),c=l(44203),t=l(59301),r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,b=(f,u,k)=>u in f?r(f,u,{enumerable:!0,configurable:!0,writable:!0,value:k}):f[u]=k,S=(f,u)=>{for(var k in u||(u={}))o.call(u,k)&&b(f,k,u[k]);if(i)for(var k of i(u))v.call(u,k)&&b(f,k,u[k]);return f},p=(f,u,k)=>new Promise((I,F)=>{var K=Pe=>{try{W(k.next(Pe))}catch(w){F(w)}},G=Pe=>{try{W(k.throw(Pe))}catch(w){F(w)}},W=Pe=>Pe.done?I(Pe.value):Promise.resolve(Pe.value).then(K,G);W((k=k.apply(f,u)).next())}),m=({editOffice:f="view",data:u,issaver:k,onSaver:I,theme:F,type:K,filename:G,monacoEditor:W,className:Pe,style:w,close:_,onClose:x,hasMask:N,disabledDownload:C,onImgDimensions:y,showNodata:n,recordInfo:a})=>{const[d,M]=(0,T.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ae,he]=(0,T.useState)(""),[ge,Ae]=(0,T.useState)(),We=window.ENV==="build"?"/react/build":"",vt=location.host.startsWith("localhost")?s.Z.PROXY_SERVER:s.Z.API_SERVER,Ve=10*(1024*1024),dt=(0,T.useRef)();u!=null&&u.startsWith("/api")&&K!=="txt"&&(u=s.Z.API_SERVER+u);const Rt=O=>O.substring(O.lastIndexOf("/")+1).split(".").pop();G&&W&&(W.filename=G),(0,T.useEffect)(()=>{var O,q;const ie=(q=(O=document.cookie)==null?void 0:O.replace(/\s/g,""))==null?void 0:q.split(";");ie==null||ie.map(R=>{let g=R.split("=");g[0]==="_educoder_session"&&he(g[1])})},[]),(0,T.useEffect)(()=>{K==="office"&&(u.indexOf("bigfilescdn.")>-1||u.indexOf("bigfiles1")>-1?Ae({url:u,fileType:Rt(u),model:u.indexOf("model=edit")?"edit":"view"}):be())},[K,u]);function ot(O){return p(this,null,function*(){O.data.type==="pdfdata"&&(I(O.data.data),window.removeEventListener("message",ot,!1)),console.log("mess---:",O.data)})}const be=()=>p(void 0,null,function*(){console.log("data:",u);let O=u;u.startsWith("http")||(O=location.origin+O);let q=new URL(O).pathname.split("/").pop();const ie=yield(0,$.gJ)({attachment_id:q});ie.url=vt+ie.url,Ae(ie)}),E=()=>{if(u.startsWith("http")||u.startsWith("blob:")){B();return}(0,H.Sv)(G||"educoder",u,G)},B=()=>{a&&(0,c.fc)({id:a==null?void 0:a.id,watch_type:1,course_id:a==null?void 0:a.course_id}),(0,H.Nd)(G||"educoder",decodeURIComponent(u))};return t.createElement("div",{style:S({},w||{}),className:`${N&&A.bgBlack} ${K?A.wrp:"hide"}`},_&&t.createElement("div",{className:A.close,ref:dt},!!y&&t.createElement(h.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>dt.current},t.createElement("span",{onClick:()=>{x(),y()}},t.createElement("i",{className:"icon-yulanpizhu"}))),!C&&t.createElement(h.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>dt.current},t.createElement("span",{onClick:B},t.createElement("i",{className:"icon-quxiaozhiding"}))),k&&t.createElement(h.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>dt.current},t.createElement("span",{className:"",onClick:()=>{const O=document.getElementById("pdfiframe");window.addEventListener("message",ot,!1),setTimeout(()=>{O.contentWindow.postMessage("getData","*")},300)}},t.createElement("i",{className:"icon-baocun"}))),t.createElement(h.Z,{title:"\u5173\u95ED",getPopupContainer:()=>dt.current},t.createElement("span",{className:"",onClick:()=>{x()}},t.createElement("i",{className:"icon-guanbi1"})))),t.createElement("div",{className:`${A[Pe]} ${Pe} ${A.monaco} ${K==="txt"?"show":"hide"}`},K==="txt"&&t.createElement(t.Fragment,null,t.createElement(V.ZP,S({},W)))),K==="audio"&&t.createElement("audio",{src:`${(u==null?void 0:u.indexOf("http://"))>-1||(u==null?void 0:u.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${u}`,autoPlay:!0}),K==="video"&&t.createElement(t.Fragment,null,(u==null?void 0:u.indexOf("http"))>-1?t.createElement("video",{controls:!0,src:`${u}`,autoPlay:!0}):t.createElement("video",{controls:!0,src:`data:video/mp4;base64,${u}`,autoPlay:!0})),K==="office"&&ge&&t.createElement("iframe",{src:`${We}/office.html?key=${ge.key}&url=${btoa(ge.url)}&callbackUrl=${vt+(ge.callbackUrl||"")}&fileType=${ge.fileType}&title=${ge.title||""}&model=${f}&officeServer=${s.Z.ONLYOFFICE}&disabledDownload=${!!C}`}),K==="html"&&t.createElement("iframe",{src:u+"&disposition=inline"}),K==="pdf"&&t.createElement("iframe",{id:"pdfiframe",src:`${We}/js/pdfview/index.html?filename=${G||"educoder.pdf"}&url=${encodeURIComponent(u)}&disabledDownload=${!!C}&model=${f}`}),K==="image"&&t.createElement("img",{src:`${(u==null?void 0:u.indexOf("http://"))>-1||(u==null?void 0:u.indexOf("https://"))>-1?"":"data:image/png;base64,"}${u}`}),(K==="other"||K==="download")&&t.createElement(t.Fragment,null,n?t.createElement(e.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:t.createElement(j.ZP,{icon:t.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:E,disabled:C},"\u4E0B\u8F7D")}):t.createElement(j.ZP,{type:"primary",size:"middle",onClick:E,disabled:C},t.createElement(X.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},75975:function(Zt,Ke,l){"use strict";l.d(Ke,{SV:function(){return g},ZP:function(){return R}});var T=l(59301),A=l(76374);const j={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},X={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},V={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},h={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},H={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var $=l(53184),e=l.n($),s=Object.defineProperty,c=Object.defineProperties,t=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,v=(P,z,D)=>z in P?s(P,z,{enumerable:!0,configurable:!0,writable:!0,value:D}):P[z]=D,b=(P,z)=>{for(var D in z||(z={}))i.call(z,D)&&v(P,D,z[D]);if(r)for(var D of r(z))o.call(z,D)&&v(P,D,z[D]);return P},S=(P,z)=>c(P,t(z)),p=(P,z,D)=>new Promise((U,Z)=>{var te=Ee=>{try{ce(D.next(Ee))}catch(xe){Z(xe)}},J=Ee=>{try{ce(D.throw(Ee))}catch(xe){Z(xe)}},ce=Ee=>Ee.done?U(Ee.value):Promise.resolve(Ee.value).then(te,J);ce((D=D.apply(P,z)).next())});const m={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},f=(P,z)=>z.map(D=>({label:D,kind:P.languages.CompletionItemKind.Keyword,insertText:D})),u=P=>Object.keys(m.tables).map(z=>({label:z,kind:P.languages.CompletionItemKind.Variable,insertText:z})),k=(P,z)=>{const D=m.tables[P];return D?D.map(U=>({label:U,kind:z.languages.CompletionItemKind.Field,insertText:U})):[]};function I(P,z,D,U,Z){let te=z.getWordUntilPosition(D),J={startLineNumber:D.lineNumber,endLineNumber:D.lineNumber,startColumn:te.startColumn,endColumn:te.endColumn},ce=U.map(Ee=>({label:Ee,kind:P.languages.CompletionItemKind.Keyword,insertText:Ee,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:J}));return Z.map(Ee=>{ce.push(S(b({},Ee),{range:J}))}),ce}var F=P=>{m.languages.map(Z=>(P.languages.registerDocumentFormattingEditProvider(Z,{provideDocumentFormattingEdits(te,J,ce){return p(this,null,function*(){const Ee=e()(te.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:te.getFullModelRange(),text:Ee}]})}}),Z));const z=V.quickKey.map(Z=>({label:Z.label,kind:P.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet})),D=h.quickKey.map(Z=>({label:Z.label,kind:P.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet})),U=X.quickKey.map(Z=>({label:Z.label,kind:P.languages.CompletionItemKind.Method,insertText:Z.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet}));P.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Z,te){var J=Z.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},Ee=Z.getLineContent(te.lineNumber).substring(J.startColumn-2,J.endColumn);return{suggestions:[...V.keywords.map(xe=>({label:xe,kind:P.languages.CompletionItemKind.Function,documentation:xe,insertText:xe,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...V.quickKey.map(xe=>({label:xe.label,kind:P.languages.CompletionItemKind.Function,documentation:xe.content,insertText:Ee.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}}),P.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Z,te){var J=Z.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn};return{suggestions:[...j.keywords.map(Ee=>({label:Ee,kind:P.languages.CompletionItemKind.Function,documentation:Ee,insertText:Ee,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}}),P.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Z,te){var J=Z.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},Ee=Z.getLineContent(te.lineNumber).substring(J.startColumn-2,J.endColumn);return{suggestions:[...X.keywords.map(xe=>({label:xe,kind:P.languages.CompletionItemKind.Function,documentation:xe,insertText:xe,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...X.quickKey.map(xe=>({label:xe.label,kind:P.languages.CompletionItemKind.Function,documentation:xe.content,insertText:Ee.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}}),P.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Z,te){var J=Z.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},Ee=Z.getLineContent(te.lineNumber).substring(J.startColumn-2,J.endColumn);return{suggestions:[...H.keywords.map(xe=>({label:xe,kind:P.languages.CompletionItemKind.Function,documentation:xe,insertText:xe,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...H.quickKey.map(xe=>({label:xe.label,kind:P.languages.CompletionItemKind.Function,documentation:xe.content,insertText:Ee.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}}),P.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Z,te){var J=Z.getWordUntilPosition(te),ce={startLineNumber:te.lineNumber,endLineNumber:te.lineNumber,startColumn:J.startColumn,endColumn:J.endColumn},Ee=Z.getLineContent(te.lineNumber).substring(J.startColumn-2,J.endColumn);return{suggestions:[...h.keywords.map(xe=>({label:xe,kind:P.languages.CompletionItemKind.Function,documentation:xe,insertText:xe,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce})),...h.quickKey.map(xe=>({label:xe.label,kind:P.languages.CompletionItemKind.Function,documentation:xe.content,insertText:Ee.startsWith("#")?xe.content.replace(/#/,""):xe.content,insertTextRules:P.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ce}))]}}})};const K="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var G=Object.defineProperty,W=(P,z,D)=>z in P?G(P,z,{enumerable:!0,configurable:!0,writable:!0,value:D}):P[z]=D,Pe=(P,z,D)=>W(P,typeof z!="symbol"?z+"":z,D);const w=class ya{constructor(z,D,U){this.placeholder=z,this.editor=D,this.monaco=U,D.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return ya.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Pe(w,"ID","editor.widget.placeholderHint");var x=w,N=l(96236),C=l(6767),y=l(25399),n=l(89392),a=l(49535),d=l(56102),M=Object.defineProperty,ae=Object.defineProperties,he=Object.getOwnPropertyDescriptors,ge=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,vt=(P,z,D)=>z in P?M(P,z,{enumerable:!0,configurable:!0,writable:!0,value:D}):P[z]=D,ye=(P,z)=>{for(var D in z||(z={}))Ae.call(z,D)&&vt(P,D,z[D]);if(ge)for(var D of ge(z))We.call(z,D)&&vt(P,D,z[D]);return P},Ve=(P,z)=>ae(P,he(z)),dt=(P,z)=>{var D={};for(var U in P)Ae.call(P,U)&&z.indexOf(U)<0&&(D[U]=P[U]);if(P!=null&&ge)for(var U of ge(P))z.indexOf(U)<0&&We.call(P,U)&&(D[U]=P[U]);return D},Rt=(P,z,D)=>new Promise((U,Z)=>{var te=Ee=>{try{ce(D.next(Ee))}catch(xe){Z(xe)}},J=Ee=>{try{ce(D.throw(Ee))}catch(xe){Z(xe)}},ce=Ee=>Ee.done?U(Ee.value):Promise.resolve(Ee.value).then(te,J);ce((D=D.apply(P,z)).next())});function ot(P){return/^\d+$/.test(P)?`${P}px`:P}function be(){}let E=!1;const B={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function O(P=[]){let z=P;if(Array.isArray(P)){for(let D=0;D<P.length;D++){let U=B[P[D]];if(U)return U}return z[0]}return B[z]||z}let q=null;const ie=()=>Rt(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(P){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",P)}});var R=P=>{var z=P,{width:D="100%",height:U="100%",value:Z,language:te="javascript",style:J={},options:ce={},overrideServices:Ee={},theme:xe="vs-dark",onEditBlur:Fe,isCopy:Ie=!1,onSave:de,autoHeight:Le=!1,forbidCopy:Oe=!1,onChange:De=be,editorDidMount:at=be,onFocus:Et=be,onBreakPoint:et=be,breakPointValue:Tt=[],filename:tn="educoder.txt",errorLine:pt,errorContent:st="",highlightLine:bt,openBreakPoint:Qt=!1,placeholder:kt="",showMiniMap:Lt=!0}=z,Mt=dt(z,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const sn=(0,T.useRef)(),qe=(0,T.useRef)({}),ut=(0,T.useRef)(),yt=(0,T.useRef)(),kn=(0,T.useRef)([]),vn=(0,T.useRef)(!1),Fn=(0,T.useRef)(),zn=(0,T.useRef)(),bn=(0,T.useRef)(!1),[zt,Nn]=(0,T.useState)(!1);function En(){let we;return sn.current&&(we=new A.Z(pe=>{for(let ze of pe)(ze.target.offsetHeight>0||ze.target.offsetWidth>0)&&qe.current.instance.layout()}),we.observe(sn.current)),we}function On(){C.ZP.warning({content:decodeURIComponent(K),key:"monaco-editor-tip"})}const gn=()=>{let we=qe.current.instance;if(Z!=null&&we&&zt){const pe=we.getModel();pe&&Z!==pe.getValue()&&(E=!0,pe.setValue(Z),we.layout(),E=!1)}};(0,T.useEffect)(()=>{const we=a.Z.subscribe("formatDocument",pe=>{var ze;let Ye=qe.current.instance;(ze=Ye==null?void 0:Ye.getAction)==null||ze.call(Ye,"editor.action.formatDocument").run()});return window.updateMonacoValue=pe=>{De(pe)},we},[]),(0,T.useEffect)(()=>{var we;let pe=qe.current.instance;yt.current&&clearTimeout(yt.current),yt.current=setTimeout(()=>{gn()},500),Z&&(Z!=null&&Z.length)&&((we=pe==null?void 0:pe.updateOptions)==null||we.call(pe,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Z.split(/\r\n|\r|\n/g).length))+3,5)}))},[Z,zt,qe.current]),(0,T.useEffect)(()=>{if(pt&&qe.current&&qe.current.instance){let pe=qe.current.instance;pe.changeViewZones(function(ze){var Ye=document.createElement("div");Ye.style.padding="10px 20px",Ye.style.width="calc(100% - 20px)",Ye.className="my-error-line-wrp",Ye.innerHTML=st,ze.addZone({afterLineNumber:pt||11,heightInLines:3,domNode:Ye})});var we={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};pe.addOverlayWidget(we),pe.revealPositionInCenter({lineNumber:20,column:1})}},[pt,qe.current,zt]);const Cn=(we="",pe)=>{if(!we||we.trim()==="")return!0;const Ye=qe.current.instance.getModel().getLineTokens(pe);let it=!1;for(let wt=0;wt<2;wt++)Ye.getStandardTokenType(wt)===1&&(it=!0);return it};(0,T.useEffect)(()=>{var we;const pe=(we=qe.current)==null?void 0:we.instance;if(pe&&zt&&Oe){const ze=pe.onDidBlurEditorWidget(()=>{bn.current=!1}),Ye=pe.onDidFocusEditorText(()=>{bn.current=!0});return()=>{ze.dispose(),Ye.dispose()}}},[qe.current,zt,Oe]),(0,T.useEffect)(()=>{var we;if((we=qe.current)!=null&&we.instance&&zt&&Qt){let pe=qe.current.instance,ze=pe.getModel();if(!ze)return;(()=>{var Te;let Ge=[],Qe=[];const lt=ze.getAllDecorations();for(let ft of lt)ft.options.className==="highlighted-line"&&(Ge.push((Te=ft==null?void 0:ft.range)==null?void 0:Te.startLineNumber),Qe.push(ft==null?void 0:ft.id));if(bt===Ge[0])return;ze.deltaDecorations(Qe,[]);const Kt=ze.getLineCount();bt&&bt<=Kt&&(pe.deltaDecorations([],[{range:new q.Range(bt,1,bt,ze.getLineMaxColumn(bt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),pe.revealLineInCenter(bt))})();const it=(Te=!1)=>{var Ge;let Qe=[],lt=[];const Kt=ze.getAllDecorations();for(let ft of Kt)ft.options.linesDecorationsClassName==="breakpoints-select"&&(Qe.push((Ge=ft==null?void 0:ft.range)==null?void 0:Ge.startLineNumber),lt.push(ft==null?void 0:ft.id));if(Te)return{lines:Qe,ids:lt};et(Qe)},wt=Te=>Rt(void 0,null,function*(){let Ge={range:new q.Range(Te,1,Te,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield ze.deltaDecorations([],[Ge]),it()}),nt=Te=>Rt(void 0,null,function*(){let Ge=[];const Qe=pe.getLineDecorations(Te);for(let lt of Qe)lt.options.linesDecorationsClassName==="breakpoints-select"&&Ge.push(lt.id);yield ze.deltaDecorations(Ge,[]),it()}),He=Te=>{let Ge=pe.getLineDecorations(Te);for(let Qe of Ge)if(Qe.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,n.isEqual)(Tt,it(!0).lines)){ze.deltaDecorations(it(!0).ids,[]);const Te=Tt.map(Ge=>({range:new q.Range(Ge,1,Ge,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));ze.deltaDecorations([],Te)}const Y=pe.onDidChangeModelContent(Te=>{let Ge=pe.getPosition();if(Ge){let Qe=Ge.lineNumber;clearTimeout(zn.current),zn.current=setTimeout(()=>{Cn(ze.getLineContent(Qe),Qe)?nt(Qe):He(Qe)?(nt(Qe),wt(Qe)):it()},100)}}),se=pe.onMouseDown(Te=>{var Ge,Qe,lt;if(Te.target.detail&&((lt=(Qe=(Ge=Te.target)==null?void 0:Ge.element)==null?void 0:Qe.className)!=null&<.includes("line-numbers"))){let Kt=Te.target.position.lineNumber;if(Cn(ze.getLineContent(Kt),Kt))return;He(Kt)?nt(Kt):wt(Kt)}}),fe=Te=>{let Ge={range:new q.Range(Te,1,Te,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};kn.current=pe.deltaDecorations(kn.current,[Ge])},ve=()=>{kn.current=pe.deltaDecorations(kn.current,[])},Me=pe.onMouseMove(Te=>{var Ge,Qe,lt;if(ve(),Te.target.detail&&((lt=(Qe=(Ge=Te.target)==null?void 0:Ge.element)==null?void 0:Qe.className)!=null&<.includes("line-numbers"))){let Kt=Te.target.position.lineNumber;if(Cn(ze.getLineContent(Kt),Kt))return;fe(Kt)}}),je=pe.onMouseLeave(()=>{ve()});return()=>{Y.dispose(),se.dispose(),Me.dispose(),je.dispose()}}},[qe.current,zt,Tt,bt,Qt,te]),(0,T.useEffect)(()=>{var we;(we=qe.current)!=null&&we.instance&&Qt&&qe.current.instance.setPosition({lineNumber:0,column:0})},[bt]);function Zn(){let we=qe.current.instance;if(we){const pe=we.getSelection(),ze=qe.current.pastePos||{},Ye=new q.Range(ze.startLineNumber||pe.endLineNumber,ze.startColumn||pe.endColumn,ze.endLineNumber||pe.endLineNumber,ze.endColumn||pe.endColumn);setTimeout(()=>{we.executeEdits("",[{range:Ye,text:""}])},300)}}function cn(we){(window.navigator.platform.match("Mac")?we.metaKey:we.ctrlKey)&&we.keyCode==83&&(we.preventDefault(),de())}const nn=()=>{if(Le&&qe.current.instance){const we=qe.current.instance.getContentHeight();Xe(we<U?U:we)}else Xe(U)};function Ln(we){var pe=document.createEvent("MouseEvents");pe.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),we.dispatchEvent(pe)}const Wn=we=>{if(!bn.current)return;const{keyCode:pe,ctrlKey:ze,metaKey:Ye,target:it,type:wt}=we;return(wt==="paste"||(pe===67||pe===86)&&(Ye||ze))&&it.nodeName==="TEXTAREA"&&(On(),we.preventDefault()),!1};function ne(we,pe){var ze=window.URL||window.webkitURL||window,Ye=new Blob([pe]),it=document.createElementNS("http://www.w3.org/1999/xhtml","a");it.href=ze.createObjectURL(Ye),it.download=we,Ln(it)}(0,T.useEffect)(()=>{nn()},[nn]),(0,T.useEffect)(()=>{sn.current&&!zt&&Promise.all([l.e(8909),l.e(6656)]).then(l.bind(l,71448)).then(we=>{try{q=we,qe.current.instance=q.editor.create(sn.current,{value:Z,language:O(te),theme:xe,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Lt||!1}},Ee);const pe=qe.current.instance;let it=[...N.BH._menuItems].find(Y=>Y[0]._debugName=="EditorContext")[1],wt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],nt=(Y,se)=>{var fe,ve;let Me=Y._first;do se.includes((ve=(fe=Me.element)==null?void 0:fe.command)==null?void 0:ve.id)&&Y._remove(Me);while(Me=Me.next)};if(at(pe,q),setTimeout(()=>{nn(),qe.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{ne(tn||"educoder.txt",pe.getValue())}})},500),qe.current.subscription=pe.onDidChangeModelContent(Y=>{vn.current?clearTimeout(Fn.current):(nn(),De(pe.getValue(),Y)),Fn.current=setTimeout(()=>{vn.current=!1},500)}),window.Monaco||F(q,O(te)),Oe&&(nt(it,wt),sn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Wn),window.removeEventListener("paste",Wn),window.addEventListener("keydown",Wn),window.addEventListener("paste",Wn)),window.Monaco=q,Fe&&pe.onDidBlurEditorWidget(()=>{Fe(pe.getValue())}),Et&&pe.onDidFocusEditorText(()=>{Oe&&ie(),Et(pe.getValue())}),Oe){ie();try{pe.onDidPaste(Y=>{const se=pe.getSelection(),fe=qe.current.pastePos||{},ve=new q.Range(fe.startLineNumber||se.endLineNumber,fe.startColumn||se.endColumn,fe.endLineNumber||se.endLineNumber,fe.endColumn||se.endColumn);pe.executeEdits("",[{range:Y.range,text:""}])})}catch(Y){}}let He=En();return kt&&typeof kt=="string"&&new x(kt,pe,q),Nn(!0),()=>{const Y=qe.current.instance;Y.dispose();const se=Y.getModel();se&&se.dispose(),qe.current.subscription&&qe.current.subscription.dispose(),He.unobserve(sn.current)}}catch(pe){}})},[]),(0,T.useEffect)(()=>{if(qe.current.instance&&zt)return document.addEventListener("keydown",cn,!1),()=>{document.removeEventListener("keydown",cn)}},[de,zt]),(0,T.useEffect)(()=>{let we=qe.current.instance;if(we&&zt){let pe=O(te);q.editor.setModelLanguage(we.getModel(),pe)}},[te,zt]),(0,T.useEffect)(()=>{qe.current.instance&&zt&&q.editor.setTheme(xe)},[xe,zt]),(0,T.useEffect)(()=>{let we=qe.current.instance;ut.current=ce,we&&zt&&(we.updateOptions(ye({},ce)),setTimeout(()=>{we.getModel().updateOptions(ye({},ce))},200))},[JSON.stringify(ce),zt]),(0,T.useEffect)(()=>{let we=qe.current.instance;we&&zt&&we.layout()},[D,U,zt]);const[Q,Ue]=(0,T.useState)(ot(D)),[Ze,Xe]=(0,T.useState)(ot(U)),Je=Ve(ye({},J),{width:Q,height:Ze,position:"relative"});return T.createElement("div",{className:"my-monaco-editor",ref:sn,style:Je},Ie&&T.createElement(d.CopyToClipboard,{text:Z,onCopy:()=>C.ZP.success("\u590D\u5236\u6210\u529F")},T.createElement(y.Z,{title:"\u590D\u5236\u4EE3\u7801"},T.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},T.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function g({width:P="100%",height:z="100%",original:D,modified:U,language:Z,options:te={}}){const J=(0,T.useRef)(),[ce,Ee]=(0,T.useState)(null);function xe(Le){let Oe;return J.current&&(Oe=new A.Z(De=>{for(let at of De)(at.target.offsetHeight>0||at.target.offsetWidth>0)&&Le.layout()}),Oe.observe(J.current)),Oe}(0,T.useEffect)(()=>(J.current&&Promise.all([l.e(8909),l.e(9404)]).then(l.bind(l,2550)).then(Le=>{q=Le;const Oe=q.editor.createDiffEditor(J.current,Ve(ye({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},te),{wordWrap:!0}));Ee(Oe);let De=xe(Oe);return()=>{Oe.dispose();const at=Oe.getModel();at&&at.dispose(),De.unobserve(J.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,T.useEffect)(()=>{ce&&ce.setModel({original:q.editor.createModel(D,Z),modified:q.editor.createModel(U,Z)})},[D,U,Z,ce]);const Fe=ot(P),Ie=ot(z),de={width:Fe,height:Ie};return T.createElement("div",{className:"my-diff-editor",ref:J,style:de})}},15920:function(Zt,Ke,l){"use strict";l.r(Ke),l.d(Ke,{default:function(){return N}});var T=l(59301),A={flex_box_center:"flex_box_center___n3nXI",flex_space_between:"flex_space_between___SVr_u",flex_box_vertical_center:"flex_box_vertical_center___nGcce",flex_box_center_end:"flex_box_center_end___kaizF",flex_box_column:"flex_box_column___sMn1m",wrap:"wrap___LP3mu",title:"title___BPtTv",control:"control___zxfZc",label:"label___lVocU",tagWrap:"tagWrap___Wvbu8",tag:"tag___QaDfC",button:"button___z4kBY",customTable:"customTable___ehECY",form:"form___zV9o6",customModal:"customModal___TybkU"},j=l(25690),X=l(38986),V=l(89392),h=l(28284),H=l(62957),$=l(25399),e=l(6767),s=l(37568),c=l(82326),t=l(77736),r=l(99571),i=l(54172),o=l(346),v=l(81722),b=l(23029),S=l(96999),p=l(40133),m=l(45677),f=Object.defineProperty,u=Object.defineProperties,k=Object.getOwnPropertyDescriptors,I=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,G=(C,y,n)=>y in C?f(C,y,{enumerable:!0,configurable:!0,writable:!0,value:n}):C[y]=n,W=(C,y)=>{for(var n in y||(y={}))F.call(y,n)&&G(C,n,y[n]);if(I)for(var n of I(y))K.call(y,n)&&G(C,n,y[n]);return C},Pe=(C,y)=>u(C,k(y)),w=(C,y,n)=>new Promise((a,d)=>{var M=ge=>{try{he(n.next(ge))}catch(Ae){d(Ae)}},ae=ge=>{try{he(n.throw(ge))}catch(Ae){d(Ae)}},he=ge=>ge.done?a(ge.value):Promise.resolve(ge.value).then(M,ae);he((n=n.apply(C,y)).next())});let _=[{id:1,content:"\u4E13\u4E1A\u6BD5\u4E1A\u8981\u6C42\u6307\u6807\u70B9\u5206\u89E3\u53CA\u5173\u8054\u8BFE\u7A0B"},{id:2,content:"\u5B66\u751F\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u60C5\u51B5\u8BC4\u4EF7\u4F9D\u636E\u8868"},{id:3,content:"\u6BD5\u4E1A\u8981\u6C42\u8FBE\u6210\u60C5\u51B5\u76F4\u63A5\u8BC4\u4EF7\u7ED3\u679C"},{id:4,content:"\u8BFE\u7A0B\u603B\u7ED3\u62A5\u544A"}];const x=({user:C})=>{var y,n;const a={page:1,per_page:20,total:0,ec_major_school_id:null,ec_year_id:null,sort_by:null,direction:null,formvalues:{}};let[d,M]=(0,T.useState)(a);const[ae,he]=(0,T.useState)(!0),[ge,Ae]=(0,T.useState)(!1),[We,vt]=(0,T.useState)([]),[ye,Ve]=(0,T.useState)([]),[dt,Rt]=(0,T.useState)([]),[ot]=h.default.useForm(),be=(0,j.useLocation)(),E=location.host.startsWith("localhost")?o.Z.PROXY_SERVER:o.Z.API_SERVER,[B,O]=(0,T.useState)(!1),[q,ie]=(0,T.useState)(!1),[R,g]=(0,T.useState)([]),[P,z]=(0,T.useState)(""),[D,U]=(0,T.useState)({filename:"",editOffice:"view",type:"",className:"",data:"",close:!0,hasMask:!0,style:{position:"fixed",zIndex:9999,background:"rgba(0,0,0,.7)"},monacoEditor:{value:"",language:"",theme:"vs",options:{readOnly:!0}}});(0,T.useEffect)(()=>{var de;(de=C==null?void 0:C.userInfo)!=null&&de.school_id&&te()},[(y=C==null?void 0:C.userInfo)==null?void 0:y.school_id]);const Z=de=>w(void 0,null,function*(){var Le;const Oe=(0,V.cloneDeep)(de);S.U.setItem((Le=C==null?void 0:C.userInfo)==null?void 0:Le.login,[Oe==null?void 0:Oe.ec_major_school_id,Oe==null?void 0:Oe.ec_year_id]),he(!0);const De=yield(0,X.ZP)(`/api/ec_years/${d.ec_year_id}/ec_docs.json`,{method:"get",params:Oe});De!=null&&De.data&&(Rt((De==null?void 0:De.data)||[]),d.total=De==null?void 0:De.count,M(W({},d))),he(!1)}),te=()=>w(void 0,null,function*(){var de,Le,Oe,De,at,Et,et,Tt,tn,pt;const st=yield(0,X.ZP)(`/api/schools/${(de=C==null?void 0:C.userInfo)==null?void 0:de.school_id}/ec_majors/get_major_list.json`,{method:"get"});if(!((Oe=(Le=st==null?void 0:st.data)==null?void 0:Le[0])!=null&&Oe.ec_major_school_id)){he(!1),Ae(!0);return}const bt=S.U.getItem((De=C==null?void 0:C.userInfo)==null?void 0:De.login),Qt=Number((at=be==null?void 0:be.query)==null?void 0:at.ec_major_school_id)||bt[0]||((et=(Et=st==null?void 0:st.data)==null?void 0:Et[0])==null?void 0:et.ec_major_school_id),kt=yield(0,X.ZP)(`/api/ec_major_schools/${Qt}/ec_years/get_year_list.json`,{method:"get"});d.ec_major_school_id=Qt,d.ec_year_id=Number((Tt=be==null?void 0:be.query)==null?void 0:Tt.ec_year_id)||bt[1]||((pt=(tn=kt==null?void 0:kt.data)==null?void 0:tn[0])==null?void 0:pt.ec_year_id),ce(d.ec_year_id),vt((st==null?void 0:st.data)||[]),Ve((kt==null?void 0:kt.data)||[]),M(d),Z(d)}),J=de=>w(void 0,null,function*(){var Le,Oe;const De=yield(0,X.ZP)(`/api/ec_major_schools/${de}/ec_years/get_year_list.json`,{method:"get"});d.ec_major_school_id=de,d.ec_year_id=(Oe=(Le=De==null?void 0:De.data)==null?void 0:Le[0])==null?void 0:Oe.ec_year_id,Ve((De==null?void 0:De.data)||[]),M(d),Z(d)}),ce=de=>w(void 0,null,function*(){const Le=yield(0,X.ZP)(`/api/ec_years/${de}/ec_courses/get_courses.json`,{method:"get"});g((Le==null?void 0:Le.data)||[])}),Ee=(de,Le)=>{if(d.page=1,d[Le]=de,Le==="ec_major_school_id"){J(de);return}Le==="ec_year_id"&&(M(W({},d)),Z(d),ce(de))},xe=de=>{H.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u5417\uFF1F",onOk:()=>w(void 0,null,function*(){const Le=yield(0,X.ZP)(`/api/ec_years/${d.ec_year_id}/ec_docs/${de}.json`,{method:"delete"});(Le==null?void 0:Le.status)===0&&(d.page=1,M(W({},d)),Z(d))})})},Fe=[{title:"\u5E8F\u53F7",dataIndex:"index",width:90,render:(de,Le,Oe)=>T.createElement("span",{className:"pl20"},d.per_page*(d.page-1)+Oe+1)},{title:"\u6587\u6863\u540D\u79F0",dataIndex:"name",ellipsis:!0,width:200,render:de=>de||"-"},{title:"\u751F\u6210\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,width:200,render:de=>de||"-"},{title:"\u6700\u540E\u66F4\u65B0\u65F6\u95F4",dataIndex:"updated_at",width:200,ellipsis:!0,render:de=>de||"-"},{title:"\u64CD\u4F5C",width:120,dataIndex:"id",render:(de,Le)=>T.createElement("span",{style:{display:"inline-flex",transform:"translateY(1px)",width:"80%",color:"#0152D9",justifyContent:"space-between"}},T.createElement($.Z,{title:"\u4FEE\u6539\u6807\u9898"},T.createElement("i",{style:{cursor:"pointer"},onClick:()=>{var Oe;let De=Le.name.substr(0,(Oe=Le.name)==null?void 0:Oe.lastIndexOf("."));if(!De.replaceAll(" ","")){e.ZP.info("\u6587\u4EF6\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}H.default.confirm({title:"\u91CD\u547D\u540D",icon:!1,content:T.createElement(s.default,{defaultValue:De,maxLength:100,onChange:at=>{De=at.target.value}}),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>w(void 0,null,function*(){let at=yield(0,X.ZP)(`/api/ec_years/${d==null?void 0:d.ec_year_id}/ec_docs/${de}.json`,{method:"put",body:{ec_year_id:d==null?void 0:d.ec_year_id,id:de,name:De}});(at==null?void 0:at.status)===0&&(e.ZP.info("\u4FEE\u6539\u6210\u529F"),d.page=1,M(W({},d)),Z(d))})})},className:"iconfont icon-xiugaibiaoti"})),T.createElement($.Z,{title:"\u5728\u7EBF\u7F16\u8F91"},T.createElement("i",{onClick:()=>w(void 0,null,function*(){if(["xlsx","docx","pptx"].includes(Le==null?void 0:Le.type)){const Oe=yield(0,v.gJ)({attachment_id:Le.attachment_id});window.open(`/office.html?key=${Le.attachment_id}&url=${E+(Oe==null?void 0:Oe.url)}&callbackUrl=${E+(Oe==null?void 0:Oe.callbackUrl)}&fileType=docx&title=${Oe==null?void 0:Oe.title}&model=edit&officeServer=${o.Z.ONLYOFFICE}&disabledDownload=false`)}else{e.ZP.info("\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u7F16\u8F91");return}}),style:{cursor:"pointer"},className:"iconfont icon-bianji10"})),T.createElement($.Z,{title:"\u4E0B\u8F7D"},T.createElement("i",{style:{cursor:"pointer"},onClick:()=>{(0,p.IM)({name:Le==null?void 0:Le.name,attachment_id:Le==null?void 0:Le.attachment_id})},className:"iconfont icon-xiazai4"})),T.createElement($.Z,{title:"\u5220\u9664"},T.createElement("i",{style:{cursor:"pointer"},onClick:()=>{xe(de)},className:"iconfont icon-shanchu11"})))}],Ie=ae||ge;return T.createElement("div",{className:A.wrap},T.createElement(b.p,{title:"\u6587\u6863\u751F\u6210",style:{padding:"12px 0 0 20px"}}),T.createElement("div",{className:A.control},T.createElement("div",{className:A.label},"\u8BA4\u8BC1\u4E13\u4E1A"),T.createElement(c.default,{disabled:Ie,style:{width:240},placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A",value:d==null?void 0:d.ec_major_school_id,onChange:de=>Ee(de,"ec_major_school_id")},We==null?void 0:We.map(de=>T.createElement(c.default.Option,{value:de.ec_major_school_id},de.name))),T.createElement("div",{className:A.label},"\u8BA4\u8BC1\u5C4A\u522B"),T.createElement(c.default,{disabled:Ie,style:{width:140},placeholder:"\u8BF7\u9009\u62E9\u5C4A\u522B",value:d==null?void 0:d.ec_year_id,onChange:de=>Ee(de,"ec_year_id")},ye==null?void 0:ye.map(de=>T.createElement(c.default.Option,{value:de.ec_year_id},de.year))),T.createElement(t.Z,{className:A.button,size:10},T.createElement(r.ZP,{disabled:Ie,style:{transition:"0s"},onClick:()=>{O(!0)},type:"primary"},T.createElement("i",{className:"iconfont icon-xinzeng font14 mr5"}),"\u751F\u6210\u6587\u6863"))),T.createElement(i.default,{className:A.customTable,dataSource:dt,bordered:!1,rowKey:"id",columns:Fe,rowClassName:A.row,loading:ae,pagination:{pageSize:d.per_page,total:d.total,current:d.page,showQuickJumper:!0,hideOnSinglePage:!1,showSizeChanger:!0,size:"default",position:["bottomCenter"],showTotal:de=>T.createElement("span",{className:"mr10"},"\u5171",T.createElement("span",{className:"c-orange"},de),"\u6761\u6570\u636E")}}),T.createElement(H.default,{title:"\u751F\u6210\u6587\u6863",open:B,onOk:()=>{ot.submit()},okButtonProps:{loading:q},onCancel:()=>{O(!1),ot.setFieldsValue({export_type:"",ec_course_id:""})}},console.log("---",d),T.createElement(h.default,{labelCol:{span:7},wrapperCol:{span:17},form:ot,onValuesChange:de=>{de.export_type&&(d.formvalues=de),M(W({},d))},onFinish:de=>w(void 0,null,function*(){ie(!0);let Le=`/api/ec_years/${d==null?void 0:d.ec_year_id}/ec_docs.json`,Oe=yield(0,X.ZP)(Le,{method:"post",body:W({ec_year_id:d.ec_year_id},de)});ie(!1),Oe.status===0&&(e.ZP.info("\u751F\u6210\u6210\u529F"),Z(d),ot.setFieldsValue({export_type:"",ec_course_id:""}),O(!1))})},T.createElement(h.default.Item,{label:"\u9009\u62E9\u8981\u751F\u6210\u7684\u6587\u6863",name:"export_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6587\u6863"}]},T.createElement(c.default,{placeholder:"\u8BF7\u9009\u62E9\u8981\u751F\u6210\u7684\u6587\u6863"},_==null?void 0:_.map((de,Le)=>T.createElement(c.default.Option,{key:Le,value:de==null?void 0:de.id},de==null?void 0:de.content)))),((n=d.formvalues)==null?void 0:n.export_type)===4&&T.createElement(h.default.Item,{label:"\u9009\u62E9\u5BF9\u5E94\u7684\u8BFE\u7A0B",name:"ec_course_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5BF9\u5E94\u7684\u8BFE\u7A0B"}]},T.createElement(c.default,{placeholder:"\u8BF7\u9009\u62E9\u5BF9\u5E94\u7684\u8BFE\u7A0B"},R==null?void 0:R.map((de,Le)=>T.createElement(c.default.Option,{key:Le,value:de==null?void 0:de.id},de==null?void 0:de.name)))))),T.createElement(m.Z,Pe(W({},D),{onClose:()=>{U(Pe(W({},D),{type:""}))}})))};var N=(0,j.connect)(({user:C})=>({user:C}))(x)},23029:function(Zt,Ke,l){"use strict";l.d(Ke,{p:function(){return X},v:function(){return H}});var T=l(59301),A={panelTitleContainer:"panelTitleContainer___Ypuh_"},X=({title:$,style:e={}})=>T.createElement("div",{className:A.panelTitleContainer,style:e},T.createElement("div",null,$)),V={selectWrapContainer:"selectWrapContainer___qocIH"},H=({title:$,children:e})=>T.createElement("div",{className:V.selectWrapContainer},T.createElement("span",null,$),e)},40133:function(Zt,Ke,l){"use strict";l.d(Ke,{AD:function(){return x},D9:function(){return M},Hp:function(){return k},IM:function(){return he},Iy:function(){return F},KM:function(){return be},MJ:function(){return I},Ne:function(){return ae},ON:function(){return ye},Uj:function(){return Rt},VY:function(){return We},YO:function(){return dt},YX:function(){return Ve},Zn:function(){return o},_g:function(){return m},_k:function(){return a},c6:function(){return w},cr:function(){return v},eV:function(){return _},fi:function(){return b},gh:function(){return W},hS:function(){return ge},iA:function(){return S},j6:function(){return f},je:function(){return y},jj:function(){return u},kS:function(){return vt},lS:function(){return n},o6:function(){return Pe},pO:function(){return ot},rQ:function(){return N},sA:function(){return G},xm:function(){return d},xo:function(){return Ae},y8:function(){return C},yd:function(){return p}});var T=l(82264),A=l(25690),j=l(51257),X=l(6767),V=l(346),h=Object.defineProperty,H=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,s=(E,B,O)=>B in E?h(E,B,{enumerable:!0,configurable:!0,writable:!0,value:O}):E[B]=O,c=(E,B)=>{for(var O in B||(B={}))$.call(B,O)&&s(E,O,B[O]);if(H)for(var O of H(B))e.call(B,O)&&s(E,O,B[O]);return E},t=(E,B,O)=>new Promise((q,ie)=>{var R=z=>{try{P(O.next(z))}catch(D){ie(D)}},g=z=>{try{P(O.throw(z))}catch(D){ie(D)}},P=z=>z.done?q(z.value):Promise.resolve(z.value).then(R,g);P((O=O.apply(E,B)).next())});const r=()=>{(0,A.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},i=()=>{(0,A.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},o=E=>t(void 0,null,function*(){r(),(yield(0,T.YR)(c({},E))).status===0&&(yield(0,j.QH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/courses/${E.coursesId}/export_couser_info.json`,query:E}))),i()}),v=E=>t(void 0,null,function*(){const B=yield(0,T.yS)(c({},E));if(B.status===0)X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_member_act_score`);else{if(B.status===-2)return B;B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_member_act_score`))}}),b=E=>t(void 0,null,function*(){const B=yield(0,T.W0)(c({},E));if(B.status===0)X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_score`);else{if(B.status===-4)return B;B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_score`))}}),S=E=>t(void 0,null,function*(){const B=yield(0,T.Nl)(c({},E));if(B.status===0)X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_exercise_and_other`);else{if(B.status===-4)return B;B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_exercise_and_other`))}}),p=E=>t(void 0,null,function*(){const B=yield(0,T.IU)(c({},E));if(B.status===0)X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/export_star_user`);else{if(B.status===-4)return B;B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/export_star_user`))}}),m=E=>t(void 0,null,function*(){const B=yield(0,T.td)(c({},E));if(B.status===0)X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_exercise_and_other`);else{if(B.status===-2)return B;if(B.status===-3)(0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_exercise_and_other`);else if(B.status===-4)return B}}),f=E=>t(void 0,null,function*(){const B=yield(0,T.QX)(c({},E));if(B.status===0)X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_homework`);else{if(B.status===-4)return B;B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/course_total_homework`))}}),u=(E,B)=>t(void 0,null,function*(){const O=yield(0,T.o_)(c({},E));O.status===0?(X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`)):O.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`))}),k=(E,B)=>t(void 0,null,function*(){const O=yield(0,T.ZL)(c({},E));O.status===0?(X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`)):O.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`))}),I=(E,B)=>t(void 0,null,function*(){const O=yield(0,T.vV)(c({},E));O.status===0?(X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`)):O.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`))}),F=(E,B)=>t(void 0,null,function*(){const O=yield(0,T.aP)(c({},E));O.status===0?(X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`)):O.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/${B}`))}),K=E=>t(void 0,null,function*(){r(),(yield exportCourseWorkListAppendix(c({},E))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${E.categoryId}/works_list.zip`,query:E}))),i()}),G=E=>t(void 0,null,function*(){r(),yield(0,j.QH)("",V.Z.API_SERVER+`/api/polls/${E.categoryId}/commit_result.xlsx`),i()}),W=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/courses/${E.coursesId}/attendances/export_xlsx_data.xlsx`,query:E}))}),Pe=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/courses/${E.coursesId}/video_study_statics.xlsx`,query:E}))}),w=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/courses/${E.coursesId}/export_video_study.xlsx`,query:E}))}),_=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/courses/${E.coursesId}/export_course_students_info.xlsx`,query:E}))}),x=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/school_manages/students.xlsx",query:E}))}),N=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/item_banks/export.xlsx",query:E}))}),C=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:E}))}),y=E=>t(void 0,null,function*(){const B=yield(0,T.Uy)(c({},E));B.status===0?(X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/exercise_score,export_exercise_users`)):B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/exercise_score,export_exercise_users`))}),n=E=>t(void 0,null,function*(){const B=yield(0,T.tg)(c({},E));B.status===0?(X.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),A.history.push(`/classrooms/${E.coursesId}/exportlist/exercise_score,export_exercise_report`)):B.status===-3&&((0,A.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),A.history.push(`/classrooms/${E.coursesId}/exportlist/exercise_score,export_exercise_report`))}),a=E=>t(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/export_records/${E.id}.xlsx`,query:E}))}),d=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:E}))}),M=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/courses/${E==null?void 0:E.coursesId}/${E.menuKey}_statistic.xlsx?${E.checkedList.map(B=>`course_group_id[]=${B}`).join("&")}`,query:E}))}),ae=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/ec_years/${E==null?void 0:E.ec_year_id}/ec_training_objectives.xlsx`,query:E}))}),he=E=>t(void 0,null,function*(){yield(0,j.FH)(E==null?void 0:E.name,(0,j.NY)({url:V.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:E}))}),ge=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/ec_years/${E==null?void 0:E.ec_year_id}/ec_courses.xlsx`,query:E}))}),Ae=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/ec_years/${E==null?void 0:E.ec_year_id}/ec_graduation_requirements.xlsx`,query:E}))}),We=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:E}))}),vt=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:E}))}),ye=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/examination_banks/${E.id}.json`,query:E}))}),Ve=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/exercises/${E.categoryId}.json`,query:E}))}),dt=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/polls/${E==null?void 0:E.id}/commit_result.json`,query:E}))}),Rt=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+"/api/paths/get_task_pass.json",query:E}))}),ot=(E,B)=>t(void 0,null,function*(){yield(0,j.FH)(B||"",(0,j.NY)({url:V.Z.API_SERVER+`/api/exercises/${E==null?void 0:E.exercise_id}/consult_exercise.json`,query:E}))}),be=E=>t(void 0,null,function*(){yield(0,j.FH)("",(0,j.NY)({url:V.Z.API_SERVER+`/api/competitions/${E==null?void 0:E.identifier}/competition_commit_records/member_works.xlsx`,query:E}))})},25769:function(Zt,Ke,l){"use strict";var T=l(98040),A={"text/plain":"Text","text/html":"Url",default:"Text"},j="Copy to clipboard: #{key}, Enter";function X(h){var H=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return h.replace(/#{\s*key\s*}/g,H)}function V(h,H){var $,e,s,c,t,r,i=!1;H||(H={}),$=H.debug||!1;try{s=T(),c=document.createRange(),t=document.getSelection(),r=document.createElement("span"),r.textContent=h,r.ariaHidden="true",r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(v){if(v.stopPropagation(),H.format)if(v.preventDefault(),typeof v.clipboardData=="undefined"){$&&console.warn("unable to use e.clipboardData"),$&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var b=A[H.format]||A.default;window.clipboardData.setData(b,h)}else v.clipboardData.clearData(),v.clipboardData.setData(H.format,h);H.onCopy&&(v.preventDefault(),H.onCopy(v.clipboardData))}),document.body.appendChild(r),c.selectNodeContents(r),t.addRange(c);var o=document.execCommand("copy");if(!o)throw new Error("copy command was unsuccessful");i=!0}catch(v){$&&console.error("unable to copy using execCommand: ",v),$&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(H.format||"text",h),H.onCopy&&H.onCopy(window.clipboardData),i=!0}catch(b){$&&console.error("unable to copy using clipboardData: ",b),$&&console.error("falling back to prompt"),e=X("message"in H?H.message:j),window.prompt(e,h)}}finally{t&&(typeof t.removeRange=="function"?t.removeRange(c):t.removeAllRanges()),r&&document.body.removeChild(r),s()}return i}Zt.exports=V},53184:function(Zt,Ke,l){"use strict";var T,A;function j(X,V,h){var H=function($,e){return X.js_beautify($,e)};return H.js=X.js_beautify,H.css=V.css_beautify,H.html=h.html_beautify,H.js_beautify=X.js_beautify,H.css_beautify=V.css_beautify,H.html_beautify=h.html_beautify,H}T=[l(58553),l(87804),l(40998)],A=function(X,V,h){return j(X,V,h)}.apply(Ke,T),A!==void 0&&(Zt.exports=A)},87804:function(Zt,Ke){var l,T;(function(){var A;(function(){"use strict";var X=[,,function($){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var r=this.__items.length-1;r>=0;r--)if(this.__items[r].match(t))return!0;return!1},e.prototype.set_indent=function(t,r){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var r=t.lastIndexOf(`
|
|
`);r!==-1?this.__character_count=t.length-r:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function s(t,r){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),r=r||"",t.indent_level>0&&(r=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}s.prototype.get_indent_size=function(t,r){var i=this.__base_string_length;return r=r||0,t<0&&(i=0),i+=t*this.__indent_size,i+=r,i},s.prototype.get_indent_string=function(t,r){var i=this.__base_string;return r=r||0,t<0&&(t=0,i=""),r+=t*this.__indent_size,this.__ensure_cache(r),i+=this.__cache[r],i},s.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var t=this.__cache.length,r=0,i="";this.__indent_size&&t>=this.__indent_size&&(r=Math.floor(t/this.__indent_size),t-=r*this.__indent_size,i=new Array(r+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)};function c(t,r){this.__indent_cache=new s(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(t,r){return this.__indent_cache.get_indent_string(t,r)},c.prototype.get_indent_size=function(t,r){return this.__indent_cache.get_indent_size(t,r)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(t){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===`
|
|
`&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return t!==`
|
|
`&&(i=i.replace(/[\n]/g,t)),i},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(t,r){return t=t||0,r=r||0,this.next_line.set_indent(t,r),this.__lines.length>1?(this.current_line.set_indent(t,r),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(t){for(var r=0;r<t.newlines;r++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(t){for(var r=this.__lines.length;t<r;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(t,r){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(o.item(0).indexOf(t)!==0&&o.item(-1)!==r){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},$.exports.Output=c},,,,function($){function e(t,r){this.raw_options=s(t,r),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(t,r){var i=this.raw_options[t],o=r||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(o=i.concat()):typeof i=="string"&&(o=i.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(t,r){var i=this.raw_options[t],o=i===void 0?!!r:!!i;return o},e.prototype._get_characters=function(t,r){var i=this.raw_options[t],o=r||"";return typeof i=="string"&&(o=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),o},e.prototype._get_number=function(t,r){var i=this.raw_options[t];r=parseInt(r,10),isNaN(r)&&(r=0);var o=parseInt(i,10);return isNaN(o)&&(o=r),o},e.prototype._get_selection=function(t,r,i){var o=this._get_selection_list(t,r,i);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o[0]},e.prototype._get_selection_list=function(t,r,i){if(!r||r.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[r[0]],!this._is_valid_selection(i,r))throw new Error("Invalid Default Value!");var o=this._get_array(t,i);if(!this._is_valid_selection(o,r))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o},e.prototype._is_valid_selection=function(t,r){return t.length&&r.length&&!t.some(function(i){return r.indexOf(i)===-1})};function s(t,r){var i={};t=c(t);var o;for(o in t)o!==r&&(i[o]=t[o]);if(r&&t[r])for(o in t[r])i[o]=t[r][o];return i}function c(t){var r={},i;for(i in t){var o=i.replace(/-/g,"_");r[o]=t[i]}return r}$.exports.Options=e,$.exports.normalizeOpts=c,$.exports.mergeOpts=s},,function($){var e=RegExp.prototype.hasOwnProperty("sticky");function s(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}s.prototype.restart=function(){this.__position=0},s.prototype.back=function(){this.__position>0&&(this.__position-=1)},s.prototype.hasNext=function(){return this.__position<this.__input_length},s.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},s.prototype.peek=function(c){var t=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(t=this.__input.charAt(c)),t},s.prototype.__match=function(c,t){c.lastIndex=t;var r=c.exec(this.__input);return r&&!(e&&c.sticky)&&r.index!==t&&(r=null),r},s.prototype.test=function(c,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(c,t):!1},s.prototype.testChar=function(c,t){var r=this.peek(t);return c.lastIndex=0,r!==null&&c.test(r)},s.prototype.match=function(c){var t=this.__match(c,this.__position);return t?this.__position+=t[0].length:t=null,t},s.prototype.read=function(c,t,r){var i="",o;return c&&(o=this.match(c),o&&(i+=o[0])),t&&(o||!c)&&(i+=this.readUntil(t,r)),i},s.prototype.readUntil=function(c,t){var r="",i=this.__position;c.lastIndex=this.__position;var o=c.exec(this.__input);return o?(i=o.index,t&&(i+=o[0].length)):i=this.__input_length,r=this.__input.substring(this.__position,i),this.__position=i,r},s.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},s.prototype.get_regexp=function(c,t){var r=null,i="g";return t&&e&&(i="y"),typeof c=="string"&&c!==""?r=new RegExp(c,i):c&&(r=new RegExp(c.source,i)),r},s.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},s.prototype.peekUntilAfter=function(c){var t=this.__position,r=this.readUntilAfter(c);return this.__position=t,r},s.prototype.lookBack=function(c){var t=this.__position-1;return t>=c.length&&this.__input.substring(t-c.length,t).toLowerCase()===c},$.exports.InputScanner=s},,,,,function($){function e(s,c){s=typeof s=="string"?s:s.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(s+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(s+/\sbeautify\signore:end\s/.source+c,"g")}e.prototype.get_directives=function(s){if(!s.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(s);t;)c[t[1]]=t[2],t=this.__directive_pattern.exec(s);return c},e.prototype.readIgnored=function(s){return s.readUntilAfter(this.__directives_end_ignore_pattern)},$.exports.Directives=e},,function($,e,s){var c=s(16).Beautifier,t=s(17).Options;function r(i,o){var v=new c(i,o);return v.beautify()}$.exports=r,$.exports.defaultOptions=function(){return new t}},function($,e,s){var c=s(17).Options,t=s(2).Output,r=s(8).InputScanner,i=s(13).Directives,o=new i(/\/\*/,/\*\//),v=/\r\n|[\r\n]/,b=/\r\n|[\r\n]/g,S=/\s/,p=/(?:\s|\n)+/g,m=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,f=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function u(k,I){this._source_text=k||"",this._options=new c(I),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}u.prototype.eatString=function(k){var I="";for(this._ch=this._input.next();this._ch;){if(I+=this._ch,this._ch==="\\")I+=this._input.next();else if(k.indexOf(this._ch)!==-1||this._ch===`
|
|
`)break;this._ch=this._input.next()}return I},u.prototype.eatWhitespace=function(k){for(var I=S.test(this._input.peek()),F=0;S.test(this._input.peek());)this._ch=this._input.next(),k&&this._ch===`
|
|
`&&(F===0||F<this._options.max_preserve_newlines)&&(F++,this._output.add_new_line(!0));return I},u.prototype.foundNestedPseudoClass=function(){for(var k=0,I=1,F=this._input.peek(I);F;){if(F==="{")return!0;if(F==="(")k+=1;else if(F===")"){if(k===0)return!1;k-=1}else if(F===";"||F==="}")return!1;I++,F=this._input.peek(I)}return!1},u.prototype.print_string=function(k){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(k)},u.prototype.preserveSingleSpace=function(k){k&&(this._output.space_before_token=!0)},u.prototype.indent=function(){this._indentLevel++},u.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},u.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var k=this._source_text,I=this._options.eol;I==="auto"&&(I=`
|
|
`,k&&v.test(k||"")&&(I=k.match(v)[0])),k=k.replace(b,`
|
|
`);var F=k.match(/^[\t ]*/)[0];this._output=new t(this._options,F),this._input=new r(k),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var K=0,G=!1,W=!1,Pe=!1,w=!1,_=!1,x=this._ch,N=!1,C,y,n;C=this._input.read(p),y=C!=="",n=x,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var a=this._input.read(m),d=o.get_directives(a);d&&d.ignore==="start"&&(a+=o.readIgnored(this._input)),this.print_string(a),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(f)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace(y),this.print_string(this._ch);var M=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);M.match(/[ :]$/)&&(M=this.eatString(": ").replace(/\s+$/,""),this.print_string(M),this._output.space_before_token=!0),K===0&&M.indexOf(":")!==-1&&(W=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(y),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var ae=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);ae.match(/[ :]$/)&&(ae=this.eatString(": ").replace(/\s+$/,""),this.print_string(ae),this._output.space_before_token=!0),K===0&&ae.indexOf(":")!==-1?(W=!0,this.indent()):ae in this.NESTED_AT_RULE?(this._nestedLevel+=1,ae in this.CONDITIONAL_GROUP_RULE&&(Pe=!0)):K===0&&!W&&(w=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(y),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")W&&(W=!1,this.outdent()),w=!1,Pe?(Pe=!1,G=this._indentLevel>=this._nestedLevel):G=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&G&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(n==="("?this._output.space_before_token=!1:n!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),n==="{"&&this._output.trim(!0),W&&(this.outdent(),W=!1),this.print_string(this._ch),G=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var he=0;he<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;he++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[he])){N=!0;break}(G||Pe)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!w&&K===0?(this.print_string(":"),W||(W=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var ge=n==='"'||n==="'";this.preserveSingleSpace(ge||y),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")N=!1,K===0?(W&&(this.outdent(),W=!1),w=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),K++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),K&&(K--,this.outdent()));else{var Ae=!1;this._input.lookBack("with")&&(Ae=!0),this.preserveSingleSpace(y||Ae),this.print_string(this._ch),W&&n==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),_=!0):(this.eatWhitespace(),K++,this.indent())}else if(this._ch===")")K&&(K--,this.outdent()),_&&this._input.peek()===";"&&this._options.selector_separator_newline&&(_=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!W||_)&&K===0&&!w?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!W&&K===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&S.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace(y),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),S.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var We=n==='"'||n==="'";this.preserveSingleSpace(We||y),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
|
|
`&&N&&this._output.add_new_line()}var vt=this._output.get_code(I);return vt},$.exports.Beautifier=u},function($,e,s){var c=s(6).Options;function t(r){c.call(this,r,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var i=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||i;var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var v=0;v<o.length;v++)o[v]!=="expand"?this.brace_style="collapse":this.brace_style=o[v]}t.prototype=new c,$.exports.Options=t}],V={};function h($){var e=V[$];if(e!==void 0)return e.exports;var s=V[$]={exports:{}};return X[$](s,s.exports,h),s.exports}var H=h(15);A=H})();var j=A;l=[],T=function(){return{css_beautify:j}}.apply(Ke,l),T!==void 0&&(Zt.exports=T)})()},40998:function(Zt,Ke,l){var T,A;(function(){var j;(function(){"use strict";var H=[,,function(c){function t(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var o=new t(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},t.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},t.prototype.has_match=function(o){for(var v=this.__items.length-1;v>=0;v--)if(this.__items[v].match(o))return!0;return!1},t.prototype.set_indent=function(o,v){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=v||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(o){this.__items.push(o);var v=o.lastIndexOf(`
|
|
`);v!==-1?this.__character_count=o.length-v:this.__character_count+=o.length},t.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function r(o,v){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),v=v||"",o.indent_level>0&&(v=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=v,this.__base_string_length=v.length}r.prototype.get_indent_size=function(o,v){var b=this.__base_string_length;return v=v||0,o<0&&(b=0),b+=o*this.__indent_size,b+=v,b},r.prototype.get_indent_string=function(o,v){var b=this.__base_string;return v=v||0,o<0&&(o=0,b=""),v+=o*this.__indent_size,this.__ensure_cache(v),b+=this.__cache[v],b},r.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var o=this.__cache.length,v=0,b="";this.__indent_size&&o>=this.__indent_size&&(v=Math.floor(o/this.__indent_size),o-=v*this.__indent_size,b=new Array(v+1).join(this.__indent_string)),o&&(b+=new Array(o+1).join(" ")),this.__cache.push(b)};function i(o,v){this.__indent_cache=new r(o,v),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}i.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},i.prototype.get_line_number=function(){return this.__lines.length},i.prototype.get_indent_string=function(o,v){return this.__indent_cache.get_indent_string(o,v)},i.prototype.get_indent_size=function(o,v){return this.__indent_cache.get_indent_size(o,v)},i.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},i.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},i.prototype.get_code=function(o){this.trim(!0);var v=this.current_line.pop();v&&(v[v.length-1]===`
|
|
`&&(v=v.replace(/\n+$/g,"")),this.current_line.push(v)),this._end_with_newline&&this.__add_outputline();var b=this.__lines.join(`
|
|
`);return o!==`
|
|
`&&(b=b.replace(/[\n]/g,o)),b},i.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},i.prototype.set_indent=function(o,v){return o=o||0,v=v||0,this.next_line.set_indent(o,v),this.__lines.length>1?(this.current_line.set_indent(o,v),!0):(this.current_line.set_indent(),!1)},i.prototype.add_raw_token=function(o){for(var v=0;v<o.newlines;v++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},i.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},i.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},i.prototype.remove_indent=function(o){for(var v=this.__lines.length;o<v;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},i.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},i.prototype.just_added_newline=function(){return this.current_line.is_empty()},i.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},i.prototype.ensure_empty_line_above=function(o,v){for(var b=this.__lines.length-2;b>=0;){var S=this.__lines[b];if(S.is_empty())break;if(S.item(0).indexOf(o)!==0&&S.item(-1)!==v){this.__lines.splice(b+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}b--}},c.exports.Output=i},function(c){function t(r,i,o,v){this.type=r,this.text=i,this.comments_before=null,this.newlines=o||0,this.whitespace_before=v||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}c.exports.Token=t},,,function(c){function t(o,v){this.raw_options=r(o,v),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(o,v){var b=this.raw_options[o],S=v||[];return typeof b=="object"?b!==null&&typeof b.concat=="function"&&(S=b.concat()):typeof b=="string"&&(S=b.split(/[^a-zA-Z0-9_\/\-]+/)),S},t.prototype._get_boolean=function(o,v){var b=this.raw_options[o],S=b===void 0?!!v:!!b;return S},t.prototype._get_characters=function(o,v){var b=this.raw_options[o],S=v||"";return typeof b=="string"&&(S=b.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),S},t.prototype._get_number=function(o,v){var b=this.raw_options[o];v=parseInt(v,10),isNaN(v)&&(v=0);var S=parseInt(b,10);return isNaN(S)&&(S=v),S},t.prototype._get_selection=function(o,v,b){var S=this._get_selection_list(o,v,b);if(S.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
|
|
`+v+`
|
|
You passed in: '`+this.raw_options[o]+"'");return S[0]},t.prototype._get_selection_list=function(o,v,b){if(!v||v.length===0)throw new Error("Selection list cannot be empty.");if(b=b||[v[0]],!this._is_valid_selection(b,v))throw new Error("Invalid Default Value!");var S=this._get_array(o,b);if(!this._is_valid_selection(S,v))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
|
|
`+v+`
|
|
You passed in: '`+this.raw_options[o]+"'");return S},t.prototype._is_valid_selection=function(o,v){return o.length&&v.length&&!o.some(function(b){return v.indexOf(b)===-1})};function r(o,v){var b={};o=i(o);var S;for(S in o)S!==v&&(b[S]=o[S]);if(v&&o[v])for(S in o[v])b[S]=o[v][S];return b}function i(o){var v={},b;for(b in o){var S=b.replace(/-/g,"_");v[S]=o[b]}return v}c.exports.Options=t,c.exports.normalizeOpts=i,c.exports.mergeOpts=r},,function(c){var t=RegExp.prototype.hasOwnProperty("sticky");function r(i){this.__input=i||"",this.__input_length=this.__input.length,this.__position=0}r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var i=null;return this.hasNext()&&(i=this.__input.charAt(this.__position),this.__position+=1),i},r.prototype.peek=function(i){var o=null;return i=i||0,i+=this.__position,i>=0&&i<this.__input_length&&(o=this.__input.charAt(i)),o},r.prototype.__match=function(i,o){i.lastIndex=o;var v=i.exec(this.__input);return v&&!(t&&i.sticky)&&v.index!==o&&(v=null),v},r.prototype.test=function(i,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(i,o):!1},r.prototype.testChar=function(i,o){var v=this.peek(o);return i.lastIndex=0,v!==null&&i.test(v)},r.prototype.match=function(i){var o=this.__match(i,this.__position);return o?this.__position+=o[0].length:o=null,o},r.prototype.read=function(i,o,v){var b="",S;return i&&(S=this.match(i),S&&(b+=S[0])),o&&(S||!i)&&(b+=this.readUntil(o,v)),b},r.prototype.readUntil=function(i,o){var v="",b=this.__position;i.lastIndex=this.__position;var S=i.exec(this.__input);return S?(b=S.index,o&&(b+=S[0].length)):b=this.__input_length,v=this.__input.substring(this.__position,b),this.__position=b,v},r.prototype.readUntilAfter=function(i){return this.readUntil(i,!0)},r.prototype.get_regexp=function(i,o){var v=null,b="g";return o&&t&&(b="y"),typeof i=="string"&&i!==""?v=new RegExp(i,b):i&&(v=new RegExp(i.source,b)),v},r.prototype.get_literal_regexp=function(i){return RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(i){var o=this.__position,v=this.readUntilAfter(i);return this.__position=o,v},r.prototype.lookBack=function(i){var o=this.__position-1;return o>=i.length&&this.__input.substring(o-i.length,o).toLowerCase()===i},c.exports.InputScanner=r},function(c,t,r){var i=r(8).InputScanner,o=r(3).Token,v=r(10).TokenStream,b=r(11).WhitespacePattern,S={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},p=function(m,f){this._input=new i(m),this._options=f||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new b(this._input)};p.prototype.tokenize=function(){this._input.restart(),this.__tokens=new v,this._reset();for(var m,f=new o(S.START,""),u=null,k=[],I=new v;f.type!==S.EOF;){for(m=this._get_next_token(f,u);this._is_comment(m);)I.add(m),m=this._get_next_token(f,u);I.isEmpty()||(m.comments_before=I,I=new v),m.parent=u,this._is_opening(m)?(k.push(u),u=m):u&&this._is_closing(m,u)&&(m.opened=u,u.closed=m,u=k.pop(),m.parent=u),m.previous=f,f.next=m,this.__tokens.add(m),f=m}return this.__tokens},p.prototype._is_first_token=function(){return this.__tokens.isEmpty()},p.prototype._reset=function(){},p.prototype._get_next_token=function(m,f){this._readWhitespace();var u=this._input.read(/.+/g);return u?this._create_token(S.RAW,u):this._create_token(S.EOF,"")},p.prototype._is_comment=function(m){return!1},p.prototype._is_opening=function(m){return!1},p.prototype._is_closing=function(m,f){return!1},p.prototype._create_token=function(m,f){var u=new o(m,f,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return u},p.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},c.exports.Tokenizer=p,c.exports.TOKEN=S},function(c){function t(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},t.prototype.peek=function(r){var i=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(i=this.__tokens[r]),i},t.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},c.exports.TokenStream=t},function(c,t,r){var i=r(12).Pattern;function o(v,b){i.call(this,v,b),b?this._line_regexp=this._input.get_regexp(b._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}o.prototype=new i,o.prototype.__set_whitespace_patterns=function(v,b){v+="\\t ",b+="\\n\\r",this._match_pattern=this._input.get_regexp("["+v+b+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+b+"]")},o.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var v=this._input.read(this._match_pattern);if(v===" ")this.whitespace_before_token=" ";else if(v){var b=this.__split(this._newline_regexp,v);this.newline_count=b.length-1,this.whitespace_before_token=b[this.newline_count]}return v},o.prototype.matching=function(v,b){var S=this._create();return S.__set_whitespace_patterns(v,b),S._update(),S},o.prototype._create=function(){return new o(this._input,this)},o.prototype.__split=function(v,b){v.lastIndex=0;for(var S=0,p=[],m=v.exec(b);m;)p.push(b.substring(S,m.index)),S=m.index+m[0].length,m=v.exec(b);return S<b.length?p.push(b.substring(S,b.length)):p.push(""),p},c.exports.WhitespacePattern=o},function(c){function t(r,i){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,i&&(this._starting_pattern=this._input.get_regexp(i._starting_pattern,!0),this._match_pattern=this._input.get_regexp(i._match_pattern,!0),this._until_pattern=this._input.get_regexp(i._until_pattern),this._until_after=i._until_after)}t.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(r){var i=this._create();return i._until_after=!0,i._until_pattern=this._input.get_regexp(r),i._update(),i},t.prototype.until=function(r){var i=this._create();return i._until_after=!1,i._until_pattern=this._input.get_regexp(r),i._update(),i},t.prototype.starting_with=function(r){var i=this._create();return i._starting_pattern=this._input.get_regexp(r,!0),i._update(),i},t.prototype.matching=function(r){var i=this._create();return i._match_pattern=this._input.get_regexp(r,!0),i._update(),i},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},c.exports.Pattern=t},function(c){function t(r,i){r=typeof r=="string"?r:r.source,i=typeof i=="string"?i:i.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+i,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+i,"g")}t.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var i={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(r);o;)i[o[1]]=o[2],o=this.__directive_pattern.exec(r);return i},t.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},c.exports.Directives=t},function(c,t,r){var i=r(12).Pattern,o={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function v(b,S){i.call(this,b,S),this.__template_pattern=null,this._disabled=Object.assign({},o),this._excluded=Object.assign({},o),S&&(this.__template_pattern=this._input.get_regexp(S.__template_pattern),this._excluded=Object.assign(this._excluded,S._excluded),this._disabled=Object.assign(this._disabled,S._disabled));var p=new i(b);this.__patterns={handlebars_comment:p.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:p.starting_with(/{{{/).until_after(/}}}/),handlebars:p.starting_with(/{{/).until_after(/}}/),php:p.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:p.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:p.starting_with(/{%/).until_after(/%}/),django_value:p.starting_with(/{{/).until_after(/}}/),django_comment:p.starting_with(/{#/).until_after(/#}/),smarty:p.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:p.starting_with(/{\*/).until_after(/\*}/),smarty_literal:p.starting_with(/{literal}/).until_after(/{\/literal}/)}}v.prototype=new i,v.prototype._create=function(){return new v(this._input,this)},v.prototype._update=function(){this.__set_templated_pattern()},v.prototype.disable=function(b){var S=this._create();return S._disabled[b]=!0,S._update(),S},v.prototype.read_options=function(b){var S=this._create();for(var p in o)S._disabled[p]=b.templating.indexOf(p)===-1;return S._update(),S},v.prototype.exclude=function(b){var S=this._create();return S._excluded[b]=!0,S._update(),S},v.prototype.read=function(){var b="";this._match_pattern?b=this._input.read(this._starting_pattern):b=this._input.read(this._starting_pattern,this.__template_pattern);for(var S=this._read_template();S;)this._match_pattern?S+=this._input.read(this._match_pattern):S+=this._input.readUntil(this.__template_pattern),b+=S,S=this._read_template();return this._until_after&&(b+=this._input.readUntilAfter(this._until_pattern)),b},v.prototype.__set_templated_pattern=function(){var b=[];this._disabled.php||b.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||b.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||b.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(b.push(this.__patterns.django._starting_pattern.source),b.push(this.__patterns.django_value._starting_pattern.source),b.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||b.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&b.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+b.join("|")+")")},v.prototype._read_template=function(){var b="",S=this._input.peek();if(S==="<"){var p=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&p==="?"&&(b=b||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&p==="%"&&(b=b||this.__patterns.erb.read())}else S==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(b=b||this.__patterns.handlebars_comment.read(),b=b||this.__patterns.handlebars_unescaped.read(),b=b||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(b=b||this.__patterns.django_value.read()),this._excluded.django||(b=b||this.__patterns.django_comment.read(),b=b||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(b=b||this.__patterns.smarty_comment.read(),b=b||this.__patterns.smarty_literal.read(),b=b||this.__patterns.smarty.read()));return b},c.exports.TemplatablePattern=v},,,,function(c,t,r){var i=r(19).Beautifier,o=r(20).Options;function v(b,S,p,m){var f=new i(b,S,p,m);return f.beautify()}c.exports=v,c.exports.defaultOptions=function(){return new o}},function(c,t,r){var i=r(20).Options,o=r(2).Output,v=r(21).Tokenizer,b=r(21).TOKEN,S=/\r\n|[\r\n]/,p=/\r\n|[\r\n]/g,m=function(w,_){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=w.max_preserve_newlines,this.preserve_newlines=w.preserve_newlines,this._output=new o(w,_)};m.prototype.current_line_has_match=function(w){return this._output.current_line.has_match(w)},m.prototype.set_space_before_token=function(w,_){this._output.space_before_token=w,this._output.non_breaking_space=_},m.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},m.prototype.add_raw_token=function(w){this._output.add_raw_token(w)},m.prototype.print_preserved_newlines=function(w){var _=0;w.type!==b.TEXT&&w.previous.type!==b.TEXT&&(_=w.newlines?1:0),this.preserve_newlines&&(_=w.newlines<this.max_preserve_newlines+1?w.newlines:this.max_preserve_newlines+1);for(var x=0;x<_;x++)this.print_newline(x>0);return _!==0},m.prototype.traverse_whitespace=function(w){return w.whitespace_before||w.newlines?(this.print_preserved_newlines(w)||(this._output.space_before_token=!0),!0):!1},m.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},m.prototype.print_newline=function(w){this._output.add_new_line(w)},m.prototype.print_token=function(w){w.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(w.text))},m.prototype.indent=function(){this.indent_level++},m.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},m.prototype.get_full_indent=function(w){return w=this.indent_level+(w||0),w<1?"":this._output.get_indent_string(w)};var f=function(w){for(var _=null,x=w.next;x.type!==b.EOF&&w.closed!==x;){if(x.type===b.ATTRIBUTE&&x.text==="type"){x.next&&x.next.type===b.EQUALS&&x.next.next&&x.next.next.type===b.VALUE&&(_=x.next.next.text);break}x=x.next}return _},u=function(w,_){var x=null,N=null;return _.closed?(w==="script"?x="text/javascript":w==="style"&&(x="text/css"),x=f(_)||x,x.search("text/css")>-1?N="css":x.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":x.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":x.search(/test\/null/)>-1&&(N="null"),N):null};function k(w,_){return _.indexOf(w)!==-1}function I(w,_,x){this.parent=w||null,this.tag=_?_.tag_name:"",this.indent_level=x||0,this.parser_token=_||null}function F(w){this._printer=w,this._current_frame=null}F.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},F.prototype.record_tag=function(w){var _=new I(this._current_frame,w,this._printer.indent_level);this._current_frame=_},F.prototype._try_pop_frame=function(w){var _=null;return w&&(_=w.parser_token,this._printer.indent_level=w.indent_level,this._current_frame=w.parent),_},F.prototype._get_frame=function(w,_){for(var x=this._current_frame;x&&w.indexOf(x.tag)===-1;){if(_&&_.indexOf(x.tag)!==-1){x=null;break}x=x.parent}return x},F.prototype.try_pop=function(w,_){var x=this._get_frame([w],_);return this._try_pop_frame(x)},F.prototype.indent_to_tag=function(w){var _=this._get_frame(w);_&&(this._printer.indent_level=_.indent_level)};function K(w,_,x,N){this._source_text=w||"",_=_||{},this._js_beautify=x,this._css_beautify=N,this._tag_stack=null;var C=new i(_,"html");this._options=C,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}K.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var w=this._source_text,_=this._options.eol;this._options.eol==="auto"&&(_=`
|
|
`,w&&S.test(w)&&(_=w.match(S)[0])),w=w.replace(p,`
|
|
`);var x=w.match(/^[\t ]*/)[0],N={text:"",type:""},C=new G(this._options),y=new m(this._options,x),n=new v(w,this._options).tokenize();this._tag_stack=new F(y);for(var a=null,d=n.next();d.type!==b.EOF;)d.type===b.TAG_OPEN||d.type===b.COMMENT?(a=this._handle_tag_open(y,d,C,N,n),C=a):d.type===b.ATTRIBUTE||d.type===b.EQUALS||d.type===b.VALUE||d.type===b.TEXT&&!C.tag_complete?a=this._handle_inside_tag(y,d,C,N):d.type===b.TAG_CLOSE?a=this._handle_tag_close(y,d,C):d.type===b.TEXT?a=this._handle_text(y,d,C):d.type===b.CONTROL_FLOW_OPEN?a=this._handle_control_flow_open(y,d):d.type===b.CONTROL_FLOW_CLOSE?a=this._handle_control_flow_close(y,d):y.add_raw_token(d),N=a,d=n.next();var M=y._output.get_code(_);return M},K.prototype._handle_control_flow_open=function(w,_){var x={text:_.text,type:_.type};return w.set_space_before_token(_.newlines||_.whitespace_before!=="",!0),_.newlines?w.print_preserved_newlines(_):w.set_space_before_token(_.newlines||_.whitespace_before!=="",!0),w.print_token(_),w.indent(),x},K.prototype._handle_control_flow_close=function(w,_){var x={text:_.text,type:_.type};return w.deindent(),_.newlines?w.print_preserved_newlines(_):w.set_space_before_token(_.newlines||_.whitespace_before!=="",!0),w.print_token(_),x},K.prototype._handle_tag_close=function(w,_,x){var N={text:_.text,type:_.type};return w.alignment_size=0,x.tag_complete=!0,w.set_space_before_token(_.newlines||_.whitespace_before!=="",!0),x.is_unformatted?w.add_raw_token(_):(x.tag_start_char==="<"&&(w.set_space_before_token(_.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&x.has_wrapped_attrs&&w.print_newline(!1)),w.print_token(_)),x.indent_content&&!(x.is_unformatted||x.is_content_unformatted)&&(w.indent(),x.indent_content=!1),!x.is_inline_element&&!(x.is_unformatted||x.is_content_unformatted)&&w.set_wrap_point(),N},K.prototype._handle_inside_tag=function(w,_,x,N){var C=x.has_wrapped_attrs,y={text:_.text,type:_.type};return w.set_space_before_token(_.newlines||_.whitespace_before!=="",!0),x.is_unformatted?w.add_raw_token(_):x.tag_start_char==="{"&&_.type===b.TEXT?w.print_preserved_newlines(_)?(_.newlines=0,w.add_raw_token(_)):w.print_token(_):(_.type===b.ATTRIBUTE?w.set_space_before_token(!0):(_.type===b.EQUALS||_.type===b.VALUE&&_.previous.type===b.EQUALS)&&w.set_space_before_token(!1),_.type===b.ATTRIBUTE&&x.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(w.traverse_whitespace(_),C=C||_.newlines!==0),this._is_wrap_attributes_force&&x.attr_count>=this._options.wrap_attributes_min_attrs&&(N.type!==b.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(w.print_newline(!1),C=!0)),w.print_token(_),C=C||w.previous_token_wrapped(),x.has_wrapped_attrs=C),y},K.prototype._handle_text=function(w,_,x){var N={text:_.text,type:"TK_CONTENT"};return x.custom_beautifier_name?this._print_custom_beatifier_text(w,_,x):x.is_unformatted||x.is_content_unformatted?w.add_raw_token(_):(w.traverse_whitespace(_),w.print_token(_)),N},K.prototype._print_custom_beatifier_text=function(w,_,x){var N=this;if(_.text!==""){var C=_.text,y,n=1,a="",d="";x.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?y=this._js_beautify:x.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?y=this._css_beautify:x.custom_beautifier_name==="html"&&(y=function(We,vt){var ye=new K(We,vt,N._js_beautify,N._css_beautify);return ye.beautify()}),this._options.indent_scripts==="keep"?n=0:this._options.indent_scripts==="separate"&&(n=-w.indent_level);var M=w.get_full_indent(n);if(C=C.replace(/\n[ \t]*$/,""),x.custom_beautifier_name!=="html"&&C[0]==="<"&&C.match(/^(<!--|<!\[CDATA\[)/)){var ae=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(C);if(!ae){w.add_raw_token(_);return}a=M+ae[1]+`
|
|
`,C=ae[4],ae[5]&&(d=M+ae[5]),C=C.replace(/\n[ \t]*$/,""),(ae[2]||ae[3].indexOf(`
|
|
`)!==-1)&&(ae=ae[3].match(/[ \t]+$/),ae&&(_.whitespace_before=ae[0]))}if(C)if(y){var he=function(){this.eol=`
|
|
`};he.prototype=this._options.raw_options;var ge=new he;C=y(M+C,ge)}else{var Ae=_.whitespace_before;Ae&&(C=C.replace(new RegExp(`
|
|
(`+Ae+")?","g"),`
|
|
`)),C=M+C.replace(/\n/g,`
|
|
`+M)}a&&(C?C=a+C+`
|
|
`+d:C=a+d),w.print_newline(!1),C&&(_.text=C,_.whitespace_before="",_.newlines=0,w.add_raw_token(_),w.print_newline(!0))}},K.prototype._handle_tag_open=function(w,_,x,N,C){var y=this._get_tag_open_token(_);if((x.is_unformatted||x.is_content_unformatted)&&!x.is_empty_element&&_.type===b.TAG_OPEN&&!y.is_start_tag?(w.add_raw_token(_),y.start_tag_token=this._tag_stack.try_pop(y.tag_name)):(w.traverse_whitespace(_),this._set_tag_position(w,_,y,x,N),y.is_inline_element||w.set_wrap_point(),w.print_token(_)),y.is_start_tag&&this._is_wrap_attributes_force){var n=0,a;do a=C.peek(n),a.type===b.ATTRIBUTE&&(y.attr_count+=1),n+=1;while(a.type!==b.EOF&&a.type!==b.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(y.alignment_size=_.text.length+1),!y.tag_complete&&!y.is_unformatted&&(w.alignment_size=y.alignment_size),y};var G=function(w,_,x){if(this.parent=_||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!x)this.tag_complete=!0;else{var N;this.tag_start_char=x.text[0],this.text=x.text,this.tag_start_char==="<"?(N=x.text.match(/^<([^\s>]*)/),this.tag_check=N?N[1]:""):(N=x.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=N?N[1]:"",(x.text.startsWith("{{#>")||x.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&x.next!==null?this.tag_check=x.next.text.split(" ")[0]:this.tag_check=x.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),x.type===b.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||x.closed&&x.closed.text==="/>";var C=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(C=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(!w.indent_handlebars||this.text.length<3||/[^#\^]/.test(this.text.charAt(C)))}};K.prototype._get_tag_open_token=function(w){var _=new G(this._options,this._tag_stack.get_parser_token(),w);return _.alignment_size=this._options.wrap_attributes_indent_size,_.is_end_tag=_.is_end_tag||k(_.tag_check,this._options.void_elements),_.is_empty_element=_.tag_complete||_.is_start_tag&&_.is_end_tag,_.is_unformatted=!_.tag_complete&&k(_.tag_check,this._options.unformatted),_.is_content_unformatted=!_.is_empty_element&&k(_.tag_check,this._options.content_unformatted),_.is_inline_element=k(_.tag_name,this._options.inline)||this._options.inline_custom_elements&&_.tag_name.includes("-")||_.tag_start_char==="{",_},K.prototype._set_tag_position=function(w,_,x,N,C){if(x.is_empty_element||(x.is_end_tag?x.start_tag_token=this._tag_stack.try_pop(x.tag_name):(this._do_optional_end_element(x)&&(x.is_inline_element||w.print_newline(!1)),this._tag_stack.record_tag(x),(x.tag_name==="script"||x.tag_name==="style")&&!(x.is_unformatted||x.is_content_unformatted)&&(x.custom_beautifier_name=u(x.tag_check,_)))),k(x.tag_check,this._options.extra_liners)&&(w.print_newline(!1),w._output.just_added_blankline()||w.print_newline(!0)),x.is_empty_element){if(x.tag_start_char==="{"&&x.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),x.indent_content=!0;var y=w.current_line_has_match(/{{#if/);y||w.print_newline(!1)}x.tag_name==="!--"&&C.type===b.TAG_CLOSE&&N.is_end_tag&&x.text.indexOf(`
|
|
`)===-1||(x.is_inline_element||x.is_unformatted||w.print_newline(!1),this._calcluate_parent_multiline(w,x))}else if(x.is_end_tag){var n=!1;n=x.start_tag_token&&x.start_tag_token.multiline_content,n=n||!x.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(C.type===b.TAG_CLOSE&&x.start_tag_token===N)&&C.type!=="TK_CONTENT",(x.is_content_unformatted||x.is_unformatted)&&(n=!1),n&&w.print_newline(!1)}else x.indent_content=!x.custom_beautifier_name,x.tag_start_char==="<"&&(x.tag_name==="html"?x.indent_content=this._options.indent_inner_html:x.tag_name==="head"?x.indent_content=this._options.indent_head_inner_html:x.tag_name==="body"&&(x.indent_content=this._options.indent_body_inner_html)),!(x.is_inline_element||x.is_unformatted)&&(C.type!=="TK_CONTENT"||x.is_content_unformatted)&&w.print_newline(!1),this._calcluate_parent_multiline(w,x)},K.prototype._calcluate_parent_multiline=function(w,_){_.parent&&w._output.just_added_newline()&&!((_.is_inline_element||_.is_unformatted)&&_.parent.is_inline_element)&&(_.parent.multiline_content=!0)};var W=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],Pe=["a","audio","del","ins","map","noscript","video"];K.prototype._do_optional_end_element=function(w){var _=null;if(!(w.is_empty_element||!w.is_start_tag||!w.parent)){if(w.tag_name==="body")_=_||this._tag_stack.try_pop("head");else if(w.tag_name==="li")_=_||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(w.tag_name==="dd"||w.tag_name==="dt")_=_||this._tag_stack.try_pop("dt",["dl"]),_=_||this._tag_stack.try_pop("dd",["dl"]);else if(w.parent.tag_name==="p"&&W.indexOf(w.tag_name)!==-1){var x=w.parent.parent;(!x||Pe.indexOf(x.tag_name)===-1)&&(_=_||this._tag_stack.try_pop("p"))}else w.tag_name==="rp"||w.tag_name==="rt"?(_=_||this._tag_stack.try_pop("rt",["ruby","rtc"]),_=_||this._tag_stack.try_pop("rp",["ruby","rtc"])):w.tag_name==="optgroup"?_=_||this._tag_stack.try_pop("optgroup",["select"]):w.tag_name==="option"?_=_||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):w.tag_name==="colgroup"?_=_||this._tag_stack.try_pop("caption",["table"]):w.tag_name==="thead"?(_=_||this._tag_stack.try_pop("caption",["table"]),_=_||this._tag_stack.try_pop("colgroup",["table"])):w.tag_name==="tbody"||w.tag_name==="tfoot"?(_=_||this._tag_stack.try_pop("caption",["table"]),_=_||this._tag_stack.try_pop("colgroup",["table"]),_=_||this._tag_stack.try_pop("thead",["table"]),_=_||this._tag_stack.try_pop("tbody",["table"])):w.tag_name==="tr"?(_=_||this._tag_stack.try_pop("caption",["table"]),_=_||this._tag_stack.try_pop("colgroup",["table"]),_=_||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(w.tag_name==="th"||w.tag_name==="td")&&(_=_||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),_=_||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return w.parent=this._tag_stack.get_parser_token(),_}},c.exports.Beautifier=K},function(c,t,r){var i=r(6).Options;function o(v){i.call(this,v,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}o.prototype=new i,c.exports.Options=o},function(c,t,r){var i=r(9).Tokenizer,o=r(9).TOKEN,v=r(13).Directives,b=r(14).TemplatablePattern,S=r(12).Pattern,p={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:o.START,RAW:o.RAW,EOF:o.EOF},m=new v(/<\!--/,/-->/),f=function(u,k){i.call(this,u,k),this._current_tag_name="";var I=new b(this._input).read_options(this._options),F=new S(this._input);if(this.__patterns={word:I.until(/[\n\r\t <]/),word_control_flow_close_excluded:I.until(/[\n\r\t <}]/),single_quote:I.until_after(/'/),double_quote:I.until_after(/"/),attribute:I.until(/[\n\r\t =>]|\/>/),element_name:I.until(/[\n\r\t >\/]/),angular_control_flow_start:F.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:F.starting_with(/{{!--/).until_after(/--}}/),handlebars:F.starting_with(/{{/).until_after(/}}/),handlebars_open:F.until(/[\n\r\t }]/),handlebars_raw_close:F.until(/}}/),comment:F.starting_with(/<!--/).until_after(/-->/),cdata:F.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:F.starting_with(/<!\[/).until_after(/]>/),processing:F.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var K=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=F.matching(K).until_after(K)}};f.prototype=new i,f.prototype._is_comment=function(u){return!1},f.prototype._is_opening=function(u){return u.type===p.TAG_OPEN||u.type===p.CONTROL_FLOW_OPEN},f.prototype._is_closing=function(u,k){return u.type===p.TAG_CLOSE&&k&&((u.text===">"||u.text==="/>")&&k.text[0]==="<"||u.text==="}}"&&k.text[0]==="{"&&k.text[1]==="{")||u.type===p.CONTROL_FLOW_CLOSE&&u.text==="}"&&k.text.endsWith("{")},f.prototype._reset=function(){this._current_tag_name=""},f.prototype._get_next_token=function(u,k){var I=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(p.EOF,""):(I=I||this._read_open_handlebars(F,k),I=I||this._read_attribute(F,u,k),I=I||this._read_close(F,k),I=I||this._read_script_and_style(F,u),I=I||this._read_control_flows(F,k),I=I||this._read_raw_content(F,u,k),I=I||this._read_content_word(F,k),I=I||this._read_comment_or_cdata(F),I=I||this._read_processing(F),I=I||this._read_open(F,k),I=I||this._create_token(p.UNKNOWN,this._input.next()),I)},f.prototype._read_comment_or_cdata=function(u){var k=null,I=null,F=null;if(u==="<"){var K=this._input.peek(1);K==="!"&&(I=this.__patterns.comment.read(),I?(F=m.get_directives(I),F&&F.ignore==="start"&&(I+=m.readIgnored(this._input))):I=this.__patterns.cdata.read()),I&&(k=this._create_token(p.COMMENT,I),k.directives=F)}return k},f.prototype._read_processing=function(u){var k=null,I=null,F=null;if(u==="<"){var K=this._input.peek(1);(K==="!"||K==="?")&&(I=this.__patterns.conditional_comment.read(),I=I||this.__patterns.processing.read()),I&&(k=this._create_token(p.COMMENT,I),k.directives=F)}return k},f.prototype._read_open=function(u,k){var I=null,F=null;return(!k||k.type===p.CONTROL_FLOW_OPEN)&&u==="<"&&(I=this._input.next(),this._input.peek()==="/"&&(I+=this._input.next()),I+=this.__patterns.element_name.read(),F=this._create_token(p.TAG_OPEN,I)),F},f.prototype._read_open_handlebars=function(u,k){var I=null,F=null;return(!k||k.type===p.CONTROL_FLOW_OPEN)&&(this._options.templating.includes("angular")||this._options.indent_handlebars)&&u==="{"&&this._input.peek(1)==="{"&&(this._options.indent_handlebars&&this._input.peek(2)==="!"?(I=this.__patterns.handlebars_comment.read(),I=I||this.__patterns.handlebars.read(),F=this._create_token(p.COMMENT,I)):(I=this.__patterns.handlebars_open.read(),F=this._create_token(p.TAG_OPEN,I))),F},f.prototype._read_control_flows=function(u,k){var I="",F=null;if(!this._options.templating.includes("angular"))return F;if(u==="@"){if(I=this.__patterns.angular_control_flow_start.read(),I==="")return F;for(var K=I.endsWith("(")?1:0,G=0;!(I.endsWith("{")&&K===G);){var W=this._input.next();if(W===null)break;W==="("?K++:W===")"&&G++,I+=W}F=this._create_token(p.CONTROL_FLOW_OPEN,I)}else u==="}"&&k&&k.type===p.CONTROL_FLOW_OPEN&&(I=this._input.next(),F=this._create_token(p.CONTROL_FLOW_CLOSE,I));return F},f.prototype._read_close=function(u,k){var I=null,F=null;return k&&k.type===p.TAG_OPEN&&(k.text[0]==="<"&&(u===">"||u==="/"&&this._input.peek(1)===">")?(I=this._input.next(),u==="/"&&(I+=this._input.next()),F=this._create_token(p.TAG_CLOSE,I)):k.text[0]==="{"&&u==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),F=this._create_token(p.TAG_CLOSE,"}}"))),F},f.prototype._read_attribute=function(u,k,I){var F=null,K="";if(I&&I.text[0]==="<")if(u==="=")F=this._create_token(p.EQUALS,this._input.next());else if(u==='"'||u==="'"){var G=this._input.next();u==='"'?G+=this.__patterns.double_quote.read():G+=this.__patterns.single_quote.read(),F=this._create_token(p.VALUE,G)}else K=this.__patterns.attribute.read(),K&&(k.type===p.EQUALS?F=this._create_token(p.VALUE,K):F=this._create_token(p.ATTRIBUTE,K));return F},f.prototype._is_content_unformatted=function(u){return this._options.void_elements.indexOf(u)===-1&&(this._options.content_unformatted.indexOf(u)!==-1||this._options.unformatted.indexOf(u)!==-1)},f.prototype._read_raw_content=function(u,k,I){var F="";if(I&&I.text[0]==="{")F=this.__patterns.handlebars_raw_close.read();else if(k.type===p.TAG_CLOSE&&k.opened.text[0]==="<"&&k.text[0]!=="/"){var K=k.opened.text.substr(1).toLowerCase();this._is_content_unformatted(K)&&(F=this._input.readUntil(new RegExp("</"+K+"[\\n\\r\\t ]*?>","ig")))}return F?this._create_token(p.TEXT,F):null},f.prototype._read_script_and_style=function(u,k){if(k.type===p.TAG_CLOSE&&k.opened.text[0]==="<"&&k.text[0]!=="/"){var I=k.opened.text.substr(1).toLowerCase();if(I==="script"||I==="style"){var F=this._read_comment_or_cdata(u);if(F)return F.type=p.TEXT,F;var K=this._input.readUntil(new RegExp("</"+I+"[\\n\\r\\t ]*?>","ig"));if(K)return this._create_token(p.TEXT,K)}}return null},f.prototype._read_content_word=function(u,k){var I="";return this._options.unformatted_content_delimiter&&u===this._options.unformatted_content_delimiter[0]&&(I=this.__patterns.unformatted_content_delimiter.read()),I||(I=k&&k.type===p.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),I?this._create_token(p.TEXT,I):null},c.exports.Tokenizer=f,c.exports.TOKEN=p}],$={};function e(c){var t=$[c];if(t!==void 0)return t.exports;var r=$[c]={exports:{}};return H[c](r,r.exports,e),r.exports}var s=e(18);j=s})();var X=j;if(1)T=[l,l(58553),l(87804)],A=function(H){var $=l(58553),e=l(87804);return{html_beautify:function(s,c){return X(s,c,$.js_beautify,e.css_beautify)}}}.apply(Ke,T),A!==void 0&&(Zt.exports=A);else var V,h})()},58553:function(Zt,Ke){var l,T;(function(){var A;(function(){"use strict";var X=[function($,e,s){var c=s(1).Beautifier,t=s(5).Options;function r(i,o){var v=new c(i,o);return v.beautify()}$.exports=r,$.exports.defaultOptions=function(){return new t}},function($,e,s){var c=s(2).Output,t=s(3).Token,r=s(4),i=s(5).Options,o=s(7).Tokenizer,v=s(7).line_starters,b=s(7).positionable_operators,S=s(7).TOKEN;function p(a,d){return d.indexOf(a)!==-1}function m(a){return a.replace(/^\s+/g,"")}function f(a){for(var d={},M=0;M<a.length;M++)d[a[M].replace(/-/g,"_")]=a[M];return d}function u(a,d){return a&&a.type===S.RESERVED&&a.text===d}function k(a,d){return a&&a.type===S.RESERVED&&p(a.text,d)}var I=["case","return","do","if","throw","else","await","break","continue","async"],F=["before-newline","after-newline","preserve-newline"],K=f(F),G=[K.before_newline,K.preserve_newline],W={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function Pe(a,d){d.multiline_frame||d.mode===W.ForInitializer||d.mode===W.Conditional||a.remove_indent(d.start_line_index)}function w(a){a=a.replace(r.allLineBreaks,`
|
|
`);for(var d=[],M=a.indexOf(`
|
|
`);M!==-1;)d.push(a.substring(0,M)),a=a.substring(M+1),M=a.indexOf(`
|
|
`);return a.length&&d.push(a),d}function _(a){return a===W.ArrayLiteral}function x(a){return p(a,[W.Expression,W.ForInitializer,W.Conditional])}function N(a,d){for(var M=0;M<a.length;M++){var ae=a[M].trim();if(ae.charAt(0)!==d)return!1}return!0}function C(a,d){for(var M=0,ae=a.length,he;M<ae;M++)if(he=a[M],he&&he.indexOf(d)!==0)return!1;return!0}function y(a,d){d=d||{},this._source_text=a||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new i(d)}y.prototype.create_flags=function(a,d){var M=0;a&&(M=a.indentation_level,!this._output.just_added_newline()&&a.line_indent_level>M&&(M=a.line_indent_level));var ae={mode:d,parent:a,last_token:a?a.last_token:new t(S.START_BLOCK,""),last_word:a?a.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:M,alignment:0,line_indent_level:a?a.line_indent_level:M,start_line_index:this._output.get_line_number(),ternary_depth:0};return ae},y.prototype._reset=function(a){var d=a.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new c(this._options,d),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(W.BlockStatement);var M=new o(a,this._options);return this._tokens=M.tokenize(),a},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var a,d=this._reset(this._source_text),M=this._options.eol;this._options.eol==="auto"&&(M=`
|
|
`,d&&r.lineBreak.test(d||"")&&(M=d.match(r.lineBreak)[0]));for(var ae=this._tokens.next();ae;)this.handle_token(ae),this._last_last_text=this._flags.last_token.text,this._flags.last_token=ae,ae=this._tokens.next();return a=this._output.get_code(M),a},y.prototype.handle_token=function(a,d){a.type===S.START_EXPR?this.handle_start_expr(a):a.type===S.END_EXPR?this.handle_end_expr(a):a.type===S.START_BLOCK?this.handle_start_block(a):a.type===S.END_BLOCK?this.handle_end_block(a):a.type===S.WORD?this.handle_word(a):a.type===S.RESERVED?this.handle_word(a):a.type===S.SEMICOLON?this.handle_semicolon(a):a.type===S.STRING?this.handle_string(a):a.type===S.EQUALS?this.handle_equals(a):a.type===S.OPERATOR?this.handle_operator(a):a.type===S.COMMA?this.handle_comma(a):a.type===S.BLOCK_COMMENT?this.handle_block_comment(a,d):a.type===S.COMMENT?this.handle_comment(a,d):a.type===S.DOT?this.handle_dot(a):a.type===S.EOF?this.handle_eof(a):a.type===S.UNKNOWN?this.handle_unknown(a,d):this.handle_unknown(a,d)},y.prototype.handle_whitespace_and_comments=function(a,d){var M=a.newlines,ae=this._options.keep_array_indentation&&_(this._flags.mode);if(a.comments_before)for(var he=a.comments_before.next();he;)this.handle_whitespace_and_comments(he,d),this.handle_token(he,d),he=a.comments_before.next();if(ae)for(var ge=0;ge<M;ge+=1)this.print_newline(ge>0,d);else if(this._options.max_preserve_newlines&&M>this._options.max_preserve_newlines&&(M=this._options.max_preserve_newlines),this._options.preserve_newlines&&M>1){this.print_newline(!1,d);for(var Ae=1;Ae<M;Ae+=1)this.print_newline(!0,d)}};var n=["async","break","continue","return","throw","yield"];y.prototype.allow_wrap_or_preserved_newline=function(a,d){if(d=d===void 0?!1:d,!this._output.just_added_newline()){var M=this._options.preserve_newlines&&a.newlines||d,ae=p(this._flags.last_token.text,b)||p(a.text,b);if(ae){var he=p(this._flags.last_token.text,b)&&p(this._options.operator_position,G)||p(a.text,b);M=M&&he}if(M)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(k(this._flags.last_token,n))return;this._output.set_wrap_point()}}},y.prototype.print_newline=function(a,d){if(!d&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==S.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var M=this._tokens.peek();this._flags.mode===W.Statement&&!(this._flags.if_block&&u(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(a)&&(this._flags.multiline_frame=!0)},y.prototype.print_token_line_indentation=function(a){this._output.just_added_newline()&&(this._options.keep_array_indentation&&a.newlines&&(a.text==="["||_(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(a.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},y.prototype.print_token=function(a){if(this._output.raw){this._output.add_raw_token(a);return}if(this._options.comma_first&&a.previous&&a.previous.type===S.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var d=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(d),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(a),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(a),this._output.non_breaking_space=!0,this._output.add_token(a.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},y.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},y.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},y.prototype.set_mode=function(a){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,a),this._flags=this.create_flags(this._previous_flags,a),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},y.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===W.Statement&&Pe(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},y.prototype.start_of_object_property=function(){return this._flags.parent.mode===W.ObjectLiteral&&this._flags.mode===W.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||k(this._flags.last_token,["get","set"]))},y.prototype.start_of_statement=function(a){var d=!1;return d=d||k(this._flags.last_token,["var","let","const"])&&a.type===S.WORD,d=d||u(this._flags.last_token,"do"),d=d||!(this._flags.parent.mode===W.ObjectLiteral&&this._flags.mode===W.Statement)&&k(this._flags.last_token,n)&&!a.newlines,d=d||u(this._flags.last_token,"else")&&!(u(a,"if")&&!a.comments_before),d=d||this._flags.last_token.type===S.END_EXPR&&(this._previous_flags.mode===W.ForInitializer||this._previous_flags.mode===W.Conditional),d=d||this._flags.last_token.type===S.WORD&&this._flags.mode===W.BlockStatement&&!this._flags.in_case&&!(a.text==="--"||a.text==="++")&&this._last_last_text!=="function"&&a.type!==S.WORD&&a.type!==S.RESERVED,d=d||this._flags.mode===W.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||k(this._flags.last_token,["get","set"])),d?(this.set_mode(W.Statement),this.indent(),this.handle_whitespace_and_comments(a,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a,k(a,["do","for","if","while"])),!0):!1},y.prototype.handle_start_expr=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a);var d=W.Expression;if(a.text==="["){if(this._flags.last_token.type===S.WORD||this._flags.last_token.text===")"){k(this._flags.last_token,v)&&(this._output.space_before_token=!0),this.print_token(a),this.set_mode(d),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}d=W.ArrayLiteral,_(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),p(this._flags.last_token.type,[S.START_EXPR,S.END_EXPR,S.WORD,S.OPERATOR,S.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===S.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,d=W.ForInitializer):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,d=W.Conditional):p(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&a.whitespace_before===""?this._output.space_before_token=!1:(p(this._flags.last_token.text,v)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===S.EQUALS||this._flags.last_token.type===S.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a);else if(this._flags.last_token.type===S.WORD){this._output.space_before_token=!1;var M=this._tokens.peek(-3);if(this._options.space_after_named_function&&M){var ae=this._tokens.peek(-4);k(M,["async","function"])||M.text==="*"&&k(ae,["async","function"])?this._output.space_before_token=!0:this._flags.mode===W.ObjectLiteral?(M.text==="{"||M.text===","||M.text==="*"&&(ae.text==="{"||ae.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(a);(this._flags.last_token.type===S.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===W.ObjectLiteral&&p(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===S.START_BLOCK?this.print_newline():(this._flags.last_token.type===S.END_EXPR||this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===S.COMMA)&&this.allow_wrap_or_preserved_newline(a,a.newlines),this.print_token(a),this.set_mode(d),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},y.prototype.handle_end_expr=function(a){for(;this._flags.mode===W.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(a,a.text==="]"&&_(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===S.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(a),this.restore_mode(),Pe(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===W.Conditional&&(this._previous_flags.mode=W.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},y.prototype.handle_start_block=function(a){this.handle_whitespace_and_comments(a);var d=this._tokens.peek(),M=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===S.END_EXPR?(this.set_mode(W.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(W.BlockStatement):M&&(p(M.text,[":",","])&&p(d.type,[S.STRING,S.WORD,S.RESERVED])||p(d.text,["get","set","..."])&&p(M.type,[S.WORD,S.RESERVED]))?p(this._last_last_text,["class","interface"])&&!p(M.text,[":",","])?this.set_mode(W.BlockStatement):this.set_mode(W.ObjectLiteral):this._flags.last_token.type===S.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(W.BlockStatement):p(this._flags.last_token.type,[S.EQUALS,S.START_EXPR,S.COMMA,S.OPERATOR])||k(this._flags.last_token,["return","throw","import","default"])?this.set_mode(W.ObjectLiteral):this.set_mode(W.BlockStatement),this._flags.last_token&&k(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var ae=!d.comments_before&&d.text==="}",he=ae&&this._flags.last_word==="function"&&this._flags.last_token.type===S.END_EXPR;if(this._options.brace_preserve_inline){var ge=0,Ae=null;this._flags.inline_frame=!0;do if(ge+=1,Ae=this._tokens.peek(ge-1),Ae.newlines){this._flags.inline_frame=!1;break}while(Ae.type!==S.EOF&&!(Ae.type===S.END_BLOCK&&Ae.opened===a))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==S.OPERATOR&&(he||this._flags.last_token.type===S.EQUALS||k(this._flags.last_token,I)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(_(this._previous_flags.mode)&&(this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.COMMA)&&((this._flags.last_token.type===S.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(a),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==S.OPERATOR&&this._flags.last_token.type!==S.START_EXPR&&(p(this._flags.last_token.type,[S.START_BLOCK,S.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(a),this.indent(),!ae&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},y.prototype.handle_end_block=function(a){for(this.handle_whitespace_and_comments(a);this._flags.mode===W.Statement;)this.restore_mode();var d=this._flags.last_token.type===S.START_BLOCK;this._flags.inline_frame&&!d?this._output.space_before_token=!0:this._options.brace_style==="expand"?d||this.print_newline():d||(_(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(a)},y.prototype.handle_word=function(a){if(a.type===S.RESERVED){if(p(a.text,["set","get"])&&this._flags.mode!==W.ObjectLiteral)a.type=S.WORD;else if(a.text==="import"&&p(this._tokens.peek().text,["(","."]))a.type=S.WORD;else if(p(a.text,["as","from"])&&!this._flags.import_block)a.type=S.WORD;else if(this._flags.mode===W.ObjectLiteral){var d=this._tokens.peek();d.text===":"&&(a.type=S.WORD)}}if(this.start_of_statement(a)?k(this._flags.last_token,["var","let","const"])&&a.type===S.WORD&&(this._flags.declaration_statement=!0):a.newlines&&!x(this._flags.mode)&&(this._flags.last_token.type!==S.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==S.EQUALS&&(this._options.preserve_newlines||!k(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(a),this.print_newline()):this.handle_whitespace_and_comments(a),this._flags.do_block&&!this._flags.do_while)if(u(a,"while")){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&u(a,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===W.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&k(a,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(a),this._flags.in_case=!0;return}if((this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.EQUALS||this._flags.last_token.type===S.OPERATOR)&&!this.start_of_object_property()&&!(p(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===W.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(a),u(a,"function")){(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(p(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===S.OPERATOR))&&!this._output.just_added_blankline()&&!a.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===S.RESERVED||this._flags.last_token.type===S.WORD?k(this._flags.last_token,["get","set","new","export"])||k(this._flags.last_token,n)?this._output.space_before_token=!0:u(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===S.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(x(this._flags.mode)||_(this._flags.mode))||this.print_newline(),this.print_token(a),this._flags.last_word=a.text;return}var M="NONE";if(this._flags.last_token.type===S.END_BLOCK?this._previous_flags.inline_frame?M="SPACE":k(a,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines?M="NEWLINE":(M="SPACE",this._output.space_before_token=!0):M="NEWLINE":this._flags.last_token.type===S.SEMICOLON&&this._flags.mode===W.BlockStatement?M="NEWLINE":this._flags.last_token.type===S.SEMICOLON&&x(this._flags.mode)?M="SPACE":this._flags.last_token.type===S.STRING?M="NEWLINE":this._flags.last_token.type===S.RESERVED||this._flags.last_token.type===S.WORD||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===W.ObjectLiteral&&p(this._last_last_text,["{",","]))?M="SPACE":this._flags.last_token.type===S.START_BLOCK?this._flags.inline_frame?M="SPACE":M="NEWLINE":this._flags.last_token.type===S.END_EXPR&&(this._output.space_before_token=!0,M="NEWLINE"),k(a,v)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?M="SPACE":M="NEWLINE"),k(a,["else","catch","finally"]))if((!(this._flags.last_token.type===S.END_BLOCK&&this._previous_flags.mode===W.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&a.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var ae=this._output.current_line;ae.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else M==="NEWLINE"?k(this._flags.last_token,I)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&k(a,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==S.END_EXPR?(this._flags.last_token.type!==S.START_EXPR||!k(a,["var","let","const"]))&&this._flags.last_token.text!==":"&&(u(a,"if")&&u(a.previous,"else")?this._output.space_before_token=!0:this.print_newline()):k(a,v)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&_(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():M==="SPACE"&&(this._output.space_before_token=!0);a.previous&&(a.previous.type===S.WORD||a.previous.type===S.RESERVED)&&(this._output.space_before_token=!0),this.print_token(a),this._flags.last_word=a.text,a.type===S.RESERVED&&(a.text==="do"?this._flags.do_block=!0:a.text==="if"?this._flags.if_block=!0:a.text==="import"?this._flags.import_block=!0:this._flags.import_block&&u(a,"from")&&(this._flags.import_block=!1))},y.prototype.handle_semicolon=function(a){this.start_of_statement(a)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(a);for(var d=this._tokens.peek();this._flags.mode===W.Statement&&!(this._flags.if_block&&u(d,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(a)},y.prototype.handle_string=function(a){a.text.startsWith("`")&&a.newlines===0&&a.whitespace_before===""&&(a.previous.text===")"||this._flags.last_token.type===S.WORD)||(this.start_of_statement(a)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(a),this._flags.last_token.type===S.RESERVED||this._flags.last_token.type===S.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR||this._flags.last_token.type===S.EQUALS||this._flags.last_token.type===S.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(a):a.text.startsWith("`")&&this._flags.last_token.type===S.END_EXPR&&(a.previous.text==="]"||a.previous.text===")")&&a.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(a)},y.prototype.handle_equals=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0},y.prototype.handle_comma=function(a){this.handle_whitespace_and_comments(a,!0),this.print_token(a),this._output.space_before_token=!0,this._flags.declaration_statement?(x(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)):this._flags.mode===W.ObjectLiteral||this._flags.mode===W.Statement&&this._flags.parent.mode===W.ObjectLiteral?(this._flags.mode===W.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(a)},y.prototype.handle_operator=function(a){var d=a.text==="*"&&(k(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[S.START_BLOCK,S.COMMA,S.END_BLOCK,S.SEMICOLON])),M=p(a.text,["-","+"])&&(p(this._flags.last_token.type,[S.START_BLOCK,S.START_EXPR,S.EQUALS,S.OPERATOR])||p(this._flags.last_token.text,v)||this._flags.last_token.text===",");if(!this.start_of_statement(a)){var ae=!d;this.handle_whitespace_and_comments(a,ae)}if(a.text==="*"&&this._flags.last_token.type===S.DOT){this.print_token(a);return}if(a.text==="::"){this.print_token(a);return}if(p(a.text,["-","+"])&&this.start_of_object_property()){this.print_token(a);return}if(this._flags.last_token.type===S.OPERATOR&&p(this._options.operator_position,G)&&this.allow_wrap_or_preserved_newline(a),a.text===":"&&this._flags.in_case){this.print_token(a),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==S.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var he=!0,ge=!0,Ae=!1;if(a.text===":"?this._flags.ternary_depth===0?he=!1:(this._flags.ternary_depth-=1,Ae=!0):a.text==="?"&&(this._flags.ternary_depth+=1),!M&&!d&&this._options.preserve_newlines&&p(a.text,b)){var We=a.text===":",vt=We&&Ae,ye=We&&!Ae;switch(this._options.operator_position){case K.before_newline:this._output.space_before_token=!ye,this.print_token(a),(!We||vt)&&this.allow_wrap_or_preserved_newline(a),this._output.space_before_token=!0;return;case K.after_newline:this._output.space_before_token=!0,!We||vt?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(a):this._output.space_before_token=!1,this.print_token(a),this._output.space_before_token=!0;return;case K.preserve_newline:ye||this.allow_wrap_or_preserved_newline(a),he=!(this._output.just_added_newline()||ye),this._output.space_before_token=he,this.print_token(a),this._output.space_before_token=!0;return}}if(d){this.allow_wrap_or_preserved_newline(a),he=!1;var Ve=this._tokens.peek();ge=Ve&&p(Ve.type,[S.WORD,S.RESERVED])}else if(a.text==="...")this.allow_wrap_or_preserved_newline(a),he=this._flags.last_token.type===S.START_BLOCK,ge=!1;else if(p(a.text,["--","++","!","~"])||M){if((this._flags.last_token.type===S.COMMA||this._flags.last_token.type===S.START_EXPR)&&this.allow_wrap_or_preserved_newline(a),he=!1,ge=!1,a.newlines&&(a.text==="--"||a.text==="++"||a.text==="~")){var dt=k(this._flags.last_token,I)&&a.newlines;dt&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(dt,!0)}this._flags.last_token.text===";"&&x(this._flags.mode)&&(he=!0),this._flags.last_token.type===S.RESERVED?he=!0:this._flags.last_token.type===S.END_EXPR?he=!(this._flags.last_token.text==="]"&&(a.text==="--"||a.text==="++")):this._flags.last_token.type===S.OPERATOR&&(he=p(a.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(a.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(ge=!0)),(this._flags.mode===W.BlockStatement&&!this._flags.inline_frame||this._flags.mode===W.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||he,this.print_token(a),this._output.space_before_token=ge},y.prototype.handle_block_comment=function(a,d){if(this._output.raw){this._output.add_raw_token(a),a.directives&&a.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(a.directives){this.print_newline(!1,d),this.print_token(a),a.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!r.newline.test(a.text)&&!a.newlines){this._output.space_before_token=!0,this.print_token(a),this._output.space_before_token=!0;return}else this.print_block_commment(a,d)},y.prototype.print_block_commment=function(a,d){var M=w(a.text),ae,he=!1,ge=!1,Ae=a.whitespace_before,We=Ae.length;if(this.print_newline(!1,d),this.print_token_line_indentation(a),this._output.add_token(M[0]),this.print_newline(!1,d),M.length>1){for(M=M.slice(1),he=N(M,"*"),ge=C(M,Ae),he&&(this._flags.alignment=1),ae=0;ae<M.length;ae++)he?(this.print_token_line_indentation(a),this._output.add_token(m(M[ae]))):ge&&M[ae]?(this.print_token_line_indentation(a),this._output.add_token(M[ae].substring(We))):(this._output.current_line.set_indent(-1),this._output.add_token(M[ae])),this.print_newline(!1,d);this._flags.alignment=0}},y.prototype.handle_comment=function(a,d){a.newlines?this.print_newline(!1,d):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(a),this.print_newline(!1,d)},y.prototype.handle_dot=function(a){this.start_of_statement(a)||this.handle_whitespace_and_comments(a,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),k(this._flags.last_token,I)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(a,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(a)},y.prototype.handle_unknown=function(a,d){this.print_token(a),a.text[a.text.length-1]===`
|
|
`&&this.print_newline(!1,d)},y.prototype.handle_eof=function(a){for(;this._flags.mode===W.Statement;)this.restore_mode();this.handle_whitespace_and_comments(a)},$.exports.Beautifier=y},function($){function e(t){this.__parent=t,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}e.prototype.clone_empty=function(){var t=new e(this.__parent);return t.set_indent(this.__indent_count,this.__alignment_count),t},e.prototype.item=function(t){return t<0?this.__items[this.__items.length+t]:this.__items[t]},e.prototype.has_match=function(t){for(var r=this.__items.length-1;r>=0;r--)if(this.__items[r].match(t))return!0;return!1},e.prototype.set_indent=function(t,r){this.is_empty()&&(this.__indent_count=t||0,this.__alignment_count=r||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},e.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},e.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},e.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var t=this.__parent.current_line;return t.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),t.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),t.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,t.__items[0]===" "&&(t.__items.splice(0,1),t.__character_count-=1),!0}return!1},e.prototype.is_empty=function(){return this.__items.length===0},e.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},e.prototype.push=function(t){this.__items.push(t);var r=t.lastIndexOf(`
|
|
`);r!==-1?this.__character_count=t.length-r:this.__character_count+=t.length},e.prototype.pop=function(){var t=null;return this.is_empty()||(t=this.__items.pop(),this.__character_count-=t.length),t},e.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},e.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},e.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},e.prototype.toString=function(){var t="";return this.is_empty()?this.__parent.indent_empty_lines&&(t=this.__parent.get_indent_string(this.__indent_count)):(t=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),t+=this.__items.join("")),t};function s(t,r){this.__cache=[""],this.__indent_size=t.indent_size,this.__indent_string=t.indent_char,t.indent_with_tabs||(this.__indent_string=new Array(t.indent_size+1).join(t.indent_char)),r=r||"",t.indent_level>0&&(r=new Array(t.indent_level+1).join(this.__indent_string)),this.__base_string=r,this.__base_string_length=r.length}s.prototype.get_indent_size=function(t,r){var i=this.__base_string_length;return r=r||0,t<0&&(i=0),i+=t*this.__indent_size,i+=r,i},s.prototype.get_indent_string=function(t,r){var i=this.__base_string;return r=r||0,t<0&&(t=0,i=""),r+=t*this.__indent_size,this.__ensure_cache(r),i+=this.__cache[r],i},s.prototype.__ensure_cache=function(t){for(;t>=this.__cache.length;)this.__add_column()},s.prototype.__add_column=function(){var t=this.__cache.length,r=0,i="";this.__indent_size&&t>=this.__indent_size&&(r=Math.floor(t/this.__indent_size),t-=r*this.__indent_size,i=new Array(r+1).join(this.__indent_string)),t&&(i+=new Array(t+1).join(" ")),this.__cache.push(i)};function c(t,r){this.__indent_cache=new s(t,r),this.raw=!1,this._end_with_newline=t.end_with_newline,this.indent_size=t.indent_size,this.wrap_line_length=t.wrap_line_length,this.indent_empty_lines=t.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new e(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}c.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},c.prototype.get_line_number=function(){return this.__lines.length},c.prototype.get_indent_string=function(t,r){return this.__indent_cache.get_indent_string(t,r)},c.prototype.get_indent_size=function(t,r){return this.__indent_cache.get_indent_size(t,r)},c.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},c.prototype.add_new_line=function(t){return this.is_empty()||!t&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},c.prototype.get_code=function(t){this.trim(!0);var r=this.current_line.pop();r&&(r[r.length-1]===`
|
|
`&&(r=r.replace(/\n+$/g,"")),this.current_line.push(r)),this._end_with_newline&&this.__add_outputline();var i=this.__lines.join(`
|
|
`);return t!==`
|
|
`&&(i=i.replace(/[\n]/g,t)),i},c.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},c.prototype.set_indent=function(t,r){return t=t||0,r=r||0,this.next_line.set_indent(t,r),this.__lines.length>1?(this.current_line.set_indent(t,r),!0):(this.current_line.set_indent(),!1)},c.prototype.add_raw_token=function(t){for(var r=0;r<t.newlines;r++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(t.whitespace_before),this.current_line.push(t.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},c.prototype.add_token=function(t){this.__add_space_before_token(),this.current_line.push(t),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},c.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},c.prototype.remove_indent=function(t){for(var r=this.__lines.length;t<r;)this.__lines[t]._remove_indent(),t++;this.current_line._remove_wrap_indent()},c.prototype.trim=function(t){for(t=t===void 0?!1:t,this.current_line.trim();t&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},c.prototype.just_added_newline=function(){return this.current_line.is_empty()},c.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},c.prototype.ensure_empty_line_above=function(t,r){for(var i=this.__lines.length-2;i>=0;){var o=this.__lines[i];if(o.is_empty())break;if(o.item(0).indexOf(t)!==0&&o.item(-1)!==r){this.__lines.splice(i+1,0,new e(this)),this.previous_line=this.__lines[this.__lines.length-2];break}i--}},$.exports.Output=c},function($){function e(s,c,t,r){this.type=s,this.text=c,this.comments_before=null,this.newlines=t||0,this.whitespace_before=r||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}$.exports.Token=e},function($,e){var s="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",c="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",t="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",r="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",i="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",o="(?:"+i+"|["+s+t+"])",v="(?:"+i+"|["+c+t+r+"])*";e.identifier=new RegExp(o+v,"g"),e.identifierStart=new RegExp(o),e.identifierMatch=new RegExp("(?:"+i+"|["+c+t+r+"])+");var b=/[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/;e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp(`\r
|
|
|`+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g")},function($,e,s){var c=s(6).Options,t=["before-newline","after-newline","preserve-newline"];function r(i){c.call(this,i,"js");var o=this.raw_options.brace_style||null;o==="expand-strict"?this.raw_options.brace_style="expand":o==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var v=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var b=0;b<v.length;b++)v[b]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=v[b];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",t),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}r.prototype=new c,$.exports.Options=r},function($){function e(t,r){this.raw_options=s(t,r),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}e.prototype._get_array=function(t,r){var i=this.raw_options[t],o=r||[];return typeof i=="object"?i!==null&&typeof i.concat=="function"&&(o=i.concat()):typeof i=="string"&&(o=i.split(/[^a-zA-Z0-9_\/\-]+/)),o},e.prototype._get_boolean=function(t,r){var i=this.raw_options[t],o=i===void 0?!!r:!!i;return o},e.prototype._get_characters=function(t,r){var i=this.raw_options[t],o=r||"";return typeof i=="string"&&(o=i.replace(/\\r/,"\r").replace(/\\n/,`
|
|
`).replace(/\\t/," ")),o},e.prototype._get_number=function(t,r){var i=this.raw_options[t];r=parseInt(r,10),isNaN(r)&&(r=0);var o=parseInt(i,10);return isNaN(o)&&(o=r),o},e.prototype._get_selection=function(t,r,i){var o=this._get_selection_list(t,r,i);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+t+`' can only be one of the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o[0]},e.prototype._get_selection_list=function(t,r,i){if(!r||r.length===0)throw new Error("Selection list cannot be empty.");if(i=i||[r[0]],!this._is_valid_selection(i,r))throw new Error("Invalid Default Value!");var o=this._get_array(t,i);if(!this._is_valid_selection(o,r))throw new Error("Invalid Option Value: The option '"+t+`' can contain only the following values:
|
|
`+r+`
|
|
You passed in: '`+this.raw_options[t]+"'");return o},e.prototype._is_valid_selection=function(t,r){return t.length&&r.length&&!t.some(function(i){return r.indexOf(i)===-1})};function s(t,r){var i={};t=c(t);var o;for(o in t)o!==r&&(i[o]=t[o]);if(r&&t[r])for(o in t[r])i[o]=t[r][o];return i}function c(t){var r={},i;for(i in t){var o=i.replace(/-/g,"_");r[o]=t[i]}return r}$.exports.Options=e,$.exports.normalizeOpts=c,$.exports.mergeOpts=s},function($,e,s){var c=s(8).InputScanner,t=s(9).Tokenizer,r=s(9).TOKEN,i=s(13).Directives,o=s(4),v=s(12).Pattern,b=s(14).TemplatablePattern;function S(N,C){return C.indexOf(N)!==-1}var p={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},m=new i(/\/\*/,/\*\//),f=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,u=/[0-9]/,k=/[^\d\.]/,I=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),F=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";F=F.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),F="\\?\\.(?!\\d) "+F,F=F.replace(/ /g,"|");var K=new RegExp(F),G="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),W=G.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),Pe=new RegExp("^(?:"+W.join("|")+")$"),w,_=function(N,C){t.call(this,N,C),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var y=new v(this._input),n=new b(this._input).read_options(this._options);this.__patterns={template:n,identifier:n.starting_with(o.identifier).matching(o.identifierMatch),number:y.matching(f),punct:y.matching(K),comment:y.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:y.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:y.matching(/<!--/),html_comment_end:y.matching(/-->/),include:y.starting_with(/#include/).until_after(o.lineBreak),shebang:y.starting_with(/#!/).until_after(o.lineBreak),xml:y.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:n.until(/['\\\n\r\u2028\u2029]/),double_quote:n.until(/["\\\n\r\u2028\u2029]/),template_text:n.until(/[`\\$]/),template_expression:n.until(/[`}\\]/)}};_.prototype=new t,_.prototype._is_comment=function(N){return N.type===p.COMMENT||N.type===p.BLOCK_COMMENT||N.type===p.UNKNOWN},_.prototype._is_opening=function(N){return N.type===p.START_BLOCK||N.type===p.START_EXPR},_.prototype._is_closing=function(N,C){return(N.type===p.END_BLOCK||N.type===p.END_EXPR)&&C&&(N.text==="]"&&C.text==="["||N.text===")"&&C.text==="("||N.text==="}"&&C.text==="{")},_.prototype._reset=function(){w=!1},_.prototype._get_next_token=function(N,C){var y=null;this._readWhitespace();var n=this._input.peek();return n===null?this._create_token(p.EOF,""):(y=y||this._read_non_javascript(n),y=y||this._read_string(n),y=y||this._read_pair(n,this._input.peek(1)),y=y||this._read_word(N),y=y||this._read_singles(n),y=y||this._read_comment(n),y=y||this._read_regexp(n,N),y=y||this._read_xml(n,N),y=y||this._read_punctuation(),y=y||this._create_token(p.UNKNOWN,this._input.next()),y)},_.prototype._read_word=function(N){var C;if(C=this.__patterns.identifier.read(),C!=="")return C=C.replace(o.allLineBreaks,`
|
|
`),!(N.type===p.DOT||N.type===p.RESERVED&&(N.text==="set"||N.text==="get"))&&Pe.test(C)?(C==="in"||C==="of")&&(N.type===p.WORD||N.type===p.STRING)?this._create_token(p.OPERATOR,C):this._create_token(p.RESERVED,C):this._create_token(p.WORD,C);if(C=this.__patterns.number.read(),C!=="")return this._create_token(p.WORD,C)},_.prototype._read_singles=function(N){var C=null;return N==="("||N==="["?C=this._create_token(p.START_EXPR,N):N===")"||N==="]"?C=this._create_token(p.END_EXPR,N):N==="{"?C=this._create_token(p.START_BLOCK,N):N==="}"?C=this._create_token(p.END_BLOCK,N):N===";"?C=this._create_token(p.SEMICOLON,N):N==="."&&k.test(this._input.peek(1))?C=this._create_token(p.DOT,N):N===","&&(C=this._create_token(p.COMMA,N)),C&&this._input.next(),C},_.prototype._read_pair=function(N,C){var y=null;return N==="#"&&C==="{"&&(y=this._create_token(p.START_BLOCK,N+C)),y&&(this._input.next(),this._input.next()),y},_.prototype._read_punctuation=function(){var N=this.__patterns.punct.read();if(N!=="")return N==="="?this._create_token(p.EQUALS,N):N==="?."?this._create_token(p.DOT,N):this._create_token(p.OPERATOR,N)},_.prototype._read_non_javascript=function(N){var C="";if(N==="#"){if(this._is_first_token()&&(C=this.__patterns.shebang.read(),C))return this._create_token(p.UNKNOWN,C.trim()+`
|
|
`);if(C=this.__patterns.include.read(),C)return this._create_token(p.UNKNOWN,C.trim()+`
|
|
`);N=this._input.next();var y="#";if(this._input.hasNext()&&this._input.testChar(u)){do N=this._input.next(),y+=N;while(this._input.hasNext()&&N!=="#"&&N!=="=");return N==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(y+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(y+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,y)}this._input.back()}else if(N==="<"&&this._is_first_token()){if(C=this.__patterns.html_comment_start.read(),C){for(;this._input.hasNext()&&!this._input.testChar(o.newline);)C+=this._input.next();return w=!0,this._create_token(p.COMMENT,C)}}else if(w&&N==="-"&&(C=this.__patterns.html_comment_end.read(),C))return w=!1,this._create_token(p.COMMENT,C);return null},_.prototype._read_comment=function(N){var C=null;if(N==="/"){var y="";if(this._input.peek(1)==="*"){y=this.__patterns.block_comment.read();var n=m.get_directives(y);n&&n.ignore==="start"&&(y+=m.readIgnored(this._input)),y=y.replace(o.allLineBreaks,`
|
|
`),C=this._create_token(p.BLOCK_COMMENT,y),C.directives=n}else this._input.peek(1)==="/"&&(y=this.__patterns.comment.read(),C=this._create_token(p.COMMENT,y))}return C},_.prototype._read_string=function(N){if(N==="`"||N==="'"||N==='"'){var C=this._input.next();return this.has_char_escapes=!1,N==="`"?C+=this._read_string_recursive("`",!0,"${"):C+=this._read_string_recursive(N),this.has_char_escapes&&this._options.unescape_strings&&(C=x(C)),this._input.peek()===N&&(C+=this._input.next()),C=C.replace(o.allLineBreaks,`
|
|
`),this._create_token(p.STRING,C)}return null},_.prototype._allow_regexp_or_xml=function(N){return N.type===p.RESERVED&&S(N.text,["return","case","throw","else","do","typeof","yield"])||N.type===p.END_EXPR&&N.text===")"&&N.opened.previous.type===p.RESERVED&&S(N.opened.previous.text,["if","while","for"])||S(N.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},_.prototype._read_regexp=function(N,C){if(N==="/"&&this._allow_regexp_or_xml(C)){for(var y=this._input.next(),n=!1,a=!1;this._input.hasNext()&&(n||a||this._input.peek()!==N)&&!this._input.testChar(o.newline);)y+=this._input.peek(),n?n=!1:(n=this._input.peek()==="\\",this._input.peek()==="["?a=!0:this._input.peek()==="]"&&(a=!1)),this._input.next();return this._input.peek()===N&&(y+=this._input.next(),y+=this._input.read(o.identifier)),this._create_token(p.STRING,y)}return null},_.prototype._read_xml=function(N,C){if(this._options.e4x&&N==="<"&&this._allow_regexp_or_xml(C)){var y="",n=this.__patterns.xml.read_match();if(n){for(var a=n[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),d=a.indexOf("{")===0,M=0;n;){var ae=!!n[1],he=n[2],ge=!!n[n.length-1]||he.slice(0,8)==="![CDATA[";if(!ge&&(he===a||d&&he.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(ae?--M:++M),y+=n[0],M<=0)break;n=this.__patterns.xml.read_match()}return n||(y+=this._input.match(/[\s\S]*/g)[0]),y=y.replace(o.allLineBreaks,`
|
|
`),this._create_token(p.STRING,y)}}return null};function x(N){for(var C="",y=0,n=new c(N),a=null;n.hasNext();)if(a=n.match(/([\s]|[^\\]|\\\\)+/g),a&&(C+=a[0]),n.peek()==="\\"){if(n.next(),n.peek()==="x")a=n.match(/x([0-9A-Fa-f]{2})/g);else if(n.peek()==="u")a=n.match(/u([0-9A-Fa-f]{4})/g),a||(a=n.match(/u\{([0-9A-Fa-f]+)\}/g));else{C+="\\",n.hasNext()&&(C+=n.next());continue}if(!a||(y=parseInt(a[1],16),y>126&&y<=255&&a[0].indexOf("x")===0))return N;y>=0&&y<32||y>1114111?C+="\\"+a[0]:y===34||y===39||y===92?C+="\\"+String.fromCharCode(y):C+=String.fromCharCode(y)}return C}_.prototype._read_string_recursive=function(N,C,y){var n,a;N==="'"?a=this.__patterns.single_quote:N==='"'?a=this.__patterns.double_quote:N==="`"?a=this.__patterns.template_text:N==="}"&&(a=this.__patterns.template_expression);for(var d=a.read(),M="";this._input.hasNext();){if(M=this._input.next(),M===N||!C&&o.newline.test(M)){this._input.back();break}else M==="\\"&&this._input.hasNext()?(n=this._input.peek(),n==="x"||n==="u"?this.has_char_escapes=!0:n==="\r"&&this._input.peek(1)===`
|
|
`&&this._input.next(),M+=this._input.next()):y&&(y==="${"&&M==="$"&&this._input.peek()==="{"&&(M+=this._input.next()),y===M&&(N==="`"?M+=this._read_string_recursive("}",C,"`"):M+=this._read_string_recursive("`",C,"${"),this._input.hasNext()&&(M+=this._input.next())));M+=a.read(),d+=M}return d},$.exports.Tokenizer=_,$.exports.TOKEN=p,$.exports.positionable_operators=I.slice(),$.exports.line_starters=G.slice()},function($){var e=RegExp.prototype.hasOwnProperty("sticky");function s(c){this.__input=c||"",this.__input_length=this.__input.length,this.__position=0}s.prototype.restart=function(){this.__position=0},s.prototype.back=function(){this.__position>0&&(this.__position-=1)},s.prototype.hasNext=function(){return this.__position<this.__input_length},s.prototype.next=function(){var c=null;return this.hasNext()&&(c=this.__input.charAt(this.__position),this.__position+=1),c},s.prototype.peek=function(c){var t=null;return c=c||0,c+=this.__position,c>=0&&c<this.__input_length&&(t=this.__input.charAt(c)),t},s.prototype.__match=function(c,t){c.lastIndex=t;var r=c.exec(this.__input);return r&&!(e&&c.sticky)&&r.index!==t&&(r=null),r},s.prototype.test=function(c,t){return t=t||0,t+=this.__position,t>=0&&t<this.__input_length?!!this.__match(c,t):!1},s.prototype.testChar=function(c,t){var r=this.peek(t);return c.lastIndex=0,r!==null&&c.test(r)},s.prototype.match=function(c){var t=this.__match(c,this.__position);return t?this.__position+=t[0].length:t=null,t},s.prototype.read=function(c,t,r){var i="",o;return c&&(o=this.match(c),o&&(i+=o[0])),t&&(o||!c)&&(i+=this.readUntil(t,r)),i},s.prototype.readUntil=function(c,t){var r="",i=this.__position;c.lastIndex=this.__position;var o=c.exec(this.__input);return o?(i=o.index,t&&(i+=o[0].length)):i=this.__input_length,r=this.__input.substring(this.__position,i),this.__position=i,r},s.prototype.readUntilAfter=function(c){return this.readUntil(c,!0)},s.prototype.get_regexp=function(c,t){var r=null,i="g";return t&&e&&(i="y"),typeof c=="string"&&c!==""?r=new RegExp(c,i):c&&(r=new RegExp(c.source,i)),r},s.prototype.get_literal_regexp=function(c){return RegExp(c.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},s.prototype.peekUntilAfter=function(c){var t=this.__position,r=this.readUntilAfter(c);return this.__position=t,r},s.prototype.lookBack=function(c){var t=this.__position-1;return t>=c.length&&this.__input.substring(t-c.length,t).toLowerCase()===c},$.exports.InputScanner=s},function($,e,s){var c=s(8).InputScanner,t=s(3).Token,r=s(10).TokenStream,i=s(11).WhitespacePattern,o={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},v=function(b,S){this._input=new c(b),this._options=S||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new i(this._input)};v.prototype.tokenize=function(){this._input.restart(),this.__tokens=new r,this._reset();for(var b,S=new t(o.START,""),p=null,m=[],f=new r;S.type!==o.EOF;){for(b=this._get_next_token(S,p);this._is_comment(b);)f.add(b),b=this._get_next_token(S,p);f.isEmpty()||(b.comments_before=f,f=new r),b.parent=p,this._is_opening(b)?(m.push(p),p=b):p&&this._is_closing(b,p)&&(b.opened=p,p.closed=b,p=m.pop(),b.parent=p),b.previous=S,S.next=b,this.__tokens.add(b),S=b}return this.__tokens},v.prototype._is_first_token=function(){return this.__tokens.isEmpty()},v.prototype._reset=function(){},v.prototype._get_next_token=function(b,S){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(o.RAW,p):this._create_token(o.EOF,"")},v.prototype._is_comment=function(b){return!1},v.prototype._is_opening=function(b){return!1},v.prototype._is_closing=function(b,S){return!1},v.prototype._create_token=function(b,S){var p=new t(b,S,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},v.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},$.exports.Tokenizer=v,$.exports.TOKEN=o},function($){function e(s){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=s}e.prototype.restart=function(){this.__position=0},e.prototype.isEmpty=function(){return this.__tokens_length===0},e.prototype.hasNext=function(){return this.__position<this.__tokens_length},e.prototype.next=function(){var s=null;return this.hasNext()&&(s=this.__tokens[this.__position],this.__position+=1),s},e.prototype.peek=function(s){var c=null;return s=s||0,s+=this.__position,s>=0&&s<this.__tokens_length&&(c=this.__tokens[s]),c},e.prototype.add=function(s){this.__parent_token&&(s.parent=this.__parent_token),this.__tokens.push(s),this.__tokens_length+=1},$.exports.TokenStream=e},function($,e,s){var c=s(12).Pattern;function t(r,i){c.call(this,r,i),i?this._line_regexp=this._input.get_regexp(i._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}t.prototype=new c,t.prototype.__set_whitespace_patterns=function(r,i){r+="\\t ",i+="\\n\\r",this._match_pattern=this._input.get_regexp("["+r+i+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+i+"]")},t.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var r=this._input.read(this._match_pattern);if(r===" ")this.whitespace_before_token=" ";else if(r){var i=this.__split(this._newline_regexp,r);this.newline_count=i.length-1,this.whitespace_before_token=i[this.newline_count]}return r},t.prototype.matching=function(r,i){var o=this._create();return o.__set_whitespace_patterns(r,i),o._update(),o},t.prototype._create=function(){return new t(this._input,this)},t.prototype.__split=function(r,i){r.lastIndex=0;for(var o=0,v=[],b=r.exec(i);b;)v.push(i.substring(o,b.index)),o=b.index+b[0].length,b=r.exec(i);return o<i.length?v.push(i.substring(o,i.length)):v.push(""),v},$.exports.WhitespacePattern=t},function($){function e(s,c){this._input=s,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,c&&(this._starting_pattern=this._input.get_regexp(c._starting_pattern,!0),this._match_pattern=this._input.get_regexp(c._match_pattern,!0),this._until_pattern=this._input.get_regexp(c._until_pattern),this._until_after=c._until_after)}e.prototype.read=function(){var s=this._input.read(this._starting_pattern);return(!this._starting_pattern||s)&&(s+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),s},e.prototype.read_match=function(){return this._input.match(this._match_pattern)},e.prototype.until_after=function(s){var c=this._create();return c._until_after=!0,c._until_pattern=this._input.get_regexp(s),c._update(),c},e.prototype.until=function(s){var c=this._create();return c._until_after=!1,c._until_pattern=this._input.get_regexp(s),c._update(),c},e.prototype.starting_with=function(s){var c=this._create();return c._starting_pattern=this._input.get_regexp(s,!0),c._update(),c},e.prototype.matching=function(s){var c=this._create();return c._match_pattern=this._input.get_regexp(s,!0),c._update(),c},e.prototype._create=function(){return new e(this._input,this)},e.prototype._update=function(){},$.exports.Pattern=e},function($){function e(s,c){s=typeof s=="string"?s:s.source,c=typeof c=="string"?c:c.source,this.__directives_block_pattern=new RegExp(s+/ beautify( \w+[:]\w+)+ /.source+c,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(s+/\sbeautify\signore:end\s/.source+c,"g")}e.prototype.get_directives=function(s){if(!s.match(this.__directives_block_pattern))return null;var c={};this.__directive_pattern.lastIndex=0;for(var t=this.__directive_pattern.exec(s);t;)c[t[1]]=t[2],t=this.__directive_pattern.exec(s);return c},e.prototype.readIgnored=function(s){return s.readUntilAfter(this.__directives_end_ignore_pattern)},$.exports.Directives=e},function($,e,s){var c=s(12).Pattern,t={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function r(i,o){c.call(this,i,o),this.__template_pattern=null,this._disabled=Object.assign({},t),this._excluded=Object.assign({},t),o&&(this.__template_pattern=this._input.get_regexp(o.__template_pattern),this._excluded=Object.assign(this._excluded,o._excluded),this._disabled=Object.assign(this._disabled,o._disabled));var v=new c(i);this.__patterns={handlebars_comment:v.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:v.starting_with(/{{{/).until_after(/}}}/),handlebars:v.starting_with(/{{/).until_after(/}}/),php:v.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:v.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:v.starting_with(/{%/).until_after(/%}/),django_value:v.starting_with(/{{/).until_after(/}}/),django_comment:v.starting_with(/{#/).until_after(/#}/),smarty:v.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:v.starting_with(/{\*/).until_after(/\*}/),smarty_literal:v.starting_with(/{literal}/).until_after(/{\/literal}/)}}r.prototype=new c,r.prototype._create=function(){return new r(this._input,this)},r.prototype._update=function(){this.__set_templated_pattern()},r.prototype.disable=function(i){var o=this._create();return o._disabled[i]=!0,o._update(),o},r.prototype.read_options=function(i){var o=this._create();for(var v in t)o._disabled[v]=i.templating.indexOf(v)===-1;return o._update(),o},r.prototype.exclude=function(i){var o=this._create();return o._excluded[i]=!0,o._update(),o},r.prototype.read=function(){var i="";this._match_pattern?i=this._input.read(this._starting_pattern):i=this._input.read(this._starting_pattern,this.__template_pattern);for(var o=this._read_template();o;)this._match_pattern?o+=this._input.read(this._match_pattern):o+=this._input.readUntil(this.__template_pattern),i+=o,o=this._read_template();return this._until_after&&(i+=this._input.readUntilAfter(this._until_pattern)),i},r.prototype.__set_templated_pattern=function(){var i=[];this._disabled.php||i.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.angular||i.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||i.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(i.push(this.__patterns.django._starting_pattern.source),i.push(this.__patterns.django_value._starting_pattern.source),i.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||i.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&i.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+i.join("|")+")")},r.prototype._read_template=function(){var i="",o=this._input.peek();if(o==="<"){var v=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&v==="?"&&(i=i||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&v==="%"&&(i=i||this.__patterns.erb.read())}else o==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(i=i||this.__patterns.handlebars_comment.read(),i=i||this.__patterns.handlebars_unescaped.read(),i=i||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(i=i||this.__patterns.django_value.read()),this._excluded.django||(i=i||this.__patterns.django_comment.read(),i=i||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(i=i||this.__patterns.smarty_comment.read(),i=i||this.__patterns.smarty_literal.read(),i=i||this.__patterns.smarty.read()));return i},$.exports.TemplatablePattern=r}],V={};function h($){var e=V[$];if(e!==void 0)return e.exports;var s=V[$]={exports:{}};return X[$](s,s.exports,h),s.exports}var H=h(0);A=H})();var j=A;l=[],T=function(){return{js_beautify:j}}.apply(Ke,l),T!==void 0&&(Zt.exports=T)})()},75918:function(Zt,Ke,l){"use strict";l.d(Ke,{Wi:function(){return h},Z0:function(){return H},aU:function(){return V},eZ:function(){return e},wY:function(){return $}});var T=l(4348),A=l(69323),j=l(13268),X=function(s,c,t,r){function i(o){return o instanceof t?o:new t(function(v){v(o)})}return new(t||(t=Promise))(function(o,v){function b(m){try{p(r.next(m))}catch(f){v(f)}}function S(m){try{p(r.throw(m))}catch(f){v(f)}}function p(m){m.done?o(m.value):i(m.value).then(b,S)}p((r=r.apply(s,c||[])).next())})};class V extends A.JT{constructor(c,t="",r="",i=!0,o){super(),this._onDidChange=this._register(new T.Q5),this.onDidChange=this._onDidChange.event,this._enabled=!0,this._id=c,this._label=t,this._cssClass=r,this._enabled=i,this._actionCallback=o}get id(){return this._id}get label(){return this._label}set label(c){this._setLabel(c)}_setLabel(c){this._label!==c&&(this._label=c,this._onDidChange.fire({label:c}))}get tooltip(){return this._tooltip||""}set tooltip(c){this._setTooltip(c)}_setTooltip(c){this._tooltip!==c&&(this._tooltip=c,this._onDidChange.fire({tooltip:c}))}get class(){return this._cssClass}set class(c){this._setClass(c)}_setClass(c){this._cssClass!==c&&(this._cssClass=c,this._onDidChange.fire({class:c}))}get enabled(){return this._enabled}set enabled(c){this._setEnabled(c)}_setEnabled(c){this._enabled!==c&&(this._enabled=c,this._onDidChange.fire({enabled:c}))}get checked(){return this._checked}set checked(c){this._setChecked(c)}_setChecked(c){this._checked!==c&&(this._checked=c,this._onDidChange.fire({checked:c}))}run(c,t){return X(this,void 0,void 0,function*(){this._actionCallback&&(yield this._actionCallback(c))})}}class h extends A.JT{constructor(){super(...arguments),this._onBeforeRun=this._register(new T.Q5),this.onBeforeRun=this._onBeforeRun.event,this._onDidRun=this._register(new T.Q5),this.onDidRun=this._onDidRun.event}run(c,t){return X(this,void 0,void 0,function*(){if(!c.enabled)return;this._onBeforeRun.fire({action:c});let r;try{yield this.runAction(c,t)}catch(i){r=i}this._onDidRun.fire({action:c,error:r})})}runAction(c,t){return X(this,void 0,void 0,function*(){yield c.run(t)})}}class H extends V{constructor(c){super(H.ID,c,c?"separator text":"separator"),this.checked=!1,this.enabled=!1}}H.ID="vs.actions.separator";class ${constructor(c,t,r,i){this.tooltip="",this.enabled=!0,this.checked=!1,this.id=c,this.label=t,this.class=i,this._actions=r}get actions(){return this._actions}dispose(){}run(){return X(this,void 0,void 0,function*(){})}}class e extends V{constructor(){super(e.ID,j.N("submenu.empty","(empty)"),void 0,!1)}}e.ID="vs.actions.empty"},76068:function(Zt,Ke,l){"use strict";l.d(Ke,{ok:function(){return T}});function T(A,j){if(!A)throw new Error(j?`Assertion failed (${j})`:"Assertion Failed")}},52615:function(Zt,Ke,l){"use strict";l.d(Ke,{CM:function(){return V},JL:function(){return h},dT:function(){return $},fK:function(){return X},lA:function(){return H}});var T=l(4348);class A{constructor(){this._icons=new Map,this._onDidRegister=new T.Q5}add(s){const c=this._icons.get(s.id);c?s.description?c.description=s.description:console.error(`Duplicate registration of codicon ${s.id}`):(this._icons.set(s.id,s),this._onDidRegister.fire(s))}get(s){return this._icons.get(s)}get all(){return this._icons.values()}get onDidRegister(){return this._onDidRegister.event}}const j=new A,X=j;function V(e,s){return new H(e,s)}function h(e){return e?e.replace(/\$\((.*?)\)/g,(s,c)=>` ${c} `).trim():""}class H{constructor(s,c,t){this.id=s,this.definition=c,this.description=t,j.add(this)}get classNames(){return"codicon codicon-"+this.id}get classNamesArray(){return["codicon","codicon-"+this.id]}get cssSelector(){return".codicon.codicon-"+this.id}}var $;(function(e){e.iconNameSegment="[A-Za-z0-9]+",e.iconNameExpression="[A-Za-z0-9\\-]+",e.iconModifierExpression="~[A-Za-z]+";const s=new RegExp(`^(${e.iconNameExpression})(${e.iconModifierExpression})?$`);function c(i){if(i instanceof H)return["codicon","codicon-"+i.id];const o=s.exec(i.id);if(!o)return c(H.error);let[,v,b]=o;const S=["codicon","codicon-"+v];return b&&S.push("codicon-modifier-"+b.substr(1)),S}e.asClassNameArray=c;function t(i){return c(i).join(" ")}e.asClassName=t;function r(i){return"."+c(i).join(".")}e.asCSSSelector=r})($||($={})),function(e){e.add=new e("add",{fontCharacter:"\\ea60"}),e.plus=new e("plus",e.add.definition),e.gistNew=new e("gist-new",e.add.definition),e.repoCreate=new e("repo-create",e.add.definition),e.lightbulb=new e("lightbulb",{fontCharacter:"\\ea61"}),e.lightBulb=new e("light-bulb",{fontCharacter:"\\ea61"}),e.repo=new e("repo",{fontCharacter:"\\ea62"}),e.repoDelete=new e("repo-delete",{fontCharacter:"\\ea62"}),e.gistFork=new e("gist-fork",{fontCharacter:"\\ea63"}),e.repoForked=new e("repo-forked",{fontCharacter:"\\ea63"}),e.gitPullRequest=new e("git-pull-request",{fontCharacter:"\\ea64"}),e.gitPullRequestAbandoned=new e("git-pull-request-abandoned",{fontCharacter:"\\ea64"}),e.recordKeys=new e("record-keys",{fontCharacter:"\\ea65"}),e.keyboard=new e("keyboard",{fontCharacter:"\\ea65"}),e.tag=new e("tag",{fontCharacter:"\\ea66"}),e.tagAdd=new e("tag-add",{fontCharacter:"\\ea66"}),e.tagRemove=new e("tag-remove",{fontCharacter:"\\ea66"}),e.person=new e("person",{fontCharacter:"\\ea67"}),e.personFollow=new e("person-follow",{fontCharacter:"\\ea67"}),e.personOutline=new e("person-outline",{fontCharacter:"\\ea67"}),e.personFilled=new e("person-filled",{fontCharacter:"\\ea67"}),e.gitBranch=new e("git-branch",{fontCharacter:"\\ea68"}),e.gitBranchCreate=new e("git-branch-create",{fontCharacter:"\\ea68"}),e.gitBranchDelete=new e("git-branch-delete",{fontCharacter:"\\ea68"}),e.sourceControl=new e("source-control",{fontCharacter:"\\ea68"}),e.mirror=new e("mirror",{fontCharacter:"\\ea69"}),e.mirrorPublic=new e("mirror-public",{fontCharacter:"\\ea69"}),e.star=new e("star",{fontCharacter:"\\ea6a"}),e.starAdd=new e("star-add",{fontCharacter:"\\ea6a"}),e.starDelete=new e("star-delete",{fontCharacter:"\\ea6a"}),e.starEmpty=new e("star-empty",{fontCharacter:"\\ea6a"}),e.comment=new e("comment",{fontCharacter:"\\ea6b"}),e.commentAdd=new e("comment-add",{fontCharacter:"\\ea6b"}),e.alert=new e("alert",{fontCharacter:"\\ea6c"}),e.warning=new e("warning",{fontCharacter:"\\ea6c"}),e.search=new e("search",{fontCharacter:"\\ea6d"}),e.searchSave=new e("search-save",{fontCharacter:"\\ea6d"}),e.logOut=new e("log-out",{fontCharacter:"\\ea6e"}),e.signOut=new e("sign-out",{fontCharacter:"\\ea6e"}),e.logIn=new e("log-in",{fontCharacter:"\\ea6f"}),e.signIn=new e("sign-in",{fontCharacter:"\\ea6f"}),e.eye=new e("eye",{fontCharacter:"\\ea70"}),e.eyeUnwatch=new e("eye-unwatch",{fontCharacter:"\\ea70"}),e.eyeWatch=new e("eye-watch",{fontCharacter:"\\ea70"}),e.circleFilled=new e("circle-filled",{fontCharacter:"\\ea71"}),e.primitiveDot=new e("primitive-dot",{fontCharacter:"\\ea71"}),e.closeDirty=new e("close-dirty",{fontCharacter:"\\ea71"}),e.debugBreakpoint=new e("debug-breakpoint",{fontCharacter:"\\ea71"}),e.debugBreakpointDisabled=new e("debug-breakpoint-disabled",{fontCharacter:"\\ea71"}),e.debugHint=new e("debug-hint",{fontCharacter:"\\ea71"}),e.primitiveSquare=new e("primitive-square",{fontCharacter:"\\ea72"}),e.edit=new e("edit",{fontCharacter:"\\ea73"}),e.pencil=new e("pencil",{fontCharacter:"\\ea73"}),e.info=new e("info",{fontCharacter:"\\ea74"}),e.issueOpened=new e("issue-opened",{fontCharacter:"\\ea74"}),e.gistPrivate=new e("gist-private",{fontCharacter:"\\ea75"}),e.gitForkPrivate=new e("git-fork-private",{fontCharacter:"\\ea75"}),e.lock=new e("lock",{fontCharacter:"\\ea75"}),e.mirrorPrivate=new e("mirror-private",{fontCharacter:"\\ea75"}),e.close=new e("close",{fontCharacter:"\\ea76"}),e.removeClose=new e("remove-close",{fontCharacter:"\\ea76"}),e.x=new e("x",{fontCharacter:"\\ea76"}),e.repoSync=new e("repo-sync",{fontCharacter:"\\ea77"}),e.sync=new e("sync",{fontCharacter:"\\ea77"}),e.clone=new e("clone",{fontCharacter:"\\ea78"}),e.desktopDownload=new e("desktop-download",{fontCharacter:"\\ea78"}),e.beaker=new e("beaker",{fontCharacter:"\\ea79"}),e.microscope=new e("microscope",{fontCharacter:"\\ea79"}),e.vm=new e("vm",{fontCharacter:"\\ea7a"}),e.deviceDesktop=new e("device-desktop",{fontCharacter:"\\ea7a"}),e.file=new e("file",{fontCharacter:"\\ea7b"}),e.fileText=new e("file-text",{fontCharacter:"\\ea7b"}),e.more=new e("more",{fontCharacter:"\\ea7c"}),e.ellipsis=new e("ellipsis",{fontCharacter:"\\ea7c"}),e.kebabHorizontal=new e("kebab-horizontal",{fontCharacter:"\\ea7c"}),e.mailReply=new e("mail-reply",{fontCharacter:"\\ea7d"}),e.reply=new e("reply",{fontCharacter:"\\ea7d"}),e.organization=new e("organization",{fontCharacter:"\\ea7e"}),e.organizationFilled=new e("organization-filled",{fontCharacter:"\\ea7e"}),e.organizationOutline=new e("organization-outline",{fontCharacter:"\\ea7e"}),e.newFile=new e("new-file",{fontCharacter:"\\ea7f"}),e.fileAdd=new e("file-add",{fontCharacter:"\\ea7f"}),e.newFolder=new e("new-folder",{fontCharacter:"\\ea80"}),e.fileDirectoryCreate=new e("file-directory-create",{fontCharacter:"\\ea80"}),e.trash=new e("trash",{fontCharacter:"\\ea81"}),e.trashcan=new e("trashcan",{fontCharacter:"\\ea81"}),e.history=new e("history",{fontCharacter:"\\ea82"}),e.clock=new e("clock",{fontCharacter:"\\ea82"}),e.folder=new e("folder",{fontCharacter:"\\ea83"}),e.fileDirectory=new e("file-directory",{fontCharacter:"\\ea83"}),e.symbolFolder=new e("symbol-folder",{fontCharacter:"\\ea83"}),e.logoGithub=new e("logo-github",{fontCharacter:"\\ea84"}),e.markGithub=new e("mark-github",{fontCharacter:"\\ea84"}),e.github=new e("github",{fontCharacter:"\\ea84"}),e.terminal=new e("terminal",{fontCharacter:"\\ea85"}),e.console=new e("console",{fontCharacter:"\\ea85"}),e.repl=new e("repl",{fontCharacter:"\\ea85"}),e.zap=new e("zap",{fontCharacter:"\\ea86"}),e.symbolEvent=new e("symbol-event",{fontCharacter:"\\ea86"}),e.error=new e("error",{fontCharacter:"\\ea87"}),e.stop=new e("stop",{fontCharacter:"\\ea87"}),e.variable=new e("variable",{fontCharacter:"\\ea88"}),e.symbolVariable=new e("symbol-variable",{fontCharacter:"\\ea88"}),e.array=new e("array",{fontCharacter:"\\ea8a"}),e.symbolArray=new e("symbol-array",{fontCharacter:"\\ea8a"}),e.symbolModule=new e("symbol-module",{fontCharacter:"\\ea8b"}),e.symbolPackage=new e("symbol-package",{fontCharacter:"\\ea8b"}),e.symbolNamespace=new e("symbol-namespace",{fontCharacter:"\\ea8b"}),e.symbolObject=new e("symbol-object",{fontCharacter:"\\ea8b"}),e.symbolMethod=new e("symbol-method",{fontCharacter:"\\ea8c"}),e.symbolFunction=new e("symbol-function",{fontCharacter:"\\ea8c"}),e.symbolConstructor=new e("symbol-constructor",{fontCharacter:"\\ea8c"}),e.symbolBoolean=new e("symbol-boolean",{fontCharacter:"\\ea8f"}),e.symbolNull=new e("symbol-null",{fontCharacter:"\\ea8f"}),e.symbolNumeric=new e("symbol-numeric",{fontCharacter:"\\ea90"}),e.symbolNumber=new e("symbol-number",{fontCharacter:"\\ea90"}),e.symbolStructure=new e("symbol-structure",{fontCharacter:"\\ea91"}),e.symbolStruct=new e("symbol-struct",{fontCharacter:"\\ea91"}),e.symbolParameter=new e("symbol-parameter",{fontCharacter:"\\ea92"}),e.symbolTypeParameter=new e("symbol-type-parameter",{fontCharacter:"\\ea92"}),e.symbolKey=new e("symbol-key",{fontCharacter:"\\ea93"}),e.symbolText=new e("symbol-text",{fontCharacter:"\\ea93"}),e.symbolReference=new e("symbol-reference",{fontCharacter:"\\ea94"}),e.goToFile=new e("go-to-file",{fontCharacter:"\\ea94"}),e.symbolEnum=new e("symbol-enum",{fontCharacter:"\\ea95"}),e.symbolValue=new e("symbol-value",{fontCharacter:"\\ea95"}),e.symbolRuler=new e("symbol-ruler",{fontCharacter:"\\ea96"}),e.symbolUnit=new e("symbol-unit",{fontCharacter:"\\ea96"}),e.activateBreakpoints=new e("activate-breakpoints",{fontCharacter:"\\ea97"}),e.archive=new e("archive",{fontCharacter:"\\ea98"}),e.arrowBoth=new e("arrow-both",{fontCharacter:"\\ea99"}),e.arrowDown=new e("arrow-down",{fontCharacter:"\\ea9a"}),e.arrowLeft=new e("arrow-left",{fontCharacter:"\\ea9b"}),e.arrowRight=new e("arrow-right",{fontCharacter:"\\ea9c"}),e.arrowSmallDown=new e("arrow-small-down",{fontCharacter:"\\ea9d"}),e.arrowSmallLeft=new e("arrow-small-left",{fontCharacter:"\\ea9e"}),e.arrowSmallRight=new e("arrow-small-right",{fontCharacter:"\\ea9f"}),e.arrowSmallUp=new e("arrow-small-up",{fontCharacter:"\\eaa0"}),e.arrowUp=new e("arrow-up",{fontCharacter:"\\eaa1"}),e.bell=new e("bell",{fontCharacter:"\\eaa2"}),e.bold=new e("bold",{fontCharacter:"\\eaa3"}),e.book=new e("book",{fontCharacter:"\\eaa4"}),e.bookmark=new e("bookmark",{fontCharacter:"\\eaa5"}),e.debugBreakpointConditionalUnverified=new e("debug-breakpoint-conditional-unverified",{fontCharacter:"\\eaa6"}),e.debugBreakpointConditional=new e("debug-breakpoint-conditional",{fontCharacter:"\\eaa7"}),e.debugBreakpointConditionalDisabled=new e("debug-breakpoint-conditional-disabled",{fontCharacter:"\\eaa7"}),e.debugBreakpointDataUnverified=new e("debug-breakpoint-data-unverified",{fontCharacter:"\\eaa8"}),e.debugBreakpointData=new e("debug-breakpoint-data",{fontCharacter:"\\eaa9"}),e.debugBreakpointDataDisabled=new e("debug-breakpoint-data-disabled",{fontCharacter:"\\eaa9"}),e.debugBreakpointLogUnverified=new e("debug-breakpoint-log-unverified",{fontCharacter:"\\eaaa"}),e.debugBreakpointLog=new e("debug-breakpoint-log",{fontCharacter:"\\eaab"}),e.debugBreakpointLogDisabled=new e("debug-breakpoint-log-disabled",{fontCharacter:"\\eaab"}),e.briefcase=new e("briefcase",{fontCharacter:"\\eaac"}),e.broadcast=new e("broadcast",{fontCharacter:"\\eaad"}),e.browser=new e("browser",{fontCharacter:"\\eaae"}),e.bug=new e("bug",{fontCharacter:"\\eaaf"}),e.calendar=new e("calendar",{fontCharacter:"\\eab0"}),e.caseSensitive=new e("case-sensitive",{fontCharacter:"\\eab1"}),e.check=new e("check",{fontCharacter:"\\eab2"}),e.checklist=new e("checklist",{fontCharacter:"\\eab3"}),e.chevronDown=new e("chevron-down",{fontCharacter:"\\eab4"}),e.dropDownButton=new e("drop-down-button",e.chevronDown.definition),e.chevronLeft=new e("chevron-left",{fontCharacter:"\\eab5"}),e.chevronRight=new e("chevron-right",{fontCharacter:"\\eab6"}),e.chevronUp=new e("chevron-up",{fontCharacter:"\\eab7"}),e.chromeClose=new e("chrome-close",{fontCharacter:"\\eab8"}),e.chromeMaximize=new e("chrome-maximize",{fontCharacter:"\\eab9"}),e.chromeMinimize=new e("chrome-minimize",{fontCharacter:"\\eaba"}),e.chromeRestore=new e("chrome-restore",{fontCharacter:"\\eabb"}),e.circleOutline=new e("circle-outline",{fontCharacter:"\\eabc"}),e.debugBreakpointUnverified=new e("debug-breakpoint-unverified",{fontCharacter:"\\eabc"}),e.circleSlash=new e("circle-slash",{fontCharacter:"\\eabd"}),e.circuitBoard=new e("circuit-board",{fontCharacter:"\\eabe"}),e.clearAll=new e("clear-all",{fontCharacter:"\\eabf"}),e.clippy=new e("clippy",{fontCharacter:"\\eac0"}),e.closeAll=new e("close-all",{fontCharacter:"\\eac1"}),e.cloudDownload=new e("cloud-download",{fontCharacter:"\\eac2"}),e.cloudUpload=new e("cloud-upload",{fontCharacter:"\\eac3"}),e.code=new e("code",{fontCharacter:"\\eac4"}),e.collapseAll=new e("collapse-all",{fontCharacter:"\\eac5"}),e.colorMode=new e("color-mode",{fontCharacter:"\\eac6"}),e.commentDiscussion=new e("comment-discussion",{fontCharacter:"\\eac7"}),e.compareChanges=new e("compare-changes",{fontCharacter:"\\eafd"}),e.creditCard=new e("credit-card",{fontCharacter:"\\eac9"}),e.dash=new e("dash",{fontCharacter:"\\eacc"}),e.dashboard=new e("dashboard",{fontCharacter:"\\eacd"}),e.database=new e("database",{fontCharacter:"\\eace"}),e.debugContinue=new e("debug-continue",{fontCharacter:"\\eacf"}),e.debugDisconnect=new e("debug-disconnect",{fontCharacter:"\\ead0"}),e.debugPause=new e("debug-pause",{fontCharacter:"\\ead1"}),e.debugRestart=new e("debug-restart",{fontCharacter:"\\ead2"}),e.debugStart=new e("debug-start",{fontCharacter:"\\ead3"}),e.debugStepInto=new e("debug-step-into",{fontCharacter:"\\ead4"}),e.debugStepOut=new e("debug-step-out",{fontCharacter:"\\ead5"}),e.debugStepOver=new e("debug-step-over",{fontCharacter:"\\ead6"}),e.debugStop=new e("debug-stop",{fontCharacter:"\\ead7"}),e.debug=new e("debug",{fontCharacter:"\\ead8"}),e.deviceCameraVideo=new e("device-camera-video",{fontCharacter:"\\ead9"}),e.deviceCamera=new e("device-camera",{fontCharacter:"\\eada"}),e.deviceMobile=new e("device-mobile",{fontCharacter:"\\eadb"}),e.diffAdded=new e("diff-added",{fontCharacter:"\\eadc"}),e.diffIgnored=new e("diff-ignored",{fontCharacter:"\\eadd"}),e.diffModified=new e("diff-modified",{fontCharacter:"\\eade"}),e.diffRemoved=new e("diff-removed",{fontCharacter:"\\eadf"}),e.diffRenamed=new e("diff-renamed",{fontCharacter:"\\eae0"}),e.diff=new e("diff",{fontCharacter:"\\eae1"}),e.discard=new e("discard",{fontCharacter:"\\eae2"}),e.editorLayout=new e("editor-layout",{fontCharacter:"\\eae3"}),e.emptyWindow=new e("empty-window",{fontCharacter:"\\eae4"}),e.exclude=new e("exclude",{fontCharacter:"\\eae5"}),e.extensions=new e("extensions",{fontCharacter:"\\eae6"}),e.eyeClosed=new e("eye-closed",{fontCharacter:"\\eae7"}),e.fileBinary=new e("file-binary",{fontCharacter:"\\eae8"}),e.fileCode=new e("file-code",{fontCharacter:"\\eae9"}),e.fileMedia=new e("file-media",{fontCharacter:"\\eaea"}),e.filePdf=new e("file-pdf",{fontCharacter:"\\eaeb"}),e.fileSubmodule=new e("file-submodule",{fontCharacter:"\\eaec"}),e.fileSymlinkDirectory=new e("file-symlink-directory",{fontCharacter:"\\eaed"}),e.fileSymlinkFile=new e("file-symlink-file",{fontCharacter:"\\eaee"}),e.fileZip=new e("file-zip",{fontCharacter:"\\eaef"}),e.files=new e("files",{fontCharacter:"\\eaf0"}),e.filter=new e("filter",{fontCharacter:"\\eaf1"}),e.flame=new e("flame",{fontCharacter:"\\eaf2"}),e.foldDown=new e("fold-down",{fontCharacter:"\\eaf3"}),e.foldUp=new e("fold-up",{fontCharacter:"\\eaf4"}),e.fold=new e("fold",{fontCharacter:"\\eaf5"}),e.folderActive=new e("folder-active",{fontCharacter:"\\eaf6"}),e.folderOpened=new e("folder-opened",{fontCharacter:"\\eaf7"}),e.gear=new e("gear",{fontCharacter:"\\eaf8"}),e.gift=new e("gift",{fontCharacter:"\\eaf9"}),e.gistSecret=new e("gist-secret",{fontCharacter:"\\eafa"}),e.gist=new e("gist",{fontCharacter:"\\eafb"}),e.gitCommit=new e("git-commit",{fontCharacter:"\\eafc"}),e.gitCompare=new e("git-compare",{fontCharacter:"\\eafd"}),e.gitMerge=new e("git-merge",{fontCharacter:"\\eafe"}),e.githubAction=new e("github-action",{fontCharacter:"\\eaff"}),e.githubAlt=new e("github-alt",{fontCharacter:"\\eb00"}),e.globe=new e("globe",{fontCharacter:"\\eb01"}),e.grabber=new e("grabber",{fontCharacter:"\\eb02"}),e.graph=new e("graph",{fontCharacter:"\\eb03"}),e.gripper=new e("gripper",{fontCharacter:"\\eb04"}),e.heart=new e("heart",{fontCharacter:"\\eb05"}),e.home=new e("home",{fontCharacter:"\\eb06"}),e.horizontalRule=new e("horizontal-rule",{fontCharacter:"\\eb07"}),e.hubot=new e("hubot",{fontCharacter:"\\eb08"}),e.inbox=new e("inbox",{fontCharacter:"\\eb09"}),e.issueClosed=new e("issue-closed",{fontCharacter:"\\eba4"}),e.issueReopened=new e("issue-reopened",{fontCharacter:"\\eb0b"}),e.issues=new e("issues",{fontCharacter:"\\eb0c"}),e.italic=new e("italic",{fontCharacter:"\\eb0d"}),e.jersey=new e("jersey",{fontCharacter:"\\eb0e"}),e.json=new e("json",{fontCharacter:"\\eb0f"}),e.kebabVertical=new e("kebab-vertical",{fontCharacter:"\\eb10"}),e.key=new e("key",{fontCharacter:"\\eb11"}),e.law=new e("law",{fontCharacter:"\\eb12"}),e.lightbulbAutofix=new e("lightbulb-autofix",{fontCharacter:"\\eb13"}),e.linkExternal=new e("link-external",{fontCharacter:"\\eb14"}),e.link=new e("link",{fontCharacter:"\\eb15"}),e.listOrdered=new e("list-ordered",{fontCharacter:"\\eb16"}),e.listUnordered=new e("list-unordered",{fontCharacter:"\\eb17"}),e.liveShare=new e("live-share",{fontCharacter:"\\eb18"}),e.loading=new e("loading",{fontCharacter:"\\eb19"}),e.location=new e("location",{fontCharacter:"\\eb1a"}),e.mailRead=new e("mail-read",{fontCharacter:"\\eb1b"}),e.mail=new e("mail",{fontCharacter:"\\eb1c"}),e.markdown=new e("markdown",{fontCharacter:"\\eb1d"}),e.megaphone=new e("megaphone",{fontCharacter:"\\eb1e"}),e.mention=new e("mention",{fontCharacter:"\\eb1f"}),e.milestone=new e("milestone",{fontCharacter:"\\eb20"}),e.mortarBoard=new e("mortar-board",{fontCharacter:"\\eb21"}),e.move=new e("move",{fontCharacter:"\\eb22"}),e.multipleWindows=new e("multiple-windows",{fontCharacter:"\\eb23"}),e.mute=new e("mute",{fontCharacter:"\\eb24"}),e.noNewline=new e("no-newline",{fontCharacter:"\\eb25"}),e.note=new e("note",{fontCharacter:"\\eb26"}),e.octoface=new e("octoface",{fontCharacter:"\\eb27"}),e.openPreview=new e("open-preview",{fontCharacter:"\\eb28"}),e.package_=new e("package",{fontCharacter:"\\eb29"}),e.paintcan=new e("paintcan",{fontCharacter:"\\eb2a"}),e.pin=new e("pin",{fontCharacter:"\\eb2b"}),e.play=new e("play",{fontCharacter:"\\eb2c"}),e.run=new e("run",{fontCharacter:"\\eb2c"}),e.plug=new e("plug",{fontCharacter:"\\eb2d"}),e.preserveCase=new e("preserve-case",{fontCharacter:"\\eb2e"}),e.preview=new e("preview",{fontCharacter:"\\eb2f"}),e.project=new e("project",{fontCharacter:"\\eb30"}),e.pulse=new e("pulse",{fontCharacter:"\\eb31"}),e.question=new e("question",{fontCharacter:"\\eb32"}),e.quote=new e("quote",{fontCharacter:"\\eb33"}),e.radioTower=new e("radio-tower",{fontCharacter:"\\eb34"}),e.reactions=new e("reactions",{fontCharacter:"\\eb35"}),e.references=new e("references",{fontCharacter:"\\eb36"}),e.refresh=new e("refresh",{fontCharacter:"\\eb37"}),e.regex=new e("regex",{fontCharacter:"\\eb38"}),e.remoteExplorer=new e("remote-explorer",{fontCharacter:"\\eb39"}),e.remote=new e("remote",{fontCharacter:"\\eb3a"}),e.remove=new e("remove",{fontCharacter:"\\eb3b"}),e.replaceAll=new e("replace-all",{fontCharacter:"\\eb3c"}),e.replace=new e("replace",{fontCharacter:"\\eb3d"}),e.repoClone=new e("repo-clone",{fontCharacter:"\\eb3e"}),e.repoForcePush=new e("repo-force-push",{fontCharacter:"\\eb3f"}),e.repoPull=new e("repo-pull",{fontCharacter:"\\eb40"}),e.repoPush=new e("repo-push",{fontCharacter:"\\eb41"}),e.report=new e("report",{fontCharacter:"\\eb42"}),e.requestChanges=new e("request-changes",{fontCharacter:"\\eb43"}),e.rocket=new e("rocket",{fontCharacter:"\\eb44"}),e.rootFolderOpened=new e("root-folder-opened",{fontCharacter:"\\eb45"}),e.rootFolder=new e("root-folder",{fontCharacter:"\\eb46"}),e.rss=new e("rss",{fontCharacter:"\\eb47"}),e.ruby=new e("ruby",{fontCharacter:"\\eb48"}),e.saveAll=new e("save-all",{fontCharacter:"\\eb49"}),e.saveAs=new e("save-as",{fontCharacter:"\\eb4a"}),e.save=new e("save",{fontCharacter:"\\eb4b"}),e.screenFull=new e("screen-full",{fontCharacter:"\\eb4c"}),e.screenNormal=new e("screen-normal",{fontCharacter:"\\eb4d"}),e.searchStop=new e("search-stop",{fontCharacter:"\\eb4e"}),e.server=new e("server",{fontCharacter:"\\eb50"}),e.settingsGear=new e("settings-gear",{fontCharacter:"\\eb51"}),e.settings=new e("settings",{fontCharacter:"\\eb52"}),e.shield=new e("shield",{fontCharacter:"\\eb53"}),e.smiley=new e("smiley",{fontCharacter:"\\eb54"}),e.sortPrecedence=new e("sort-precedence",{fontCharacter:"\\eb55"}),e.splitHorizontal=new e("split-horizontal",{fontCharacter:"\\eb56"}),e.splitVertical=new e("split-vertical",{fontCharacter:"\\eb57"}),e.squirrel=new e("squirrel",{fontCharacter:"\\eb58"}),e.starFull=new e("star-full",{fontCharacter:"\\eb59"}),e.starHalf=new e("star-half",{fontCharacter:"\\eb5a"}),e.symbolClass=new e("symbol-class",{fontCharacter:"\\eb5b"}),e.symbolColor=new e("symbol-color",{fontCharacter:"\\eb5c"}),e.symbolConstant=new e("symbol-constant",{fontCharacter:"\\eb5d"}),e.symbolEnumMember=new e("symbol-enum-member",{fontCharacter:"\\eb5e"}),e.symbolField=new e("symbol-field",{fontCharacter:"\\eb5f"}),e.symbolFile=new e("symbol-file",{fontCharacter:"\\eb60"}),e.symbolInterface=new e("symbol-interface",{fontCharacter:"\\eb61"}),e.symbolKeyword=new e("symbol-keyword",{fontCharacter:"\\eb62"}),e.symbolMisc=new e("symbol-misc",{fontCharacter:"\\eb63"}),e.symbolOperator=new e("symbol-operator",{fontCharacter:"\\eb64"}),e.symbolProperty=new e("symbol-property",{fontCharacter:"\\eb65"}),e.wrench=new e("wrench",{fontCharacter:"\\eb65"}),e.wrenchSubaction=new e("wrench-subaction",{fontCharacter:"\\eb65"}),e.symbolSnippet=new e("symbol-snippet",{fontCharacter:"\\eb66"}),e.tasklist=new e("tasklist",{fontCharacter:"\\eb67"}),e.telescope=new e("telescope",{fontCharacter:"\\eb68"}),e.textSize=new e("text-size",{fontCharacter:"\\eb69"}),e.threeBars=new e("three-bars",{fontCharacter:"\\eb6a"}),e.thumbsdown=new e("thumbsdown",{fontCharacter:"\\eb6b"}),e.thumbsup=new e("thumbsup",{fontCharacter:"\\eb6c"}),e.tools=new e("tools",{fontCharacter:"\\eb6d"}),e.triangleDown=new e("triangle-down",{fontCharacter:"\\eb6e"}),e.triangleLeft=new e("triangle-left",{fontCharacter:"\\eb6f"}),e.triangleRight=new e("triangle-right",{fontCharacter:"\\eb70"}),e.triangleUp=new e("triangle-up",{fontCharacter:"\\eb71"}),e.twitter=new e("twitter",{fontCharacter:"\\eb72"}),e.unfold=new e("unfold",{fontCharacter:"\\eb73"}),e.unlock=new e("unlock",{fontCharacter:"\\eb74"}),e.unmute=new e("unmute",{fontCharacter:"\\eb75"}),e.unverified=new e("unverified",{fontCharacter:"\\eb76"}),e.verified=new e("verified",{fontCharacter:"\\eb77"}),e.versions=new e("versions",{fontCharacter:"\\eb78"}),e.vmActive=new e("vm-active",{fontCharacter:"\\eb79"}),e.vmOutline=new e("vm-outline",{fontCharacter:"\\eb7a"}),e.vmRunning=new e("vm-running",{fontCharacter:"\\eb7b"}),e.watch=new e("watch",{fontCharacter:"\\eb7c"}),e.whitespace=new e("whitespace",{fontCharacter:"\\eb7d"}),e.wholeWord=new e("whole-word",{fontCharacter:"\\eb7e"}),e.window=new e("window",{fontCharacter:"\\eb7f"}),e.wordWrap=new e("word-wrap",{fontCharacter:"\\eb80"}),e.zoomIn=new e("zoom-in",{fontCharacter:"\\eb81"}),e.zoomOut=new e("zoom-out",{fontCharacter:"\\eb82"}),e.listFilter=new e("list-filter",{fontCharacter:"\\eb83"}),e.listFlat=new e("list-flat",{fontCharacter:"\\eb84"}),e.listSelection=new e("list-selection",{fontCharacter:"\\eb85"}),e.selection=new e("selection",{fontCharacter:"\\eb85"}),e.listTree=new e("list-tree",{fontCharacter:"\\eb86"}),e.debugBreakpointFunctionUnverified=new e("debug-breakpoint-function-unverified",{fontCharacter:"\\eb87"}),e.debugBreakpointFunction=new e("debug-breakpoint-function",{fontCharacter:"\\eb88"}),e.debugBreakpointFunctionDisabled=new e("debug-breakpoint-function-disabled",{fontCharacter:"\\eb88"}),e.debugStackframeActive=new e("debug-stackframe-active",{fontCharacter:"\\eb89"}),e.debugStackframeDot=new e("debug-stackframe-dot",{fontCharacter:"\\eb8a"}),e.debugStackframe=new e("debug-stackframe",{fontCharacter:"\\eb8b"}),e.debugStackframeFocused=new e("debug-stackframe-focused",{fontCharacter:"\\eb8b"}),e.debugBreakpointUnsupported=new e("debug-breakpoint-unsupported",{fontCharacter:"\\eb8c"}),e.symbolString=new e("symbol-string",{fontCharacter:"\\eb8d"}),e.debugReverseContinue=new e("debug-reverse-continue",{fontCharacter:"\\eb8e"}),e.debugStepBack=new e("debug-step-back",{fontCharacter:"\\eb8f"}),e.debugRestartFrame=new e("debug-restart-frame",{fontCharacter:"\\eb90"}),e.callIncoming=new e("call-incoming",{fontCharacter:"\\eb92"}),e.callOutgoing=new e("call-outgoing",{fontCharacter:"\\eb93"}),e.menu=new e("menu",{fontCharacter:"\\eb94"}),e.expandAll=new e("expand-all",{fontCharacter:"\\eb95"}),e.feedback=new e("feedback",{fontCharacter:"\\eb96"}),e.groupByRefType=new e("group-by-ref-type",{fontCharacter:"\\eb97"}),e.ungroupByRefType=new e("ungroup-by-ref-type",{fontCharacter:"\\eb98"}),e.account=new e("account",{fontCharacter:"\\eb99"}),e.bellDot=new e("bell-dot",{fontCharacter:"\\eb9a"}),e.debugConsole=new e("debug-console",{fontCharacter:"\\eb9b"}),e.library=new e("library",{fontCharacter:"\\eb9c"}),e.output=new e("output",{fontCharacter:"\\eb9d"}),e.runAll=new e("run-all",{fontCharacter:"\\eb9e"}),e.syncIgnored=new e("sync-ignored",{fontCharacter:"\\eb9f"}),e.pinned=new e("pinned",{fontCharacter:"\\eba0"}),e.githubInverted=new e("github-inverted",{fontCharacter:"\\eba1"}),e.debugAlt=new e("debug-alt",{fontCharacter:"\\eb91"}),e.serverProcess=new e("server-process",{fontCharacter:"\\eba2"}),e.serverEnvironment=new e("server-environment",{fontCharacter:"\\eba3"}),e.pass=new e("pass",{fontCharacter:"\\eba4"}),e.stopCircle=new e("stop-circle",{fontCharacter:"\\eba5"}),e.playCircle=new e("play-circle",{fontCharacter:"\\eba6"}),e.record=new e("record",{fontCharacter:"\\eba7"}),e.debugAltSmall=new e("debug-alt-small",{fontCharacter:"\\eba8"}),e.vmConnect=new e("vm-connect",{fontCharacter:"\\eba9"}),e.cloud=new e("cloud",{fontCharacter:"\\ebaa"}),e.merge=new e("merge",{fontCharacter:"\\ebab"}),e.exportIcon=new e("export",{fontCharacter:"\\ebac"}),e.graphLeft=new e("graph-left",{fontCharacter:"\\ebad"}),e.magnet=new e("magnet",{fontCharacter:"\\ebae"}),e.notebook=new e("notebook",{fontCharacter:"\\ebaf"}),e.redo=new e("redo",{fontCharacter:"\\ebb0"}),e.checkAll=new e("check-all",{fontCharacter:"\\ebb1"}),e.pinnedDirty=new e("pinned-dirty",{fontCharacter:"\\ebb2"}),e.passFilled=new e("pass-filled",{fontCharacter:"\\ebb3"}),e.circleLargeFilled=new e("circle-large-filled",{fontCharacter:"\\ebb4"}),e.circleLargeOutline=new e("circle-large-outline",{fontCharacter:"\\ebb5"}),e.combine=new e("combine",{fontCharacter:"\\ebb6"}),e.gather=new e("gather",{fontCharacter:"\\ebb6"}),e.table=new e("table",{fontCharacter:"\\ebb7"}),e.variableGroup=new e("variable-group",{fontCharacter:"\\ebb8"}),e.typeHierarchy=new e("type-hierarchy",{fontCharacter:"\\ebb9"}),e.typeHierarchySub=new e("type-hierarchy-sub",{fontCharacter:"\\ebba"}),e.typeHierarchySuper=new e("type-hierarchy-super",{fontCharacter:"\\ebbb"}),e.gitPullRequestCreate=new e("git-pull-request-create",{fontCharacter:"\\ebbc"}),e.runAbove=new e("run-above",{fontCharacter:"\\ebbd"}),e.runBelow=new e("run-below",{fontCharacter:"\\ebbe"}),e.notebookTemplate=new e("notebook-template",{fontCharacter:"\\ebbf"}),e.debugRerun=new e("debug-rerun",{fontCharacter:"\\ebc0"}),e.workspaceTrusted=new e("workspace-trusted",{fontCharacter:"\\ebc1"}),e.workspaceUntrusted=new e("workspace-untrusted",{fontCharacter:"\\ebc2"}),e.workspaceUnspecified=new e("workspace-unspecified",{fontCharacter:"\\ebc3"}),e.terminalCmd=new e("terminal-cmd",{fontCharacter:"\\ebc4"}),e.terminalDebian=new e("terminal-debian",{fontCharacter:"\\ebc5"}),e.terminalLinux=new e("terminal-linux",{fontCharacter:"\\ebc6"}),e.terminalPowershell=new e("terminal-powershell",{fontCharacter:"\\ebc7"}),e.terminalTmux=new e("terminal-tmux",{fontCharacter:"\\ebc8"}),e.terminalUbuntu=new e("terminal-ubuntu",{fontCharacter:"\\ebc9"}),e.terminalBash=new e("terminal-bash",{fontCharacter:"\\ebca"}),e.arrowSwap=new e("arrow-swap",{fontCharacter:"\\ebcb"}),e.copy=new e("copy",{fontCharacter:"\\ebcc"}),e.personAdd=new e("person-add",{fontCharacter:"\\ebcd"}),e.filterFilled=new e("filter-filled",{fontCharacter:"\\ebce"}),e.wand=new e("wand",{fontCharacter:"\\ebcf"}),e.debugLineByLine=new e("debug-line-by-line",{fontCharacter:"\\ebd0"}),e.inspect=new e("inspect",{fontCharacter:"\\ebd1"}),e.layers=new e("layers",{fontCharacter:"\\ebd2"}),e.layersDot=new e("layers-dot",{fontCharacter:"\\ebd3"}),e.layersActive=new e("layers-active",{fontCharacter:"\\ebd4"}),e.compass=new e("compass",{fontCharacter:"\\ebd5"}),e.compassDot=new e("compass-dot",{fontCharacter:"\\ebd6"}),e.compassActive=new e("compass-active",{fontCharacter:"\\ebd7"}),e.azure=new e("azure",{fontCharacter:"\\ebd8"}),e.issueDraft=new e("issue-draft",{fontCharacter:"\\ebd9"}),e.gitPullRequestClosed=new e("git-pull-request-closed",{fontCharacter:"\\ebda"}),e.gitPullRequestDraft=new e("git-pull-request-draft",{fontCharacter:"\\ebdb"}),e.debugAll=new e("debug-all",{fontCharacter:"\\ebdc"}),e.debugCoverage=new e("debug-coverage",{fontCharacter:"\\ebdd"}),e.runErrors=new e("run-errors",{fontCharacter:"\\ebde"}),e.folderLibrary=new e("folder-library",{fontCharacter:"\\ebdf"}),e.debugContinueSmall=new e("debug-continue-small",{fontCharacter:"\\ebe0"}),e.beakerStop=new e("beaker-stop",{fontCharacter:"\\ebe1"}),e.graphLine=new e("graph-line",{fontCharacter:"\\ebe2"}),e.graphScatter=new e("graph-scatter",{fontCharacter:"\\ebe3"}),e.pieChart=new e("pie-chart",{fontCharacter:"\\ebe4"}),e.bracket=new e("bracket",e.json.definition),e.bracketDot=new e("bracket-dot",{fontCharacter:"\\ebe5"}),e.bracketError=new e("bracket-error",{fontCharacter:"\\ebe6"}),e.lockSmall=new e("lock-small",{fontCharacter:"\\ebe7"}),e.azureDevops=new e("azure-devops",{fontCharacter:"\\ebe8"}),e.verifiedFilled=new e("verified-filled",{fontCharacter:"\\ebe9"})}(H||(H={}))},79881:function(Zt,Ke,l){"use strict";l.d(Ke,{B8:function(){return c},Cp:function(){return X},F0:function(){return $},L6:function(){return s},VV:function(){return H},b1:function(){return e},dL:function(){return j},ri:function(){return V}});class T{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(r){setTimeout(()=>{throw r.stack?new Error(r.message+`
|
|
|
|
`+r.stack):r},0)}}emit(r){this.listeners.forEach(i=>{i(r)})}onUnexpectedError(r){this.unexpectedErrorHandler(r),this.emit(r)}onUnexpectedExternalError(r){this.unexpectedErrorHandler(r)}}const A=new T;function j(t){H(t)||A.onUnexpectedError(t)}function X(t){H(t)||A.onUnexpectedExternalError(t)}function V(t){if(t instanceof Error){let{name:r,message:i}=t;const o=t.stacktrace||t.stack;return{$isError:!0,name:r,message:i,stack:o}}return t}const h="Canceled";function H(t){return t instanceof Error&&t.name===h&&t.message===h}function $(){const t=new Error(h);return t.name=t.message,t}function e(t){return t?new Error(`Illegal argument: ${t}`):new Error("Illegal argument")}function s(t){return t?new Error(`Illegal state: ${t}`):new Error("Illegal state")}class c extends Error{constructor(r){super("NotSupported"),r&&(this.message=r)}}},4348:function(Zt,Ke,l){"use strict";l.d(Ke,{D0:function(){return c},E7:function(){return t},K3:function(){return s},Q5:function(){return e},ZD:function(){return r},ju:function(){return V}});var T=l(79881),A=l(69323),j=l(34502),X=l(95830),V;(function(i){i.None=()=>A.JT.None;function o(x){return(N,C=null,y)=>{let n=!1,a;return a=x(d=>{if(!n)return a?a.dispose():n=!0,N.call(C,d)},null,y),n&&a.dispose(),a}}i.once=o;function v(x,N){return u((C,y=null,n)=>x(a=>C.call(y,N(a)),null,n))}i.map=v;function b(x,N){return u((C,y=null,n)=>x(a=>{N(a),C.call(y,a)},null,n))}i.forEach=b;function S(x,N){return u((C,y=null,n)=>x(a=>N(a)&&C.call(y,a),null,n))}i.filter=S;function p(x){return x}i.signal=p;function m(...x){return(N,C=null,y)=>(0,A.F8)(...x.map(n=>n(a=>N.call(C,a),null,y)))}i.any=m;function f(x,N,C){let y=C;return v(x,n=>(y=N(y,n),y))}i.reduce=f;function u(x){let N;const C=new e({onFirstListenerAdd(){N=x(C.fire,C)},onLastListenerRemove(){N.dispose()}});return C.event}function k(x,N,C=100,y=!1,n){let a,d,M,ae=0;const he=new e({leakWarningThreshold:n,onFirstListenerAdd(){a=x(ge=>{ae++,d=N(d,ge),y&&!M&&(he.fire(d),d=void 0),clearTimeout(M),M=setTimeout(()=>{const Ae=d;d=void 0,M=void 0,(!y||ae>1)&&he.fire(Ae),ae=0},C)})},onLastListenerRemove(){a.dispose()}});return he.event}i.debounce=k;function I(x,N=(C,y)=>C===y){let C=!0,y;return S(x,n=>{const a=C||!N(n,y);return C=!1,y=n,a})}i.latch=I;function F(x,N){return[i.filter(x,N),i.filter(x,C=>!N(C))]}i.split=F;function K(x,N=!1,C=[]){let y=C.slice(),n=x(M=>{y?y.push(M):d.fire(M)});const a=()=>{y&&y.forEach(M=>d.fire(M)),y=null},d=new e({onFirstListenerAdd(){n||(n=x(M=>d.fire(M)))},onFirstListenerDidAdd(){y&&(N?setTimeout(a):a())},onLastListenerRemove(){n&&n.dispose(),n=null}});return d.event}i.buffer=K;class G{constructor(N){this.event=N}map(N){return new G(v(this.event,N))}forEach(N){return new G(b(this.event,N))}filter(N){return new G(S(this.event,N))}reduce(N,C){return new G(f(this.event,N,C))}latch(){return new G(I(this.event))}debounce(N,C=100,y=!1,n){return new G(k(this.event,N,C,y,n))}on(N,C,y){return this.event(N,C,y)}once(N,C,y){return o(this.event)(N,C,y)}}function W(x){return new G(x)}i.chain=W;function Pe(x,N,C=y=>y){const y=(...M)=>d.fire(C(...M)),n=()=>x.on(N,y),a=()=>x.removeListener(N,y),d=new e({onFirstListenerAdd:n,onLastListenerRemove:a});return d.event}i.fromNodeEventEmitter=Pe;function w(x,N,C=y=>y){const y=(...M)=>d.fire(C(...M)),n=()=>x.addEventListener(N,y),a=()=>x.removeEventListener(N,y),d=new e({onFirstListenerAdd:n,onLastListenerRemove:a});return d.event}i.fromDOMEventEmitter=w;function _(x){return new Promise(N=>o(x)(N))}i.toPromise=_})(V||(V={}));class h{constructor(o){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${o}_${h._idPool++}`}start(o){this._stopWatch=new X.G(!0),this._listenerCount=o}stop(){if(this._stopWatch){const o=this._stopWatch.elapsed();this._elapsedOverall+=o,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${o.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}h._idPool=0;let H=-1;class ${constructor(o,v=Math.random().toString(18).slice(2,5)){this.customThreshold=o,this.name=v,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(o){let v=H;if(typeof this.customThreshold=="number"&&(v=this.customThreshold),v<=0||o<v)return;this._stacks||(this._stacks=new Map);const b=new Error().stack.split(`
|
|
`).slice(3).join(`
|
|
`),S=this._stacks.get(b)||0;if(this._stacks.set(b,S+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=v*.5;let p,m=0;for(const[f,u]of this._stacks)(!p||m<u)&&(p=f,m=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${o} listeners already. MOST frequent listener (${m}):`),console.warn(p)}return()=>{const p=this._stacks.get(b)||0;this._stacks.set(b,p-1)}}}class e{constructor(o){var v;this._disposed=!1,this._options=o,this._leakageMon=H>0?new $(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=!((v=this._options)===null||v===void 0)&&v._profName?new h(this._options._profName):void 0}get event(){return this._event||(this._event=(o,v,b)=>{var S;this._listeners||(this._listeners=new j.S);const p=this._listeners.isEmpty();p&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const m=this._listeners.push(v?[o,v]:o);p&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,o,v);const f=(S=this._leakageMon)===null||S===void 0?void 0:S.check(this._listeners.size),u=(0,A.OF)(()=>{f&&f(),this._disposed||(m(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return b instanceof A.SL?b.add(u):Array.isArray(b)&&b.push(u),u}),this._event}fire(o){var v,b;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new j.S);for(let S of this._listeners)this._deliveryQueue.push([S,o]);for((v=this._perfMon)===null||v===void 0||v.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[S,p]=this._deliveryQueue.shift();try{typeof S=="function"?S.call(void 0,p):S[0].call(S[1],p)}catch(m){(0,T.dL)(m)}}(b=this._perfMon)===null||b===void 0||b.stop()}}dispose(){var o,v,b,S,p;this._disposed||(this._disposed=!0,(o=this._listeners)===null||o===void 0||o.clear(),(v=this._deliveryQueue)===null||v===void 0||v.clear(),(S=(b=this._options)===null||b===void 0?void 0:b.onLastListenerRemove)===null||S===void 0||S.call(b),(p=this._leakageMon)===null||p===void 0||p.dispose())}}class s extends e{constructor(o){super(o),this._isPaused=0,this._eventQueue=new j.S,this._mergeFn=o==null?void 0:o.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){const o=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(o))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(o){this._listeners&&(this._isPaused!==0?this._eventQueue.push(o):super.fire(o))}}class c extends s{constructor(o){var v;super(o),this._delay=(v=o.delay)!==null&&v!==void 0?v:100}fire(o){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(o)}}class t{constructor(){this.buffers=[]}wrapEvent(o){return(v,b,S)=>o(p=>{const m=this.buffers[this.buffers.length-1];m?m.push(()=>v.call(b,p)):v.call(b,p)},void 0,S)}bufferEvents(o){const v=[];this.buffers.push(v);const b=o();return this.buffers.pop(),v.forEach(S=>S()),b}}class r{constructor(){this.listening=!1,this.inputEvent=V.None,this.inputEventListener=A.JT.None,this.emitter=new e({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(o){this.inputEvent=o,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=o(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}},17845:function(Zt,Ke,l){"use strict";l.d(Ke,{I:function(){return T}});function T(A){const j=this;let X=!1,V;return function(){return X||(X=!0,V=A.apply(j,arguments)),V}}},88226:function(Zt,Ke,l){"use strict";l.d(Ke,{$:function(){return T}});var T;(function(A){function j(m){return m&&typeof m=="object"&&typeof m[Symbol.iterator]=="function"}A.is=j;const X=Object.freeze([]);function V(){return X}A.empty=V;function*h(m){yield m}A.single=h;function H(m){return m||X}A.from=H;function $(m){return!m||m[Symbol.iterator]().next().done===!0}A.isEmpty=$;function e(m){return m[Symbol.iterator]().next().value}A.first=e;function s(m,f){for(const u of m)if(f(u))return!0;return!1}A.some=s;function c(m,f){for(const u of m)if(f(u))return u}A.find=c;function*t(m,f){for(const u of m)f(u)&&(yield u)}A.filter=t;function*r(m,f){let u=0;for(const k of m)yield f(k,u++)}A.map=r;function*i(...m){for(const f of m)for(const u of f)yield u}A.concat=i;function*o(m){for(const f of m)for(const u of f)yield u}A.concatNested=o;function v(m,f,u){let k=u;for(const I of m)k=f(k,I);return k}A.reduce=v;function*b(m,f,u=m.length){for(f<0&&(f+=m.length),u<0?u+=m.length:u>m.length&&(u=m.length);f<u;f++)yield m[f]}A.slice=b;function S(m,f=Number.POSITIVE_INFINITY){const u=[];if(f===0)return[u,m];const k=m[Symbol.iterator]();for(let I=0;I<f;I++){const F=k.next();if(F.done)return[u,A.empty()];u.push(F.value)}return[u,{[Symbol.iterator](){return k}}]}A.consume=S;function p(m,f,u=(k,I)=>k===I){const k=m[Symbol.iterator](),I=f[Symbol.iterator]();for(;;){const F=k.next(),K=I.next();if(F.done!==K.done)return!1;if(F.done)return!0;if(!u(F.value,K.value))return!1}}A.equals=p})(T||(T={}))},69323:function(Zt,Ke,l){"use strict";l.d(Ke,{B9:function(){return r},F8:function(){return i},JT:function(){return b},Jz:function(){return p},OF:function(){return o},SL:function(){return v},Wf:function(){return t},XK:function(){return S},dk:function(){return s}});var T=l(17845),A=l(88226);const j=!1;let X=null;function V(m){X=m}if(j){const m="__is_disposable_tracked__";V(new class{trackDisposable(f){const u=new Error("Potentially leaked disposable").stack;setTimeout(()=>{f[m]||console.log(u)},3e3)}setParent(f,u){if(f&&f!==b.None)try{f[m]=!0}catch(k){}}markAsDisposed(f){if(f&&f!==b.None)try{f[m]=!0}catch(u){}}markAsSingleton(f){}})}function h(m){return X==null||X.trackDisposable(m),m}function H(m){X==null||X.markAsDisposed(m)}function $(m,f){X==null||X.setParent(m,f)}function e(m,f){if(X)for(const u of m)X.setParent(u,f)}function s(m){return X==null||X.markAsSingleton(m),m}class c extends Error{constructor(f){super(`Encountered errors while disposing of store. Errors: [${f.join(", ")}]`),this.errors=f}}function t(m){return typeof m.dispose=="function"&&m.dispose.length===0}function r(m){if(A.$.is(m)){let f=[];for(const u of m)if(u)try{u.dispose()}catch(k){f.push(k)}if(f.length===1)throw f[0];if(f.length>1)throw new c(f);return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}function i(...m){const f=o(()=>r(m));return e(m,f),f}function o(m){const f=h({dispose:(0,T.I)(()=>{H(f),m()})});return f}class v{constructor(){this._toDispose=new Set,this._isDisposed=!1,h(this)}dispose(){this._isDisposed||(H(this),this._isDisposed=!0,this.clear())}clear(){try{r(this._toDispose.values())}finally{this._toDispose.clear()}}add(f){if(!f)return f;if(f===this)throw new Error("Cannot register a disposable on itself!");return $(f,this),this._isDisposed?v.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(f),f}}v.DISABLE_DISPOSED_WARNING=!1;class b{constructor(){this._store=new v,h(this),$(this._store,this)}dispose(){H(this),this._store.dispose()}_register(f){if(f===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(f)}}b.None=Object.freeze({dispose(){}});class S{constructor(){this._isDisposed=!1,h(this)}get value(){return this._isDisposed?void 0:this._value}set value(f){var u;this._isDisposed||f===this._value||((u=this._value)===null||u===void 0||u.dispose(),f&&$(f,this),this._value=f)}clear(){this.value=void 0}dispose(){var f;this._isDisposed=!0,H(this),(f=this._value)===null||f===void 0||f.dispose(),this._value=void 0}clearAndLeak(){const f=this._value;return this._value=void 0,f&&$(f,null),f}}class p{constructor(f){this.object=f}dispose(){}}},34502:function(Zt,Ke,l){"use strict";l.d(Ke,{S:function(){return A}});class T{constructor(X){this.element=X,this.next=T.Undefined,this.prev=T.Undefined}}T.Undefined=new T(void 0);class A{constructor(){this._first=T.Undefined,this._last=T.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===T.Undefined}clear(){let X=this._first;for(;X!==T.Undefined;){const V=X.next;X.prev=T.Undefined,X.next=T.Undefined,X=V}this._first=T.Undefined,this._last=T.Undefined,this._size=0}unshift(X){return this._insert(X,!1)}push(X){return this._insert(X,!0)}_insert(X,V){const h=new T(X);if(this._first===T.Undefined)this._first=h,this._last=h;else if(V){const $=this._last;this._last=h,h.prev=$,$.next=h}else{const $=this._first;this._first=h,h.next=$,$.prev=h}this._size+=1;let H=!1;return()=>{H||(H=!0,this._remove(h))}}shift(){if(this._first!==T.Undefined){const X=this._first.element;return this._remove(this._first),X}}pop(){if(this._last!==T.Undefined){const X=this._last.element;return this._remove(this._last),X}}_remove(X){if(X.prev!==T.Undefined&&X.next!==T.Undefined){const V=X.prev;V.next=X.next,X.next.prev=V}else X.prev===T.Undefined&&X.next===T.Undefined?(this._first=T.Undefined,this._last=T.Undefined):X.next===T.Undefined?(this._last=this._last.prev,this._last.next=T.Undefined):X.prev===T.Undefined&&(this._first=this._first.next,this._first.prev=T.Undefined);this._size-=1}*[Symbol.iterator](){let X=this._first;for(;X!==T.Undefined;)yield X.element,X=X.next}}},23345:function(Zt,Ke,l){"use strict";l.d(Ke,{$L:function(){return k},ED:function(){return p},IJ:function(){return f},OS:function(){return G},WE:function(){return F},dz:function(){return m},gn:function(){return I},li:function(){return o},r:function(){return w},tY:function(){return u},xS:function(){return K}});var T=l(97671),A;const j="en";let X=!1,V=!1,h=!1,H=!1,$=!1,e=!1,s=!1,c,t=null,r=null,i;const o=typeof self=="object"?self:typeof l.g=="object"?l.g:{};let v;typeof o.vscode!="undefined"&&typeof o.vscode.process!="undefined"?v=o.vscode.process:typeof T!="undefined"&&(v=T);const b=typeof((A=v==null?void 0:v.versions)===null||A===void 0?void 0:A.electron)=="string"&&v.type==="renderer";if(typeof navigator=="object"&&!b)i=navigator.userAgent,X=i.indexOf("Windows")>=0,V=i.indexOf("Macintosh")>=0,s=(i.indexOf("Macintosh")>=0||i.indexOf("iPad")>=0||i.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,h=i.indexOf("Linux")>=0,e=!0,c=navigator.language,t=c;else if(typeof v=="object"){X=v.platform==="win32",V=v.platform==="darwin",h=v.platform==="linux",H=h&&!!v.env.SNAP&&!!v.env.SNAP_REVISION,c=j,t=j;const _=v.env.VSCODE_NLS_CONFIG;if(_)try{const x=JSON.parse(_),N=x.availableLanguages["*"];c=x.locale,t=N||j,r=x._translationsConfigFile}catch(x){}$=!0}else console.error("Unable to resolve platform.");let S=0;V?S=1:X?S=3:h&&(S=2);const p=X,m=V,f=h,u=$,k=e,I=s,F=i,K=function(){if(o.setImmediate)return o.setImmediate.bind(o);if(typeof o.postMessage=="function"&&!o.importScripts){let N=[];o.addEventListener("message",y=>{if(y.data&&y.data.vscodeSetImmediateId)for(let n=0,a=N.length;n<a;n++){const d=N[n];if(d.id===y.data.vscodeSetImmediateId){N.splice(n,1),d.callback();return}}});let C=0;return y=>{const n=++C;N.push({id:n,callback:y}),o.postMessage({vscodeSetImmediateId:n},"*")}}if(typeof(v==null?void 0:v.nextTick)=="function")return v.nextTick.bind(v);const x=Promise.resolve();return N=>x.then(N)}(),G=V||s?2:X?1:3;let W=!0,Pe=!1;function w(){if(!Pe){Pe=!0;const _=new Uint8Array(2);_[0]=1,_[1]=2,W=new Uint16Array(_.buffer)[0]===513}return W}},95830:function(Zt,Ke,l){"use strict";l.d(Ke,{G:function(){return j}});var T=l(23345);const A=T.li.performance&&typeof T.li.performance.now=="function";class j{constructor(V){this._highResolution=A&&V,this._startTime=this._now(),this._stopTime=-1}static create(V=!0){return new j(V)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?T.li.performance.now():Date.now()}}},82983:function(Zt,Ke,l){"use strict";l.d(Ke,{$i:function(){return ae},C8:function(){return vt},GF:function(){return c},HO:function(){return C},IO:function(){return t},K7:function(){return We},Kw:function(){return dt},LC:function(){return o},Mh:function(){return K},P1:function(){return G},PJ:function(){return Rt},Qe:function(){return he},R1:function(){return s},RP:function(){return d},S6:function(){return ot},TT:function(){return p},Ut:function(){return n},V8:function(){return v},WU:function(){return j},YK:function(){return Pe},YU:function(){return X},ZG:function(){return W},ZH:function(){return _},ab:function(){return ge},c1:function(){return ye},df:function(){return k},ec:function(){return V},fi:function(){return be},fy:function(){return h},j3:function(){return H},j_:function(){return f},m5:function(){return T},mK:function(){return u},mr:function(){return r},oH:function(){return O},oL:function(){return $},ok:function(){return F},ow:function(){return b},qq:function(){return I},qu:function(){return S},rL:function(){return w},uS:function(){return Ve},un:function(){return e},uq:function(){return i},vH:function(){return N},xe:function(){return Ae},zY:function(){return m}});function T(g){return!g||typeof g!="string"?!0:g.trim().length===0}const A=/{(\d+)}/g;function j(g,...P){return P.length===0?g:g.replace(A,function(z,D){const U=parseInt(D,10);return isNaN(U)||U<0||U>=P.length?z:P[U]})}function X(g){return g.replace(/[<>&]/g,function(P){switch(P){case"<":return"<";case">":return">";case"&":return"&";default:return P}})}function V(g){return g.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function h(g,P=" "){const z=H(g,P);return $(z,P)}function H(g,P){if(!g||!P)return g;const z=P.length;if(z===0||g.length===0)return g;let D=0;for(;g.indexOf(P,D)===D;)D=D+z;return g.substring(D)}function $(g,P){if(!g||!P)return g;const z=P.length,D=g.length;if(z===0||D===0)return g;let U=D,Z=-1;for(;Z=g.lastIndexOf(P,U-1),!(Z===-1||Z+z!==U);){if(Z===0)return"";U=Z}return g.substring(0,U)}function e(g){return g.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function s(g){return g.replace(/\*/g,"")}function c(g,P,z={}){if(!g)throw new Error("Cannot create regex from empty string");P||(g=V(g)),z.wholeWord&&(/\B/.test(g.charAt(0))||(g="\\b"+g),/\B/.test(g.charAt(g.length-1))||(g=g+"\\b"));let D="";return z.global&&(D+="g"),z.matchCase||(D+="i"),z.multiline&&(D+="m"),z.unicode&&(D+="u"),new RegExp(g,D)}function t(g){return g.source==="^"||g.source==="^$"||g.source==="$"||g.source==="^\\s*$"?!1:!!(g.exec("")&&g.lastIndex===0)}function r(g){return(g.global?"g":"")+(g.ignoreCase?"i":"")+(g.multiline?"m":"")+(g.unicode?"u":"")}function i(g){return g.split(/\r\n|\r|\n/)}function o(g){for(let P=0,z=g.length;P<z;P++){const D=g.charCodeAt(P);if(D!==32&&D!==9)return P}return-1}function v(g,P=0,z=g.length){for(let D=P;D<z;D++){const U=g.charCodeAt(D);if(U!==32&&U!==9)return g.substring(P,D)}return g.substring(P,z)}function b(g,P=g.length-1){for(let z=P;z>=0;z--){const D=g.charCodeAt(z);if(D!==32&&D!==9)return z}return-1}function S(g,P){return g<P?-1:g>P?1:0}function p(g,P,z=0,D=g.length,U=0,Z=P.length){for(;z<D&&U<Z;z++,U++){let ce=g.charCodeAt(z),Ee=P.charCodeAt(U);if(ce<Ee)return-1;if(ce>Ee)return 1}const te=D-z,J=Z-U;return te<J?-1:te>J?1:0}function m(g,P){return f(g,P,0,g.length,0,P.length)}function f(g,P,z=0,D=g.length,U=0,Z=P.length){for(;z<D&&U<Z;z++,U++){let ce=g.charCodeAt(z),Ee=P.charCodeAt(U);if(ce===Ee)continue;if(ce>=128||Ee>=128)return p(g.toLowerCase(),P.toLowerCase(),z,D,U,Z);u(ce)&&(ce-=32),u(Ee)&&(Ee-=32);const xe=ce-Ee;if(xe!==0)return xe}const te=D-z,J=Z-U;return te<J?-1:te>J?1:0}function u(g){return g>=97&&g<=122}function k(g){return g>=65&&g<=90}function I(g,P){return g.length===P.length&&f(g,P)===0}function F(g,P){const z=P.length;return P.length>g.length?!1:f(g,P,0,z)===0}function K(g,P){let z,D=Math.min(g.length,P.length);for(z=0;z<D;z++)if(g.charCodeAt(z)!==P.charCodeAt(z))return z;return D}function G(g,P){let z,D=Math.min(g.length,P.length);const U=g.length-1,Z=P.length-1;for(z=0;z<D;z++)if(g.charCodeAt(U-z)!==P.charCodeAt(Z-z))return z;return D}function W(g){return 55296<=g&&g<=56319}function Pe(g){return 56320<=g&&g<=57343}function w(g,P){return(g-55296<<10)+(P-56320)+65536}function _(g,P,z){const D=g.charCodeAt(z);if(W(D)&&z+1<P){const U=g.charCodeAt(z+1);if(Pe(U))return w(D,U)}return D}function x(g,P){const z=g.charCodeAt(P-1);if(Pe(z)&&P>1){const D=g.charCodeAt(P-2);if(W(D))return w(D,z)}return z}function N(g,P){const z=E.getInstance(),D=P,U=g.length,Z=_(g,U,P);P+=Z>=65536?2:1;let te=z.getGraphemeBreakType(Z);for(;P<U;){const J=_(g,U,P),ce=z.getGraphemeBreakType(J);if(be(te,ce))break;P+=J>=65536?2:1,te=ce}return P-D}function C(g,P){const z=E.getInstance(),D=P,U=x(g,P);P-=U>=65536?2:1;let Z=z.getGraphemeBreakType(U);for(;P>0;){const te=x(g,P),J=z.getGraphemeBreakType(te);if(be(J,Z))break;P-=te>=65536?2:1,Z=J}return D-P}const y=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function n(g){return y.test(g)}const a=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDED6])/;function d(g){return a.test(g)}const M=/^[\t\n\r\x20-\x7E]*$/;function ae(g){return M.test(g)}const he=/[\u2028\u2029]/;function ge(g){return he.test(g)}function Ae(g){for(let P=0,z=g.length;P<z;P++)if(We(g.charCodeAt(P)))return!0;return!1}function We(g){return g=+g,g>=11904&&g<=55215||g>=63744&&g<=64255||g>=65281&&g<=65374}function vt(g){return g>=127462&&g<=127487||g===8986||g===8987||g===9200||g===9203||g>=9728&&g<=10175||g===11088||g===11093||g>=127744&&g<=128591||g>=128640&&g<=128764||g>=128992&&g<=129003||g>=129280&&g<=129535||g>=129648&&g<=129750}const ye="\uFEFF";function Ve(g){return!!(g&&g.length>0&&g.charCodeAt(0)===65279)}function dt(g,P=!1){return g?(P&&(g=g.replace(/\\./g,"")),g.toLowerCase()!==g):!1}function Rt(g){return g=g%(2*26),g<26?String.fromCharCode(97+g):String.fromCharCode(65+g-26)}function ot(g){return E.getInstance().getGraphemeBreakType(g)}function be(g,P){return g===0?P!==5&&P!==7:g===2&&P===3?!1:g===4||g===2||g===3||P===4||P===2||P===3?!0:!(g===8&&(P===8||P===9||P===11||P===12)||(g===11||g===9)&&(P===9||P===10)||(g===12||g===10)&&P===10||P===5||P===13||P===7||g===1||g===13&&P===14||g===6&&P===6)}class E{constructor(){this._data=B()}static getInstance(){return E._INSTANCE||(E._INSTANCE=new E),E._INSTANCE}getGraphemeBreakType(P){if(P<32)return P===10?3:P===13?2:4;if(P<127)return 0;const z=this._data,D=z.length/3;let U=1;for(;U<=D;)if(P<z[3*U])U=2*U;else if(P>z[3*U+1])U=2*U+1;else return z[3*U+2];return 0}}E._INSTANCE=null;function B(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}function O(g,P){if(g===0)return 0;const z=q(g,P);if(z!==void 0)return z;const D=x(P,g);return g-=ie(D),g}function q(g,P){let z=x(P,g);for(g-=ie(z);R(z)||z===65039||z===8419;){if(g===0)return;z=x(P,g),g-=ie(z)}if(vt(z)){if(g>=0){const D=x(P,g);D===8205&&(g-=ie(D))}return g}}function ie(g){return g>=65536?2:1}function R(g){return 127995<=g&&g<=127999}},72999:function(Zt,Ke,l){"use strict";l.d(Ke,{$E:function(){return o},$K:function(){return H},D8:function(){return t},HD:function(){return A},IU:function(){return v},Jp:function(){return $},Kn:function(){return j},cW:function(){return s},f6:function(){return b},hj:function(){return X},jn:function(){return V},kJ:function(){return T},mf:function(){return c},o8:function(){return h},p_:function(){return e},vE:function(){return S}});function T(p){return Array.isArray(p)}function A(p){return typeof p=="string"}function j(p){return typeof p=="object"&&p!==null&&!Array.isArray(p)&&!(p instanceof RegExp)&&!(p instanceof Date)}function X(p){return typeof p=="number"&&!isNaN(p)}function V(p){return p===!0||p===!1}function h(p){return typeof p=="undefined"}function H(p){return!$(p)}function $(p){return h(p)||p===null}function e(p,m){if(!p)throw new Error(m?`Unexpected type, expected '${m}'`:"Unexpected type")}function s(p){if($(p))throw new Error("Assertion Failed: argument is undefined or null");return p}function c(p){return typeof p=="function"}function t(p,m){const f=Math.min(p.length,m.length);for(let u=0;u<f;u++)r(p[u],m[u])}function r(p,m){if(A(m)){if(typeof p!==m)throw new Error(`argument does not match constraint: typeof ${m}`)}else if(c(m)){try{if(p instanceof m)return}catch(f){}if(!$(p)&&p.constructor===m||m.length===1&&m.call(void 0,p)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function i(p){let m=[],f=Object.getPrototypeOf(p);for(;Object.prototype!==f;)m=m.concat(Object.getOwnPropertyNames(f)),f=Object.getPrototypeOf(f);return m}function o(p){const m=[];for(const f of i(p))typeof p[f]=="function"&&m.push(f);return m}function v(p,m){const f=k=>function(){const I=Array.prototype.slice.call(arguments,0);return m(k,I)};let u={};for(const k of p)u[k]=f(k);return u}function b(p){return p===null?void 0:p}function S(p,m="Unreachable"){throw new Error(m)}},13268:function(Zt,Ke,l){"use strict";l.d(Ke,{N:function(){return A}});function T(j,X){let V;return X.length===0?V=j:V=j.replace(/\{(\d+)\}/g,function(h,H){const $=H[0];return typeof X[$]!="undefined"?X[$]:h}),V}function A(j,X,...V){return T(X,V)}},96236:function(Zt,Ke,l){"use strict";l.d(Ke,{BH:function(){return v},NZ:function(){return b},U8:function(){return S},co:function(){return o},eH:function(){return i},vr:function(){return r}});var T=l(75918),A=l(52615),j=l(4348),X=l(88226),V=l(69323),h=l(34502),H=l(35884),$=l(90689),e=l(16925),s=l(49055),c=function(p,m,f,u){var k=arguments.length,I=k<3?m:u===null?u=Object.getOwnPropertyDescriptor(m,f):u,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(p,m,f,u);else for(var K=p.length-1;K>=0;K--)(F=p[K])&&(I=(k<3?F(I):k>3?F(m,f,I):F(m,f))||I);return k>3&&I&&Object.defineProperty(m,f,I),I},t=function(p,m){return function(f,u){m(f,u,p)}};function r(p){return p.command!==void 0}class i{constructor(m){this.id=i._idPool++,this._debugName=m}}i._idPool=0,i.CommandPalette=new i("CommandPalette"),i.EditorContext=new i("EditorContext"),i.SimpleEditorContext=new i("SimpleEditorContext"),i.EditorContextCopy=new i("EditorContextCopy"),i.EditorContextPeek=new i("EditorContextPeek"),i.MenubarEditMenu=new i("MenubarEditMenu"),i.MenubarCopy=new i("MenubarCopy"),i.MenubarGoMenu=new i("MenubarGoMenu"),i.MenubarSelectionMenu=new i("MenubarSelectionMenu"),i.InlineCompletionsActions=new i("InlineCompletionsActions");const o=(0,e.yh)("menuService"),v=new class{constructor(){this._commands=new Map,this._menuItems=new Map,this._onDidChangeMenu=new j.Q5,this.onDidChangeMenu=this._onDidChangeMenu.event,this._commandPaletteChangeEvent={has:p=>p===i.CommandPalette}}addCommand(p){return this.addCommands(X.$.single(p))}addCommands(p){for(const m of p)this._commands.set(m.id,m);return this._onDidChangeMenu.fire(this._commandPaletteChangeEvent),(0,V.OF)(()=>{let m=!1;for(const f of p)m=this._commands.delete(f.id)||m;m&&this._onDidChangeMenu.fire(this._commandPaletteChangeEvent)})}getCommand(p){return this._commands.get(p)}getCommands(){const p=new Map;return this._commands.forEach((m,f)=>p.set(f,m)),p}appendMenuItem(p,m){return this.appendMenuItems(X.$.single({id:p,item:m}))}appendMenuItems(p){const m=new Set,f=new h.S;for(const{id:u,item:k}of p){let I=this._menuItems.get(u);I||(I=new h.S,this._menuItems.set(u,I)),f.push(I.push(k)),m.add(u)}return this._onDidChangeMenu.fire(m),(0,V.OF)(()=>{if(f.size>0){for(let u of f)u();this._onDidChangeMenu.fire(m),f.clear()}})}getMenuItems(p){let m;return this._menuItems.has(p)?m=[...this._menuItems.get(p)]:m=[],p===i.CommandPalette&&this._appendImplicitItems(m),m}_appendImplicitItems(p){const m=new Set;for(const f of p)r(f)&&(m.add(f.command.id),f.alt&&m.add(f.alt.id));this._commands.forEach((f,u)=>{m.has(u)||p.push({command:f})})}};class b extends T.wY{constructor(m,f,u,k){super(`submenuitem.${m.submenu.id}`,typeof m.title=="string"?m.title:m.title.value,[],"submenu"),this.item=m,this._menuService=f,this._contextKeyService=u,this._options=k}get actions(){const m=[],f=this._menuService.createMenu(this.item.submenu,this._contextKeyService),u=f.getActions(this._options);f.dispose();for(const[,k]of u)k.length>0&&(m.push(...k),m.push(new T.Z0));return m.length&&m.pop(),m}}let S=class ba{constructor(m,f,u,k,I){var F,K;if(this._commandService=I,this.id=m.id,this.label=u!=null&&u.renderShortTitle&&m.shortTitle?typeof m.shortTitle=="string"?m.shortTitle:m.shortTitle.value:typeof m.title=="string"?m.title:m.title.value,this.tooltip=(K=typeof m.tooltip=="string"?m.tooltip:(F=m.tooltip)===null||F===void 0?void 0:F.value)!==null&&K!==void 0?K:"",this.enabled=!m.precondition||k.contextMatchesRules(m.precondition),this.checked=void 0,m.toggled){const G=m.toggled.condition?m.toggled:{condition:m.toggled};this.checked=k.contextMatchesRules(G.condition),this.checked&&G.tooltip&&(this.tooltip=typeof G.tooltip=="string"?G.tooltip:G.tooltip.value),G.title&&(this.label=typeof G.title=="string"?G.title:G.title.value)}this.item=m,this.alt=f?new ba(f,void 0,u,k,I):void 0,this._options=u,s.kS.isThemeIcon(m.icon)&&(this.class=A.dT.asClassName(m.icon))}dispose(){}run(...m){var f,u;let k=[];return!((f=this._options)===null||f===void 0)&&f.arg&&(k=[...k,this._options.arg]),!((u=this._options)===null||u===void 0)&&u.shouldForwardArgs&&(k=[...k,...m]),this._commandService.executeCommand(this.id,...k)}};S=c([t(3,$.i6),t(4,H.H)],S)},35884:function(Zt,Ke,l){"use strict";l.d(Ke,{H:function(){return H},P:function(){return $}});var T=l(4348),A=l(88226),j=l(69323),X=l(34502),V=l(72999),h=l(16925);const H=(0,h.yh)("commandService"),$=new class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new T.Q5,this.onDidRegisterCommand=this._onDidRegisterCommand.event}registerCommand(e,s){if(!e)throw new Error("invalid command");if(typeof e=="string"){if(!s)throw new Error("invalid command");return this.registerCommand({id:e,handler:s})}if(e.description){const o=[];for(let b of e.description.args)o.push(b.constraint);const v=e.handler;e.handler=function(b,...S){return(0,V.D8)(S,o),v(b,...S)}}const{id:c}=e;let t=this._commands.get(c);t||(t=new X.S,this._commands.set(c,t));let r=t.unshift(e),i=(0,j.OF)(()=>{r();const o=this._commands.get(c);o!=null&&o.isEmpty()&&this._commands.delete(c)});return this._onDidRegisterCommand.fire(c),i}registerCommandAlias(e,s){return $.registerCommand(e,(c,...t)=>c.get(H).executeCommand(s,...t))}getCommand(e){const s=this._commands.get(e);if(!(!s||s.isEmpty()))return A.$.first(s)}getCommands(){const e=new Map;for(const s of this._commands.keys()){const c=this.getCommand(s);c&&e.set(s,c)}return e}};$.registerCommand("noop",()=>{})},90689:function(Zt,Ke,l){"use strict";l.d(Ke,{Ao:function(){return H},Eq:function(){return w},Fb:function(){return $},K8:function(){return N},i6:function(){return Pe},uy:function(){return W}});var T=l(23345),A=l(82983),j=l(16925);let X=T.WE||"";const V=new Map;V.set("false",!1),V.set("true",!0),V.set("isMac",T.dz),V.set("isLinux",T.IJ),V.set("isWindows",T.ED),V.set("isWeb",T.$L),V.set("isMacNative",T.dz&&!T.$L),V.set("isEdge",X.indexOf("Edg/")>=0),V.set("isFirefox",X.indexOf("Firefox")>=0),V.set("isChrome",X.indexOf("Chrome")>=0),V.set("isSafari",X.indexOf("Safari")>=0);const h=Object.prototype.hasOwnProperty;class H{static has(n){return t.create(n)}static equals(n,a){return r.create(n,a)}static regex(n,a){return k.create(n,a)}static not(n){return b.create(n)}static and(...n){return K.create(n,null)}static or(...n){return G.create(n,null,!0)}static deserialize(n,a=!1){if(n)return this._deserializeOrExpression(n,a)}static _deserializeOrExpression(n,a){let d=n.split("||");return G.create(d.map(M=>this._deserializeAndExpression(M,a)),null,!0)}static _deserializeAndExpression(n,a){let d=n.split("&&");return K.create(d.map(M=>this._deserializeOne(M,a)),null)}static _deserializeOne(n,a){if(n=n.trim(),n.indexOf("!=")>=0){let d=n.split("!=");return v.create(d[0].trim(),this._deserializeValue(d[1],a))}if(n.indexOf("==")>=0){let d=n.split("==");return r.create(d[0].trim(),this._deserializeValue(d[1],a))}if(n.indexOf("=~")>=0){let d=n.split("=~");return k.create(d[0].trim(),this._deserializeRegexValue(d[1],a))}if(n.indexOf(" in ")>=0){let d=n.split(" in ");return i.create(d[0].trim(),d[1].trim())}if(/^[^<=>]+>=[^<=>]+$/.test(n)){const d=n.split(">=");return m.create(d[0].trim(),d[1].trim())}if(/^[^<=>]+>[^<=>]+$/.test(n)){const d=n.split(">");return p.create(d[0].trim(),d[1].trim())}if(/^[^<=>]+<=[^<=>]+$/.test(n)){const d=n.split("<=");return u.create(d[0].trim(),d[1].trim())}if(/^[^<=>]+<[^<=>]+$/.test(n)){const d=n.split("<");return f.create(d[0].trim(),d[1].trim())}return/^\!\s*/.test(n)?b.create(n.substr(1).trim()):t.create(n)}static _deserializeValue(n,a){if(n=n.trim(),n==="true")return!0;if(n==="false")return!1;let d=/^'([^']*)'$/.exec(n);return d?d[1].trim():n}static _deserializeRegexValue(n,a){if((0,A.m5)(n)){if(a)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}let d=n.indexOf("/"),M=n.lastIndexOf("/");if(d===M||d<0){if(a)throw new Error(`bad regexp-value '${n}', missing /-enclosure`);return console.warn(`bad regexp-value '${n}', missing /-enclosure`),null}let ae=n.slice(d+1,M),he=n[M+1]==="i"?"i":"";try{return new RegExp(ae,he)}catch(ge){if(a)throw new Error(`bad regexp-value '${n}', parse error: ${ge}`);return console.warn(`bad regexp-value '${n}', parse error: ${ge}`),null}}}function $(y,n){const a=y?y.substituteConstants():void 0,d=n?n.substituteConstants():void 0;return!a&&!d?!0:!a||!d?!1:a.equals(d)}function e(y,n){return y.cmp(n)}class s{constructor(){this.type=0}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!1}serialize(){return"false"}keys(){return[]}negate(){return c.INSTANCE}}s.INSTANCE=new s;class c{constructor(){this.type=1}cmp(n){return this.type-n.type}equals(n){return n.type===this.type}substituteConstants(){return this}evaluate(n){return!0}serialize(){return"true"}keys(){return[]}negate(){return s.INSTANCE}}c.INSTANCE=new c;class t{constructor(n,a){this.key=n,this.negated=a,this.type=2}static create(n,a=null){const d=V.get(n);return typeof d=="boolean"?d?c.INSTANCE:s.INSTANCE:new t(n,a)}cmp(n){return n.type!==this.type?this.type-n.type:_(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=V.get(this.key);return typeof n=="boolean"?n?c.INSTANCE:s.INSTANCE:this}evaluate(n){return!!n.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=b.create(this.key,this)),this.negated}}class r{constructor(n,a,d){this.key=n,this.value=a,this.negated=d,this.type=4}static create(n,a,d=null){if(typeof a=="boolean")return a?t.create(n,d):b.create(n,d);const M=V.get(n);return typeof M=="boolean"?a===(M?"true":"false")?c.INSTANCE:s.INSTANCE:new r(n,a,d)}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=V.get(this.key);if(typeof n=="boolean"){const a=n?"true":"false";return this.value===a?c.INSTANCE:s.INSTANCE}return this}evaluate(n){return n.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=v.create(this.key,this.value,this)),this.negated}}class i{constructor(n,a){this.key=n,this.valueKey=a,this.type=10,this.negated=null}static create(n,a){return new i(n,a)}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.valueKey,n.key,n.valueKey)}equals(n){return n.type===this.type?this.key===n.key&&this.valueKey===n.valueKey:!1}substituteConstants(){return this}evaluate(n){const a=n.getValue(this.valueKey),d=n.getValue(this.key);return Array.isArray(a)?a.indexOf(d)>=0:typeof d=="string"&&typeof a=="object"&&a!==null?h.call(a,d):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=o.create(this)),this.negated}}class o{constructor(n){this._actual=n,this.type=11}static create(n){return new o(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}class v{constructor(n,a,d){this.key=n,this.value=a,this.negated=d,this.type=5}static create(n,a,d=null){if(typeof a=="boolean")return a?b.create(n,d):t.create(n,d);const M=V.get(n);return typeof M=="boolean"?a===(M?"true":"false")?s.INSTANCE:c.INSTANCE:new v(n,a,d)}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){const n=V.get(this.key);if(typeof n=="boolean"){const a=n?"true":"false";return this.value===a?s.INSTANCE:c.INSTANCE}return this}evaluate(n){return n.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=r.create(this.key,this.value,this)),this.negated}}class b{constructor(n,a){this.key=n,this.negated=a,this.type=3}static create(n,a=null){const d=V.get(n);return typeof d=="boolean"?d?s.INSTANCE:c.INSTANCE:new b(n,a)}cmp(n){return n.type!==this.type?this.type-n.type:_(this.key,n.key)}equals(n){return n.type===this.type?this.key===n.key:!1}substituteConstants(){const n=V.get(this.key);return typeof n=="boolean"?n?s.INSTANCE:c.INSTANCE:this}evaluate(n){return!n.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=t.create(this.key,this)),this.negated}}function S(y,n){if(typeof y=="string"){const a=parseFloat(y);isNaN(a)||(y=a)}return typeof y=="string"||typeof y=="number"?n(y):s.INSTANCE}class p{constructor(n,a,d){this.key=n,this.value=a,this.negated=d,this.type=12}static create(n,a,d=null){return S(a,M=>new p(n,M,d))}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=u.create(this.key,this.value,this)),this.negated}}class m{constructor(n,a,d){this.key=n,this.value=a,this.negated=d,this.type=13}static create(n,a,d=null){return S(a,M=>new m(n,M,d))}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=f.create(this.key,this.value,this)),this.negated}}class f{constructor(n,a,d){this.key=n,this.value=a,this.negated=d,this.type=14}static create(n,a,d=null){return S(a,M=>new f(n,M,d))}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))<this.value}serialize(){return`${this.key} < ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=m.create(this.key,this.value,this)),this.negated}}class u{constructor(n,a,d){this.key=n,this.value=a,this.negated=d,this.type=15}static create(n,a,d=null){return S(a,M=>new u(n,M,d))}cmp(n){return n.type!==this.type?this.type-n.type:x(this.key,this.value,n.key,n.value)}equals(n){return n.type===this.type?this.key===n.key&&this.value===n.value:!1}substituteConstants(){return this}evaluate(n){return typeof this.value=="string"?!1:parseFloat(n.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=p.create(this.key,this.value,this)),this.negated}}class k{constructor(n,a){this.key=n,this.regexp=a,this.type=7,this.negated=null}static create(n,a){return new k(n,a)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.key<n.key)return-1;if(this.key>n.key)return 1;const a=this.regexp?this.regexp.source:"",d=n.regexp?n.regexp.source:"";return a<d?-1:a>d?1:0}equals(n){if(n.type===this.type){const a=this.regexp?this.regexp.source:"",d=n.regexp?n.regexp.source:"";return this.key===n.key&&a===d}return!1}substituteConstants(){return this}evaluate(n){let a=n.getValue(this.key);return this.regexp?this.regexp.test(a):!1}serialize(){const n=this.regexp?`/${this.regexp.source}/${this.regexp.ignoreCase?"i":""}`:"/invalid/";return`${this.key} =~ ${n}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=I.create(this)),this.negated}}class I{constructor(n){this._actual=n,this.type=8}static create(n){return new I(n)}cmp(n){return n.type!==this.type?this.type-n.type:this._actual.cmp(n._actual)}equals(n){return n.type===this.type?this._actual.equals(n._actual):!1}substituteConstants(){return this}evaluate(n){return!this._actual.evaluate(n)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function F(y){let n=null;for(let a=0,d=y.length;a<d;a++){const M=y[a].substituteConstants();if(y[a]!==M&&n===null){n=[];for(let ae=0;ae<a;ae++)n[ae]=y[ae]}n!==null&&(n[a]=M)}return n===null?y:n}class K{constructor(n,a){this.expr=n,this.negated=a,this.type=6}static create(n,a){return K._normalizeArr(n,a)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.expr.length<n.expr.length)return-1;if(this.expr.length>n.expr.length)return 1;for(let a=0,d=this.expr.length;a<d;a++){const M=e(this.expr[a],n.expr[a]);if(M!==0)return M}return 0}equals(n){if(n.type===this.type){if(this.expr.length!==n.expr.length)return!1;for(let a=0,d=this.expr.length;a<d;a++)if(!this.expr[a].equals(n.expr[a]))return!1;return!0}return!1}substituteConstants(){const n=F(this.expr);return n===this.expr?this:K.create(n,this.negated)}evaluate(n){for(let a=0,d=this.expr.length;a<d;a++)if(!this.expr[a].evaluate(n))return!1;return!0}static _normalizeArr(n,a){const d=[];let M=!1;for(const ae of n)if(ae){if(ae.type===1){M=!0;continue}if(ae.type===0)return s.INSTANCE;if(ae.type===6){d.push(...ae.expr);continue}d.push(ae)}if(d.length===0&&M)return c.INSTANCE;if(d.length!==0){if(d.length===1)return d[0];d.sort(e);for(let ae=1;ae<d.length;ae++)d[ae-1].equals(d[ae])&&(d.splice(ae,1),ae--);if(d.length===1)return d[0];for(;d.length>1;){const ae=d[d.length-1];if(ae.type!==9)break;d.pop();const he=d.pop(),ge=d.length===0,Ae=G.create(ae.expr.map(We=>K.create([We,he],null)),null,ge);Ae&&(d.push(Ae),d.sort(e))}return d.length===1?d[0]:new K(d,a)}}serialize(){return this.expr.map(n=>n.serialize()).join(" && ")}keys(){const n=[];for(let a of this.expr)n.push(...a.keys());return n}negate(){if(!this.negated){const n=[];for(let a of this.expr)n.push(a.negate());this.negated=G.create(n,this,!0)}return this.negated}}class G{constructor(n,a){this.expr=n,this.negated=a,this.type=9}static create(n,a,d){return G._normalizeArr(n,a,d)}cmp(n){if(n.type!==this.type)return this.type-n.type;if(this.expr.length<n.expr.length)return-1;if(this.expr.length>n.expr.length)return 1;for(let a=0,d=this.expr.length;a<d;a++){const M=e(this.expr[a],n.expr[a]);if(M!==0)return M}return 0}equals(n){if(n.type===this.type){if(this.expr.length!==n.expr.length)return!1;for(let a=0,d=this.expr.length;a<d;a++)if(!this.expr[a].equals(n.expr[a]))return!1;return!0}return!1}substituteConstants(){const n=F(this.expr);return n===this.expr?this:G.create(n,this.negated,!1)}evaluate(n){for(let a=0,d=this.expr.length;a<d;a++)if(this.expr[a].evaluate(n))return!0;return!1}static _normalizeArr(n,a,d){let M=[],ae=!1;if(n){for(let he=0,ge=n.length;he<ge;he++){const Ae=n[he];if(Ae){if(Ae.type===0){ae=!0;continue}if(Ae.type===1)return c.INSTANCE;if(Ae.type===9){M=M.concat(Ae.expr);continue}M.push(Ae)}}if(M.length===0&&ae)return s.INSTANCE;M.sort(e)}if(M.length!==0){if(M.length===1)return M[0];for(let he=1;he<M.length;he++)M[he-1].equals(M[he])&&(M.splice(he,1),he--);if(M.length===1)return M[0];if(d){for(let he=0;he<M.length;he++)for(let ge=he+1;ge<M.length;ge++)N(M[he],M[ge])&&(M.splice(ge,1),ge--);if(M.length===1)return M[0]}return new G(M,a)}}serialize(){return this.expr.map(n=>n.serialize()).join(" || ")}keys(){const n=[];for(let a of this.expr)n.push(...a.keys());return n}negate(){if(!this.negated){let n=[];for(let a of this.expr)n.push(a.negate());for(;n.length>1;){const a=n.shift(),d=n.shift(),M=[];for(const he of C(a))for(const ge of C(d))M.push(K.create([he,ge],null));const ae=n.length===0;n.unshift(G.create(M,null,ae))}this.negated=n[0]}return this.negated}}class W extends t{constructor(n,a,d){super(n,null),this._defaultValue=a,typeof d=="object"?W._info.push(Object.assign(Object.assign({},d),{key:n})):d!==!0&&W._info.push({key:n,description:d,type:a!=null?typeof a:void 0})}static all(){return W._info.values()}bindTo(n){return n.createKey(this.key,this._defaultValue)}getValue(n){return n.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(n){return r.create(this.key,n)}}W._info=[];const Pe=(0,j.yh)("contextKeyService"),w="setContext";function _(y,n){return y<n?-1:y>n?1:0}function x(y,n,a,d){return y<a?-1:y>a?1:n<d?-1:n>d?1:0}function N(y,n){if(n.type===6&&y.type!==9&&y.type!==6){for(const M of n.expr)if(y.equals(M))return!0}const a=y.negate(),d=C(a).concat(C(n));d.sort(e);for(let M=0;M<d.length;M++){const he=d[M].negate();for(let ge=M+1;ge<d.length;ge++){const Ae=d[ge];if(he.equals(Ae))return!0}}return!1}function C(y){return y.type===9?y.expr:[y]}},16925:function(Zt,Ke,l){"use strict";l.d(Ke,{I8:function(){return T},TG:function(){return A},jt:function(){return V},yh:function(){return X}});var T;(function(h){h.serviceIds=new Map,h.DI_TARGET="$di$target",h.DI_DEPENDENCIES="$di$dependencies";function H($){return $[h.DI_DEPENDENCIES]||[]}h.getServiceDependencies=H})(T||(T={}));const A=X("instantiationService");function j(h,H,$,e){H[T.DI_TARGET]===H?H[T.DI_DEPENDENCIES].push({id:h,index:$,optional:e}):(H[T.DI_DEPENDENCIES]=[{id:h,index:$,optional:e}],H[T.DI_TARGET]=H)}function X(h){if(T.serviceIds.has(h))return T.serviceIds.get(h);const H=function($,e,s){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");j(H,$,s,!1)};return H.toString=()=>h,T.serviceIds.set(h,H),H}function V(h){return function(H,$,e){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");j(h,H,e,!0)}}},44650:function(Zt,Ke,l){"use strict";l.d(Ke,{B:function(){return X}});var T=l(76068),A=l(72999);class j{constructor(){this.data=new Map}add(h,H){T.ok(A.HD(h)),T.ok(A.Kn(H)),T.ok(!this.data.has(h),"There is already an extension with this id"),this.data.set(h,H)}as(h){return this.data.get(h)||null}}const X=new j},66213:function(Zt,Ke,l){"use strict";l.d(Ke,{e:function(){return T}});var T;(function(A){A.DARK="dark",A.LIGHT="light",A.HIGH_CONTRAST="hc"})(T||(T={}))},49055:function(Zt,Ke,l){"use strict";l.d(Ke,{EN:function(){return e},IP:function(){return t},Ic:function(){return o},XE:function(){return H},bB:function(){return v},kS:function(){return s},m6:function(){return c}});var T=l(52615),A=l(4348),j=l(69323),X=l(16925),V=l(44650),h=l(66213);const H=(0,X.yh)("themeService");var $;(function(b){function S(p){return p&&typeof p=="object"&&typeof p.id=="string"}b.isThemeColor=S})($||($={}));function e(b){return{id:b}}var s;(function(b){function S(I){return I&&typeof I=="object"&&typeof I.id=="string"&&(typeof I.color=="undefined"||$.isThemeColor(I.color))}b.isThemeIcon=S;const p=new RegExp(`^\\$\\((${T.dT.iconNameExpression}(?:${T.dT.iconModifierExpression})?)\\)$`);function m(I){const F=p.exec(I);if(!F)return;let[,K]=F;return{id:K}}b.fromString=m;function f(I,F){let K=I.id;const G=K.lastIndexOf("~");return G!==-1&&(K=K.substring(0,G)),F&&(K=`${K}~${F}`),{id:K}}b.modify=f;function u(I,F){var K,G;return I.id===F.id&&((K=I.color)===null||K===void 0?void 0:K.id)===((G=F.color)===null||G===void 0?void 0:G.id)}b.isEqual=u;function k(I,F){return{id:I.id,color:F?e(F):void 0}}b.asThemeIcon=k,b.asClassNameArray=T.dT.asClassNameArray,b.asClassName=T.dT.asClassName,b.asCSSSelector=T.dT.asCSSSelector})(s||(s={}));function c(b){switch(b){case h.e.DARK:return"vs-dark";case h.e.HIGH_CONTRAST:return"hc-black";default:return"vs"}}const t={ThemingContribution:"base.contributions.theming"};class r{constructor(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new A.Q5}onColorThemeChange(S){return this.themingParticipants.push(S),this.onThemingParticipantAddedEmitter.fire(S),(0,j.OF)(()=>{const p=this.themingParticipants.indexOf(S);this.themingParticipants.splice(p,1)})}getThemingParticipants(){return this.themingParticipants}}let i=new r;V.B.add(t.ThemingContribution,i);function o(b){return i.onColorThemeChange(b)}class v extends j.JT{constructor(S){super(),this.themeService=S,this.theme=S.getColorTheme(),this._register(this.themeService.onDidColorThemeChange(p=>this.onThemeChange(p)))}onThemeChange(S){this.theme=S,this.updateStyles()}updateStyles(){}}},16632:function(Zt,Ke,l){"use strict";var T=l(14809),A=l(20439),j=l(4635),X=l(50298),V=l(62646),h=l(92310),H=l.n(h),$=l(18929),e=l(59301),s=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],c=(0,e.forwardRef)(function(t,r){var i=t.prefixCls,o=i===void 0?"rc-checkbox":i,v=t.className,b=t.style,S=t.checked,p=t.disabled,m=t.defaultChecked,f=m===void 0?!1:m,u=t.type,k=u===void 0?"checkbox":u,I=t.title,F=t.onChange,K=(0,V.Z)(t,s),G=(0,e.useRef)(null),W=(0,e.useRef)(null),Pe=(0,$.Z)(f,{value:S}),w=(0,X.Z)(Pe,2),_=w[0],x=w[1];(0,e.useImperativeHandle)(r,function(){return{focus:function(n){var a;(a=G.current)===null||a===void 0||a.focus(n)},blur:function(){var n;(n=G.current)===null||n===void 0||n.blur()},input:G.current,nativeElement:W.current}});var N=H()(o,v,(0,j.Z)((0,j.Z)({},"".concat(o,"-checked"),_),"".concat(o,"-disabled"),p)),C=function(n){p||("checked"in t||x(n.target.checked),F==null||F({target:(0,A.Z)((0,A.Z)({},t),{},{type:k,checked:n.target.checked}),stopPropagation:function(){n.stopPropagation()},preventDefault:function(){n.preventDefault()},nativeEvent:n.nativeEvent}))};return e.createElement("span",{className:N,title:I,style:b,ref:W},e.createElement("input",(0,T.Z)({},K,{className:"".concat(o,"-input"),ref:G,onChange:C,disabled:p,checked:!!_,type:k})),e.createElement("span",{className:"".concat(o,"-inner")}))});Ke.Z=c},96478:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return I}});var T=l(14809),A=l(4635),j=l(50298),X=l(62646),V=l(65966),h=l(92310),H=l.n(h),$=l(8654),e=l(59301),s=l(10228),c=l(16089),t=s.Z.ESC,r=s.Z.TAB;function i(F){var K=F.visible,G=F.triggerRef,W=F.onVisibleChange,Pe=F.autoFocus,w=F.overlayRef,_=e.useRef(!1),x=function(){if(K){var n,a;(n=G.current)===null||n===void 0||(a=n.focus)===null||a===void 0||a.call(n),W==null||W(!1)}},N=function(){var n;return(n=w.current)!==null&&n!==void 0&&n.focus?(w.current.focus(),_.current=!0,!0):!1},C=function(n){switch(n.keyCode){case t:x();break;case r:{var a=!1;_.current||(a=N()),a?n.preventDefault():x();break}}};e.useEffect(function(){return K?(window.addEventListener("keydown",C),Pe&&(0,c.Z)(N,3),function(){window.removeEventListener("keydown",C),_.current=!1}):function(){_.current=!1}},[K])}var o=(0,e.forwardRef)(function(F,K){var G=F.overlay,W=F.arrow,Pe=F.prefixCls,w=(0,e.useMemo)(function(){var x;return typeof G=="function"?x=G():x=G,x},[G]),_=(0,$.sQ)(K,(0,$.C4)(w));return e.createElement(e.Fragment,null,W&&e.createElement("div",{className:"".concat(Pe,"-arrow")}),e.cloneElement(w,{ref:(0,$.Yr)(w)?_:void 0}))}),v=o,b={adjustX:1,adjustY:1},S=[0,0],p={topLeft:{points:["bl","tl"],overflow:b,offset:[0,-4],targetOffset:S},top:{points:["bc","tc"],overflow:b,offset:[0,-4],targetOffset:S},topRight:{points:["br","tr"],overflow:b,offset:[0,-4],targetOffset:S},bottomLeft:{points:["tl","bl"],overflow:b,offset:[0,4],targetOffset:S},bottom:{points:["tc","bc"],overflow:b,offset:[0,4],targetOffset:S},bottomRight:{points:["tr","br"],overflow:b,offset:[0,4],targetOffset:S}},m=p,f=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function u(F,K){var G,W=F.arrow,Pe=W===void 0?!1:W,w=F.prefixCls,_=w===void 0?"rc-dropdown":w,x=F.transitionName,N=F.animation,C=F.align,y=F.placement,n=y===void 0?"bottomLeft":y,a=F.placements,d=a===void 0?m:a,M=F.getPopupContainer,ae=F.showAction,he=F.hideAction,ge=F.overlayClassName,Ae=F.overlayStyle,We=F.visible,vt=F.trigger,ye=vt===void 0?["hover"]:vt,Ve=F.autoFocus,dt=F.overlay,Rt=F.children,ot=F.onVisibleChange,be=(0,X.Z)(F,f),E=e.useState(),B=(0,j.Z)(E,2),O=B[0],q=B[1],ie="visible"in F?We:O,R=e.useRef(null),g=e.useRef(null),P=e.useRef(null);e.useImperativeHandle(K,function(){return R.current});var z=function(Fe){q(Fe),ot==null||ot(Fe)};i({visible:ie,triggerRef:P,onVisibleChange:z,autoFocus:Ve,overlayRef:g});var D=function(Fe){var Ie=F.onOverlayClick;q(!1),Ie&&Ie(Fe)},U=function(){return e.createElement(v,{ref:g,overlay:dt,prefixCls:_,arrow:Pe})},Z=function(){return typeof dt=="function"?U:U()},te=function(){var Fe=F.minOverlayWidthMatchTrigger,Ie=F.alignPoint;return"minOverlayWidthMatchTrigger"in F?Fe:!Ie},J=function(){var Fe=F.openClassName;return Fe!==void 0?Fe:"".concat(_,"-open")},ce=e.cloneElement(Rt,{className:H()((G=Rt.props)===null||G===void 0?void 0:G.className,ie&&J()),ref:(0,$.Yr)(Rt)?(0,$.sQ)(P,(0,$.C4)(Rt)):void 0}),Ee=he;return!Ee&&ye.indexOf("contextMenu")!==-1&&(Ee=["click"]),e.createElement(V.Z,(0,T.Z)({builtinPlacements:d},be,{prefixCls:_,ref:R,popupClassName:H()(ge,(0,A.Z)({},"".concat(_,"-show-arrow"),Pe)),popupStyle:Ae,action:ye,showAction:ae,hideAction:Ee,popupPlacement:n,popupAlign:C,popupTransitionName:x,popupAnimation:N,popupVisible:ie,stretch:te()?"minWidth":"",popup:Z(),onPopupVisibleChange:z,onPopupClick:D,getPopupContainer:M}),ce)}var k=e.forwardRef(u),I=k},66003:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return H}});var T=l(62646),A=l(20439),j=l(93664),X=l(59301),V=["show"];function h($,e){if(!e.max)return!0;var s=e.strategy($);return s<=e.max}function H($,e){return X.useMemo(function(){var s={};e&&(s.show=(0,j.Z)(e)==="object"&&e.formatter?e.formatter:!!e),s=(0,A.Z)((0,A.Z)({},s),$);var c=s,t=c.show,r=(0,T.Z)(c,V);return(0,A.Z)((0,A.Z)({},r),{},{show:!!t,showFormatter:typeof t=="function"?t:void 0,strategy:r.strategy||function(i){return i.length}})},[$,e])}},36901:function(Zt,Ke,l){"use strict";l.r(Ke),l.d(Ke,{BaseInput:function(){return s},default:function(){return m}});var T=l(20439),A=l(14809),j=l(4635),X=l(93664),V=l(92310),h=l.n(V),H=l(59301),$=l(30292),e=H.forwardRef(function(f,u){var k,I,F,K=f.inputElement,G=f.children,W=f.prefixCls,Pe=f.prefix,w=f.suffix,_=f.addonBefore,x=f.addonAfter,N=f.className,C=f.style,y=f.disabled,n=f.readOnly,a=f.focused,d=f.triggerFocus,M=f.allowClear,ae=f.value,he=f.handleReset,ge=f.hidden,Ae=f.classes,We=f.classNames,vt=f.dataAttrs,ye=f.styles,Ve=f.components,dt=f.onClear,Rt=G!=null?G:K,ot=(Ve==null?void 0:Ve.affixWrapper)||"span",be=(Ve==null?void 0:Ve.groupWrapper)||"span",E=(Ve==null?void 0:Ve.wrapper)||"span",B=(Ve==null?void 0:Ve.groupAddon)||"span",O=(0,H.useRef)(null),q=function(Le){var Oe;(Oe=O.current)!==null&&Oe!==void 0&&Oe.contains(Le.target)&&(d==null||d())},ie=(0,$.X3)(f),R=(0,H.cloneElement)(Rt,{value:ae,className:h()((k=Rt.props)===null||k===void 0?void 0:k.className,!ie&&(We==null?void 0:We.variant))||null}),g=(0,H.useRef)(null);if(H.useImperativeHandle(u,function(){return{nativeElement:g.current||O.current}}),ie){var P=null;if(M){var z=!y&&!n&&ae,D="".concat(W,"-clear-icon"),U=(0,X.Z)(M)==="object"&&M!==null&&M!==void 0&&M.clearIcon?M.clearIcon:"\u2716";P=H.createElement("button",{type:"button",tabIndex:-1,onClick:function(Le){he==null||he(Le),dt==null||dt()},onMouseDown:function(Le){return Le.preventDefault()},className:h()(D,(0,j.Z)((0,j.Z)({},"".concat(D,"-hidden"),!z),"".concat(D,"-has-suffix"),!!w))},U)}var Z="".concat(W,"-affix-wrapper"),te=h()(Z,(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(W,"-disabled"),y),"".concat(Z,"-disabled"),y),"".concat(Z,"-focused"),a),"".concat(Z,"-readonly"),n),"".concat(Z,"-input-with-clear-btn"),w&&M&&ae),Ae==null?void 0:Ae.affixWrapper,We==null?void 0:We.affixWrapper,We==null?void 0:We.variant),J=(w||M)&&H.createElement("span",{className:h()("".concat(W,"-suffix"),We==null?void 0:We.suffix),style:ye==null?void 0:ye.suffix},P,w);R=H.createElement(ot,(0,A.Z)({className:te,style:ye==null?void 0:ye.affixWrapper,onClick:q},vt==null?void 0:vt.affixWrapper,{ref:O}),Pe&&H.createElement("span",{className:h()("".concat(W,"-prefix"),We==null?void 0:We.prefix),style:ye==null?void 0:ye.prefix},Pe),R,J)}if((0,$.He)(f)){var ce="".concat(W,"-group"),Ee="".concat(ce,"-addon"),xe="".concat(ce,"-wrapper"),Fe=h()("".concat(W,"-wrapper"),ce,Ae==null?void 0:Ae.wrapper,We==null?void 0:We.wrapper),Ie=h()(xe,(0,j.Z)({},"".concat(xe,"-disabled"),y),Ae==null?void 0:Ae.group,We==null?void 0:We.groupWrapper);R=H.createElement(be,{className:Ie,ref:g},H.createElement(E,{className:Fe},_&&H.createElement(B,{className:Ee},_),R,x&&H.createElement(B,{className:Ee},x)))}return H.cloneElement(R,{className:h()((I=R.props)===null||I===void 0?void 0:I.className,N)||null,style:(0,T.Z)((0,T.Z)({},(F=R.props)===null||F===void 0?void 0:F.style),C),hidden:ge})}),s=e,c=l(95190),t=l(50298),r=l(62646),i=l(18929),o=l(2738),v=l(66003),b=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],S=(0,H.forwardRef)(function(f,u){var k=f.autoComplete,I=f.onChange,F=f.onFocus,K=f.onBlur,G=f.onPressEnter,W=f.onKeyDown,Pe=f.onKeyUp,w=f.prefixCls,_=w===void 0?"rc-input":w,x=f.disabled,N=f.htmlSize,C=f.className,y=f.maxLength,n=f.suffix,a=f.showCount,d=f.count,M=f.type,ae=M===void 0?"text":M,he=f.classes,ge=f.classNames,Ae=f.styles,We=f.onCompositionStart,vt=f.onCompositionEnd,ye=(0,r.Z)(f,b),Ve=(0,H.useState)(!1),dt=(0,t.Z)(Ve,2),Rt=dt[0],ot=dt[1],be=(0,H.useRef)(!1),E=(0,H.useRef)(!1),B=(0,H.useRef)(null),O=(0,H.useRef)(null),q=function(st){B.current&&(0,$.nH)(B.current,st)},ie=(0,i.Z)(f.defaultValue,{value:f.value}),R=(0,t.Z)(ie,2),g=R[0],P=R[1],z=g==null?"":String(g),D=(0,H.useState)(null),U=(0,t.Z)(D,2),Z=U[0],te=U[1],J=(0,v.Z)(d,a),ce=J.max||y,Ee=J.strategy(z),xe=!!ce&&Ee>ce;(0,H.useImperativeHandle)(u,function(){var pt;return{focus:q,blur:function(){var bt;(bt=B.current)===null||bt===void 0||bt.blur()},setSelectionRange:function(bt,Qt,kt){var Lt;(Lt=B.current)===null||Lt===void 0||Lt.setSelectionRange(bt,Qt,kt)},select:function(){var bt;(bt=B.current)===null||bt===void 0||bt.select()},input:B.current,nativeElement:((pt=O.current)===null||pt===void 0?void 0:pt.nativeElement)||B.current}}),(0,H.useEffect)(function(){E.current&&(E.current=!1),ot(function(pt){return pt&&x?!1:pt})},[x]);var Fe=function(st,bt,Qt){var kt=bt;if(!be.current&&J.exceedFormatter&&J.max&&J.strategy(bt)>J.max){if(kt=J.exceedFormatter(bt,{max:J.max}),bt!==kt){var Lt,Mt;te([((Lt=B.current)===null||Lt===void 0?void 0:Lt.selectionStart)||0,((Mt=B.current)===null||Mt===void 0?void 0:Mt.selectionEnd)||0])}}else if(Qt.source==="compositionEnd")return;P(kt),B.current&&(0,$.rJ)(B.current,st,I,kt)};(0,H.useEffect)(function(){if(Z){var pt;(pt=B.current)===null||pt===void 0||pt.setSelectionRange.apply(pt,(0,c.Z)(Z))}},[Z]);var Ie=function(st){Fe(st,st.target.value,{source:"change"})},de=function(st){be.current=!1,Fe(st,st.currentTarget.value,{source:"compositionEnd"}),vt==null||vt(st)},Le=function(st){G&&st.key==="Enter"&&!E.current&&(E.current=!0,G(st)),W==null||W(st)},Oe=function(st){st.key==="Enter"&&(E.current=!1),Pe==null||Pe(st)},De=function(st){ot(!0),F==null||F(st)},at=function(st){E.current&&(E.current=!1),ot(!1),K==null||K(st)},Et=function(st){P(""),q(),B.current&&(0,$.rJ)(B.current,st,I)},et=xe&&"".concat(_,"-out-of-range"),Tt=function(){var st=(0,o.Z)(f,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return H.createElement("input",(0,A.Z)({autoComplete:k},st,{onChange:Ie,onFocus:De,onBlur:at,onKeyDown:Le,onKeyUp:Oe,className:h()(_,(0,j.Z)({},"".concat(_,"-disabled"),x),ge==null?void 0:ge.input),style:Ae==null?void 0:Ae.input,ref:B,size:N,type:ae,onCompositionStart:function(Qt){be.current=!0,We==null||We(Qt)},onCompositionEnd:de}))},tn=function(){var st=Number(ce)>0;if(n||J.show){var bt=J.showFormatter?J.showFormatter({value:z,count:Ee,maxLength:ce}):"".concat(Ee).concat(st?" / ".concat(ce):"");return H.createElement(H.Fragment,null,J.show&&H.createElement("span",{className:h()("".concat(_,"-show-count-suffix"),(0,j.Z)({},"".concat(_,"-show-count-has-suffix"),!!n),ge==null?void 0:ge.count),style:(0,T.Z)({},Ae==null?void 0:Ae.count)},bt),n)}return null};return H.createElement(s,(0,A.Z)({},ye,{prefixCls:_,className:h()(C,et),handleReset:Et,value:z,focused:Rt,triggerFocus:q,suffix:tn(),disabled:x,classes:he,classNames:ge,styles:Ae}),Tt())}),p=S,m=p},30292:function(Zt,Ke,l){"use strict";l.d(Ke,{He:function(){return T},X3:function(){return A},nH:function(){return V},rJ:function(){return X}});function T(h){return!!(h.addonBefore||h.addonAfter)}function A(h){return!!(h.prefix||h.suffix||h.allowClear)}function j(h,H,$){var e=H.cloneNode(!0),s=Object.create(h,{target:{value:e},currentTarget:{value:e}});return e.value=$,typeof H.selectionStart=="number"&&typeof H.selectionEnd=="number"&&(e.selectionStart=H.selectionStart,e.selectionEnd=H.selectionEnd),e.setSelectionRange=function(){H.setSelectionRange.apply(H,arguments)},s}function X(h,H,$,e){if($){var s=H;if(H.type==="click"){s=j(H,h,""),$(s);return}if(h.type!=="file"&&e!==void 0){s=j(H,h,e),$(s);return}$(s)}}function V(h,H){if(h){h.focus(H);var $=H||{},e=$.cursor;if(e){var s=h.value.length;switch(e){case"start":h.setSelectionRange(0,0);break;case"end":h.setSelectionRange(s,s);break;default:h.setSelectionRange(0,s)}}}}},28321:function(Zt,Ke,l){"use strict";l.d(Ke,{iz:function(){return ne},ck:function(){return kt},BW:function(){return Xe},sN:function(){return kt},Wd:function(){return Ln},ZP:function(){return He},Xl:function(){return G}});var T=l(14809),A=l(4635),j=l(20439),X=l(95190),V=l(50298),h=l(62646),H=l(92310),$=l.n(H),e=l(11780),s=l(18929),c=l(13697),t=l(48736),r=l(59301),i=l(4676),o=r.createContext(null);function v(Y,se){return Y===void 0?null:"".concat(Y,"-").concat(se)}function b(Y){var se=r.useContext(o);return v(se,Y)}var S=l(80547),p=["children","locked"],m=r.createContext(null);function f(Y,se){var fe=(0,j.Z)({},Y);return Object.keys(se).forEach(function(ve){var Me=se[ve];Me!==void 0&&(fe[ve]=Me)}),fe}function u(Y){var se=Y.children,fe=Y.locked,ve=(0,h.Z)(Y,p),Me=r.useContext(m),je=(0,S.Z)(function(){return f(Me,ve)},[Me,ve],function(Te,Ge){return!fe&&(Te[0]!==Ge[0]||!(0,c.Z)(Te[1],Ge[1],!0))});return r.createElement(m.Provider,{value:je},se)}var k=[],I=r.createContext(null);function F(){return r.useContext(I)}var K=r.createContext(k);function G(Y){var se=r.useContext(K);return r.useMemo(function(){return Y!==void 0?[].concat((0,X.Z)(se),[Y]):se},[se,Y])}var W=r.createContext(null),Pe=r.createContext({}),w=Pe,_=l(29194);function x(Y){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,_.Z)(Y)){var fe=Y.nodeName.toLowerCase(),ve=["input","select","textarea","button"].includes(fe)||Y.isContentEditable||fe==="a"&&!!Y.getAttribute("href"),Me=Y.getAttribute("tabindex"),je=Number(Me),Te=null;return Me&&!Number.isNaN(je)?Te=je:ve&&Te===null&&(Te=0),ve&&Y.disabled&&(Te=null),Te!==null&&(Te>=0||se&&Te<0)}return!1}function N(Y){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=(0,X.Z)(Y.querySelectorAll("*")).filter(function(ve){return x(ve,se)});return x(Y,se)&&fe.unshift(Y),fe}var C=null;function y(){C=document.activeElement}function n(){C=null}function a(){if(C)try{C.focus()}catch(Y){}}function d(Y,se){if(se.keyCode===9){var fe=N(Y),ve=fe[se.shiftKey?0:fe.length-1],Me=ve===document.activeElement||Y===document.activeElement;if(Me){var je=fe[se.shiftKey?fe.length-1:0];je.focus(),se.preventDefault()}}}var M=l(10228),ae=l(16089),he=M.Z.LEFT,ge=M.Z.RIGHT,Ae=M.Z.UP,We=M.Z.DOWN,vt=M.Z.ENTER,ye=M.Z.ESC,Ve=M.Z.HOME,dt=M.Z.END,Rt=[Ae,We,he,ge];function ot(Y,se,fe,ve){var Me,je="prev",Te="next",Ge="children",Qe="parent";if(Y==="inline"&&ve===vt)return{inlineTrigger:!0};var lt=(0,A.Z)((0,A.Z)({},Ae,je),We,Te),Kt=(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({},he,fe?Te:je),ge,fe?je:Te),We,Ge),vt,Ge),ft=(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({},Ae,je),We,Te),vt,Ge),ye,Qe),he,fe?Ge:Qe),ge,fe?Qe:Ge),Ct={inline:lt,horizontal:Kt,vertical:ft,inlineSub:lt,horizontalSub:ft,verticalSub:ft},Ft=(Me=Ct["".concat(Y).concat(se?"":"Sub")])===null||Me===void 0?void 0:Me[ve];switch(Ft){case je:return{offset:-1,sibling:!0};case Te:return{offset:1,sibling:!0};case Qe:return{offset:-1,sibling:!1};case Ge:return{offset:1,sibling:!1};default:return null}}function be(Y){for(var se=Y;se;){if(se.getAttribute("data-menu-list"))return se;se=se.parentElement}return null}function E(Y,se){for(var fe=Y||document.activeElement;fe;){if(se.has(fe))return fe;fe=fe.parentElement}return null}function B(Y,se){var fe=N(Y,!0);return fe.filter(function(ve){return se.has(ve)})}function O(Y,se,fe){var ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Y)return null;var Me=B(Y,se),je=Me.length,Te=Me.findIndex(function(Ge){return fe===Ge});return ve<0?Te===-1?Te=je-1:Te-=1:ve>0&&(Te+=1),Te=(Te+je)%je,Me[Te]}var q=function(se,fe){var ve=new Set,Me=new Map,je=new Map;return se.forEach(function(Te){var Ge=document.querySelector("[data-menu-id='".concat(v(fe,Te),"']"));Ge&&(ve.add(Ge),je.set(Ge,Te),Me.set(Te,Ge))}),{elements:ve,key2element:Me,element2key:je}};function ie(Y,se,fe,ve,Me,je,Te,Ge,Qe,lt){var Kt=r.useRef(),ft=r.useRef();ft.current=se;var Ct=function(){ae.Z.cancel(Kt.current)};return r.useEffect(function(){return function(){Ct()}},[]),function(Ft){var $t=Ft.which;if([].concat(Rt,[vt,ye,Ve,dt]).includes($t)){var Ut=je(),xt=q(Ut,ve),Pt=xt,tt=Pt.elements,ct=Pt.key2element,_t=Pt.element2key,Gt=ct.get(se),At=E(Gt,tt),Vt=_t.get(At),An=ot(Y,Te(Vt,!0).length===1,fe,$t);if(!An&&$t!==Ve&&$t!==dt)return;(Rt.includes($t)||[Ve,dt].includes($t))&&Ft.preventDefault();var L=function(Re){if(Re){var re=Re,ue=Re.querySelector("a");ue!=null&&ue.getAttribute("href")&&(re=ue);var _e=_t.get(Re);Ge(_e),Ct(),Kt.current=(0,ae.Z)(function(){ft.current===_e&&re.focus()})}};if([Ve,dt].includes($t)||An.sibling||!At){var le;!At||Y==="inline"?le=Me.current:le=be(At);var ee,oe=B(le,tt);$t===Ve?ee=oe[0]:$t===dt?ee=oe[oe.length-1]:ee=O(le,tt,At,An.offset),L(ee)}else if(An.inlineTrigger)Qe(Vt);else if(An.offset>0)Qe(Vt,!0),Ct(),Kt.current=(0,ae.Z)(function(){xt=q(Ut,ve);var ke=At.getAttribute("aria-controls"),Re=document.getElementById(ke),re=O(Re,xt.elements);L(re)},5);else if(An.offset<0){var me=Te(Vt,!0),Se=me[me.length-2],Be=ct.get(Se);Qe(Se,!1),L(Be)}}lt==null||lt(Ft)}}function R(Y){Promise.resolve().then(Y)}var g="__RC_UTIL_PATH_SPLIT__",P=function(se){return se.join(g)},z=function(se){return se.split(g)},D="rc-menu-more";function U(){var Y=r.useState({}),se=(0,V.Z)(Y,2),fe=se[1],ve=(0,r.useRef)(new Map),Me=(0,r.useRef)(new Map),je=r.useState([]),Te=(0,V.Z)(je,2),Ge=Te[0],Qe=Te[1],lt=(0,r.useRef)(0),Kt=(0,r.useRef)(!1),ft=function(){Kt.current||fe({})},Ct=(0,r.useCallback)(function(ct,_t){var Gt=P(_t);Me.current.set(Gt,ct),ve.current.set(ct,Gt),lt.current+=1;var At=lt.current;R(function(){At===lt.current&&ft()})},[]),Ft=(0,r.useCallback)(function(ct,_t){var Gt=P(_t);Me.current.delete(Gt),ve.current.delete(ct)},[]),$t=(0,r.useCallback)(function(ct){Qe(ct)},[]),Ut=(0,r.useCallback)(function(ct,_t){var Gt=ve.current.get(ct)||"",At=z(Gt);return _t&&Ge.includes(At[0])&&At.unshift(D),At},[Ge]),xt=(0,r.useCallback)(function(ct,_t){return ct.filter(function(Gt){return Gt!==void 0}).some(function(Gt){var At=Ut(Gt,!0);return At.includes(_t)})},[Ut]),Pt=function(){var _t=(0,X.Z)(ve.current.keys());return Ge.length&&_t.push(D),_t},tt=(0,r.useCallback)(function(ct){var _t="".concat(ve.current.get(ct)).concat(g),Gt=new Set;return(0,X.Z)(Me.current.keys()).forEach(function(At){At.startsWith(_t)&&Gt.add(Me.current.get(At))}),Gt},[]);return r.useEffect(function(){return function(){Kt.current=!0}},[]),{registerPath:Ct,unregisterPath:Ft,refreshOverflowKeys:$t,isSubPathKey:xt,getKeyPath:Ut,getKeys:Pt,getSubPathKeys:tt}}function Z(Y){var se=r.useRef(Y);se.current=Y;var fe=r.useCallback(function(){for(var ve,Me=arguments.length,je=new Array(Me),Te=0;Te<Me;Te++)je[Te]=arguments[Te];return(ve=se.current)===null||ve===void 0?void 0:ve.call.apply(ve,[se].concat(je))},[]);return Y?fe:void 0}var te=Math.random().toFixed(5).toString().slice(2),J=0;function ce(Y){var se=(0,s.Z)(Y,{value:Y}),fe=(0,V.Z)(se,2),ve=fe[0],Me=fe[1];return r.useEffect(function(){J+=1;var je="".concat(te,"-").concat(J);Me("rc-menu-uuid-".concat(je))},[]),ve}var Ee=l(99153),xe=l(84851),Fe=l(19257),Ie=l(93046),de=l(2738),Le=l(8654);function Oe(Y,se,fe,ve){var Me=r.useContext(m),je=Me.activeKey,Te=Me.onActive,Ge=Me.onInactive,Qe={active:je===Y};return se||(Qe.onMouseEnter=function(lt){fe==null||fe({key:Y,domEvent:lt}),Te(Y)},Qe.onMouseLeave=function(lt){ve==null||ve({key:Y,domEvent:lt}),Ge(Y)}),Qe}function De(Y){var se=r.useContext(m),fe=se.mode,ve=se.rtl,Me=se.inlineIndent;if(fe!=="inline")return null;var je=Y;return ve?{paddingRight:je*Me}:{paddingLeft:je*Me}}function at(Y){var se=Y.icon,fe=Y.props,ve=Y.children,Me;return se===null||se===!1?null:(typeof se=="function"?Me=r.createElement(se,(0,j.Z)({},fe)):typeof se!="boolean"&&(Me=se),Me||ve||null)}var Et=["item"];function et(Y){var se=Y.item,fe=(0,h.Z)(Y,Et);return Object.defineProperty(fe,"item",{get:function(){return(0,t.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),se}}),fe}var Tt=["title","attribute","elementRef"],tn=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],pt=["active"],st=function(Y){(0,Fe.Z)(fe,Y);var se=(0,Ie.Z)(fe);function fe(){return(0,Ee.Z)(this,fe),se.apply(this,arguments)}return(0,xe.Z)(fe,[{key:"render",value:function(){var Me=this.props,je=Me.title,Te=Me.attribute,Ge=Me.elementRef,Qe=(0,h.Z)(Me,Tt),lt=(0,de.Z)(Qe,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,t.ZP)(!Te,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),r.createElement(e.Z.Item,(0,T.Z)({},Te,{title:typeof je=="string"?je:void 0},lt,{ref:Ge}))}}]),fe}(r.Component),bt=r.forwardRef(function(Y,se){var fe=Y.style,ve=Y.className,Me=Y.eventKey,je=Y.warnKey,Te=Y.disabled,Ge=Y.itemIcon,Qe=Y.children,lt=Y.role,Kt=Y.onMouseEnter,ft=Y.onMouseLeave,Ct=Y.onClick,Ft=Y.onKeyDown,$t=Y.onFocus,Ut=(0,h.Z)(Y,tn),xt=b(Me),Pt=r.useContext(m),tt=Pt.prefixCls,ct=Pt.onItemClick,_t=Pt.disabled,Gt=Pt.overflowDisabled,At=Pt.itemIcon,Vt=Pt.selectedKeys,An=Pt.onActive,L=r.useContext(w),le=L._internalRenderMenuItem,ee="".concat(tt,"-item"),oe=r.useRef(),me=r.useRef(),Se=_t||Te,Be=(0,Le.x1)(se,me),ke=G(Me),Re=function(mt){return{key:Me,keyPath:(0,X.Z)(ke).reverse(),item:oe.current,domEvent:mt}},re=Ge||At,ue=Oe(Me,Se,Kt,ft),_e=ue.active,Ce=(0,h.Z)(ue,pt),Ne=Vt.includes(Me),$e=De(ke.length),ht=function(mt){if(!Se){var pn=Re(mt);Ct==null||Ct(et(pn)),ct(pn)}},rt=function(mt){if(Ft==null||Ft(mt),mt.which===M.Z.ENTER){var pn=Re(mt);Ct==null||Ct(et(pn)),ct(pn)}},Ot=function(mt){An(Me),$t==null||$t(mt)},jt={};Y.role==="option"&&(jt["aria-selected"]=Ne);var Dt=r.createElement(st,(0,T.Z)({ref:oe,elementRef:Be,role:lt===null?"none":lt||"menuitem",tabIndex:Te?null:-1,"data-menu-id":Gt&&xt?null:xt},(0,de.Z)(Ut,["extra"]),Ce,jt,{component:"li","aria-disabled":Te,style:(0,j.Z)((0,j.Z)({},$e),fe),className:$()(ee,(0,A.Z)((0,A.Z)((0,A.Z)({},"".concat(ee,"-active"),_e),"".concat(ee,"-selected"),Ne),"".concat(ee,"-disabled"),Se),ve),onClick:ht,onKeyDown:rt,onFocus:Ot}),Qe,r.createElement(at,{props:(0,j.Z)((0,j.Z)({},Y),{},{isSelected:Ne}),icon:re}));return le&&(Dt=le(Dt,Y,{selected:Ne})),Dt});function Qt(Y,se){var fe=Y.eventKey,ve=F(),Me=G(fe);return r.useEffect(function(){if(ve)return ve.registerPath(fe,Me),function(){ve.unregisterPath(fe,Me)}},[Me]),ve?null:r.createElement(bt,(0,T.Z)({},Y,{ref:se}))}var kt=r.forwardRef(Qt),Lt=["className","children"],Mt=function(se,fe){var ve=se.className,Me=se.children,je=(0,h.Z)(se,Lt),Te=r.useContext(m),Ge=Te.prefixCls,Qe=Te.mode,lt=Te.rtl;return r.createElement("ul",(0,T.Z)({className:$()(Ge,lt&&"".concat(Ge,"-rtl"),"".concat(Ge,"-sub"),"".concat(Ge,"-").concat(Qe==="inline"?"inline":"vertical"),ve),role:"menu"},je,{"data-menu-list":!0,ref:fe}),Me)},sn=r.forwardRef(Mt);sn.displayName="SubMenuList";var qe=sn,ut=l(11592);function yt(Y,se){return(0,ut.Z)(Y).map(function(fe,ve){if(r.isValidElement(fe)){var Me,je,Te=fe.key,Ge=(Me=(je=fe.props)===null||je===void 0?void 0:je.eventKey)!==null&&Me!==void 0?Me:Te,Qe=Ge==null;Qe&&(Ge="tmp_key-".concat([].concat((0,X.Z)(se),[ve]).join("-")));var lt={key:Ge,eventKey:Ge};return r.cloneElement(fe,lt)}return fe})}var kn=l(65966),vn={adjustX:1,adjustY:1},Fn={topLeft:{points:["bl","tl"],overflow:vn},topRight:{points:["br","tr"],overflow:vn},bottomLeft:{points:["tl","bl"],overflow:vn},bottomRight:{points:["tr","br"],overflow:vn},leftTop:{points:["tr","tl"],overflow:vn},leftBottom:{points:["br","bl"],overflow:vn},rightTop:{points:["tl","tr"],overflow:vn},rightBottom:{points:["bl","br"],overflow:vn}},zn={topLeft:{points:["bl","tl"],overflow:vn},topRight:{points:["br","tr"],overflow:vn},bottomLeft:{points:["tl","bl"],overflow:vn},bottomRight:{points:["tr","br"],overflow:vn},rightTop:{points:["tr","tl"],overflow:vn},rightBottom:{points:["br","bl"],overflow:vn},leftTop:{points:["tl","tr"],overflow:vn},leftBottom:{points:["bl","br"],overflow:vn}},bn=null;function zt(Y,se,fe){if(se)return se;if(fe)return fe[Y]||fe.other}var Nn={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function En(Y){var se=Y.prefixCls,fe=Y.visible,ve=Y.children,Me=Y.popup,je=Y.popupStyle,Te=Y.popupClassName,Ge=Y.popupOffset,Qe=Y.disabled,lt=Y.mode,Kt=Y.onVisibleChange,ft=r.useContext(m),Ct=ft.getPopupContainer,Ft=ft.rtl,$t=ft.subMenuOpenDelay,Ut=ft.subMenuCloseDelay,xt=ft.builtinPlacements,Pt=ft.triggerSubMenuAction,tt=ft.forceSubMenuRender,ct=ft.rootClassName,_t=ft.motion,Gt=ft.defaultMotions,At=r.useState(!1),Vt=(0,V.Z)(At,2),An=Vt[0],L=Vt[1],le=Ft?(0,j.Z)((0,j.Z)({},zn),xt):(0,j.Z)((0,j.Z)({},Fn),xt),ee=Nn[lt],oe=zt(lt,_t,Gt),me=r.useRef(oe);lt!=="inline"&&(me.current=oe);var Se=(0,j.Z)((0,j.Z)({},me.current),{},{leavedClassName:"".concat(se,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Be=r.useRef();return r.useEffect(function(){return Be.current=(0,ae.Z)(function(){L(fe)}),function(){ae.Z.cancel(Be.current)}},[fe]),r.createElement(kn.Z,{prefixCls:se,popupClassName:$()("".concat(se,"-popup"),(0,A.Z)({},"".concat(se,"-rtl"),Ft),Te,ct),stretch:lt==="horizontal"?"minWidth":null,getPopupContainer:Ct,builtinPlacements:le,popupPlacement:ee,popupVisible:An,popup:Me,popupStyle:je,popupAlign:Ge&&{offset:Ge},action:Qe?[]:[Pt],mouseEnterDelay:$t,mouseLeaveDelay:Ut,onPopupVisibleChange:Kt,forceRender:tt,popupMotion:Se,fresh:!0},ve)}var On=l(77900);function gn(Y){var se=Y.id,fe=Y.open,ve=Y.keyPath,Me=Y.children,je="inline",Te=r.useContext(m),Ge=Te.prefixCls,Qe=Te.forceSubMenuRender,lt=Te.motion,Kt=Te.defaultMotions,ft=Te.mode,Ct=r.useRef(!1);Ct.current=ft===je;var Ft=r.useState(!Ct.current),$t=(0,V.Z)(Ft,2),Ut=$t[0],xt=$t[1],Pt=Ct.current?fe:!1;r.useEffect(function(){Ct.current&&xt(!1)},[ft]);var tt=(0,j.Z)({},zt(je,lt,Kt));ve.length>1&&(tt.motionAppear=!1);var ct=tt.onVisibleChanged;return tt.onVisibleChanged=function(_t){return!Ct.current&&!_t&&xt(!0),ct==null?void 0:ct(_t)},Ut?null:r.createElement(u,{mode:je,locked:!Ct.current},r.createElement(On.default,(0,T.Z)({visible:Pt},tt,{forceRender:Qe,removeOnLeave:!1,leavedClassName:"".concat(Ge,"-hidden")}),function(_t){var Gt=_t.className,At=_t.style;return r.createElement(qe,{id:se,className:Gt,style:At},Me)}))}var Cn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Zn=["active"],cn=r.forwardRef(function(Y,se){var fe=Y.style,ve=Y.className,Me=Y.title,je=Y.eventKey,Te=Y.warnKey,Ge=Y.disabled,Qe=Y.internalPopupClose,lt=Y.children,Kt=Y.itemIcon,ft=Y.expandIcon,Ct=Y.popupClassName,Ft=Y.popupOffset,$t=Y.popupStyle,Ut=Y.onClick,xt=Y.onMouseEnter,Pt=Y.onMouseLeave,tt=Y.onTitleClick,ct=Y.onTitleMouseEnter,_t=Y.onTitleMouseLeave,Gt=(0,h.Z)(Y,Cn),At=b(je),Vt=r.useContext(m),An=Vt.prefixCls,L=Vt.mode,le=Vt.openKeys,ee=Vt.disabled,oe=Vt.overflowDisabled,me=Vt.activeKey,Se=Vt.selectedKeys,Be=Vt.itemIcon,ke=Vt.expandIcon,Re=Vt.onItemClick,re=Vt.onOpenChange,ue=Vt.onActive,_e=r.useContext(w),Ce=_e._internalRenderSubMenuItem,Ne=r.useContext(W),$e=Ne.isSubPathKey,ht=G(),rt="".concat(An,"-submenu"),Ot=ee||Ge,jt=r.useRef(),Dt=r.useRef(),Xt=Kt!=null?Kt:Be,mt=ft!=null?ft:ke,pn=le.includes(je),on=!oe&&pn,_n=$e(Se,je),Yt=Oe(je,Ot,ct,_t),rn=Yt.active,mn=(0,h.Z)(Yt,Zn),ln=r.useState(!1),dn=(0,V.Z)(ln,2),Bt=dn[0],gt=dn[1],It=function(Sn){Ot||gt(Sn)},Jt=function(Sn){It(!0),xt==null||xt({key:je,domEvent:Sn})},hn=function(Sn){It(!1),Pt==null||Pt({key:je,domEvent:Sn})},un=r.useMemo(function(){return rn||(L!=="inline"?Bt||$e([me],je):!1)},[L,rn,me,Bt,je,$e]),fn=De(ht.length),Un=function(Sn){Ot||(tt==null||tt({key:je,domEvent:Sn}),L==="inline"&&re(je,!pn))},Xn=Z(function(wn){Ut==null||Ut(et(wn)),Re(wn)}),$n=function(Sn){L!=="inline"&&re(je,Sn)},sr=function(){ue(je)},ar=At&&"".concat(At,"-popup"),qn=r.useMemo(function(){return r.createElement(at,{icon:L!=="horizontal"?mt:void 0,props:(0,j.Z)((0,j.Z)({},Y),{},{isOpen:on,isSubMenu:!0})},r.createElement("i",{className:"".concat(rt,"-arrow")}))},[L,mt,Y,on,rt]),yn=r.createElement("div",(0,T.Z)({role:"menuitem",style:fn,className:"".concat(rt,"-title"),tabIndex:Ot?null:-1,ref:jt,title:typeof Me=="string"?Me:null,"data-menu-id":oe&&At?null:At,"aria-expanded":on,"aria-haspopup":!0,"aria-controls":ar,"aria-disabled":Ot,onClick:Un,onFocus:sr},mn),Me,qn),In=r.useRef(L);if(L!=="inline"&&ht.length>1?In.current="vertical":In.current=L,!oe){var Gn=In.current;yn=r.createElement(En,{mode:Gn,prefixCls:rt,visible:!Qe&&on&&L!=="inline",popupClassName:Ct,popupOffset:Ft,popupStyle:$t,popup:r.createElement(u,{mode:Gn==="horizontal"?"vertical":Gn},r.createElement(qe,{id:ar,ref:Dt},lt)),disabled:Ot,onVisibleChange:$n},yn)}var xn=r.createElement(e.Z.Item,(0,T.Z)({ref:se,role:"none"},Gt,{component:"li",style:fe,className:$()(rt,"".concat(rt,"-").concat(L),ve,(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({},"".concat(rt,"-open"),on),"".concat(rt,"-active"),un),"".concat(rt,"-selected"),_n),"".concat(rt,"-disabled"),Ot)),onMouseEnter:Jt,onMouseLeave:hn}),yn,!oe&&r.createElement(gn,{id:ar,open:on,keyPath:ht},lt));return Ce&&(xn=Ce(xn,Y,{selected:_n,active:un,open:on,disabled:Ot})),r.createElement(u,{onItemClick:Xn,mode:L==="horizontal"?"vertical":L,itemIcon:Xt,expandIcon:mt},xn)}),nn=r.forwardRef(function(Y,se){var fe=Y.eventKey,ve=Y.children,Me=G(fe),je=yt(ve,Me),Te=F();r.useEffect(function(){if(Te)return Te.registerPath(fe,Me),function(){Te.unregisterPath(fe,Me)}},[Me]);var Ge;return Te?Ge=je:Ge=r.createElement(cn,(0,T.Z)({ref:se},Y),je),r.createElement(K.Provider,{value:Me},Ge)}),Ln=nn,Wn=l(93664);function ne(Y){var se=Y.className,fe=Y.style,ve=r.useContext(m),Me=ve.prefixCls,je=F();return je?null:r.createElement("li",{role:"separator",className:$()("".concat(Me,"-item-divider"),se),style:fe})}var Q=["className","title","eventKey","children"],Ue=r.forwardRef(function(Y,se){var fe=Y.className,ve=Y.title,Me=Y.eventKey,je=Y.children,Te=(0,h.Z)(Y,Q),Ge=r.useContext(m),Qe=Ge.prefixCls,lt="".concat(Qe,"-item-group");return r.createElement("li",(0,T.Z)({ref:se,role:"presentation"},Te,{onClick:function(ft){return ft.stopPropagation()},className:$()(lt,fe)}),r.createElement("div",{role:"presentation",className:"".concat(lt,"-title"),title:typeof ve=="string"?ve:void 0},ve),r.createElement("ul",{role:"group",className:"".concat(lt,"-list")},je))}),Ze=r.forwardRef(function(Y,se){var fe=Y.eventKey,ve=Y.children,Me=G(fe),je=yt(ve,Me),Te=F();return Te?je:r.createElement(Ue,(0,T.Z)({ref:se},(0,de.Z)(Y,["warnKey"])),je)}),Xe=Ze,Je=["label","children","key","type","extra"];function we(Y,se,fe){var ve=se.item,Me=se.group,je=se.submenu,Te=se.divider;return(Y||[]).map(function(Ge,Qe){if(Ge&&(0,Wn.Z)(Ge)==="object"){var lt=Ge,Kt=lt.label,ft=lt.children,Ct=lt.key,Ft=lt.type,$t=lt.extra,Ut=(0,h.Z)(lt,Je),xt=Ct!=null?Ct:"tmp-".concat(Qe);return ft||Ft==="group"?Ft==="group"?r.createElement(Me,(0,T.Z)({key:xt},Ut,{title:Kt}),we(ft,se,fe)):r.createElement(je,(0,T.Z)({key:xt},Ut,{title:Kt}),we(ft,se,fe)):Ft==="divider"?r.createElement(Te,(0,T.Z)({key:xt},Ut)):r.createElement(ve,(0,T.Z)({key:xt},Ut,{extra:$t}),Kt,(!!$t||$t===0)&&r.createElement("span",{className:"".concat(fe,"-item-extra")},$t))}return null}).filter(function(Ge){return Ge})}function pe(Y,se,fe,ve,Me){var je=Y,Te=(0,j.Z)({divider:ne,item:kt,group:Xe,submenu:Ln},ve);return se&&(je=we(se,Te,Me)),yt(je,fe)}var ze=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Ye=[],it=r.forwardRef(function(Y,se){var fe,ve=Y,Me=ve.prefixCls,je=Me===void 0?"rc-menu":Me,Te=ve.rootClassName,Ge=ve.style,Qe=ve.className,lt=ve.tabIndex,Kt=lt===void 0?0:lt,ft=ve.items,Ct=ve.children,Ft=ve.direction,$t=ve.id,Ut=ve.mode,xt=Ut===void 0?"vertical":Ut,Pt=ve.inlineCollapsed,tt=ve.disabled,ct=ve.disabledOverflow,_t=ve.subMenuOpenDelay,Gt=_t===void 0?.1:_t,At=ve.subMenuCloseDelay,Vt=At===void 0?.1:At,An=ve.forceSubMenuRender,L=ve.defaultOpenKeys,le=ve.openKeys,ee=ve.activeKey,oe=ve.defaultActiveFirst,me=ve.selectable,Se=me===void 0?!0:me,Be=ve.multiple,ke=Be===void 0?!1:Be,Re=ve.defaultSelectedKeys,re=ve.selectedKeys,ue=ve.onSelect,_e=ve.onDeselect,Ce=ve.inlineIndent,Ne=Ce===void 0?24:Ce,$e=ve.motion,ht=ve.defaultMotions,rt=ve.triggerSubMenuAction,Ot=rt===void 0?"hover":rt,jt=ve.builtinPlacements,Dt=ve.itemIcon,Xt=ve.expandIcon,mt=ve.overflowedIndicator,pn=mt===void 0?"...":mt,on=ve.overflowedIndicatorPopupClassName,_n=ve.getPopupContainer,Yt=ve.onClick,rn=ve.onOpenChange,mn=ve.onKeyDown,ln=ve.openAnimation,dn=ve.openTransitionName,Bt=ve._internalRenderMenuItem,gt=ve._internalRenderSubMenuItem,It=ve._internalComponents,Jt=(0,h.Z)(ve,ze),hn=r.useMemo(function(){return[pe(Ct,ft,Ye,It,je),pe(Ct,ft,Ye,{},je)]},[Ct,ft,It]),un=(0,V.Z)(hn,2),fn=un[0],Un=un[1],Xn=r.useState(!1),$n=(0,V.Z)(Xn,2),sr=$n[0],ar=$n[1],qn=r.useRef(),yn=ce($t),In=Ft==="rtl",Gn=(0,s.Z)(L,{value:le,postState:function(Vn){return Vn||Ye}}),xn=(0,V.Z)(Gn,2),wn=xn[0],Sn=xn[1],St=function(Vn){var Yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _r(){Sn(Vn),rn==null||rn(Vn)}Yn?(0,i.flushSync)(_r):_r()},qt=r.useState(wn),en=(0,V.Z)(qt,2),an=en[0],Dn=en[1],Kn=r.useRef(!1),Nt=r.useMemo(function(){return(xt==="inline"||xt==="vertical")&&Pt?["vertical",Pt]:[xt,!1]},[xt,Pt]),Wt=(0,V.Z)(Nt,2),Rn=Wt[0],Ht=Wt[1],Tn=Rn==="inline",or=r.useState(Rn),Hn=(0,V.Z)(or,2),fr=Hn[0],ur=Hn[1],vr=r.useState(Ht),Jn=(0,V.Z)(vr,2),Fr=Jn[0],Br=Jn[1];r.useEffect(function(){ur(Rn),Br(Ht),Kn.current&&(Tn?Sn(an):St(Ye))},[Rn,Ht]);var Sr=r.useState(0),kr=(0,V.Z)(Sr,2),Nr=kr[0],Or=kr[1],Ar=Nr>=fn.length-1||fr!=="horizontal"||ct;r.useEffect(function(){Tn&&Dn(wn)},[wn]),r.useEffect(function(){return Kn.current=!0,function(){Kn.current=!1}},[]);var br=U(),Ir=br.registerPath,Pr=br.unregisterPath,zr=br.refreshOverflowKeys,Dr=br.isSubPathKey,$r=br.getKeyPath,Mr=br.getKeys,Gr=br.getSubPathKeys,jr=r.useMemo(function(){return{registerPath:Ir,unregisterPath:Pr}},[Ir,Pr]),Wr=r.useMemo(function(){return{isSubPathKey:Dr}},[Dr]);r.useEffect(function(){zr(Ar?Ye:fn.slice(Nr+1).map(function(tr){return tr.key}))},[Nr,Ar]);var Tr=(0,s.Z)(ee||oe&&((fe=fn[0])===null||fe===void 0?void 0:fe.key),{value:ee}),dr=(0,V.Z)(Tr,2),lr=dr[0],Mn=dr[1],Pn=Z(function(tr){Mn(tr)}),nr=Z(function(){Mn(void 0)});(0,r.useImperativeHandle)(se,function(){return{list:qn.current,focus:function(Vn){var Yn,_r=Mr(),cr=q(_r,yn),Cr=cr.elements,Xr=cr.key2element,ea=cr.element2key,ta=B(qn.current,Cr),Jr=lr!=null?lr:ta[0]?ea.get(ta[0]):(Yn=fn.find(function(Vr){return!Vr.props.disabled}))===null||Yn===void 0?void 0:Yn.key,Zr=Xr.get(Jr);if(Jr&&Zr){var Ur;Zr==null||(Ur=Zr.focus)===null||Ur===void 0||Ur.call(Zr,Vn)}}}});var Qn=(0,s.Z)(Re||[],{value:re,postState:function(Vn){return Array.isArray(Vn)?Vn:Vn==null?Ye:[Vn]}}),er=(0,V.Z)(Qn,2),rr=er[0],yr=er[1],gr=function(Vn){if(Se){var Yn=Vn.key,_r=rr.includes(Yn),cr;ke?_r?cr=rr.filter(function(Xr){return Xr!==Yn}):cr=[].concat((0,X.Z)(rr),[Yn]):cr=[Yn],yr(cr);var Cr=(0,j.Z)((0,j.Z)({},Vn),{},{selectedKeys:cr});_r?_e==null||_e(Cr):ue==null||ue(Cr)}!ke&&wn.length&&fr!=="inline"&&St(Ye)},xr=Z(function(tr){Yt==null||Yt(et(tr)),gr(tr)}),ir=Z(function(tr,Vn){var Yn=wn.filter(function(cr){return cr!==tr});if(Vn)Yn.push(tr);else if(fr!=="inline"){var _r=Gr(tr);Yn=Yn.filter(function(cr){return!_r.has(cr)})}(0,c.Z)(wn,Yn,!0)||St(Yn,!0)}),mr=function(Vn,Yn){var _r=Yn!=null?Yn:!wn.includes(Vn);ir(Vn,_r)},Rr=ie(fr,lr,In,yn,qn,Mr,$r,Mn,mr,mn);r.useEffect(function(){ar(!0)},[]);var Er=r.useMemo(function(){return{_internalRenderMenuItem:Bt,_internalRenderSubMenuItem:gt}},[Bt,gt]),Yr=fr!=="horizontal"||ct?fn:fn.map(function(tr,Vn){return r.createElement(u,{key:tr.key,overflowDisabled:Vn>Nr},tr)}),qr=r.createElement(e.Z,(0,T.Z)({id:$t,ref:qn,prefixCls:"".concat(je,"-overflow"),component:"ul",itemComponent:kt,className:$()(je,"".concat(je,"-root"),"".concat(je,"-").concat(fr),Qe,(0,A.Z)((0,A.Z)({},"".concat(je,"-inline-collapsed"),Fr),"".concat(je,"-rtl"),In),Te),dir:Ft,style:Ge,role:"menu",tabIndex:Kt,data:Yr,renderRawItem:function(Vn){return Vn},renderRawRest:function(Vn){var Yn=Vn.length,_r=Yn?fn.slice(-Yn):null;return r.createElement(Ln,{eventKey:D,title:pn,disabled:Ar,internalPopupClose:Yn===0,popupClassName:on},_r)},maxCount:fr!=="horizontal"||ct?e.Z.INVALIDATE:e.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Vn){Or(Vn)},onKeyDown:Rr},Jt));return r.createElement(w.Provider,{value:Er},r.createElement(o.Provider,{value:yn},r.createElement(u,{prefixCls:je,rootClassName:Te,mode:fr,openKeys:wn,rtl:In,disabled:tt,motion:sr?$e:null,defaultMotions:sr?ht:null,activeKey:lr,onActive:Pn,onInactive:nr,selectedKeys:rr,inlineIndent:Ne,subMenuOpenDelay:Gt,subMenuCloseDelay:Vt,forceSubMenuRender:An,builtinPlacements:jt,triggerSubMenuAction:Ot,getPopupContainer:_n,itemIcon:Dt,expandIcon:Xt,onItemClick:xr,onOpenChange:ir},r.createElement(W.Provider,{value:Wr},qr),r.createElement("div",{style:{display:"none"},"aria-hidden":!0},r.createElement(I.Provider,{value:jr},Un)))))}),wt=it,nt=wt;nt.Item=kt,nt.SubMenu=Ln,nt.ItemGroup=Xe,nt.Divider=ne;var He=nt},11780:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return y}});var T=l(14809),A=l(20439),j=l(50298),X=l(62646),V=l(59301),h=l(92310),H=l.n(h),$=l(29301),e=l(34280),s=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],c=void 0;function t(n,a){var d=n.prefixCls,M=n.invalidate,ae=n.item,he=n.renderItem,ge=n.responsive,Ae=n.responsiveDisabled,We=n.registerSize,vt=n.itemKey,ye=n.className,Ve=n.style,dt=n.children,Rt=n.display,ot=n.order,be=n.component,E=be===void 0?"div":be,B=(0,X.Z)(n,s),O=ge&&!Rt;function q(z){We(vt,z)}V.useEffect(function(){return function(){q(null)}},[]);var ie=he&&ae!==c?he(ae,{index:ot}):dt,R;M||(R={opacity:O?0:1,height:O?0:c,overflowY:O?"hidden":c,order:ge?ot:c,pointerEvents:O?"none":c,position:O?"absolute":c});var g={};O&&(g["aria-hidden"]=!0);var P=V.createElement(E,(0,T.Z)({className:H()(!M&&d,ye),style:(0,A.Z)((0,A.Z)({},R),Ve)},g,B,{ref:a}),ie);return ge&&(P=V.createElement($.Z,{onResize:function(D){var U=D.offsetWidth;q(U)},disabled:Ae},P)),P}var r=V.forwardRef(t);r.displayName="Item";var i=r,o=l(6089),v=l(4676),b=l(16089);function S(n){if(typeof MessageChannel=="undefined")(0,b.Z)(n);else{var a=new MessageChannel;a.port1.onmessage=function(){return n()},a.port2.postMessage(void 0)}}function p(){var n=V.useRef(null),a=function(M){n.current||(n.current=[],S(function(){(0,v.unstable_batchedUpdates)(function(){n.current.forEach(function(ae){ae()}),n.current=null})})),n.current.push(M)};return a}function m(n,a){var d=V.useState(a),M=(0,j.Z)(d,2),ae=M[0],he=M[1],ge=(0,o.Z)(function(Ae){n(function(){he(Ae)})});return[ae,ge]}var f=V.createContext(null),u=["component"],k=["className"],I=["className"],F=function(a,d){var M=V.useContext(f);if(!M){var ae=a.component,he=ae===void 0?"div":ae,ge=(0,X.Z)(a,u);return V.createElement(he,(0,T.Z)({},ge,{ref:d}))}var Ae=M.className,We=(0,X.Z)(M,k),vt=a.className,ye=(0,X.Z)(a,I);return V.createElement(f.Provider,{value:null},V.createElement(i,(0,T.Z)({ref:d,className:H()(Ae,vt)},We,ye)))},K=V.forwardRef(F);K.displayName="RawItem";var G=K,W=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],Pe="responsive",w="invalidate";function _(n){return"+ ".concat(n.length," ...")}function x(n,a){var d=n.prefixCls,M=d===void 0?"rc-overflow":d,ae=n.data,he=ae===void 0?[]:ae,ge=n.renderItem,Ae=n.renderRawItem,We=n.itemKey,vt=n.itemWidth,ye=vt===void 0?10:vt,Ve=n.ssr,dt=n.style,Rt=n.className,ot=n.maxCount,be=n.renderRest,E=n.renderRawRest,B=n.suffix,O=n.component,q=O===void 0?"div":O,ie=n.itemComponent,R=n.onVisibleChange,g=(0,X.Z)(n,W),P=Ve==="full",z=p(),D=m(z,null),U=(0,j.Z)(D,2),Z=U[0],te=U[1],J=Z||0,ce=m(z,new Map),Ee=(0,j.Z)(ce,2),xe=Ee[0],Fe=Ee[1],Ie=m(z,0),de=(0,j.Z)(Ie,2),Le=de[0],Oe=de[1],De=m(z,0),at=(0,j.Z)(De,2),Et=at[0],et=at[1],Tt=m(z,0),tn=(0,j.Z)(Tt,2),pt=tn[0],st=tn[1],bt=(0,V.useState)(null),Qt=(0,j.Z)(bt,2),kt=Qt[0],Lt=Qt[1],Mt=(0,V.useState)(null),sn=(0,j.Z)(Mt,2),qe=sn[0],ut=sn[1],yt=V.useMemo(function(){return qe===null&&P?Number.MAX_SAFE_INTEGER:qe||0},[qe,Z]),kn=(0,V.useState)(!1),vn=(0,j.Z)(kn,2),Fn=vn[0],zn=vn[1],bn="".concat(M,"-item"),zt=Math.max(Le,Et),Nn=ot===Pe,En=he.length&&Nn,On=ot===w,gn=En||typeof ot=="number"&&he.length>ot,Cn=(0,V.useMemo)(function(){var nt=he;return En?Z===null&&P?nt=he:nt=he.slice(0,Math.min(he.length,J/ye)):typeof ot=="number"&&(nt=he.slice(0,ot)),nt},[he,ye,Z,ot,En]),Zn=(0,V.useMemo)(function(){return En?he.slice(yt+1):he.slice(Cn.length)},[he,Cn,En,yt]),cn=(0,V.useCallback)(function(nt,He){var Y;return typeof We=="function"?We(nt):(Y=We&&(nt==null?void 0:nt[We]))!==null&&Y!==void 0?Y:He},[We]),nn=(0,V.useCallback)(ge||function(nt){return nt},[ge]);function Ln(nt,He,Y){qe===nt&&(He===void 0||He===kt)||(ut(nt),Y||(zn(nt<he.length-1),R==null||R(nt)),He!==void 0&&Lt(He))}function Wn(nt,He){te(He.clientWidth)}function ne(nt,He){Fe(function(Y){var se=new Map(Y);return He===null?se.delete(nt):se.set(nt,He),se})}function Q(nt,He){et(He),Oe(Et)}function Ue(nt,He){st(He)}function Ze(nt){return xe.get(cn(Cn[nt],nt))}(0,e.Z)(function(){if(J&&typeof zt=="number"&&Cn){var nt=pt,He=Cn.length,Y=He-1;if(!He){Ln(0,null);return}for(var se=0;se<He;se+=1){var fe=Ze(se);if(P&&(fe=fe||0),fe===void 0){Ln(se-1,void 0,!0);break}if(nt+=fe,Y===0&&nt<=J||se===Y-1&&nt+Ze(Y)<=J){Ln(Y,null);break}else if(nt+zt>J){Ln(se-1,nt-fe-pt+Et);break}}B&&Ze(0)+pt>J&&Lt(null)}},[J,xe,Et,pt,cn,Cn]);var Xe=Fn&&!!Zn.length,Je={};kt!==null&&En&&(Je={position:"absolute",left:kt,top:0});var we={prefixCls:bn,responsive:En,component:ie,invalidate:On},pe=Ae?function(nt,He){var Y=cn(nt,He);return V.createElement(f.Provider,{key:Y,value:(0,A.Z)((0,A.Z)({},we),{},{order:He,item:nt,itemKey:Y,registerSize:ne,display:He<=yt})},Ae(nt,He))}:function(nt,He){var Y=cn(nt,He);return V.createElement(i,(0,T.Z)({},we,{order:He,key:Y,item:nt,renderItem:nn,itemKey:Y,registerSize:ne,display:He<=yt}))},ze={order:Xe?yt:Number.MAX_SAFE_INTEGER,className:"".concat(bn,"-rest"),registerSize:Q,display:Xe},Ye=be||_,it=E?V.createElement(f.Provider,{value:(0,A.Z)((0,A.Z)({},we),ze)},E(Zn)):V.createElement(i,(0,T.Z)({},we,ze),typeof Ye=="function"?Ye(Zn):Ye),wt=V.createElement(q,(0,T.Z)({className:H()(!On&&M,Rt),style:dt,ref:a},g),Cn.map(pe),gn?it:null,B&&V.createElement(i,(0,T.Z)({},we,{responsive:Nn,responsiveDisabled:!En,order:yt,className:"".concat(bn,"-suffix"),registerSize:Ue,display:!0,style:Je}),B));return Nn?V.createElement($.Z,{onResize:Wn,disabled:!En},wt):wt}var N=V.forwardRef(x);N.displayName="Overflow",N.Item=G,N.RESPONSIVE=Pe,N.INVALIDATE=w;var C=N,y=C},23425:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return I}});var T=l(4635),A=l(14809),j=l(93664),X=l(20439),V=l(50298),h=l(92310),H=l.n(h),$=l(18929),e=l(10228),s=l(26112),c=l(48736),t=l(59301),r=l(17119),i=[10,20,50,100],o=function(K){var G=K.pageSizeOptions,W=G===void 0?i:G,Pe=K.locale,w=K.changeSize,_=K.pageSize,x=K.goButton,N=K.quickGo,C=K.rootPrefixCls,y=K.disabled,n=K.buildOptionText,a=K.showSizeChanger,d=K.sizeChangerRender,M=t.useState(""),ae=(0,V.Z)(M,2),he=ae[0],ge=ae[1],Ae=function(){return!he||Number.isNaN(he)?void 0:Number(he)},We=typeof n=="function"?n:function(B){return"".concat(B," ").concat(Pe.items_per_page)},vt=function(O){ge(O.target.value)},ye=function(O){x||he===""||(ge(""),!(O.relatedTarget&&(O.relatedTarget.className.indexOf("".concat(C,"-item-link"))>=0||O.relatedTarget.className.indexOf("".concat(C,"-item"))>=0))&&(N==null||N(Ae())))},Ve=function(O){he!==""&&(O.keyCode===e.Z.ENTER||O.type==="click")&&(ge(""),N==null||N(Ae()))},dt=function(){return W.some(function(O){return O.toString()===_.toString()})?W:W.concat([_]).sort(function(O,q){var ie=Number.isNaN(Number(O))?0:Number(O),R=Number.isNaN(Number(q))?0:Number(q);return ie-R})},Rt="".concat(C,"-options");if(!a&&!N)return null;var ot=null,be=null,E=null;return a&&d&&(ot=d({disabled:y,size:_,onSizeChange:function(O){w==null||w(Number(O))},"aria-label":Pe.page_size,className:"".concat(Rt,"-size-changer"),options:dt().map(function(B){return{label:We(B),value:B}})})),N&&(x&&(E=typeof x=="boolean"?t.createElement("button",{type:"button",onClick:Ve,onKeyUp:Ve,disabled:y,className:"".concat(Rt,"-quick-jumper-button")},Pe.jump_to_confirm):t.createElement("span",{onClick:Ve,onKeyUp:Ve},x)),be=t.createElement("div",{className:"".concat(Rt,"-quick-jumper")},Pe.jump_to,t.createElement("input",{disabled:y,type:"text",value:he,onChange:vt,onKeyUp:Ve,onBlur:ye,"aria-label":Pe.page}),Pe.page,E)),t.createElement("li",{className:Rt},ot,be)},v=o,b=function(K){var G=K.rootPrefixCls,W=K.page,Pe=K.active,w=K.className,_=K.showTitle,x=K.onClick,N=K.onKeyPress,C=K.itemRender,y="".concat(G,"-item"),n=H()(y,"".concat(y,"-").concat(W),(0,T.Z)((0,T.Z)({},"".concat(y,"-active"),Pe),"".concat(y,"-disabled"),!W),w),a=function(){x(W)},d=function(he){N(he,x,W)},M=C(W,"page",t.createElement("a",{rel:"nofollow"},W));return M?t.createElement("li",{title:_?String(W):null,className:n,onClick:a,onKeyDown:d,tabIndex:0},M):null},S=b,p=function(K,G,W){return W};function m(){}function f(F){var K=Number(F);return typeof K=="number"&&!Number.isNaN(K)&&isFinite(K)&&Math.floor(K)===K}function u(F,K,G){var W=typeof F=="undefined"?K:F;return Math.floor((G-1)/W)+1}var k=function(K){var G=K.prefixCls,W=G===void 0?"rc-pagination":G,Pe=K.selectPrefixCls,w=Pe===void 0?"rc-select":Pe,_=K.className,x=K.current,N=K.defaultCurrent,C=N===void 0?1:N,y=K.total,n=y===void 0?0:y,a=K.pageSize,d=K.defaultPageSize,M=d===void 0?10:d,ae=K.onChange,he=ae===void 0?m:ae,ge=K.hideOnSinglePage,Ae=K.align,We=K.showPrevNextJumpers,vt=We===void 0?!0:We,ye=K.showQuickJumper,Ve=K.showLessItems,dt=K.showTitle,Rt=dt===void 0?!0:dt,ot=K.onShowSizeChange,be=ot===void 0?m:ot,E=K.locale,B=E===void 0?r.Z:E,O=K.style,q=K.totalBoundaryShowSizeChanger,ie=q===void 0?50:q,R=K.disabled,g=K.simple,P=K.showTotal,z=K.showSizeChanger,D=z===void 0?n>ie:z,U=K.sizeChangerRender,Z=K.pageSizeOptions,te=K.itemRender,J=te===void 0?p:te,ce=K.jumpPrevIcon,Ee=K.jumpNextIcon,xe=K.prevIcon,Fe=K.nextIcon,Ie=t.useRef(null),de=(0,$.Z)(10,{value:a,defaultValue:M}),Le=(0,V.Z)(de,2),Oe=Le[0],De=Le[1],at=(0,$.Z)(1,{value:x,defaultValue:C,postState:function(ct){return Math.max(1,Math.min(ct,u(void 0,Oe,n)))}}),Et=(0,V.Z)(at,2),et=Et[0],Tt=Et[1],tn=t.useState(et),pt=(0,V.Z)(tn,2),st=pt[0],bt=pt[1];(0,t.useEffect)(function(){bt(et)},[et]);var Qt=he!==m,kt="current"in K,Lt=Math.max(1,et-(Ve?3:5)),Mt=Math.min(u(void 0,Oe,n),et+(Ve?3:5));function sn(tt,ct){var _t=tt||t.createElement("button",{type:"button","aria-label":ct,className:"".concat(W,"-item-link")});return typeof tt=="function"&&(_t=t.createElement(tt,(0,X.Z)({},K))),_t}function qe(tt){var ct=tt.target.value,_t=u(void 0,Oe,n),Gt;return ct===""?Gt=ct:Number.isNaN(Number(ct))?Gt=st:ct>=_t?Gt=_t:Gt=Number(ct),Gt}function ut(tt){return f(tt)&&tt!==et&&f(n)&&n>0}var yt=n>Oe?ye:!1;function kn(tt){(tt.keyCode===e.Z.UP||tt.keyCode===e.Z.DOWN)&&tt.preventDefault()}function vn(tt){var ct=qe(tt);switch(ct!==st&&bt(ct),tt.keyCode){case e.Z.ENTER:bn(ct);break;case e.Z.UP:bn(ct-1);break;case e.Z.DOWN:bn(ct+1);break;default:break}}function Fn(tt){bn(qe(tt))}function zn(tt){var ct=u(tt,Oe,n),_t=et>ct&&ct!==0?ct:et;De(tt),bt(_t),be==null||be(et,tt),Tt(_t),he==null||he(_t,tt)}function bn(tt){if(ut(tt)&&!R){var ct=u(void 0,Oe,n),_t=tt;return tt>ct?_t=ct:tt<1&&(_t=1),_t!==st&&bt(_t),Tt(_t),he==null||he(_t,Oe),_t}return et}var zt=et>1,Nn=et<u(void 0,Oe,n);function En(){zt&&bn(et-1)}function On(){Nn&&bn(et+1)}function gn(){bn(Lt)}function Cn(){bn(Mt)}function Zn(tt,ct){if(tt.key==="Enter"||tt.charCode===e.Z.ENTER||tt.keyCode===e.Z.ENTER){for(var _t=arguments.length,Gt=new Array(_t>2?_t-2:0),At=2;At<_t;At++)Gt[At-2]=arguments[At];ct.apply(void 0,Gt)}}function cn(tt){Zn(tt,En)}function nn(tt){Zn(tt,On)}function Ln(tt){Zn(tt,gn)}function Wn(tt){Zn(tt,Cn)}function ne(tt){var ct=J(tt,"prev",sn(xe,"prev page"));return t.isValidElement(ct)?t.cloneElement(ct,{disabled:!zt}):ct}function Q(tt){var ct=J(tt,"next",sn(Fe,"next page"));return t.isValidElement(ct)?t.cloneElement(ct,{disabled:!Nn}):ct}function Ue(tt){(tt.type==="click"||tt.keyCode===e.Z.ENTER)&&bn(st)}var Ze=null,Xe=(0,s.Z)(K,{aria:!0,data:!0}),Je=P&&t.createElement("li",{className:"".concat(W,"-total-text")},P(n,[n===0?0:(et-1)*Oe+1,et*Oe>n?n:et*Oe])),we=null,pe=u(void 0,Oe,n);if(ge&&n<=Oe)return null;var ze=[],Ye={rootPrefixCls:W,onClick:bn,onKeyPress:Zn,showTitle:Rt,itemRender:J,page:-1},it=et-1>0?et-1:0,wt=et+1<pe?et+1:pe,nt=ye&&ye.goButton,He=(0,j.Z)(g)==="object"?g.readOnly:!g,Y=nt,se=null;g&&(nt&&(typeof nt=="boolean"?Y=t.createElement("button",{type:"button",onClick:Ue,onKeyUp:Ue},B.jump_to_confirm):Y=t.createElement("span",{onClick:Ue,onKeyUp:Ue},nt),Y=t.createElement("li",{title:Rt?"".concat(B.jump_to).concat(et,"/").concat(pe):null,className:"".concat(W,"-simple-pager")},Y)),se=t.createElement("li",{title:Rt?"".concat(et,"/").concat(pe):null,className:"".concat(W,"-simple-pager")},He?st:t.createElement("input",{type:"text","aria-label":B.jump_to,value:st,disabled:R,onKeyDown:kn,onKeyUp:vn,onChange:vn,onBlur:Fn,size:3}),t.createElement("span",{className:"".concat(W,"-slash")},"/"),pe));var fe=Ve?1:2;if(pe<=3+fe*2){pe||ze.push(t.createElement(S,(0,A.Z)({},Ye,{key:"noPager",page:1,className:"".concat(W,"-item-disabled")})));for(var ve=1;ve<=pe;ve+=1)ze.push(t.createElement(S,(0,A.Z)({},Ye,{key:ve,page:ve,active:et===ve})))}else{var Me=Ve?B.prev_3:B.prev_5,je=Ve?B.next_3:B.next_5,Te=J(Lt,"jump-prev",sn(ce,"prev page")),Ge=J(Mt,"jump-next",sn(Ee,"next page"));vt&&(Ze=Te?t.createElement("li",{title:Rt?Me:null,key:"prev",onClick:gn,tabIndex:0,onKeyDown:Ln,className:H()("".concat(W,"-jump-prev"),(0,T.Z)({},"".concat(W,"-jump-prev-custom-icon"),!!ce))},Te):null,we=Ge?t.createElement("li",{title:Rt?je:null,key:"next",onClick:Cn,tabIndex:0,onKeyDown:Wn,className:H()("".concat(W,"-jump-next"),(0,T.Z)({},"".concat(W,"-jump-next-custom-icon"),!!Ee))},Ge):null);var Qe=Math.max(1,et-fe),lt=Math.min(et+fe,pe);et-1<=fe&&(lt=1+fe*2),pe-et<=fe&&(Qe=pe-fe*2);for(var Kt=Qe;Kt<=lt;Kt+=1)ze.push(t.createElement(S,(0,A.Z)({},Ye,{key:Kt,page:Kt,active:et===Kt})));if(et-1>=fe*2&&et!==3&&(ze[0]=t.cloneElement(ze[0],{className:H()("".concat(W,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(Ze)),pe-et>=fe*2&&et!==pe-2){var ft=ze[ze.length-1];ze[ze.length-1]=t.cloneElement(ft,{className:H()("".concat(W,"-item-before-jump-next"),ft.props.className)}),ze.push(we)}Qe!==1&&ze.unshift(t.createElement(S,(0,A.Z)({},Ye,{key:1,page:1}))),lt!==pe&&ze.push(t.createElement(S,(0,A.Z)({},Ye,{key:pe,page:pe})))}var Ct=ne(it);if(Ct){var Ft=!zt||!pe;Ct=t.createElement("li",{title:Rt?B.prev_page:null,onClick:En,tabIndex:Ft?null:0,onKeyDown:cn,className:H()("".concat(W,"-prev"),(0,T.Z)({},"".concat(W,"-disabled"),Ft)),"aria-disabled":Ft},Ct)}var $t=Q(wt);if($t){var Ut,xt;g?(Ut=!Nn,xt=zt?0:null):(Ut=!Nn||!pe,xt=Ut?null:0),$t=t.createElement("li",{title:Rt?B.next_page:null,onClick:On,tabIndex:xt,onKeyDown:nn,className:H()("".concat(W,"-next"),(0,T.Z)({},"".concat(W,"-disabled"),Ut)),"aria-disabled":Ut},$t)}var Pt=H()(W,_,(0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)((0,T.Z)({},"".concat(W,"-start"),Ae==="start"),"".concat(W,"-center"),Ae==="center"),"".concat(W,"-end"),Ae==="end"),"".concat(W,"-simple"),g),"".concat(W,"-disabled"),R));return t.createElement("ul",(0,A.Z)({className:Pt,style:O,ref:Ie},Xe),Je,Ct,g?se:ze,$t,t.createElement(v,{locale:B,rootPrefixCls:W,disabled:R,selectPrefixCls:w,changeSize:zn,pageSize:Oe,pageSizeOptions:Z,quickGo:yt?bn:null,goButton:Y,showSizeChanger:D,sizeChangerRender:U}))},I=k},29301:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return w}});var T=l(14809),A=l(59301),j=l(11592),X=l(48736),V=l(20439),h=l(93664),H=l(76846),$=l(8654),e=A.createContext(null);function s(_){var x=_.children,N=_.onBatchResize,C=A.useRef(0),y=A.useRef([]),n=A.useContext(e),a=A.useCallback(function(d,M,ae){C.current+=1;var he=C.current;y.current.push({size:d,element:M,data:ae}),Promise.resolve().then(function(){he===C.current&&(N==null||N(y.current),y.current=[])}),n==null||n(d,M,ae)},[N,n]);return A.createElement(e.Provider,{value:a},x)}var c=l(76374),t=new Map;function r(_){_.forEach(function(x){var N,C=x.target;(N=t.get(C))===null||N===void 0||N.forEach(function(y){return y(C)})})}var i=new c.Z(r),o=null,v=null;function b(_,x){t.has(_)||(t.set(_,new Set),i.observe(_)),t.get(_).add(x)}function S(_,x){t.has(_)&&(t.get(_).delete(x),t.get(_).size||(i.unobserve(_),t.delete(_)))}var p=l(99153),m=l(84851),f=l(19257),u=l(93046),k=function(_){(0,f.Z)(N,_);var x=(0,u.Z)(N);function N(){return(0,p.Z)(this,N),x.apply(this,arguments)}return(0,m.Z)(N,[{key:"render",value:function(){return this.props.children}}]),N}(A.Component);function I(_,x){var N=_.children,C=_.disabled,y=A.useRef(null),n=A.useRef(null),a=A.useContext(e),d=typeof N=="function",M=d?N(y):N,ae=A.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),he=!d&&A.isValidElement(M)&&(0,$.Yr)(M),ge=he?(0,$.C4)(M):null,Ae=(0,$.x1)(ge,y),We=function(){var dt;return(0,H.ZP)(y.current)||(y.current&&(0,h.Z)(y.current)==="object"?(0,H.ZP)((dt=y.current)===null||dt===void 0?void 0:dt.nativeElement):null)||(0,H.ZP)(n.current)};A.useImperativeHandle(x,function(){return We()});var vt=A.useRef(_);vt.current=_;var ye=A.useCallback(function(Ve){var dt=vt.current,Rt=dt.onResize,ot=dt.data,be=Ve.getBoundingClientRect(),E=be.width,B=be.height,O=Ve.offsetWidth,q=Ve.offsetHeight,ie=Math.floor(E),R=Math.floor(B);if(ae.current.width!==ie||ae.current.height!==R||ae.current.offsetWidth!==O||ae.current.offsetHeight!==q){var g={width:ie,height:R,offsetWidth:O,offsetHeight:q};ae.current=g;var P=O===Math.round(E)?E:O,z=q===Math.round(B)?B:q,D=(0,V.Z)((0,V.Z)({},g),{},{offsetWidth:P,offsetHeight:z});a==null||a(D,Ve,ot),Rt&&Promise.resolve().then(function(){Rt(D,Ve)})}},[]);return A.useEffect(function(){var Ve=We();return Ve&&!C&&b(Ve,ye),function(){return S(Ve,ye)}},[y.current,C]),A.createElement(k,{ref:n},he?A.cloneElement(M,{ref:Ae}):M)}var F=A.forwardRef(I),K=F,G="rc-observer-key";function W(_,x){var N=_.children,C=typeof N=="function"?[N]:(0,j.Z)(N);return C.map(function(y,n){var a=(y==null?void 0:y.key)||"".concat(G,"-").concat(n);return A.createElement(K,(0,T.Z)({},_,{key:a,ref:n===0?x:void 0}),y)})}var Pe=A.forwardRef(W);Pe.Collection=s;var w=Pe},6551:function(Zt,Ke,l){"use strict";l.d(Ke,{ZP:function(){return H}});var T=l(50298),A=l(59301),j=l(47273),X=0,V=(0,j.Z)();function h(){var $;return V?($=X,X+=1):$="TEST_OR_SSR",$}function H($){var e=A.useState(),s=(0,T.Z)(e,2),c=s[0],t=s[1];return A.useEffect(function(){t("rc_select_".concat(h()))},[]),$||c}},37463:function(Zt,Ke,l){"use strict";l.d(Ke,{Ac:function(){return de},Xo:function(){return Oe},Wx:function(){return at},ZP:function(){return Wn},lk:function(){return m}});var T=l(14809),A=l(95190),j=l(4635),X=l(20439),V=l(50298),h=l(62646),H=l(93664),$=l(18929),e=l(48736),s=l(59301),c=l(92310),t=l.n(c),r=l(34280),i=l(49658),o=l(8654),v=function(Q){var Ue=Q.className,Ze=Q.customizeIcon,Xe=Q.customizeIconProps,Je=Q.children,we=Q.onMouseDown,pe=Q.onClick,ze=typeof Ze=="function"?Ze(Xe):Ze;return s.createElement("span",{className:Ue,onMouseDown:function(it){it.preventDefault(),we==null||we(it)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:pe,"aria-hidden":!0},ze!==void 0?ze:s.createElement("span",{className:t()(Ue.split(/\s+/).map(function(Ye){return"".concat(Ye,"-icon")}))},Je))},b=v,S=function(Q,Ue,Ze,Xe,Je){var we=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,pe=arguments.length>6?arguments[6]:void 0,ze=arguments.length>7?arguments[7]:void 0,Ye=s.useMemo(function(){if((0,H.Z)(Xe)==="object")return Xe.clearIcon;if(Je)return Je},[Xe,Je]),it=s.useMemo(function(){return!!(!we&&Xe&&(Ze.length||pe)&&!(ze==="combobox"&&pe===""))},[Xe,we,Ze.length,pe,ze]);return{allowClear:it,clearIcon:s.createElement(b,{className:"".concat(Q,"-clear"),onMouseDown:Ue,customizeIcon:Ye},"\xD7")}},p=s.createContext(null);function m(){return s.useContext(p)}function f(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Q=s.useState(!1),Ue=(0,V.Z)(Q,2),Ze=Ue[0],Xe=Ue[1],Je=s.useRef(null),we=function(){window.clearTimeout(Je.current)};s.useEffect(function(){return we},[]);var pe=function(Ye,it){we(),Je.current=window.setTimeout(function(){Xe(Ye),it&&it()},ne)};return[Ze,pe,we]}function u(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Q=s.useRef(null),Ue=s.useRef(null);s.useEffect(function(){return function(){window.clearTimeout(Ue.current)}},[]);function Ze(Xe){(Xe||Q.current===null)&&(Q.current=Xe),window.clearTimeout(Ue.current),Ue.current=window.setTimeout(function(){Q.current=null},ne)}return[function(){return Q.current},Ze]}function k(ne,Q,Ue,Ze){var Xe=s.useRef(null);Xe.current={open:Q,triggerOpen:Ue,customizedTrigger:Ze},s.useEffect(function(){function Je(we){var pe;if(!((pe=Xe.current)!==null&&pe!==void 0&&pe.customizedTrigger)){var ze=we.target;ze.shadowRoot&&we.composed&&(ze=we.composedPath()[0]||ze),Xe.current.open&&ne().filter(function(Ye){return Ye}).every(function(Ye){return!Ye.contains(ze)&&Ye!==ze})&&Xe.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Je),function(){return window.removeEventListener("mousedown",Je)}},[])}var I=l(10228);function F(ne){return ne&&![I.Z.ESC,I.Z.SHIFT,I.Z.BACKSPACE,I.Z.TAB,I.Z.WIN_KEY,I.Z.ALT,I.Z.META,I.Z.WIN_KEY_RIGHT,I.Z.CTRL,I.Z.SEMICOLON,I.Z.EQUALS,I.Z.CAPS_LOCK,I.Z.CONTEXT_MENU,I.Z.F1,I.Z.F2,I.Z.F3,I.Z.F4,I.Z.F5,I.Z.F6,I.Z.F7,I.Z.F8,I.Z.F9,I.Z.F10,I.Z.F11,I.Z.F12].includes(ne)}var K=l(26112),G=l(11780);function W(ne,Q,Ue){var Ze=(0,X.Z)((0,X.Z)({},ne),Ue?Q:{});return Object.keys(Q).forEach(function(Xe){var Je=Q[Xe];typeof Je=="function"&&(Ze[Xe]=function(){for(var we,pe=arguments.length,ze=new Array(pe),Ye=0;Ye<pe;Ye++)ze[Ye]=arguments[Ye];return Je.apply(void 0,ze),(we=ne[Xe])===null||we===void 0?void 0:we.call.apply(we,[ne].concat(ze))})}),Ze}var Pe=W,w=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_=function(Q,Ue){var Ze=Q.prefixCls,Xe=Q.id,Je=Q.inputElement,we=Q.autoFocus,pe=Q.autoComplete,ze=Q.editable,Ye=Q.activeDescendantId,it=Q.value,wt=Q.open,nt=Q.attrs,He=(0,h.Z)(Q,w),Y=Je||s.createElement("input",null),se=Y,fe=se.ref,ve=se.props;return(0,e.Kp)(!("maxLength"in Y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Y=s.cloneElement(Y,(0,X.Z)((0,X.Z)((0,X.Z)({type:"search"},Pe(He,ve,!0)),{},{id:Xe,ref:(0,o.sQ)(Ue,fe),autoComplete:pe||"off",autoFocus:we,className:t()("".concat(Ze,"-selection-search-input"),ve==null?void 0:ve.className),role:"combobox","aria-expanded":wt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Xe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Xe,"_list"),"aria-activedescendant":wt?Ye:void 0},nt),{},{value:ze?it:"",readOnly:!ze,unselectable:ze?null:"on",style:(0,X.Z)((0,X.Z)({},ve.style),{},{opacity:ze?null:0})})),Y},x=s.forwardRef(_),N=x;function C(ne){return Array.isArray(ne)?ne:ne!==void 0?[ne]:[]}var y=typeof window!="undefined"&&window.document&&window.document.documentElement,n=y;function a(ne){return ne!=null}function d(ne){return!ne&&ne!==0}function M(ne){return["string","number"].includes((0,H.Z)(ne))}function ae(ne){var Q=void 0;return ne&&(M(ne.title)?Q=ne.title.toString():M(ne.label)&&(Q=ne.label.toString())),Q}function he(ne,Q){n?s.useLayoutEffect(ne,Q):s.useEffect(ne,Q)}function ge(ne){var Q;return(Q=ne.key)!==null&&Q!==void 0?Q:ne.value}var Ae=function(Q){Q.preventDefault(),Q.stopPropagation()},We=function(Q){var Ue=Q.id,Ze=Q.prefixCls,Xe=Q.values,Je=Q.open,we=Q.searchValue,pe=Q.autoClearSearchValue,ze=Q.inputRef,Ye=Q.placeholder,it=Q.disabled,wt=Q.mode,nt=Q.showSearch,He=Q.autoFocus,Y=Q.autoComplete,se=Q.activeDescendantId,fe=Q.tabIndex,ve=Q.removeIcon,Me=Q.maxTagCount,je=Q.maxTagTextLength,Te=Q.maxTagPlaceholder,Ge=Te===void 0?function(_e){return"+ ".concat(_e.length," ...")}:Te,Qe=Q.tagRender,lt=Q.onToggleOpen,Kt=Q.onRemove,ft=Q.onInputChange,Ct=Q.onInputPaste,Ft=Q.onInputKeyDown,$t=Q.onInputMouseDown,Ut=Q.onInputCompositionStart,xt=Q.onInputCompositionEnd,Pt=Q.onInputBlur,tt=s.useRef(null),ct=(0,s.useState)(0),_t=(0,V.Z)(ct,2),Gt=_t[0],At=_t[1],Vt=(0,s.useState)(!1),An=(0,V.Z)(Vt,2),L=An[0],le=An[1],ee="".concat(Ze,"-selection"),oe=Je||wt==="multiple"&&pe===!1||wt==="tags"?we:"",me=wt==="tags"||wt==="multiple"&&pe===!1||nt&&(Je||L);he(function(){At(tt.current.scrollWidth)},[oe]);var Se=function(Ce,Ne,$e,ht,rt){return s.createElement("span",{title:ae(Ce),className:t()("".concat(ee,"-item"),(0,j.Z)({},"".concat(ee,"-item-disabled"),$e))},s.createElement("span",{className:"".concat(ee,"-item-content")},Ne),ht&&s.createElement(b,{className:"".concat(ee,"-item-remove"),onMouseDown:Ae,onClick:rt,customizeIcon:ve},"\xD7"))},Be=function(Ce,Ne,$e,ht,rt,Ot){var jt=function(Xt){Ae(Xt),lt(!Je)};return s.createElement("span",{onMouseDown:jt},Qe({label:Ne,value:Ce,disabled:$e,closable:ht,onClose:rt,isMaxTag:!!Ot}))},ke=function(Ce){var Ne=Ce.disabled,$e=Ce.label,ht=Ce.value,rt=!it&&!Ne,Ot=$e;if(typeof je=="number"&&(typeof $e=="string"||typeof $e=="number")){var jt=String(Ot);jt.length>je&&(Ot="".concat(jt.slice(0,je),"..."))}var Dt=function(mt){mt&&mt.stopPropagation(),Kt(Ce)};return typeof Qe=="function"?Be(ht,Ot,Ne,rt,Dt):Se(Ce,Ot,Ne,rt,Dt)},Re=function(Ce){if(!Xe.length)return null;var Ne=typeof Ge=="function"?Ge(Ce):Ge;return typeof Qe=="function"?Be(void 0,Ne,!1,!1,void 0,!0):Se({title:Ne},Ne,!1)},re=s.createElement("div",{className:"".concat(ee,"-search"),style:{width:Gt},onFocus:function(){le(!0)},onBlur:function(){le(!1)}},s.createElement(N,{ref:ze,open:Je,prefixCls:Ze,id:Ue,inputElement:null,disabled:it,autoFocus:He,autoComplete:Y,editable:me,activeDescendantId:se,value:oe,onKeyDown:Ft,onMouseDown:$t,onChange:ft,onPaste:Ct,onCompositionStart:Ut,onCompositionEnd:xt,onBlur:Pt,tabIndex:fe,attrs:(0,K.Z)(Q,!0)}),s.createElement("span",{ref:tt,className:"".concat(ee,"-search-mirror"),"aria-hidden":!0},oe,"\xA0")),ue=s.createElement(G.Z,{prefixCls:"".concat(ee,"-overflow"),data:Xe,renderItem:ke,renderRest:Re,suffix:re,itemKey:ge,maxCount:Me});return s.createElement("span",{className:"".concat(ee,"-wrap")},ue,!Xe.length&&!oe&&s.createElement("span",{className:"".concat(ee,"-placeholder")},Ye))},vt=We,ye=function(Q){var Ue=Q.inputElement,Ze=Q.prefixCls,Xe=Q.id,Je=Q.inputRef,we=Q.disabled,pe=Q.autoFocus,ze=Q.autoComplete,Ye=Q.activeDescendantId,it=Q.mode,wt=Q.open,nt=Q.values,He=Q.placeholder,Y=Q.tabIndex,se=Q.showSearch,fe=Q.searchValue,ve=Q.activeValue,Me=Q.maxLength,je=Q.onInputKeyDown,Te=Q.onInputMouseDown,Ge=Q.onInputChange,Qe=Q.onInputPaste,lt=Q.onInputCompositionStart,Kt=Q.onInputCompositionEnd,ft=Q.onInputBlur,Ct=Q.title,Ft=s.useState(!1),$t=(0,V.Z)(Ft,2),Ut=$t[0],xt=$t[1],Pt=it==="combobox",tt=Pt||se,ct=nt[0],_t=fe||"";Pt&&ve&&!Ut&&(_t=ve),s.useEffect(function(){Pt&&xt(!1)},[Pt,ve]);var Gt=it!=="combobox"&&!wt&&!se?!1:!!_t,At=Ct===void 0?ae(ct):Ct,Vt=s.useMemo(function(){return ct?null:s.createElement("span",{className:"".concat(Ze,"-selection-placeholder"),style:Gt?{visibility:"hidden"}:void 0},He)},[ct,Gt,He,Ze]);return s.createElement("span",{className:"".concat(Ze,"-selection-wrap")},s.createElement("span",{className:"".concat(Ze,"-selection-search")},s.createElement(N,{ref:Je,prefixCls:Ze,id:Xe,open:wt,inputElement:Ue,disabled:we,autoFocus:pe,autoComplete:ze,editable:tt,activeDescendantId:Ye,value:_t,onKeyDown:je,onMouseDown:Te,onChange:function(L){xt(!0),Ge(L)},onPaste:Qe,onCompositionStart:lt,onCompositionEnd:Kt,onBlur:ft,tabIndex:Y,attrs:(0,K.Z)(Q,!0),maxLength:Pt?Me:void 0})),!Pt&&ct?s.createElement("span",{className:"".concat(Ze,"-selection-item"),title:At,style:Gt?{visibility:"hidden"}:void 0},ct.label):null,Vt)},Ve=ye,dt=function(Q,Ue){var Ze=(0,s.useRef)(null),Xe=(0,s.useRef)(!1),Je=Q.prefixCls,we=Q.open,pe=Q.mode,ze=Q.showSearch,Ye=Q.tokenWithEnter,it=Q.disabled,wt=Q.prefix,nt=Q.autoClearSearchValue,He=Q.onSearch,Y=Q.onSearchSubmit,se=Q.onToggleOpen,fe=Q.onInputKeyDown,ve=Q.onInputBlur,Me=Q.domRef;s.useImperativeHandle(Ue,function(){return{focus:function(At){Ze.current.focus(At)},blur:function(){Ze.current.blur()}}});var je=u(0),Te=(0,V.Z)(je,2),Ge=Te[0],Qe=Te[1],lt=function(At){var Vt=At.which,An=Ze.current instanceof HTMLTextAreaElement;!An&&we&&(Vt===I.Z.UP||Vt===I.Z.DOWN)&&At.preventDefault(),fe&&fe(At),Vt===I.Z.ENTER&&pe==="tags"&&!Xe.current&&!we&&(Y==null||Y(At.target.value)),!(An&&!we&&~[I.Z.UP,I.Z.DOWN,I.Z.LEFT,I.Z.RIGHT].indexOf(Vt))&&F(Vt)&&se(!0)},Kt=function(){Qe(!0)},ft=(0,s.useRef)(null),Ct=function(At){He(At,!0,Xe.current)!==!1&&se(!0)},Ft=function(){Xe.current=!0},$t=function(At){Xe.current=!1,pe!=="combobox"&&Ct(At.target.value)},Ut=function(At){var Vt=At.target.value;if(Ye&&ft.current&&/[\r\n]/.test(ft.current)){var An=ft.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Vt=Vt.replace(An,ft.current)}ft.current=null,Ct(Vt)},xt=function(At){var Vt=At.clipboardData,An=Vt==null?void 0:Vt.getData("text");ft.current=An||""},Pt=function(At){var Vt=At.target;if(Vt!==Ze.current){var An=document.body.style.msTouchAction!==void 0;An?setTimeout(function(){Ze.current.focus()}):Ze.current.focus()}},tt=function(At){var Vt=Ge();At.target!==Ze.current&&!Vt&&!(pe==="combobox"&&it)&&At.preventDefault(),(pe!=="combobox"&&(!ze||!Vt)||!we)&&(we&&nt!==!1&&He("",!0,!1),se())},ct={inputRef:Ze,onInputKeyDown:lt,onInputMouseDown:Kt,onInputChange:Ut,onInputPaste:xt,onInputCompositionStart:Ft,onInputCompositionEnd:$t,onInputBlur:ve},_t=pe==="multiple"||pe==="tags"?s.createElement(vt,(0,T.Z)({},Q,ct)):s.createElement(Ve,(0,T.Z)({},Q,ct));return s.createElement("div",{ref:Me,className:"".concat(Je,"-selector"),onClick:Pt,onMouseDown:tt},wt&&s.createElement("div",{className:"".concat(Je,"-prefix")},wt),_t)},Rt=s.forwardRef(dt),ot=Rt,be=l(65966),E=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],B=function(Q){var Ue=Q===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ue,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ue,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ue,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ue,adjustY:1},htmlRegion:"scroll"}}},O=function(Q,Ue){var Ze=Q.prefixCls,Xe=Q.disabled,Je=Q.visible,we=Q.children,pe=Q.popupElement,ze=Q.animation,Ye=Q.transitionName,it=Q.dropdownStyle,wt=Q.dropdownClassName,nt=Q.direction,He=nt===void 0?"ltr":nt,Y=Q.placement,se=Q.builtinPlacements,fe=Q.dropdownMatchSelectWidth,ve=Q.dropdownRender,Me=Q.dropdownAlign,je=Q.getPopupContainer,Te=Q.empty,Ge=Q.getTriggerDOMNode,Qe=Q.onPopupVisibleChange,lt=Q.onPopupMouseEnter,Kt=(0,h.Z)(Q,E),ft="".concat(Ze,"-dropdown"),Ct=pe;ve&&(Ct=ve(pe));var Ft=s.useMemo(function(){return se||B(fe)},[se,fe]),$t=ze?"".concat(ft,"-").concat(ze):Ye,Ut=typeof fe=="number",xt=s.useMemo(function(){return Ut?null:fe===!1?"minWidth":"width"},[fe,Ut]),Pt=it;Ut&&(Pt=(0,X.Z)((0,X.Z)({},Pt),{},{width:fe}));var tt=s.useRef(null);return s.useImperativeHandle(Ue,function(){return{getPopupElement:function(){var _t;return(_t=tt.current)===null||_t===void 0?void 0:_t.popupElement}}}),s.createElement(be.Z,(0,T.Z)({},Kt,{showAction:Qe?["click"]:[],hideAction:Qe?["click"]:[],popupPlacement:Y||(He==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ft,prefixCls:ft,popupTransitionName:$t,popup:s.createElement("div",{onMouseEnter:lt},Ct),ref:tt,stretch:xt,popupAlign:Me,popupVisible:Je,getPopupContainer:je,popupClassName:t()(wt,(0,j.Z)({},"".concat(ft,"-empty"),Te)),popupStyle:Pt,getTriggerDOMNode:Ge,onPopupVisibleChange:Qe}),we)},q=s.forwardRef(O),ie=q,R=l(21696);function g(ne,Q){var Ue=ne.key,Ze;return"value"in ne&&(Ze=ne.value),Ue!=null?Ue:Ze!==void 0?Ze:"rc-index-key-".concat(Q)}function P(ne){return typeof ne!="undefined"&&!Number.isNaN(ne)}function z(ne,Q){var Ue=ne||{},Ze=Ue.label,Xe=Ue.value,Je=Ue.options,we=Ue.groupLabel,pe=Ze||(Q?"children":"label");return{label:pe,value:Xe||"value",options:Je||"options",groupLabel:we||pe}}function D(ne){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ue=Q.fieldNames,Ze=Q.childrenAsData,Xe=[],Je=z(Ue,!1),we=Je.label,pe=Je.value,ze=Je.options,Ye=Je.groupLabel;function it(wt,nt){Array.isArray(wt)&&wt.forEach(function(He){if(nt||!(ze in He)){var Y=He[pe];Xe.push({key:g(He,Xe.length),groupOption:nt,data:He,label:He[we],value:Y})}else{var se=He[Ye];se===void 0&&Ze&&(se=He.label),Xe.push({key:g(He,Xe.length),group:!0,data:He,label:se}),it(He[ze],!0)}})}return it(ne,!1),Xe}function U(ne){var Q=(0,X.Z)({},ne);return"props"in Q||Object.defineProperty(Q,"props",{get:function(){return(0,e.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Q}}),Q}var Z=function(Q,Ue,Ze){if(!Ue||!Ue.length)return null;var Xe=!1,Je=function pe(ze,Ye){var it=(0,R.Z)(Ye),wt=it[0],nt=it.slice(1);if(!wt)return[ze];var He=ze.split(wt);return Xe=Xe||He.length>1,He.reduce(function(Y,se){return[].concat((0,A.Z)(Y),(0,A.Z)(pe(se,nt)))},[]).filter(Boolean)},we=Je(Q,Ue);return Xe?typeof Ze!="undefined"?we.slice(0,Ze):we:null},te=s.createContext(null),J=te;function ce(ne){var Q=ne.visible,Ue=ne.values;if(!Q)return null;var Ze=50;return s.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ue.slice(0,Ze).map(function(Xe){var Je=Xe.label,we=Xe.value;return["number","string"].includes((0,H.Z)(Je))?Je:we}).join(", ")),Ue.length>Ze?", ...":null)}var Ee=["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","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],xe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Fe=function(Q){return Q==="tags"||Q==="multiple"},Ie=s.forwardRef(function(ne,Q){var Ue,Ze=ne.id,Xe=ne.prefixCls,Je=ne.className,we=ne.showSearch,pe=ne.tagRender,ze=ne.direction,Ye=ne.omitDomProps,it=ne.displayValues,wt=ne.onDisplayValuesChange,nt=ne.emptyOptions,He=ne.notFoundContent,Y=He===void 0?"Not Found":He,se=ne.onClear,fe=ne.mode,ve=ne.disabled,Me=ne.loading,je=ne.getInputElement,Te=ne.getRawInputElement,Ge=ne.open,Qe=ne.defaultOpen,lt=ne.onDropdownVisibleChange,Kt=ne.activeValue,ft=ne.onActiveValueChange,Ct=ne.activeDescendantId,Ft=ne.searchValue,$t=ne.autoClearSearchValue,Ut=ne.onSearch,xt=ne.onSearchSplit,Pt=ne.tokenSeparators,tt=ne.allowClear,ct=ne.prefix,_t=ne.suffixIcon,Gt=ne.clearIcon,At=ne.OptionList,Vt=ne.animation,An=ne.transitionName,L=ne.dropdownStyle,le=ne.dropdownClassName,ee=ne.dropdownMatchSelectWidth,oe=ne.dropdownRender,me=ne.dropdownAlign,Se=ne.placement,Be=ne.builtinPlacements,ke=ne.getPopupContainer,Re=ne.showAction,re=Re===void 0?[]:Re,ue=ne.onFocus,_e=ne.onBlur,Ce=ne.onKeyUp,Ne=ne.onKeyDown,$e=ne.onMouseDown,ht=(0,h.Z)(ne,Ee),rt=Fe(fe),Ot=(we!==void 0?we:rt)||fe==="combobox",jt=(0,X.Z)({},ht);xe.forEach(function(Mn){delete jt[Mn]}),Ye==null||Ye.forEach(function(Mn){delete jt[Mn]});var Dt=s.useState(!1),Xt=(0,V.Z)(Dt,2),mt=Xt[0],pn=Xt[1];s.useEffect(function(){pn((0,i.Z)())},[]);var on=s.useRef(null),_n=s.useRef(null),Yt=s.useRef(null),rn=s.useRef(null),mn=s.useRef(null),ln=s.useRef(!1),dn=f(),Bt=(0,V.Z)(dn,3),gt=Bt[0],It=Bt[1],Jt=Bt[2];s.useImperativeHandle(Q,function(){var Mn,Pn;return{focus:(Mn=rn.current)===null||Mn===void 0?void 0:Mn.focus,blur:(Pn=rn.current)===null||Pn===void 0?void 0:Pn.blur,scrollTo:function(Qn){var er;return(er=mn.current)===null||er===void 0?void 0:er.scrollTo(Qn)},nativeElement:on.current||_n.current}});var hn=s.useMemo(function(){var Mn;if(fe!=="combobox")return Ft;var Pn=(Mn=it[0])===null||Mn===void 0?void 0:Mn.value;return typeof Pn=="string"||typeof Pn=="number"?String(Pn):""},[Ft,fe,it]),un=fe==="combobox"&&typeof je=="function"&&je()||null,fn=typeof Te=="function"&&Te(),Un=(0,o.x1)(_n,fn==null||(Ue=fn.props)===null||Ue===void 0?void 0:Ue.ref),Xn=s.useState(!1),$n=(0,V.Z)(Xn,2),sr=$n[0],ar=$n[1];(0,r.Z)(function(){ar(!0)},[]);var qn=(0,$.Z)(!1,{defaultValue:Qe,value:Ge}),yn=(0,V.Z)(qn,2),In=yn[0],Gn=yn[1],xn=sr?In:!1,wn=!Y&&nt;(ve||wn&&xn&&fe==="combobox")&&(xn=!1);var Sn=wn?!1:xn,St=s.useCallback(function(Mn){var Pn=Mn!==void 0?Mn:!xn;ve||(Gn(Pn),xn!==Pn&&(lt==null||lt(Pn)))},[ve,xn,Gn,lt]),qt=s.useMemo(function(){return(Pt||[]).some(function(Mn){return[`
|
|
`,`\r
|
|
`].includes(Mn)})},[Pt]),en=s.useContext(J)||{},an=en.maxCount,Dn=en.rawValues,Kn=function(Pn,nr,Qn){if(!(rt&&P(an)&&(Dn==null?void 0:Dn.size)>=an)){var er=!0,rr=Pn;ft==null||ft(null);var yr=Z(Pn,Pt,P(an)?an-Dn.size:void 0),gr=Qn?null:yr;return fe!=="combobox"&&gr&&(rr="",xt==null||xt(gr),St(!1),er=!1),Ut&&hn!==rr&&Ut(rr,{source:nr?"typing":"effect"}),er}},Nt=function(Pn){!Pn||!Pn.trim()||Ut(Pn,{source:"submit"})};s.useEffect(function(){!xn&&!rt&&fe!=="combobox"&&Kn("",!1,!1)},[xn]),s.useEffect(function(){In&&ve&&Gn(!1),ve&&!ln.current&&It(!1)},[ve]);var Wt=u(),Rn=(0,V.Z)(Wt,2),Ht=Rn[0],Tn=Rn[1],or=s.useRef(!1),Hn=function(Pn){var nr=Ht(),Qn=Pn.key,er=Qn==="Enter";if(er&&(fe!=="combobox"&&Pn.preventDefault(),xn||St(!0)),Tn(!!hn),Qn==="Backspace"&&!nr&&rt&&!hn&&it.length){for(var rr=(0,A.Z)(it),yr=null,gr=rr.length-1;gr>=0;gr-=1){var xr=rr[gr];if(!xr.disabled){rr.splice(gr,1),yr=xr;break}}yr&&wt(rr,{type:"remove",values:[yr]})}for(var ir=arguments.length,mr=new Array(ir>1?ir-1:0),Rr=1;Rr<ir;Rr++)mr[Rr-1]=arguments[Rr];if(xn&&(!er||!or.current)){var Er;er&&(or.current=!0),(Er=mn.current)===null||Er===void 0||Er.onKeyDown.apply(Er,[Pn].concat(mr))}Ne==null||Ne.apply(void 0,[Pn].concat(mr))},fr=function(Pn){for(var nr=arguments.length,Qn=new Array(nr>1?nr-1:0),er=1;er<nr;er++)Qn[er-1]=arguments[er];if(xn){var rr;(rr=mn.current)===null||rr===void 0||rr.onKeyUp.apply(rr,[Pn].concat(Qn))}Pn.key==="Enter"&&(or.current=!1),Ce==null||Ce.apply(void 0,[Pn].concat(Qn))},ur=function(Pn){var nr=it.filter(function(Qn){return Qn!==Pn});wt(nr,{type:"remove",values:[Pn]})},vr=function(){or.current=!1},Jn=s.useRef(!1),Fr=function(){It(!0),ve||(ue&&!Jn.current&&ue.apply(void 0,arguments),re.includes("focus")&&St(!0)),Jn.current=!0},Br=function(){ln.current=!0,It(!1,function(){Jn.current=!1,ln.current=!1,St(!1)}),!ve&&(hn&&(fe==="tags"?Ut(hn,{source:"submit"}):fe==="multiple"&&Ut("",{source:"blur"})),_e&&_e.apply(void 0,arguments))},Sr=[];s.useEffect(function(){return function(){Sr.forEach(function(Mn){return clearTimeout(Mn)}),Sr.splice(0,Sr.length)}},[]);var kr=function(Pn){var nr,Qn=Pn.target,er=(nr=Yt.current)===null||nr===void 0?void 0:nr.getPopupElement();if(er&&er.contains(Qn)){var rr=setTimeout(function(){var ir=Sr.indexOf(rr);if(ir!==-1&&Sr.splice(ir,1),Jt(),!mt&&!er.contains(document.activeElement)){var mr;(mr=rn.current)===null||mr===void 0||mr.focus()}});Sr.push(rr)}for(var yr=arguments.length,gr=new Array(yr>1?yr-1:0),xr=1;xr<yr;xr++)gr[xr-1]=arguments[xr];$e==null||$e.apply(void 0,[Pn].concat(gr))},Nr=s.useState({}),Or=(0,V.Z)(Nr,2),Ar=Or[1];function br(){Ar({})}var Ir;fn&&(Ir=function(Pn){St(Pn)}),k(function(){var Mn;return[on.current,(Mn=Yt.current)===null||Mn===void 0?void 0:Mn.getPopupElement()]},Sn,St,!!fn);var Pr=s.useMemo(function(){return(0,X.Z)((0,X.Z)({},ne),{},{notFoundContent:Y,open:xn,triggerOpen:Sn,id:Ze,showSearch:Ot,multiple:rt,toggleOpen:St})},[ne,Y,Sn,xn,Ze,Ot,rt,St]),zr=!!_t||Me,Dr;zr&&(Dr=s.createElement(b,{className:t()("".concat(Xe,"-arrow"),(0,j.Z)({},"".concat(Xe,"-arrow-loading"),Me)),customizeIcon:_t,customizeIconProps:{loading:Me,searchValue:hn,open:xn,focused:gt,showSearch:Ot}}));var $r=function(){var Pn;se==null||se(),(Pn=rn.current)===null||Pn===void 0||Pn.focus(),wt([],{type:"clear",values:it}),Kn("",!1,!1)},Mr=S(Xe,$r,it,tt,Gt,ve,hn,fe),Gr=Mr.allowClear,jr=Mr.clearIcon,Wr=s.createElement(At,{ref:mn}),Tr=t()(Xe,Je,(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(Xe,"-focused"),gt),"".concat(Xe,"-multiple"),rt),"".concat(Xe,"-single"),!rt),"".concat(Xe,"-allow-clear"),tt),"".concat(Xe,"-show-arrow"),zr),"".concat(Xe,"-disabled"),ve),"".concat(Xe,"-loading"),Me),"".concat(Xe,"-open"),xn),"".concat(Xe,"-customize-input"),un),"".concat(Xe,"-show-search"),Ot)),dr=s.createElement(ie,{ref:Yt,disabled:ve,prefixCls:Xe,visible:Sn,popupElement:Wr,animation:Vt,transitionName:An,dropdownStyle:L,dropdownClassName:le,direction:ze,dropdownMatchSelectWidth:ee,dropdownRender:oe,dropdownAlign:me,placement:Se,builtinPlacements:Be,getPopupContainer:ke,empty:nt,getTriggerDOMNode:function(Pn){return _n.current||Pn},onPopupVisibleChange:Ir,onPopupMouseEnter:br},fn?s.cloneElement(fn,{ref:Un}):s.createElement(ot,(0,T.Z)({},ne,{domRef:_n,prefixCls:Xe,inputElement:un,ref:rn,id:Ze,prefix:ct,showSearch:Ot,autoClearSearchValue:$t,mode:fe,activeDescendantId:Ct,tagRender:pe,values:it,open:xn,onToggleOpen:St,activeValue:Kt,searchValue:hn,onSearch:Kn,onSearchSubmit:Nt,onRemove:ur,tokenWithEnter:qt,onInputBlur:vr}))),lr;return fn?lr=dr:lr=s.createElement("div",(0,T.Z)({className:Tr},jt,{ref:on,onMouseDown:kr,onKeyDown:Hn,onKeyUp:fr,onFocus:Fr,onBlur:Br}),s.createElement(ce,{visible:gt&&!xn,values:it}),dr,Dr,Gr&&jr),s.createElement(p.Provider,{value:Pr},lr)}),de=Ie,Le=function(){return null};Le.isSelectOptGroup=!0;var Oe=Le,De=function(){return null};De.isSelectOption=!0;var at=De,Et=l(80547),et=l(2738),Tt=l(65283);function tn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var pt=["disabled","title","children","style","className"];function st(ne){return typeof ne=="string"||typeof ne=="number"}var bt=function(Q,Ue){var Ze=m(),Xe=Ze.prefixCls,Je=Ze.id,we=Ze.open,pe=Ze.multiple,ze=Ze.mode,Ye=Ze.searchValue,it=Ze.toggleOpen,wt=Ze.notFoundContent,nt=Ze.onPopupScroll,He=s.useContext(J),Y=He.maxCount,se=He.flattenOptions,fe=He.onActiveValue,ve=He.defaultActiveFirstOption,Me=He.onSelect,je=He.menuItemSelectedIcon,Te=He.rawValues,Ge=He.fieldNames,Qe=He.virtual,lt=He.direction,Kt=He.listHeight,ft=He.listItemHeight,Ct=He.optionRender,Ft="".concat(Xe,"-item"),$t=(0,Et.Z)(function(){return se},[we,se],function(Re,re){return re[0]&&Re[1]!==re[1]}),Ut=s.useRef(null),xt=s.useMemo(function(){return pe&&P(Y)&&(Te==null?void 0:Te.size)>=Y},[pe,Y,Te==null?void 0:Te.size]),Pt=function(re){re.preventDefault()},tt=function(re){var ue;(ue=Ut.current)===null||ue===void 0||ue.scrollTo(typeof re=="number"?{index:re}:re)},ct=s.useCallback(function(Re){return ze==="combobox"?!1:Te.has(Re)},[ze,(0,A.Z)(Te).toString(),Te.size]),_t=function(re){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,_e=$t.length,Ce=0;Ce<_e;Ce+=1){var Ne=(re+Ce*ue+_e)%_e,$e=$t[Ne]||{},ht=$e.group,rt=$e.data;if(!ht&&!(rt!=null&&rt.disabled)&&(ct(rt.value)||!xt))return Ne}return-1},Gt=s.useState(function(){return _t(0)}),At=(0,V.Z)(Gt,2),Vt=At[0],An=At[1],L=function(re){var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;An(re);var _e={source:ue?"keyboard":"mouse"},Ce=$t[re];if(!Ce){fe(null,-1,_e);return}fe(Ce.value,re,_e)};(0,s.useEffect)(function(){L(ve!==!1?_t(0):-1)},[$t.length,Ye]);var le=s.useCallback(function(Re){return ze==="combobox"?String(Re).toLowerCase()===Ye.toLowerCase():Te.has(Re)},[ze,Ye,(0,A.Z)(Te).toString(),Te.size]);(0,s.useEffect)(function(){var Re=setTimeout(function(){if(!pe&&we&&Te.size===1){var ue=Array.from(Te)[0],_e=$t.findIndex(function(Ce){var Ne=Ce.data;return Ye?String(Ne.value).startsWith(Ye):Ne.value===ue});_e!==-1&&(L(_e),tt(_e))}});if(we){var re;(re=Ut.current)===null||re===void 0||re.scrollTo(void 0)}return function(){return clearTimeout(Re)}},[we,Ye]);var ee=function(re){re!==void 0&&Me(re,{selected:!Te.has(re)}),pe||it(!1)};if(s.useImperativeHandle(Ue,function(){return{onKeyDown:function(re){var ue=re.which,_e=re.ctrlKey;switch(ue){case I.Z.N:case I.Z.P:case I.Z.UP:case I.Z.DOWN:{var Ce=0;if(ue===I.Z.UP?Ce=-1:ue===I.Z.DOWN?Ce=1:tn()&&_e&&(ue===I.Z.N?Ce=1:ue===I.Z.P&&(Ce=-1)),Ce!==0){var Ne=_t(Vt+Ce,Ce);tt(Ne),L(Ne,!0)}break}case I.Z.TAB:case I.Z.ENTER:{var $e,ht=$t[Vt];ht&&!(ht!=null&&($e=ht.data)!==null&&$e!==void 0&&$e.disabled)&&!xt?ee(ht.value):ee(void 0),we&&re.preventDefault();break}case I.Z.ESC:it(!1),we&&re.stopPropagation()}},onKeyUp:function(){},scrollTo:function(re){tt(re)}}}),$t.length===0)return s.createElement("div",{role:"listbox",id:"".concat(Je,"_list"),className:"".concat(Ft,"-empty"),onMouseDown:Pt},wt);var oe=Object.keys(Ge).map(function(Re){return Ge[Re]}),me=function(re){return re.label};function Se(Re,re){var ue=Re.group;return{role:ue?"presentation":"option",id:"".concat(Je,"_list_").concat(re)}}var Be=function(re){var ue=$t[re];if(!ue)return null;var _e=ue.data||{},Ce=_e.value,Ne=ue.group,$e=(0,K.Z)(_e,!0),ht=me(ue);return ue?s.createElement("div",(0,T.Z)({"aria-label":typeof ht=="string"&&!Ne?ht:null},$e,{key:re},Se(ue,re),{"aria-selected":le(Ce)}),Ce):null},ke={role:"listbox",id:"".concat(Je,"_list")};return s.createElement(s.Fragment,null,Qe&&s.createElement("div",(0,T.Z)({},ke,{style:{height:0,width:0,overflow:"hidden"}}),Be(Vt-1),Be(Vt),Be(Vt+1)),s.createElement(Tt.Z,{itemKey:"key",ref:Ut,data:$t,height:Kt,itemHeight:ft,fullHeight:!1,onMouseDown:Pt,onScroll:nt,virtual:Qe,direction:lt,innerProps:Qe?null:ke},function(Re,re){var ue=Re.group,_e=Re.groupOption,Ce=Re.data,Ne=Re.label,$e=Re.value,ht=Ce.key;if(ue){var rt,Ot=(rt=Ce.title)!==null&&rt!==void 0?rt:st(Ne)?Ne.toString():void 0;return s.createElement("div",{className:t()(Ft,"".concat(Ft,"-group"),Ce.className),title:Ot},Ne!==void 0?Ne:ht)}var jt=Ce.disabled,Dt=Ce.title,Xt=Ce.children,mt=Ce.style,pn=Ce.className,on=(0,h.Z)(Ce,pt),_n=(0,et.Z)(on,oe),Yt=ct($e),rn=jt||!Yt&&xt,mn="".concat(Ft,"-option"),ln=t()(Ft,mn,pn,(0,j.Z)((0,j.Z)((0,j.Z)((0,j.Z)({},"".concat(mn,"-grouped"),_e),"".concat(mn,"-active"),Vt===re&&!rn),"".concat(mn,"-disabled"),rn),"".concat(mn,"-selected"),Yt)),dn=me(Re),Bt=!je||typeof je=="function"||Yt,gt=typeof dn=="number"?dn:dn||$e,It=st(gt)?gt.toString():void 0;return Dt!==void 0&&(It=Dt),s.createElement("div",(0,T.Z)({},(0,K.Z)(_n),Qe?{}:Se(Re,re),{"aria-selected":le($e),className:ln,title:It,onMouseMove:function(){Vt===re||rn||L(re)},onClick:function(){rn||ee($e)},style:mt}),s.createElement("div",{className:"".concat(mn,"-content")},typeof Ct=="function"?Ct(Re,{index:re}):gt),s.isValidElement(je)||Yt,Bt&&s.createElement(b,{className:"".concat(Ft,"-option-state"),customizeIcon:je,customizeIconProps:{value:$e,disabled:rn,isSelected:Yt}},Yt?"\u2713":null))}))},Qt=s.forwardRef(bt),kt=Qt,Lt=function(ne,Q){var Ue=s.useRef({values:new Map,options:new Map}),Ze=s.useMemo(function(){var Je=Ue.current,we=Je.values,pe=Je.options,ze=ne.map(function(wt){if(wt.label===void 0){var nt;return(0,X.Z)((0,X.Z)({},wt),{},{label:(nt=we.get(wt.value))===null||nt===void 0?void 0:nt.label})}return wt}),Ye=new Map,it=new Map;return ze.forEach(function(wt){Ye.set(wt.value,wt),it.set(wt.value,Q.get(wt.value)||pe.get(wt.value))}),Ue.current.values=Ye,Ue.current.options=it,ze},[ne,Q]),Xe=s.useCallback(function(Je){return Q.get(Je)||Ue.current.options.get(Je)},[Q]);return[Ze,Xe]};function Mt(ne,Q){return C(ne).join("").toUpperCase().includes(Q)}var sn=function(ne,Q,Ue,Ze,Xe){return s.useMemo(function(){if(!Ue||Ze===!1)return ne;var Je=Q.options,we=Q.label,pe=Q.value,ze=[],Ye=typeof Ze=="function",it=Ue.toUpperCase(),wt=Ye?Ze:function(He,Y){return Xe?Mt(Y[Xe],it):Y[Je]?Mt(Y[we!=="children"?we:"label"],it):Mt(Y[pe],it)},nt=Ye?function(He){return U(He)}:function(He){return He};return ne.forEach(function(He){if(He[Je]){var Y=wt(Ue,nt(He));if(Y)ze.push(He);else{var se=He[Je].filter(function(fe){return wt(Ue,nt(fe))});se.length&&ze.push((0,X.Z)((0,X.Z)({},He),{},(0,j.Z)({},Je,se)))}return}wt(Ue,nt(He))&&ze.push(He)}),ze},[ne,Ze,Xe,Ue,Q])},qe=l(6551),ut=l(11592),yt=["children","value"],kn=["children"];function vn(ne){var Q=ne,Ue=Q.key,Ze=Q.props,Xe=Ze.children,Je=Ze.value,we=(0,h.Z)(Ze,yt);return(0,X.Z)({key:Ue,value:Je!==void 0?Je:Ue,children:Xe},we)}function Fn(ne){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ut.Z)(ne).map(function(Ue,Ze){if(!s.isValidElement(Ue)||!Ue.type)return null;var Xe=Ue,Je=Xe.type.isSelectOptGroup,we=Xe.key,pe=Xe.props,ze=pe.children,Ye=(0,h.Z)(pe,kn);return Q||!Je?vn(Ue):(0,X.Z)((0,X.Z)({key:"__RC_SELECT_GRP__".concat(we===null?Ze:we,"__"),label:we},Ye),{},{options:Fn(ze)})}).filter(function(Ue){return Ue})}var zn=function(Q,Ue,Ze,Xe,Je){return s.useMemo(function(){var we=Q,pe=!Q;pe&&(we=Fn(Ue));var ze=new Map,Ye=new Map,it=function(He,Y,se){se&&typeof se=="string"&&He.set(Y[se],Y)},wt=function nt(He){for(var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,se=0;se<He.length;se+=1){var fe=He[se];!fe[Ze.options]||Y?(ze.set(fe[Ze.value],fe),it(Ye,fe,Ze.label),it(Ye,fe,Xe),it(Ye,fe,Je)):nt(fe[Ze.options],!0)}};return wt(we),{options:we,valueOptions:ze,labelOptions:Ye}},[Q,Ue,Ze,Xe,Je])},bn=zn;function zt(ne){var Q=s.useRef();Q.current=ne;var Ue=s.useCallback(function(){return Q.current.apply(Q,arguments)},[]);return Ue}function Nn(ne){var Q=ne.mode,Ue=ne.options,Ze=ne.children,Xe=ne.backfill,Je=ne.allowClear,we=ne.placeholder,pe=ne.getInputElement,ze=ne.showSearch,Ye=ne.onSearch,it=ne.defaultOpen,wt=ne.autoFocus,nt=ne.labelInValue,He=ne.value,Y=ne.inputValue,se=ne.optionLabelProp,fe=isMultiple(Q),ve=ze!==void 0?ze:fe||Q==="combobox",Me=Ue||convertChildrenToData(Ze);if(warning(Q!=="tags"||Me.every(function(Qe){return!Qe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Q==="tags"||Q==="combobox"){var je=Me.some(function(Qe){return Qe.options?Qe.options.some(function(lt){return typeof("value"in lt?lt.value:lt.key)=="number"}):typeof("value"in Qe?Qe.value:Qe.key)=="number"});warning(!je,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Q!=="combobox"||!se,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Q==="combobox"||!Xe,"`backfill` only works with `combobox` mode."),warning(Q==="combobox"||!pe,"`getInputElement` only work with `combobox` mode."),noteOnce(Q!=="combobox"||!pe||!Je||!we,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Ye&&!ve&&Q!=="combobox"&&Q!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!it||wt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),He!=null){var Te=toArray(He);warning(!nt||Te.every(function(Qe){return _typeof(Qe)==="object"&&("key"in Qe||"value"in Qe)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!fe||Array.isArray(He),"`value` should be array when `mode` is `multiple` or `tags`")}if(Ze){var Ge=null;toNodeArray(Ze).some(function(Qe){if(!React.isValidElement(Qe)||!Qe.type)return!1;var lt=Qe,Kt=lt.type;if(Kt.isSelectOption)return!1;if(Kt.isSelectOptGroup){var ft=toNodeArray(Qe.props.children).every(function(Ct){return!React.isValidElement(Ct)||!Qe.type||Ct.type.isSelectOption?!0:(Ge=Ct.type,!1)});return!ft}return Ge=Kt,!0}),Ge&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Ge.displayName||Ge.name||Ge,"`.")),warning(Y===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function En(ne,Q){if(ne){var Ue=function Ze(Xe){for(var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=0;we<Xe.length;we++){var pe=Xe[we];if(pe[Q==null?void 0:Q.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Je&&Array.isArray(pe[Q==null?void 0:Q.options])&&Ze(pe[Q==null?void 0:Q.options],!0))break}};Ue(ne)}}var On=null,gn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Cn=["inputValue"];function Zn(ne){return!ne||(0,H.Z)(ne)!=="object"}var cn=s.forwardRef(function(ne,Q){var Ue=ne.id,Ze=ne.mode,Xe=ne.prefixCls,Je=Xe===void 0?"rc-select":Xe,we=ne.backfill,pe=ne.fieldNames,ze=ne.inputValue,Ye=ne.searchValue,it=ne.onSearch,wt=ne.autoClearSearchValue,nt=wt===void 0?!0:wt,He=ne.onSelect,Y=ne.onDeselect,se=ne.dropdownMatchSelectWidth,fe=se===void 0?!0:se,ve=ne.filterOption,Me=ne.filterSort,je=ne.optionFilterProp,Te=ne.optionLabelProp,Ge=ne.options,Qe=ne.optionRender,lt=ne.children,Kt=ne.defaultActiveFirstOption,ft=ne.menuItemSelectedIcon,Ct=ne.virtual,Ft=ne.direction,$t=ne.listHeight,Ut=$t===void 0?200:$t,xt=ne.listItemHeight,Pt=xt===void 0?20:xt,tt=ne.labelRender,ct=ne.value,_t=ne.defaultValue,Gt=ne.labelInValue,At=ne.onChange,Vt=ne.maxCount,An=(0,h.Z)(ne,gn),L=(0,qe.ZP)(Ue),le=Fe(Ze),ee=!!(!Ge&<),oe=s.useMemo(function(){return ve===void 0&&Ze==="combobox"?!1:ve},[ve,Ze]),me=s.useMemo(function(){return z(pe,ee)},[JSON.stringify(pe),ee]),Se=(0,$.Z)("",{value:Ye!==void 0?Ye:ze,postState:function(qt){return qt||""}}),Be=(0,V.Z)(Se,2),ke=Be[0],Re=Be[1],re=bn(Ge,lt,me,je,Te),ue=re.valueOptions,_e=re.labelOptions,Ce=re.options,Ne=s.useCallback(function(St){var qt=C(St);return qt.map(function(en){var an,Dn,Kn,Nt,Wt;if(Zn(en))an=en;else{var Rn;Kn=en.key,Dn=en.label,an=(Rn=en.value)!==null&&Rn!==void 0?Rn:Kn}var Ht=ue.get(an);if(Ht){var Tn;if(Dn===void 0&&(Dn=Ht==null?void 0:Ht[Te||me.label]),Kn===void 0&&(Kn=(Tn=Ht==null?void 0:Ht.key)!==null&&Tn!==void 0?Tn:an),Nt=Ht==null?void 0:Ht.disabled,Wt=Ht==null?void 0:Ht.title,0)var or}return{label:Dn,value:an,key:Kn,disabled:Nt,title:Wt}})},[me,Te,ue]),$e=(0,$.Z)(_t,{value:ct}),ht=(0,V.Z)($e,2),rt=ht[0],Ot=ht[1],jt=s.useMemo(function(){var St,qt=le&&rt===null?[]:rt,en=Ne(qt);return Ze==="combobox"&&d((St=en[0])===null||St===void 0?void 0:St.value)?[]:en},[rt,Ne,Ze,le]),Dt=Lt(jt,ue),Xt=(0,V.Z)(Dt,2),mt=Xt[0],pn=Xt[1],on=s.useMemo(function(){if(!Ze&&mt.length===1){var St=mt[0];if(St.value===null&&(St.label===null||St.label===void 0))return[]}return mt.map(function(qt){var en;return(0,X.Z)((0,X.Z)({},qt),{},{label:(en=typeof tt=="function"?tt(qt):qt.label)!==null&&en!==void 0?en:qt.value})})},[Ze,mt,tt]),_n=s.useMemo(function(){return new Set(mt.map(function(St){return St.value}))},[mt]);s.useEffect(function(){if(Ze==="combobox"){var St,qt=(St=mt[0])===null||St===void 0?void 0:St.value;Re(a(qt)?String(qt):"")}},[mt]);var Yt=zt(function(St,qt){var en=qt!=null?qt:St;return(0,j.Z)((0,j.Z)({},me.value,St),me.label,en)}),rn=s.useMemo(function(){if(Ze!=="tags")return Ce;var St=(0,A.Z)(Ce),qt=function(an){return ue.has(an)};return(0,A.Z)(mt).sort(function(en,an){return en.value<an.value?-1:1}).forEach(function(en){var an=en.value;qt(an)||St.push(Yt(an,en.label))}),St},[Yt,Ce,ue,mt,Ze]),mn=sn(rn,me,ke,oe,je),ln=s.useMemo(function(){return Ze!=="tags"||!ke||mn.some(function(St){return St[je||"value"]===ke})||mn.some(function(St){return St[me.value]===ke})?mn:[Yt(ke)].concat((0,A.Z)(mn))},[Yt,je,Ze,mn,ke,me]),dn=function St(qt){var en=(0,A.Z)(qt).sort(function(an,Dn){return Me(an,Dn,{searchValue:ke})});return en.map(function(an){return Array.isArray(an.options)?(0,X.Z)((0,X.Z)({},an),{},{options:an.options.length>0?St(an.options):an.options}):an})},Bt=s.useMemo(function(){return Me?dn(ln):ln},[ln,Me,ke]),gt=s.useMemo(function(){return D(Bt,{fieldNames:me,childrenAsData:ee})},[Bt,me,ee]),It=function(qt){var en=Ne(qt);if(Ot(en),At&&(en.length!==mt.length||en.some(function(Kn,Nt){var Wt;return((Wt=mt[Nt])===null||Wt===void 0?void 0:Wt.value)!==(Kn==null?void 0:Kn.value)}))){var an=Gt?en:en.map(function(Kn){return Kn.value}),Dn=en.map(function(Kn){return U(pn(Kn.value))});At(le?an:an[0],le?Dn:Dn[0])}},Jt=s.useState(null),hn=(0,V.Z)(Jt,2),un=hn[0],fn=hn[1],Un=s.useState(0),Xn=(0,V.Z)(Un,2),$n=Xn[0],sr=Xn[1],ar=Kt!==void 0?Kt:Ze!=="combobox",qn=s.useCallback(function(St,qt){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},an=en.source,Dn=an===void 0?"keyboard":an;sr(qt),we&&Ze==="combobox"&&St!==null&&Dn==="keyboard"&&fn(String(St))},[we,Ze]),yn=function(qt,en,an){var Dn=function(){var ur,vr=pn(qt);return[Gt?{label:vr==null?void 0:vr[me.label],value:qt,key:(ur=vr==null?void 0:vr.key)!==null&&ur!==void 0?ur:qt}:qt,U(vr)]};if(en&&He){var Kn=Dn(),Nt=(0,V.Z)(Kn,2),Wt=Nt[0],Rn=Nt[1];He(Wt,Rn)}else if(!en&&Y&&an!=="clear"){var Ht=Dn(),Tn=(0,V.Z)(Ht,2),or=Tn[0],Hn=Tn[1];Y(or,Hn)}},In=zt(function(St,qt){var en,an=le?qt.selected:!0;an?en=le?[].concat((0,A.Z)(mt),[St]):[St]:en=mt.filter(function(Dn){return Dn.value!==St}),It(en),yn(St,an),Ze==="combobox"?fn(""):(!Fe||nt)&&(Re(""),fn(""))}),Gn=function(qt,en){It(qt);var an=en.type,Dn=en.values;(an==="remove"||an==="clear")&&Dn.forEach(function(Kn){yn(Kn.value,!1,an)})},xn=function(qt,en){if(Re(qt),fn(null),en.source==="submit"){var an=(qt||"").trim();if(an){var Dn=Array.from(new Set([].concat((0,A.Z)(_n),[an])));It(Dn),yn(an,!0),Re("")}return}en.source!=="blur"&&(Ze==="combobox"&&It(qt),it==null||it(qt))},wn=function(qt){var en=qt;Ze!=="tags"&&(en=qt.map(function(Dn){var Kn=_e.get(Dn);return Kn==null?void 0:Kn.value}).filter(function(Dn){return Dn!==void 0}));var an=Array.from(new Set([].concat((0,A.Z)(_n),(0,A.Z)(en))));It(an),an.forEach(function(Dn){yn(Dn,!0)})},Sn=s.useMemo(function(){var St=Ct!==!1&&fe!==!1;return(0,X.Z)((0,X.Z)({},re),{},{flattenOptions:gt,onActiveValue:qn,defaultActiveFirstOption:ar,onSelect:In,menuItemSelectedIcon:ft,rawValues:_n,fieldNames:me,virtual:St,direction:Ft,listHeight:Ut,listItemHeight:Pt,childrenAsData:ee,maxCount:Vt,optionRender:Qe})},[Vt,re,gt,qn,ar,In,ft,_n,me,Ct,fe,Ft,Ut,Pt,ee,Qe]);return s.createElement(J.Provider,{value:Sn},s.createElement(de,(0,T.Z)({},An,{id:L,prefixCls:Je,ref:Q,omitDomProps:Cn,mode:Ze,displayValues:on,onDisplayValuesChange:Gn,direction:Ft,searchValue:ke,onSearch:xn,autoClearSearchValue:nt,onSearchSplit:wn,dropdownMatchSelectWidth:fe,OptionList:kt,emptyOptions:!gt.length,activeValue:un,activeDescendantId:"".concat(L,"_list_").concat($n)})))}),nn=cn;nn.Option=at,nn.OptGroup=Oe;var Ln=nn,Wn=Ln},86351:function(Zt,Ke,l){"use strict";l.d(Ke,{R:function(){return A},w:function(){return T}});var T={},A="rc-table-internal-hook"},97347:function(Zt,Ke,l){"use strict";l.d(Ke,{L:function(){return v},Z:function(){return f}});var T=l(50298),A=l(4635),j=l(95190),X=l(93664),V=l(20439),h=l(62646),H=l(11592),$=l(48736),e=l(59301),s=l(86351),c=l(54451);function t(u){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof k=="number"?k:k.endsWith("%")?u*parseFloat(k)/100:null}function r(u,k,I){return e.useMemo(function(){if(k&&k>0){var F=0,K=0;u.forEach(function(C){var y=t(k,C.width);y?F+=y:K+=1});var G=Math.max(k,I),W=Math.max(G-F,K),Pe=K,w=W/K,_=0,x=u.map(function(C){var y=(0,V.Z)({},C),n=t(k,y.width);if(n)y.width=n;else{var a=Math.floor(w);y.width=Pe===1?W:a,W-=a,Pe-=1}return _+=y.width,y});if(_<G){var N=G/_;W=G,x.forEach(function(C,y){var n=Math.floor(C.width*N);C.width=y===x.length-1?W:n,W-=n})}return[x,Math.max(_,G)]}return[u,k]},[u,k,I])}var i=["children"],o=["fixed"];function v(u){return(0,H.Z)(u).filter(function(k){return e.isValidElement(k)}).map(function(k){var I=k.key,F=k.props,K=F.children,G=(0,h.Z)(F,i),W=(0,V.Z)({key:I},G);return K&&(W.children=v(K)),W})}function b(u){return u.filter(function(k){return k&&(0,X.Z)(k)==="object"&&!k.hidden}).map(function(k){var I=k.children;return I&&I.length>0?(0,V.Z)((0,V.Z)({},k),{},{children:b(I)}):k})}function S(u){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return u.filter(function(I){return I&&(0,X.Z)(I)==="object"}).reduce(function(I,F,K){var G=F.fixed,W=G===!0?"left":G,Pe="".concat(k,"-").concat(K),w=F.children;return w&&w.length>0?[].concat((0,j.Z)(I),(0,j.Z)(S(w,Pe).map(function(_){return(0,V.Z)({fixed:W},_)}))):[].concat((0,j.Z)(I),[(0,V.Z)((0,V.Z)({key:Pe},F),{},{fixed:W})])},[])}function p(u){return u.map(function(k){var I=k.fixed,F=(0,h.Z)(k,o),K=I;return I==="left"?K="right":I==="right"&&(K="left"),(0,V.Z)({fixed:K},F)})}function m(u,k){var I=u.prefixCls,F=u.columns,K=u.children,G=u.expandable,W=u.expandedKeys,Pe=u.columnTitle,w=u.getRowKey,_=u.onTriggerExpand,x=u.expandIcon,N=u.rowExpandable,C=u.expandIconColumnIndex,y=u.direction,n=u.expandRowByClick,a=u.columnWidth,d=u.fixed,M=u.scrollWidth,ae=u.clientWidth,he=e.useMemo(function(){var ot=F||v(K)||[];return b(ot.slice())},[F,K]),ge=e.useMemo(function(){if(G){var ot=he.slice();if(!ot.includes(s.w)){var be=C||0;be>=0&&(be||d==="left"||!d)&&ot.splice(be,0,s.w),d==="right"&&ot.splice(he.length,0,s.w)}var E=ot.indexOf(s.w);ot=ot.filter(function(ie,R){return ie!==s.w||R===E});var B=he[E],O;d?O=d:O=B?B.fixed:null;var q=(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)({},c.v,{className:"".concat(I,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Pe),"fixed",O),"className","".concat(I,"-row-expand-icon-cell")),"width",a),"render",function(R,g,P){var z=w(g,P),D=W.has(z),U=N?N(g):!0,Z=x({prefixCls:I,expanded:D,expandable:U,record:g,onExpand:_});return n?e.createElement("span",{onClick:function(J){return J.stopPropagation()}},Z):Z});return ot.map(function(ie){return ie===s.w?q:ie})}return he.filter(function(ie){return ie!==s.w})},[G,he,w,W,x,y]),Ae=e.useMemo(function(){var ot=ge;return k&&(ot=k(ot)),ot.length||(ot=[{render:function(){return null}}]),ot},[k,ge,y]),We=e.useMemo(function(){return y==="rtl"?p(S(Ae)):S(Ae)},[Ae,y,M]),vt=e.useMemo(function(){for(var ot=-1,be=We.length-1;be>=0;be-=1){var E=We[be].fixed;if(E==="left"||E===!0){ot=be;break}}if(ot>=0)for(var B=0;B<=ot;B+=1){var O=We[B].fixed;if(O!=="left"&&O!==!0)return!0}var q=We.findIndex(function(g){var P=g.fixed;return P==="right"});if(q>=0)for(var ie=q;ie<We.length;ie+=1){var R=We[ie].fixed;if(R!=="right")return!0}return!1},[We]),ye=r(We,M,ae),Ve=(0,T.Z)(ye,2),dt=Ve[0],Rt=Ve[1];return[Ae,dt,Rt,vt]}var f=m},4030:function(Zt,Ke,l){"use strict";l.d(Ke,{w2:function(){return T.w},vP:function(){return st.v},RQ:function(){return T.R},ER:function(){return z},Q$:function(){return ve},TN:function(){return At}});var T=l(86351),A=l(50298),j=l(6089),X=l(34280),V=l(13697),h=l(59301),H=l(4676);function $(L){var le=h.createContext(void 0),ee=function(me){var Se=me.value,Be=me.children,ke=h.useRef(Se);ke.current=Se;var Re=h.useState(function(){return{getValue:function(){return ke.current},listeners:new Set}}),re=(0,A.Z)(Re,1),ue=re[0];return(0,X.Z)(function(){(0,H.unstable_batchedUpdates)(function(){ue.listeners.forEach(function(_e){_e(Se)})})},[Se]),h.createElement(le.Provider,{value:ue},Be)};return{Context:le,Provider:ee,defaultValue:L}}function e(L,le){var ee=(0,j.Z)(typeof le=="function"?le:function(_e){if(le===void 0)return _e;if(!Array.isArray(le))return _e[le];var Ce={};return le.forEach(function(Ne){Ce[Ne]=_e[Ne]}),Ce}),oe=h.useContext(L==null?void 0:L.Context),me=oe||{},Se=me.listeners,Be=me.getValue,ke=h.useRef();ke.current=ee(oe?Be():L==null?void 0:L.defaultValue);var Re=h.useState({}),re=(0,A.Z)(Re,2),ue=re[1];return(0,X.Z)(function(){if(!oe)return;function _e(Ce){var Ne=ee(Ce);(0,V.Z)(ke.current,Ne,!0)||ue({})}return Se.add(_e),function(){Se.delete(_e)}},[oe]),ke.current}var s=l(14809),c=l(8654);function t(){var L=h.createContext(null);function le(){return h.useContext(L)}function ee(me,Se){var Be=(0,c.Yr)(me),ke=function(re,ue){var _e=Be?{ref:ue}:{},Ce=h.useRef(0),Ne=h.useRef(re),$e=le();return $e!==null?h.createElement(me,(0,s.Z)({},re,_e)):((!Se||Se(Ne.current,re))&&(Ce.current+=1),Ne.current=re,h.createElement(L.Provider,{value:Ce.current},h.createElement(me,(0,s.Z)({},re,_e))))};return Be?h.forwardRef(ke):ke}function oe(me,Se){var Be=(0,c.Yr)(me),ke=function(re,ue){var _e=Be?{ref:ue}:{};return le(),h.createElement(me,(0,s.Z)({},re,_e))};return Be?h.memo(h.forwardRef(ke),Se):h.memo(ke,Se)}return{makeImmutable:ee,responseImmutable:oe,useImmutableMark:le}}var r=t(),i=r.makeImmutable,o=r.responseImmutable,v=r.useImmutableMark,b=t(),S=b.makeImmutable,p=b.responseImmutable,m=b.useImmutableMark,f=$(),u=f;function k(L,le){var ee=React.useRef(0);ee.current+=1;var oe=React.useRef(L),me=[];Object.keys(L||{}).map(function(Be){var ke;(L==null?void 0:L[Be])!==((ke=oe.current)===null||ke===void 0?void 0:ke[Be])&&me.push(Be)}),oe.current=L;var Se=React.useRef([]);return me.length&&(Se.current=me),React.useDebugValue(ee.current),React.useDebugValue(Se.current.join(", ")),le&&console.log("".concat(le,":"),ee.current,Se.current),ee.current}var I=null,F=null,K=l(93664),G=l(20439),W=l(4635),Pe=l(92310),w=l.n(Pe),_=l(80547),x=l(97938),N=l(48736),C=h.createContext({renderWithProps:!1}),y=C,n="RC_TABLE_KEY";function a(L){return L==null?[]:Array.isArray(L)?L:[L]}function d(L){var le=[],ee={};return L.forEach(function(oe){for(var me=oe||{},Se=me.key,Be=me.dataIndex,ke=Se||a(Be).join("-")||n;ee[ke];)ke="".concat(ke,"_next");ee[ke]=!0,le.push(ke)}),le}function M(L){return L!=null}function ae(L){return typeof L=="number"&&!Number.isNaN(L)}function he(L){return L&&(0,K.Z)(L)==="object"&&!Array.isArray(L)&&!h.isValidElement(L)}function ge(L,le,ee,oe,me,Se){var Be=h.useContext(y),ke=m(),Re=(0,_.Z)(function(){if(M(oe))return[oe];var re=le==null||le===""?[]:Array.isArray(le)?le:[le],ue=(0,x.Z)(L,re),_e=ue,Ce=void 0;if(me){var Ne=me(ue,L,ee);he(Ne)?(_e=Ne.children,Ce=Ne.props,Be.renderWithProps=!0):_e=Ne}return[_e,Ce]},[ke,L,oe,le,me,ee],function(re,ue){if(Se){var _e=(0,A.Z)(re,2),Ce=_e[1],Ne=(0,A.Z)(ue,2),$e=Ne[1];return Se($e,Ce)}return Be.renderWithProps?!0:!(0,V.Z)(re,ue,!0)});return Re}function Ae(L,le,ee,oe){var me=L+le-1;return L<=oe&&me>=ee}function We(L,le){return e(u,function(ee){var oe=Ae(L,le||1,ee.hoverStartRow,ee.hoverEndRow);return[oe,ee.onHover]})}var vt=l(70425),ye=function(le){var ee=le.ellipsis,oe=le.rowType,me=le.children,Se,Be=ee===!0?{showTitle:!0}:ee;return Be&&(Be.showTitle||oe==="header")&&(typeof me=="string"||typeof me=="number"?Se=me.toString():h.isValidElement(me)&&typeof me.props.children=="string"&&(Se=me.props.children)),Se};function Ve(L){var le,ee,oe,me,Se,Be,ke,Re,re=L.component,ue=L.children,_e=L.ellipsis,Ce=L.scope,Ne=L.prefixCls,$e=L.className,ht=L.align,rt=L.record,Ot=L.render,jt=L.dataIndex,Dt=L.renderIndex,Xt=L.shouldCellUpdate,mt=L.index,pn=L.rowType,on=L.colSpan,_n=L.rowSpan,Yt=L.fixLeft,rn=L.fixRight,mn=L.firstFixLeft,ln=L.lastFixLeft,dn=L.firstFixRight,Bt=L.lastFixRight,gt=L.appendNode,It=L.additionalProps,Jt=It===void 0?{}:It,hn=L.isSticky,un="".concat(Ne,"-cell"),fn=e(u,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Un=fn.supportSticky,Xn=fn.allColumnsFixedLeft,$n=fn.rowHoverable,sr=ge(rt,jt,Dt,ue,Ot,Xt),ar=(0,A.Z)(sr,2),qn=ar[0],yn=ar[1],In={},Gn=typeof Yt=="number"&&Un,xn=typeof rn=="number"&&Un;Gn&&(In.position="sticky",In.left=Yt),xn&&(In.position="sticky",In.right=rn);var wn=(le=(ee=(oe=yn==null?void 0:yn.colSpan)!==null&&oe!==void 0?oe:Jt.colSpan)!==null&&ee!==void 0?ee:on)!==null&&le!==void 0?le:1,Sn=(me=(Se=(Be=yn==null?void 0:yn.rowSpan)!==null&&Be!==void 0?Be:Jt.rowSpan)!==null&&Se!==void 0?Se:_n)!==null&&me!==void 0?me:1,St=We(mt,Sn),qt=(0,A.Z)(St,2),en=qt[0],an=qt[1],Dn=(0,vt.zX)(function(or){var Hn;rt&&an(mt,mt+Sn-1),Jt==null||(Hn=Jt.onMouseEnter)===null||Hn===void 0||Hn.call(Jt,or)}),Kn=(0,vt.zX)(function(or){var Hn;rt&&an(-1,-1),Jt==null||(Hn=Jt.onMouseLeave)===null||Hn===void 0||Hn.call(Jt,or)});if(wn===0||Sn===0)return null;var Nt=(ke=Jt.title)!==null&&ke!==void 0?ke:ye({rowType:pn,ellipsis:_e,children:qn}),Wt=w()(un,$e,(Re={},(0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)(Re,"".concat(un,"-fix-left"),Gn&&Un),"".concat(un,"-fix-left-first"),mn&&Un),"".concat(un,"-fix-left-last"),ln&&Un),"".concat(un,"-fix-left-all"),ln&&Xn&&Un),"".concat(un,"-fix-right"),xn&&Un),"".concat(un,"-fix-right-first"),dn&&Un),"".concat(un,"-fix-right-last"),Bt&&Un),"".concat(un,"-ellipsis"),_e),"".concat(un,"-with-append"),gt),"".concat(un,"-fix-sticky"),(Gn||xn)&&hn&&Un),(0,W.Z)(Re,"".concat(un,"-row-hover"),!yn&&en)),Jt.className,yn==null?void 0:yn.className),Rn={};ht&&(Rn.textAlign=ht);var Ht=(0,G.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},yn==null?void 0:yn.style),In),Rn),Jt.style),Tn=qn;return(0,K.Z)(Tn)==="object"&&!Array.isArray(Tn)&&!h.isValidElement(Tn)&&(Tn=null),_e&&(ln||dn)&&(Tn=h.createElement("span",{className:"".concat(un,"-content")},Tn)),h.createElement(re,(0,s.Z)({},yn,Jt,{className:Wt,style:Ht,title:Nt,scope:Ce,onMouseEnter:$n?Dn:void 0,onMouseLeave:$n?Kn:void 0,colSpan:wn!==1?wn:null,rowSpan:Sn!==1?Sn:null}),gt,Tn)}var dt=h.memo(Ve);function Rt(L,le,ee,oe,me){var Se=ee[L]||{},Be=ee[le]||{},ke,Re;Se.fixed==="left"?ke=oe.left[me==="rtl"?le:L]:Be.fixed==="right"&&(Re=oe.right[me==="rtl"?L:le]);var re=!1,ue=!1,_e=!1,Ce=!1,Ne=ee[le+1],$e=ee[L-1],ht=Ne&&!Ne.fixed||$e&&!$e.fixed||ee.every(function(Xt){return Xt.fixed==="left"});if(me==="rtl"){if(ke!==void 0){var rt=$e&&$e.fixed==="left";Ce=!rt&&ht}else if(Re!==void 0){var Ot=Ne&&Ne.fixed==="right";_e=!Ot&&ht}}else if(ke!==void 0){var jt=Ne&&Ne.fixed==="left";re=!jt&&ht}else if(Re!==void 0){var Dt=$e&&$e.fixed==="right";ue=!Dt&&ht}return{fixLeft:ke,fixRight:Re,lastFixLeft:re,firstFixRight:ue,lastFixRight:_e,firstFixLeft:Ce,isSticky:oe.isSticky}}var ot=h.createContext({}),be=ot;function E(L){var le=L.className,ee=L.index,oe=L.children,me=L.colSpan,Se=me===void 0?1:me,Be=L.rowSpan,ke=L.align,Re=e(u,["prefixCls","direction"]),re=Re.prefixCls,ue=Re.direction,_e=h.useContext(be),Ce=_e.scrollColumnIndex,Ne=_e.stickyOffsets,$e=_e.flattenColumns,ht=ee+Se-1,rt=ht+1===Ce?Se+1:Se,Ot=Rt(ee,ee+rt-1,$e,Ne,ue);return h.createElement(dt,(0,s.Z)({className:le,index:ee,component:"td",prefixCls:re,record:null,dataIndex:null,align:ke,colSpan:rt,rowSpan:Be,render:function(){return oe}},Ot))}var B=l(62646),O=["children"];function q(L){var le=L.children,ee=(0,B.Z)(L,O);return h.createElement("tr",ee,le)}function ie(L){var le=L.children;return le}ie.Row=q,ie.Cell=E;var R=ie;function g(L){var le=L.children,ee=L.stickyOffsets,oe=L.flattenColumns,me=e(u,"prefixCls"),Se=oe.length-1,Be=oe[Se],ke=h.useMemo(function(){return{stickyOffsets:ee,flattenColumns:oe,scrollColumnIndex:Be!=null&&Be.scrollbar?Se:null}},[Be,oe,Se,ee]);return h.createElement(be.Provider,{value:ke},h.createElement("tfoot",{className:"".concat(me,"-summary")},le))}var P=p(g),z=R,D=l(29301),U=l(24514),Z=l(75152),te=l(26112);function J(L,le,ee,oe,me,Se,Be){L.push({record:le,indent:ee,index:Be});var ke=Se(le),Re=me==null?void 0:me.has(ke);if(le&&Array.isArray(le[oe])&&Re)for(var re=0;re<le[oe].length;re+=1)J(L,le[oe][re],ee+1,oe,me,Se,re)}function ce(L,le,ee,oe){var me=h.useMemo(function(){if(ee!=null&&ee.size){for(var Se=[],Be=0;Be<(L==null?void 0:L.length);Be+=1){var ke=L[Be];J(Se,ke,0,le,ee,oe,Be)}return Se}return L==null?void 0:L.map(function(Re,re){return{record:Re,indent:0,index:re}})},[L,le,ee,oe]);return me}function Ee(L,le,ee,oe){var me=e(u,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Se=me.flattenColumns,Be=me.expandableType,ke=me.expandedKeys,Re=me.childrenColumnName,re=me.onTriggerExpand,ue=me.rowExpandable,_e=me.onRow,Ce=me.expandRowByClick,Ne=me.rowClassName,$e=Be==="nest",ht=Be==="row"&&(!ue||ue(L)),rt=ht||$e,Ot=ke&&ke.has(le),jt=Re&&L&&L[Re],Dt=(0,vt.zX)(re),Xt=_e==null?void 0:_e(L,ee),mt=Xt==null?void 0:Xt.onClick,pn=function(rn){Ce&&rt&&re(L,rn);for(var mn=arguments.length,ln=new Array(mn>1?mn-1:0),dn=1;dn<mn;dn++)ln[dn-1]=arguments[dn];mt==null||mt.apply(void 0,[rn].concat(ln))},on;typeof Ne=="string"?on=Ne:typeof Ne=="function"&&(on=Ne(L,ee,oe));var _n=d(Se);return(0,G.Z)((0,G.Z)({},me),{},{columnsKey:_n,nestExpandable:$e,expanded:Ot,hasNestChildren:jt,record:L,onTriggerExpand:Dt,rowSupportExpand:ht,expandable:rt,rowProps:(0,G.Z)((0,G.Z)({},Xt),{},{className:w()(on,Xt==null?void 0:Xt.className),onClick:pn})})}function xe(L){var le=L.prefixCls,ee=L.children,oe=L.component,me=L.cellComponent,Se=L.className,Be=L.expanded,ke=L.colSpan,Re=L.isEmpty,re=e(u,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),ue=re.scrollbarSize,_e=re.fixHeader,Ce=re.fixColumn,Ne=re.componentWidth,$e=re.horizonScroll,ht=ee;return(Re?$e&&Ne:Ce)&&(ht=h.createElement("div",{style:{width:Ne-(_e&&!Re?ue:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(le,"-expanded-row-fixed")},ht)),h.createElement(oe,{className:Se,style:{display:Be?null:"none"}},h.createElement(dt,{component:me,prefixCls:le,colSpan:ke},ht))}var Fe=xe;function Ie(L){var le=L.prefixCls,ee=L.record,oe=L.onExpand,me=L.expanded,Se=L.expandable,Be="".concat(le,"-row-expand-icon");if(!Se)return h.createElement("span",{className:w()(Be,"".concat(le,"-row-spaced"))});var ke=function(re){oe(ee,re),re.stopPropagation()};return h.createElement("span",{className:w()(Be,(0,W.Z)((0,W.Z)({},"".concat(le,"-row-expanded"),me),"".concat(le,"-row-collapsed"),!me)),onClick:ke})}function de(L,le,ee){var oe=[];function me(Se){(Se||[]).forEach(function(Be,ke){oe.push(le(Be,ke)),me(Be[ee])})}return me(L),oe}function Le(L,le,ee,oe){return typeof L=="string"?L:typeof L=="function"?L(le,ee,oe):""}function Oe(L,le,ee,oe,me){var Se=L.record,Be=L.prefixCls,ke=L.columnsKey,Re=L.fixedInfoList,re=L.expandIconColumnIndex,ue=L.nestExpandable,_e=L.indentSize,Ce=L.expandIcon,Ne=L.expanded,$e=L.hasNestChildren,ht=L.onTriggerExpand,rt=ke[ee],Ot=Re[ee],jt;ee===(re||0)&&ue&&(jt=h.createElement(h.Fragment,null,h.createElement("span",{style:{paddingLeft:"".concat(_e*oe,"px")},className:"".concat(Be,"-row-indent indent-level-").concat(oe)}),Ce({prefixCls:Be,expanded:Ne,expandable:$e,record:Se,onExpand:ht})));var Dt;return le.onCell&&(Dt=le.onCell(Se,me)),{key:rt,fixedInfo:Ot,appendCellNode:jt,additionalCellProps:Dt||{}}}function De(L){var le=L.className,ee=L.style,oe=L.record,me=L.index,Se=L.renderIndex,Be=L.rowKey,ke=L.indent,Re=ke===void 0?0:ke,re=L.rowComponent,ue=L.cellComponent,_e=L.scopeCellComponent,Ce=Ee(oe,Be,me,Re),Ne=Ce.prefixCls,$e=Ce.flattenColumns,ht=Ce.expandedRowClassName,rt=Ce.expandedRowRender,Ot=Ce.rowProps,jt=Ce.expanded,Dt=Ce.rowSupportExpand,Xt=h.useRef(!1);Xt.current||(Xt.current=jt);var mt=Le(ht,oe,me,Re),pn=h.createElement(re,(0,s.Z)({},Ot,{"data-row-key":Be,className:w()(le,"".concat(Ne,"-row"),"".concat(Ne,"-row-level-").concat(Re),Ot==null?void 0:Ot.className,(0,W.Z)({},mt,Re>=1)),style:(0,G.Z)((0,G.Z)({},ee),Ot==null?void 0:Ot.style)}),$e.map(function(Yt,rn){var mn=Yt.render,ln=Yt.dataIndex,dn=Yt.className,Bt=Oe(Ce,Yt,rn,Re,me),gt=Bt.key,It=Bt.fixedInfo,Jt=Bt.appendCellNode,hn=Bt.additionalCellProps;return h.createElement(dt,(0,s.Z)({className:dn,ellipsis:Yt.ellipsis,align:Yt.align,scope:Yt.rowScope,component:Yt.rowScope?_e:ue,prefixCls:Ne,key:gt,record:oe,index:me,renderIndex:Se,dataIndex:ln,render:mn,shouldCellUpdate:Yt.shouldCellUpdate},It,{appendNode:Jt,additionalProps:hn}))})),on;if(Dt&&(Xt.current||jt)){var _n=rt(oe,me,Re+1,jt);on=h.createElement(Fe,{expanded:jt,className:w()("".concat(Ne,"-expanded-row"),"".concat(Ne,"-expanded-row-level-").concat(Re+1),mt),prefixCls:Ne,component:re,cellComponent:ue,colSpan:$e.length,isEmpty:!1},_n)}return h.createElement(h.Fragment,null,pn,on)}var at=p(De);function Et(L){var le=L.columnKey,ee=L.onColumnResize,oe=h.useRef();return(0,X.Z)(function(){oe.current&&ee(le,oe.current.offsetWidth)},[]),h.createElement(D.Z,{data:le},h.createElement("td",{ref:oe,style:{padding:0,border:0,height:0}},h.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var et=l(29194);function Tt(L){var le=L.prefixCls,ee=L.columnsKey,oe=L.onColumnResize,me=h.useRef(null);return h.createElement("tr",{"aria-hidden":"true",className:"".concat(le,"-measure-row"),style:{height:0,fontSize:0},ref:me},h.createElement(D.Z.Collection,{onBatchResize:function(Be){(0,et.Z)(me.current)&&Be.forEach(function(ke){var Re=ke.data,re=ke.size;oe(Re,re.offsetWidth)})}},ee.map(function(Se){return h.createElement(Et,{key:Se,columnKey:Se,onColumnResize:oe})})))}function tn(L){var le=L.data,ee=L.measureColumnWidth,oe=e(u,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),me=oe.prefixCls,Se=oe.getComponent,Be=oe.onColumnResize,ke=oe.flattenColumns,Re=oe.getRowKey,re=oe.expandedKeys,ue=oe.childrenColumnName,_e=oe.emptyNode,Ce=ce(le,ue,re,Re),Ne=h.useRef({renderWithProps:!1}),$e=Se(["body","wrapper"],"tbody"),ht=Se(["body","row"],"tr"),rt=Se(["body","cell"],"td"),Ot=Se(["body","cell"],"th"),jt;le.length?jt=Ce.map(function(Xt,mt){var pn=Xt.record,on=Xt.indent,_n=Xt.index,Yt=Re(pn,mt);return h.createElement(at,{key:Yt,rowKey:Yt,record:pn,index:mt,renderIndex:_n,rowComponent:ht,cellComponent:rt,scopeCellComponent:Ot,indent:on})}):jt=h.createElement(Fe,{expanded:!0,className:"".concat(me,"-placeholder"),prefixCls:me,component:ht,cellComponent:rt,colSpan:ke.length,isEmpty:!0},_e);var Dt=d(ke);return h.createElement(y.Provider,{value:Ne.current},h.createElement($e,{className:"".concat(me,"-tbody")},ee&&h.createElement(Tt,{prefixCls:me,columnsKey:Dt,onColumnResize:Be}),jt))}var pt=p(tn),st=l(54451),bt=["columnType"];function Qt(L){for(var le=L.colWidths,ee=L.columns,oe=L.columCount,me=e(u,["tableLayout"]),Se=me.tableLayout,Be=[],ke=oe||ee.length,Re=!1,re=ke-1;re>=0;re-=1){var ue=le[re],_e=ee&&ee[re],Ce=void 0,Ne=void 0;if(_e&&(Ce=_e[st.v],Se==="auto"&&(Ne=_e.minWidth)),ue||Ne||Ce||Re){var $e=Ce||{},ht=$e.columnType,rt=(0,B.Z)($e,bt);Be.unshift(h.createElement("col",(0,s.Z)({key:re,style:{width:ue,minWidth:Ne}},rt))),Re=!0}}return h.createElement("colgroup",null,Be)}var kt=Qt,Lt=l(95190),Mt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sn(L,le){return(0,h.useMemo)(function(){for(var ee=[],oe=0;oe<le;oe+=1){var me=L[oe];if(me!==void 0)ee[oe]=me;else return null}return ee},[L.join("_"),le])}var qe=h.forwardRef(function(L,le){var ee=L.className,oe=L.noData,me=L.columns,Se=L.flattenColumns,Be=L.colWidths,ke=L.columCount,Re=L.stickyOffsets,re=L.direction,ue=L.fixHeader,_e=L.stickyTopOffset,Ce=L.stickyBottomOffset,Ne=L.stickyClassName,$e=L.onScroll,ht=L.maxContentScroll,rt=L.children,Ot=(0,B.Z)(L,Mt),jt=e(u,["prefixCls","scrollbarSize","isSticky","getComponent"]),Dt=jt.prefixCls,Xt=jt.scrollbarSize,mt=jt.isSticky,pn=jt.getComponent,on=pn(["header","table"],"table"),_n=mt&&!ue?0:Xt,Yt=h.useRef(null),rn=h.useCallback(function(hn){(0,c.mH)(le,hn),(0,c.mH)(Yt,hn)},[]);h.useEffect(function(){var hn;function un(fn){var Un=fn,Xn=Un.currentTarget,$n=Un.deltaX;$n&&($e({currentTarget:Xn,scrollLeft:Xn.scrollLeft+$n}),fn.preventDefault())}return(hn=Yt.current)===null||hn===void 0||hn.addEventListener("wheel",un,{passive:!1}),function(){var fn;(fn=Yt.current)===null||fn===void 0||fn.removeEventListener("wheel",un)}},[]);var mn=h.useMemo(function(){return Se.every(function(hn){return hn.width})},[Se]),ln=Se[Se.length-1],dn={fixed:ln?ln.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Dt,"-cell-scrollbar")}}},Bt=(0,h.useMemo)(function(){return _n?[].concat((0,Lt.Z)(me),[dn]):me},[_n,me]),gt=(0,h.useMemo)(function(){return _n?[].concat((0,Lt.Z)(Se),[dn]):Se},[_n,Se]),It=(0,h.useMemo)(function(){var hn=Re.right,un=Re.left;return(0,G.Z)((0,G.Z)({},Re),{},{left:re==="rtl"?[].concat((0,Lt.Z)(un.map(function(fn){return fn+_n})),[0]):un,right:re==="rtl"?hn:[].concat((0,Lt.Z)(hn.map(function(fn){return fn+_n})),[0]),isSticky:mt})},[_n,Re,mt]),Jt=sn(Be,ke);return h.createElement("div",{style:(0,G.Z)({overflow:"hidden"},mt?{top:_e,bottom:Ce}:{}),ref:rn,className:w()(ee,(0,W.Z)({},Ne,!!Ne))},h.createElement(on,{style:{tableLayout:"fixed",visibility:oe||Jt?null:"hidden"}},(!oe||!ht||mn)&&h.createElement(kt,{colWidths:Jt?[].concat((0,Lt.Z)(Jt),[_n]):[],columCount:ke+1,columns:gt}),rt((0,G.Z)((0,G.Z)({},Ot),{},{stickyOffsets:It,columns:Bt,flattenColumns:gt}))))}),ut=h.memo(qe),yt=function(le){var ee=le.cells,oe=le.stickyOffsets,me=le.flattenColumns,Se=le.rowComponent,Be=le.cellComponent,ke=le.onHeaderRow,Re=le.index,re=e(u,["prefixCls","direction"]),ue=re.prefixCls,_e=re.direction,Ce;ke&&(Ce=ke(ee.map(function($e){return $e.column}),Re));var Ne=d(ee.map(function($e){return $e.column}));return h.createElement(Se,Ce,ee.map(function($e,ht){var rt=$e.column,Ot=Rt($e.colStart,$e.colEnd,me,oe,_e),jt;return rt&&rt.onHeaderCell&&(jt=$e.column.onHeaderCell(rt)),h.createElement(dt,(0,s.Z)({},$e,{scope:rt.title?$e.colSpan>1?"colgroup":"col":null,ellipsis:rt.ellipsis,align:rt.align,component:Be,prefixCls:ue,key:Ne[ht]},Ot,{additionalProps:jt,rowType:"header"}))}))},kn=yt;function vn(L){var le=[];function ee(Be,ke){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;le[Re]=le[Re]||[];var re=ke,ue=Be.filter(Boolean).map(function(_e){var Ce={key:_e.key,className:_e.className||"",children:_e.title,column:_e,colStart:re},Ne=1,$e=_e.children;return $e&&$e.length>0&&(Ne=ee($e,re,Re+1).reduce(function(ht,rt){return ht+rt},0),Ce.hasSubColumns=!0),"colSpan"in _e&&(Ne=_e.colSpan),"rowSpan"in _e&&(Ce.rowSpan=_e.rowSpan),Ce.colSpan=Ne,Ce.colEnd=Ce.colStart+Ne-1,le[Re].push(Ce),re+=Ne,Ne});return ue}ee(L,0);for(var oe=le.length,me=function(ke){le[ke].forEach(function(Re){!("rowSpan"in Re)&&!Re.hasSubColumns&&(Re.rowSpan=oe-ke)})},Se=0;Se<oe;Se+=1)me(Se);return le}var Fn=function(le){var ee=le.stickyOffsets,oe=le.columns,me=le.flattenColumns,Se=le.onHeaderRow,Be=e(u,["prefixCls","getComponent"]),ke=Be.prefixCls,Re=Be.getComponent,re=h.useMemo(function(){return vn(oe)},[oe]),ue=Re(["header","wrapper"],"thead"),_e=Re(["header","row"],"tr"),Ce=Re(["header","cell"],"th");return h.createElement(ue,{className:"".concat(ke,"-thead")},re.map(function(Ne,$e){var ht=h.createElement(kn,{key:$e,flattenColumns:me,cells:Ne,stickyOffsets:ee,rowComponent:_e,cellComponent:Ce,onHeaderRow:Se,index:$e});return ht}))},zn=p(Fn),bn=l(97347);function zt(L,le,ee){var oe=(0,st.g)(L),me=oe.expandIcon,Se=oe.expandedRowKeys,Be=oe.defaultExpandedRowKeys,ke=oe.defaultExpandAllRows,Re=oe.expandedRowRender,re=oe.onExpand,ue=oe.onExpandedRowsChange,_e=oe.childrenColumnName,Ce=me||Ie,Ne=_e||"children",$e=h.useMemo(function(){return Re?"row":L.expandable&&L.internalHooks===T.R&&L.expandable.__PARENT_RENDER_ICON__||le.some(function(mt){return mt&&(0,K.Z)(mt)==="object"&&mt[Ne]})?"nest":!1},[!!Re,le]),ht=h.useState(function(){return Be||(ke?de(le,ee,Ne):[])}),rt=(0,A.Z)(ht,2),Ot=rt[0],jt=rt[1],Dt=h.useMemo(function(){return new Set(Se||Ot||[])},[Se,Ot]),Xt=h.useCallback(function(mt){var pn=ee(mt,le.indexOf(mt)),on,_n=Dt.has(pn);_n?(Dt.delete(pn),on=(0,Lt.Z)(Dt)):on=[].concat((0,Lt.Z)(Dt),[pn]),jt(on),re&&re(!_n,mt),ue&&ue(on)},[ee,Dt,le,re,ue]);return[oe,$e,Dt,Ce,Ne,Xt]}function Nn(L,le,ee){var oe=L.map(function(me,Se){return Rt(Se,Se,L,le,ee)});return(0,_.Z)(function(){return oe},[oe],function(me,Se){return!(0,V.Z)(me,Se)})}function En(L){var le=(0,h.useRef)(L),ee=(0,h.useState)({}),oe=(0,A.Z)(ee,2),me=oe[1],Se=(0,h.useRef)(null),Be=(0,h.useRef)([]);function ke(Re){Be.current.push(Re);var re=Promise.resolve();Se.current=re,re.then(function(){if(Se.current===re){var ue=Be.current,_e=le.current;Be.current=[],ue.forEach(function(Ce){le.current=Ce(le.current)}),Se.current=null,_e!==le.current&&me({})}})}return(0,h.useEffect)(function(){return function(){Se.current=null}},[]),[le.current,ke]}function On(L){var le=(0,h.useRef)(L||null),ee=(0,h.useRef)();function oe(){window.clearTimeout(ee.current)}function me(Be){le.current=Be,oe(),ee.current=window.setTimeout(function(){le.current=null,ee.current=void 0},100)}function Se(){return le.current}return(0,h.useEffect)(function(){return oe},[]),[me,Se]}function gn(){var L=h.useState(-1),le=(0,A.Z)(L,2),ee=le[0],oe=le[1],me=h.useState(-1),Se=(0,A.Z)(me,2),Be=Se[0],ke=Se[1],Re=h.useCallback(function(re,ue){oe(re),ke(ue)},[]);return[ee,Be,Re]}var Cn=l(47273),Zn=(0,Cn.Z)()?window:null;function cn(L,le){var ee=(0,K.Z)(L)==="object"?L:{},oe=ee.offsetHeader,me=oe===void 0?0:oe,Se=ee.offsetSummary,Be=Se===void 0?0:Se,ke=ee.offsetScroll,Re=ke===void 0?0:ke,re=ee.getContainer,ue=re===void 0?function(){return Zn}:re,_e=ue()||Zn,Ce=!!L;return h.useMemo(function(){return{isSticky:Ce,stickyClassName:Ce?"".concat(le,"-sticky-holder"):"",offsetHeader:me,offsetSummary:Be,offsetScroll:Re,container:_e}},[Ce,Re,me,Be,le,_e])}function nn(L,le,ee){var oe=(0,h.useMemo)(function(){var me=le.length,Se=function(re,ue,_e){for(var Ce=[],Ne=0,$e=re;$e!==ue;$e+=_e)Ce.push(Ne),le[$e].fixed&&(Ne+=L[$e]||0);return Ce},Be=Se(0,me,1),ke=Se(me-1,-1,-1).reverse();return ee==="rtl"?{left:ke,right:Be}:{left:Be,right:ke}},[L,le,ee]);return oe}var Ln=nn;function Wn(L){var le=L.className,ee=L.children;return h.createElement("div",{className:le},ee)}var ne=Wn,Q=l(8224),Ue=l(16089),Ze=l(76846);function Xe(L){var le=(0,Ze.bn)(L),ee=le.getBoundingClientRect(),oe=document.documentElement;return{left:ee.left+(window.pageXOffset||oe.scrollLeft)-(oe.clientLeft||document.body.clientLeft||0),top:ee.top+(window.pageYOffset||oe.scrollTop)-(oe.clientTop||document.body.clientTop||0)}}var Je=function(le,ee){var oe,me,Se=le.scrollBodyRef,Be=le.onScroll,ke=le.offsetScroll,Re=le.container,re=le.direction,ue=e(u,"prefixCls"),_e=((oe=Se.current)===null||oe===void 0?void 0:oe.scrollWidth)||0,Ce=((me=Se.current)===null||me===void 0?void 0:me.clientWidth)||0,Ne=_e&&Ce*(Ce/_e),$e=h.useRef(),ht=En({scrollLeft:0,isHiddenScrollBar:!0}),rt=(0,A.Z)(ht,2),Ot=rt[0],jt=rt[1],Dt=h.useRef({delta:0,x:0}),Xt=h.useState(!1),mt=(0,A.Z)(Xt,2),pn=mt[0],on=mt[1],_n=h.useRef(null);h.useEffect(function(){return function(){Ue.Z.cancel(_n.current)}},[]);var Yt=function(){on(!1)},rn=function(gt){gt.persist(),Dt.current.delta=gt.pageX-Ot.scrollLeft,Dt.current.x=0,on(!0),gt.preventDefault()},mn=function(gt){var It,Jt=gt||((It=window)===null||It===void 0?void 0:It.event),hn=Jt.buttons;if(!pn||hn===0){pn&&on(!1);return}var un=Dt.current.x+gt.pageX-Dt.current.x-Dt.current.delta,fn=re==="rtl";un=Math.max(fn?Ne-Ce:0,Math.min(fn?0:Ce-Ne,un));var Un=!fn||Math.abs(un)+Math.abs(Ne)<Ce;Un&&(Be({scrollLeft:un/Ce*(_e+2)}),Dt.current.x=gt.pageX)},ln=function(){Ue.Z.cancel(_n.current),_n.current=(0,Ue.Z)(function(){if(Se.current){var gt=Xe(Se.current).top,It=gt+Se.current.offsetHeight,Jt=Re===window?document.documentElement.scrollTop+window.innerHeight:Xe(Re).top+Re.clientHeight;It-(0,Z.Z)()<=Jt||gt>=Jt-ke?jt(function(hn){return(0,G.Z)((0,G.Z)({},hn),{},{isHiddenScrollBar:!0})}):jt(function(hn){return(0,G.Z)((0,G.Z)({},hn),{},{isHiddenScrollBar:!1})})}})},dn=function(gt){jt(function(It){return(0,G.Z)((0,G.Z)({},It),{},{scrollLeft:gt/_e*Ce||0})})};return h.useImperativeHandle(ee,function(){return{setScrollLeft:dn,checkScrollBarVisible:ln}}),h.useEffect(function(){var Bt=(0,Q.Z)(document.body,"mouseup",Yt,!1),gt=(0,Q.Z)(document.body,"mousemove",mn,!1);return ln(),function(){Bt.remove(),gt.remove()}},[Ne,pn]),h.useEffect(function(){if(Se.current){for(var Bt=[],gt=(0,Ze.bn)(Se.current);gt;)Bt.push(gt),gt=gt.parentElement;return Bt.forEach(function(It){return It.addEventListener("scroll",ln,!1)}),window.addEventListener("resize",ln,!1),window.addEventListener("scroll",ln,!1),Re.addEventListener("scroll",ln,!1),function(){Bt.forEach(function(It){return It.removeEventListener("scroll",ln)}),window.removeEventListener("resize",ln),window.removeEventListener("scroll",ln),Re.removeEventListener("scroll",ln)}}},[Re]),h.useEffect(function(){Ot.isHiddenScrollBar||jt(function(Bt){var gt=Se.current;return gt?(0,G.Z)((0,G.Z)({},Bt),{},{scrollLeft:gt.scrollLeft/gt.scrollWidth*gt.clientWidth}):Bt})},[Ot.isHiddenScrollBar]),_e<=Ce||!Ne||Ot.isHiddenScrollBar?null:h.createElement("div",{style:{height:(0,Z.Z)(),width:Ce,bottom:ke},className:"".concat(ue,"-sticky-scroll")},h.createElement("div",{onMouseDown:rn,ref:$e,className:w()("".concat(ue,"-sticky-scroll-bar"),(0,W.Z)({},"".concat(ue,"-sticky-scroll-bar-active"),pn)),style:{width:"".concat(Ne,"px"),transform:"translate3d(".concat(Ot.scrollLeft,"px, 0, 0)")}}))},we=h.forwardRef(Je);function pe(L){return null}var ze=pe;function Ye(L){return null}var it=Ye,wt="rc-table",nt=[],He={};function Y(){return"No Data"}function se(L,le){var ee=(0,G.Z)({rowKey:"key",prefixCls:wt,emptyText:Y},L),oe=ee.prefixCls,me=ee.className,Se=ee.rowClassName,Be=ee.style,ke=ee.data,Re=ee.rowKey,re=ee.scroll,ue=ee.tableLayout,_e=ee.direction,Ce=ee.title,Ne=ee.footer,$e=ee.summary,ht=ee.caption,rt=ee.id,Ot=ee.showHeader,jt=ee.components,Dt=ee.emptyText,Xt=ee.onRow,mt=ee.onHeaderRow,pn=ee.onScroll,on=ee.internalHooks,_n=ee.transformColumns,Yt=ee.internalRefs,rn=ee.tailor,mn=ee.getContainerWidth,ln=ee.sticky,dn=ee.rowHoverable,Bt=dn===void 0?!0:dn,gt=ke||nt,It=!!gt.length,Jt=on===T.R,hn=h.useCallback(function(Bn,jn){return(0,x.Z)(jt,Bn)||jn},[jt]),un=h.useMemo(function(){return typeof Re=="function"?Re:function(Bn){var jn=Bn&&Bn[Re];return jn}},[Re]),fn=hn(["body"]),Un=gn(),Xn=(0,A.Z)(Un,3),$n=Xn[0],sr=Xn[1],ar=Xn[2],qn=zt(ee,gt,un),yn=(0,A.Z)(qn,6),In=yn[0],Gn=yn[1],xn=yn[2],wn=yn[3],Sn=yn[4],St=yn[5],qt=re==null?void 0:re.x,en=h.useState(0),an=(0,A.Z)(en,2),Dn=an[0],Kn=an[1],Nt=(0,bn.Z)((0,G.Z)((0,G.Z)((0,G.Z)({},ee),In),{},{expandable:!!In.expandedRowRender,columnTitle:In.columnTitle,expandedKeys:xn,getRowKey:un,onTriggerExpand:St,expandIcon:wn,expandIconColumnIndex:In.expandIconColumnIndex,direction:_e,scrollWidth:Jt&&rn&&typeof qt=="number"?qt:null,clientWidth:Dn}),Jt?_n:null),Wt=(0,A.Z)(Nt,4),Rn=Wt[0],Ht=Wt[1],Tn=Wt[2],or=Wt[3],Hn=Tn!=null?Tn:qt,fr=h.useMemo(function(){return{columns:Rn,flattenColumns:Ht}},[Rn,Ht]),ur=h.useRef(),vr=h.useRef(),Jn=h.useRef(),Fr=h.useRef();h.useImperativeHandle(le,function(){return{nativeElement:ur.current,scrollTo:function(jn){var hr;if(Jn.current instanceof HTMLElement){var wr=jn.index,pr=jn.top,Hr=jn.key;if(ae(pr)){var Lr;(Lr=Jn.current)===null||Lr===void 0||Lr.scrollTo({top:pr})}else{var Kr,Qr=Hr!=null?Hr:un(gt[wr]);(Kr=Jn.current.querySelector('[data-row-key="'.concat(Qr,'"]')))===null||Kr===void 0||Kr.scrollIntoView()}}else(hr=Jn.current)!==null&&hr!==void 0&&hr.scrollTo&&Jn.current.scrollTo(jn)}}});var Br=h.useRef(),Sr=h.useState(!1),kr=(0,A.Z)(Sr,2),Nr=kr[0],Or=kr[1],Ar=h.useState(!1),br=(0,A.Z)(Ar,2),Ir=br[0],Pr=br[1],zr=h.useState(new Map),Dr=(0,A.Z)(zr,2),$r=Dr[0],Mr=Dr[1],Gr=d(Ht),jr=Gr.map(function(Bn){return $r.get(Bn)}),Wr=h.useMemo(function(){return jr},[jr.join("_")]),Tr=Ln(Wr,Ht,_e),dr=re&&M(re.y),lr=re&&M(Hn)||!!In.fixed,Mn=lr&&Ht.some(function(Bn){var jn=Bn.fixed;return jn}),Pn=h.useRef(),nr=cn(ln,oe),Qn=nr.isSticky,er=nr.offsetHeader,rr=nr.offsetSummary,yr=nr.offsetScroll,gr=nr.stickyClassName,xr=nr.container,ir=h.useMemo(function(){return $e==null?void 0:$e(gt)},[$e,gt]),mr=(dr||Qn)&&h.isValidElement(ir)&&ir.type===R&&ir.props.fixed,Rr,Er,Yr;dr&&(Er={overflowY:It?"scroll":"auto",maxHeight:re.y}),lr&&(Rr={overflowX:"auto"},dr||(Er={overflowY:"hidden"}),Yr={width:Hn===!0?"auto":Hn,minWidth:"100%"});var qr=h.useCallback(function(Bn,jn){Mr(function(hr){if(hr.get(Bn)!==jn){var wr=new Map(hr);return wr.set(Bn,jn),wr}return hr})},[]),tr=On(null),Vn=(0,A.Z)(tr,2),Yn=Vn[0],_r=Vn[1];function cr(Bn,jn){jn&&(typeof jn=="function"?jn(Bn):jn.scrollLeft!==Bn&&(jn.scrollLeft=Bn,jn.scrollLeft!==Bn&&setTimeout(function(){jn.scrollLeft=Bn},0)))}var Cr=(0,j.Z)(function(Bn){var jn=Bn.currentTarget,hr=Bn.scrollLeft,wr=_e==="rtl",pr=typeof hr=="number"?hr:jn.scrollLeft,Hr=jn||He;if(!_r()||_r()===Hr){var Lr;Yn(Hr),cr(pr,vr.current),cr(pr,Jn.current),cr(pr,Br.current),cr(pr,(Lr=Pn.current)===null||Lr===void 0?void 0:Lr.setScrollLeft)}var Kr=jn||vr.current;if(Kr){var Qr=Jt&&rn&&typeof Hn=="number"?Hn:Kr.scrollWidth,oa=Kr.clientWidth;if(Qr===oa){Or(!1),Pr(!1);return}wr?(Or(-pr<Qr-oa),Pr(-pr>0)):(Or(pr>0),Pr(pr<Qr-oa))}}),Xr=(0,j.Z)(function(Bn){Cr(Bn),pn==null||pn(Bn)}),ea=function(){if(lr&&Jn.current){var jn;Cr({currentTarget:(0,Ze.bn)(Jn.current),scrollLeft:(jn=Jn.current)===null||jn===void 0?void 0:jn.scrollLeft})}else Or(!1),Pr(!1)},ta=function(jn){var hr,wr=jn.width;(hr=Pn.current)===null||hr===void 0||hr.checkScrollBarVisible();var pr=ur.current?ur.current.offsetWidth:wr;Jt&&mn&&ur.current&&(pr=mn(ur.current,pr)||pr),pr!==Dn&&(ea(),Kn(pr))},Jr=h.useRef(!1);h.useEffect(function(){Jr.current&&ea()},[lr,ke,Rn.length]),h.useEffect(function(){Jr.current=!0},[]);var Zr=h.useState(0),Ur=(0,A.Z)(Zr,2),Vr=Ur[0],la=Ur[1],wa=h.useState(!0),ua=(0,A.Z)(wa,2),ca=ua[0],xa=ua[1];(0,X.Z)(function(){(!rn||!Jt)&&(Jn.current instanceof Element?la((0,Z.o)(Jn.current).width):la((0,Z.o)(Fr.current).width)),xa((0,U.G)("position","sticky"))},[]),h.useEffect(function(){Jt&&Yt&&(Yt.body.current=Jn.current)});var Ea=h.useCallback(function(Bn){return h.createElement(h.Fragment,null,h.createElement(zn,Bn),mr==="top"&&h.createElement(P,Bn,ir))},[mr,ir]),Ca=h.useCallback(function(Bn){return h.createElement(P,Bn,ir)},[ir]),fa=hn(["table"],"table"),na=h.useMemo(function(){return ue||(Mn?Hn==="max-content"?"auto":"fixed":dr||Qn||Ht.some(function(Bn){var jn=Bn.ellipsis;return jn})?"fixed":"auto")},[dr,Mn,Ht,ue,Qn]),ra,aa={colWidths:Wr,columCount:Ht.length,stickyOffsets:Tr,onHeaderRow:mt,fixHeader:dr,scroll:re},da=h.useMemo(function(){return It?null:typeof Dt=="function"?Dt():Dt},[It,Dt]),ha=h.createElement(pt,{data:gt,measureColumnWidth:dr||lr||Qn}),pa=h.createElement(kt,{colWidths:Ht.map(function(Bn){var jn=Bn.width;return jn}),columns:Ht}),_a=ht!=null?h.createElement("caption",{className:"".concat(oe,"-caption")},ht):void 0,Sa=(0,te.Z)(ee,{data:!0}),va=(0,te.Z)(ee,{aria:!0});if(dr||Qn){var ia;typeof fn=="function"?(ia=fn(gt,{scrollbarSize:Vr,ref:Jn,onScroll:Cr}),aa.colWidths=Ht.map(function(Bn,jn){var hr=Bn.width,wr=jn===Ht.length-1?hr-Vr:hr;return typeof wr=="number"&&!Number.isNaN(wr)?wr:0})):ia=h.createElement("div",{style:(0,G.Z)((0,G.Z)({},Rr),Er),onScroll:Xr,ref:Jn,className:w()("".concat(oe,"-body"))},h.createElement(fa,(0,s.Z)({style:(0,G.Z)((0,G.Z)({},Yr),{},{tableLayout:na})},va),_a,pa,ha,!mr&&ir&&h.createElement(P,{stickyOffsets:Tr,flattenColumns:Ht},ir)));var ma=(0,G.Z)((0,G.Z)((0,G.Z)({noData:!gt.length,maxContentScroll:lr&&Hn==="max-content"},aa),fr),{},{direction:_e,stickyClassName:gr,onScroll:Cr});ra=h.createElement(h.Fragment,null,Ot!==!1&&h.createElement(ut,(0,s.Z)({},ma,{stickyTopOffset:er,className:"".concat(oe,"-header"),ref:vr}),Ea),ia,mr&&mr!=="top"&&h.createElement(ut,(0,s.Z)({},ma,{stickyBottomOffset:rr,className:"".concat(oe,"-summary"),ref:Br}),Ca),Qn&&Jn.current&&Jn.current instanceof Element&&h.createElement(we,{ref:Pn,offsetScroll:yr,scrollBodyRef:Jn,onScroll:Cr,container:xr,direction:_e}))}else ra=h.createElement("div",{style:(0,G.Z)((0,G.Z)({},Rr),Er),className:w()("".concat(oe,"-content")),onScroll:Cr,ref:Jn},h.createElement(fa,(0,s.Z)({style:(0,G.Z)((0,G.Z)({},Yr),{},{tableLayout:na})},va),_a,pa,Ot!==!1&&h.createElement(zn,(0,s.Z)({},aa,fr)),ha,ir&&h.createElement(P,{stickyOffsets:Tr,flattenColumns:Ht},ir)));var sa=h.createElement("div",(0,s.Z)({className:w()(oe,me,(0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)((0,W.Z)({},"".concat(oe,"-rtl"),_e==="rtl"),"".concat(oe,"-ping-left"),Nr),"".concat(oe,"-ping-right"),Ir),"".concat(oe,"-layout-fixed"),ue==="fixed"),"".concat(oe,"-fixed-header"),dr),"".concat(oe,"-fixed-column"),Mn),"".concat(oe,"-fixed-column-gapped"),Mn&&or),"".concat(oe,"-scroll-horizontal"),lr),"".concat(oe,"-has-fix-left"),Ht[0]&&Ht[0].fixed),"".concat(oe,"-has-fix-right"),Ht[Ht.length-1]&&Ht[Ht.length-1].fixed==="right")),style:Be,id:rt,ref:ur},Sa),Ce&&h.createElement(ne,{className:"".concat(oe,"-title")},Ce(gt)),h.createElement("div",{ref:Fr,className:"".concat(oe,"-container")},ra),Ne&&h.createElement(ne,{className:"".concat(oe,"-footer")},Ne(gt)));lr&&(sa=h.createElement(D.Z,{onResize:ta},sa));var ga=Nn(Ht,Tr,_e),Ra=h.useMemo(function(){return{scrollX:Hn,prefixCls:oe,getComponent:hn,scrollbarSize:Vr,direction:_e,fixedInfoList:ga,isSticky:Qn,supportSticky:ca,componentWidth:Dn,fixHeader:dr,fixColumn:Mn,horizonScroll:lr,tableLayout:na,rowClassName:Se,expandedRowClassName:In.expandedRowClassName,expandIcon:wn,expandableType:Gn,expandRowByClick:In.expandRowByClick,expandedRowRender:In.expandedRowRender,onTriggerExpand:St,expandIconColumnIndex:In.expandIconColumnIndex,indentSize:In.indentSize,allColumnsFixedLeft:Ht.every(function(Bn){return Bn.fixed==="left"}),emptyNode:da,columns:Rn,flattenColumns:Ht,onColumnResize:qr,hoverStartRow:$n,hoverEndRow:sr,onHover:ar,rowExpandable:In.rowExpandable,onRow:Xt,getRowKey:un,expandedKeys:xn,childrenColumnName:Sn,rowHoverable:Bt}},[Hn,oe,hn,Vr,_e,ga,Qn,ca,Dn,dr,Mn,lr,na,Se,In.expandedRowClassName,wn,Gn,In.expandRowByClick,In.expandedRowRender,St,In.expandIconColumnIndex,In.indentSize,da,Rn,Ht,qr,$n,sr,ar,In.rowExpandable,Xt,un,xn,Sn,Bt]);return h.createElement(u.Provider,{value:Ra},sa)}var fe=h.forwardRef(se);function ve(L){return S(fe,L)}var Me=ve();Me.EXPAND_COLUMN=T.w,Me.INTERNAL_HOOKS=T.R,Me.Column=ze,Me.ColumnGroup=it,Me.Summary=z;var je=Me,Te=l(65283),Ge=$(null),Qe=$(null);function lt(L,le,ee){var oe=le||1;return ee[L+oe]-(ee[L]||0)}function Kt(L){var le=L.rowInfo,ee=L.column,oe=L.colIndex,me=L.indent,Se=L.index,Be=L.component,ke=L.renderIndex,Re=L.record,re=L.style,ue=L.className,_e=L.inverse,Ce=L.getHeight,Ne=ee.render,$e=ee.dataIndex,ht=ee.className,rt=ee.width,Ot=e(Qe,["columnsOffset"]),jt=Ot.columnsOffset,Dt=Oe(le,ee,oe,me,Se),Xt=Dt.key,mt=Dt.fixedInfo,pn=Dt.appendCellNode,on=Dt.additionalCellProps,_n=on.style,Yt=on.colSpan,rn=Yt===void 0?1:Yt,mn=on.rowSpan,ln=mn===void 0?1:mn,dn=oe-1,Bt=lt(dn,rn,jt),gt=rn>1?rt-Bt:0,It=(0,G.Z)((0,G.Z)((0,G.Z)({},_n),re),{},{flex:"0 0 ".concat(Bt,"px"),width:"".concat(Bt,"px"),marginRight:gt,pointerEvents:"auto"}),Jt=h.useMemo(function(){return _e?ln<=1:rn===0||ln===0||ln>1},[ln,rn,_e]);Jt?It.visibility="hidden":_e&&(It.height=Ce==null?void 0:Ce(ln));var hn=Jt?function(){return null}:Ne,un={};return(ln===0||rn===0)&&(un.rowSpan=1,un.colSpan=1),h.createElement(dt,(0,s.Z)({className:w()(ht,ue),ellipsis:ee.ellipsis,align:ee.align,scope:ee.rowScope,component:Be,prefixCls:le.prefixCls,key:Xt,record:Re,index:Se,renderIndex:ke,dataIndex:$e,render:hn,shouldCellUpdate:ee.shouldCellUpdate},mt,{appendNode:pn,additionalProps:(0,G.Z)((0,G.Z)({},on),{},{style:It},un)}))}var ft=Kt,Ct=["data","index","className","rowKey","style","extra","getHeight"],Ft=h.forwardRef(function(L,le){var ee=L.data,oe=L.index,me=L.className,Se=L.rowKey,Be=L.style,ke=L.extra,Re=L.getHeight,re=(0,B.Z)(L,Ct),ue=ee.record,_e=ee.indent,Ce=ee.index,Ne=e(u,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),$e=Ne.scrollX,ht=Ne.flattenColumns,rt=Ne.prefixCls,Ot=Ne.fixColumn,jt=Ne.componentWidth,Dt=e(Ge,["getComponent"]),Xt=Dt.getComponent,mt=Ee(ue,Se,oe,_e),pn=Xt(["body","row"],"div"),on=Xt(["body","cell"],"div"),_n=mt.rowSupportExpand,Yt=mt.expanded,rn=mt.rowProps,mn=mt.expandedRowRender,ln=mt.expandedRowClassName,dn;if(_n&&Yt){var Bt=mn(ue,oe,_e+1,Yt),gt=Le(ln,ue,oe,_e),It={};Ot&&(It={style:(0,W.Z)({},"--virtual-width","".concat(jt,"px"))});var Jt="".concat(rt,"-expanded-row-cell");dn=h.createElement(pn,{className:w()("".concat(rt,"-expanded-row"),"".concat(rt,"-expanded-row-level-").concat(_e+1),gt)},h.createElement(dt,{component:on,prefixCls:rt,className:w()(Jt,(0,W.Z)({},"".concat(Jt,"-fixed"),Ot)),additionalProps:It},Bt))}var hn=(0,G.Z)((0,G.Z)({},Be),{},{width:$e});ke&&(hn.position="absolute",hn.pointerEvents="none");var un=h.createElement(pn,(0,s.Z)({},rn,re,{"data-row-key":Se,ref:_n?null:le,className:w()(me,"".concat(rt,"-row"),rn==null?void 0:rn.className,(0,W.Z)({},"".concat(rt,"-row-extra"),ke)),style:(0,G.Z)((0,G.Z)({},hn),rn==null?void 0:rn.style)}),ht.map(function(fn,Un){return h.createElement(ft,{key:Un,component:on,rowInfo:mt,column:fn,colIndex:Un,indent:_e,index:oe,renderIndex:Ce,record:ue,inverse:ke,getHeight:Re})}));return _n?h.createElement("div",{ref:le},un,dn):un}),$t=p(Ft),Ut=$t,xt=h.forwardRef(function(L,le){var ee=L.data,oe=L.onScroll,me=e(u,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Se=me.flattenColumns,Be=me.onColumnResize,ke=me.getRowKey,Re=me.expandedKeys,re=me.prefixCls,ue=me.childrenColumnName,_e=me.scrollX,Ce=me.direction,Ne=e(Ge),$e=Ne.sticky,ht=Ne.scrollY,rt=Ne.listItemHeight,Ot=Ne.getComponent,jt=Ne.onScroll,Dt=h.useRef(),Xt=ce(ee,ue,Re,ke),mt=h.useMemo(function(){var dn=0;return Se.map(function(Bt){var gt=Bt.width,It=Bt.key;return dn+=gt,[It,gt,dn]})},[Se]),pn=h.useMemo(function(){return mt.map(function(dn){return dn[2]})},[mt]);h.useEffect(function(){mt.forEach(function(dn){var Bt=(0,A.Z)(dn,2),gt=Bt[0],It=Bt[1];Be(gt,It)})},[mt]),h.useImperativeHandle(le,function(){var dn,Bt={scrollTo:function(It){var Jt;(Jt=Dt.current)===null||Jt===void 0||Jt.scrollTo(It)},nativeElement:(dn=Dt.current)===null||dn===void 0?void 0:dn.nativeElement};return Object.defineProperty(Bt,"scrollLeft",{get:function(){var It;return((It=Dt.current)===null||It===void 0?void 0:It.getScrollInfo().x)||0},set:function(It){var Jt;(Jt=Dt.current)===null||Jt===void 0||Jt.scrollTo({left:It})}}),Bt});var on=function(Bt,gt){var It,Jt=(It=Xt[gt])===null||It===void 0?void 0:It.record,hn=Bt.onCell;if(hn){var un,fn=hn(Jt,gt);return(un=fn==null?void 0:fn.rowSpan)!==null&&un!==void 0?un:1}return 1},_n=function(Bt){var gt=Bt.start,It=Bt.end,Jt=Bt.getSize,hn=Bt.offsetY;if(It<0)return null;for(var un=Se.filter(function(wn){return on(wn,gt)===0}),fn=gt,Un=function(Sn){if(un=un.filter(function(St){return on(St,Sn)===0}),!un.length)return fn=Sn,1},Xn=gt;Xn>=0&&!Un(Xn);Xn-=1);for(var $n=Se.filter(function(wn){return on(wn,It)!==1}),sr=It,ar=function(Sn){if($n=$n.filter(function(St){return on(St,Sn)!==1}),!$n.length)return sr=Math.max(Sn-1,It),1},qn=It;qn<Xt.length&&!ar(qn);qn+=1);for(var yn=[],In=function(Sn){var St=Xt[Sn];if(!St)return 1;Se.some(function(qt){return on(qt,Sn)>1})&&yn.push(Sn)},Gn=fn;Gn<=sr;Gn+=1)In(Gn);var xn=yn.map(function(wn){var Sn=Xt[wn],St=ke(Sn.record,wn),qt=function(Dn){var Kn=wn+Dn-1,Nt=ke(Xt[Kn].record,Kn),Wt=Jt(St,Nt);return Wt.bottom-Wt.top},en=Jt(St);return h.createElement(Ut,{key:wn,data:Sn,rowKey:St,index:wn,style:{top:-hn+en.top},extra:!0,getHeight:qt})});return xn},Yt=h.useMemo(function(){return{columnsOffset:pn}},[pn]),rn="".concat(re,"-tbody"),mn=Ot(["body","wrapper"]),ln={};return $e&&(ln.position="sticky",ln.bottom=0,(0,K.Z)($e)==="object"&&$e.offsetScroll&&(ln.bottom=$e.offsetScroll)),h.createElement(Qe.Provider,{value:Yt},h.createElement(Te.Z,{fullHeight:!1,ref:Dt,prefixCls:"".concat(rn,"-virtual"),styles:{horizontalScrollBar:ln},className:rn,height:ht,itemHeight:rt||24,data:Xt,itemKey:function(Bt){return ke(Bt.record)},component:mn,scrollWidth:_e,direction:Ce,onVirtualScroll:function(Bt){var gt,It=Bt.x;oe({currentTarget:(gt=Dt.current)===null||gt===void 0?void 0:gt.nativeElement,scrollLeft:It})},onScroll:jt,extraRender:_n},function(dn,Bt,gt){var It=ke(dn.record,Bt);return h.createElement(Ut,{data:dn,rowKey:It,index:Bt,style:gt.style})}))}),Pt=p(xt),tt=Pt,ct=function(le,ee){var oe=ee.ref,me=ee.onScroll;return h.createElement(tt,{ref:oe,data:le,onScroll:me})};function _t(L,le){var ee=L.data,oe=L.columns,me=L.scroll,Se=L.sticky,Be=L.prefixCls,ke=Be===void 0?wt:Be,Re=L.className,re=L.listItemHeight,ue=L.components,_e=L.onScroll,Ce=me||{},Ne=Ce.x,$e=Ce.y;typeof Ne!="number"&&(Ne=1),typeof $e!="number"&&($e=500);var ht=(0,vt.zX)(function(jt,Dt){return(0,x.Z)(ue,jt)||Dt}),rt=(0,vt.zX)(_e),Ot=h.useMemo(function(){return{sticky:Se,scrollY:$e,listItemHeight:re,getComponent:ht,onScroll:rt}},[Se,$e,re,ht,rt]);return h.createElement(Ge.Provider,{value:Ot},h.createElement(je,(0,s.Z)({},L,{className:w()(Re,"".concat(ke,"-virtual")),scroll:(0,G.Z)((0,G.Z)({},me),{},{x:Ne}),components:(0,G.Z)((0,G.Z)({},ue),{},{body:ee!=null&&ee.length?ct:void 0}),columns:oe,internalHooks:T.R,tailor:!0,ref:le})))}var Gt=h.forwardRef(_t);function At(L){return S(Gt,L)}var Vt=At(),An=null},54451:function(Zt,Ke,l){"use strict";l.d(Ke,{g:function(){return h},v:function(){return V}});var T=l(20439),A=l(62646),j=l(48736),X=["expandable"],V="RC_TABLE_INTERNAL_COL_DEFINE";function h(H){var $=H.expandable,e=(0,A.Z)(H,X),s;return"expandable"in H?s=(0,T.Z)((0,T.Z)({},e),$):s=e,s.showExpandColumn===!1&&(s.expandIconColumnIndex=-1),s}},22711:function(Zt,Ke,l){"use strict";l.r(Ke),l.d(Ke,{ResizableTextArea:function(){return Pe},default:function(){return N}});var T=l(14809),A=l(4635),j=l(20439),X=l(95190),V=l(50298),h=l(62646),H=l(92310),$=l.n(H),e=l(36901),s=l(66003),c=l(30292),t=l(18929),r=l(59301),i=l(93664),o=l(29301),v=l(34280),b=l(16089),S=`
|
|
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;
|
|
`,p=["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"],m={},f;function u(C){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=C.getAttribute("id")||C.getAttribute("data-reactid")||C.getAttribute("name");if(y&&m[n])return m[n];var a=window.getComputedStyle(C),d=a.getPropertyValue("box-sizing")||a.getPropertyValue("-moz-box-sizing")||a.getPropertyValue("-webkit-box-sizing"),M=parseFloat(a.getPropertyValue("padding-bottom"))+parseFloat(a.getPropertyValue("padding-top")),ae=parseFloat(a.getPropertyValue("border-bottom-width"))+parseFloat(a.getPropertyValue("border-top-width")),he=p.map(function(Ae){return"".concat(Ae,":").concat(a.getPropertyValue(Ae))}).join(";"),ge={sizingStyle:he,paddingSize:M,borderSize:ae,boxSizing:d};return y&&n&&(m[n]=ge),ge}function k(C){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;f||(f=document.createElement("textarea"),f.setAttribute("tab-index","-1"),f.setAttribute("aria-hidden","true"),f.setAttribute("name","hiddenTextarea"),document.body.appendChild(f)),C.getAttribute("wrap")?f.setAttribute("wrap",C.getAttribute("wrap")):f.removeAttribute("wrap");var d=u(C,y),M=d.paddingSize,ae=d.borderSize,he=d.boxSizing,ge=d.sizingStyle;f.setAttribute("style","".concat(ge,";").concat(S)),f.value=C.value||C.placeholder||"";var Ae=void 0,We=void 0,vt,ye=f.scrollHeight;if(he==="border-box"?ye+=ae:he==="content-box"&&(ye-=M),n!==null||a!==null){f.value=" ";var Ve=f.scrollHeight-M;n!==null&&(Ae=Ve*n,he==="border-box"&&(Ae=Ae+M+ae),ye=Math.max(Ae,ye)),a!==null&&(We=Ve*a,he==="border-box"&&(We=We+M+ae),vt=ye>We?"":"hidden",ye=Math.min(We,ye))}var dt={height:ye,overflowY:vt,resize:"none"};return Ae&&(dt.minHeight=Ae),We&&(dt.maxHeight=We),dt}var I=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],F=0,K=1,G=2,W=r.forwardRef(function(C,y){var n=C,a=n.prefixCls,d=n.defaultValue,M=n.value,ae=n.autoSize,he=n.onResize,ge=n.className,Ae=n.style,We=n.disabled,vt=n.onChange,ye=n.onInternalAutoSize,Ve=(0,h.Z)(n,I),dt=(0,t.Z)(d,{value:M,postState:function(at){return at!=null?at:""}}),Rt=(0,V.Z)(dt,2),ot=Rt[0],be=Rt[1],E=function(at){be(at.target.value),vt==null||vt(at)},B=r.useRef();r.useImperativeHandle(y,function(){return{textArea:B.current}});var O=r.useMemo(function(){return ae&&(0,i.Z)(ae)==="object"?[ae.minRows,ae.maxRows]:[]},[ae]),q=(0,V.Z)(O,2),ie=q[0],R=q[1],g=!!ae,P=function(){try{if(document.activeElement===B.current){var at=B.current,Et=at.selectionStart,et=at.selectionEnd,Tt=at.scrollTop;B.current.setSelectionRange(Et,et),B.current.scrollTop=Tt}}catch(tn){}},z=r.useState(G),D=(0,V.Z)(z,2),U=D[0],Z=D[1],te=r.useState(),J=(0,V.Z)(te,2),ce=J[0],Ee=J[1],xe=function(){Z(F)};(0,v.Z)(function(){g&&xe()},[M,ie,R,g]),(0,v.Z)(function(){if(U===F)Z(K);else if(U===K){var De=k(B.current,!1,ie,R);Z(G),Ee(De)}else P()},[U]);var Fe=r.useRef(),Ie=function(){b.Z.cancel(Fe.current)},de=function(at){U===G&&(he==null||he(at),ae&&(Ie(),Fe.current=(0,b.Z)(function(){xe()})))};r.useEffect(function(){return Ie},[]);var Le=g?ce:null,Oe=(0,j.Z)((0,j.Z)({},Ae),Le);return(U===F||U===K)&&(Oe.overflowY="hidden",Oe.overflowX="hidden"),r.createElement(o.Z,{onResize:de,disabled:!(ae||he)},r.createElement("textarea",(0,T.Z)({},Ve,{ref:B,style:Oe,className:$()(a,ge,(0,A.Z)({},"".concat(a,"-disabled"),We)),disabled:We,value:ot,onChange:E})))}),Pe=W,w=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],_=r.forwardRef(function(C,y){var n,a=C.defaultValue,d=C.value,M=C.onFocus,ae=C.onBlur,he=C.onChange,ge=C.allowClear,Ae=C.maxLength,We=C.onCompositionStart,vt=C.onCompositionEnd,ye=C.suffix,Ve=C.prefixCls,dt=Ve===void 0?"rc-textarea":Ve,Rt=C.showCount,ot=C.count,be=C.className,E=C.style,B=C.disabled,O=C.hidden,q=C.classNames,ie=C.styles,R=C.onResize,g=C.onClear,P=C.onPressEnter,z=C.readOnly,D=C.autoSize,U=C.onKeyDown,Z=(0,h.Z)(C,w),te=(0,t.Z)(a,{value:d,defaultValue:a}),J=(0,V.Z)(te,2),ce=J[0],Ee=J[1],xe=ce==null?"":String(ce),Fe=r.useState(!1),Ie=(0,V.Z)(Fe,2),de=Ie[0],Le=Ie[1],Oe=r.useRef(!1),De=r.useState(null),at=(0,V.Z)(De,2),Et=at[0],et=at[1],Tt=(0,r.useRef)(null),tn=(0,r.useRef)(null),pt=function(){var nn;return(nn=tn.current)===null||nn===void 0?void 0:nn.textArea},st=function(){pt().focus()};(0,r.useImperativeHandle)(y,function(){var cn;return{resizableTextArea:tn.current,focus:st,blur:function(){pt().blur()},nativeElement:((cn=Tt.current)===null||cn===void 0?void 0:cn.nativeElement)||pt()}}),(0,r.useEffect)(function(){Le(function(cn){return!B&&cn})},[B]);var bt=r.useState(null),Qt=(0,V.Z)(bt,2),kt=Qt[0],Lt=Qt[1];r.useEffect(function(){if(kt){var cn;(cn=pt()).setSelectionRange.apply(cn,(0,X.Z)(kt))}},[kt]);var Mt=(0,s.Z)(ot,Rt),sn=(n=Mt.max)!==null&&n!==void 0?n:Ae,qe=Number(sn)>0,ut=Mt.strategy(xe),yt=!!sn&&ut>sn,kn=function(nn,Ln){var Wn=Ln;!Oe.current&&Mt.exceedFormatter&&Mt.max&&Mt.strategy(Ln)>Mt.max&&(Wn=Mt.exceedFormatter(Ln,{max:Mt.max}),Ln!==Wn&&Lt([pt().selectionStart||0,pt().selectionEnd||0])),Ee(Wn),(0,c.rJ)(nn.currentTarget,nn,he,Wn)},vn=function(nn){Oe.current=!0,We==null||We(nn)},Fn=function(nn){Oe.current=!1,kn(nn,nn.currentTarget.value),vt==null||vt(nn)},zn=function(nn){kn(nn,nn.target.value)},bn=function(nn){nn.key==="Enter"&&P&&P(nn),U==null||U(nn)},zt=function(nn){Le(!0),M==null||M(nn)},Nn=function(nn){Le(!1),ae==null||ae(nn)},En=function(nn){Ee(""),st(),(0,c.rJ)(pt(),nn,he)},On=ye,gn;Mt.show&&(Mt.showFormatter?gn=Mt.showFormatter({value:xe,count:ut,maxLength:sn}):gn="".concat(ut).concat(qe?" / ".concat(sn):""),On=r.createElement(r.Fragment,null,On,r.createElement("span",{className:$()("".concat(dt,"-data-count"),q==null?void 0:q.count),style:ie==null?void 0:ie.count},gn)));var Cn=function(nn){var Ln;R==null||R(nn),(Ln=pt())!==null&&Ln!==void 0&&Ln.style.height&&et(!0)},Zn=!D&&!Rt&&!ge;return r.createElement(e.BaseInput,{ref:Tt,value:xe,allowClear:ge,handleReset:En,suffix:On,prefixCls:dt,classNames:(0,j.Z)((0,j.Z)({},q),{},{affixWrapper:$()(q==null?void 0:q.affixWrapper,(0,A.Z)((0,A.Z)({},"".concat(dt,"-show-count"),Rt),"".concat(dt,"-textarea-allow-clear"),ge))}),disabled:B,focused:de,className:$()(be,yt&&"".concat(dt,"-out-of-range")),style:(0,j.Z)((0,j.Z)({},E),Et&&!Zn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gn=="string"?gn:void 0}},hidden:O,readOnly:z,onClear:g},r.createElement(Pe,(0,T.Z)({},Z,{autoSize:D,maxLength:Ae,onKeyDown:bn,onChange:zn,onFocus:zt,onBlur:Nn,onCompositionStart:vn,onCompositionEnd:Fn,className:$()(q==null?void 0:q.textarea),style:(0,j.Z)((0,j.Z)({},ie==null?void 0:ie.textarea),{},{resize:E==null?void 0:E.resize}),disabled:B,prefixCls:dt,onResize:Cn,ref:tn,readOnly:z})))}),x=_,N=x},29125:function(Zt,Ke,l){"use strict";l.d(Ke,{G:function(){return X},Z:function(){return S}});var T=l(92310),A=l.n(T),j=l(59301);function X(p){var m=p.children,f=p.prefixCls,u=p.id,k=p.overlayInnerStyle,I=p.bodyClassName,F=p.className,K=p.style;return j.createElement("div",{className:A()("".concat(f,"-content"),F),style:K},j.createElement("div",{className:A()("".concat(f,"-inner"),I),id:u,role:"tooltip",style:k},typeof m=="function"?m():m))}var V=l(14809),h=l(20439),H=l(62646),$=l(65966),e={shiftX:64,adjustY:1},s={adjustX:1,shiftY:!0},c=[0,0],t={left:{points:["cr","cl"],overflow:s,offset:[-4,0],targetOffset:c},right:{points:["cl","cr"],overflow:s,offset:[4,0],targetOffset:c},top:{points:["bc","tc"],overflow:e,offset:[0,-4],targetOffset:c},bottom:{points:["tc","bc"],overflow:e,offset:[0,4],targetOffset:c},topLeft:{points:["bl","tl"],overflow:e,offset:[0,-4],targetOffset:c},leftTop:{points:["tr","tl"],overflow:s,offset:[-4,0],targetOffset:c},topRight:{points:["br","tr"],overflow:e,offset:[0,-4],targetOffset:c},rightTop:{points:["tl","tr"],overflow:s,offset:[4,0],targetOffset:c},bottomRight:{points:["tr","br"],overflow:e,offset:[0,4],targetOffset:c},rightBottom:{points:["bl","br"],overflow:s,offset:[4,0],targetOffset:c},bottomLeft:{points:["tl","bl"],overflow:e,offset:[0,4],targetOffset:c},leftBottom:{points:["br","bl"],overflow:s,offset:[-4,0],targetOffset:c}},r=null,i=l(80402),o=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],v=function(m,f){var u=m.overlayClassName,k=m.trigger,I=k===void 0?["hover"]:k,F=m.mouseEnterDelay,K=F===void 0?0:F,G=m.mouseLeaveDelay,W=G===void 0?.1:G,Pe=m.overlayStyle,w=m.prefixCls,_=w===void 0?"rc-tooltip":w,x=m.children,N=m.onVisibleChange,C=m.afterVisibleChange,y=m.transitionName,n=m.animation,a=m.motion,d=m.placement,M=d===void 0?"right":d,ae=m.align,he=ae===void 0?{}:ae,ge=m.destroyTooltipOnHide,Ae=ge===void 0?!1:ge,We=m.defaultVisible,vt=m.getTooltipContainer,ye=m.overlayInnerStyle,Ve=m.arrowContent,dt=m.overlay,Rt=m.id,ot=m.showArrow,be=ot===void 0?!0:ot,E=m.classNames,B=m.styles,O=(0,H.Z)(m,o),q=(0,i.Z)(Rt),ie=(0,j.useRef)(null);(0,j.useImperativeHandle)(f,function(){return ie.current});var R=(0,h.Z)({},O);"visible"in m&&(R.popupVisible=m.visible);var g=function(){return j.createElement(X,{key:"content",prefixCls:_,id:q,bodyClassName:E==null?void 0:E.body,overlayInnerStyle:(0,h.Z)((0,h.Z)({},ye),B==null?void 0:B.body)},dt)},P=function(){var D=j.Children.only(x),U=(D==null?void 0:D.props)||{},Z=(0,h.Z)((0,h.Z)({},U),{},{"aria-describedby":dt?q:null});return j.cloneElement(x,Z)};return j.createElement($.Z,(0,V.Z)({popupClassName:A()(u,E==null?void 0:E.root),prefixCls:_,popup:g,action:I,builtinPlacements:t,popupPlacement:M,ref:ie,popupAlign:he,getPopupContainer:vt,onPopupVisibleChange:N,afterPopupVisibleChange:C,popupTransitionName:y,popupAnimation:n,popupMotion:a,defaultPopupVisible:We,autoDestroy:Ae,mouseLeaveDelay:W,popupStyle:(0,h.Z)((0,h.Z)({},Pe),B==null?void 0:B.root),mouseEnterDelay:K,arrow:be},R),P())},b=(0,j.forwardRef)(v),S=b},639:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return m}});var T=l(14809),A=l(4635),j=l(20439),X=l(50298),V=l(62646),h=l(59301),H=l(92310),$=l.n(H),e=l(26112),s=l(30699),c=function(u){for(var k=u.prefixCls,I=u.level,F=u.isStart,K=u.isEnd,G="".concat(k,"-indent-unit"),W=[],Pe=0;Pe<I;Pe+=1)W.push(h.createElement("span",{key:Pe,className:$()(G,(0,A.Z)((0,A.Z)({},"".concat(G,"-start"),F[Pe]),"".concat(G,"-end"),K[Pe]))}));return h.createElement("span",{"aria-hidden":"true",className:"".concat(k,"-indent")},W)},t=h.memo(c),r=l(65065),i=l(34061),o=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],v="open",b="close",S="---",p=function(u){var k,I,F,K=u.eventKey,G=u.className,W=u.style,Pe=u.dragOver,w=u.dragOverGapTop,_=u.dragOverGapBottom,x=u.isLeaf,N=u.isStart,C=u.isEnd,y=u.expanded,n=u.selected,a=u.checked,d=u.halfChecked,M=u.loading,ae=u.domRef,he=u.active,ge=u.data,Ae=u.onMouseMove,We=u.selectable,vt=(0,V.Z)(u,o),ye=h.useContext(s.k),Ve=h.useContext(s.y),dt=h.useRef(null),Rt=h.useState(!1),ot=(0,X.Z)(Rt,2),be=ot[0],E=ot[1],B=!!(ye.disabled||u.disabled||(k=Ve.nodeDisabled)!==null&&k!==void 0&&k.call(Ve,ge)),O=h.useMemo(function(){return!ye.checkable||u.checkable===!1?!1:ye.checkable},[ye.checkable,u.checkable]),q=function(ut){B||ye.onNodeSelect(ut,(0,i.F)(u))},ie=function(ut){B||!O||u.disableCheckbox||ye.onNodeCheck(ut,(0,i.F)(u),!a)},R=h.useMemo(function(){return typeof We=="boolean"?We:ye.selectable},[We,ye.selectable]),g=function(ut){ye.onNodeClick(ut,(0,i.F)(u)),R?q(ut):ie(ut)},P=function(ut){ye.onNodeDoubleClick(ut,(0,i.F)(u))},z=function(ut){ye.onNodeMouseEnter(ut,(0,i.F)(u))},D=function(ut){ye.onNodeMouseLeave(ut,(0,i.F)(u))},U=function(ut){ye.onNodeContextMenu(ut,(0,i.F)(u))},Z=h.useMemo(function(){return!!(ye.draggable&&(!ye.draggable.nodeDraggable||ye.draggable.nodeDraggable(ge)))},[ye.draggable,ge]),te=function(ut){ut.stopPropagation(),E(!0),ye.onNodeDragStart(ut,u);try{ut.dataTransfer.setData("text/plain","")}catch(yt){}},J=function(ut){ut.preventDefault(),ut.stopPropagation(),ye.onNodeDragEnter(ut,u)},ce=function(ut){ut.preventDefault(),ut.stopPropagation(),ye.onNodeDragOver(ut,u)},Ee=function(ut){ut.stopPropagation(),ye.onNodeDragLeave(ut,u)},xe=function(ut){ut.stopPropagation(),E(!1),ye.onNodeDragEnd(ut,u)},Fe=function(ut){ut.preventDefault(),ut.stopPropagation(),E(!1),ye.onNodeDrop(ut,u)},Ie=function(ut){M||ye.onNodeExpand(ut,(0,i.F)(u))},de=h.useMemo(function(){var qe=(0,r.Z)(ye.keyEntities,K)||{},ut=qe.children;return!!(ut||[]).length},[ye.keyEntities,K]),Le=h.useMemo(function(){return x===!1?!1:x||!ye.loadData&&!de||ye.loadData&&u.loaded&&!de},[x,ye.loadData,de,u.loaded]);h.useEffect(function(){M||typeof ye.loadData=="function"&&y&&!Le&&!u.loaded&&ye.onNodeLoad((0,i.F)(u))},[M,ye.loadData,ye.onNodeLoad,y,Le,u]);var Oe=h.useMemo(function(){var qe;return(qe=ye.draggable)!==null&&qe!==void 0&&qe.icon?h.createElement("span",{className:"".concat(ye.prefixCls,"-draggable-icon")},ye.draggable.icon):null},[ye.draggable]),De=function(ut){var yt=u.switcherIcon||ye.switcherIcon;return typeof yt=="function"?yt((0,j.Z)((0,j.Z)({},u),{},{isLeaf:ut})):yt},at=function(){if(Le){var ut=De(!0);return ut!==!1?h.createElement("span",{className:$()("".concat(ye.prefixCls,"-switcher"),"".concat(ye.prefixCls,"-switcher-noop"))},ut):null}var yt=De(!1);return yt!==!1?h.createElement("span",{onClick:Ie,className:$()("".concat(ye.prefixCls,"-switcher"),"".concat(ye.prefixCls,"-switcher_").concat(y?v:b))},yt):null},Et=h.useMemo(function(){if(!O)return null;var qe=typeof O!="boolean"?O:null;return h.createElement("span",{className:$()("".concat(ye.prefixCls,"-checkbox"),(0,A.Z)((0,A.Z)((0,A.Z)({},"".concat(ye.prefixCls,"-checkbox-checked"),a),"".concat(ye.prefixCls,"-checkbox-indeterminate"),!a&&d),"".concat(ye.prefixCls,"-checkbox-disabled"),B||u.disableCheckbox)),onClick:ie,role:"checkbox","aria-checked":d?"mixed":a,"aria-disabled":B||u.disableCheckbox,"aria-label":"Select ".concat(typeof u.title=="string"?u.title:"tree node")},qe)},[O,a,d,B,u.disableCheckbox,u.title]),et=h.useMemo(function(){return Le?null:y?v:b},[Le,y]),Tt=h.useMemo(function(){return h.createElement("span",{className:$()("".concat(ye.prefixCls,"-iconEle"),"".concat(ye.prefixCls,"-icon__").concat(et||"docu"),(0,A.Z)({},"".concat(ye.prefixCls,"-icon_loading"),M))})},[ye.prefixCls,et,M]),tn=h.useMemo(function(){var qe=!!ye.draggable,ut=!u.disabled&&qe&&ye.dragOverNodeKey===K;return ut?ye.dropIndicatorRender({dropPosition:ye.dropPosition,dropLevelOffset:ye.dropLevelOffset,indent:ye.indent,prefixCls:ye.prefixCls,direction:ye.direction}):null},[ye.dropPosition,ye.dropLevelOffset,ye.indent,ye.prefixCls,ye.direction,ye.draggable,ye.dragOverNodeKey,ye.dropIndicatorRender]),pt=h.useMemo(function(){var qe=u.title,ut=qe===void 0?S:qe,yt="".concat(ye.prefixCls,"-node-content-wrapper"),kn;if(ye.showIcon){var vn=u.icon||ye.icon;kn=vn?h.createElement("span",{className:$()("".concat(ye.prefixCls,"-iconEle"),"".concat(ye.prefixCls,"-icon__customize"))},typeof vn=="function"?vn(u):vn):Tt}else ye.loadData&&M&&(kn=Tt);var Fn;return typeof ut=="function"?Fn=ut(ge):ye.titleRender?Fn=ye.titleRender(ge):Fn=ut,h.createElement("span",{ref:dt,title:typeof ut=="string"?ut:"",className:$()(yt,"".concat(yt,"-").concat(et||"normal"),(0,A.Z)({},"".concat(ye.prefixCls,"-node-selected"),!B&&(n||be))),onMouseEnter:z,onMouseLeave:D,onContextMenu:U,onClick:g,onDoubleClick:P},kn,h.createElement("span",{className:"".concat(ye.prefixCls,"-title")},Fn),tn)},[ye.prefixCls,ye.showIcon,u,ye.icon,Tt,ye.titleRender,ge,et,z,D,U,g,P]),st=(0,e.Z)(vt,{aria:!0,data:!0}),bt=(0,r.Z)(ye.keyEntities,K)||{},Qt=bt.level,kt=C[C.length-1],Lt=!B&&Z,Mt=ye.draggingNodeKey===K,sn=We!==void 0?{"aria-selected":!!We}:void 0;return h.createElement("div",(0,T.Z)({ref:ae,role:"treeitem","aria-expanded":x?void 0:y,className:$()(G,"".concat(ye.prefixCls,"-treenode"),(F={},(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)(F,"".concat(ye.prefixCls,"-treenode-disabled"),B),"".concat(ye.prefixCls,"-treenode-switcher-").concat(y?"open":"close"),!x),"".concat(ye.prefixCls,"-treenode-checkbox-checked"),a),"".concat(ye.prefixCls,"-treenode-checkbox-indeterminate"),d),"".concat(ye.prefixCls,"-treenode-selected"),n),"".concat(ye.prefixCls,"-treenode-loading"),M),"".concat(ye.prefixCls,"-treenode-active"),he),"".concat(ye.prefixCls,"-treenode-leaf-last"),kt),"".concat(ye.prefixCls,"-treenode-draggable"),Z),"dragging",Mt),(0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)((0,A.Z)(F,"drop-target",ye.dropTargetKey===K),"drop-container",ye.dropContainerKey===K),"drag-over",!B&&Pe),"drag-over-gap-top",!B&&w),"drag-over-gap-bottom",!B&&_),"filter-node",(I=ye.filterTreeNode)===null||I===void 0?void 0:I.call(ye,(0,i.F)(u))),"".concat(ye.prefixCls,"-treenode-leaf"),Le))),style:W,draggable:Lt,onDragStart:Lt?te:void 0,onDragEnter:Z?J:void 0,onDragOver:Z?ce:void 0,onDragLeave:Z?Ee:void 0,onDrop:Z?Fe:void 0,onDragEnd:Z?xe:void 0,onMouseMove:Ae},sn,st),h.createElement(t,{prefixCls:ye.prefixCls,level:Qt,isStart:N,isEnd:C}),Oe,at(),Et,pt)};p.isTreeNode=1;var m=p},30699:function(Zt,Ke,l){"use strict";l.d(Ke,{k:function(){return A},y:function(){return j}});var T=l(59301),A=T.createContext(null),j=T.createContext({})},29530:function(Zt,Ke,l){"use strict";l.d(Ke,{OF:function(){return K.Z},y6:function(){return b.y},ZP:function(){return B}});var T=l(14809),A=l(93664),j=l(20439),X=l(95190),V=l(99153),h=l(84851),H=l(13028),$=l(19257),e=l(93046),s=l(4635),c=l(92310),t=l.n(c),r=l(10228),i=l(26112),o=l(48736),v=l(59301),b=l(30699),S=function(q){var ie=q.dropPosition,R=q.dropLevelOffset,g=q.indent,P={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ie){case-1:P.top=0,P.left=-R*g;break;case 1:P.bottom=0,P.left=-R*g;break;case 0:P.bottom=0,P.left=g;break}return v.createElement("div",{style:P})},p=S;function m(O){if(O==null)throw new TypeError("Cannot destructure "+O)}var f=l(50298),u=l(62646),k=l(34280),I=l(65283),F=l(77900),K=l(639);function G(O,q){var ie=v.useState(!1),R=(0,f.Z)(ie,2),g=R[0],P=R[1];(0,k.Z)(function(){if(g)return O(),function(){q()}},[g]),(0,k.Z)(function(){return P(!0),function(){P(!1)}},[])}var W=G,Pe=l(34061),w=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_=v.forwardRef(function(O,q){var ie=O.className,R=O.style,g=O.motion,P=O.motionNodes,z=O.motionType,D=O.onMotionStart,U=O.onMotionEnd,Z=O.active,te=O.treeNodeRequiredProps,J=(0,u.Z)(O,w),ce=v.useState(!0),Ee=(0,f.Z)(ce,2),xe=Ee[0],Fe=Ee[1],Ie=v.useContext(b.k),de=Ie.prefixCls,Le=P&&z!=="hide";(0,k.Z)(function(){P&&Le!==xe&&Fe(Le)},[P]);var Oe=function(){P&&D()},De=v.useRef(!1),at=function(){P&&!De.current&&(De.current=!0,U())};W(Oe,at);var Et=function(Tt){Le===Tt&&at()};return P?v.createElement(F.default,(0,T.Z)({ref:q,visible:xe},g,{motionAppear:z==="show",onVisibleChanged:Et}),function(et,Tt){var tn=et.className,pt=et.style;return v.createElement("div",{ref:Tt,className:t()("".concat(de,"-treenode-motion"),tn),style:pt},P.map(function(st){var bt=Object.assign({},(m(st.data),st.data)),Qt=st.title,kt=st.key,Lt=st.isStart,Mt=st.isEnd;delete bt.children;var sn=(0,Pe.H8)(kt,te);return v.createElement(K.Z,(0,T.Z)({},bt,sn,{title:Qt,active:Z,data:st.data,key:kt,isStart:Lt,isEnd:Mt}))}))}):v.createElement(K.Z,(0,T.Z)({domRef:q,className:ie,style:R},J,{active:Z}))}),x=_;function N(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ie=O.length,R=q.length;if(Math.abs(ie-R)!==1)return{add:!1,key:null};function g(P,z){var D=new Map;P.forEach(function(Z){D.set(Z,!0)});var U=z.filter(function(Z){return!D.has(Z)});return U.length===1?U[0]:null}return ie<R?{add:!0,key:g(O,q)}:{add:!1,key:g(q,O)}}function C(O,q,ie){var R=O.findIndex(function(D){return D.key===ie}),g=O[R+1],P=q.findIndex(function(D){return D.key===ie});if(g){var z=q.findIndex(function(D){return D.key===g.key});return q.slice(P+1,z)}return q.slice(P+1)}var y=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],n={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},a=function(){},d="RC_TREE_MOTION_".concat(Math.random()),M={key:d},ae={key:d,level:0,index:0,pos:"0",node:M,nodes:[M]},he={parent:null,children:[],pos:ae.pos,data:M,title:null,key:d,isStart:[],isEnd:[]};function ge(O,q,ie,R){return q===!1||!ie?O:O.slice(0,Math.ceil(ie/R)+1)}function Ae(O){var q=O.key,ie=O.pos;return(0,Pe.km)(q,ie)}function We(O){for(var q=String(O.data.key),ie=O;ie.parent;)ie=ie.parent,q="".concat(ie.data.key," > ").concat(q);return q}var vt=v.forwardRef(function(O,q){var ie=O.prefixCls,R=O.data,g=O.selectable,P=O.checkable,z=O.expandedKeys,D=O.selectedKeys,U=O.checkedKeys,Z=O.loadedKeys,te=O.loadingKeys,J=O.halfCheckedKeys,ce=O.keyEntities,Ee=O.disabled,xe=O.dragging,Fe=O.dragOverNodeKey,Ie=O.dropPosition,de=O.motion,Le=O.height,Oe=O.itemHeight,De=O.virtual,at=O.scrollWidth,Et=O.focusable,et=O.activeItem,Tt=O.focused,tn=O.tabIndex,pt=O.onKeyDown,st=O.onFocus,bt=O.onBlur,Qt=O.onActiveChange,kt=O.onListChangeStart,Lt=O.onListChangeEnd,Mt=(0,u.Z)(O,y),sn=v.useRef(null),qe=v.useRef(null);v.useImperativeHandle(q,function(){return{scrollTo:function(pe){sn.current.scrollTo(pe)},getIndentWidth:function(){return qe.current.offsetWidth}}});var ut=v.useState(z),yt=(0,f.Z)(ut,2),kn=yt[0],vn=yt[1],Fn=v.useState(R),zn=(0,f.Z)(Fn,2),bn=zn[0],zt=zn[1],Nn=v.useState(R),En=(0,f.Z)(Nn,2),On=En[0],gn=En[1],Cn=v.useState([]),Zn=(0,f.Z)(Cn,2),cn=Zn[0],nn=Zn[1],Ln=v.useState(null),Wn=(0,f.Z)(Ln,2),ne=Wn[0],Q=Wn[1],Ue=v.useRef(R);Ue.current=R;function Ze(){var we=Ue.current;zt(we),gn(we),nn([]),Q(null),Lt()}(0,k.Z)(function(){vn(z);var we=N(kn,z);if(we.key!==null)if(we.add){var pe=bn.findIndex(function(He){var Y=He.key;return Y===we.key}),ze=ge(C(bn,R,we.key),De,Le,Oe),Ye=bn.slice();Ye.splice(pe+1,0,he),gn(Ye),nn(ze),Q("show")}else{var it=R.findIndex(function(He){var Y=He.key;return Y===we.key}),wt=ge(C(R,bn,we.key),De,Le,Oe),nt=R.slice();nt.splice(it+1,0,he),gn(nt),nn(wt),Q("hide")}else bn!==R&&(zt(R),gn(R))},[z,R]),v.useEffect(function(){xe||Ze()},[xe]);var Xe=de?On:R,Je={expandedKeys:z,selectedKeys:D,loadedKeys:Z,loadingKeys:te,checkedKeys:U,halfCheckedKeys:J,dragOverNodeKey:Fe,dropPosition:Ie,keyEntities:ce};return v.createElement(v.Fragment,null,Tt&&et&&v.createElement("span",{style:n,"aria-live":"assertive"},We(et)),v.createElement("div",null,v.createElement("input",{style:n,disabled:Et===!1||Ee,tabIndex:Et!==!1?tn:null,onKeyDown:pt,onFocus:st,onBlur:bt,value:"",onChange:a,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(ie,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:"".concat(ie,"-indent")},v.createElement("div",{ref:qe,className:"".concat(ie,"-indent-unit")}))),v.createElement(I.Z,(0,T.Z)({},Mt,{data:Xe,itemKey:Ae,height:Le,fullHeight:!1,virtual:De,itemHeight:Oe,scrollWidth:at,prefixCls:"".concat(ie,"-list"),ref:sn,role:"tree",onVisibleChange:function(pe){pe.every(function(ze){return Ae(ze)!==d})&&Ze()}}),function(we){var pe=we.pos,ze=Object.assign({},(m(we.data),we.data)),Ye=we.title,it=we.key,wt=we.isStart,nt=we.isEnd,He=(0,Pe.km)(it,pe);delete ze.key,delete ze.children;var Y=(0,Pe.H8)(He,Je);return v.createElement(x,(0,T.Z)({},ze,Y,{title:Ye,active:!!et&&it===et.key,pos:pe,data:we.data,isStart:wt,isEnd:nt,motion:de,motionNodes:it===d?cn:null,motionType:ne,onMotionStart:kt,onMotionEnd:Ze,treeNodeRequiredProps:Je,onMouseMove:function(){Qt(null)}}))}))}),ye=vt,Ve=l(82661),dt=l(34643),Rt=l(65065),ot=10,be=function(O){(0,$.Z)(ie,O);var q=(0,e.Z)(ie);function ie(){var R;(0,V.Z)(this,ie);for(var g=arguments.length,P=new Array(g),z=0;z<g;z++)P[z]=arguments[z];return R=q.call.apply(q,[this].concat(P)),(0,s.Z)((0,H.Z)(R),"destroyed",!1),(0,s.Z)((0,H.Z)(R),"delayedDragEnterLogic",void 0),(0,s.Z)((0,H.Z)(R),"loadingRetryTimes",{}),(0,s.Z)((0,H.Z)(R),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Pe.w$)()}),(0,s.Z)((0,H.Z)(R),"dragStartMousePosition",null),(0,s.Z)((0,H.Z)(R),"dragNodeProps",null),(0,s.Z)((0,H.Z)(R),"currentMouseOverDroppableNodeKey",null),(0,s.Z)((0,H.Z)(R),"listRef",v.createRef()),(0,s.Z)((0,H.Z)(R),"onNodeDragStart",function(D,U){var Z=R.state,te=Z.expandedKeys,J=Z.keyEntities,ce=R.props.onDragStart,Ee=U.eventKey;R.dragNodeProps=U,R.dragStartMousePosition={x:D.clientX,y:D.clientY};var xe=(0,Ve._5)(te,Ee);R.setState({draggingNodeKey:Ee,dragChildrenKeys:(0,Ve.wA)(Ee,J),indent:R.listRef.current.getIndentWidth()}),R.setExpandedKeys(xe),window.addEventListener("dragend",R.onWindowDragEnd),ce==null||ce({event:D,node:(0,Pe.F)(U)})}),(0,s.Z)((0,H.Z)(R),"onNodeDragEnter",function(D,U){var Z=R.state,te=Z.expandedKeys,J=Z.keyEntities,ce=Z.dragChildrenKeys,Ee=Z.flattenNodes,xe=Z.indent,Fe=R.props,Ie=Fe.onDragEnter,de=Fe.onExpand,Le=Fe.allowDrop,Oe=Fe.direction,De=U.pos,at=U.eventKey;if(R.currentMouseOverDroppableNodeKey!==at&&(R.currentMouseOverDroppableNodeKey=at),!R.dragNodeProps){R.resetDragState();return}var Et=(0,Ve.OM)(D,R.dragNodeProps,U,xe,R.dragStartMousePosition,Le,Ee,J,te,Oe),et=Et.dropPosition,Tt=Et.dropLevelOffset,tn=Et.dropTargetKey,pt=Et.dropContainerKey,st=Et.dropTargetPos,bt=Et.dropAllowed,Qt=Et.dragOverNodeKey;if(ce.includes(tn)||!bt){R.resetDragState();return}if(R.delayedDragEnterLogic||(R.delayedDragEnterLogic={}),Object.keys(R.delayedDragEnterLogic).forEach(function(kt){clearTimeout(R.delayedDragEnterLogic[kt])}),R.dragNodeProps.eventKey!==U.eventKey&&(D.persist(),R.delayedDragEnterLogic[De]=window.setTimeout(function(){if(R.state.draggingNodeKey!==null){var kt=(0,X.Z)(te),Lt=(0,Rt.Z)(J,U.eventKey);Lt&&(Lt.children||[]).length&&(kt=(0,Ve.L0)(te,U.eventKey)),R.props.hasOwnProperty("expandedKeys")||R.setExpandedKeys(kt),de==null||de(kt,{node:(0,Pe.F)(U),expanded:!0,nativeEvent:D.nativeEvent})}},800)),R.dragNodeProps.eventKey===tn&&Tt===0){R.resetDragState();return}R.setState({dragOverNodeKey:Qt,dropPosition:et,dropLevelOffset:Tt,dropTargetKey:tn,dropContainerKey:pt,dropTargetPos:st,dropAllowed:bt}),Ie==null||Ie({event:D,node:(0,Pe.F)(U),expandedKeys:te})}),(0,s.Z)((0,H.Z)(R),"onNodeDragOver",function(D,U){var Z=R.state,te=Z.dragChildrenKeys,J=Z.flattenNodes,ce=Z.keyEntities,Ee=Z.expandedKeys,xe=Z.indent,Fe=R.props,Ie=Fe.onDragOver,de=Fe.allowDrop,Le=Fe.direction;if(R.dragNodeProps){var Oe=(0,Ve.OM)(D,R.dragNodeProps,U,xe,R.dragStartMousePosition,de,J,ce,Ee,Le),De=Oe.dropPosition,at=Oe.dropLevelOffset,Et=Oe.dropTargetKey,et=Oe.dropContainerKey,Tt=Oe.dropTargetPos,tn=Oe.dropAllowed,pt=Oe.dragOverNodeKey;te.includes(Et)||!tn||(R.dragNodeProps.eventKey===Et&&at===0?R.state.dropPosition===null&&R.state.dropLevelOffset===null&&R.state.dropTargetKey===null&&R.state.dropContainerKey===null&&R.state.dropTargetPos===null&&R.state.dropAllowed===!1&&R.state.dragOverNodeKey===null||R.resetDragState():De===R.state.dropPosition&&at===R.state.dropLevelOffset&&Et===R.state.dropTargetKey&&et===R.state.dropContainerKey&&Tt===R.state.dropTargetPos&&tn===R.state.dropAllowed&&pt===R.state.dragOverNodeKey||R.setState({dropPosition:De,dropLevelOffset:at,dropTargetKey:Et,dropContainerKey:et,dropTargetPos:Tt,dropAllowed:tn,dragOverNodeKey:pt}),Ie==null||Ie({event:D,node:(0,Pe.F)(U)}))}}),(0,s.Z)((0,H.Z)(R),"onNodeDragLeave",function(D,U){R.currentMouseOverDroppableNodeKey===U.eventKey&&!D.currentTarget.contains(D.relatedTarget)&&(R.resetDragState(),R.currentMouseOverDroppableNodeKey=null);var Z=R.props.onDragLeave;Z==null||Z({event:D,node:(0,Pe.F)(U)})}),(0,s.Z)((0,H.Z)(R),"onWindowDragEnd",function(D){R.onNodeDragEnd(D,null,!0),window.removeEventListener("dragend",R.onWindowDragEnd)}),(0,s.Z)((0,H.Z)(R),"onNodeDragEnd",function(D,U){var Z=R.props.onDragEnd;R.setState({dragOverNodeKey:null}),R.cleanDragState(),Z==null||Z({event:D,node:(0,Pe.F)(U)}),R.dragNodeProps=null,window.removeEventListener("dragend",R.onWindowDragEnd)}),(0,s.Z)((0,H.Z)(R),"onNodeDrop",function(D,U){var Z,te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=R.state,ce=J.dragChildrenKeys,Ee=J.dropPosition,xe=J.dropTargetKey,Fe=J.dropTargetPos,Ie=J.dropAllowed;if(Ie){var de=R.props.onDrop;if(R.setState({dragOverNodeKey:null}),R.cleanDragState(),xe!==null){var Le=(0,j.Z)((0,j.Z)({},(0,Pe.H8)(xe,R.getTreeNodeRequiredProps())),{},{active:((Z=R.getActiveItem())===null||Z===void 0?void 0:Z.key)===xe,data:(0,Rt.Z)(R.state.keyEntities,xe).node}),Oe=ce.includes(xe);(0,o.ZP)(!Oe,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var De=(0,Ve.yx)(Fe),at={event:D,node:(0,Pe.F)(Le),dragNode:R.dragNodeProps?(0,Pe.F)(R.dragNodeProps):null,dragNodesKeys:[R.dragNodeProps.eventKey].concat(ce),dropToGap:Ee!==0,dropPosition:Ee+Number(De[De.length-1])};te||de==null||de(at),R.dragNodeProps=null}}}),(0,s.Z)((0,H.Z)(R),"cleanDragState",function(){var D=R.state.draggingNodeKey;D!==null&&R.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),R.dragStartMousePosition=null,R.currentMouseOverDroppableNodeKey=null}),(0,s.Z)((0,H.Z)(R),"triggerExpandActionExpand",function(D,U){var Z=R.state,te=Z.expandedKeys,J=Z.flattenNodes,ce=U.expanded,Ee=U.key,xe=U.isLeaf;if(!(xe||D.shiftKey||D.metaKey||D.ctrlKey)){var Fe=J.filter(function(de){return de.key===Ee})[0],Ie=(0,Pe.F)((0,j.Z)((0,j.Z)({},(0,Pe.H8)(Ee,R.getTreeNodeRequiredProps())),{},{data:Fe.data}));R.setExpandedKeys(ce?(0,Ve._5)(te,Ee):(0,Ve.L0)(te,Ee)),R.onNodeExpand(D,Ie)}}),(0,s.Z)((0,H.Z)(R),"onNodeClick",function(D,U){var Z=R.props,te=Z.onClick,J=Z.expandAction;J==="click"&&R.triggerExpandActionExpand(D,U),te==null||te(D,U)}),(0,s.Z)((0,H.Z)(R),"onNodeDoubleClick",function(D,U){var Z=R.props,te=Z.onDoubleClick,J=Z.expandAction;J==="doubleClick"&&R.triggerExpandActionExpand(D,U),te==null||te(D,U)}),(0,s.Z)((0,H.Z)(R),"onNodeSelect",function(D,U){var Z=R.state.selectedKeys,te=R.state,J=te.keyEntities,ce=te.fieldNames,Ee=R.props,xe=Ee.onSelect,Fe=Ee.multiple,Ie=U.selected,de=U[ce.key],Le=!Ie;Le?Fe?Z=(0,Ve.L0)(Z,de):Z=[de]:Z=(0,Ve._5)(Z,de);var Oe=Z.map(function(De){var at=(0,Rt.Z)(J,De);return at?at.node:null}).filter(Boolean);R.setUncontrolledState({selectedKeys:Z}),xe==null||xe(Z,{event:"select",selected:Le,node:U,selectedNodes:Oe,nativeEvent:D.nativeEvent})}),(0,s.Z)((0,H.Z)(R),"onNodeCheck",function(D,U,Z){var te=R.state,J=te.keyEntities,ce=te.checkedKeys,Ee=te.halfCheckedKeys,xe=R.props,Fe=xe.checkStrictly,Ie=xe.onCheck,de=U.key,Le,Oe={event:"check",node:U,checked:Z,nativeEvent:D.nativeEvent};if(Fe){var De=Z?(0,Ve.L0)(ce,de):(0,Ve._5)(ce,de),at=(0,Ve._5)(Ee,de);Le={checked:De,halfChecked:at},Oe.checkedNodes=De.map(function(st){return(0,Rt.Z)(J,st)}).filter(Boolean).map(function(st){return st.node}),R.setUncontrolledState({checkedKeys:De})}else{var Et=(0,dt.S)([].concat((0,X.Z)(ce),[de]),!0,J),et=Et.checkedKeys,Tt=Et.halfCheckedKeys;if(!Z){var tn=new Set(et);tn.delete(de);var pt=(0,dt.S)(Array.from(tn),{checked:!1,halfCheckedKeys:Tt},J);et=pt.checkedKeys,Tt=pt.halfCheckedKeys}Le=et,Oe.checkedNodes=[],Oe.checkedNodesPositions=[],Oe.halfCheckedKeys=Tt,et.forEach(function(st){var bt=(0,Rt.Z)(J,st);if(bt){var Qt=bt.node,kt=bt.pos;Oe.checkedNodes.push(Qt),Oe.checkedNodesPositions.push({node:Qt,pos:kt})}}),R.setUncontrolledState({checkedKeys:et},!1,{halfCheckedKeys:Tt})}Ie==null||Ie(Le,Oe)}),(0,s.Z)((0,H.Z)(R),"onNodeLoad",function(D){var U,Z=D.key,te=R.state.keyEntities,J=(0,Rt.Z)(te,Z);if(!(J!=null&&(U=J.children)!==null&&U!==void 0&&U.length)){var ce=new Promise(function(Ee,xe){R.setState(function(Fe){var Ie=Fe.loadedKeys,de=Ie===void 0?[]:Ie,Le=Fe.loadingKeys,Oe=Le===void 0?[]:Le,De=R.props,at=De.loadData,Et=De.onLoad;if(!at||de.includes(Z)||Oe.includes(Z))return null;var et=at(D);return et.then(function(){var Tt=R.state.loadedKeys,tn=(0,Ve.L0)(Tt,Z);Et==null||Et(tn,{event:"load",node:D}),R.setUncontrolledState({loadedKeys:tn}),R.setState(function(pt){return{loadingKeys:(0,Ve._5)(pt.loadingKeys,Z)}}),Ee()}).catch(function(Tt){if(R.setState(function(pt){return{loadingKeys:(0,Ve._5)(pt.loadingKeys,Z)}}),R.loadingRetryTimes[Z]=(R.loadingRetryTimes[Z]||0)+1,R.loadingRetryTimes[Z]>=ot){var tn=R.state.loadedKeys;(0,o.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),R.setUncontrolledState({loadedKeys:(0,Ve.L0)(tn,Z)}),Ee()}xe(Tt)}),{loadingKeys:(0,Ve.L0)(Oe,Z)}})});return ce.catch(function(){}),ce}}),(0,s.Z)((0,H.Z)(R),"onNodeMouseEnter",function(D,U){var Z=R.props.onMouseEnter;Z==null||Z({event:D,node:U})}),(0,s.Z)((0,H.Z)(R),"onNodeMouseLeave",function(D,U){var Z=R.props.onMouseLeave;Z==null||Z({event:D,node:U})}),(0,s.Z)((0,H.Z)(R),"onNodeContextMenu",function(D,U){var Z=R.props.onRightClick;Z&&(D.preventDefault(),Z({event:D,node:U}))}),(0,s.Z)((0,H.Z)(R),"onFocus",function(){var D=R.props.onFocus;R.setState({focused:!0});for(var U=arguments.length,Z=new Array(U),te=0;te<U;te++)Z[te]=arguments[te];D==null||D.apply(void 0,Z)}),(0,s.Z)((0,H.Z)(R),"onBlur",function(){var D=R.props.onBlur;R.setState({focused:!1}),R.onActiveChange(null);for(var U=arguments.length,Z=new Array(U),te=0;te<U;te++)Z[te]=arguments[te];D==null||D.apply(void 0,Z)}),(0,s.Z)((0,H.Z)(R),"getTreeNodeRequiredProps",function(){var D=R.state,U=D.expandedKeys,Z=D.selectedKeys,te=D.loadedKeys,J=D.loadingKeys,ce=D.checkedKeys,Ee=D.halfCheckedKeys,xe=D.dragOverNodeKey,Fe=D.dropPosition,Ie=D.keyEntities;return{expandedKeys:U||[],selectedKeys:Z||[],loadedKeys:te||[],loadingKeys:J||[],checkedKeys:ce||[],halfCheckedKeys:Ee||[],dragOverNodeKey:xe,dropPosition:Fe,keyEntities:Ie}}),(0,s.Z)((0,H.Z)(R),"setExpandedKeys",function(D){var U=R.state,Z=U.treeData,te=U.fieldNames,J=(0,Pe.oH)(Z,D,te);R.setUncontrolledState({expandedKeys:D,flattenNodes:J},!0)}),(0,s.Z)((0,H.Z)(R),"onNodeExpand",function(D,U){var Z=R.state.expandedKeys,te=R.state,J=te.listChanging,ce=te.fieldNames,Ee=R.props,xe=Ee.onExpand,Fe=Ee.loadData,Ie=U.expanded,de=U[ce.key];if(!J){var Le=Z.includes(de),Oe=!Ie;if((0,o.ZP)(Ie&&Le||!Ie&&!Le,"Expand state not sync with index check"),Z=Oe?(0,Ve.L0)(Z,de):(0,Ve._5)(Z,de),R.setExpandedKeys(Z),xe==null||xe(Z,{node:U,expanded:Oe,nativeEvent:D.nativeEvent}),Oe&&Fe){var De=R.onNodeLoad(U);De&&De.then(function(){var at=(0,Pe.oH)(R.state.treeData,Z,ce);R.setUncontrolledState({flattenNodes:at})}).catch(function(){var at=R.state.expandedKeys,Et=(0,Ve._5)(at,de);R.setExpandedKeys(Et)})}}}),(0,s.Z)((0,H.Z)(R),"onListChangeStart",function(){R.setUncontrolledState({listChanging:!0})}),(0,s.Z)((0,H.Z)(R),"onListChangeEnd",function(){setTimeout(function(){R.setUncontrolledState({listChanging:!1})})}),(0,s.Z)((0,H.Z)(R),"onActiveChange",function(D){var U=R.state.activeKey,Z=R.props,te=Z.onActiveChange,J=Z.itemScrollOffset,ce=J===void 0?0:J;U!==D&&(R.setState({activeKey:D}),D!==null&&R.scrollTo({key:D,offset:ce}),te==null||te(D))}),(0,s.Z)((0,H.Z)(R),"getActiveItem",function(){var D=R.state,U=D.activeKey,Z=D.flattenNodes;return U===null?null:Z.find(function(te){var J=te.key;return J===U})||null}),(0,s.Z)((0,H.Z)(R),"offsetActiveKey",function(D){var U=R.state,Z=U.flattenNodes,te=U.activeKey,J=Z.findIndex(function(xe){var Fe=xe.key;return Fe===te});J===-1&&D<0&&(J=Z.length),J=(J+D+Z.length)%Z.length;var ce=Z[J];if(ce){var Ee=ce.key;R.onActiveChange(Ee)}else R.onActiveChange(null)}),(0,s.Z)((0,H.Z)(R),"onKeyDown",function(D){var U=R.state,Z=U.activeKey,te=U.expandedKeys,J=U.checkedKeys,ce=U.fieldNames,Ee=R.props,xe=Ee.onKeyDown,Fe=Ee.checkable,Ie=Ee.selectable;switch(D.which){case r.Z.UP:{R.offsetActiveKey(-1),D.preventDefault();break}case r.Z.DOWN:{R.offsetActiveKey(1),D.preventDefault();break}}var de=R.getActiveItem();if(de&&de.data){var Le=R.getTreeNodeRequiredProps(),Oe=de.data.isLeaf===!1||!!(de.data[ce.children]||[]).length,De=(0,Pe.F)((0,j.Z)((0,j.Z)({},(0,Pe.H8)(Z,Le)),{},{data:de.data,active:!0}));switch(D.which){case r.Z.LEFT:{Oe&&te.includes(Z)?R.onNodeExpand({},De):de.parent&&R.onActiveChange(de.parent.key),D.preventDefault();break}case r.Z.RIGHT:{Oe&&!te.includes(Z)?R.onNodeExpand({},De):de.children&&de.children.length&&R.onActiveChange(de.children[0].key),D.preventDefault();break}case r.Z.ENTER:case r.Z.SPACE:{Fe&&!De.disabled&&De.checkable!==!1&&!De.disableCheckbox?R.onNodeCheck({},De,!J.includes(Z)):!Fe&&Ie&&!De.disabled&&De.selectable!==!1&&R.onNodeSelect({},De);break}}}xe==null||xe(D)}),(0,s.Z)((0,H.Z)(R),"setUncontrolledState",function(D){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!R.destroyed){var te=!1,J=!0,ce={};Object.keys(D).forEach(function(Ee){if(R.props.hasOwnProperty(Ee)){J=!1;return}te=!0,ce[Ee]=D[Ee]}),te&&(!U||J)&&R.setState((0,j.Z)((0,j.Z)({},ce),Z))}}),(0,s.Z)((0,H.Z)(R),"scrollTo",function(D){R.listRef.current.scrollTo(D)}),R}return(0,h.Z)(ie,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var g=this.props,P=g.activeKey,z=g.itemScrollOffset,D=z===void 0?0:z;P!==void 0&&P!==this.state.activeKey&&(this.setState({activeKey:P}),P!==null&&this.scrollTo({key:P,offset:D}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var g=this.state,P=g.focused,z=g.flattenNodes,D=g.keyEntities,U=g.draggingNodeKey,Z=g.activeKey,te=g.dropLevelOffset,J=g.dropContainerKey,ce=g.dropTargetKey,Ee=g.dropPosition,xe=g.dragOverNodeKey,Fe=g.indent,Ie=this.props,de=Ie.prefixCls,Le=Ie.className,Oe=Ie.style,De=Ie.showLine,at=Ie.focusable,Et=Ie.tabIndex,et=Et===void 0?0:Et,Tt=Ie.selectable,tn=Ie.showIcon,pt=Ie.icon,st=Ie.switcherIcon,bt=Ie.draggable,Qt=Ie.checkable,kt=Ie.checkStrictly,Lt=Ie.disabled,Mt=Ie.motion,sn=Ie.loadData,qe=Ie.filterTreeNode,ut=Ie.height,yt=Ie.itemHeight,kn=Ie.scrollWidth,vn=Ie.virtual,Fn=Ie.titleRender,zn=Ie.dropIndicatorRender,bn=Ie.onContextMenu,zt=Ie.onScroll,Nn=Ie.direction,En=Ie.rootClassName,On=Ie.rootStyle,gn=(0,i.Z)(this.props,{aria:!0,data:!0}),Cn;bt&&((0,A.Z)(bt)==="object"?Cn=bt:typeof bt=="function"?Cn={nodeDraggable:bt}:Cn={});var Zn={prefixCls:de,selectable:Tt,showIcon:tn,icon:pt,switcherIcon:st,draggable:Cn,draggingNodeKey:U,checkable:Qt,checkStrictly:kt,disabled:Lt,keyEntities:D,dropLevelOffset:te,dropContainerKey:J,dropTargetKey:ce,dropPosition:Ee,dragOverNodeKey:xe,indent:Fe,direction:Nn,dropIndicatorRender:zn,loadData:sn,filterTreeNode:qe,titleRender:Fn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return v.createElement(b.k.Provider,{value:Zn},v.createElement("div",{className:t()(de,Le,En,(0,s.Z)((0,s.Z)((0,s.Z)({},"".concat(de,"-show-line"),De),"".concat(de,"-focused"),P),"".concat(de,"-active-focused"),Z!==null)),style:On},v.createElement(ye,(0,T.Z)({ref:this.listRef,prefixCls:de,style:Oe,data:z,disabled:Lt,selectable:Tt,checkable:!!Qt,motion:Mt,dragging:U!==null,height:ut,itemHeight:yt,virtual:vn,focusable:at,focused:P,tabIndex:et,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:bn,onScroll:zt,scrollWidth:kn},this.getTreeNodeRequiredProps(),gn))))}}],[{key:"getDerivedStateFromProps",value:function(g,P){var z=P.prevProps,D={prevProps:g};function U(et){return!z&&g.hasOwnProperty(et)||z&&z[et]!==g[et]}var Z,te=P.fieldNames;if(U("fieldNames")&&(te=(0,Pe.w$)(g.fieldNames),D.fieldNames=te),U("treeData")?Z=g.treeData:U("children")&&((0,o.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Z=(0,Pe.zn)(g.children)),Z){D.treeData=Z;var J=(0,Pe.I8)(Z,{fieldNames:te});D.keyEntities=(0,j.Z)((0,s.Z)({},d,ae),J.keyEntities)}var ce=D.keyEntities||P.keyEntities;if(U("expandedKeys")||z&&U("autoExpandParent"))D.expandedKeys=g.autoExpandParent||!z&&g.defaultExpandParent?(0,Ve.r7)(g.expandedKeys,ce):g.expandedKeys;else if(!z&&g.defaultExpandAll){var Ee=(0,j.Z)({},ce);delete Ee[d];var xe=[];Object.keys(Ee).forEach(function(et){var Tt=Ee[et];Tt.children&&Tt.children.length&&xe.push(Tt.key)}),D.expandedKeys=xe}else!z&&g.defaultExpandedKeys&&(D.expandedKeys=g.autoExpandParent||g.defaultExpandParent?(0,Ve.r7)(g.defaultExpandedKeys,ce):g.defaultExpandedKeys);if(D.expandedKeys||delete D.expandedKeys,Z||D.expandedKeys){var Fe=(0,Pe.oH)(Z||P.treeData,D.expandedKeys||P.expandedKeys,te);D.flattenNodes=Fe}if(g.selectable&&(U("selectedKeys")?D.selectedKeys=(0,Ve.BT)(g.selectedKeys,g):!z&&g.defaultSelectedKeys&&(D.selectedKeys=(0,Ve.BT)(g.defaultSelectedKeys,g))),g.checkable){var Ie;if(U("checkedKeys")?Ie=(0,Ve.E6)(g.checkedKeys)||{}:!z&&g.defaultCheckedKeys?Ie=(0,Ve.E6)(g.defaultCheckedKeys)||{}:Z&&(Ie=(0,Ve.E6)(g.checkedKeys)||{checkedKeys:P.checkedKeys,halfCheckedKeys:P.halfCheckedKeys}),Ie){var de=Ie,Le=de.checkedKeys,Oe=Le===void 0?[]:Le,De=de.halfCheckedKeys,at=De===void 0?[]:De;if(!g.checkStrictly){var Et=(0,dt.S)(Oe,!0,ce);Oe=Et.checkedKeys,at=Et.halfCheckedKeys}D.checkedKeys=Oe,D.halfCheckedKeys=at}}return U("loadedKeys")&&(D.loadedKeys=g.loadedKeys),D}}]),ie}(v.Component);(0,s.Z)(be,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:p,allowDrop:function(){return!0},expandAction:!1}),(0,s.Z)(be,"TreeNode",K.Z);var E=be,B=E},82661:function(Zt,Ke,l){"use strict";l.d(Ke,{BT:function(){return v},E6:function(){return p},L0:function(){return s},OM:function(){return o},_5:function(){return e},r7:function(){return m},wA:function(){return t},yx:function(){return c}});var T=l(95190),A=l(93664),j=l(48736),X=l(59301),V=l(639),h=l(65065),H=l(34061),$=null;function e(f,u){if(!f)return[];var k=f.slice(),I=k.indexOf(u);return I>=0&&k.splice(I,1),k}function s(f,u){var k=(f||[]).slice();return k.indexOf(u)===-1&&k.push(u),k}function c(f){return f.split("-")}function t(f,u){var k=[],I=(0,h.Z)(u,f);function F(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];K.forEach(function(G){var W=G.key,Pe=G.children;k.push(W),F(Pe)})}return F(I.children),k}function r(f){if(f.parent){var u=c(f.pos);return Number(u[u.length-1])===f.parent.children.length-1}return!1}function i(f){var u=c(f.pos);return Number(u[u.length-1])===0}function o(f,u,k,I,F,K,G,W,Pe,w){var _,x=f.clientX,N=f.clientY,C=f.target.getBoundingClientRect(),y=C.top,n=C.height,a=(w==="rtl"?-1:1)*(((F==null?void 0:F.x)||0)-x),d=(a-12)/I,M=Pe.filter(function(B){var O;return(O=W[B])===null||O===void 0||(O=O.children)===null||O===void 0?void 0:O.length}),ae=(0,h.Z)(W,k.eventKey);if(N<y+n/2){var he=G.findIndex(function(B){return B.key===ae.key}),ge=he<=0?0:he-1,Ae=G[ge].key;ae=(0,h.Z)(W,Ae)}var We=ae.key,vt=ae,ye=ae.key,Ve=0,dt=0;if(!M.includes(We))for(var Rt=0;Rt<d&&r(ae);Rt+=1)ae=ae.parent,dt+=1;var ot=u.data,be=ae.node,E=!0;return i(ae)&&ae.level===0&&N<y+n/2&&K({dragNode:ot,dropNode:be,dropPosition:-1})&&ae.key===k.eventKey?Ve=-1:(vt.children||[]).length&&M.includes(ye)?K({dragNode:ot,dropNode:be,dropPosition:0})?Ve=0:E=!1:dt===0?d>-1.5?K({dragNode:ot,dropNode:be,dropPosition:1})?Ve=1:E=!1:K({dragNode:ot,dropNode:be,dropPosition:0})?Ve=0:K({dragNode:ot,dropNode:be,dropPosition:1})?Ve=1:E=!1:K({dragNode:ot,dropNode:be,dropPosition:1})?Ve=1:E=!1,{dropPosition:Ve,dropLevelOffset:dt,dropTargetKey:ae.key,dropTargetPos:ae.pos,dragOverNodeKey:ye,dropContainerKey:Ve===0?null:((_=ae.parent)===null||_===void 0?void 0:_.key)||null,dropAllowed:E}}function v(f,u){if(f){var k=u.multiple;return k?f.slice():f.length?[f[0]]:f}}var b=function(u){return u};function S(f,u){if(!f)return[];var k=u||{},I=k.processProps,F=I===void 0?b:I,K=Array.isArray(f)?f:[f];return K.map(function(G){var W=G.children,Pe=_objectWithoutProperties(G,$),w=S(W,u);return React.createElement(TreeNode,_extends({key:Pe.key},F(Pe)),w)})}function p(f){if(!f)return null;var u;if(Array.isArray(f))u={checkedKeys:f,halfCheckedKeys:void 0};else if((0,A.Z)(f)==="object")u={checkedKeys:f.checked||void 0,halfCheckedKeys:f.halfChecked||void 0};else return(0,j.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return u}function m(f,u){var k=new Set;function I(F){if(!k.has(F)){var K=(0,h.Z)(u,F);if(K){k.add(F);var G=K.parent,W=K.node;W.disabled||G&&I(G.key)}}}return(f||[]).forEach(function(F){I(F)}),(0,T.Z)(k)}},34643:function(Zt,Ke,l){"use strict";l.d(Ke,{S:function(){return H}});var T=l(48736),A=l(65065);function j($,e){var s=new Set;return $.forEach(function(c){e.has(c)||s.add(c)}),s}function X($){var e=$||{},s=e.disabled,c=e.disableCheckbox,t=e.checkable;return!!(s||c)||t===!1}function V($,e,s,c){for(var t=new Set($),r=new Set,i=0;i<=s;i+=1){var o=e.get(i)||new Set;o.forEach(function(p){var m=p.key,f=p.node,u=p.children,k=u===void 0?[]:u;t.has(m)&&!c(f)&&k.filter(function(I){return!c(I.node)}).forEach(function(I){t.add(I.key)})})}for(var v=new Set,b=s;b>=0;b-=1){var S=e.get(b)||new Set;S.forEach(function(p){var m=p.parent,f=p.node;if(!(c(f)||!p.parent||v.has(p.parent.key))){if(c(p.parent.node)){v.add(m.key);return}var u=!0,k=!1;(m.children||[]).filter(function(I){return!c(I.node)}).forEach(function(I){var F=I.key,K=t.has(F);u&&!K&&(u=!1),!k&&(K||r.has(F))&&(k=!0)}),u&&t.add(m.key),k&&r.add(m.key),v.add(m.key)}})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(j(r,t))}}function h($,e,s,c,t){for(var r=new Set($),i=new Set(e),o=0;o<=c;o+=1){var v=s.get(o)||new Set;v.forEach(function(m){var f=m.key,u=m.node,k=m.children,I=k===void 0?[]:k;!r.has(f)&&!i.has(f)&&!t(u)&&I.filter(function(F){return!t(F.node)}).forEach(function(F){r.delete(F.key)})})}i=new Set;for(var b=new Set,S=c;S>=0;S-=1){var p=s.get(S)||new Set;p.forEach(function(m){var f=m.parent,u=m.node;if(!(t(u)||!m.parent||b.has(m.parent.key))){if(t(m.parent.node)){b.add(f.key);return}var k=!0,I=!1;(f.children||[]).filter(function(F){return!t(F.node)}).forEach(function(F){var K=F.key,G=r.has(K);k&&!G&&(k=!1),!I&&(G||i.has(K))&&(I=!0)}),k||r.delete(f.key),I&&i.add(f.key),b.add(f.key)}})}return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(j(i,r))}}function H($,e,s,c){var t=[],r;c?r=c:r=X;var i=new Set($.filter(function(S){var p=!!(0,A.Z)(s,S);return p||t.push(S),p})),o=new Map,v=0;Object.keys(s).forEach(function(S){var p=s[S],m=p.level,f=o.get(m);f||(f=new Set,o.set(m,f)),f.add(p),v=Math.max(v,m)}),(0,T.ZP)(!t.length,"Tree missing follow keys: ".concat(t.slice(0,100).map(function(S){return"'".concat(S,"'")}).join(", ")));var b;return e===!0?b=V(i,o,v,r):b=h(i,e.halfCheckedKeys,o,v,r),b}},65065:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return T}});function T(A,j){return A[j]}},34061:function(Zt,Ke,l){"use strict";l.d(Ke,{F:function(){return m},H8:function(){return p},I8:function(){return S},km:function(){return t},oH:function(){return v},w$:function(){return r},zn:function(){return o}});var T=l(93664),A=l(95190),j=l(20439),X=l(62646),V=l(11592),h=l(2738),H=l(48736),$=l(65065),e=["children"];function s(f,u){return"".concat(f,"-").concat(u)}function c(f){return f&&f.type&&f.type.isTreeNode}function t(f,u){return f!=null?f:u}function r(f){var u=f||{},k=u.title,I=u._title,F=u.key,K=u.children,G=k||"title";return{title:G,_title:I||[G],key:F||"key",children:K||"children"}}function i(f,u){var k=new Map;function I(F){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(F||[]).forEach(function(G){var W=G[u.key],Pe=G[u.children];warning(W!=null,"Tree node must have a certain key: [".concat(K).concat(W,"]"));var w=String(W);warning(!k.has(w)||W===null||W===void 0,"Same 'key' exist in the Tree: ".concat(w)),k.set(w,!0),I(Pe,"".concat(K).concat(w," > "))})}I(f)}function o(f){function u(k){var I=(0,V.Z)(k);return I.map(function(F){if(!c(F))return(0,H.ZP)(!F,"Tree/TreeNode can only accept TreeNode as children."),null;var K=F.key,G=F.props,W=G.children,Pe=(0,X.Z)(G,e),w=(0,j.Z)({key:K},Pe),_=u(W);return _.length&&(w.children=_),w}).filter(function(F){return F})}return u(f)}function v(f,u,k){var I=r(k),F=I._title,K=I.key,G=I.children,W=new Set(u===!0?[]:u),Pe=[];function w(_){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _.map(function(N,C){for(var y=s(x?x.pos:"0",C),n=t(N[K],y),a,d=0;d<F.length;d+=1){var M=F[d];if(N[M]!==void 0){a=N[M];break}}var ae=Object.assign((0,h.Z)(N,[].concat((0,A.Z)(F),[K,G])),{title:a,key:n,parent:x,pos:y,children:null,data:N,isStart:[].concat((0,A.Z)(x?x.isStart:[]),[C===0]),isEnd:[].concat((0,A.Z)(x?x.isEnd:[]),[C===_.length-1])});return Pe.push(ae),u===!0||W.has(n)?ae.children=w(N[G]||[],ae):ae.children=[],ae})}return w(f),Pe}function b(f,u,k){var I={};(0,T.Z)(k)==="object"?I=k:I={externalGetKey:k},I=I||{};var F=I,K=F.childrenPropName,G=F.externalGetKey,W=F.fieldNames,Pe=r(W),w=Pe.key,_=Pe.children,x=K||_,N;G?typeof G=="string"?N=function(n){return n[G]}:typeof G=="function"&&(N=function(n){return G(n)}):N=function(n,a){return t(n[w],a)};function C(y,n,a,d){var M=y?y[x]:f,ae=y?s(a.pos,n):"0",he=y?[].concat((0,A.Z)(d),[y]):[];if(y){var ge=N(y,ae),Ae={node:y,index:n,pos:ae,key:ge,parentPos:a.node?a.pos:null,level:a.level+1,nodes:he};u(Ae)}M&&M.forEach(function(We,vt){C(We,vt,{node:y,pos:ae,level:a?a.level+1:-1},he)})}C(null)}function S(f){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=u.initWrapper,I=u.processEntity,F=u.onProcessFinished,K=u.externalGetKey,G=u.childrenPropName,W=u.fieldNames,Pe=arguments.length>2?arguments[2]:void 0,w=K||Pe,_={},x={},N={posEntities:_,keyEntities:x};return k&&(N=k(N)||N),b(f,function(C){var y=C.node,n=C.index,a=C.pos,d=C.key,M=C.parentPos,ae=C.level,he=C.nodes,ge={node:y,nodes:he,index:n,key:d,pos:a,level:ae},Ae=t(d,a);_[a]=ge,x[Ae]=ge,ge.parent=_[M],ge.parent&&(ge.parent.children=ge.parent.children||[],ge.parent.children.push(ge)),I&&I(ge,N)},{externalGetKey:w,childrenPropName:G,fieldNames:W}),F&&F(N),N}function p(f,u){var k=u.expandedKeys,I=u.selectedKeys,F=u.loadedKeys,K=u.loadingKeys,G=u.checkedKeys,W=u.halfCheckedKeys,Pe=u.dragOverNodeKey,w=u.dropPosition,_=u.keyEntities,x=(0,$.Z)(_,f),N={eventKey:f,expanded:k.indexOf(f)!==-1,selected:I.indexOf(f)!==-1,loaded:F.indexOf(f)!==-1,loading:K.indexOf(f)!==-1,checked:G.indexOf(f)!==-1,halfChecked:W.indexOf(f)!==-1,pos:String(x?x.pos:""),dragOver:Pe===f&&w===0,dragOverGapTop:Pe===f&&w===-1,dragOverGapBottom:Pe===f&&w===1};return N}function m(f){var u=f.data,k=f.expanded,I=f.selected,F=f.checked,K=f.loaded,G=f.loading,W=f.halfChecked,Pe=f.dragOver,w=f.dragOverGapTop,_=f.dragOverGapBottom,x=f.pos,N=f.active,C=f.eventKey,y=(0,j.Z)((0,j.Z)({},u),{},{expanded:k,selected:I,checked:F,loaded:K,loading:G,halfChecked:W,dragOver:Pe,dragOverGapTop:w,dragOverGapBottom:_,pos:x,active:N,key:C});return"props"in y||Object.defineProperty(y,"props",{get:function(){return(0,H.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),f}}),y}},8224:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return A}});var T=l(4676);function A(j,X,V,h){var H=T.unstable_batchedUpdates?function(e){T.unstable_batchedUpdates(V,e)}:V;return j!=null&&j.addEventListener&&j.addEventListener(X,H,h),{remove:function(){j!=null&&j.removeEventListener&&j.removeEventListener(X,H,h)}}}},24514:function(Zt,Ke,l){"use strict";l.d(Ke,{G:function(){return X}});var T=l(47273),A=function(h){if((0,T.Z)()&&window.document.documentElement){var H=Array.isArray(h)?h:[h],$=window.document.documentElement;return H.some(function(e){return e in $.style})}return!1},j=function(h,H){if(!A(h))return!1;var $=document.createElement("div"),e=$.style[h];return $.style[h]=H,$.style[h]!==e};function X(V,h){return!Array.isArray(V)&&h!==void 0?j(V,h):A(V)}},49658:function(Zt,Ke){"use strict";Ke.Z=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))}},65283:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return ot}});var T=l(14809),A=l(93664),j=l(20439),X=l(4635),V=l(50298),h=l(62646),H=l(92310),$=l.n(H),e=l(29301),s=l(70425),c=l(34280),t=l(59301),r=l(4676),i=t.forwardRef(function(be,E){var B=be.height,O=be.offsetY,q=be.offsetX,ie=be.children,R=be.prefixCls,g=be.onInnerResize,P=be.innerProps,z=be.rtl,D=be.extra,U={},Z={display:"flex",flexDirection:"column"};return O!==void 0&&(U={height:B,position:"relative",overflow:"hidden"},Z=(0,j.Z)((0,j.Z)({},Z),{},(0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)({transform:"translateY(".concat(O,"px)")},z?"marginRight":"marginLeft",-q),"position","absolute"),"left",0),"right",0),"top",0))),t.createElement("div",{style:U},t.createElement(e.Z,{onResize:function(J){var ce=J.offsetHeight;ce&&g&&g()}},t.createElement("div",(0,T.Z)({style:Z,className:$()((0,X.Z)({},"".concat(R,"-holder-inner"),R)),ref:E},P),ie,D)))});i.displayName="Filler";var o=i;function v(be){var E=be.children,B=be.setRef,O=t.useCallback(function(q){B(q)},[]);return t.cloneElement(E,{ref:O})}function b(be,E,B,O,q,ie,R,g){var P=g.getKey;return be.slice(E,B+1).map(function(z,D){var U=E+D,Z=R(z,U,{style:{width:O},offsetX:q}),te=P(z);return t.createElement(v,{key:te,setRef:function(ce){return ie(z,ce)}},Z)})}function S(be,E,B,O){var q=B-be,ie=E-B,R=Math.min(q,ie)*2;if(O<=R){var g=Math.floor(O/2);return O%2?B+g+1:B-g}return q>ie?B-(O-ie):B+(O-q)}function p(be,E,B){var O=be.length,q=E.length,ie,R;if(O===0&&q===0)return null;O<q?(ie=be,R=E):(ie=E,R=be);var g={__EMPTY_ITEM__:!0};function P(J){return J!==void 0?B(J):g}for(var z=null,D=Math.abs(O-q)!==1,U=0;U<R.length;U+=1){var Z=P(ie[U]),te=P(R[U]);if(Z!==te){z=U,D=D||Z!==P(R[U+1]);break}}return z===null?null:{index:z,multiple:D}}function m(be,E,B){var O=t.useState(be),q=(0,V.Z)(O,2),ie=q[0],R=q[1],g=t.useState(null),P=(0,V.Z)(g,2),z=P[0],D=P[1];return t.useEffect(function(){var U=p(ie||[],be||[],E);(U==null?void 0:U.index)!==void 0&&(B==null||B(U.index),D(be[U.index])),R(be)},[be]),[z]}var f=l(16089),u=(typeof navigator=="undefined"?"undefined":(0,A.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),k=u,I=function(be,E,B,O){var q=(0,t.useRef)(!1),ie=(0,t.useRef)(null);function R(){clearTimeout(ie.current),q.current=!0,ie.current=setTimeout(function(){q.current=!1},50)}var g=(0,t.useRef)({top:be,bottom:E,left:B,right:O});return g.current.top=be,g.current.bottom=E,g.current.left=B,g.current.right=O,function(P,z){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,U=P?z<0&&g.current.left||z>0&&g.current.right:z<0&&g.current.top||z>0&&g.current.bottom;return D&&U?(clearTimeout(ie.current),q.current=!1):(!U||q.current)&&R(),!q.current&&U}};function F(be,E,B,O,q,ie,R){var g=(0,t.useRef)(0),P=(0,t.useRef)(null),z=(0,t.useRef)(null),D=(0,t.useRef)(!1),U=I(E,B,O,q);function Z(Fe,Ie){if(f.Z.cancel(P.current),!U(!1,Ie)){var de=Fe;if(!de._virtualHandled)de._virtualHandled=!0;else return;g.current+=Ie,z.current=Ie,k||de.preventDefault(),P.current=(0,f.Z)(function(){var Le=D.current?10:1;R(g.current*Le,!1),g.current=0})}}function te(Fe,Ie){R(Ie,!0),k||Fe.preventDefault()}var J=(0,t.useRef)(null),ce=(0,t.useRef)(null);function Ee(Fe){if(be){f.Z.cancel(ce.current),ce.current=(0,f.Z)(function(){J.current=null},2);var Ie=Fe.deltaX,de=Fe.deltaY,Le=Fe.shiftKey,Oe=Ie,De=de;(J.current==="sx"||!J.current&&Le&&de&&!Ie)&&(Oe=de,De=0,J.current="sx");var at=Math.abs(Oe),Et=Math.abs(De);J.current===null&&(J.current=ie&&at>Et?"x":"y"),J.current==="y"?Z(Fe,De):te(Fe,Oe)}}function xe(Fe){be&&(D.current=Fe.detail===z.current)}return[Ee,xe]}function K(be,E,B,O){var q=t.useMemo(function(){return[new Map,[]]},[be,B.id,O]),ie=(0,V.Z)(q,2),R=ie[0],g=ie[1],P=function(D){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,Z=R.get(D),te=R.get(U);if(Z===void 0||te===void 0)for(var J=be.length,ce=g.length;ce<J;ce+=1){var Ee,xe=be[ce],Fe=E(xe);R.set(Fe,ce);var Ie=(Ee=B.get(Fe))!==null&&Ee!==void 0?Ee:O;if(g[ce]=(g[ce-1]||0)+Ie,Fe===D&&(Z=ce),Fe===U&&(te=ce),Z!==void 0&&te!==void 0)break}return{top:g[Z-1]||0,bottom:g[te]}};return P}var G=l(99153),W=l(84851),Pe=function(){function be(){(0,G.Z)(this,be),(0,X.Z)(this,"maps",void 0),(0,X.Z)(this,"id",0),(0,X.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,W.Z)(be,[{key:"set",value:function(B,O){this.diffRecords.set(B,this.maps[B]),this.maps[B]=O,this.id+=1}},{key:"get",value:function(B){return this.maps[B]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),be}(),w=Pe;function _(be){var E=parseFloat(be);return isNaN(E)?0:E}function x(be,E,B){var O=t.useState(0),q=(0,V.Z)(O,2),ie=q[0],R=q[1],g=(0,t.useRef)(new Map),P=(0,t.useRef)(new w),z=(0,t.useRef)(0);function D(){z.current+=1}function U(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;D();var J=function(){var xe=!1;g.current.forEach(function(Fe,Ie){if(Fe&&Fe.offsetParent){var de=Fe.offsetHeight,Le=getComputedStyle(Fe),Oe=Le.marginTop,De=Le.marginBottom,at=_(Oe),Et=_(De),et=de+at+Et;P.current.get(Ie)!==et&&(P.current.set(Ie,et),xe=!0)}}),xe&&R(function(Fe){return Fe+1})};if(te)J();else{z.current+=1;var ce=z.current;Promise.resolve().then(function(){ce===z.current&&J()})}}function Z(te,J){var ce=be(te),Ee=g.current.get(ce);J?(g.current.set(ce,J),U()):g.current.delete(ce),!Ee!=!J&&(J?E==null||E(te):B==null||B(te))}return(0,t.useEffect)(function(){return D},[]),[Z,U,P.current,ie]}var N=14/15;function C(be,E,B){var O=(0,t.useRef)(!1),q=(0,t.useRef)(0),ie=(0,t.useRef)(0),R=(0,t.useRef)(null),g=(0,t.useRef)(null),P,z=function(te){if(O.current){var J=Math.ceil(te.touches[0].pageX),ce=Math.ceil(te.touches[0].pageY),Ee=q.current-J,xe=ie.current-ce,Fe=Math.abs(Ee)>Math.abs(xe);Fe?q.current=J:ie.current=ce;var Ie=B(Fe,Fe?Ee:xe,!1,te);Ie&&te.preventDefault(),clearInterval(g.current),Ie&&(g.current=setInterval(function(){Fe?Ee*=N:xe*=N;var de=Math.floor(Fe?Ee:xe);(!B(Fe,de,!0)||Math.abs(de)<=.1)&&clearInterval(g.current)},16))}},D=function(){O.current=!1,P()},U=function(te){P(),te.touches.length===1&&!O.current&&(O.current=!0,q.current=Math.ceil(te.touches[0].pageX),ie.current=Math.ceil(te.touches[0].pageY),R.current=te.target,R.current.addEventListener("touchmove",z,{passive:!1}),R.current.addEventListener("touchend",D,{passive:!0}))};P=function(){R.current&&(R.current.removeEventListener("touchmove",z),R.current.removeEventListener("touchend",D))},(0,c.Z)(function(){return be&&E.current.addEventListener("touchstart",U,{passive:!0}),function(){var Z;(Z=E.current)===null||Z===void 0||Z.removeEventListener("touchstart",U),P(),clearInterval(g.current)}},[be])}function y(be){return Math.floor(Math.pow(be,.5))}function n(be,E){var B="touches"in be?be.touches[0]:be;return B[E?"pageX":"pageY"]-window[E?"scrollX":"scrollY"]}function a(be,E,B){t.useEffect(function(){var O=E.current;if(be&&O){var q=!1,ie,R,g=function(){f.Z.cancel(ie)},P=function Z(){g(),ie=(0,f.Z)(function(){B(R),Z()})},z=function(te){if(!(te.target.draggable||te.button!==0)){var J=te;J._virtualHandled||(J._virtualHandled=!0,q=!0)}},D=function(){q=!1,g()},U=function(te){if(q){var J=n(te,!1),ce=O.getBoundingClientRect(),Ee=ce.top,xe=ce.bottom;if(J<=Ee){var Fe=Ee-J;R=-y(Fe),P()}else if(J>=xe){var Ie=J-xe;R=y(Ie),P()}else g()}};return O.addEventListener("mousedown",z),O.ownerDocument.addEventListener("mouseup",D),O.ownerDocument.addEventListener("mousemove",U),function(){O.removeEventListener("mousedown",z),O.ownerDocument.removeEventListener("mouseup",D),O.ownerDocument.removeEventListener("mousemove",U),g()}}},[be])}var d=10;function M(be,E,B,O,q,ie,R,g){var P=t.useRef(),z=t.useState(null),D=(0,V.Z)(z,2),U=D[0],Z=D[1];return(0,c.Z)(function(){if(U&&U.times<d){if(!be.current){Z(function(Mt){return(0,j.Z)({},Mt)});return}ie();var te=U.targetAlign,J=U.originAlign,ce=U.index,Ee=U.offset,xe=be.current.clientHeight,Fe=!1,Ie=te,de=null;if(xe){for(var Le=te||J,Oe=0,De=0,at=0,Et=Math.min(E.length-1,ce),et=0;et<=Et;et+=1){var Tt=q(E[et]);De=Oe;var tn=B.get(Tt);at=De+(tn===void 0?O:tn),Oe=at}for(var pt=Le==="top"?Ee:xe-Ee,st=Et;st>=0;st-=1){var bt=q(E[st]),Qt=B.get(bt);if(Qt===void 0){Fe=!0;break}if(pt-=Qt,pt<=0)break}switch(Le){case"top":de=De-Ee;break;case"bottom":de=at-xe+Ee;break;default:{var kt=be.current.scrollTop,Lt=kt+xe;De<kt?Ie="top":at>Lt&&(Ie="bottom")}}de!==null&&R(de),de!==U.lastTop&&(Fe=!0)}Fe&&Z((0,j.Z)((0,j.Z)({},U),{},{times:U.times+1,targetAlign:Ie,lastTop:de}))}},[U,be.current]),function(te){if(te==null){g();return}if(f.Z.cancel(P.current),typeof te=="number")R(te);else if(te&&(0,A.Z)(te)==="object"){var J,ce=te.align;"index"in te?J=te.index:J=E.findIndex(function(Fe){return q(Fe)===te.key});var Ee=te.offset,xe=Ee===void 0?0:Ee;Z({times:0,index:J,offset:xe,originAlign:ce})}}}var ae=t.forwardRef(function(be,E){var B=be.prefixCls,O=be.rtl,q=be.scrollOffset,ie=be.scrollRange,R=be.onStartMove,g=be.onStopMove,P=be.onScroll,z=be.horizontal,D=be.spinSize,U=be.containerSize,Z=be.style,te=be.thumbStyle,J=be.showScrollBar,ce=t.useState(!1),Ee=(0,V.Z)(ce,2),xe=Ee[0],Fe=Ee[1],Ie=t.useState(null),de=(0,V.Z)(Ie,2),Le=de[0],Oe=de[1],De=t.useState(null),at=(0,V.Z)(De,2),Et=at[0],et=at[1],Tt=!O,tn=t.useRef(),pt=t.useRef(),st=t.useState(J),bt=(0,V.Z)(st,2),Qt=bt[0],kt=bt[1],Lt=t.useRef(),Mt=function(){J===!0||J===!1||(clearTimeout(Lt.current),kt(!0),Lt.current=setTimeout(function(){kt(!1)},3e3))},sn=ie-U||0,qe=U-D||0,ut=t.useMemo(function(){if(q===0||sn===0)return 0;var En=q/sn;return En*qe},[q,sn,qe]),yt=function(On){On.stopPropagation(),On.preventDefault()},kn=t.useRef({top:ut,dragging:xe,pageY:Le,startTop:Et});kn.current={top:ut,dragging:xe,pageY:Le,startTop:Et};var vn=function(On){Fe(!0),Oe(n(On,z)),et(kn.current.top),R(),On.stopPropagation(),On.preventDefault()};t.useEffect(function(){var En=function(Zn){Zn.preventDefault()},On=tn.current,gn=pt.current;return On.addEventListener("touchstart",En,{passive:!1}),gn.addEventListener("touchstart",vn,{passive:!1}),function(){On.removeEventListener("touchstart",En),gn.removeEventListener("touchstart",vn)}},[]);var Fn=t.useRef();Fn.current=sn;var zn=t.useRef();zn.current=qe,t.useEffect(function(){if(xe){var En,On=function(Zn){var cn=kn.current,nn=cn.dragging,Ln=cn.pageY,Wn=cn.startTop;f.Z.cancel(En);var ne=tn.current.getBoundingClientRect(),Q=U/(z?ne.width:ne.height);if(nn){var Ue=(n(Zn,z)-Ln)*Q,Ze=Wn;!Tt&&z?Ze-=Ue:Ze+=Ue;var Xe=Fn.current,Je=zn.current,we=Je?Ze/Je:0,pe=Math.ceil(we*Xe);pe=Math.max(pe,0),pe=Math.min(pe,Xe),En=(0,f.Z)(function(){P(pe,z)})}},gn=function(){Fe(!1),g()};return window.addEventListener("mousemove",On,{passive:!0}),window.addEventListener("touchmove",On,{passive:!0}),window.addEventListener("mouseup",gn,{passive:!0}),window.addEventListener("touchend",gn,{passive:!0}),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",gn),window.removeEventListener("touchend",gn),f.Z.cancel(En)}}},[xe]),t.useEffect(function(){return Mt(),function(){clearTimeout(Lt.current)}},[q]),t.useImperativeHandle(E,function(){return{delayHidden:Mt}});var bn="".concat(B,"-scrollbar"),zt={position:"absolute",visibility:Qt?null:"hidden"},Nn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return z?(zt.height=8,zt.left=0,zt.right=0,zt.bottom=0,Nn.height="100%",Nn.width=D,Tt?Nn.left=ut:Nn.right=ut):(zt.width=8,zt.top=0,zt.bottom=0,Tt?zt.right=0:zt.left=0,Nn.width="100%",Nn.height=D,Nn.top=ut),t.createElement("div",{ref:tn,className:$()(bn,(0,X.Z)((0,X.Z)((0,X.Z)({},"".concat(bn,"-horizontal"),z),"".concat(bn,"-vertical"),!z),"".concat(bn,"-visible"),Qt)),style:(0,j.Z)((0,j.Z)({},zt),Z),onMouseDown:yt,onMouseMove:Mt},t.createElement("div",{ref:pt,className:$()("".concat(bn,"-thumb"),(0,X.Z)({},"".concat(bn,"-thumb-moving"),xe)),style:(0,j.Z)((0,j.Z)({},Nn),te),onMouseDown:vn}))}),he=ae,ge=20;function Ae(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,B=be/E*be;return isNaN(B)&&(B=0),B=Math.max(B,ge),Math.floor(B)}var We=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],vt=[],ye={overflowY:"auto",overflowAnchor:"none"};function Ve(be,E){var B=be.prefixCls,O=B===void 0?"rc-virtual-list":B,q=be.className,ie=be.height,R=be.itemHeight,g=be.fullHeight,P=g===void 0?!0:g,z=be.style,D=be.data,U=be.children,Z=be.itemKey,te=be.virtual,J=be.direction,ce=be.scrollWidth,Ee=be.component,xe=Ee===void 0?"div":Ee,Fe=be.onScroll,Ie=be.onVirtualScroll,de=be.onVisibleChange,Le=be.innerProps,Oe=be.extraRender,De=be.styles,at=be.showScrollBar,Et=at===void 0?"optional":at,et=(0,h.Z)(be,We),Tt=t.useCallback(function(re){return typeof Z=="function"?Z(re):re==null?void 0:re[Z]},[Z]),tn=x(Tt,null,null),pt=(0,V.Z)(tn,4),st=pt[0],bt=pt[1],Qt=pt[2],kt=pt[3],Lt=!!(te!==!1&&ie&&R),Mt=t.useMemo(function(){return Object.values(Qt.maps).reduce(function(re,ue){return re+ue},0)},[Qt.id,Qt.maps]),sn=Lt&&D&&(Math.max(R*D.length,Mt)>ie||!!ce),qe=J==="rtl",ut=$()(O,(0,X.Z)({},"".concat(O,"-rtl"),qe),q),yt=D||vt,kn=(0,t.useRef)(),vn=(0,t.useRef)(),Fn=(0,t.useRef)(),zn=(0,t.useState)(0),bn=(0,V.Z)(zn,2),zt=bn[0],Nn=bn[1],En=(0,t.useState)(0),On=(0,V.Z)(En,2),gn=On[0],Cn=On[1],Zn=(0,t.useState)(!1),cn=(0,V.Z)(Zn,2),nn=cn[0],Ln=cn[1],Wn=function(){Ln(!0)},ne=function(){Ln(!1)},Q={getKey:Tt};function Ue(re){Nn(function(ue){var _e;typeof re=="function"?_e=re(ue):_e=re;var Ce=Kt(_e);return kn.current.scrollTop=Ce,Ce})}var Ze=(0,t.useRef)({start:0,end:yt.length}),Xe=(0,t.useRef)(),Je=m(yt,Tt),we=(0,V.Z)(Je,1),pe=we[0];Xe.current=pe;var ze=t.useMemo(function(){if(!Lt)return{scrollHeight:void 0,start:0,end:yt.length-1,offset:void 0};if(!sn){var re;return{scrollHeight:((re=vn.current)===null||re===void 0?void 0:re.offsetHeight)||0,start:0,end:yt.length-1,offset:void 0}}for(var ue=0,_e,Ce,Ne,$e=yt.length,ht=0;ht<$e;ht+=1){var rt=yt[ht],Ot=Tt(rt),jt=Qt.get(Ot),Dt=ue+(jt===void 0?R:jt);Dt>=zt&&_e===void 0&&(_e=ht,Ce=ue),Dt>zt+ie&&Ne===void 0&&(Ne=ht),ue=Dt}return _e===void 0&&(_e=0,Ce=0,Ne=Math.ceil(ie/R)),Ne===void 0&&(Ne=yt.length-1),Ne=Math.min(Ne+1,yt.length-1),{scrollHeight:ue,start:_e,end:Ne,offset:Ce}},[sn,Lt,zt,yt,kt,ie]),Ye=ze.scrollHeight,it=ze.start,wt=ze.end,nt=ze.offset;Ze.current.start=it,Ze.current.end=wt,t.useLayoutEffect(function(){var re=Qt.getRecord();if(re.size===1){var ue=Array.from(re.keys())[0],_e=re.get(ue),Ce=yt[it];if(Ce&&_e===void 0){var Ne=Tt(Ce);if(Ne===ue){var $e=Qt.get(ue),ht=$e-R;Ue(function(rt){return rt+ht})}}}Qt.resetRecord()},[Ye]);var He=t.useState({width:0,height:ie}),Y=(0,V.Z)(He,2),se=Y[0],fe=Y[1],ve=function(ue){fe({width:ue.offsetWidth,height:ue.offsetHeight})},Me=(0,t.useRef)(),je=(0,t.useRef)(),Te=t.useMemo(function(){return Ae(se.width,ce)},[se.width,ce]),Ge=t.useMemo(function(){return Ae(se.height,Ye)},[se.height,Ye]),Qe=Ye-ie,lt=(0,t.useRef)(Qe);lt.current=Qe;function Kt(re){var ue=re;return Number.isNaN(lt.current)||(ue=Math.min(ue,lt.current)),ue=Math.max(ue,0),ue}var ft=zt<=0,Ct=zt>=Qe,Ft=gn<=0,$t=gn>=ce,Ut=I(ft,Ct,Ft,$t),xt=function(){return{x:qe?-gn:gn,y:zt}},Pt=(0,t.useRef)(xt()),tt=(0,s.zX)(function(re){if(Ie){var ue=(0,j.Z)((0,j.Z)({},xt()),re);(Pt.current.x!==ue.x||Pt.current.y!==ue.y)&&(Ie(ue),Pt.current=ue)}});function ct(re,ue){var _e=re;ue?((0,r.flushSync)(function(){Cn(_e)}),tt()):Ue(_e)}function _t(re){var ue=re.currentTarget.scrollTop;ue!==zt&&Ue(ue),Fe==null||Fe(re),tt()}var Gt=function(ue){var _e=ue,Ce=ce?ce-se.width:0;return _e=Math.max(_e,0),_e=Math.min(_e,Ce),_e},At=(0,s.zX)(function(re,ue){ue?((0,r.flushSync)(function(){Cn(function(_e){var Ce=_e+(qe?-re:re);return Gt(Ce)})}),tt()):Ue(function(_e){var Ce=_e+re;return Ce})}),Vt=F(Lt,ft,Ct,Ft,$t,!!ce,At),An=(0,V.Z)(Vt,2),L=An[0],le=An[1];C(Lt,kn,function(re,ue,_e,Ce){var Ne=Ce;return Ut(re,ue,_e)?!1:!Ne||!Ne._virtualHandled?(Ne&&(Ne._virtualHandled=!0),L({preventDefault:function(){},deltaX:re?ue:0,deltaY:re?0:ue}),!0):!1}),a(sn,kn,function(re){Ue(function(ue){return ue+re})}),(0,c.Z)(function(){function re(_e){var Ce=ft&&_e.detail<0,Ne=Ct&&_e.detail>0;Lt&&!Ce&&!Ne&&_e.preventDefault()}var ue=kn.current;return ue.addEventListener("wheel",L,{passive:!1}),ue.addEventListener("DOMMouseScroll",le,{passive:!0}),ue.addEventListener("MozMousePixelScroll",re,{passive:!1}),function(){ue.removeEventListener("wheel",L),ue.removeEventListener("DOMMouseScroll",le),ue.removeEventListener("MozMousePixelScroll",re)}},[Lt,ft,Ct]),(0,c.Z)(function(){if(ce){var re=Gt(gn);Cn(re),tt({x:re})}},[se.width,ce]);var ee=function(){var ue,_e;(ue=Me.current)===null||ue===void 0||ue.delayHidden(),(_e=je.current)===null||_e===void 0||_e.delayHidden()},oe=M(kn,yt,Qt,R,Tt,function(){return bt(!0)},Ue,ee);t.useImperativeHandle(E,function(){return{nativeElement:Fn.current,getScrollInfo:xt,scrollTo:function(ue){function _e(Ce){return Ce&&(0,A.Z)(Ce)==="object"&&("left"in Ce||"top"in Ce)}_e(ue)?(ue.left!==void 0&&Cn(Gt(ue.left)),oe(ue.top)):oe(ue)}}}),(0,c.Z)(function(){if(de){var re=yt.slice(it,wt+1);de(re,yt)}},[it,wt,yt]);var me=K(yt,Tt,Qt,R),Se=Oe==null?void 0:Oe({start:it,end:wt,virtual:sn,offsetX:gn,offsetY:nt,rtl:qe,getSize:me}),Be=b(yt,it,wt,ce,gn,st,U,Q),ke=null;ie&&(ke=(0,j.Z)((0,X.Z)({},P?"height":"maxHeight",ie),ye),Lt&&(ke.overflowY="hidden",ce&&(ke.overflowX="hidden"),nn&&(ke.pointerEvents="none")));var Re={};return qe&&(Re.dir="rtl"),t.createElement("div",(0,T.Z)({ref:Fn,style:(0,j.Z)((0,j.Z)({},z),{},{position:"relative"}),className:ut},Re,et),t.createElement(e.Z,{onResize:ve},t.createElement(xe,{className:"".concat(O,"-holder"),style:ke,ref:kn,onScroll:_t,onMouseEnter:ee},t.createElement(o,{prefixCls:O,height:Ye,offsetX:gn,offsetY:nt,scrollWidth:ce,onInnerResize:bt,ref:vn,innerProps:Le,rtl:qe,extra:Se},Be))),sn&&Ye>ie&&t.createElement(he,{ref:Me,prefixCls:O,scrollOffset:zt,scrollRange:Ye,rtl:qe,onScroll:ct,onStartMove:Wn,onStopMove:ne,spinSize:Ge,containerSize:se.height,style:De==null?void 0:De.verticalScrollBar,thumbStyle:De==null?void 0:De.verticalScrollBarThumb,showScrollBar:Et}),sn&&ce>se.width&&t.createElement(he,{ref:je,prefixCls:O,scrollOffset:gn,scrollRange:ce,rtl:qe,onScroll:ct,onStartMove:Wn,onStopMove:ne,spinSize:Te,containerSize:se.width,horizontal:!0,style:De==null?void 0:De.horizontalScrollBar,thumbStyle:De==null?void 0:De.horizontalScrollBarThumb,showScrollBar:Et}))}var dt=t.forwardRef(Ve);dt.displayName="List";var Rt=dt,ot=Rt},83145:function(Zt,Ke,l){"use strict";Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.CopyToClipboard=void 0;var T=j(l(59301)),A=j(l(25769));function j(p){return p&&p.__esModule?p:{default:p}}function X(p){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?X=function(f){return typeof f}:X=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},X(p)}function V(p,m){var f=Object.keys(p);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(p);m&&(u=u.filter(function(k){return Object.getOwnPropertyDescriptor(p,k).enumerable})),f.push.apply(f,u)}return f}function h(p){for(var m=1;m<arguments.length;m++){var f=arguments[m]!=null?arguments[m]:{};m%2?V(f,!0).forEach(function(u){b(p,u,f[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(f)):V(f).forEach(function(u){Object.defineProperty(p,u,Object.getOwnPropertyDescriptor(f,u))})}return p}function H(p,m){if(p==null)return{};var f=$(p,m),u,k;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(p);for(k=0;k<I.length;k++)u=I[k],!(m.indexOf(u)>=0)&&Object.prototype.propertyIsEnumerable.call(p,u)&&(f[u]=p[u])}return f}function $(p,m){if(p==null)return{};var f={},u=Object.keys(p),k,I;for(I=0;I<u.length;I++)k=u[I],!(m.indexOf(k)>=0)&&(f[k]=p[k]);return f}function e(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function s(p,m){for(var f=0;f<m.length;f++){var u=m[f];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(p,u.key,u)}}function c(p,m,f){return m&&s(p.prototype,m),f&&s(p,f),p}function t(p,m){return m&&(X(m)==="object"||typeof m=="function")?m:i(p)}function r(p){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(f){return f.__proto__||Object.getPrototypeOf(f)},r(p)}function i(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function o(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),m&&v(p,m)}function v(p,m){return v=Object.setPrototypeOf||function(u,k){return u.__proto__=k,u},v(p,m)}function b(p,m,f){return m in p?Object.defineProperty(p,m,{value:f,enumerable:!0,configurable:!0,writable:!0}):p[m]=f,p}var S=function(p){o(m,p);function m(){var f,u;e(this,m);for(var k=arguments.length,I=new Array(k),F=0;F<k;F++)I[F]=arguments[F];return u=t(this,(f=r(m)).call.apply(f,[this].concat(I))),b(i(u),"onClick",function(K){var G=u.props,W=G.text,Pe=G.onCopy,w=G.children,_=G.options,x=T.default.Children.only(w),N=(0,A.default)(W,_);Pe&&Pe(W,N),x&&x.props&&typeof x.props.onClick=="function"&&x.props.onClick(K)}),u}return c(m,[{key:"render",value:function(){var u=this.props,k=u.text,I=u.onCopy,F=u.options,K=u.children,G=H(u,["text","onCopy","options","children"]),W=T.default.Children.only(K);return T.default.cloneElement(W,h({},G,{onClick:this.onClick}))}}]),m}(T.default.PureComponent);Ke.CopyToClipboard=S,b(S,"defaultProps",{onCopy:void 0,options:void 0})},56102:function(Zt,Ke,l){"use strict";var T=l(83145),A=T.CopyToClipboard;A.CopyToClipboard=A,Zt.exports=A},76374:function(Zt,Ke,l){"use strict";var T=function(){if(typeof Map!="undefined")return Map;function w(_,x){var N=-1;return _.some(function(C,y){return C[0]===x?(N=y,!0):!1}),N}return function(){function _(){this.__entries__=[]}return Object.defineProperty(_.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),_.prototype.get=function(x){var N=w(this.__entries__,x),C=this.__entries__[N];return C&&C[1]},_.prototype.set=function(x,N){var C=w(this.__entries__,x);~C?this.__entries__[C][1]=N:this.__entries__.push([x,N])},_.prototype.delete=function(x){var N=this.__entries__,C=w(N,x);~C&&N.splice(C,1)},_.prototype.has=function(x){return!!~w(this.__entries__,x)},_.prototype.clear=function(){this.__entries__.splice(0)},_.prototype.forEach=function(x,N){N===void 0&&(N=null);for(var C=0,y=this.__entries__;C<y.length;C++){var n=y[C];x.call(N,n[1],n[0])}},_}()}(),A=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,j=function(){return typeof l.g!="undefined"&&l.g.Math===Math?l.g:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),X=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(j):function(w){return setTimeout(function(){return w(Date.now())},1e3/60)}}(),V=2;function h(w,_){var x=!1,N=!1,C=0;function y(){x&&(x=!1,w()),N&&a()}function n(){X(y)}function a(){var d=Date.now();if(x){if(d-C<V)return;N=!0}else x=!0,N=!1,setTimeout(n,_);C=d}return a}var H=20,$=["top","right","bottom","left","width","height","size","weight"],e=typeof MutationObserver!="undefined",s=function(){function w(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=h(this.refresh.bind(this),H)}return w.prototype.addObserver=function(_){~this.observers_.indexOf(_)||this.observers_.push(_),this.connected_||this.connect_()},w.prototype.removeObserver=function(_){var x=this.observers_,N=x.indexOf(_);~N&&x.splice(N,1),!x.length&&this.connected_&&this.disconnect_()},w.prototype.refresh=function(){var _=this.updateObservers_();_&&this.refresh()},w.prototype.updateObservers_=function(){var _=this.observers_.filter(function(x){return x.gatherActive(),x.hasActive()});return _.forEach(function(x){return x.broadcastActive()}),_.length>0},w.prototype.connect_=function(){!A||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),e?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},w.prototype.disconnect_=function(){!A||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},w.prototype.onTransitionEnd_=function(_){var x=_.propertyName,N=x===void 0?"":x,C=$.some(function(y){return!!~N.indexOf(y)});C&&this.refresh()},w.getInstance=function(){return this.instance_||(this.instance_=new w),this.instance_},w.instance_=null,w}(),c=function(w,_){for(var x=0,N=Object.keys(_);x<N.length;x++){var C=N[x];Object.defineProperty(w,C,{value:_[C],enumerable:!1,writable:!1,configurable:!0})}return w},t=function(w){var _=w&&w.ownerDocument&&w.ownerDocument.defaultView;return _||j},r=k(0,0,0,0);function i(w){return parseFloat(w)||0}function o(w){for(var _=[],x=1;x<arguments.length;x++)_[x-1]=arguments[x];return _.reduce(function(N,C){var y=w["border-"+C+"-width"];return N+i(y)},0)}function v(w){for(var _=["top","right","bottom","left"],x={},N=0,C=_;N<C.length;N++){var y=C[N],n=w["padding-"+y];x[y]=i(n)}return x}function b(w){var _=w.getBBox();return k(0,0,_.width,_.height)}function S(w){var _=w.clientWidth,x=w.clientHeight;if(!_&&!x)return r;var N=t(w).getComputedStyle(w),C=v(N),y=C.left+C.right,n=C.top+C.bottom,a=i(N.width),d=i(N.height);if(N.boxSizing==="border-box"&&(Math.round(a+y)!==_&&(a-=o(N,"left","right")+y),Math.round(d+n)!==x&&(d-=o(N,"top","bottom")+n)),!m(w)){var M=Math.round(a+y)-_,ae=Math.round(d+n)-x;Math.abs(M)!==1&&(a-=M),Math.abs(ae)!==1&&(d-=ae)}return k(C.left,C.top,a,d)}var p=function(){return typeof SVGGraphicsElement!="undefined"?function(w){return w instanceof t(w).SVGGraphicsElement}:function(w){return w instanceof t(w).SVGElement&&typeof w.getBBox=="function"}}();function m(w){return w===t(w).document.documentElement}function f(w){return A?p(w)?b(w):S(w):r}function u(w){var _=w.x,x=w.y,N=w.width,C=w.height,y=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,n=Object.create(y.prototype);return c(n,{x:_,y:x,width:N,height:C,top:x,right:_+N,bottom:C+x,left:_}),n}function k(w,_,x,N){return{x:w,y:_,width:x,height:N}}var I=function(){function w(_){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=k(0,0,0,0),this.target=_}return w.prototype.isActive=function(){var _=f(this.target);return this.contentRect_=_,_.width!==this.broadcastWidth||_.height!==this.broadcastHeight},w.prototype.broadcastRect=function(){var _=this.contentRect_;return this.broadcastWidth=_.width,this.broadcastHeight=_.height,_},w}(),F=function(){function w(_,x){var N=u(x);c(this,{target:_,contentRect:N})}return w}(),K=function(){function w(_,x,N){if(this.activeObservations_=[],this.observations_=new T,typeof _!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=_,this.controller_=x,this.callbackCtx_=N}return w.prototype.observe=function(_){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(_ instanceof t(_).Element))throw new TypeError('parameter 1 is not of type "Element".');var x=this.observations_;x.has(_)||(x.set(_,new I(_)),this.controller_.addObserver(this),this.controller_.refresh())}},w.prototype.unobserve=function(_){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(_ instanceof t(_).Element))throw new TypeError('parameter 1 is not of type "Element".');var x=this.observations_;x.has(_)&&(x.delete(_),x.size||this.controller_.removeObserver(this))}},w.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},w.prototype.gatherActive=function(){var _=this;this.clearActive(),this.observations_.forEach(function(x){x.isActive()&&_.activeObservations_.push(x)})},w.prototype.broadcastActive=function(){if(this.hasActive()){var _=this.callbackCtx_,x=this.activeObservations_.map(function(N){return new F(N.target,N.broadcastRect())});this.callback_.call(_,x,_),this.clearActive()}},w.prototype.clearActive=function(){this.activeObservations_.splice(0)},w.prototype.hasActive=function(){return this.activeObservations_.length>0},w}(),G=typeof WeakMap!="undefined"?new WeakMap:new T,W=function(){function w(_){if(!(this instanceof w))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var x=s.getInstance(),N=new K(_,x,this);G.set(this,N)}return w}();["observe","unobserve","disconnect"].forEach(function(w){W.prototype[w]=function(){var _;return(_=G.get(this))[w].apply(_,arguments)}});var Pe=function(){return typeof j.ResizeObserver!="undefined"?j.ResizeObserver:W}();Ke.Z=Pe},98040:function(Zt){Zt.exports=function(){var Ke=document.getSelection();if(!Ke.rangeCount)return function(){};for(var l=document.activeElement,T=[],A=0;A<Ke.rangeCount;A++)T.push(Ke.getRangeAt(A));switch(l.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":l.blur();break;default:l=null;break}return Ke.removeAllRanges(),function(){Ke.type==="Caret"&&Ke.removeAllRanges(),Ke.rangeCount||T.forEach(function(j){Ke.addRange(j)}),l&&l.focus()}}},93314:function(Zt){"use strict";Zt.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(Zt,Ke,l){"use strict";l.d(Ke,{Z:function(){return $}});const T=e=>typeof e=="object"&&e!=null&&e.nodeType===1,A=(e,s)=>(!s||e!=="hidden")&&e!=="visible"&&e!=="clip",j=(e,s)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const c=getComputedStyle(e,null);return A(c.overflowY,s)||A(c.overflowX,s)||(t=>{const r=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(o){return null}})(t);return!!r&&(r.clientHeight<t.scrollHeight||r.clientWidth<t.scrollWidth)})(e)}return!1},X=(e,s,c,t,r,i,o,v)=>i<e&&o>s||i>e&&o<s?0:i<=e&&v<=c||o>=s&&v>=c?i-e-t:o>s&&v<c||i<e&&v>c?o-s+r:0,V=e=>{const s=e.parentElement;return s==null?e.getRootNode().host||null:s},h=(e,s)=>{var c,t,r,i;if(typeof document=="undefined")return[];const{scrollMode:o,block:v,inline:b,boundary:S,skipOverflowHiddenElements:p}=s,m=typeof S=="function"?S:he=>he!==S;if(!T(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,u=[];let k=e;for(;T(k)&&m(k);){if(k=V(k),k===f){u.push(k);break}k!=null&&k===document.body&&j(k)&&!j(document.documentElement)||k!=null&&j(k,p)&&u.push(k)}const I=(t=(c=window.visualViewport)==null?void 0:c.width)!=null?t:innerWidth,F=(i=(r=window.visualViewport)==null?void 0:r.height)!=null?i:innerHeight,{scrollX:K,scrollY:G}=window,{height:W,width:Pe,top:w,right:_,bottom:x,left:N}=e.getBoundingClientRect(),{top:C,right:y,bottom:n,left:a}=(he=>{const ge=window.getComputedStyle(he);return{top:parseFloat(ge.scrollMarginTop)||0,right:parseFloat(ge.scrollMarginRight)||0,bottom:parseFloat(ge.scrollMarginBottom)||0,left:parseFloat(ge.scrollMarginLeft)||0}})(e);let d=v==="start"||v==="nearest"?w-C:v==="end"?x+n:w+W/2-C+n,M=b==="center"?N+Pe/2-a+y:b==="end"?_+y:N-a;const ae=[];for(let he=0;he<u.length;he++){const ge=u[he],{height:Ae,width:We,top:vt,right:ye,bottom:Ve,left:dt}=ge.getBoundingClientRect();if(o==="if-needed"&&w>=0&&N>=0&&x<=F&&_<=I&&(ge===f&&!j(ge)||w>=vt&&x<=Ve&&N>=dt&&_<=ye))return ae;const Rt=getComputedStyle(ge),ot=parseInt(Rt.borderLeftWidth,10),be=parseInt(Rt.borderTopWidth,10),E=parseInt(Rt.borderRightWidth,10),B=parseInt(Rt.borderBottomWidth,10);let O=0,q=0;const ie="offsetWidth"in ge?ge.offsetWidth-ge.clientWidth-ot-E:0,R="offsetHeight"in ge?ge.offsetHeight-ge.clientHeight-be-B:0,g="offsetWidth"in ge?ge.offsetWidth===0?0:We/ge.offsetWidth:0,P="offsetHeight"in ge?ge.offsetHeight===0?0:Ae/ge.offsetHeight:0;if(f===ge)O=v==="start"?d:v==="end"?d-F:v==="nearest"?X(G,G+F,F,be,B,G+d,G+d+W,W):d-F/2,q=b==="start"?M:b==="center"?M-I/2:b==="end"?M-I:X(K,K+I,I,ot,E,K+M,K+M+Pe,Pe),O=Math.max(0,O+G),q=Math.max(0,q+K);else{O=v==="start"?d-vt-be:v==="end"?d-Ve+B+R:v==="nearest"?X(vt,Ve,Ae,be,B+R,d,d+W,W):d-(vt+Ae/2)+R/2,q=b==="start"?M-dt-ot:b==="center"?M-(dt+We/2)+ie/2:b==="end"?M-ye+E+ie:X(dt,ye,We,ot,E+ie,M,M+Pe,Pe);const{scrollLeft:z,scrollTop:D}=ge;O=P===0?0:Math.max(0,Math.min(D+O/P,ge.scrollHeight-Ae/P+R)),q=g===0?0:Math.max(0,Math.min(z+q/g,ge.scrollWidth-We/g+ie)),d+=D-O,M+=z-q}ae.push({el:ge,top:O,left:q})}return ae},H=e=>e===!1?{block:"end",inline:"nearest"}:(s=>s===Object(s)&&Object.keys(s).length!==0)(e)?e:{block:"start",inline:"nearest"};function $(e,s){if(!e.isConnected||!(r=>{let i=r;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const c=(r=>{const i=window.getComputedStyle(r);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((r=>typeof r=="object"&&typeof r.behavior=="function")(s))return s.behavior(h(e,s));const t=typeof s=="boolean"||s==null?void 0:s.behavior;for(const{el:r,top:i,left:o}of h(e,H(s))){const v=i-c.top+c.bottom,b=o-c.left+c.right;r.scroll({top:v,left:b,behavior:t})}}}}]);
|