diff --git a/404.html b/404.html index daceee4523..5b2aa48697 100644 --- a/404.html +++ b/404.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/index.html b/index.html index daceee4523..5b2aa48697 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,6 @@
- + \ No newline at end of file diff --git a/umi.0d344915.js b/umi.591b469e.js similarity index 97% rename from umi.0d344915.js rename to umi.591b469e.js index 7f35ad225c..28ea82b5bb 100644 --- a/umi.0d344915.js +++ b/umi.591b469e.js @@ -111,7 +111,7 @@ html body { overflow-y: hidden; `.concat(U?"width: calc(100% - ".concat(k,"px);"):"",` -}`),Y)}else(0,f.jL)(Y);return function(){(0,f.jL)(Y)}},[F,Y])}var R=!1;function $(b){return typeof b=="boolean"&&(R=b),R}var P=function(F){return F===!1?!1:!(0,a.Z)()||!F?null:typeof F=="string"?document.querySelector(F):typeof F=="function"?F():F},L=r.forwardRef(function(b,F){var B=b.open,W=b.autoLock,Y=b.getContainer,k=b.debug,U=b.autoDestroy,X=U===void 0?!0:U,I=b.children,j=r.useState(B),O=(0,t.Z)(j,2),x=O[0],N=O[1],J=x||B;r.useEffect(function(){(X||B)&&N(B)},[B,X]);var oe=r.useState(function(){return P(Y)}),G=(0,t.Z)(oe,2),ee=G[0],pe=G[1];r.useEffect(function(){var z=P(Y);pe(z!=null?z:null)});var ye=h(J&&!ee,k),$e=(0,t.Z)(ye,2),we=$e[0],ze=$e[1],Je=ee!=null?ee:we;T(W&&B&&(0,a.Z)()&&(Je===we||Je===document.body));var St=null;if(I&&(0,c.Yr)(I)&&F){var We=I;St=We.ref}var Qe=(0,c.x1)(St,F);if(!J||!(0,a.Z)()||ee===void 0)return null;var Ye=Je===!1||$(),Ie=I;return F&&(Ie=r.cloneElement(I,{ref:Qe})),r.createElement(l.Provider,{value:ze},Ye?Ie:(0,o.createPortal)(Ie,Je))}),K=L,Z=K},62382:function(m,v,e){"use strict";e.d(v,{Z:function(){return Ie}});var t=e(33346),r=e(32682),o=e(10570),a=e(89337),s=e(84875),c=e.n(s),u=e(12682),l=e(6574),d=e(79697),p=e(7748),y=e(66381),h=e(77189),f=e(88473),S=e(50959),C=e(38126),w=e(10091),E=e(12602);function T(z){var A=z.prefixCls,D=z.align,ne=z.arrow,H=z.arrowPos,te=ne||{},q=te.className,re=te.content,Se=H.x,Pe=Se===void 0?0:Se,Fe=H.y,He=Fe===void 0?0:Fe,de=S.useRef();if(!D||!D.points)return null;var Ce={position:"absolute"};if(D.autoArrow!==!1){var nt=D.points[0],ue=D.points[1],ge=nt[0],Ke=nt[1],qe=ue[0],ot=ue[1];ge===qe||!["t","b"].includes(ge)?Ce.top=He:ge==="t"?Ce.top=0:Ce.bottom=0,Ke===ot||!["l","r"].includes(Ke)?Ce.left=Pe:Ke==="l"?Ce.left=0:Ce.right=0}return S.createElement("div",{ref:de,className:c()("".concat(A,"-arrow"),q),style:Ce},re)}function R(z){var A=z.prefixCls,D=z.open,ne=z.zIndex,H=z.mask,te=z.motion;return H?S.createElement(w.ZP,(0,C.Z)({},te,{motionAppear:!0,visible:D,removeOnLeave:!0}),function(q){var re=q.className;return S.createElement("div",{style:{zIndex:ne},className:c()("".concat(A,"-mask"),re)})}):null}var $=S.memo(function(z){var A=z.children;return A},function(z,A){return A.cache}),P=$,L=S.forwardRef(function(z,A){var D=z.popup,ne=z.className,H=z.prefixCls,te=z.style,q=z.target,re=z.onVisibleChanged,Se=z.open,Pe=z.keepDom,Fe=z.fresh,He=z.onClick,de=z.mask,Ce=z.arrow,nt=z.arrowPos,ue=z.align,ge=z.motion,Ke=z.maskMotion,qe=z.forceRender,ot=z.getPopupContainer,Le=z.autoDestroy,Xe=z.portal,ke=z.zIndex,pt=z.onMouseEnter,ft=z.onMouseLeave,it=z.onPointerEnter,Lt=z.ready,Tt=z.offsetX,Wt=z.offsetY,Xt=z.offsetR,$t=z.offsetB,ln=z.onAlign,Pn=z.onPrepare,An=z.stretch,tn=z.targetWidth,nn=z.targetHeight,Fn=typeof D=="function"?D():D,un=Se||Pe,Sn=(ot==null?void 0:ot.length)>0,pn=S.useState(!ot||!Sn),Cn=(0,r.Z)(pn,2),Hn=Cn[0],Zn=Cn[1];if((0,h.Z)(function(){!Hn&&Sn&&q&&Zn(!0)},[Hn,Sn,q]),!Hn)return null;var hn="auto",Un={left:"-1000vw",top:"-1000vh",right:hn,bottom:hn};if(Lt||!Se){var zn,Er=ue.points,Dr=ue.dynamicInset||((zn=ue._experimental)===null||zn===void 0?void 0:zn.dynamicInset),rt=Dr&&Er[0][1]==="r",et=Dr&&Er[0][0]==="b";rt?(Un.right=Xt,Un.left=hn):(Un.left=Tt,Un.right=hn),et?(Un.bottom=$t,Un.top=hn):(Un.top=Wt,Un.bottom=hn)}var zt={};return An&&(An.includes("height")&&nn?zt.height=nn:An.includes("minHeight")&&nn&&(zt.minHeight=nn),An.includes("width")&&tn?zt.width=tn:An.includes("minWidth")&&tn&&(zt.minWidth=tn)),Se||(zt.pointerEvents="none"),S.createElement(Xe,{open:qe||un,getContainer:ot&&function(){return ot(q)},autoDestroy:Le},S.createElement(R,{prefixCls:H,open:Se,zIndex:ke,mask:de,motion:Ke}),S.createElement(u.Z,{onResize:ln,disabled:!Se},function(Ft){return S.createElement(w.ZP,(0,C.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:qe,leavedClassName:"".concat(H,"-hidden")},ge,{onAppearPrepare:Pn,onEnterPrepare:Pn,visible:Se,onVisibleChanged:function(_t){var wn;ge==null||(wn=ge.onVisibleChanged)===null||wn===void 0||wn.call(ge,_t),re(_t)}}),function(gn,_t){var wn=gn.className,en=gn.style,Yn=c()(H,wn,ne);return S.createElement("div",{ref:(0,E.sQ)(Ft,A,_t),className:Yn,style:(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({"--arrow-x":"".concat(nt.x||0,"px"),"--arrow-y":"".concat(nt.y||0,"px")},Un),zt),en),{},{boxSizing:"border-box",zIndex:ke},te),onMouseEnter:pt,onMouseLeave:ft,onPointerEnter:it,onClick:He},Ce&&S.createElement(T,{prefixCls:H,arrow:Ce,arrowPos:nt,align:ue}),S.createElement(P,{cache:!Se&&!Fe},Fn))})}))}),K=L,Z=S.forwardRef(function(z,A){var D=z.children,ne=z.getTriggerDOMNode,H=(0,E.Yr)(D),te=S.useCallback(function(re){(0,E.mH)(A,ne?ne(re):re)},[ne]),q=(0,E.x1)(te,D.ref);return H?S.cloneElement(D,{ref:q}):D}),b=Z,F=S.createContext(null),B=F;function W(z){return z?Array.isArray(z)?z:[z]:[]}function Y(z,A,D,ne){return S.useMemo(function(){var H=W(D!=null?D:A),te=W(ne!=null?ne:A),q=new Set(H),re=new Set(te);return z&&(q.has("hover")&&(q.delete("hover"),q.add("click")),re.has("hover")&&(re.delete("hover"),re.add("click"))),[q,re]},[z,A,D,ne])}var k=e(95992);function U(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2?arguments[2]:void 0;return D?z[0]===A[0]:z[0]===A[0]&&z[1]===A[1]}function X(z,A,D,ne){for(var H=D.points,te=Object.keys(z),q=0;q1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(z)?A:z}function N(z){return x(parseFloat(z),0)}function J(z,A){var D=(0,t.Z)({},z);return(A||[]).forEach(function(ne){if(!(ne instanceof HTMLBodyElement||ne instanceof HTMLHtmlElement)){var H=j(ne).getComputedStyle(ne),te=H.overflow,q=H.overflowClipMargin,re=H.borderTopWidth,Se=H.borderBottomWidth,Pe=H.borderLeftWidth,Fe=H.borderRightWidth,He=ne.getBoundingClientRect(),de=ne.offsetHeight,Ce=ne.clientHeight,nt=ne.offsetWidth,ue=ne.clientWidth,ge=N(re),Ke=N(Se),qe=N(Pe),ot=N(Fe),Le=x(Math.round(He.width/nt*1e3)/1e3),Xe=x(Math.round(He.height/de*1e3)/1e3),ke=(nt-ue-qe-ot)*Le,pt=(de-Ce-ge-Ke)*Xe,ft=ge*Xe,it=Ke*Xe,Lt=qe*Le,Tt=ot*Le,Wt=0,Xt=0;if(te==="clip"){var $t=N(q);Wt=$t*Le,Xt=$t*Xe}var ln=He.x+Lt-Wt,Pn=He.y+ft-Xt,An=ln+He.width+2*Wt-Lt-Tt-ke,tn=Pn+He.height+2*Xt-ft-it-pt;D.left=Math.max(D.left,ln),D.top=Math.max(D.top,Pn),D.right=Math.min(D.right,An),D.bottom=Math.min(D.bottom,tn)}}),D}function oe(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D="".concat(A),ne=D.match(/^(.*)\%$/);return ne?z*(parseFloat(ne[1])/100):parseFloat(D)}function G(z,A){var D=A||[],ne=(0,r.Z)(D,2),H=ne[0],te=ne[1];return[oe(z.width,H),oe(z.height,te)]}function ee(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[z[0],z[1]]}function pe(z,A){var D=A[0],ne=A[1],H,te;return D==="t"?te=z.y:D==="b"?te=z.y+z.height:te=z.y+z.height/2,ne==="l"?H=z.x:ne==="r"?H=z.x+z.width:H=z.x+z.width/2,{x:H,y:te}}function ye(z,A){var D={t:"b",b:"t",l:"r",r:"l"};return z.map(function(ne,H){return H===A?D[ne]||"c":ne}).join("")}function $e(z,A,D,ne,H,te,q){var re=S.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:H[ne]||{}}),Se=(0,r.Z)(re,2),Pe=Se[0],Fe=Se[1],He=S.useRef(0),de=S.useMemo(function(){return A?O(A):[]},[A]),Ce=S.useRef({}),nt=function(){Ce.current={}};z||nt();var ue=(0,p.Z)(function(){if(A&&D&&z){let cr=function(gr,Kr){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yn,Oa=Fn.x+gr,Pa=Fn.y+Kr,eo=Oa+zn,Ba=Pa+Un,Ea=Math.max(Oa,ta.left),co=Math.max(Pa,ta.top),Da=Math.min(eo,ta.right),yo=Math.min(Ba,ta.bottom);return Math.max(0,(Da-Ea)*(yo-co))},Cr=function(){wt=Fn.y+ie,Nt=wt+Un,ht=Fn.x+je,Mt=ht+zn};var qe,ot,Le=A,Xe=Le.ownerDocument,ke=j(Le),pt=ke.getComputedStyle(Le),ft=pt.width,it=pt.height,Lt=pt.position,Tt=Le.style.left,Wt=Le.style.top,Xt=Le.style.right,$t=Le.style.bottom,ln=Le.style.overflow,Pn=(0,t.Z)((0,t.Z)({},H[ne]),te),An=Xe.createElement("div");(qe=Le.parentElement)===null||qe===void 0||qe.appendChild(An),An.style.left="".concat(Le.offsetLeft,"px"),An.style.top="".concat(Le.offsetTop,"px"),An.style.position=Lt,An.style.height="".concat(Le.offsetHeight,"px"),An.style.width="".concat(Le.offsetWidth,"px"),Le.style.left="0",Le.style.top="0",Le.style.right="auto",Le.style.bottom="auto",Le.style.overflow="hidden";var tn;if(Array.isArray(D))tn={x:D[0],y:D[1],width:0,height:0};else{var nn=D.getBoundingClientRect();tn={x:nn.x,y:nn.y,width:nn.width,height:nn.height}}var Fn=Le.getBoundingClientRect(),un=Xe.documentElement,Sn=un.clientWidth,pn=un.clientHeight,Cn=un.scrollWidth,Hn=un.scrollHeight,Zn=un.scrollTop,hn=un.scrollLeft,Un=Fn.height,zn=Fn.width,Er=tn.height,Dr=tn.width,rt={left:0,top:0,right:Sn,bottom:pn},et={left:-hn,top:-Zn,right:Cn-hn,bottom:Hn-Zn},zt=Pn.htmlRegion,Ft="visible",gn="visibleFirst";zt!=="scroll"&&zt!==gn&&(zt=Ft);var _t=zt===gn,wn=J(et,de),en=J(rt,de),Yn=zt===Ft?en:wn,jn=_t?en:Yn;Le.style.left="auto",Le.style.top="auto",Le.style.right="0",Le.style.bottom="0";var Mn=Le.getBoundingClientRect();Le.style.left=Tt,Le.style.top=Wt,Le.style.right=Xt,Le.style.bottom=$t,Le.style.overflow=ln,(ot=Le.parentElement)===null||ot===void 0||ot.removeChild(An);var mn=x(Math.round(zn/parseFloat(ft)*1e3)/1e3),tr=x(Math.round(Un/parseFloat(it)*1e3)/1e3);if(mn===0||tr===0||(0,l.S)(D)&&!(0,k.Z)(D))return;var Nn=Pn.offset,Gn=Pn.targetOffset,bn=G(Fn,Nn),Mr=(0,r.Z)(bn,2),kn=Mr[0],fn=Mr[1],vt=G(tn,Gn),ct=(0,r.Z)(vt,2),Ot=ct[0],Rt=ct[1];tn.x-=Ot,tn.y-=Rt;var yt=Pn.points||[],kt=(0,r.Z)(yt,2),Kt=kt[0],rn=kt[1],En=ee(rn),sn=ee(Kt),Re=pe(tn,En),Oe=pe(Fn,sn),Be=(0,t.Z)({},Pn),je=Re.x-Oe.x+kn,ie=Re.y-Oe.y+fn,se=cr(je,ie),ae=cr(je,ie,en),ve=pe(tn,["t","l"]),ce=pe(Fn,["t","l"]),Me=pe(tn,["b","r"]),Ne=pe(Fn,["b","r"]),Ge=Pn.overflow||{},_e=Ge.adjustX,bt=Ge.adjustY,st=Ge.shiftX,mt=Ge.shiftY,xt=function(Kr){return typeof Kr=="boolean"?Kr:Kr>=0},wt,Nt,ht,Mt;Cr();var jt=xt(bt),an=sn[0]===En[0];if(jt&&sn[0]==="t"&&(Nt>jn.bottom||Ce.current.bt)){var Qt=ie;an?Qt-=Un-Er:Qt=ve.y-Ne.y-fn;var cn=cr(je,Qt),Tn=cr(je,Qt,en);cn>se||cn===se&&(!_t||Tn>=ae)?(Ce.current.bt=!0,ie=Qt,fn=-fn,Be.points=[ye(sn,0),ye(En,0)]):Ce.current.bt=!1}if(jt&&sn[0]==="b"&&(wtse||Wn===se&&(!_t||br>=ae)?(Ce.current.tb=!0,ie=dn,fn=-fn,Be.points=[ye(sn,0),ye(En,0)]):Ce.current.tb=!1}var $n=xt(_e),Jn=sn[1]===En[1];if($n&&sn[1]==="l"&&(Mt>jn.right||Ce.current.rl)){var Rr=je;Jn?Rr-=zn-Dr:Rr=ve.x-Ne.x-kn;var Ut=cr(Rr,ie),tt=cr(Rr,ie,en);Ut>se||Ut===se&&(!_t||tt>=ae)?(Ce.current.rl=!0,je=Rr,kn=-kn,Be.points=[ye(sn,1),ye(En,1)]):Ce.current.rl=!1}if($n&&sn[1]==="r"&&(htse||It===se&&(!_t||Yt>=ae)?(Ce.current.lr=!0,je=Ue,kn=-kn,Be.points=[ye(sn,1),ye(En,1)]):Ce.current.lr=!1}Cr();var Ht=st===!0?0:st;typeof Ht=="number"&&(hten.right&&(je-=Mt-en.right-kn,tn.x>en.right-Ht&&(je+=tn.x-en.right+Ht)));var Bn=mt===!0?0:mt;typeof Bn=="number"&&(wten.bottom&&(ie-=Nt-en.bottom-fn,tn.y>en.bottom-Bn&&(ie+=tn.y-en.bottom+Bn)));var _n=Fn.x+je,sr=_n+zn,lr=Fn.y+ie,mr=lr+Un,vr=tn.x,Tr=vr+Dr,Gr=tn.y,fa=Gr+Er,ur=Math.max(_n,vr),kr=Math.min(sr,Tr),Wr=(ur+kr)/2,xa=Wr-_n,Ta=Math.max(lr,Gr),ka=Math.min(mr,fa),Ga=(Ta+ka)/2,ro=Ga-lr;q==null||q(A,Be);var ba=Mn.right-Fn.x-(je+Fn.width),Xn=Mn.bottom-Fn.y-(ie+Fn.height);Fe({ready:!0,offsetX:je/mn,offsetY:ie/tr,offsetR:ba/mn,offsetB:Xn/tr,arrowX:xa/mn,arrowY:ro/tr,scaleX:mn,scaleY:tr,align:Be})}}),ge=function(){He.current+=1;var ot=He.current;Promise.resolve().then(function(){He.current===ot&&ue()})},Ke=function(){Fe(function(ot){return(0,t.Z)((0,t.Z)({},ot),{},{ready:!1})})};return(0,h.Z)(Ke,[ne]),(0,h.Z)(function(){z||Ke()},[z]),[Pe.ready,Pe.offsetX,Pe.offsetY,Pe.offsetR,Pe.offsetB,Pe.arrowX,Pe.arrowY,Pe.scaleX,Pe.scaleY,Pe.align,ge]}var we=e(1788);function ze(z,A,D,ne,H){(0,h.Z)(function(){if(z&&A&&D){let He=function(){ne(),H()};var te=A,q=D,re=O(te),Se=O(q),Pe=j(q),Fe=new Set([Pe].concat((0,we.Z)(re),(0,we.Z)(Se)));return Fe.forEach(function(de){de.addEventListener("scroll",He,{passive:!0})}),Pe.addEventListener("resize",He,{passive:!0}),ne(),function(){Fe.forEach(function(de){de.removeEventListener("scroll",He),Pe.removeEventListener("resize",He)})}}},[z,A,D])}var Je=e(12868),St=e(28449);function We(z,A,D,ne,H,te,q,re){var Se=S.useRef(z),Pe=S.useRef(!1);Se.current!==z&&(Pe.current=!0,Se.current=z),S.useEffect(function(){var Fe=(0,St.Z)(function(){Pe.current=!1});return function(){St.Z.cancel(Fe)}},[z]),S.useEffect(function(){if(A&&ne&&(!H||te)){var Fe=function(){var Lt=!1,Tt=function($t){var ln=$t.target;Lt=q(ln)},Wt=function($t){var ln=$t.target;!Pe.current&&Se.current&&!Lt&&!q(ln)&&re(!1)};return[Tt,Wt]},He=Fe(),de=(0,r.Z)(He,2),Ce=de[0],nt=de[1],ue=Fe(),ge=(0,r.Z)(ue,2),Ke=ge[0],qe=ge[1],ot=j(ne);ot.addEventListener("mousedown",Ce,!0),ot.addEventListener("click",nt,!0),ot.addEventListener("contextmenu",nt,!0);var Le=(0,d.A)(D);if(Le&&(Le.addEventListener("mousedown",Ke,!0),Le.addEventListener("click",qe,!0),Le.addEventListener("contextmenu",qe,!0)),!1)var Xe,ke,pt,ft;return function(){ot.removeEventListener("mousedown",Ce,!0),ot.removeEventListener("click",nt,!0),ot.removeEventListener("contextmenu",nt,!0),Le&&(Le.removeEventListener("mousedown",Ke,!0),Le.removeEventListener("click",qe,!0),Le.removeEventListener("contextmenu",qe,!0))}}},[A,D,ne,H,te])}var Qe=["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 Ye(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.Z,A=S.forwardRef(function(D,ne){var H=D.prefixCls,te=H===void 0?"rc-trigger-popup":H,q=D.children,re=D.action,Se=re===void 0?"hover":re,Pe=D.showAction,Fe=D.hideAction,He=D.popupVisible,de=D.defaultPopupVisible,Ce=D.onPopupVisibleChange,nt=D.afterPopupVisibleChange,ue=D.mouseEnterDelay,ge=D.mouseLeaveDelay,Ke=ge===void 0?.1:ge,qe=D.focusDelay,ot=D.blurDelay,Le=D.mask,Xe=D.maskClosable,ke=Xe===void 0?!0:Xe,pt=D.getPopupContainer,ft=D.forceRender,it=D.autoDestroy,Lt=D.destroyPopupOnHide,Tt=D.popup,Wt=D.popupClassName,Xt=D.popupStyle,$t=D.popupPlacement,ln=D.builtinPlacements,Pn=ln===void 0?{}:ln,An=D.popupAlign,tn=D.zIndex,nn=D.stretch,Fn=D.getPopupClassNameFromAlign,un=D.fresh,Sn=D.alignPoint,pn=D.onPopupClick,Cn=D.onPopupAlign,Hn=D.arrow,Zn=D.popupMotion,hn=D.maskMotion,Un=D.popupTransitionName,zn=D.popupAnimation,Er=D.maskTransitionName,Dr=D.maskAnimation,rt=D.className,et=D.getTriggerDOMNode,zt=(0,o.Z)(D,Qe),Ft=it||Lt||!1,gn=S.useState(!1),_t=(0,r.Z)(gn,2),wn=_t[0],en=_t[1];(0,h.Z)(function(){en((0,f.Z)())},[]);var Yn=S.useRef({}),jn=S.useContext(B),Mn=S.useMemo(function(){return{registerSubPopup:function(wr,Ma){Yn.current[wr]=Ma,jn==null||jn.registerSubPopup(wr,Ma)}}},[jn]),mn=(0,y.Z)(),tr=S.useState(null),Nn=(0,r.Z)(tr,2),Gn=Nn[0],bn=Nn[1],Mr=(0,p.Z)(function(Sr){(0,l.S)(Sr)&&Gn!==Sr&&bn(Sr),jn==null||jn.registerSubPopup(mn,Sr)}),kn=S.useState(null),fn=(0,r.Z)(kn,2),vt=fn[0],ct=fn[1],Ot=S.useRef(null),Rt=(0,p.Z)(function(Sr){(0,l.S)(Sr)&&vt!==Sr&&(ct(Sr),Ot.current=Sr)}),yt=S.Children.only(q),kt=(yt==null?void 0:yt.props)||{},Kt={},rn=(0,p.Z)(function(Sr){var wr,Ma,pa=vt;return(pa==null?void 0:pa.contains(Sr))||((wr=(0,d.A)(pa))===null||wr===void 0?void 0:wr.host)===Sr||Sr===pa||(Gn==null?void 0:Gn.contains(Sr))||((Ma=(0,d.A)(Gn))===null||Ma===void 0?void 0:Ma.host)===Sr||Sr===Gn||Object.values(Yn.current).some(function(ma){return(ma==null?void 0:ma.contains(Sr))||Sr===ma})}),En=I(te,Zn,zn,Un),sn=I(te,hn,Dr,Er),Re=S.useState(de||!1),Oe=(0,r.Z)(Re,2),Be=Oe[0],je=Oe[1],ie=He!=null?He:Be,se=(0,p.Z)(function(Sr){He===void 0&&je(Sr)});(0,h.Z)(function(){je(He||!1)},[He]);var ae=S.useRef(ie);ae.current=ie;var ve=S.useRef([]);ve.current=[];var ce=(0,p.Z)(function(Sr){var wr;se(Sr),((wr=ve.current[ve.current.length-1])!==null&&wr!==void 0?wr:ie)!==Sr&&(ve.current.push(Sr),Ce==null||Ce(Sr))}),Me=S.useRef(),Ne=function(){clearTimeout(Me.current)},Ge=function(wr){var Ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ne(),Ma===0?ce(wr):Me.current=setTimeout(function(){ce(wr)},Ma*1e3)};S.useEffect(function(){return Ne},[]);var _e=S.useState(!1),bt=(0,r.Z)(_e,2),st=bt[0],mt=bt[1];(0,h.Z)(function(Sr){(!Sr||ie)&&mt(!0)},[ie]);var xt=S.useState(null),wt=(0,r.Z)(xt,2),Nt=wt[0],ht=wt[1],Mt=S.useState([0,0]),jt=(0,r.Z)(Mt,2),an=jt[0],Qt=jt[1],cn=function(wr){Qt([wr.clientX,wr.clientY])},Tn=$e(ie,Gn,Sn?an:vt,$t,Pn,An,Cn),dn=(0,r.Z)(Tn,11),Wn=dn[0],br=dn[1],$n=dn[2],Jn=dn[3],Rr=dn[4],Ut=dn[5],tt=dn[6],Ue=dn[7],It=dn[8],Yt=dn[9],Ht=dn[10],Bn=Y(wn,Se,Pe,Fe),_n=(0,r.Z)(Bn,2),sr=_n[0],lr=_n[1],mr=sr.has("click"),vr=lr.has("click")||lr.has("contextMenu"),Tr=(0,p.Z)(function(){st||Ht()}),Gr=function(){ae.current&&Sn&&vr&&Ge(!1)};ze(ie,vt,Gn,Tr,Gr),(0,h.Z)(function(){Tr()},[an,$t]),(0,h.Z)(function(){ie&&!(Pn!=null&&Pn[$t])&&Tr()},[JSON.stringify(An)]);var fa=S.useMemo(function(){var Sr=X(Pn,te,Yt,Sn);return c()(Sr,Fn==null?void 0:Fn(Yt))},[Yt,Fn,Pn,te,Sn]);S.useImperativeHandle(ne,function(){return{nativeElement:Ot.current,forceAlign:Tr}});var ur=S.useState(0),kr=(0,r.Z)(ur,2),Wr=kr[0],xa=kr[1],Ta=S.useState(0),ka=(0,r.Z)(Ta,2),Ga=ka[0],ro=ka[1],ba=function(){if(nn&&vt){var wr=vt.getBoundingClientRect();xa(wr.width),ro(wr.height)}},Xn=function(){ba(),Tr()},cr=function(wr){mt(!1),Ht(),nt==null||nt(wr)},Cr=function(){return new Promise(function(wr){ba(),ht(function(){return wr})})};(0,h.Z)(function(){Nt&&(Ht(),Nt(),ht(null))},[Nt]);function gr(Sr,wr,Ma,pa){Kt[Sr]=function(ma){var vo;pa==null||pa(ma),Ge(wr,Ma);for(var fo=arguments.length,Sa=new Array(fo>1?fo-1:0),wa=1;wa1?Ma-1:0),ma=1;ma1?Ma-1:0),ma=1;ma-1&&(se=setTimeout(function(){R.delete(Oe)},Be)),R.set(Oe,{data:je,timer:se,startTime:new Date().getTime()})},P=function(Oe){var Be=R.get(Oe);return{data:Be==null?void 0:Be.data,startTime:Be==null?void 0:Be.startTime}},L=function(Re,Oe){var Be=typeof Symbol=="function"&&Re[Symbol.iterator];if(!Be)return Re;var je=Be.call(Re),ie,se=[],ae;try{for(;(Oe===void 0||Oe-- >0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},K=function(){for(var Re=[],Oe=0;Oe0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},F=function(){for(var Re=[],Oe=0;Oe0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},ye=function(){for(var Re=[],Oe=0;Oe0){var cr=Tn&&((Xn=P(Tn))===null||Xn===void 0?void 0:Xn.startTime)||0;$n===-1||new Date().getTime()-cr<=$n||Object.values(ur).forEach(function(Cr){Cr.refresh()})}else ka.current.apply(ka,ye(ht))},[]);var ro=(0,h.useCallback)(function(){Object.values(Wr.current).forEach(function(Xn){Xn.unmount()}),Ht.current=$e,kr({}),Wr.current={}},[kr]);k(function(){ae||Object.values(Wr.current).forEach(function(Xn){Xn.refresh()})},ye(ie)),(0,h.useEffect)(function(){return function(){Object.values(Wr.current).forEach(function(Xn){Xn.unmount()})}},[]);var ba=(0,h.useCallback)(function(Xn){return function(){console.warn("You should't call "+Xn+" when service not executed once.")}},[]);return ee(ee({loading:Ue&&!ae||_e,data:Ut,error:void 0,params:[],cancel:ba("cancel"),refresh:ba("refresh"),mutate:ba("mutate")},ur[Ht.current]||{}),{run:Ta,fetches:ur,reset:ro})}var Je=ze,St=function(){return St=Object.assign||function(Re){for(var Oe,Be=1,je=arguments.length;Be0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},Ye=function(){for(var Re=[],Oe=0;Oe0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},H=function(){for(var Re=[],Oe=0;OeYt&&(Ue=Math.max(1,Yt)),cn({current:Ue,pageSize:It})},[Tn,cn]),br=(0,h.useCallback)(function(Ut){Wn(Ut,ht)},[Wn,ht]),$n=(0,h.useCallback)(function(Ut){Wn(wt,Ut)},[Wn,wt]),Jn=(0,h.useRef)(br);Jn.current=br,k(function(){Oe.manual||Jn.current(1)},H(ae));var Rr=(0,h.useCallback)(function(Ut,tt,Ue){cn({current:Ut.current,pageSize:Ut.pageSize||ie,filters:tt,sorter:Ue})},[Qt,jt,cn]);return A({loading:bt,data:Ne,params:Ge,run:_e,pagination:{current:wt,pageSize:ht,total:Tn,totalPage:dn,onChange:Wn,changeCurrent:br,changePageSize:$n},tableProps:{dataSource:(Ne==null?void 0:Ne.list)||[],loading:bt,onChange:Rr,pagination:{current:wt,pageSize:ht,total:Tn}},sorter:jt,filters:Qt},st)}var q=te,re=h.createContext({});re.displayName="UseRequestConfigContext";var Se=re,Pe=function(){return Pe=Object.assign||function(Re){for(var Oe,Be=1,je=arguments.length;Be0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},de=function(){for(var Re=[],Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:{};return ge(Re,d()({formatResult:function(je){return je==null?void 0:je.data},requestMethod:function(je){if(typeof je=="string")return ft(je);if(u()(je)==="object"){var ie=je.url,se=s()(je,qe);return ft(ie,se)}throw new Error("request options error")}},Oe))}var Le,Xe,ke=function(){return Xe||(Xe=(0,Ke.We)().applyPlugins({key:"request",type:fn.modify,initialValue:{}}),Xe)},pt=function(){var Oe,Be;if(Le)return Le;var je=ke();return Le=y().create(je),je==null||(Oe=je.requestInterceptors)===null||Oe===void 0||Oe.forEach(function(ie){ie instanceof Array?Le.interceptors.request.use(function(se){var ae=se.url;if(ie[0].length===2){var ve=ie[0](ae,se),ce=ve.url,Me=ve.options;return d()(d()({},Me),{},{url:ce})}return ie[0](se)},ie[1]):Le.interceptors.request.use(function(se){var ae=se.url;if(ie.length===2){var ve=ie(ae,se),ce=ve.url,Me=ve.options;return d()(d()({},Me),{},{url:ce})}return ie(se)})}),je==null||(Be=je.responseInterceptors)===null||Be===void 0||Be.forEach(function(ie){ie instanceof Array?Le.interceptors.response.use(ie[0],ie[1]):Le.interceptors.response.use(ie)}),Le.interceptors.response.use(function(ie){var se,ae=ie.data;return(ae==null?void 0:ae.success)===!1&&je!==null&&je!==void 0&&(se=je.errorConfig)!==null&&se!==void 0&&se.errorThrower&&je.errorConfig.errorThrower(ae),ie}),Le},ft=function(Oe){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},je=pt(),ie=ke(),se=Be.getResponse,ae=se===void 0?!1:se,ve=Be.requestInterceptors,ce=Be.responseInterceptors,Me=ve==null?void 0:ve.map(function(Ge){return Ge instanceof Array?je.interceptors.request.use(function(_e){var bt=_e.url;if(Ge[0].length===2){var st=Ge[0](bt,_e),mt=st.url,xt=st.options;return d()(d()({},xt),{},{url:mt})}return Ge[0](_e)},Ge[1]):je.interceptors.request.use(function(_e){var bt=_e.url;if(Ge.length===2){var st=Ge(bt,_e),mt=st.url,xt=st.options;return d()(d()({},xt),{},{url:mt})}return Ge(_e)})}),Ne=ce==null?void 0:ce.map(function(Ge){return Ge instanceof Array?je.interceptors.response.use(Ge[0],Ge[1]):je.interceptors.response.use(Ge)});return new Promise(function(Ge,_e){je.request(d()(d()({},Be),{},{url:Oe})).then(function(bt){Me==null||Me.forEach(function(st){je.interceptors.request.eject(st)}),Ne==null||Ne.forEach(function(st){je.interceptors.response.eject(st)}),Ge(ae?bt:bt.data)}).catch(function(bt){Me==null||Me.forEach(function(xt){je.interceptors.request.eject(xt)}),Ne==null||Ne.forEach(function(xt){je.interceptors.response.eject(xt)});try{var st,mt=ie==null||(st=ie.errorConfig)===null||st===void 0?void 0:st.errorHandler;mt&&mt(bt,Be,ie)}catch(xt){_e(xt)}_e(bt)})})},it=e(44492),Lt=e(18280);function Tt(){return Tt=Object.assign||function(Re){for(var Oe=1;Oe=0)&&(Be[ie]=Re[ie]);return Be}const Xt=["onClick","reloadDocument","replace","state","target","to"],$t=null;function ln(Re,Oe){if(!Re){typeof console!="undefined"&&console.warn(Oe);try{throw new Error(Oe)}catch(Be){}}}function Pn(Re){let{basename:Oe,children:Be,window:je}=Re,ie=useRef();ie.current==null&&(ie.current=createBrowserHistory({window:je}));let se=ie.current,[ae,ve]=useState({action:se.action,location:se.location});return useLayoutEffect(()=>se.listen(ve),[se]),createElement(Router,{basename:Oe,children:Be,location:ae.location,navigationType:ae.action,navigator:se})}function An(Re){let{basename:Oe,children:Be,window:je}=Re,ie=useRef();ie.current==null&&(ie.current=createHashHistory({window:je}));let se=ie.current,[ae,ve]=useState({action:se.action,location:se.location});return useLayoutEffect(()=>se.listen(ve),[se]),createElement(Router,{basename:Oe,children:Be,location:ae.location,navigationType:ae.action,navigator:se})}function tn(Re){let{basename:Oe,children:Be,history:je}=Re;const[ie,se]=useState({action:je.action,location:je.location});return useLayoutEffect(()=>je.listen(se),[je]),createElement(Router,{basename:Oe,children:Be,location:ie.location,navigationType:ie.action,navigator:je})}function nn(Re){return!!(Re.metaKey||Re.altKey||Re.ctrlKey||Re.shiftKey)}const Fn=(0,h.forwardRef)(function(Oe,Be){let{onClick:je,reloadDocument:ie,replace:se=!1,state:ae,target:ve,to:ce}=Oe,Me=Wt(Oe,Xt),Ne=(0,it.oQ)(ce),Ge=Sn(ce,{replace:se,state:ae,target:ve});function _e(bt){je&&je(bt),!bt.defaultPrevented&&!ie&&Ge(bt)}return(0,h.createElement)("a",Tt({},Me,{href:Ne,onClick:_e,ref:Be,target:ve}))}),un=null;function Sn(Re,Oe){let{target:Be,replace:je,state:ie}=Oe===void 0?{}:Oe,se=(0,it.s0)(),ae=(0,it.TH)(),ve=(0,it.WU)(Re);return(0,h.useCallback)(ce=>{if(ce.button===0&&(!Be||Be==="_self")&&!nn(ce)){ce.preventDefault();let Me=!!je||(0,Lt.Ep)(ae)===(0,Lt.Ep)(ve);se(Re,{replace:Me,state:ie})}},[ae,se,ve,je,ie,Be,Re])}function pn(Re){let Oe=(0,h.useRef)(Cn(Re)),Be=(0,it.TH)(),je=(0,h.useMemo)(()=>{let ae=Cn(Be.search);for(let ve of Oe.current.keys())ae.has(ve)||Oe.current.getAll(ve).forEach(ce=>{ae.append(ve,ce)});return ae},[Be.search]),ie=(0,it.s0)(),se=(0,h.useCallback)((ae,ve)=>{ie("?"+Cn(ae),ve)},[ie]);return[je,se]}function Cn(Re){return Re===void 0&&(Re=""),new URLSearchParams(typeof Re=="string"||Array.isArray(Re)||Re instanceof URLSearchParams?Re:Object.keys(Re).reduce((Oe,Be)=>{let je=Re[Be];return Oe.concat(Array.isArray(je)?je.map(ie=>[Be,ie]):[[Be,je]])},[]))}var Hn=e(97605),Zn=e(10582),hn=e(2202),Un=["prefetch"];function zn(Re){var Oe,Be=Re.prefetch,je=(0,Zn.Z)(Re,Un),ie=(0,hn.Ov)(),se=typeof Re.to=="string"?Re.to:(Oe=Re.to)===null||Oe===void 0?void 0:Oe.pathname;return se?h.createElement(Fn,(0,Hn.Z)({onMouseEnter:function(){var ve;return Be&&se&&((ve=ie.preloadRoute)===null||ve===void 0?void 0:ve.call(ie,se))}},je),Re.children):null}var Er=e(62363),Dr=e(26407);function rt(){"use strict";rt=function(){return Oe};var Re,Oe={},Be=Object.prototype,je=Be.hasOwnProperty,ie=Object.defineProperty||function(Ut,tt,Ue){Ut[tt]=Ue.value},se=typeof Symbol=="function"?Symbol:{},ae=se.iterator||"@@iterator",ve=se.asyncIterator||"@@asyncIterator",ce=se.toStringTag||"@@toStringTag";function Me(Ut,tt,Ue){return Object.defineProperty(Ut,tt,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),Ut[tt]}try{Me({},"")}catch(Ut){Me=function(Ue,It,Yt){return Ue[It]=Yt}}function Ne(Ut,tt,Ue,It){var Yt=tt&&tt.prototype instanceof wt?tt:wt,Ht=Object.create(Yt.prototype),Bn=new Jn(It||[]);return ie(Ht,"_invoke",{value:dn(Ut,Ue,Bn)}),Ht}function Ge(Ut,tt,Ue){try{return{type:"normal",arg:Ut.call(tt,Ue)}}catch(It){return{type:"throw",arg:It}}}Oe.wrap=Ne;var _e="suspendedStart",bt="suspendedYield",st="executing",mt="completed",xt={};function wt(){}function Nt(){}function ht(){}var Mt={};Me(Mt,ae,function(){return this});var jt=Object.getPrototypeOf,an=jt&&jt(jt(Rr([])));an&&an!==Be&&je.call(an,ae)&&(Mt=an);var Qt=ht.prototype=wt.prototype=Object.create(Mt);function cn(Ut){["next","throw","return"].forEach(function(tt){Me(Ut,tt,function(Ue){return this._invoke(tt,Ue)})})}function Tn(Ut,tt){function Ue(Yt,Ht,Bn,_n){var sr=Ge(Ut[Yt],Ut,Ht);if(sr.type!=="throw"){var lr=sr.arg,mr=lr.value;return mr&&(0,Dr.Z)(mr)=="object"&&je.call(mr,"__await")?tt.resolve(mr.__await).then(function(vr){Ue("next",vr,Bn,_n)},function(vr){Ue("throw",vr,Bn,_n)}):tt.resolve(mr).then(function(vr){lr.value=vr,Bn(lr)},function(vr){return Ue("throw",vr,Bn,_n)})}_n(sr.arg)}var It;ie(this,"_invoke",{value:function(Ht,Bn){function _n(){return new tt(function(sr,lr){Ue(Ht,Bn,sr,lr)})}return It=It?It.then(_n,_n):_n()}})}function dn(Ut,tt,Ue){var It=_e;return function(Yt,Ht){if(It===st)throw new Error("Generator is already running");if(It===mt){if(Yt==="throw")throw Ht;return{value:Re,done:!0}}for(Ue.method=Yt,Ue.arg=Ht;;){var Bn=Ue.delegate;if(Bn){var _n=Wn(Bn,Ue);if(_n){if(_n===xt)continue;return _n}}if(Ue.method==="next")Ue.sent=Ue._sent=Ue.arg;else if(Ue.method==="throw"){if(It===_e)throw It=mt,Ue.arg;Ue.dispatchException(Ue.arg)}else Ue.method==="return"&&Ue.abrupt("return",Ue.arg);It=st;var sr=Ge(Ut,tt,Ue);if(sr.type==="normal"){if(It=Ue.done?mt:bt,sr.arg===xt)continue;return{value:sr.arg,done:Ue.done}}sr.type==="throw"&&(It=mt,Ue.method="throw",Ue.arg=sr.arg)}}}function Wn(Ut,tt){var Ue=tt.method,It=Ut.iterator[Ue];if(It===Re)return tt.delegate=null,Ue==="throw"&&Ut.iterator.return&&(tt.method="return",tt.arg=Re,Wn(Ut,tt),tt.method==="throw")||Ue!=="return"&&(tt.method="throw",tt.arg=new TypeError("The iterator does not provide a '"+Ue+"' method")),xt;var Yt=Ge(It,Ut.iterator,tt.arg);if(Yt.type==="throw")return tt.method="throw",tt.arg=Yt.arg,tt.delegate=null,xt;var Ht=Yt.arg;return Ht?Ht.done?(tt[Ut.resultName]=Ht.value,tt.next=Ut.nextLoc,tt.method!=="return"&&(tt.method="next",tt.arg=Re),tt.delegate=null,xt):Ht:(tt.method="throw",tt.arg=new TypeError("iterator result is not an object"),tt.delegate=null,xt)}function br(Ut){var tt={tryLoc:Ut[0]};1 in Ut&&(tt.catchLoc=Ut[1]),2 in Ut&&(tt.finallyLoc=Ut[2],tt.afterLoc=Ut[3]),this.tryEntries.push(tt)}function $n(Ut){var tt=Ut.completion||{};tt.type="normal",delete tt.arg,Ut.completion=tt}function Jn(Ut){this.tryEntries=[{tryLoc:"root"}],Ut.forEach(br,this),this.reset(!0)}function Rr(Ut){if(Ut||Ut===""){var tt=Ut[ae];if(tt)return tt.call(Ut);if(typeof Ut.next=="function")return Ut;if(!isNaN(Ut.length)){var Ue=-1,It=function Yt(){for(;++Ue=0;--Yt){var Ht=this.tryEntries[Yt],Bn=Ht.completion;if(Ht.tryLoc==="root")return It("end");if(Ht.tryLoc<=this.prev){var _n=je.call(Ht,"catchLoc"),sr=je.call(Ht,"finallyLoc");if(_n&&sr){if(this.prev=0;--It){var Yt=this.tryEntries[It];if(Yt.tryLoc<=this.prev&&je.call(Yt,"finallyLoc")&&this.prev=0;--Ue){var It=this.tryEntries[Ue];if(It.finallyLoc===tt)return this.complete(It.completion,It.afterLoc),$n(It),xt}},catch:function(tt){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var It=this.tryEntries[Ue];if(It.tryLoc===tt){var Yt=It.completion;if(Yt.type==="throw"){var Ht=Yt.arg;$n(It)}return Ht}}throw new Error("illegal catch attempt")},delegateYield:function(tt,Ue,It){return this.delegate={iterator:Rr(tt),resultName:Ue,nextLoc:It},this.method==="next"&&(this.arg=Re),xt}},Oe}var et=e(12309);function zt(Re,Oe,Be,je,ie,se,ae){try{var ve=Re[se](ae),ce=ve.value}catch(Me){Be(Me);return}ve.done?Oe(ce):Promise.resolve(ce).then(je,ie)}function Ft(Re){return function(){var Oe=this,Be=arguments;return new Promise(function(je,ie){var se=Re.apply(Oe,Be);function ae(ce){zt(se,je,ie,ae,ve,"next",ce)}function ve(ce){zt(se,je,ie,ae,ve,"throw",ce)}ae(void 0)})}}var gn=e(92004);function _t(Re,Oe){var Be=typeof Symbol!="undefined"&&Re[Symbol.iterator]||Re["@@iterator"];if(!Be){if(Array.isArray(Re)||(Be=(0,gn.Z)(Re))||Oe&&Re&&typeof Re.length=="number"){Be&&(Re=Be);var je=0,ie=function(){};return{s:ie,n:function(){return je>=Re.length?{done:!0}:{done:!1,value:Re[je++]}},e:function(Me){throw Me},f:ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +}`),Y)}else(0,f.jL)(Y);return function(){(0,f.jL)(Y)}},[F,Y])}var R=!1;function $(b){return typeof b=="boolean"&&(R=b),R}var P=function(F){return F===!1?!1:!(0,a.Z)()||!F?null:typeof F=="string"?document.querySelector(F):typeof F=="function"?F():F},L=r.forwardRef(function(b,F){var B=b.open,W=b.autoLock,Y=b.getContainer,k=b.debug,U=b.autoDestroy,X=U===void 0?!0:U,I=b.children,j=r.useState(B),O=(0,t.Z)(j,2),x=O[0],N=O[1],J=x||B;r.useEffect(function(){(X||B)&&N(B)},[B,X]);var oe=r.useState(function(){return P(Y)}),G=(0,t.Z)(oe,2),ee=G[0],pe=G[1];r.useEffect(function(){var z=P(Y);pe(z!=null?z:null)});var ye=h(J&&!ee,k),$e=(0,t.Z)(ye,2),we=$e[0],ze=$e[1],Je=ee!=null?ee:we;T(W&&B&&(0,a.Z)()&&(Je===we||Je===document.body));var St=null;if(I&&(0,c.Yr)(I)&&F){var We=I;St=We.ref}var Qe=(0,c.x1)(St,F);if(!J||!(0,a.Z)()||ee===void 0)return null;var Ye=Je===!1||$(),Ie=I;return F&&(Ie=r.cloneElement(I,{ref:Qe})),r.createElement(l.Provider,{value:ze},Ye?Ie:(0,o.createPortal)(Ie,Je))}),K=L,Z=K},62382:function(m,v,e){"use strict";e.d(v,{Z:function(){return Ie}});var t=e(33346),r=e(32682),o=e(10570),a=e(89337),s=e(84875),c=e.n(s),u=e(12682),l=e(6574),d=e(79697),p=e(7748),y=e(66381),h=e(77189),f=e(88473),S=e(50959),C=e(38126),w=e(10091),E=e(12602);function T(z){var A=z.prefixCls,D=z.align,ne=z.arrow,H=z.arrowPos,te=ne||{},q=te.className,re=te.content,Se=H.x,Pe=Se===void 0?0:Se,Fe=H.y,He=Fe===void 0?0:Fe,de=S.useRef();if(!D||!D.points)return null;var Ce={position:"absolute"};if(D.autoArrow!==!1){var nt=D.points[0],ue=D.points[1],ge=nt[0],Ke=nt[1],qe=ue[0],ot=ue[1];ge===qe||!["t","b"].includes(ge)?Ce.top=He:ge==="t"?Ce.top=0:Ce.bottom=0,Ke===ot||!["l","r"].includes(Ke)?Ce.left=Pe:Ke==="l"?Ce.left=0:Ce.right=0}return S.createElement("div",{ref:de,className:c()("".concat(A,"-arrow"),q),style:Ce},re)}function R(z){var A=z.prefixCls,D=z.open,ne=z.zIndex,H=z.mask,te=z.motion;return H?S.createElement(w.ZP,(0,C.Z)({},te,{motionAppear:!0,visible:D,removeOnLeave:!0}),function(q){var re=q.className;return S.createElement("div",{style:{zIndex:ne},className:c()("".concat(A,"-mask"),re)})}):null}var $=S.memo(function(z){var A=z.children;return A},function(z,A){return A.cache}),P=$,L=S.forwardRef(function(z,A){var D=z.popup,ne=z.className,H=z.prefixCls,te=z.style,q=z.target,re=z.onVisibleChanged,Se=z.open,Pe=z.keepDom,Fe=z.fresh,He=z.onClick,de=z.mask,Ce=z.arrow,nt=z.arrowPos,ue=z.align,ge=z.motion,Ke=z.maskMotion,qe=z.forceRender,ot=z.getPopupContainer,Le=z.autoDestroy,Xe=z.portal,ke=z.zIndex,pt=z.onMouseEnter,ft=z.onMouseLeave,it=z.onPointerEnter,Lt=z.ready,Tt=z.offsetX,Wt=z.offsetY,Xt=z.offsetR,$t=z.offsetB,ln=z.onAlign,Pn=z.onPrepare,An=z.stretch,tn=z.targetWidth,nn=z.targetHeight,Fn=typeof D=="function"?D():D,un=Se||Pe,Sn=(ot==null?void 0:ot.length)>0,pn=S.useState(!ot||!Sn),Cn=(0,r.Z)(pn,2),Hn=Cn[0],Zn=Cn[1];if((0,h.Z)(function(){!Hn&&Sn&&q&&Zn(!0)},[Hn,Sn,q]),!Hn)return null;var hn="auto",Un={left:"-1000vw",top:"-1000vh",right:hn,bottom:hn};if(Lt||!Se){var zn,Er=ue.points,Dr=ue.dynamicInset||((zn=ue._experimental)===null||zn===void 0?void 0:zn.dynamicInset),rt=Dr&&Er[0][1]==="r",et=Dr&&Er[0][0]==="b";rt?(Un.right=Xt,Un.left=hn):(Un.left=Tt,Un.right=hn),et?(Un.bottom=$t,Un.top=hn):(Un.top=Wt,Un.bottom=hn)}var zt={};return An&&(An.includes("height")&&nn?zt.height=nn:An.includes("minHeight")&&nn&&(zt.minHeight=nn),An.includes("width")&&tn?zt.width=tn:An.includes("minWidth")&&tn&&(zt.minWidth=tn)),Se||(zt.pointerEvents="none"),S.createElement(Xe,{open:qe||un,getContainer:ot&&function(){return ot(q)},autoDestroy:Le},S.createElement(R,{prefixCls:H,open:Se,zIndex:ke,mask:de,motion:Ke}),S.createElement(u.Z,{onResize:ln,disabled:!Se},function(Ft){return S.createElement(w.ZP,(0,C.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:qe,leavedClassName:"".concat(H,"-hidden")},ge,{onAppearPrepare:Pn,onEnterPrepare:Pn,visible:Se,onVisibleChanged:function(_t){var wn;ge==null||(wn=ge.onVisibleChanged)===null||wn===void 0||wn.call(ge,_t),re(_t)}}),function(gn,_t){var wn=gn.className,en=gn.style,Yn=c()(H,wn,ne);return S.createElement("div",{ref:(0,E.sQ)(Ft,A,_t),className:Yn,style:(0,t.Z)((0,t.Z)((0,t.Z)((0,t.Z)({"--arrow-x":"".concat(nt.x||0,"px"),"--arrow-y":"".concat(nt.y||0,"px")},Un),zt),en),{},{boxSizing:"border-box",zIndex:ke},te),onMouseEnter:pt,onMouseLeave:ft,onPointerEnter:it,onClick:He},Ce&&S.createElement(T,{prefixCls:H,arrow:Ce,arrowPos:nt,align:ue}),S.createElement(P,{cache:!Se&&!Fe},Fn))})}))}),K=L,Z=S.forwardRef(function(z,A){var D=z.children,ne=z.getTriggerDOMNode,H=(0,E.Yr)(D),te=S.useCallback(function(re){(0,E.mH)(A,ne?ne(re):re)},[ne]),q=(0,E.x1)(te,D.ref);return H?S.cloneElement(D,{ref:q}):D}),b=Z,F=S.createContext(null),B=F;function W(z){return z?Array.isArray(z)?z:[z]:[]}function Y(z,A,D,ne){return S.useMemo(function(){var H=W(D!=null?D:A),te=W(ne!=null?ne:A),q=new Set(H),re=new Set(te);return z&&(q.has("hover")&&(q.delete("hover"),q.add("click")),re.has("hover")&&(re.delete("hover"),re.add("click"))),[q,re]},[z,A,D,ne])}var k=e(95992);function U(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],D=arguments.length>2?arguments[2]:void 0;return D?z[0]===A[0]:z[0]===A[0]&&z[1]===A[1]}function X(z,A,D,ne){for(var H=D.points,te=Object.keys(z),q=0;q1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(z)?A:z}function N(z){return x(parseFloat(z),0)}function J(z,A){var D=(0,t.Z)({},z);return(A||[]).forEach(function(ne){if(!(ne instanceof HTMLBodyElement||ne instanceof HTMLHtmlElement)){var H=j(ne).getComputedStyle(ne),te=H.overflow,q=H.overflowClipMargin,re=H.borderTopWidth,Se=H.borderBottomWidth,Pe=H.borderLeftWidth,Fe=H.borderRightWidth,He=ne.getBoundingClientRect(),de=ne.offsetHeight,Ce=ne.clientHeight,nt=ne.offsetWidth,ue=ne.clientWidth,ge=N(re),Ke=N(Se),qe=N(Pe),ot=N(Fe),Le=x(Math.round(He.width/nt*1e3)/1e3),Xe=x(Math.round(He.height/de*1e3)/1e3),ke=(nt-ue-qe-ot)*Le,pt=(de-Ce-ge-Ke)*Xe,ft=ge*Xe,it=Ke*Xe,Lt=qe*Le,Tt=ot*Le,Wt=0,Xt=0;if(te==="clip"){var $t=N(q);Wt=$t*Le,Xt=$t*Xe}var ln=He.x+Lt-Wt,Pn=He.y+ft-Xt,An=ln+He.width+2*Wt-Lt-Tt-ke,tn=Pn+He.height+2*Xt-ft-it-pt;D.left=Math.max(D.left,ln),D.top=Math.max(D.top,Pn),D.right=Math.min(D.right,An),D.bottom=Math.min(D.bottom,tn)}}),D}function oe(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D="".concat(A),ne=D.match(/^(.*)\%$/);return ne?z*(parseFloat(ne[1])/100):parseFloat(D)}function G(z,A){var D=A||[],ne=(0,r.Z)(D,2),H=ne[0],te=ne[1];return[oe(z.width,H),oe(z.height,te)]}function ee(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[z[0],z[1]]}function pe(z,A){var D=A[0],ne=A[1],H,te;return D==="t"?te=z.y:D==="b"?te=z.y+z.height:te=z.y+z.height/2,ne==="l"?H=z.x:ne==="r"?H=z.x+z.width:H=z.x+z.width/2,{x:H,y:te}}function ye(z,A){var D={t:"b",b:"t",l:"r",r:"l"};return z.map(function(ne,H){return H===A?D[ne]||"c":ne}).join("")}function $e(z,A,D,ne,H,te,q){var re=S.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:H[ne]||{}}),Se=(0,r.Z)(re,2),Pe=Se[0],Fe=Se[1],He=S.useRef(0),de=S.useMemo(function(){return A?O(A):[]},[A]),Ce=S.useRef({}),nt=function(){Ce.current={}};z||nt();var ue=(0,p.Z)(function(){if(A&&D&&z){let cr=function(gr,Kr){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Yn,Oa=Fn.x+gr,Pa=Fn.y+Kr,eo=Oa+zn,Ba=Pa+Un,Ea=Math.max(Oa,ta.left),co=Math.max(Pa,ta.top),Da=Math.min(eo,ta.right),yo=Math.min(Ba,ta.bottom);return Math.max(0,(Da-Ea)*(yo-co))},Cr=function(){wt=Fn.y+ie,Nt=wt+Un,ht=Fn.x+je,Mt=ht+zn};var qe,ot,Le=A,Xe=Le.ownerDocument,ke=j(Le),pt=ke.getComputedStyle(Le),ft=pt.width,it=pt.height,Lt=pt.position,Tt=Le.style.left,Wt=Le.style.top,Xt=Le.style.right,$t=Le.style.bottom,ln=Le.style.overflow,Pn=(0,t.Z)((0,t.Z)({},H[ne]),te),An=Xe.createElement("div");(qe=Le.parentElement)===null||qe===void 0||qe.appendChild(An),An.style.left="".concat(Le.offsetLeft,"px"),An.style.top="".concat(Le.offsetTop,"px"),An.style.position=Lt,An.style.height="".concat(Le.offsetHeight,"px"),An.style.width="".concat(Le.offsetWidth,"px"),Le.style.left="0",Le.style.top="0",Le.style.right="auto",Le.style.bottom="auto",Le.style.overflow="hidden";var tn;if(Array.isArray(D))tn={x:D[0],y:D[1],width:0,height:0};else{var nn=D.getBoundingClientRect();tn={x:nn.x,y:nn.y,width:nn.width,height:nn.height}}var Fn=Le.getBoundingClientRect(),un=Xe.documentElement,Sn=un.clientWidth,pn=un.clientHeight,Cn=un.scrollWidth,Hn=un.scrollHeight,Zn=un.scrollTop,hn=un.scrollLeft,Un=Fn.height,zn=Fn.width,Er=tn.height,Dr=tn.width,rt={left:0,top:0,right:Sn,bottom:pn},et={left:-hn,top:-Zn,right:Cn-hn,bottom:Hn-Zn},zt=Pn.htmlRegion,Ft="visible",gn="visibleFirst";zt!=="scroll"&&zt!==gn&&(zt=Ft);var _t=zt===gn,wn=J(et,de),en=J(rt,de),Yn=zt===Ft?en:wn,jn=_t?en:Yn;Le.style.left="auto",Le.style.top="auto",Le.style.right="0",Le.style.bottom="0";var Mn=Le.getBoundingClientRect();Le.style.left=Tt,Le.style.top=Wt,Le.style.right=Xt,Le.style.bottom=$t,Le.style.overflow=ln,(ot=Le.parentElement)===null||ot===void 0||ot.removeChild(An);var mn=x(Math.round(zn/parseFloat(ft)*1e3)/1e3),tr=x(Math.round(Un/parseFloat(it)*1e3)/1e3);if(mn===0||tr===0||(0,l.S)(D)&&!(0,k.Z)(D))return;var Nn=Pn.offset,Gn=Pn.targetOffset,bn=G(Fn,Nn),Mr=(0,r.Z)(bn,2),kn=Mr[0],fn=Mr[1],vt=G(tn,Gn),ct=(0,r.Z)(vt,2),Ot=ct[0],Rt=ct[1];tn.x-=Ot,tn.y-=Rt;var yt=Pn.points||[],kt=(0,r.Z)(yt,2),Kt=kt[0],rn=kt[1],En=ee(rn),sn=ee(Kt),Re=pe(tn,En),Oe=pe(Fn,sn),Be=(0,t.Z)({},Pn),je=Re.x-Oe.x+kn,ie=Re.y-Oe.y+fn,se=cr(je,ie),ae=cr(je,ie,en),ve=pe(tn,["t","l"]),ce=pe(Fn,["t","l"]),Me=pe(tn,["b","r"]),Ne=pe(Fn,["b","r"]),Ge=Pn.overflow||{},_e=Ge.adjustX,bt=Ge.adjustY,st=Ge.shiftX,mt=Ge.shiftY,xt=function(Kr){return typeof Kr=="boolean"?Kr:Kr>=0},wt,Nt,ht,Mt;Cr();var jt=xt(bt),an=sn[0]===En[0];if(jt&&sn[0]==="t"&&(Nt>jn.bottom||Ce.current.bt)){var Qt=ie;an?Qt-=Un-Er:Qt=ve.y-Ne.y-fn;var cn=cr(je,Qt),Tn=cr(je,Qt,en);cn>se||cn===se&&(!_t||Tn>=ae)?(Ce.current.bt=!0,ie=Qt,fn=-fn,Be.points=[ye(sn,0),ye(En,0)]):Ce.current.bt=!1}if(jt&&sn[0]==="b"&&(wtse||Wn===se&&(!_t||br>=ae)?(Ce.current.tb=!0,ie=dn,fn=-fn,Be.points=[ye(sn,0),ye(En,0)]):Ce.current.tb=!1}var $n=xt(_e),Jn=sn[1]===En[1];if($n&&sn[1]==="l"&&(Mt>jn.right||Ce.current.rl)){var Rr=je;Jn?Rr-=zn-Dr:Rr=ve.x-Ne.x-kn;var Ut=cr(Rr,ie),tt=cr(Rr,ie,en);Ut>se||Ut===se&&(!_t||tt>=ae)?(Ce.current.rl=!0,je=Rr,kn=-kn,Be.points=[ye(sn,1),ye(En,1)]):Ce.current.rl=!1}if($n&&sn[1]==="r"&&(htse||It===se&&(!_t||Yt>=ae)?(Ce.current.lr=!0,je=Ue,kn=-kn,Be.points=[ye(sn,1),ye(En,1)]):Ce.current.lr=!1}Cr();var Ht=st===!0?0:st;typeof Ht=="number"&&(hten.right&&(je-=Mt-en.right-kn,tn.x>en.right-Ht&&(je+=tn.x-en.right+Ht)));var Bn=mt===!0?0:mt;typeof Bn=="number"&&(wten.bottom&&(ie-=Nt-en.bottom-fn,tn.y>en.bottom-Bn&&(ie+=tn.y-en.bottom+Bn)));var _n=Fn.x+je,sr=_n+zn,lr=Fn.y+ie,mr=lr+Un,vr=tn.x,Tr=vr+Dr,Gr=tn.y,fa=Gr+Er,ur=Math.max(_n,vr),kr=Math.min(sr,Tr),Wr=(ur+kr)/2,xa=Wr-_n,Ta=Math.max(lr,Gr),ka=Math.min(mr,fa),Ga=(Ta+ka)/2,ro=Ga-lr;q==null||q(A,Be);var ba=Mn.right-Fn.x-(je+Fn.width),Xn=Mn.bottom-Fn.y-(ie+Fn.height);Fe({ready:!0,offsetX:je/mn,offsetY:ie/tr,offsetR:ba/mn,offsetB:Xn/tr,arrowX:xa/mn,arrowY:ro/tr,scaleX:mn,scaleY:tr,align:Be})}}),ge=function(){He.current+=1;var ot=He.current;Promise.resolve().then(function(){He.current===ot&&ue()})},Ke=function(){Fe(function(ot){return(0,t.Z)((0,t.Z)({},ot),{},{ready:!1})})};return(0,h.Z)(Ke,[ne]),(0,h.Z)(function(){z||Ke()},[z]),[Pe.ready,Pe.offsetX,Pe.offsetY,Pe.offsetR,Pe.offsetB,Pe.arrowX,Pe.arrowY,Pe.scaleX,Pe.scaleY,Pe.align,ge]}var we=e(1788);function ze(z,A,D,ne,H){(0,h.Z)(function(){if(z&&A&&D){let He=function(){ne(),H()};var te=A,q=D,re=O(te),Se=O(q),Pe=j(q),Fe=new Set([Pe].concat((0,we.Z)(re),(0,we.Z)(Se)));return Fe.forEach(function(de){de.addEventListener("scroll",He,{passive:!0})}),Pe.addEventListener("resize",He,{passive:!0}),ne(),function(){Fe.forEach(function(de){de.removeEventListener("scroll",He),Pe.removeEventListener("resize",He)})}}},[z,A,D])}var Je=e(12868),St=e(28449);function We(z,A,D,ne,H,te,q,re){var Se=S.useRef(z),Pe=S.useRef(!1);Se.current!==z&&(Pe.current=!0,Se.current=z),S.useEffect(function(){var Fe=(0,St.Z)(function(){Pe.current=!1});return function(){St.Z.cancel(Fe)}},[z]),S.useEffect(function(){if(A&&ne&&(!H||te)){var Fe=function(){var Lt=!1,Tt=function($t){var ln=$t.target;Lt=q(ln)},Wt=function($t){var ln=$t.target;!Pe.current&&Se.current&&!Lt&&!q(ln)&&re(!1)};return[Tt,Wt]},He=Fe(),de=(0,r.Z)(He,2),Ce=de[0],nt=de[1],ue=Fe(),ge=(0,r.Z)(ue,2),Ke=ge[0],qe=ge[1],ot=j(ne);ot.addEventListener("mousedown",Ce,!0),ot.addEventListener("click",nt,!0),ot.addEventListener("contextmenu",nt,!0);var Le=(0,d.A)(D);if(Le&&(Le.addEventListener("mousedown",Ke,!0),Le.addEventListener("click",qe,!0),Le.addEventListener("contextmenu",qe,!0)),!1)var Xe,ke,pt,ft;return function(){ot.removeEventListener("mousedown",Ce,!0),ot.removeEventListener("click",nt,!0),ot.removeEventListener("contextmenu",nt,!0),Le&&(Le.removeEventListener("mousedown",Ke,!0),Le.removeEventListener("click",qe,!0),Le.removeEventListener("contextmenu",qe,!0))}}},[A,D,ne,H,te])}var Qe=["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 Ye(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.Z,A=S.forwardRef(function(D,ne){var H=D.prefixCls,te=H===void 0?"rc-trigger-popup":H,q=D.children,re=D.action,Se=re===void 0?"hover":re,Pe=D.showAction,Fe=D.hideAction,He=D.popupVisible,de=D.defaultPopupVisible,Ce=D.onPopupVisibleChange,nt=D.afterPopupVisibleChange,ue=D.mouseEnterDelay,ge=D.mouseLeaveDelay,Ke=ge===void 0?.1:ge,qe=D.focusDelay,ot=D.blurDelay,Le=D.mask,Xe=D.maskClosable,ke=Xe===void 0?!0:Xe,pt=D.getPopupContainer,ft=D.forceRender,it=D.autoDestroy,Lt=D.destroyPopupOnHide,Tt=D.popup,Wt=D.popupClassName,Xt=D.popupStyle,$t=D.popupPlacement,ln=D.builtinPlacements,Pn=ln===void 0?{}:ln,An=D.popupAlign,tn=D.zIndex,nn=D.stretch,Fn=D.getPopupClassNameFromAlign,un=D.fresh,Sn=D.alignPoint,pn=D.onPopupClick,Cn=D.onPopupAlign,Hn=D.arrow,Zn=D.popupMotion,hn=D.maskMotion,Un=D.popupTransitionName,zn=D.popupAnimation,Er=D.maskTransitionName,Dr=D.maskAnimation,rt=D.className,et=D.getTriggerDOMNode,zt=(0,o.Z)(D,Qe),Ft=it||Lt||!1,gn=S.useState(!1),_t=(0,r.Z)(gn,2),wn=_t[0],en=_t[1];(0,h.Z)(function(){en((0,f.Z)())},[]);var Yn=S.useRef({}),jn=S.useContext(B),Mn=S.useMemo(function(){return{registerSubPopup:function(wr,Ma){Yn.current[wr]=Ma,jn==null||jn.registerSubPopup(wr,Ma)}}},[jn]),mn=(0,y.Z)(),tr=S.useState(null),Nn=(0,r.Z)(tr,2),Gn=Nn[0],bn=Nn[1],Mr=(0,p.Z)(function(Sr){(0,l.S)(Sr)&&Gn!==Sr&&bn(Sr),jn==null||jn.registerSubPopup(mn,Sr)}),kn=S.useState(null),fn=(0,r.Z)(kn,2),vt=fn[0],ct=fn[1],Ot=S.useRef(null),Rt=(0,p.Z)(function(Sr){(0,l.S)(Sr)&&vt!==Sr&&(ct(Sr),Ot.current=Sr)}),yt=S.Children.only(q),kt=(yt==null?void 0:yt.props)||{},Kt={},rn=(0,p.Z)(function(Sr){var wr,Ma,pa=vt;return(pa==null?void 0:pa.contains(Sr))||((wr=(0,d.A)(pa))===null||wr===void 0?void 0:wr.host)===Sr||Sr===pa||(Gn==null?void 0:Gn.contains(Sr))||((Ma=(0,d.A)(Gn))===null||Ma===void 0?void 0:Ma.host)===Sr||Sr===Gn||Object.values(Yn.current).some(function(ma){return(ma==null?void 0:ma.contains(Sr))||Sr===ma})}),En=I(te,Zn,zn,Un),sn=I(te,hn,Dr,Er),Re=S.useState(de||!1),Oe=(0,r.Z)(Re,2),Be=Oe[0],je=Oe[1],ie=He!=null?He:Be,se=(0,p.Z)(function(Sr){He===void 0&&je(Sr)});(0,h.Z)(function(){je(He||!1)},[He]);var ae=S.useRef(ie);ae.current=ie;var ve=S.useRef([]);ve.current=[];var ce=(0,p.Z)(function(Sr){var wr;se(Sr),((wr=ve.current[ve.current.length-1])!==null&&wr!==void 0?wr:ie)!==Sr&&(ve.current.push(Sr),Ce==null||Ce(Sr))}),Me=S.useRef(),Ne=function(){clearTimeout(Me.current)},Ge=function(wr){var Ma=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Ne(),Ma===0?ce(wr):Me.current=setTimeout(function(){ce(wr)},Ma*1e3)};S.useEffect(function(){return Ne},[]);var _e=S.useState(!1),bt=(0,r.Z)(_e,2),st=bt[0],mt=bt[1];(0,h.Z)(function(Sr){(!Sr||ie)&&mt(!0)},[ie]);var xt=S.useState(null),wt=(0,r.Z)(xt,2),Nt=wt[0],ht=wt[1],Mt=S.useState([0,0]),jt=(0,r.Z)(Mt,2),an=jt[0],Qt=jt[1],cn=function(wr){Qt([wr.clientX,wr.clientY])},Tn=$e(ie,Gn,Sn?an:vt,$t,Pn,An,Cn),dn=(0,r.Z)(Tn,11),Wn=dn[0],br=dn[1],$n=dn[2],Jn=dn[3],Rr=dn[4],Ut=dn[5],tt=dn[6],Ue=dn[7],It=dn[8],Yt=dn[9],Ht=dn[10],Bn=Y(wn,Se,Pe,Fe),_n=(0,r.Z)(Bn,2),sr=_n[0],lr=_n[1],mr=sr.has("click"),vr=lr.has("click")||lr.has("contextMenu"),Tr=(0,p.Z)(function(){st||Ht()}),Gr=function(){ae.current&&Sn&&vr&&Ge(!1)};ze(ie,vt,Gn,Tr,Gr),(0,h.Z)(function(){Tr()},[an,$t]),(0,h.Z)(function(){ie&&!(Pn!=null&&Pn[$t])&&Tr()},[JSON.stringify(An)]);var fa=S.useMemo(function(){var Sr=X(Pn,te,Yt,Sn);return c()(Sr,Fn==null?void 0:Fn(Yt))},[Yt,Fn,Pn,te,Sn]);S.useImperativeHandle(ne,function(){return{nativeElement:Ot.current,forceAlign:Tr}});var ur=S.useState(0),kr=(0,r.Z)(ur,2),Wr=kr[0],xa=kr[1],Ta=S.useState(0),ka=(0,r.Z)(Ta,2),Ga=ka[0],ro=ka[1],ba=function(){if(nn&&vt){var wr=vt.getBoundingClientRect();xa(wr.width),ro(wr.height)}},Xn=function(){ba(),Tr()},cr=function(wr){mt(!1),Ht(),nt==null||nt(wr)},Cr=function(){return new Promise(function(wr){ba(),ht(function(){return wr})})};(0,h.Z)(function(){Nt&&(Ht(),Nt(),ht(null))},[Nt]);function gr(Sr,wr,Ma,pa){Kt[Sr]=function(ma){var vo;pa==null||pa(ma),Ge(wr,Ma);for(var fo=arguments.length,Sa=new Array(fo>1?fo-1:0),wa=1;wa1?Ma-1:0),ma=1;ma1?Ma-1:0),ma=1;ma-1&&(se=setTimeout(function(){R.delete(Oe)},Be)),R.set(Oe,{data:je,timer:se,startTime:new Date().getTime()})},P=function(Oe){var Be=R.get(Oe);return{data:Be==null?void 0:Be.data,startTime:Be==null?void 0:Be.startTime}},L=function(Re,Oe){var Be=typeof Symbol=="function"&&Re[Symbol.iterator];if(!Be)return Re;var je=Be.call(Re),ie,se=[],ae;try{for(;(Oe===void 0||Oe-- >0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},K=function(){for(var Re=[],Oe=0;Oe0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},F=function(){for(var Re=[],Oe=0;Oe0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},ye=function(){for(var Re=[],Oe=0;Oe0){var cr=Tn&&((Xn=P(Tn))===null||Xn===void 0?void 0:Xn.startTime)||0;$n===-1||new Date().getTime()-cr<=$n||Object.values(ur).forEach(function(Cr){Cr.refresh()})}else ka.current.apply(ka,ye(ht))},[]);var ro=(0,h.useCallback)(function(){Object.values(Wr.current).forEach(function(Xn){Xn.unmount()}),Ht.current=$e,kr({}),Wr.current={}},[kr]);k(function(){ae||Object.values(Wr.current).forEach(function(Xn){Xn.refresh()})},ye(ie)),(0,h.useEffect)(function(){return function(){Object.values(Wr.current).forEach(function(Xn){Xn.unmount()})}},[]);var ba=(0,h.useCallback)(function(Xn){return function(){console.warn("You should't call "+Xn+" when service not executed once.")}},[]);return ee(ee({loading:Ue&&!ae||_e,data:Ut,error:void 0,params:[],cancel:ba("cancel"),refresh:ba("refresh"),mutate:ba("mutate")},ur[Ht.current]||{}),{run:Ta,fetches:ur,reset:ro})}var Je=ze,St=function(){return St=Object.assign||function(Re){for(var Oe,Be=1,je=arguments.length;Be0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},Ye=function(){for(var Re=[],Oe=0;Oe0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},H=function(){for(var Re=[],Oe=0;OeYt&&(Ue=Math.max(1,Yt)),cn({current:Ue,pageSize:It})},[Tn,cn]),br=(0,h.useCallback)(function(Ut){Wn(Ut,ht)},[Wn,ht]),$n=(0,h.useCallback)(function(Ut){Wn(wt,Ut)},[Wn,wt]),Jn=(0,h.useRef)(br);Jn.current=br,k(function(){Oe.manual||Jn.current(1)},H(ae));var Rr=(0,h.useCallback)(function(Ut,tt,Ue){cn({current:Ut.current,pageSize:Ut.pageSize||ie,filters:tt,sorter:Ue})},[Qt,jt,cn]);return A({loading:bt,data:Ne,params:Ge,run:_e,pagination:{current:wt,pageSize:ht,total:Tn,totalPage:dn,onChange:Wn,changeCurrent:br,changePageSize:$n},tableProps:{dataSource:(Ne==null?void 0:Ne.list)||[],loading:bt,onChange:Rr,pagination:{current:wt,pageSize:ht,total:Tn}},sorter:jt,filters:Qt},st)}var q=te,re=h.createContext({});re.displayName="UseRequestConfigContext";var Se=re,Pe=function(){return Pe=Object.assign||function(Re){for(var Oe,Be=1,je=arguments.length;Be0)&&!(ie=je.next()).done;)se.push(ie.value)}catch(ve){ae={error:ve}}finally{try{ie&&!ie.done&&(Be=je.return)&&Be.call(je)}finally{if(ae)throw ae.error}}return se},de=function(){for(var Re=[],Oe=0;Oe1&&arguments[1]!==void 0?arguments[1]:{};return ge(Re,d()({formatResult:function(je){return je==null?void 0:je.data},requestMethod:function(je){if(typeof je=="string")return ft(je);if(u()(je)==="object"){var ie=je.url,se=s()(je,qe);return ft(ie,se)}throw new Error("request options error")}},Oe))}var Le,Xe,ke=function(){return Xe||(Xe=(0,Ke.We)().applyPlugins({key:"request",type:fn.modify,initialValue:{}}),Xe)},pt=function(){var Oe,Be;if(Le)return Le;var je=ke();return Le=y().create(je),je==null||(Oe=je.requestInterceptors)===null||Oe===void 0||Oe.forEach(function(ie){ie instanceof Array?Le.interceptors.request.use(function(se){var ae=se.url;if(ie[0].length===2){var ve=ie[0](ae,se),ce=ve.url,Me=ve.options;return d()(d()({},Me),{},{url:ce})}return ie[0](se)},ie[1]):Le.interceptors.request.use(function(se){var ae=se.url;if(ie.length===2){var ve=ie(ae,se),ce=ve.url,Me=ve.options;return d()(d()({},Me),{},{url:ce})}return ie(se)})}),je==null||(Be=je.responseInterceptors)===null||Be===void 0||Be.forEach(function(ie){ie instanceof Array?Le.interceptors.response.use(ie[0],ie[1]):Le.interceptors.response.use(ie)}),Le.interceptors.response.use(function(ie){var se,ae=ie.data;return(ae==null?void 0:ae.success)===!1&&je!==null&&je!==void 0&&(se=je.errorConfig)!==null&&se!==void 0&&se.errorThrower&&je.errorConfig.errorThrower(ae),ie}),Le},ft=function(Oe){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},je=pt(),ie=ke(),se=Be.getResponse,ae=se===void 0?!1:se,ve=Be.requestInterceptors,ce=Be.responseInterceptors,Me=ve==null?void 0:ve.map(function(Ge){return Ge instanceof Array?je.interceptors.request.use(function(_e){var bt=_e.url;if(Ge[0].length===2){var st=Ge[0](bt,_e),mt=st.url,xt=st.options;return d()(d()({},xt),{},{url:mt})}return Ge[0](_e)},Ge[1]):je.interceptors.request.use(function(_e){var bt=_e.url;if(Ge.length===2){var st=Ge(bt,_e),mt=st.url,xt=st.options;return d()(d()({},xt),{},{url:mt})}return Ge(_e)})}),Ne=ce==null?void 0:ce.map(function(Ge){return Ge instanceof Array?je.interceptors.response.use(Ge[0],Ge[1]):je.interceptors.response.use(Ge)});return new Promise(function(Ge,_e){je.request(d()(d()({},Be),{},{url:Oe})).then(function(bt){Me==null||Me.forEach(function(st){je.interceptors.request.eject(st)}),Ne==null||Ne.forEach(function(st){je.interceptors.response.eject(st)}),Ge(ae?bt:bt.data)}).catch(function(bt){Me==null||Me.forEach(function(xt){je.interceptors.request.eject(xt)}),Ne==null||Ne.forEach(function(xt){je.interceptors.response.eject(xt)});try{var st,mt=ie==null||(st=ie.errorConfig)===null||st===void 0?void 0:st.errorHandler;mt&&mt(bt,Be,ie)}catch(xt){_e(xt)}_e(bt)})})},it=e(44492),Lt=e(18280);function Tt(){return Tt=Object.assign||function(Re){for(var Oe=1;Oe=0)&&(Be[ie]=Re[ie]);return Be}const Xt=["onClick","reloadDocument","replace","state","target","to"],$t=null;function ln(Re,Oe){if(!Re){typeof console!="undefined"&&console.warn(Oe);try{throw new Error(Oe)}catch(Be){}}}function Pn(Re){let{basename:Oe,children:Be,window:je}=Re,ie=useRef();ie.current==null&&(ie.current=createBrowserHistory({window:je}));let se=ie.current,[ae,ve]=useState({action:se.action,location:se.location});return useLayoutEffect(()=>se.listen(ve),[se]),createElement(Router,{basename:Oe,children:Be,location:ae.location,navigationType:ae.action,navigator:se})}function An(Re){let{basename:Oe,children:Be,window:je}=Re,ie=useRef();ie.current==null&&(ie.current=createHashHistory({window:je}));let se=ie.current,[ae,ve]=useState({action:se.action,location:se.location});return useLayoutEffect(()=>se.listen(ve),[se]),createElement(Router,{basename:Oe,children:Be,location:ae.location,navigationType:ae.action,navigator:se})}function tn(Re){let{basename:Oe,children:Be,history:je}=Re;const[ie,se]=useState({action:je.action,location:je.location});return useLayoutEffect(()=>je.listen(se),[je]),createElement(Router,{basename:Oe,children:Be,location:ie.location,navigationType:ie.action,navigator:je})}function nn(Re){return!!(Re.metaKey||Re.altKey||Re.ctrlKey||Re.shiftKey)}const Fn=(0,h.forwardRef)(function(Oe,Be){let{onClick:je,reloadDocument:ie,replace:se=!1,state:ae,target:ve,to:ce}=Oe,Me=Wt(Oe,Xt),Ne=(0,it.oQ)(ce),Ge=Sn(ce,{replace:se,state:ae,target:ve});function _e(bt){je&&je(bt),!bt.defaultPrevented&&!ie&&Ge(bt)}return(0,h.createElement)("a",Tt({},Me,{href:Ne,onClick:_e,ref:Be,target:ve}))}),un=null;function Sn(Re,Oe){let{target:Be,replace:je,state:ie}=Oe===void 0?{}:Oe,se=(0,it.s0)(),ae=(0,it.TH)(),ve=(0,it.WU)(Re);return(0,h.useCallback)(ce=>{if(ce.button===0&&(!Be||Be==="_self")&&!nn(ce)){ce.preventDefault();let Me=!!je||(0,Lt.Ep)(ae)===(0,Lt.Ep)(ve);se(Re,{replace:Me,state:ie})}},[ae,se,ve,je,ie,Be,Re])}function pn(Re){let Oe=(0,h.useRef)(Cn(Re)),Be=(0,it.TH)(),je=(0,h.useMemo)(()=>{let ae=Cn(Be.search);for(let ve of Oe.current.keys())ae.has(ve)||Oe.current.getAll(ve).forEach(ce=>{ae.append(ve,ce)});return ae},[Be.search]),ie=(0,it.s0)(),se=(0,h.useCallback)((ae,ve)=>{ie("?"+Cn(ae),ve)},[ie]);return[je,se]}function Cn(Re){return Re===void 0&&(Re=""),new URLSearchParams(typeof Re=="string"||Array.isArray(Re)||Re instanceof URLSearchParams?Re:Object.keys(Re).reduce((Oe,Be)=>{let je=Re[Be];return Oe.concat(Array.isArray(je)?je.map(ie=>[Be,ie]):[[Be,je]])},[]))}var Hn=e(97605),Zn=e(10582),hn=e(2202),Un=["prefetch"];function zn(Re){var Oe,Be=Re.prefetch,je=(0,Zn.Z)(Re,Un),ie=(0,hn.Ov)(),se=typeof Re.to=="string"?Re.to:(Oe=Re.to)===null||Oe===void 0?void 0:Oe.pathname;return se?h.createElement(Fn,(0,Hn.Z)({onMouseEnter:function(){var ve;return Be&&se&&((ve=ie.preloadRoute)===null||ve===void 0?void 0:ve.call(ie,se))}},je),Re.children):null}var Er=e(62363),Dr=e(26407);function rt(){"use strict";rt=function(){return Oe};var Re,Oe={},Be=Object.prototype,je=Be.hasOwnProperty,ie=Object.defineProperty||function(Ut,tt,Ue){Ut[tt]=Ue.value},se=typeof Symbol=="function"?Symbol:{},ae=se.iterator||"@@iterator",ve=se.asyncIterator||"@@asyncIterator",ce=se.toStringTag||"@@toStringTag";function Me(Ut,tt,Ue){return Object.defineProperty(Ut,tt,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),Ut[tt]}try{Me({},"")}catch(Ut){Me=function(Ue,It,Yt){return Ue[It]=Yt}}function Ne(Ut,tt,Ue,It){var Yt=tt&&tt.prototype instanceof wt?tt:wt,Ht=Object.create(Yt.prototype),Bn=new Jn(It||[]);return ie(Ht,"_invoke",{value:dn(Ut,Ue,Bn)}),Ht}function Ge(Ut,tt,Ue){try{return{type:"normal",arg:Ut.call(tt,Ue)}}catch(It){return{type:"throw",arg:It}}}Oe.wrap=Ne;var _e="suspendedStart",bt="suspendedYield",st="executing",mt="completed",xt={};function wt(){}function Nt(){}function ht(){}var Mt={};Me(Mt,ae,function(){return this});var jt=Object.getPrototypeOf,an=jt&&jt(jt(Rr([])));an&&an!==Be&&je.call(an,ae)&&(Mt=an);var Qt=ht.prototype=wt.prototype=Object.create(Mt);function cn(Ut){["next","throw","return"].forEach(function(tt){Me(Ut,tt,function(Ue){return this._invoke(tt,Ue)})})}function Tn(Ut,tt){function Ue(Yt,Ht,Bn,_n){var sr=Ge(Ut[Yt],Ut,Ht);if(sr.type!=="throw"){var lr=sr.arg,mr=lr.value;return mr&&(0,Dr.Z)(mr)=="object"&&je.call(mr,"__await")?tt.resolve(mr.__await).then(function(vr){Ue("next",vr,Bn,_n)},function(vr){Ue("throw",vr,Bn,_n)}):tt.resolve(mr).then(function(vr){lr.value=vr,Bn(lr)},function(vr){return Ue("throw",vr,Bn,_n)})}_n(sr.arg)}var It;ie(this,"_invoke",{value:function(Ht,Bn){function _n(){return new tt(function(sr,lr){Ue(Ht,Bn,sr,lr)})}return It=It?It.then(_n,_n):_n()}})}function dn(Ut,tt,Ue){var It=_e;return function(Yt,Ht){if(It===st)throw new Error("Generator is already running");if(It===mt){if(Yt==="throw")throw Ht;return{value:Re,done:!0}}for(Ue.method=Yt,Ue.arg=Ht;;){var Bn=Ue.delegate;if(Bn){var _n=Wn(Bn,Ue);if(_n){if(_n===xt)continue;return _n}}if(Ue.method==="next")Ue.sent=Ue._sent=Ue.arg;else if(Ue.method==="throw"){if(It===_e)throw It=mt,Ue.arg;Ue.dispatchException(Ue.arg)}else Ue.method==="return"&&Ue.abrupt("return",Ue.arg);It=st;var sr=Ge(Ut,tt,Ue);if(sr.type==="normal"){if(It=Ue.done?mt:bt,sr.arg===xt)continue;return{value:sr.arg,done:Ue.done}}sr.type==="throw"&&(It=mt,Ue.method="throw",Ue.arg=sr.arg)}}}function Wn(Ut,tt){var Ue=tt.method,It=Ut.iterator[Ue];if(It===Re)return tt.delegate=null,Ue==="throw"&&Ut.iterator.return&&(tt.method="return",tt.arg=Re,Wn(Ut,tt),tt.method==="throw")||Ue!=="return"&&(tt.method="throw",tt.arg=new TypeError("The iterator does not provide a '"+Ue+"' method")),xt;var Yt=Ge(It,Ut.iterator,tt.arg);if(Yt.type==="throw")return tt.method="throw",tt.arg=Yt.arg,tt.delegate=null,xt;var Ht=Yt.arg;return Ht?Ht.done?(tt[Ut.resultName]=Ht.value,tt.next=Ut.nextLoc,tt.method!=="return"&&(tt.method="next",tt.arg=Re),tt.delegate=null,xt):Ht:(tt.method="throw",tt.arg=new TypeError("iterator result is not an object"),tt.delegate=null,xt)}function br(Ut){var tt={tryLoc:Ut[0]};1 in Ut&&(tt.catchLoc=Ut[1]),2 in Ut&&(tt.finallyLoc=Ut[2],tt.afterLoc=Ut[3]),this.tryEntries.push(tt)}function $n(Ut){var tt=Ut.completion||{};tt.type="normal",delete tt.arg,Ut.completion=tt}function Jn(Ut){this.tryEntries=[{tryLoc:"root"}],Ut.forEach(br,this),this.reset(!0)}function Rr(Ut){if(Ut||Ut===""){var tt=Ut[ae];if(tt)return tt.call(Ut);if(typeof Ut.next=="function")return Ut;if(!isNaN(Ut.length)){var Ue=-1,It=function Yt(){for(;++Ue=0;--Yt){var Ht=this.tryEntries[Yt],Bn=Ht.completion;if(Ht.tryLoc==="root")return It("end");if(Ht.tryLoc<=this.prev){var _n=je.call(Ht,"catchLoc"),sr=je.call(Ht,"finallyLoc");if(_n&&sr){if(this.prev=0;--It){var Yt=this.tryEntries[It];if(Yt.tryLoc<=this.prev&&je.call(Yt,"finallyLoc")&&this.prev=0;--Ue){var It=this.tryEntries[Ue];if(It.finallyLoc===tt)return this.complete(It.completion,It.afterLoc),$n(It),xt}},catch:function(tt){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var It=this.tryEntries[Ue];if(It.tryLoc===tt){var Yt=It.completion;if(Yt.type==="throw"){var Ht=Yt.arg;$n(It)}return Ht}}throw new Error("illegal catch attempt")},delegateYield:function(tt,Ue,It){return this.delegate={iterator:Rr(tt),resultName:Ue,nextLoc:It},this.method==="next"&&(this.arg=Re),xt}},Oe}var et=e(12309);function zt(Re,Oe,Be,je,ie,se,ae){try{var ve=Re[se](ae),ce=ve.value}catch(Me){Be(Me);return}ve.done?Oe(ce):Promise.resolve(ce).then(je,ie)}function Ft(Re){return function(){var Oe=this,Be=arguments;return new Promise(function(je,ie){var se=Re.apply(Oe,Be);function ae(ce){zt(se,je,ie,ae,ve,"next",ce)}function ve(ce){zt(se,je,ie,ae,ve,"throw",ce)}ae(void 0)})}}var gn=e(92004);function _t(Re,Oe){var Be=typeof Symbol!="undefined"&&Re[Symbol.iterator]||Re["@@iterator"];if(!Be){if(Array.isArray(Re)||(Be=(0,gn.Z)(Re))||Oe&&Re&&typeof Re.length=="number"){Be&&(Re=Be);var je=0,ie=function(){};return{s:ie,n:function(){return je>=Re.length?{done:!0}:{done:!1,value:Re[je++]}},e:function(Me){throw Me},f:ie}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var se=!0,ae=!1,ve;return{s:function(){Be=Be.call(Re)},n:function(){var Me=Be.next();return se=Me.done,Me},e:function(Me){ae=!0,ve=Me},f:function(){try{!se&&Be.return!=null&&Be.return()}finally{if(ae)throw ve}}}}var wn=e(6799);function en(Re){if(typeof Symbol!="undefined"&&Re[Symbol.iterator]!=null||Re["@@iterator"]!=null)return Array.from(Re)}var Yn=e(92597);function jn(Re){return(0,wn.Z)(Re)||en(Re)||(0,gn.Z)(Re)||(0,Yn.Z)()}function Mn(Re,Oe){if(!(Re instanceof Oe))throw new TypeError("Cannot call a class as a function")}var mn=e(76755);function tr(Re,Oe){for(var Be=0;Be-1,"register failed, invalid key ".concat(ie," ").concat(Be.path?"from plugin ".concat(Be.path):"",".")),je.hooks[ie]=(je.hooks[ie]||[]).concat(Be.apply[ie])})}},{key:"getHooks",value:function(Be){var je=Be.split("."),ie=jn(je),se=ie[0],ae=ie.slice(1),ve=this.hooks[se]||[];return ae.length&&(ve=ve.map(function(ce){try{var Me=ce,Ne=_t(ae),Ge;try{for(Ne.s();!(Ge=Ne.n()).done;){var _e=Ge.value;Me=Me[_e]}}catch(bt){Ne.e(bt)}finally{Ne.f()}return Me}catch(bt){return null}}).filter(Boolean)),ve}},{key:"applyPlugins",value:function(Be){var je=Be.key,ie=Be.type,se=Be.initialValue,ae=Be.args,ve=Be.async,ce=this.getHooks(je)||[];switch(ae&&bn((0,Dr.Z)(ae)==="object","applyPlugins failed, args must be plain object."),ve&&bn(ie===fn.modify||ie===fn.event,"async only works with modify and event type."),ie){case fn.modify:return ve?ce.reduce(function(){var Me=Ft(rt().mark(function Ne(Ge,_e){var bt;return rt().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:if(bn(typeof _e=="function"||(0,Dr.Z)(_e)==="object"||kn(_e),"applyPlugins failed, all hooks for key ".concat(je," must be function, plain object or Promise.")),!kn(Ge)){mt.next=5;break}return mt.next=4,Ge;case 4:Ge=mt.sent;case 5:if(typeof _e!="function"){mt.next=16;break}if(bt=_e(Ge,ae),!kn(bt)){mt.next=13;break}return mt.next=10,bt;case 10:return mt.abrupt("return",mt.sent);case 13:return mt.abrupt("return",bt);case 14:mt.next=21;break;case 16:if(!kn(_e)){mt.next=20;break}return mt.next=19,_e;case 19:_e=mt.sent;case 20:return mt.abrupt("return",(0,et.Z)((0,et.Z)({},Ge),_e));case 21:case"end":return mt.stop()}},Ne)}));return function(Ne,Ge){return Me.apply(this,arguments)}}(),kn(se)?se:Promise.resolve(se)):ce.reduce(function(Me,Ne){return bn(typeof Ne=="function"||(0,Dr.Z)(Ne)==="object","applyPlugins failed, all hooks for key ".concat(je," must be function or plain object.")),typeof Ne=="function"?Ne(Me,ae):(0,et.Z)((0,et.Z)({},Me),Ne)},se);case fn.event:return Ft(rt().mark(function Me(){var Ne,Ge,_e,bt;return rt().wrap(function(mt){for(;;)switch(mt.prev=mt.next){case 0:Ne=_t(ce),mt.prev=1,Ne.s();case 3:if((Ge=Ne.n()).done){mt.next=12;break}if(_e=Ge.value,bn(typeof _e=="function","applyPlugins failed, all hooks for key ".concat(je," must be function.")),bt=_e(ae),!(ve&&kn(bt))){mt.next=10;break}return mt.next=10,bt;case 10:mt.next=3;break;case 12:mt.next=17;break;case 14:mt.prev=14,mt.t0=mt.catch(1),Ne.e(mt.t0);case 17:return mt.prev=17,Ne.f(),mt.finish(17);case 20:case"end":return mt.stop()}},Me,null,[[1,14,17,20]])}))();case fn.compose:return function(){return Mr({fns:ce.concat(se),args:ae})()}}}}],[{key:"create",value:function(Be){var je=new Re({validKeys:Be.validKeys});return Be.plugins.forEach(function(ie){je.register(ie)}),je}}]),Re}(),ct=e(88109),Ot=0,Rt=0;function yt(Re,Oe){if(!1)var Be}function kt(Re){return JSON.stringify(Re,null,2)}function Kt(Re){var Oe=Re.length>1?Re.map(rn).join(" "):Re[0];return u()(Oe)==="object"?"".concat(kt(Oe)):Oe.toString()}function rn(Re){return u()(Re)==="object"?"".concat(JSON.stringify(Re)):Re.toString()}var En={log:function(){for(var Oe=arguments.length,Be=new Array(Oe),je=0;je0){for($r=1,Br=1;$rgi&&(gi=De,Es=[]),Es.push(he))}function Lo(he,Ve){return new ee(he,[],"",Ve)}function Qs(he,Ve,Zt){return new ee(ee.buildMessage(he,Ve),he,Ve,Zt)}function Js(){var he;return he=Ps(),he}function Ps(){var he,Ve;for(he=[],Ve=hi();Ve!==Q;)he.push(Ve),Ve=hi();return he}function hi(){var he;return he=Ts(),he===Q&&(he=Ol(),he===Q&&(he=qs(),he===Q&&(he=lu(),he===Q&&(he=Rl(),he===Q&&(he=El()))))),he}function Uo(){var he,Ve,Zt;if(he=De,Ve=[],Zt=ss(),Zt===Q&&(Zt=Ll(),Zt===Q&&(Zt=cu())),Zt!==Q)for(;Zt!==Q;)Ve.push(Zt),Zt=ss(),Zt===Q&&(Zt=Ll(),Zt===Q&&(Zt=cu()));else Ve=Q;return Ve!==Q&&($a=he,Ve=xn(Ve)),he=Ve,he}function Ts(){var he,Ve;return he=De,Ve=Uo(),Ve!==Q&&($a=he,Ve=Ln(Ve)),he=Ve,he}function El(){var he,Ve;return he=De,xe.charCodeAt(De)===35?(Ve=or,De++):(Ve=Q,yn===0&&Or(Ir)),Ve!==Q&&($a=he,Ve=ua()),he=Ve,he}function Ol(){var he,Ve,Zt,On,pr,na;return yn++,he=De,xe.charCodeAt(De)===123?(Ve=xr,De++):(Ve=Q,yn===0&&Or($r)),Ve!==Q?(Zt=Fa(),Zt!==Q?(On=ls(),On!==Q?(pr=Fa(),pr!==Q?(xe.charCodeAt(De)===125?(na=Br,De++):(na=Q,yn===0&&Or(Xr)),na!==Q?($a=he,Ve=ko(On),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q),yn--,he===Q&&(Ve=Q,yn===0&&Or(fr)),he}function Pl(){var he,Ve,Zt,On,pr;if(yn++,he=De,Ve=[],Zt=De,On=De,yn++,pr=Yi(),pr===Q&&(mo.test(xe.charAt(De))?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(di))),yn--,pr===Q?On=void 0:(De=On,On=Q),On!==Q?(xe.length>De?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(Qo)),pr!==Q?(On=[On,pr],Zt=On):(De=Zt,Zt=Q)):(De=Zt,Zt=Q),Zt!==Q)for(;Zt!==Q;)Ve.push(Zt),Zt=De,On=De,yn++,pr=Yi(),pr===Q&&(mo.test(xe.charAt(De))?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(di))),yn--,pr===Q?On=void 0:(De=On,On=Q),On!==Q?(xe.length>De?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(Qo)),pr!==Q?(On=[On,pr],Zt=On):(De=Zt,Zt=Q)):(De=Zt,Zt=Q);else Ve=Q;return Ve!==Q?he=xe.substring(he,De):he=Ve,yn--,he===Q&&(Ve=Q,yn===0&&Or(go)),he}function Tl(){var he,Ve,Zt;return yn++,he=De,xe.charCodeAt(De)===47?(Ve=Ls,De++):(Ve=Q,yn===0&&Or(kl)),Ve!==Q?(Zt=Pl(),Zt!==Q?($a=he,Ve=Ul(Zt),he=Ve):(De=he,he=Q)):(De=he,he=Q),yn--,he===Q&&(Ve=Q,yn===0&&Or(ho)),he}function wl(){var he,Ve,Zt,On,pr;if(yn++,he=De,Ve=Fa(),Ve!==Q)if(Zt=Pl(),Zt!==Q){for(On=[],pr=Tl();pr!==Q;)On.push(pr),pr=Tl();On!==Q?($a=he,Ve=Kl(Zt,On),he=Ve):(De=he,he=Q)}else De=he,he=Q;else De=he,he=Q;return yn--,he===Q&&(Ve=Q,yn===0&&Or(Ns)),he}function au(){var he,Ve,Zt;if(he=De,Ve=[],Zt=wl(),Zt!==Q)for(;Zt!==Q;)Ve.push(Zt),Zt=wl();else Ve=Q;return Ve!==Q&&($a=he,Ve=Ti(Ve)),he=Ve,he}function ou(){var he,Ve,Zt;return he=De,xe.substr(De,2)===Ki?(Ve=Ki,De+=2):(Ve=Q,yn===0&&Or(js)),Ve!==Q?(Zt=au(),Zt!==Q?($a=he,Ve=sl(Zt),he=Ve):(De=he,he=Q)):(De=he,he=Q),he===Q&&(he=De,$a=De,Ve=Du(),Ve?Ve=void 0:Ve=Q,Ve!==Q?(Zt=Uo(),Zt!==Q?($a=he,Ve=wi(Zt),he=Ve):(De=he,he=Q)):(De=he,he=Q)),he}function iu(){var he,Ve,Zt,On,pr,na,no,ja,Ko,za,Aa,da,so;return he=De,xe.charCodeAt(De)===123?(Ve=xr,De++):(Ve=Q,yn===0&&Or($r)),Ve!==Q?(Zt=Fa(),Zt!==Q?(On=ls(),On!==Q?(pr=Fa(),pr!==Q?(xe.charCodeAt(De)===44?(na=Jo,De++):(na=Q,yn===0&&Or(_o)),na!==Q?(no=Fa(),no!==Q?(xe.substr(De,6)===bs?(ja=bs,De+=6):(ja=Q,yn===0&&Or(Fs)),ja!==Q?(Ko=Fa(),Ko!==Q?(za=De,xe.charCodeAt(De)===44?(Aa=Jo,De++):(Aa=Q,yn===0&&Or(_o)),Aa!==Q?(da=Fa(),da!==Q?(so=ou(),so!==Q?(Aa=[Aa,da,so],za=Aa):(De=za,za=Q)):(De=za,za=Q)):(De=za,za=Q),za===Q&&(za=null),za!==Q?(Aa=Fa(),Aa!==Q?(xe.charCodeAt(De)===125?(da=Br,De++):(da=Q,yn===0&&Or(Xr)),da!==Q?($a=he,Ve=qo(On,ja,za),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q),he}function Il(){var he,Ve,Zt,On;if(he=De,xe.charCodeAt(De)===39?(Ve=Do,De++):(Ve=Q,yn===0&&Or(fi)),Ve!==Q){if(Zt=[],On=ss(),On===Q&&(ii.test(xe.charAt(De))?(On=xe.charAt(De),De++):(On=Q,yn===0&&Or(si))),On!==Q)for(;On!==Q;)Zt.push(On),On=ss(),On===Q&&(ii.test(xe.charAt(De))?(On=xe.charAt(De),De++):(On=Q,yn===0&&Or(si)));else Zt=Q;Zt!==Q?(xe.charCodeAt(De)===39?(On=Do,De++):(On=Q,yn===0&&Or(fi)),On!==Q?(Ve=[Ve,Zt,On],he=Ve):(De=he,he=Q)):(De=he,he=Q)}else De=he,he=Q;if(he===Q)if(he=[],Ve=ss(),Ve===Q&&(Fi.test(xe.charAt(De))?(Ve=xe.charAt(De),De++):(Ve=Q,yn===0&&Or(ll))),Ve!==Q)for(;Ve!==Q;)he.push(Ve),Ve=ss(),Ve===Q&&(Fi.test(xe.charAt(De))?(Ve=xe.charAt(De),De++):(Ve=Q,yn===0&&Or(ll)));else he=Q;return he}function Ml(){var he,Ve;if(he=[],Bs.test(xe.charAt(De))?(Ve=xe.charAt(De),De++):(Ve=Q,yn===0&&Or(Zs)),Ve!==Q)for(;Ve!==Q;)he.push(Ve),Bs.test(xe.charAt(De))?(Ve=xe.charAt(De),De++):(Ve=Q,yn===0&&Or(Zs));else he=Q;return he}function ws(){var he,Ve,Zt,On;if(he=De,Ve=De,Zt=[],On=Il(),On===Q&&(On=Ml()),On!==Q)for(;On!==Q;)Zt.push(On),On=Il(),On===Q&&(On=Ml());else Zt=Q;return Zt!==Q?Ve=xe.substring(Ve,De):Ve=Zt,Ve!==Q&&($a=he,Ve=ei(Ve)),he=Ve,he}function su(){var he,Ve,Zt;return he=De,xe.substr(De,2)===Ki?(Ve=Ki,De+=2):(Ve=Q,yn===0&&Or(js)),Ve!==Q?(Zt=ws(),Zt!==Q?($a=he,Ve=sl(Zt),he=Ve):(De=he,he=Q)):(De=he,he=Q),he===Q&&(he=De,$a=De,Ve=ti(),Ve?Ve=void 0:Ve=Q,Ve!==Q?(Zt=Uo(),Zt!==Q?($a=he,Ve=wi(Zt),he=Ve):(De=he,he=Q)):(De=he,he=Q)),he}function _s(){var he,Ve,Zt,On,pr,na,no,ja,Ko,za,Aa,da,so;return he=De,xe.charCodeAt(De)===123?(Ve=xr,De++):(Ve=Q,yn===0&&Or($r)),Ve!==Q?(Zt=Fa(),Zt!==Q?(On=ls(),On!==Q?(pr=Fa(),pr!==Q?(xe.charCodeAt(De)===44?(na=Jo,De++):(na=Q,yn===0&&Or(_o)),na!==Q?(no=Fa(),no!==Q?(xe.substr(De,4)===oo?(ja=oo,De+=4):(ja=Q,yn===0&&Or(pi)),ja===Q&&(xe.substr(De,4)===ul?(ja=ul,De+=4):(ja=Q,yn===0&&Or(Vl))),ja!==Q?(Ko=Fa(),Ko!==Q?(za=De,xe.charCodeAt(De)===44?(Aa=Jo,De++):(Aa=Q,yn===0&&Or(_o)),Aa!==Q?(da=Fa(),da!==Q?(so=su(),so!==Q?(Aa=[Aa,da,so],za=Aa):(De=za,za=Q)):(De=za,za=Q)):(De=za,za=Q),za===Q&&(za=null),za!==Q?(Aa=Fa(),Aa!==Q?(xe.charCodeAt(De)===125?(da=Br,De++):(da=Q,yn===0&&Or(Xr)),da!==Q?($a=he,Ve=qo(On,ja,za),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q),he}function qs(){var he;return he=iu(),he===Q&&(he=_s()),he}function lu(){var he,Ve,Zt,On,pr,na,no,ja,Ko,za,Aa,da,so,ri,yi,nl;if(he=De,xe.charCodeAt(De)===123?(Ve=xr,De++):(Ve=Q,yn===0&&Or($r)),Ve!==Q)if(Zt=Fa(),Zt!==Q)if(On=ls(),On!==Q)if(pr=Fa(),pr!==Q)if(xe.charCodeAt(De)===44?(na=Jo,De++):(na=Q,yn===0&&Or(_o)),na!==Q)if(no=Fa(),no!==Q)if(xe.substr(De,6)===zs?(ja=zs,De+=6):(ja=Q,yn===0&&Or(cl)),ja===Q&&(xe.substr(De,13)===dl?(ja=dl,De+=13):(ja=Q,yn===0&&Or(Hs))),ja!==Q)if(Ko=Fa(),Ko!==Q)if(xe.charCodeAt(De)===44?(za=Jo,De++):(za=Q,yn===0&&Or(_o)),za!==Q)if(Aa=Fa(),Aa!==Q)if(da=De,xe.substr(De,7)===fl?(so=fl,De+=7):(so=Q,yn===0&&Or(ts)),so!==Q?(ri=Fa(),ri!==Q?(yi=Dl(),yi!==Q?(so=[so,ri,yi],da=so):(De=da,da=Q)):(De=da,da=Q)):(De=da,da=Q),da===Q&&(da=null),da!==Q)if(so=Fa(),so!==Q){if(ri=[],yi=Al(),yi!==Q)for(;yi!==Q;)ri.push(yi),yi=Al();else ri=Q;ri!==Q?(yi=Fa(),yi!==Q?(xe.charCodeAt(De)===125?(nl=Br,De++):(nl=Q,yn===0&&Or(Xr)),nl!==Q?($a=he,Ve=pl(On,ja,da,ri),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)}else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;return he}function Rl(){var he,Ve,Zt,On,pr,na,no,ja,Ko,za,Aa,da,so,ri;if(he=De,xe.charCodeAt(De)===123?(Ve=xr,De++):(Ve=Q,yn===0&&Or($r)),Ve!==Q)if(Zt=Fa(),Zt!==Q)if(On=ls(),On!==Q)if(pr=Fa(),pr!==Q)if(xe.charCodeAt(De)===44?(na=Jo,De++):(na=Q,yn===0&&Or(_o)),na!==Q)if(no=Fa(),no!==Q)if(xe.substr(De,6)===Gl?(ja=Gl,De+=6):(ja=Q,yn===0&&Or(mi)),ja!==Q)if(Ko=Fa(),Ko!==Q)if(xe.charCodeAt(De)===44?(za=Jo,De++):(za=Q,yn===0&&Or(_o)),za!==Q)if(Aa=Fa(),Aa!==Q){if(da=[],so=$l(),so!==Q)for(;so!==Q;)da.push(so),so=$l();else da=Q;da!==Q?(so=Fa(),so!==Q?(xe.charCodeAt(De)===125?(ri=Br,De++):(ri=Q,yn===0&&Or(Xr)),ri!==Q?($a=he,Ve=Ws(On,da),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)}else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;else De=he,he=Q;return he}function uu(){var he,Ve,Zt,On;return he=De,Ve=De,xe.charCodeAt(De)===61?(Zt=ks,De++):(Zt=Q,yn===0&&Or(ns)),Zt!==Q?(On=Dl(),On!==Q?(Zt=[Zt,On],Ve=Zt):(De=Ve,Ve=Q)):(De=Ve,Ve=Q),Ve!==Q?he=xe.substring(he,De):he=Ve,he===Q&&(he=tl()),he}function $l(){var he,Ve,Zt,On,pr,na,no,ja;return he=De,Ve=Fa(),Ve!==Q?(Zt=tl(),Zt!==Q?(On=Fa(),On!==Q?(xe.charCodeAt(De)===123?(pr=xr,De++):(pr=Q,yn===0&&Or($r)),pr!==Q?($a=De,na=ml(Zt),na?na=void 0:na=Q,na!==Q?(no=Ps(),no!==Q?(xe.charCodeAt(De)===125?(ja=Br,De++):(ja=Q,yn===0&&Or(Xr)),ja!==Q?($a=he,Ve=vl(Zt,no),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q),he}function Al(){var he,Ve,Zt,On,pr,na,no,ja;return he=De,Ve=Fa(),Ve!==Q?(Zt=uu(),Zt!==Q?(On=Fa(),On!==Q?(xe.charCodeAt(De)===123?(pr=xr,De++):(pr=Q,yn===0&&Or($r)),pr!==Q?($a=De,na=gl(Zt),na?na=void 0:na=Q,na!==Q?(no=Ps(),no!==Q?(xe.charCodeAt(De)===125?(ja=Br,De++):(ja=Q,yn===0&&Or(Xr)),ja!==Q?($a=he,Ve=hl(Zt,no),he=Ve):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q)):(De=he,he=Q),he}function Yi(){var he,Ve;return yn++,li.test(xe.charAt(De))?(he=xe.charAt(De),De++):(he=Q,yn===0&&Or(Vi)),yn--,he===Q&&(Ve=Q,yn===0&&Or(rs)),he}function el(){var he,Ve;return yn++,Yl.test(xe.charAt(De))?(he=xe.charAt(De),De++):(he=Q,yn===0&&Or(Ii)),yn--,he===Q&&(Ve=Q,yn===0&&Or(yl)),he}function Fa(){var he,Ve,Zt;for(yn++,he=De,Ve=[],Zt=Yi();Zt!==Q;)Ve.push(Zt),Zt=Yi();return Ve!==Q?he=xe.substring(he,De):he=Ve,yn--,he===Q&&(Ve=Q,yn===0&&Or(Bi)),he}function Dl(){var he,Ve,Zt;return yn++,he=De,xe.charCodeAt(De)===45?(Ve=Xl,De++):(Ve=Q,yn===0&&Or(Mi)),Ve===Q&&(Ve=null),Ve!==Q?(Zt=Nl(),Zt!==Q?($a=he,Ve=Zi(Ve,Zt),he=Ve):(De=he,he=Q)):(De=he,he=Q),yn--,he===Q&&(Ve=Q,yn===0&&Or(bl)),he}function Lu(){var he,Ve;return yn++,xe.charCodeAt(De)===39?(he=Do,De++):(he=Q,yn===0&&Or(fi)),yn--,he===Q&&(Ve=Q,yn===0&&Or(Us)),he}function ss(){var he,Ve;return yn++,he=De,xe.substr(De,2)===Ri?(Ve=Ri,De+=2):(Ve=Q,yn===0&&Or(Ks)),Ve!==Q&&($a=he,Ve=Jl()),he=Ve,yn--,he===Q&&(Ve=Q,yn===0&&Or(Ql)),he}function Ll(){var he,Ve,Zt,On,pr,na;if(he=De,xe.charCodeAt(De)===39?(Ve=Do,De++):(Ve=Q,yn===0&&Or(fi)),Ve!==Q)if(Zt=Nu(),Zt!==Q){for(On=De,pr=[],xe.substr(De,2)===Ri?(na=Ri,De+=2):(na=Q,yn===0&&Or(Ks)),na===Q&&(ii.test(xe.charAt(De))?(na=xe.charAt(De),De++):(na=Q,yn===0&&Or(si)));na!==Q;)pr.push(na),xe.substr(De,2)===Ri?(na=Ri,De+=2):(na=Q,yn===0&&Or(Ks)),na===Q&&(ii.test(xe.charAt(De))?(na=xe.charAt(De),De++):(na=Q,yn===0&&Or(si)));pr!==Q?On=xe.substring(On,De):On=pr,On!==Q?(xe.charCodeAt(De)===39?(pr=Do,De++):(pr=Q,yn===0&&Or(fi)),pr===Q&&(pr=null),pr!==Q?($a=he,Ve=Sl(Zt,On),he=Ve):(De=he,he=Q)):(De=he,he=Q)}else De=he,he=Q;else De=he,he=Q;return he}function cu(){var he,Ve,Zt,On;return he=De,Ve=De,xe.length>De?(Zt=xe.charAt(De),De++):(Zt=Q,yn===0&&Or(Qo)),Zt!==Q?($a=De,On=Vs(Zt),On?On=void 0:On=Q,On!==Q?(Zt=[Zt,On],Ve=Zt):(De=Ve,Ve=Q)):(De=Ve,Ve=Q),Ve===Q&&(xe.charCodeAt(De)===10?(Ve=_l,De++):(Ve=Q,yn===0&&Or(ql))),Ve!==Q?he=xe.substring(he,De):he=Ve,he}function Nu(){var he,Ve,Zt,On;return he=De,Ve=De,xe.length>De?(Zt=xe.charAt(De),De++):(Zt=Q,yn===0&&Or(Qo)),Zt!==Q?($a=De,On=eu(Zt),On?On=void 0:On=Q,On!==Q?(Zt=[Zt,On],Ve=Zt):(De=Ve,Ve=Q)):(De=Ve,Ve=Q),Ve!==Q?he=xe.substring(he,De):he=Ve,he}function ls(){var he,Ve;return yn++,he=De,Ve=Nl(),Ve===Q&&(Ve=tl()),Ve!==Q?he=xe.substring(he,De):he=Ve,yn--,he===Q&&(Ve=Q,yn===0&&Or(xl)),he}function Nl(){var he,Ve,Zt,On,pr;if(yn++,he=De,xe.charCodeAt(De)===48?(Ve=Gs,De++):(Ve=Q,yn===0&&Or(tu)),Ve!==Q&&($a=he,Ve=nu()),he=Ve,he===Q){if(he=De,Ve=De,as.test(xe.charAt(De))?(Zt=xe.charAt(De),De++):(Zt=Q,yn===0&&Or(ru)),Zt!==Q){for(On=[],os.test(xe.charAt(De))?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(vi));pr!==Q;)On.push(pr),os.test(xe.charAt(De))?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(vi));On!==Q?(Zt=[Zt,On],Ve=Zt):(De=Ve,Ve=Q)}else De=Ve,Ve=Q;Ve!==Q&&($a=he,Ve=xs(Ve)),he=Ve}return yn--,he===Q&&(Ve=Q,yn===0&&Or(Ss)),he}function tl(){var he,Ve,Zt,On,pr;if(yn++,he=De,Ve=[],Zt=De,On=De,yn++,pr=Yi(),pr===Q&&(pr=el()),yn--,pr===Q?On=void 0:(De=On,On=Q),On!==Q?(xe.length>De?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(Qo)),pr!==Q?(On=[On,pr],Zt=On):(De=Zt,Zt=Q)):(De=Zt,Zt=Q),Zt!==Q)for(;Zt!==Q;)Ve.push(Zt),Zt=De,On=De,yn++,pr=Yi(),pr===Q&&(pr=el()),yn--,pr===Q?On=void 0:(De=On,On=Q),On!==Q?(xe.length>De?(pr=xe.charAt(De),De++):(pr=Q,yn===0&&Or(Qo)),pr!==Q?(On=[On,pr],Zt=On):(De=Zt,Zt=Q)):(De=Zt,Zt=Q);else Ve=Q;return Ve!==Q?he=xe.substring(he,De):he=Ve,yn--,he===Q&&(Ve=Q,yn===0&&Or(Cs)),he}var ni=["root"];function ju(){return ni.length>1}function du(){return ni[ni.length-1]==="plural"}function Si(){return Ae&&Ae.captureLocation?{location:Os()}:{}}if(Gi=At(),Gi!==Q&&De===xe.length)return Gi;throw Gi!==Q&&De1)throw new RangeError("Fraction-precision stems only accept a single optional option");At.stem.replace(H,function(Ln,or,Ir){return Ln==="."?Ae.maximumFractionDigits=0:Ir==="+"?Ae.minimumFractionDigits=Ir.length:or[0]==="#"?Ae.maximumFractionDigits=or.length:(Ae.minimumFractionDigits=or.length,Ae.maximumFractionDigits=or.length+(typeof Ir=="string"?Ir.length:0)),""}),At.options.length&&(Ae=z(z({},Ae),q(At.options[0])));continue}if(te.test(At.stem)){Ae=z(z({},Ae),q(At.stem));continue}var xn=re(At.stem);xn&&(Ae=z(z({},Ae),xn))}return Ae}var Fe=function(){var xe=function(Ae,Q){return xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,At){gt.__proto__=At}||function(gt,At){for(var xn in At)At.hasOwnProperty(xn)&&(gt[xn]=At[xn])},xe(Ae,Q)};return function(Ae,Q){xe(Ae,Q);function gt(){this.constructor=Ae}Ae.prototype=Q===null?Object.create(Q):(gt.prototype=Q.prototype,new gt)}}(),He=function(){for(var xe=0,Ae=0,Q=arguments.length;Ae