ados-rcm 1.1.564 → 1.1.566
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -162,7 +162,7 @@ Error generating stack: `+y.message+`
|
|
162
162
|
|
163
163
|
${F["Invalid file(s)"]}: ${It}${gt?`
|
164
164
|
|
165
|
-
`+gt:""}`)}Je.length>0&&H([...j||[],...Je])}},[H,re,n,t,F,j,h]),De=C.useCallback(()=>{var Xe;return(Xe=oe.current)==null?void 0:Xe.click()},[]),we=C.useCallback(Xe=>{const Je=Xe.target.files;Je!=null&&Je.length&&(Be(Je),ve())},[Be,ve]),_e=C.useCallback(Xe=>{if(a==null||a(Xe),!H||!j)return;const Je=Bu.getFileKey(Xe),ht=j.filter(ft=>Bu.getFileKey(ft)!==Je);H(ht),ve()},[a,H,j,ve]),Ae=C.useCallback(()=>{H&&(H([]),ve())},[H,ve]),$e=C.useCallback(Xe=>{if(!o)return Promise.resolve();const Je=Bu.getFileKey(Xe);return ue.current[Je]==="Loading"?Promise.resolve():(ie(Je,"Loading"),new Promise(ht=>{o(Xe,ft=>{ie(Je,ft),ht()})}))},[o,ie]),je=C.useCallback(async()=>{if(j!=null&&j.length){if(q){const Xe={...ue.current};j.forEach(Je=>{Xe[Bu.getFileKey(Je)]="Loading"}),ue.current=Xe,q(Xe)}if(w){w(j,Xe=>{if(q){const Je={...ue.current,...Xe};ue.current=Je,q(Je)}});return}for(const Xe of j){if(!o)continue;const Je=Bu.getFileKey(Xe);await new Promise(ht=>{o(Xe,ft=>{if(q){const Ne={...ue.current};Ne[Je]=ft,ue.current=Ne,q(Ne)}ht()})})}}},[j,o,w,q]),et=C.useCallback(()=>{!(j!=null&&j.length)||!i||i(j)},[j,i]),qe=C.useMemo(()=>{const Xe=Je=>(Je.preventDefault(),Je.stopPropagation(),Je);return{onDragEnter:Je=>{Xe(Je),!G&&!m&&Q(!0)},onDragOver:Je=>{Xe(Je),!G&&!m&&Je.dataTransfer&&(Je.dataTransfer.dropEffect="copy")},onDragLeave:Je=>{var ft;Xe(Je);const ht=(ft=le.current)==null?void 0:ft.contains(Je.relatedTarget);(!Je.relatedTarget||!ht)&&Q(!1)},onDrop:Je=>{var ht;Xe(Je),Q(!1),!G&&!m&&((ht=Je.dataTransfer.files)!=null&&ht.length)&&Be(Je.dataTransfer.files)}}},[G,m,Be]),rt=C.useMemo(()=>{const Xe=Ye.clsx(An.ButtonRenderer,"NoSelect");return{upload:Je=>S.jsx(So,{className:Xe,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:F.Delete,type:"Raw",onClick:()=>_e(Je)}),loading:()=>S.jsx(So,{className:Xe,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Je=>S.jsx(O6,{baseClass:Xe,errorClass:An.ErrorColor,errorCursorClass:An.ErrorCursor,file:Je,resources:F,onDownload:$e}),download:Je=>S.jsx(So,{className:Xe,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:F.Download,type:"Raw",onClick:()=>$e(Je)}),view:()=>null}},[F,_e,$e]),lt=C.useCallback((Xe,Je)=>{const ht=Se(Xe),ft=Le(Xe),Ne=()=>c==="Upload"?rt.upload(Xe):c==="View"?rt.view():ht?rt.loading():ft?rt.error(Xe):rt.download(Xe);return S.jsx(_v,{ButtonRenderer:Ne,className:Ye.clsx(An.FileChip,ft&&An.ErrorBorder),label:S.jsx("div",{className:An.FileChipContent,children:S.jsxs(Rn,{className:An.FileNameContainer,children:[S.jsx(el,{children:Xe.name,className:Ye.clsx(ft&&An.ErrorColor)}),S.jsx("span",{children:$u(Xe.size),className:An.FileSize})]})})},Je)},[Se,Le,c,rt]),bt=C.useCallback(()=>S.jsx("div",{className:Ye.clsx(An.FileBox,G&&An.ErrorBorder,G&&An.ErrorColor,G&&An.ErrorCursor,ke&&An.Disabled,V&&!(j!=null&&j.length)&&An.FileBoxFullSize),...qe,ref:le,children:V?S.jsxs(Rn,{className:Ye.clsx("NoSelect"),style:{gap:4,display:j!=null&&j.length?"flex":"none"},children:[S.jsx(un,{icon:"FileDownload"}),S.jsx("span",{children:F["Drop file to select"]})]}):S.jsxs(Go,{className:Ye.clsx(An.SelectRenderer,"NoSelect"),isDisabled:G||m||ke,type:"Raw",onClick:De,children:[F["Insert File"],h&&` ${(j==null?void 0:j.length)||0} / ${h}`]})}),[G,ke,V,j==null?void 0:j.length,qe,F,m,De,h]),Mt=C.useMemo(()=>{const Xe=c==="Upload",Je=c==="View",ht=Xe?F["Delete All"]:F["Download All"],ft=Xe?Ae:je,Ne=(j==null?void 0:j.some(Qe=>Se(Qe)))||!1;return S.jsxs(Rn,{className:An.LabelContainer,children:[I.label,c==="Upload"&&S.jsxs(el,{className:Ye.clsx(An.TotalFileSize,"NoSelect"),children:["(",S.jsx("span",{className:Ye.clsx(G&&An.ErrorColor),children:$u(ge)})," / ",$u(d),")"]}),!Je&&S.jsx("span",{children:ht,className:Ye.clsx(An.LabelButton,"Label1",(ne||Ne)&&An.Disabled,Xe&&An.Delete),onClick:!ne&&!Ne?ft:void 0}),i&&S.jsx("span",{children:F["Download List"]||"Download List",className:Ye.clsx(An.LabelButton,"Label1",!(j!=null&&j.length)&&An.Disabled),style:{marginLeft:"auto"},onClick:j!=null&&j.length?et:void 0})]})},[c,F,Ae,je,j,I.label,G,ge,d,ne,i,et,Se]);return c==="Download"&&!(j!=null&&j.length)?null:S.jsxs(Wc,{wrapId:A,wrapProps:R,labelProps:D,...I,label:Mt,children:[S.jsx("input",{ref:oe,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:we}),S.jsxs(Kr,{...B,className:Ye.clsx(An.AFileUploader,v),children:[S.jsxs(Rn,{className:An.ChipsContainer,children:[c==="Upload"&&bt(),j==null?void 0:j.map(lt)]}),c==="Upload"&&S.jsx(Kr,{className:Ye.clsx(An.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)"},...qe,abaseRef:le,onClick:Xe=>Xe.preventDefault(),children:!(j!=null&&j.length)&&S.jsxs(Rn,{style:{gap:4},children:[S.jsx(un,{icon:"FileDownload",size:"2xl"}),S.jsx("span",{children:F["Drop file to select"]})]})})]})]})},P6="_AFloatMenu_xco8u_1",B6="_Content_xco8u_10",T0={AFloatMenu:P6,Content:B6},gC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=yf.ES,width:h=137}=r,p=C.useMemo(()=>({content:F6,...t}),[t]),m=C.useMemo(()=>{const P={};return ar.keys(e).forEach(q=>{const V=e[q],Q={...p,...V};Q.noDisplay||(P[q]=Q)}),P},[p,e]),[g,v]=C.useState(null),w=C.useCallback(P=>{_w(P,D,d,o),v(P)},[d,o]),[T,_]=C.useState(!1),[A,R]=C.useState(!1),D=C.useRef(null),I=C.useCallback(P=>{R(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),B=C.useCallback(()=>{_(!1),R(!0),i==null||i()},[i]),F=C.useCallback(()=>R(!1),[]),j=C.useCallback(async P=>{const q=document.getElementById("root"),V=P.target,Q=D.current;!q||!Q||!V||!Q.contains(V)&&q.contains(V)&&(await(c==null?void 0:c(P)),B())},[B,c]);C.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",j),0),()=>document.removeEventListener("mousedown",j)},[T,j]);const H=C.useCallback(()=>{g&&w(g)},[w,g]);C.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",H),P=P.parentElement;return()=>{let q=g.parentElement;for(;q;)q.removeEventListener("scroll",H),q=q.parentElement}},[g,T,H]),C.useEffect(()=>{if(T)return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[T,H]);const G=C.useCallback(P=>{P[0].intersectionRatio===0&&B()},[B]);C.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),C.useEffect(()=>{n&&(n.current={open:I,close:B})},[n,I,B]);const pe=C.useCallback(P=>{var q;if(T){if((q=m[P])!=null&&q.isDisabled)return}else return;a==null||a(P),B()},[T,a,B,m]);return!T&&!A?null:Ls.createPortal(S.jsx("div",{ref:D,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:F,children:ar.map(m,([P],q)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:ue=Io.E,...oe}=V;return se?null:(Q=Pr.getContent(V.content,{defKey:P,def:V}),C.createElement(Kr,{...oe,key:q,className:Ye.clsx(T0.Content,"Label2","IsClickable",oe.className),tooltipDirection:ue,onClick:le=>{var ge;pe==null||pe(P),(ge=oe.onClick)==null||ge.call(oe,le)}},Q))})}),document.body)},F6=r=>r.defKey;function j6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const mC={parseInt:j6},H6=`${Number.MAX_SAFE_INTEGER}`.length-1,z6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,p=C.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):H6,[n,o]),[m,g]=wn(i,""),v=C.useCallback(A=>{if(g)if(c&&A.startsWith("*"))g("*");else if(A==="")g("");else if(A==="-")g("-");else{A=A.replace(/[^0-9-]/g,"");try{const R=mC.parseInt(A);R!==void 0&&(n!==void 0&&R<n?g(`${n}`):o!==void 0&&R>o?g(`${o}`):g(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[g,c,n,o]),w=C.useRef(null),T=C.useCallback(A=>{var R;(R=w.current)==null||R.blur(),a==null||a(A)},[a]),_=C.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return S.jsx(Vc,{...h,autoComplete:"off",className:Ye.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:_,RightAddon:r.unit&&S.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},$6="_AListView_k7t2d_1",U6="_Row_k7t2d_10",q6="_Label_k7t2d_20",W6="_Content_k7t2d_30",cp={AListView:$6,Row:U6,Label:q6,Content:W6},V6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,style:c,...d}=r,h=a?"":"var(--AListView_border-thin)",p=a?"":"var(--AListView_border-thick)",m=C.useMemo(()=>({content:Y6,label:G6,...t}),[t]),g=C.useMemo(()=>{const v={};return ar.keys(e).forEach(w=>{const T=e[w],_={...m,...T};v[w]=_}),v},[m,e]);return S.jsx(Kr,{...d,className:Ye.clsx(cp.AListView,d.className),style:{...c,borderTop:h},children:ar.map(g,([v])=>{const w={...m,...g[v]},T=Pr.getContent(w.label,{defKey:v,item:n,def:w}),_=Pr.getContent(w.content,{defKey:v,item:n||{[v]:""},def:w}),A=Pr.getContent(w.bold||"label",{defKey:v,item:n,def:w});return S.jsxs("div",{className:cp.Row,style:{height:o,borderBottom:h},children:[S.jsx("div",{className:Ye.clsx(cp.Label,"NoSelect",A!=="content"&&"Bold"),style:{width:i,minWidth:i,maxWidth:i,borderLeft:p,paddingLeft:a?0:10},children:S.jsx(el,{children:T})}),S.jsx("div",{className:Ye.clsx(cp.Content,A!=="label"&&"Bold"),style:{borderLeft:p,borderRight:p},children:S.jsx(el,{style:{width:"100%",padding:a?0:10},children:_})})]},v)})})},G6=r=>r.defKey,Y6=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},Z6="_ALoadingBorder_kwc1g_1",K6="_ProgressBar_kwc1g_9",X6="_IsLoading_kwc1g_15",J6="_Cover_kwc1g_19",Yf={ALoadingBorder:Z6,ProgressBar:K6,IsLoading:X6,Cover:J6},Iv=r=>{const{isLoading:e}=r,[t,n]=C.useState(!1),o=C.useRef(null);return C.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),S.jsxs("div",{className:Yf.ALoadingBorder,children:[S.jsx("div",{className:Ye.clsx(Yf.ProgressBar,t&&Yf.IsLoading)}),S.jsx("div",{className:Ye.clsx(Yf.Cover,e&&Yf.IsLoading),style:{transition:"all 300ms"}})]})},Q6="_Container_ez8dc_1",eI="_Option_ez8dc_7",tI="_RadioButton_ez8dc_14",rI="_InnerCircle_ez8dc_24",nI="_isChecked_ez8dc_29",Gd={Container:Q6,Option:eI,RadioButton:tI,InnerCircle:rI,isChecked:nI},oI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=vC}=r,[c,d]=wn(t,e[0]);return S.jsx("div",{className:Gd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:d==null?void 0:d(h);return S.jsxs(Rn,{className:Ye.clsx(Gd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[S.jsx(iI,{innerRadius:i,isChecked:c===h,radius:o},p),S.jsx(a,{option:h})]},p)})})},vC=({option:r})=>r,iI=({isChecked:r,radius:e,innerRadius:t})=>S.jsx(Kr,{className:Ye.clsx(Gd.RadioButton,r&&Gd.isChecked),style:{width:e,height:e},children:S.jsx(Kr,{className:Ye.clsx(Gd.InnerCircle,r&&Gd.isChecked),style:{width:t,height:t}})}),sI="_AMultiSelect_19uuu_1",aI="_Arrow_19uuu_15",lI="_Primary_19uuu_24",cI="_UnAvailable_19uuu_35",uI="_IsOpen_19uuu_35",dI="_Secondary_19uuu_42",fI="_Placeholder_19uuu_58",hI="_ValuesContainer_19uuu_63",pI="_Values_19uuu_63",gI="_Options_19uuu_82",mI="_Option_19uuu_82",vI="_Selected_19uuu_124",yI="_CheckBox_19uuu_131",Mi={AMultiSelect:sI,Arrow:aI,Primary:lI,UnAvailable:cI,IsOpen:uI,Secondary:dI,Placeholder:fI,ValuesContainer:hI,Values:pI,Options:gI,Option:mI,Selected:vI,CheckBox:yI},bI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=wI,OptionRenderer:c=CI,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=C.useRef(null),w=C.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=C.useRef(null),[_,A]=wn(t,[]),[R,D]=C.useState(void 0),I=C.useRef(e),B=C.useRef(null),[F,j]=C.useState(!1),[H,G]=C.useState(!1),pe=C.useCallback(()=>G(!1),[]),P=C.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>j(!0),0),setTimeout(()=>fm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),q=C.useCallback(()=>{j(!1),G(!0),i==null||i()},[i]),V=C.useCallback(re=>{var ie;F?q():P(),setTimeout(()=>fm(T,w,e,d,h),0),(ie=g.onClick)==null||ie.call(g,re)},[w,g,e,F,q,P,d,h]),Q=C.useCallback(()=>{fm(T,w,e,d,h)},[w,e,d,h]);C.useEffect(()=>{if(!F||!w.current)return;const re=w.current;let ie=re.parentElement;for(;ie;)ie.addEventListener("scroll",Q),ie=ie.parentElement;return()=>{let fe=re.parentElement;for(;fe;)fe.removeEventListener("scroll",Q),fe=fe.parentElement}},[w,F,Q]),C.useEffect(()=>{if(F)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[F,Q]);const se=C.useCallback(re=>{re[0].intersectionRatio===0&&q()},[q]);C.useEffect(()=>{if(!F)return;const re=new IntersectionObserver(se,{threshold:0});return w.current&&re.observe(w.current),()=>re.disconnect()},[w,F,se]);const ue=C.useCallback(re=>{const ie=re.target,fe=w.current,Se=T.current;!fe||!ie||!Se||!fe.contains(ie)&&!Se.contains(ie)&&q()},[w,q]),oe=C.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);C.useEffect(()=>{if(F)return setTimeout(()=>document.addEventListener("mousedown",ue),0),()=>document.removeEventListener("mousedown",ue)},[F,ue]);const le=C.useCallback((re,ie)=>{re.stopPropagation(),re.preventDefault();let fe=[..._];fe.includes(ie)?fe=fe.filter(Se=>Se!==ie):fe.push(ie),A==null||A(fe)},[_,A]),ge=C.useCallback(()=>{if(!m||!w.current)return;const re=zu.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ie=>c({option:ie}),type:n,isMulti:!0});D(re)},[m,w,e,_,o,c,n]);return C.useEffect(()=>m?((e!==I.current||R===void 0)&&(B.current!==null&&cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{ge(),B.current=null,I.current=[...e]})),()=>{B.current!==null&&(cancelAnimationFrame(B.current),B.current=null)}):void 0,[m,e,ge,R]),C.useEffect(()=>()=>{typeof zu.clearCache=="function"&&zu.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Kr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ye.clsx(g.className,Mi.AMultiSelect,"NoSelect",F&&Mi.IsOpen,oe&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[S.jsx("div",{className:Mi.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(Mi.Values,_.length<1&&Mi.Placeholder),children:S.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),S.jsx("div",{...p,className:Ye.clsx(Mi.Arrow,p==null?void 0:p.className),children:S.jsx(un,{icon:"TriangleDown",style:{transform:F?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(F||H)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(Mi.Options,Mi[n]),style:{opacity:+F,visibility:F?"visible":"hidden",pointerEvents:F?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:pe,children:e.map((re,ie)=>{var Se;const fe=_.includes(re);return S.jsxs("div",{className:Ye.clsx(Mi.Option,fe&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Se=w.current)==null?void 0:Se.getBoundingClientRect().height},onClick:Le=>le(Le,re),children:[S.jsx(sf,{className:Mi.CheckBox,useCheck:[+fe,void 0]}),S.jsx(c,{option:re})]},ie)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=xI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function xI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const wI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?S.jsx(e,{option:t[0]}):`${t.length} selected`},CI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},SI="_Container_10ion_1",_I="_Steps_10ion_9",AI="_Step_10ion_9",EI="_OutCircle_10ion_26",TI="_IsOver_10ion_37",RI="_InCircle_10ion_41",kI="_Line_10ion_54",II="_Left_10ion_66",MI="_Right_10ion_69",LI="_ContentContainer_10ion_73",DI="_Content_10ion_73",fi={Container:SI,Steps:_I,Step:AI,OutCircle:EI,IsOver:TI,InCircle:RI,Line:kI,Left:II,Right:MI,ContentContainer:LI,Content:DI},OI=r=>{const{useSelect:e,steps:t,StepRenderer:n=R0,ContentRenderer:o=R0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=C.useRef(null),[a,c]=wn(e,t[0]),d=C.useCallback(p=>c==null?void 0:c(p),[c]),h=C.useMemo(()=>t.indexOf(a),[a,t]);return C.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),S.jsxs("div",{className:fi.Container,children:[S.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return S.jsxs("div",{className:fi.Step,children:[m!==0&&S.jsx("div",{className:Ye.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&S.jsx("div",{className:Ye.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),S.jsx(Go,{className:Ye.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>d(p),children:S.jsx("div",{className:Ye.clsx(fi.InCircle,v&&fi.IsOver)})}),S.jsx(n,{step:p,stepIdx:g})]},m)})}),S.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return S.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:S.jsx(o,{step:p,stepIdx:g})},m)})})]})},R0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},NI="_ATab_2c2d2_1",PI="_Option_2c2d2_9",BI="_Underline_2c2d2_23",FI="_IsSelected_2c2d2_23",jI="_IndicatorTrack_2c2d2_34",HI="_Indicator_2c2d2_34",zI="_Primary_2c2d2_50",$I="_Secondary_2c2d2_57",UI="_IsDisabled_2c2d2_67",qI="_Tertiary_2c2d2_81",WI="_Quaternary_2c2d2_111",Rc={ATab:NI,Option:PI,Underline:BI,IsSelected:FI,IndicatorTrack:jI,Indicator:HI,Primary:zI,Secondary:$I,IsDisabled:UI,Tertiary:qI,Quaternary:WI},VI=["Primary","Secondary","Tertiary","Quaternary"],yC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=GI,RightAddon:h,color:p,selectedColor:m,underline:g,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=C.useMemo(()=>e.findIndex(ie=>!(n!=null&&n(ie))),[e,n]),_=o==="Tertiary"?2:0,A=o==="Secondary"?8:0,R=C.useMemo(()=>_+A,[_,A]),D=o==="Tertiary"?2:0,I=C.useMemo(()=>(A-_-D-D)/e.length,[e.length,_,A,D]),[B,F]=wn(t,e[T]),j=C.useRef([]),H=C.useCallback(ie=>F==null?void 0:F(ie),[F]),G=C.useMemo(()=>typeof c=="number"?c+"px":c,[c]),pe=C.useMemo(()=>e.indexOf(B),[e,B]),P=C.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),q=C.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=C.useState(0),[se,ue]=C.useState(0),[oe,le]=C.useState(q),ge=C.useMemo(()=>{let ie;switch(G){case void 0:ie=`calc(${P} * ${pe})`;break;case"fit-content":ie=`calc(${V}px)`;break;default:ie=`calc((${G} + ${R}px) * ${pe})`;break}return`calc(${ie} + ${D}px)`},[G,D,P,pe,V,R]),re=C.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${se}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,se]);return C.useEffect(()=>{var fe,Se;if(e.includes(B)||F==null||F(e[T]),G!=="fit-content"){le(q);return}let ie=0;j.current.forEach((Le,ne)=>{ne<pe&&Le.current&&(ie+=Le.current.offsetWidth+R)}),Q(ie),le(`calc(${((Se=(fe=j.current[pe])==null?void 0:fe.current)==null?void 0:Se.offsetWidth)||0}px)`),ue(j.current.reduce((Le,ne)=>{var ve;return Le+((((ve=ne.current)==null?void 0:ve.offsetWidth)||0)+R-I)},0))},[G,j,e,B,F,T,I,R,pe,q]),S.jsxs("div",{...i,className:Ye.clsx(Rc.ATab,"Headline2",Rc[o],i==null?void 0:i.className),children:[S.jsx("div",{...v,className:Ye.clsx(Rc.Indicator,v==null?void 0:v.className),style:{minWidth:oe,left:ge,marginLeft:_,...v==null?void 0:v.style}}),S.jsx("div",{...w,className:Ye.clsx(Rc.IndicatorTrack,w==null?void 0:w.className),style:{width:re,...w==null?void 0:w.style}}),S.jsx(Nn,{w:D}),e.map((ie,fe)=>{const Se=n==null?void 0:n(ie);return j.current[fe]||(j.current[fe]=C.createRef()),S.jsx(Kr,{abaseRef:j.current[fe],...a,isDisabled:Se,className:Ye.clsx(Rc.Option,Se&&Rc.IsDiabled,ie===B&&Rc.IsSelected,"IsClickable",g&&Rc.Underline,a==null?void 0:a.className),style:{minWidth:q,maxWidth:q,marginLeft:_,marginRight:A,"--color":ie===B&&m||p,...a==null?void 0:a.style},onClick:Le=>{!Se&&H(ie),a&&a.onClick&&a.onClick(Le)},children:S.jsx(d,{option:ie})},fe)}),S.jsx(Nn,{w:D+D+_}),h&&S.jsxs(S.Fragment,{children:[S.jsx(Ku,{}),h]})]})},GI=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function bC(...r){const e=C.useRef(!1);C.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const xC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Pr.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Pr.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.eq(p,o)}const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.be(o.sDate,p,o.eDate)}const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.be(o.sDate,p,o.eDate)}return!1}},YI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??xC[a.type])==null?void 0:d(c,e,i,a)}))}),n},ZI=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Pr.getContent(o.content,{defKey:n,def:o,item:a}),h=Pr.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},KI=(r,e,t)=>r.slice((e-1)*t,e*t),wC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},XI=(r,e,t,n)=>{const o=wC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},JI=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Pr.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Pr.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const _=t[T],A=Pr.getContent(_.content,{defKey:T,def:_,item:g});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const R=g[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
|
165
|
+
`+gt:""}`)}Je.length>0&&H([...j||[],...Je])}},[H,re,n,t,F,j,h]),De=C.useCallback(()=>{var Xe;return(Xe=oe.current)==null?void 0:Xe.click()},[]),we=C.useCallback(Xe=>{const Je=Xe.target.files;Je!=null&&Je.length&&(Be(Je),ve())},[Be,ve]),_e=C.useCallback(Xe=>{if(a==null||a(Xe),!H||!j)return;const Je=Bu.getFileKey(Xe),ht=j.filter(ft=>Bu.getFileKey(ft)!==Je);H(ht),ve()},[a,H,j,ve]),Ae=C.useCallback(()=>{H&&(H([]),ve())},[H,ve]),$e=C.useCallback(Xe=>{if(!o)return Promise.resolve();const Je=Bu.getFileKey(Xe);return ue.current[Je]==="Loading"?Promise.resolve():(ie(Je,"Loading"),new Promise(ht=>{o(Xe,ft=>{ie(Je,ft),ht()})}))},[o,ie]),je=C.useCallback(async()=>{if(j!=null&&j.length){if(q){const Xe={...ue.current};j.forEach(Je=>{Xe[Bu.getFileKey(Je)]="Loading"}),ue.current=Xe,q(Xe)}if(w){w(j,Xe=>{if(q){const Je={...ue.current,...Xe};ue.current=Je,q(Je)}});return}for(const Xe of j){if(!o)continue;const Je=Bu.getFileKey(Xe);await new Promise(ht=>{o(Xe,ft=>{if(q){const Ne={...ue.current};Ne[Je]=ft,ue.current=Ne,q(Ne)}ht()})})}}},[j,o,w,q]),et=C.useCallback(()=>{!(j!=null&&j.length)||!i||i(j)},[j,i]),qe=C.useMemo(()=>{const Xe=Je=>(Je.preventDefault(),Je.stopPropagation(),Je);return{onDragEnter:Je=>{Xe(Je),!G&&!m&&Q(!0)},onDragOver:Je=>{Xe(Je),!G&&!m&&Je.dataTransfer&&(Je.dataTransfer.dropEffect="copy")},onDragLeave:Je=>{var ft;Xe(Je);const ht=(ft=le.current)==null?void 0:ft.contains(Je.relatedTarget);(!Je.relatedTarget||!ht)&&Q(!1)},onDrop:Je=>{var ht;Xe(Je),Q(!1),!G&&!m&&((ht=Je.dataTransfer.files)!=null&&ht.length)&&Be(Je.dataTransfer.files)}}},[G,m,Be]),rt=C.useMemo(()=>{const Xe=Ye.clsx(An.ButtonRenderer,"NoSelect");return{upload:Je=>S.jsx(So,{className:Xe,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:F.Delete,type:"Raw",onClick:()=>_e(Je)}),loading:()=>S.jsx(So,{className:Xe,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Je=>S.jsx(O6,{baseClass:Xe,errorClass:An.ErrorColor,errorCursorClass:An.ErrorCursor,file:Je,resources:F,onDownload:$e}),download:Je=>S.jsx(So,{className:Xe,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:F.Download,type:"Raw",onClick:()=>$e(Je)}),view:()=>null}},[F,_e,$e]),lt=C.useCallback((Xe,Je)=>{const ht=Se(Xe),ft=Le(Xe),Ne=()=>c==="Upload"?rt.upload(Xe):c==="View"?rt.view():ht?rt.loading():ft?rt.error(Xe):rt.download(Xe);return S.jsx(_v,{ButtonRenderer:Ne,className:Ye.clsx(An.FileChip,ft&&An.ErrorBorder),label:S.jsx("div",{className:An.FileChipContent,children:S.jsxs(Rn,{className:An.FileNameContainer,children:[S.jsx(el,{children:Xe.name,className:Ye.clsx(ft&&An.ErrorColor)}),S.jsx("span",{children:$u(Xe.size),className:An.FileSize})]})})},Je)},[Se,Le,c,rt]),bt=C.useCallback(()=>S.jsx("div",{className:Ye.clsx(An.FileBox,G&&An.ErrorBorder,G&&An.ErrorColor,G&&An.ErrorCursor,ke&&An.Disabled,V&&!(j!=null&&j.length)&&An.FileBoxFullSize),...qe,ref:le,children:V?S.jsxs(Rn,{className:Ye.clsx("NoSelect"),style:{gap:4,display:j!=null&&j.length?"flex":"none"},children:[S.jsx(un,{icon:"FileDownload"}),S.jsx("span",{children:F["Drop file to select"]})]}):S.jsxs(Go,{className:Ye.clsx(An.SelectRenderer,"NoSelect"),isDisabled:G||m||ke,type:"Raw",onClick:De,children:[F["Insert File"],h&&` ${(j==null?void 0:j.length)||0} / ${h}`]})}),[G,ke,V,j==null?void 0:j.length,qe,F,m,De,h]),Mt=C.useMemo(()=>{const Xe=c==="Upload",Je=c==="View",ht=Xe?F["Delete All"]:F["Download All"],ft=Xe?Ae:je,Ne=(j==null?void 0:j.some(Qe=>Se(Qe)))||!1;return S.jsxs(Rn,{className:An.LabelContainer,children:[I.label,c==="Upload"&&S.jsxs(el,{className:Ye.clsx(An.TotalFileSize,"NoSelect"),children:["(",S.jsx("span",{className:Ye.clsx(G&&An.ErrorColor),children:$u(ge)})," / ",$u(d),")"]}),!Je&&S.jsx("span",{children:ht,className:Ye.clsx(An.LabelButton,"Label1",(ne||Ne)&&An.Disabled,Xe&&An.Delete),onClick:!ne&&!Ne?ft:void 0}),i&&S.jsx("span",{children:F["Download List"]||"Download List",className:Ye.clsx(An.LabelButton,"Label1",!(j!=null&&j.length)&&An.Disabled),style:{marginLeft:"auto"},onClick:j!=null&&j.length?et:void 0})]})},[c,F,Ae,je,j,I.label,G,ge,d,ne,i,et,Se]);return c==="Download"&&!(j!=null&&j.length)?null:S.jsxs(Wc,{wrapId:A,wrapProps:R,labelProps:D,...I,label:Mt,children:[S.jsx("input",{ref:oe,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:we}),S.jsxs(Kr,{...B,className:Ye.clsx(An.AFileUploader,v),children:[S.jsxs(Rn,{className:An.ChipsContainer,children:[c==="Upload"&&bt(),j==null?void 0:j.map(lt)]}),c==="Upload"&&S.jsx(Kr,{className:Ye.clsx(An.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...qe,abaseRef:le,onClick:Xe=>Xe.preventDefault(),children:!(j!=null&&j.length)&&S.jsxs(Rn,{style:{gap:4},children:[S.jsx(un,{icon:"FileDownload",size:"2xl"}),S.jsx("span",{children:F["Drop file to select"]})]})})]})]})},P6="_AFloatMenu_xco8u_1",B6="_Content_xco8u_10",T0={AFloatMenu:P6,Content:B6},gC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=yf.ES,width:h=137}=r,p=C.useMemo(()=>({content:F6,...t}),[t]),m=C.useMemo(()=>{const P={};return ar.keys(e).forEach(q=>{const V=e[q],Q={...p,...V};Q.noDisplay||(P[q]=Q)}),P},[p,e]),[g,v]=C.useState(null),w=C.useCallback(P=>{_w(P,D,d,o),v(P)},[d,o]),[T,_]=C.useState(!1),[A,R]=C.useState(!1),D=C.useRef(null),I=C.useCallback(P=>{R(!0),setTimeout(()=>_(!0),0),setTimeout(()=>w(P),0)},[w]),B=C.useCallback(()=>{_(!1),R(!0),i==null||i()},[i]),F=C.useCallback(()=>R(!1),[]),j=C.useCallback(async P=>{const q=document.getElementById("root"),V=P.target,Q=D.current;!q||!Q||!V||!Q.contains(V)&&q.contains(V)&&(await(c==null?void 0:c(P)),B())},[B,c]);C.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",j),0),()=>document.removeEventListener("mousedown",j)},[T,j]);const H=C.useCallback(()=>{g&&w(g)},[w,g]);C.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",H),P=P.parentElement;return()=>{let q=g.parentElement;for(;q;)q.removeEventListener("scroll",H),q=q.parentElement}},[g,T,H]),C.useEffect(()=>{if(T)return window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[T,H]);const G=C.useCallback(P=>{P[0].intersectionRatio===0&&B()},[B]);C.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),C.useEffect(()=>{n&&(n.current={open:I,close:B})},[n,I,B]);const pe=C.useCallback(P=>{var q;if(T){if((q=m[P])!=null&&q.isDisabled)return}else return;a==null||a(P),B()},[T,a,B,m]);return!T&&!A?null:Ls.createPortal(S.jsx("div",{ref:D,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:F,children:ar.map(m,([P],q)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:ue=Io.E,...oe}=V;return se?null:(Q=Pr.getContent(V.content,{defKey:P,def:V}),C.createElement(Kr,{...oe,key:q,className:Ye.clsx(T0.Content,"Label2","IsClickable",oe.className),tooltipDirection:ue,onClick:le=>{var ge;pe==null||pe(P),(ge=oe.onClick)==null||ge.call(oe,le)}},Q))})}),document.body)},F6=r=>r.defKey;function j6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const mC={parseInt:j6},H6=`${Number.MAX_SAFE_INTEGER}`.length-1,z6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,p=C.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):H6,[n,o]),[m,g]=wn(i,""),v=C.useCallback(A=>{if(g)if(c&&A.startsWith("*"))g("*");else if(A==="")g("");else if(A==="-")g("-");else{A=A.replace(/[^0-9-]/g,"");try{const R=mC.parseInt(A);R!==void 0&&(n!==void 0&&R<n?g(`${n}`):o!==void 0&&R>o?g(`${o}`):g(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[g,c,n,o]),w=C.useRef(null),T=C.useCallback(A=>{var R;(R=w.current)==null||R.blur(),a==null||a(A)},[a]),_=C.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return S.jsx(Vc,{...h,autoComplete:"off",className:Ye.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:_,RightAddon:r.unit&&S.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},$6="_AListView_k7t2d_1",U6="_Row_k7t2d_10",q6="_Label_k7t2d_20",W6="_Content_k7t2d_30",cp={AListView:$6,Row:U6,Label:q6,Content:W6},V6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,style:c,...d}=r,h=a?"":"var(--AListView_border-thin)",p=a?"":"var(--AListView_border-thick)",m=C.useMemo(()=>({content:Y6,label:G6,...t}),[t]),g=C.useMemo(()=>{const v={};return ar.keys(e).forEach(w=>{const T=e[w],_={...m,...T};v[w]=_}),v},[m,e]);return S.jsx(Kr,{...d,className:Ye.clsx(cp.AListView,d.className),style:{...c,borderTop:h},children:ar.map(g,([v])=>{const w={...m,...g[v]},T=Pr.getContent(w.label,{defKey:v,item:n,def:w}),_=Pr.getContent(w.content,{defKey:v,item:n||{[v]:""},def:w}),A=Pr.getContent(w.bold||"label",{defKey:v,item:n,def:w});return S.jsxs("div",{className:cp.Row,style:{height:o,borderBottom:h},children:[S.jsx("div",{className:Ye.clsx(cp.Label,"NoSelect",A!=="content"&&"Bold"),style:{width:i,minWidth:i,maxWidth:i,borderLeft:p,paddingLeft:a?0:10},children:S.jsx(el,{children:T})}),S.jsx("div",{className:Ye.clsx(cp.Content,A!=="label"&&"Bold"),style:{borderLeft:p,borderRight:p},children:S.jsx(el,{style:{width:"100%",padding:a?0:10},children:_})})]},v)})})},G6=r=>r.defKey,Y6=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},Z6="_ALoadingBorder_kwc1g_1",K6="_ProgressBar_kwc1g_9",X6="_IsLoading_kwc1g_15",J6="_Cover_kwc1g_19",Yf={ALoadingBorder:Z6,ProgressBar:K6,IsLoading:X6,Cover:J6},Iv=r=>{const{isLoading:e}=r,[t,n]=C.useState(!1),o=C.useRef(null);return C.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),S.jsxs("div",{className:Yf.ALoadingBorder,children:[S.jsx("div",{className:Ye.clsx(Yf.ProgressBar,t&&Yf.IsLoading)}),S.jsx("div",{className:Ye.clsx(Yf.Cover,e&&Yf.IsLoading),style:{transition:"all 300ms"}})]})},Q6="_Container_ez8dc_1",eI="_Option_ez8dc_7",tI="_RadioButton_ez8dc_14",rI="_InnerCircle_ez8dc_24",nI="_isChecked_ez8dc_29",Gd={Container:Q6,Option:eI,RadioButton:tI,InnerCircle:rI,isChecked:nI},oI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=vC}=r,[c,d]=wn(t,e[0]);return S.jsx("div",{className:Gd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:d==null?void 0:d(h);return S.jsxs(Rn,{className:Ye.clsx(Gd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[S.jsx(iI,{innerRadius:i,isChecked:c===h,radius:o},p),S.jsx(a,{option:h})]},p)})})},vC=({option:r})=>r,iI=({isChecked:r,radius:e,innerRadius:t})=>S.jsx(Kr,{className:Ye.clsx(Gd.RadioButton,r&&Gd.isChecked),style:{width:e,height:e},children:S.jsx(Kr,{className:Ye.clsx(Gd.InnerCircle,r&&Gd.isChecked),style:{width:t,height:t}})}),sI="_AMultiSelect_19uuu_1",aI="_Arrow_19uuu_15",lI="_Primary_19uuu_24",cI="_UnAvailable_19uuu_35",uI="_IsOpen_19uuu_35",dI="_Secondary_19uuu_42",fI="_Placeholder_19uuu_58",hI="_ValuesContainer_19uuu_63",pI="_Values_19uuu_63",gI="_Options_19uuu_82",mI="_Option_19uuu_82",vI="_Selected_19uuu_124",yI="_CheckBox_19uuu_131",Mi={AMultiSelect:sI,Arrow:aI,Primary:lI,UnAvailable:cI,IsOpen:uI,Secondary:dI,Placeholder:fI,ValuesContainer:hI,Values:pI,Options:gI,Option:mI,Selected:vI,CheckBox:yI},bI=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=wI,OptionRenderer:c=CI,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=C.useRef(null),w=C.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=C.useRef(null),[_,A]=wn(t,[]),[R,D]=C.useState(void 0),I=C.useRef(e),B=C.useRef(null),[F,j]=C.useState(!1),[H,G]=C.useState(!1),pe=C.useCallback(()=>G(!1),[]),P=C.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>j(!0),0),setTimeout(()=>fm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),q=C.useCallback(()=>{j(!1),G(!0),i==null||i()},[i]),V=C.useCallback(re=>{var ie;F?q():P(),setTimeout(()=>fm(T,w,e,d,h),0),(ie=g.onClick)==null||ie.call(g,re)},[w,g,e,F,q,P,d,h]),Q=C.useCallback(()=>{fm(T,w,e,d,h)},[w,e,d,h]);C.useEffect(()=>{if(!F||!w.current)return;const re=w.current;let ie=re.parentElement;for(;ie;)ie.addEventListener("scroll",Q),ie=ie.parentElement;return()=>{let fe=re.parentElement;for(;fe;)fe.removeEventListener("scroll",Q),fe=fe.parentElement}},[w,F,Q]),C.useEffect(()=>{if(F)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[F,Q]);const se=C.useCallback(re=>{re[0].intersectionRatio===0&&q()},[q]);C.useEffect(()=>{if(!F)return;const re=new IntersectionObserver(se,{threshold:0});return w.current&&re.observe(w.current),()=>re.disconnect()},[w,F,se]);const ue=C.useCallback(re=>{const ie=re.target,fe=w.current,Se=T.current;!fe||!ie||!Se||!fe.contains(ie)&&!Se.contains(ie)&&q()},[w,q]),oe=C.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);C.useEffect(()=>{if(F)return setTimeout(()=>document.addEventListener("mousedown",ue),0),()=>document.removeEventListener("mousedown",ue)},[F,ue]);const le=C.useCallback((re,ie)=>{re.stopPropagation(),re.preventDefault();let fe=[..._];fe.includes(ie)?fe=fe.filter(Se=>Se!==ie):fe.push(ie),A==null||A(fe)},[_,A]),ge=C.useCallback(()=>{if(!m||!w.current)return;const re=zu.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:_,placeholder:o,optionRenderer:ie=>c({option:ie}),type:n,isMulti:!0});D(re)},[m,w,e,_,o,c,n]);return C.useEffect(()=>m?((e!==I.current||R===void 0)&&(B.current!==null&&cancelAnimationFrame(B.current),B.current=requestAnimationFrame(()=>{ge(),B.current=null,I.current=[...e]})),()=>{B.current!==null&&(cancelAnimationFrame(B.current),B.current=null)}):void 0,[m,e,ge,R]),C.useEffect(()=>()=>{typeof zu.clearCache=="function"&&zu.clearCache()},[]),S.jsxs(S.Fragment,{children:[S.jsxs(Kr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ye.clsx(g.className,Mi.AMultiSelect,"NoSelect",F&&Mi.IsOpen,oe&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[S.jsx("div",{className:Mi.ValuesContainer,children:S.jsx("div",{className:Ye.clsx(Mi.Values,_.length<1&&Mi.Placeholder),children:S.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:_})})}),S.jsx("div",{...p,className:Ye.clsx(Mi.Arrow,p==null?void 0:p.className),children:S.jsx(un,{icon:"TriangleDown",style:{transform:F?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(F||H)&&Ls.createPortal(S.jsx("div",{ref:T,className:Ye.clsx(Mi.Options,Mi[n]),style:{opacity:+F,visibility:F?"visible":"hidden",pointerEvents:F?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:pe,children:e.map((re,ie)=>{var Se;const fe=_.includes(re);return S.jsxs("div",{className:Ye.clsx(Mi.Option,fe&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Se=w.current)==null?void 0:Se.getBoundingClientRect().height},onClick:Le=>le(Le,re),children:[S.jsx(sf,{className:Mi.CheckBox,useCheck:[+fe,void 0]}),S.jsx(c,{option:re})]},ie)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=xI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function xI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const wI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?S.jsx(e,{option:t[0]}):`${t.length} selected`},CI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},SI="_Container_10ion_1",_I="_Steps_10ion_9",AI="_Step_10ion_9",EI="_OutCircle_10ion_26",TI="_IsOver_10ion_37",RI="_InCircle_10ion_41",kI="_Line_10ion_54",II="_Left_10ion_66",MI="_Right_10ion_69",LI="_ContentContainer_10ion_73",DI="_Content_10ion_73",fi={Container:SI,Steps:_I,Step:AI,OutCircle:EI,IsOver:TI,InCircle:RI,Line:kI,Left:II,Right:MI,ContentContainer:LI,Content:DI},OI=r=>{const{useSelect:e,steps:t,StepRenderer:n=R0,ContentRenderer:o=R0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=C.useRef(null),[a,c]=wn(e,t[0]),d=C.useCallback(p=>c==null?void 0:c(p),[c]),h=C.useMemo(()=>t.indexOf(a),[a,t]);return C.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),S.jsxs("div",{className:fi.Container,children:[S.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return S.jsxs("div",{className:fi.Step,children:[m!==0&&S.jsx("div",{className:Ye.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&S.jsx("div",{className:Ye.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),S.jsx(Go,{className:Ye.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>d(p),children:S.jsx("div",{className:Ye.clsx(fi.InCircle,v&&fi.IsOver)})}),S.jsx(n,{step:p,stepIdx:g})]},m)})}),S.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return S.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:S.jsx(o,{step:p,stepIdx:g})},m)})})]})},R0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},NI="_ATab_2c2d2_1",PI="_Option_2c2d2_9",BI="_Underline_2c2d2_23",FI="_IsSelected_2c2d2_23",jI="_IndicatorTrack_2c2d2_34",HI="_Indicator_2c2d2_34",zI="_Primary_2c2d2_50",$I="_Secondary_2c2d2_57",UI="_IsDisabled_2c2d2_67",qI="_Tertiary_2c2d2_81",WI="_Quaternary_2c2d2_111",Rc={ATab:NI,Option:PI,Underline:BI,IsSelected:FI,IndicatorTrack:jI,Indicator:HI,Primary:zI,Secondary:$I,IsDisabled:UI,Tertiary:qI,Quaternary:WI},VI=["Primary","Secondary","Tertiary","Quaternary"],yC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=GI,RightAddon:h,color:p,selectedColor:m,underline:g,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=C.useMemo(()=>e.findIndex(ie=>!(n!=null&&n(ie))),[e,n]),_=o==="Tertiary"?2:0,A=o==="Secondary"?8:0,R=C.useMemo(()=>_+A,[_,A]),D=o==="Tertiary"?2:0,I=C.useMemo(()=>(A-_-D-D)/e.length,[e.length,_,A,D]),[B,F]=wn(t,e[T]),j=C.useRef([]),H=C.useCallback(ie=>F==null?void 0:F(ie),[F]),G=C.useMemo(()=>typeof c=="number"?c+"px":c,[c]),pe=C.useMemo(()=>e.indexOf(B),[e,B]),P=C.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),q=C.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=C.useState(0),[se,ue]=C.useState(0),[oe,le]=C.useState(q),ge=C.useMemo(()=>{let ie;switch(G){case void 0:ie=`calc(${P} * ${pe})`;break;case"fit-content":ie=`calc(${V}px)`;break;default:ie=`calc((${G} + ${R}px) * ${pe})`;break}return`calc(${ie} + ${D}px)`},[G,D,P,pe,V,R]),re=C.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${se}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,se]);return C.useEffect(()=>{var fe,Se;if(e.includes(B)||F==null||F(e[T]),G!=="fit-content"){le(q);return}let ie=0;j.current.forEach((Le,ne)=>{ne<pe&&Le.current&&(ie+=Le.current.offsetWidth+R)}),Q(ie),le(`calc(${((Se=(fe=j.current[pe])==null?void 0:fe.current)==null?void 0:Se.offsetWidth)||0}px)`),ue(j.current.reduce((Le,ne)=>{var ve;return Le+((((ve=ne.current)==null?void 0:ve.offsetWidth)||0)+R-I)},0))},[G,j,e,B,F,T,I,R,pe,q]),S.jsxs("div",{...i,className:Ye.clsx(Rc.ATab,"Headline2",Rc[o],i==null?void 0:i.className),children:[S.jsx("div",{...v,className:Ye.clsx(Rc.Indicator,v==null?void 0:v.className),style:{minWidth:oe,left:ge,marginLeft:_,...v==null?void 0:v.style}}),S.jsx("div",{...w,className:Ye.clsx(Rc.IndicatorTrack,w==null?void 0:w.className),style:{width:re,...w==null?void 0:w.style}}),S.jsx(Nn,{w:D}),e.map((ie,fe)=>{const Se=n==null?void 0:n(ie);return j.current[fe]||(j.current[fe]=C.createRef()),S.jsx(Kr,{abaseRef:j.current[fe],...a,isDisabled:Se,className:Ye.clsx(Rc.Option,Se&&Rc.IsDiabled,ie===B&&Rc.IsSelected,"IsClickable",g&&Rc.Underline,a==null?void 0:a.className),style:{minWidth:q,maxWidth:q,marginLeft:_,marginRight:A,"--color":ie===B&&m||p,...a==null?void 0:a.style},onClick:Le=>{!Se&&H(ie),a&&a.onClick&&a.onClick(Le)},children:S.jsx(d,{option:ie})},fe)}),S.jsx(Nn,{w:D+D+_}),h&&S.jsxs(S.Fragment,{children:[S.jsx(Ku,{}),h]})]})},GI=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function bC(...r){const e=C.useRef(!1);C.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const xC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Pr.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Pr.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.eq(p,o)}const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Pr.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=tr.toDate(d.toString());return p&&tr.be(o.sDate,p,o.eDate)}const h=Pr.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=tr.toDate(h.toString());return p&&tr.be(o.sDate,p,o.eDate)}return!1}},YI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??xC[a.type])==null?void 0:d(c,e,i,a)}))}),n},ZI=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Pr.getContent(o.content,{defKey:n,def:o,item:a}),h=Pr.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},KI=(r,e,t)=>r.slice((e-1)*t,e*t),wC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},XI=(r,e,t,n)=>{const o=wC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},JI=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Pr.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Pr.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const _=t[T],A=Pr.getContent(_.content,{defKey:T,def:_,item:g});if(A!==void 0){if(typeof A=="string"){v.push(A);return}else if(typeof A=="number"){v.push(A.toString());return}}const R=g[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
|
166
166
|
`),h=new Blob([d],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(h),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},QI=r=>{const e=ar.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},e8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},t8=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Pl={applyFilteration:YI,applySortation:ZI,applyPagination:KI,getPages:wC,getRangedPages:XI,downloadCsv:JI,getSingleFilterValue:QI,getMultiFilterValues:e8,getSelectFilterValue:t8},r8="_ATable_12zow_1",n8={ATable:r8};function CC(r,e,t,n){C.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const o8="_BodyHeader_ys4y0_1",i8="_TRow_ys4y0_7",s8="_OverflowSpace_ys4y0_11",a8="_BodyBody_ys4y0_16",l8="_IsSelected_ys4y0_35",c8="_IsSelectable_ys4y0_39",u8="_IsRowMarked_ys4y0_47",d8="_TH_ys4y0_52",f8="_TD_ys4y0_57",h8="_IsMarked_ys4y0_57",p8="_Resizer_ys4y0_76",g8="_IsMoving_ys4y0_88",m8="_IsResizable_ys4y0_91",v8="_ResizerCenter_ys4y0_94",y8="_ResizerOut_ys4y0_100",b8="_ResizerIn_ys4y0_104",x8="_IsClicked_ys4y0_139",w8="_NoItems_ys4y0_146",C8="_Content_ys4y0_152",Dn={BodyHeader:o8,TRow:i8,OverflowSpace:s8,BodyBody:a8,IsSelected:l8,IsSelectable:c8,IsRowMarked:u8,TH:d8,TD:f8,IsMarked:h8,Resizer:p8,IsMoving:g8,IsResizable:m8,ResizerCenter:v8,ResizerOut:y8,ResizerIn:b8,IsClicked:x8,NoItems:w8,Content:C8},Bc=25,hm=50,S8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:d,useSortation:h,pagination:p,pagedItems:m,noMarking:g,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:_=E8,isRowRendered:A,rowHeight:R,resources:D}=r,[I,B]=C.useMemo(()=>o??[],[o]),F=C.useCallback(qe=>{i||!B||!I||c!=null&&c(qe)||(a?I.some(rt=>t(rt,qe))?B(I.filter(rt=>!t(rt,qe))):B([...I,qe]):B([qe]))},[I,c,B,t,i,a]);C.useEffect(()=>{a||!I||!B||I.length>1&&B([I[I.length-1]])},[I,B,a]),C.useEffect(()=>{if(!I||!B)return;I.filter(rt=>c==null?void 0:c(rt)).length>0&&B(I.filter(rt=>!(c!=null&&c(rt))))},[I,B,c]);const[j,H]=h,G=C.useCallback((qe,rt)=>{H&&((j==null?void 0:j.defKey)===qe?j.isAsc===!0?H({defKey:qe,isAsc:!1,sortF:rt}):j.isAsc===!1?H(void 0):H({defKey:qe,isAsc:!0,sortF:rt}):H({defKey:qe,isAsc:!0,sortF:rt}))},[j,H]),[pe,P]=C.useState({elem:null,row:null}),q=C.useRef(null),V=C.useRef(null),Q=C.useCallback(()=>P({elem:q.current,row:V.current}),[]);C.useEffect(()=>Q(),[m.length,Q]),CC(window,"resize",Q);const[se,ue]=C.useState(R);C.useEffect(()=>{const{row:qe}=pe;qe!=null&&ue(qe.clientHeight)},[pe,se]);const oe=C.useMemo(()=>{const{elem:qe}=pe;return qe?Math.floor(qe.clientHeight/se):0},[pe,se]),le=C.useMemo(()=>T||(m.length<=oe?oe:m.length),[oe,T,m]),ge=C.useMemo(()=>{if(T!==void 0)return T*se},[T,se]),re=C.useMemo(()=>ge,[ge]),ie=C.useMemo(()=>{const{elem:qe}=pe;return qe?qe.getBoundingClientRect().height/se<m.length:!1},[pe,se,m.length]),[fe,Se]=C.useState(),Le=C.useMemo(()=>{const{elem:qe}=pe;return!fe||!qe?"100%":qe.clientHeight+(A?0:50)},[fe,A,pe]),ne=C.useRef(null),[ve,ke]=C.useState({}),Be=C.useRef({x:0,y:0}),De=C.useRef({}),we=C.useMemo(()=>ar.keys(ve),[ve]),_e=C.useCallback((qe,rt)=>{const lt=ne.current;if(!lt)return;const bt=[];lt.childNodes.forEach(ht=>{ht.classList.contains(Dn.TH)&&bt.push(ht)});const Mt={};ar.keys(e).forEach((ht,ft)=>{const Ne=bt[ft];if(!Ne)return;const Qe=Ne.getBoundingClientRect().width;Mt[ht]=Qe}),De.current=Mt,Se(rt),Be.current={x:qe.clientX,y:qe.clientY};const Xe=ht=>{if(!ne.current)return;const Ne=ht.clientX-Be.current.x,Qe=A8(e,rt,De.current,Ne);ke(Qe)};document.addEventListener("mousemove",Xe);const Je=()=>{Se(void 0),document.removeEventListener("mousemove",Xe),document.removeEventListener("mouseup",Je)};document.addEventListener("mouseup",Je)},[e]),Ae=C.useCallback(()=>{Se(void 0),ke({})},[]),$e=C.useMemo(()=>{if(we.length===0){const lt={},bt=ar.keys(e);for(let Mt=0;Mt<bt.length;Mt++){const Xe=bt[Mt],Je=e[Xe],ht=Pr.getContent(Je.colSpan,{defKey:Xe,def:Je}),ft=Je.width??80,Ne=Je.minWidth??Bc,Qe=Je.maxWidth,gt={width:ft,minWidth:Ne,maxWidth:Qe,flexGrow:ht??1};if(lt[Xe]=gt,ht!==void 0){for(let It=1;It<Math.min(ht,bt.length-Mt);It++){const Et=e[bt[Mt+It]],Dt=Et.width??80,Xt=Et.minWidth??Bc,Wt=Et.maxWidth;gt.width+=Dt,gt.minWidth+=Xt,gt.maxWidth!==void 0&&(Wt!==void 0?gt.maxWidth+=Wt:gt.maxWidth=void 0)}Mt+=ht-1}}return lt}const qe={},rt=ar.keys(e);for(let lt=0;lt<rt.length;lt++){let bt=rt[lt];const Mt=e[bt];let Xe=ve[bt];const Je=Pr.getContent(Mt.colSpan,{defKey:bt,def:Mt}),ht=Mt.minWidth??Bc,ft=Mt.maxWidth,Ne={width:Xe,minWidth:ht,maxWidth:ft,flexGrow:Je??1};if(qe[bt]=Ne,Je!==void 0){for(let Qe=1;Qe<Math.min(Je,rt.length-lt);Qe++){const gt=e[rt[lt+Qe]],It=ve[rt[lt+Qe]],Et=gt.minWidth??Bc,Dt=gt.maxWidth;Ne.width+=It,Ne.minWidth+=Et,Ne.maxWidth!==void 0&&(Dt!==void 0?Ne.maxWidth+=Dt:Ne.maxWidth=void 0)}lt+=Je-1}}return qe},[e,we,ve]),je=C.useRef(null),et=C.useMemo(()=>Pl.getSingleFilterValue(d),[d]);return C.useEffect(()=>{q.current&&q.current.scrollTo({top:0})},[p.page]),C.useEffect(()=>{A&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,A]),S.jsxs(S.Fragment,{children:[S.jsx(Iv,{isLoading:w}),S.jsx("div",{ref:je,className:Ye.clsx(Dn.BodyHeader,fe!==void 0&&Dn.IsClicked),style:{display:v||A?"none":"flex"},children:S.jsx("div",{ref:ne,className:Dn.TRow,style:{minHeight:hm,maxHeight:hm},children:ar.map(e,([qe],rt)=>{const lt=e[qe],bt=Pr.getContent(lt.hContent,{defKey:qe,def:lt}),Mt=lt.name,Xe=rt===ar.keys(e).length-1,Je=lt.width??80,ht=lt.minWidth??Bc,ft=lt.maxWidth,Ne={width:Je,minWidth:ht,maxWidth:ft,justifyContent:Pr.getContent(lt.hAlign,{defKey:qe,def:lt})??"flex-start",...Pr.getContent(lt.hStyle,{defKey:qe,def:lt})};we.includes(qe)&&(Ne.width=ve[qe]);const Qe=lt.isSortable,gt=(j==null?void 0:j.defKey)===qe,It=j==null?void 0:j.isAsc;return S.jsxs(C.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Dn.TH,"Label1",Qe?"IsClickable":"NoSelect"),style:Ne,onClick:()=>Qe&&G(qe,lt.sortF),children:[S.jsx(el,{children:bt??Mt,className:Dn.Content}),Qe&&S.jsx(un,{icon:gt?It?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Xe&&S.jsxs("div",{className:Ye.sclsx(Dn,"Resizer","IsResizable","NoSelect",fe!==void 0&&"IsMoving"),onDoubleClick:Ae,onMouseDown:Et=>_e(Et,qe),children:[S.jsx("div",{className:Dn.ResizerOut}),S.jsx("div",{className:Dn.ResizerIn}),S.jsx("div",{className:Dn.ResizerCenter,style:{height:Le}}),S.jsx("div",{className:Dn.ResizerIn}),S.jsx("div",{className:Dn.ResizerOut})]}),Xe&&S.jsx(Nn,{className:Dn.OverflowSpace,h:hm,style:{color:Ne.color,backgroundColor:Ne.backgroundColor,transition:Ne.transition},w:"var(--Scrollbar-width)"})]},qe)})})}),S.jsxs("div",{ref:q,className:Ye.clsx(Dn.BodyBody,fe!==void 0&&Dn.IsClicked),style:{overflowY:ie?"scroll":"hidden",minHeight:ge,maxHeight:re},children:[m.map((qe,rt)=>{const lt=Pr.getContent(n,{item:qe}),bt=B&&!i,Mt=I==null?void 0:I.some(ft=>t(ft,qe)),Xe=I&&(c==null?void 0:c(qe)),Je=typeof Xe=="string"?Xe:void 0,ht={...qe};return A&&ar.keys(e).forEach(ft=>{const Ne=e[ft],Qe=Pr.getContent(Ne.content,{defKey:ft,def:Ne,item:qe});let gt=!1;if(et&&!g){const It=Pr.getContent(Ne.asText,{defKey:ft,def:Ne,item:qe});It!==void 0?gt=It.toString().toLowerCase().includes(et.toLowerCase()):["string","number"].includes(typeof Qe)&&Qe!==void 0&&Qe!==null&&(gt=Qe.toString().toLowerCase().includes(et.toLowerCase()))}ht[ft]=S.jsx("span",{className:Ye.clsx(gt&&Dn.IsRowMarked),children:ht[ft]})}),S.jsx(Kr,{isDisabled:Xe,tooltip:Je,...lt,abaseRef:Mt?V:void 0,className:Ye.clsx(lt==null?void 0:lt.className,bt&&Dn.IsSelectable,Mt&&Dn.IsSelected),onClick:ft=>{var Ne;F(qe),(Ne=lt==null?void 0:lt.onClick)==null||Ne.call(lt,ft)},children:S.jsx(_,{defs:e,isBodyBodyOverflowed:ie,item:qe,markedItem:ht,noMarking:g,rowHeight:R,singleFilterValue:et,spanWidths:$e})},rt)}),S.jsx(_8,{isRowRendered:A,itemsLength:m.length,resources:D,rowHeight:se,showRows:le})]})]})},_8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=C.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,d)=>S.jsx("div",{className:Ye.clsx(Dn.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&d===Math.floor(e/2)&&S.jsx(Rn,{className:Dn.NoItems,children:n["No Items"]})},d))};function A8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,d=i;if(n<0){for(;n<0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=p.minWidth??Bc,w=g.maxWidth,T=o[h],_=o[m];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=-n;R=Math.min(R,A),T-R<=v&&c--,w!==void 0&&_+R>=w&&d++,o[h]=T-R,o[m]=_+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=g.minWidth??Bc,w=p.maxWidth,T=o[m],_=o[h];let A=T-v;w!==void 0&&(A=Math.min(A,w-_));let R=n;R=Math.min(R,A),T-R<=v&&d++,w!==void 0&&_+R>=w&&c--,o[m]=T-R,o[h]=_+R,n-=R}return o}return o}const E8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return S.jsx("div",{className:Ye.clsx(Dn.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([d],h)=>{const p=o[d];if(p===void 0)return null;const m=h===ar.keys(e).length-1,g=e[d],v=Pr.getContent(g.content,{defKey:d,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Pr.getContent(g.align,{defKey:d,def:g,item:t})??"flex-start",...Pr.getContent(g.style,{defKey:d,def:g,item:t})};let T=!1;if(i&&!n){const _=Pr.getContent(g.asText,{defKey:d,def:g,item:t});_!==void 0?T=_.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return S.jsxs(C.Fragment,{children:[S.jsx("div",{className:Ye.clsx(Dn.TD,"Label1",T&&Dn.IsMarked),style:w,children:S.jsx(el,{children:v,className:Dn.Content})}),!a&&m&&S.jsx(Nn,{className:Dn.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},d)})})},T8="_ATableFooter_w090q_1",R8="_Button_w090q_10",k8="_IsSelected_w090q_26",I8="_IsDisabled_w090q_31",oa={ATableFooter:T8,Button:R8,IsSelected:k8,IsDisabled:I8},M8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=C.useMemo(()=>e[e.length-1],[e]);return S.jsxs(Rn,{className:oa.ATableFooter,children:[S.jsx(un,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),S.jsx(un,{className:Ye.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>S.jsx("div",{className:Ye.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),S.jsx(un,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),S.jsx(un,{className:Ye.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},L8="_Filter_1b9j0_1",D8="_SelectFilter_1b9j0_11",O8="_MainFilter_1b9j0_15",N8="_IsOpen_1b9j0_26",P8="_SubFilters_1b9j0_30",B8="_Input_1b9j0_44",F8="_Main_1b9j0_15",j8="_Sub_1b9j0_30",H8="_Actions_1b9j0_62",z8="_Icon_1b9j0_67",$8="_LeftIcon_1b9j0_74",U8="_CircleAlertOutline_1b9j0_79",q8="_Rotate_1b9j0_87",Dr={Filter:L8,SelectFilter:D8,MainFilter:O8,IsOpen:N8,SubFilters:P8,Input:B8,Main:F8,Sub:j8,Actions:H8,Icon:z8,LeftIcon:$8,CircleAlertOutline:U8,Rotate:q8},W8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:d,placeholder:h}=r,[p,m]=C.useState([]),[g,v]=C.useMemo(()=>t,[t]),w=C.useMemo(()=>c==="Select",[c]),T=C.useMemo(()=>ar.keys(g).map(ne=>String(ne)),[g]),[_,A]=C.useState(w&&T.length>0?T[0]:null),R=C.useCallback((ne,ve,ke)=>{if(!v)return;const Be={...g};ne.value=ve,v(Be),m(De=>De.map((we,_e)=>_e===(ke?ke+1:0)?"":we))},[g,v]),D=C.useMemo(()=>{let ne=[],ve=ar.keys(g);w&&_&&(ve=ve.filter(ke=>ke===_));for(const ke of ve)ne.push({key:ke,def:e[ke],filter:g[ke]});return ne},[g,e,w,_]),I=C.useMemo(()=>D.length>0?D[0]:null,[D]),B=C.useMemo(()=>p.length>0?p[0]:"",[p]),F=C.useMemo(()=>D.length>1?D.slice(1):[],[D]),j=C.useMemo(()=>p.length>1?p.slice(1):[],[p]),H=C.useMemo(()=>F.length>0,[F]),[G,pe]=C.useState(!1),[P,q]=C.useState(!1),V=C.useRef(null),Q=C.useCallback(()=>pe(!1),[]),se=C.useRef(null),ue=C.useCallback(()=>{q(!1),pe(!0),se.current&&(document.removeEventListener("mousedown",se.current),se.current=null)},[]),oe=C.useCallback(()=>{const ne=ve=>{const ke=document.getElementById("root"),Be=ve.target,De=V.current;!ke||!De||!Be||!De.contains(Be)&&ke.contains(Be)&&ue()};return se.current=ne,ne},[ue]),le=C.useCallback(()=>{pe(!0),q(!0),setTimeout(()=>{const ne=oe();document.addEventListener("mousedown",ne)},0)},[oe]),ge=C.useMemo(()=>P?ue:le,[P,le,ue]),re=C.useCallback(()=>{const ne=D.map((ve,ke)=>ve.filter.type==="String"&&ve.filter.validation?ve.filter.validation(ve.filter.value||""):ve.filter.type==="Date"&&ve.filter.validation||ve.filter.type==="DateRange"&&ve.filter.validation?ve.filter.validation(ve.filter.value):p[ke]);return m(ne),ne.every(ve=>!ve)},[p,D]),ie=C.useCallback(ne=>{ne.key==="Enter"?(re()&&o.apply(),ne.stopPropagation()):ne.key==="Escape"&&(q(!1),ne.currentTarget.focus(),ne.currentTarget.blur(),ne.stopPropagation())},[re,q,o]),fe=C.useMemo(()=>({open:le,close:ue,toggle:ge,validate:re}),[le,ue,ge,re]),Se=C.useCallback(()=>{o.clear()},[o]),Le=C.useCallback(ne=>{if(!v||!ne)return;A(ne);const ve={...g};ar.keys(ve).forEach(ke=>{if(ke!==ne&&ve[ke])switch(ve[ke].type){case"String":ve[ke].value="";break;case"Select":ve[ke].value=null;break;case"Date":ve[ke].value=void 0;break;case"DateRange":ve[ke].value=void 0;break}}),m([]),v(ve),o.clear(),setTimeout(()=>{var Be;const ke=(Be=V.current)==null?void 0:Be.querySelector("input");ke&&ke.focus()},0)},[g,v,m,o]);return I?S.jsxs(S.Fragment,{children:[w&&S.jsx(Gc,{isAutoWidth:!0,className:Ye.clsx(Dr.SelectFilter),options:T,type:"Secondary",useSelect:[_,Le],OptionRenderer:({option:ne})=>{const ve=e[ne];let ke;if(ve!=null&&ve.hContent){const Be={defKey:ne,def:ve};ke=typeof ve.hContent=="function"?ve.hContent(Be):ve.hContent}else{const Be=g[ne],De=(ve==null?void 0:ve.name)||(Be==null?void 0:Be.placeholder)||String(ne);ke=S.jsx("span",{children:De})}return ke}}),S.jsxs("div",{ref:V,className:Ye.clsx(Dr.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:ie,onClick:ne=>{ne.preventDefault(),ne.stopPropagation()},children:[S.jsx(V8,{errorMessage:B,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:H,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:fe,resources:d,onChange:R}),!w&&S.jsx(G8,{errorMessages:j,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:d,subFilterSets:F,validate:re,onChange:R,onClearClick:Se,onTransitionEnd:Q})]})]}):null},V8=r=>{var g,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:d,resources:h,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const _=[e.filter.value??"",I=>o(e.filter,I)],A=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ga,{icon:R??"Type",isOpen:d,tooltip:D}),S.jsx(Vc,{autoFocus:e.filter.autoFocus,className:Ye.clsx(Dr.Input,Dr.Main),dataList:e.filter.dataList,LeftAddon:t&&S.jsx(up,{isOpen:d,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:A??h["Search(Placeholder)"],type:p?"Error":"Primary",useValue:_,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:S.jsx(dp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const _=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],A=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ga,{icon:R??"Menu",isOpen:d,tooltip:D}),S.jsx(Gc,{className:Ye.clsx(Dr.Input,Dr.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:A,useSelect:_,SelectedRenderer:({OptionRenderer:I,selectedOption:B})=>B===null?A||e.filter.placeholder:S.jsxs(S.Fragment,{children:[t&&S.jsx(up,{isOpen:d,filterF:i,popupF:c,resources:h}),S.jsx(I,{option:B}),S.jsx(dp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:d,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const _=[e.filter.value,I=>o(e.filter,I)],A=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??A;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ga,{icon:R??"CalendarDay",isOpen:d,tooltip:D}),S.jsx(Rv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:A,type:"Raw",useDate:_,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(up,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&S.jsx(Nn,{w:d?0:6}),S.jsx(Ga,{icon:R??"CalendarDay",isOpen:!d,tooltip:D}),S.jsx(Nn,{w:d?8:0})]}),RightAddon:S.jsx(dp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const _=[e.filter.value,B=>o(e.filter,B)],{noDefaultChoices:A}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,I=e.filter.iconTooltip??R;return S.jsxs("div",{className:Ye.clsx(Dr.MainFilter,d&&Dr.IsOpen),children:[S.jsx(Ga,{icon:D??"CalendarDay",isOpen:d,tooltip:I}),S.jsx(Ev,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:A,placeholder:R,type:"Raw",useDateRange:_,LeftAddon:S.jsxs(S.Fragment,{children:[t&&S.jsx(up,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&S.jsx(Nn,{w:d?0:6}),S.jsx(Ga,{icon:D??"CalendarDay",isOpen:!d,tooltip:I}),S.jsx(Nn,{w:d?8:0})]}),RightAddon:S.jsx(dp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}return null},up=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return S.jsx(So,{className:Dr.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Dr.Rotate),onClick:i=>{i.currentTarget.classList.add(Dr.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},dp=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:d}=r,h=C.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=C.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=C.useCallback(g=>{g.stopPropagation(),t.validate()&&d.apply()},[t,d]);return S.jsxs(C.Fragment,{children:[i&&S.jsx(So,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&S.jsx(So,{className:Dr.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&S.jsx(So,{className:Dr.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&S.jsx(So,{className:Dr.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},G8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:d,placeholder:h,filterF:p,validate:m}=r;return!o&&!i?null:S.jsxs("div",{className:Dr.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,v)=>{var w,T,_,A;if(g.filter.type==="String"){const R=[g.filter.value??"",j=>t(g.filter,j,v)],D=d[v],I=h??g.filter.placeholder??((w=g.def)==null?void 0:w.name),B=g.filter.icon,F=g.filter.iconTooltip??I;return S.jsxs(Rn,{style:{marginBottom:6},children:[S.jsx(Ga,{icon:B??"Type",tooltip:F}),S.jsx(Vc,{autoFocus:g.filter.autoFocus,className:Ye.clsx(Dr.Input,Dr.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&S.jsx(So,{className:Dr.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),S.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Select"){const R=[g.filter.value??null,F=>t(g.filter,F)],D=h??g.filter.placeholder??((T=g.def)==null?void 0:T.name),I=g.filter.icon,B=g.filter.iconTooltip??D;return S.jsxs(Rn,{style:{marginBottom:6},children:[S.jsx(Ga,{icon:I??"Menu",tooltip:B}),S.jsx(Gc,{arrowProps:{style:{marginRight:4}},className:Ye.clsx(Dr.Input,Dr.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:D,type:"Secondary",useSelect:R}),S.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Date"){const R=[g.filter.value,F=>t(g.filter,F)],D=h??g.filter.placeholder??((_=g.def)==null?void 0:_.name),I=g.filter.icon,B=g.filter.iconTooltip??D;return S.jsxs(Rn,{style:{marginBottom:6},children:[S.jsx(Ga,{icon:I??"CalendarDay",tooltip:B}),S.jsx(Rv,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:S.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:D,type:"Raw",useDate:R}),S.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="DateRange"){const R=[g.filter.value,j=>t(g.filter,j)],{noDefaultChoices:D}=g.filter,I=h??g.filter.placeholder??((A=g.def)==null?void 0:A.name),B=g.filter.icon,F=g.filter.iconTooltip??I;return S.jsxs(Rn,{style:{marginBottom:6},children:[S.jsx(Ga,{icon:B??"CalendarDay",tooltip:F}),S.jsx(Ev,{className:Ye.clsx(Dr.DatePicker,Dr.Input,Dr.Sub),LeftAddon:S.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:D,placeholder:I,type:"Raw",useDateRange:R})]},v)}else return null}),S.jsxs(Rn,{className:Dr.Actions,children:[S.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),S.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ga=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return S.jsx(So,{className:Dr.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},Y8="_ATableHeader_1hzfz_1",Z8="_LeftHeaderContent_1hzfz_11",K8="_RightHeaderContent_1hzfz_19",X8="_TopRightAddon_1hzfz_27",J8="_HItem_1hzfz_32",Nu={ATableHeader:Y8,LeftHeaderContent:Z8,RightHeaderContent:K8,TopRightAddon:X8,HItem:J8},Q8=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:d,noCount:h,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:_}=r,[A]=C.useMemo(()=>o||[],[o]),R=C.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[D]=i,[I,B]=v,[F,j]=C.useState(!1),H=C.useMemo(()=>{const oe=ar.values(D).filter(re=>re.type==="DateRange"),le=ar.keys(D).filter(re=>oe.includes(D[re])),ge=ar.keys(e).filter(re=>e[re].isSortable);return le.length>0?(le.length>1&&j(!0),ge.map(ie=>le.includes(ie)?[ie+"_Asc",ie+"_Desc"]:ie).flat()):ge},[e,D]),G=C.useMemo(()=>r.isRowRendered&&H.length>0,[H.length,r.isRowRendered]),pe=C.useCallback((oe,le)=>{B&&(I==null?void 0:I.defKey)===oe&&(I.isAsc===!0?B({defKey:oe,isAsc:!1,sortF:le}):B({defKey:oe,isAsc:!0,sortF:le}))},[I,B]),P=C.useRef(),[q,V]=C.useState(),[Q,se]=C.useState(I?I.defKey:H[0]),ue=C.useMemo(()=>{if(!q)return{};const oe=e[q];return{SortUp:{onClick:()=>{B==null||B({defKey:q,isAsc:!0,sortF:oe.sortF}),se(q)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{B==null||B({defKey:q,isAsc:!1,sortF:oe.sortF}),se(q)},content:()=>w["Sort down"]}}},[B,q,e,w]);return S.jsxs(S.Fragment,{children:[S.jsxs("div",{className:Ye.clsx(Nu.ATableHeader),children:[S.jsxs("div",{className:Ye.clsx(Nu.LeftHeaderContent,"NoSelect"),children:[S.jsxs(Rn,{style:{marginBottom:G?8:0},children:[m&&S.jsx("div",{className:Ye.clsx(Nu.HItem),children:m}),t&&S.jsx("div",{className:Ye.clsx(Nu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&S.jsxs("div",{className:Ye.clsx(Nu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,A&&A.length>0&&S.jsxs(S.Fragment,{children:[" / ",w["Checked n items"](A.length)]})]})]}),G&&S.jsx(yC,{options:H,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:oe=>{var re;const le=oe.currentTarget.textContent;if(le===w[le])return;oe.currentTarget.querySelector("svg")===null&&((re=P.current)==null||re.open(oe.currentTarget))}},OptionRenderer:oe=>{const le=/_Asc|_Desc/.test(oe.option),ge=(I==null?void 0:I.defKey)===oe.option,re=Q===oe.option,ie=I==null?void 0:I.isAsc,fe=()=>{if(le){V(void 0),se(oe.option);const[ne,ve]=oe.option.split("_"),ke=ve==="Asc";B==null||B({defKey:ne,isAsc:ke,sortF:e[ne].sortF})}else re?pe(oe.option,e[oe.option].sortF):V(oe.option)},Le=le?(ne=>{const[ve,ke]=ne.split("_");return(F?ve+" ":"")+w[ke]})(oe.option):w["Sort by x"](oe.option);return S.jsxs(Rn,{className:Ye.clsx(!(le&&re)&&"IsClickable"),style:{height:"100%"},onClick:fe,children:[Le,re&&!le&&S.jsx(un,{icon:ge?ie?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},oe.option)}})]}),S.jsx(Ku,{}),S.jsxs("div",{className:Ye.clsx(Nu.RightHeaderContent,"NoSelect"),children:[!d&&S.jsx(W8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:H.length>0,isRowRendered:r.isRowRendered,placeholder:_,resources:w,useFilteration:i}),g&&S.jsx(Rn,{children:g,className:Ye.clsx(Nu.TopRightAddon)})]})]}),S.jsx(gC,{actionRef:P,defs:ue,position:yf.S,width:100,onClose:()=>V(void 0)})]})},e9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:d,checkDisabled:h,isLoading:p,isDisabled:m,title:g,entireItems:v,onStateChange:w,pagedItems:T,totalCount:_,useFilteration:A,useToggleFilteration:R,filterType:D="Default",placeholder:I,rowHeight:B=40,usePagination:F,useSortation:j,showRows:H,noHeader:G,noDefHeader:pe,noFooter:P,noFilter:q,noCount:V,noMarking:Q,noStateChangeOnMount:se,TopLeftAddon:ue,TopRightAddon:oe,actionRef:le,RowRenderer:ge,resources:re}=r,ie=C.useMemo(()=>({...wr.ATable,...re}),[re]),fe=C.useCallback((be,He)=>t!==void 0?Array.isArray(t)?t.every(At=>Ya.isEqual(be[At],He[At])):Ya.isEqual(be[t],He[t]):Ya.isEqual(be,He),[t]),Se=C.useMemo(()=>({content:t9,...n}),[n]),Le=C.useMemo(()=>{const be={};return ar.keys(e).forEach(He=>{const At=e[He],Ft={...Se,...At};be[He]=Ft}),be},[Se,e]),[ne,ve]=wn(Ya.cloneDeep(A),{"":{type:"String",placeholder:ie["Search(Placeholder)"],value:""}}),[ke,Be]=wn(Ya.cloneDeep(R),void 0),[De,we]=C.useState(!1),[_e,Ae]=C.useMemo(()=>De&&ke?[ke,Be]:[ne,ve],[ne,De,ve,Be,ke]),[$e,je]=C.useState(_e),et=C.useMemo(()=>v?Pl.applyFilteration(v,Le,$e):[],[v,Le,$e]),qe=C.useMemo(()=>{for(const be in $e){const He=$e[be];if(He.value!==void 0&&He.value!==null&&He.value!=="")return!0}return!1},[$e]),[rt,lt]=wn(j,void 0),bt=C.useMemo(()=>Pl.applySortation(et,Le,rt),[et,Le,rt]),Mt=C.useMemo(()=>{if(T!==void 0)return Pl.applySortation(T,Le,rt)},[T,Le,rt]),[Xe,Je]=wn(F,{page:1,pageSize:50,pageRange:10}),ht=C.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Xe}),[Xe]),{pagedItems:ft,totalCount:Ne,pagination:Qe}=C.useMemo(()=>{const be={...ht};if(Mt!==void 0){let He=_??Mt.length;const At=Pl.getPages(He,be.pageSize);return be.page>At.length?be.page=At.length:be.page<1&&(be.page=1),{pagedItems:Mt,totalCount:He,pagination:be}}else if(v!==void 0){const He=_??bt.length,At=Pl.getPages(He,be.pageSize);return be.page>At.length?be.page=At.length:be.page<1&&(be.page=1),{pagedItems:Pl.applyPagination(bt,be.page,be.pageSize),totalCount:He,pagination:be}}else return{pagedItems:[],totalCount:_??0,pagination:ht}},[v,Mt,_,ht,bt]),{pages:gt,rangedPages:It}=C.useMemo(()=>Pl.getRangedPages(Qe.page,Ne,Qe.pageSize,Qe.pageRange),[Ne,Qe.pageSize,Qe.page,Qe.pageRange]),[Et,Dt]=C.useMemo(()=>d??[],[d]),Xt=C.useMemo(()=>ft.filter(be=>Et==null?void 0:Et.some(He=>fe(He,be))),[ft,Et,fe]),Wt=C.useMemo(()=>ft.filter(be=>!(h!=null&&h(be))),[ft,h]),hr=C.useMemo(()=>Wt.length>0&&Wt.every(be=>Xt.some(He=>fe(He,be))),[Xt,Wt,fe]),dr=C.useMemo(()=>hr?!1:Wt.some(be=>Xt.some(He=>fe(He,be))),[Xt,Wt,hr,fe]),cr=C.useCallback(()=>{!Et||!Dt||m||Dt(hr||dr?Et.filter(be=>!Wt.some(He=>fe(He,be))):[...Et,...Wt])},[Et,Dt,hr,dr,Wt,m,fe]),Te=C.useCallback(be=>{!Et||!Dt||m||(Et.some(He=>fe(He,be))?Dt(Et.filter(He=>!fe(He,be))):Dt([...Et,be]))},[Et,Dt,m,fe]);C.useEffect(()=>{if(!Dt||!Et||!h)return;Et.filter(He=>h(He)).length>0&&Dt(Et.filter(He=>!h(He)))},[h,Et,Dt]);const ae=C.useMemo(()=>({hContent:Et&&S.jsx(sf,{isIndeterminate:dr,useCheck:[hr,cr]}),content:be=>{const{item:He}=be,At=h==null?void 0:h(He),Ft=typeof At=="string"?At:void 0,Ot=Et==null?void 0:Et.some(er=>fe(er,He));return S.jsx(sf,{isDisabled:At,style:{zIndex:1},tooltip:Ft,useCheck:[Ot,()=>Te(He)],onClick:er=>er.stopPropagation()})},minWidth:32,maxWidth:32}),[Et,hr,dr,fe,cr,h,Te]),at=C.useMemo(()=>d?{checkDef:ae,...Le}:Le,[Le,ae,d]),[We,vt]=C.useState(!1),_t=C.useMemo(()=>p??We,[p,We]),Tt=C.useCallback(async be=>{w&&(vt(!0),await w(be),vt(!1)),Je==null||Je(be.pagination),lt==null||lt(be.sortation),je(be.filteration)},[w,Je,lt]);C.useEffect(()=>{if(!le)return;const be=At=>{const Ft={entireItems:v,filteration:_e,pagination:Qe,sortation:rt},Ot=At?At(Ft):Ft;Tt(Ot)},He=At=>{const Ft={...Qe,page:1},Ot=At?At(_e):_e;Tt({entireItems:v,filteration:Ot,pagination:Ft,sortation:rt}),Ae==null||Ae(Ot)};le.current={fireOnStateChange:be,applyFilteration:He}},[le,Tt,v,Ae,_e,Qe,rt]);const Ut=C.useCallback(be=>{be.page===Qe.page&&be.pageSize===Qe.pageSize||(be.page<1?be.page=1:be.page>gt[gt.length-1]&&(be.page=gt[gt.length-1]),Tt({entireItems:v,filteration:$e,pagination:be,sortation:rt}))},[Qe,gt,Tt,v,$e,rt]),Ge=C.useCallback(be=>{Ae&&Ae(be)},[Ae]),st=C.useCallback(be=>{Tt({entireItems:v,filteration:$e,pagination:Qe,sortation:be})},[Tt,v,$e,Qe]),ct=C.useCallback(be=>{Ut({...Qe,page:be})},[Ut,Qe]),xt=C.useCallback(()=>{ct(Qe.page-1)},[ct,Qe.page]),Nt=C.useCallback(()=>{ct(Qe.page+1)},[ct,Qe.page]),Bt=C.useCallback(()=>{ct(1)},[ct]),qt=C.useCallback(()=>{ct(gt[gt.length-1])},[ct,gt]),Yt=C.useMemo(()=>({move:ct,movePrev:xt,moveNext:Nt,moveFirst:Bt,moveLast:qt}),[ct,xt,Nt,Bt,qt]),ir=C.useCallback(()=>{const be={...Qe,page:1};Tt({entireItems:v,filteration:_e,pagination:be,sortation:rt})},[_e,Qe,Tt,v,rt]),jt=C.useCallback(()=>{we(!De)},[De]),xr=C.useCallback(()=>{De&&ke?Be==null||Be(k0(ke)):Ae==null||Ae(k0(ne))},[De,ke,Be,ne,Ae]),jr=C.useMemo(()=>({apply:ir,toggle:jt,clear:xr}),[ir,jt,xr]);bC(()=>{se||Tt({entireItems:v,filteration:_e,pagination:Qe,sortation:rt})});const Ze=C.useMemo(()=>ar.map(Le,([He])=>Le[He].minWidth??Bc).reduce((He,At)=>He+At,0),[Le]),ee=C.useMemo(()=>ge!==void 0,[ge]);return S.jsxs(Kr,{className:n8.ATable,isDisabled:m,style:{minWidth:Ze},children:[!G&&S.jsx(Q8,{defs:Le,filterF:jr,filterType:D,hasToggleFilteration:ke!==void 0,isFiltered:qe,isRowRendered:ee,noCount:V,noFilter:q,placeholder:I,resources:ie,title:g,TopLeftAddon:ue,TopRightAddon:oe,totalCount:Ne,useCheck:d&&Et?[Et,Dt]:void 0,useFilteration:[_e,Ge],useSortation:[rt,st]}),S.jsx(S8,{appliedFilteration:$e,defs:at,isEqual:fe,isLoading:_t,isRowRendered:ee,isSelectMulti:a,isTableDisabled:m,noDefHeader:pe,noMarking:Q,pagedItems:ft,pagination:Qe,resources:ie,rowHeight:B,RowRenderer:ge,rProps:o,selectDisabled:c,showRows:H,useSelect:i,useSortation:[rt,st]}),!P&&S.jsx(M8,{pageF:Yt,pages:gt,pagination:Qe,rangedPages:It})]})},t9=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function k0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const r9="_AText_1asz6_1",n9={AText:r9},SC=r=>{const{text:e,styled:t,style:n}=r,o=C.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?S.jsx("b",{children:e}):S.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>S.jsxs(C.Fragment,{children:[fp(a),c<i.length-1?S.jsx("b",{children:fp(t)}):""]},c)):i.map((a,c)=>S.jsxs(C.Fragment,{children:[fp(a),c<i.length-1&&S.jsx("span",{style:n,children:fp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return S.jsx("div",{className:Ye.clsx("Body1Reading",n9.AText,"NoSelect"),children:o})};function fp(r){const e=r.split(`
|
167
167
|
`);return e.map((t,n)=>S.jsxs(C.Fragment,{children:[t,n!==e.length-1&&S.jsx("br",{})]},n))}const o9="_Base_cpm4t_7",i9="_ATextArea_cpm4t_11",s9="_Primary_cpm4t_34",a9="_UnAvailable_cpm4t_39",l9="_Secondary_cpm4t_47",c9="_ReadOnly_cpm4t_59",hp={Base:o9,ATextArea:i9,Primary:s9,UnAvailable:a9,Secondary:l9,ReadOnly:c9,Error:"_Error_cpm4t_66"},u9=["Primary","Secondary","ReadOnly","Error"],d9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:d,maxLength:h,tabIndex:p,autoFocus:m,textAreaProps:g,...v}=r,[{wrapId:w,wrapProps:T,labelProps:_,...A},R]=Zu(v),D=C.useMemo(()=>f9(t)?"Error":n,[t,n]),I=C.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),B=C.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[F,j]=wn(i,""),H=C.useCallback(P=>{j&&j(P)},[j]),G=C.useCallback(P=>{var q;B||(H(P.target.value),(q=g==null?void 0:g.onChange)==null||q.call(g,P))},[B,H,g]),pe=C.useCallback(P=>{var q;if(!B){if((q=g==null?void 0:g.onKeyDown)==null||q.call(g,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[B,e,g]);return S.jsx(Wc,{wrapId:w,wrapProps:T,labelProps:_,...A,children:S.jsx(Kr,{...R,className:Ye.clsx(hp.Base,R.className),children:S.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ye.clsx(hp.ATextArea,hp[D],B&&hp.UnAvailable,g==null?void 0:g.className),maxLength:h,placeholder:d,readOnly:I,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:p,value:F,onChange:G,onKeyDown:pe})})})};function f9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:_C,setPrototypeOf:I0,isFrozen:h9,getPrototypeOf:p9,getOwnPropertyDescriptor:g9}=Object;let{freeze:mi,seal:Os,create:AC}=Object,{apply:N1,construct:P1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});N1||(N1=function(e,t,n){return e.apply(t,n)});P1||(P1=function(e,t){return new e(...t)});const pp=vi(Array.prototype.forEach),m9=vi(Array.prototype.lastIndexOf),M0=vi(Array.prototype.pop),Zf=vi(Array.prototype.push),v9=vi(Array.prototype.splice),Hp=vi(String.prototype.toLowerCase),pm=vi(String.prototype.toString),L0=vi(String.prototype.match),Kf=vi(String.prototype.replace),y9=vi(String.prototype.indexOf),b9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),hi=vi(RegExp.prototype.test),Xf=x9(TypeError);function vi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return N1(r,e,n)}}function x9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hp;I0&&I0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(h9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function w9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Nl(r){const e=AC(null);for(const[t,n]of _C(r))aa(r,t)&&(Array.isArray(n)?e[t]=w9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Nl(n):e[t]=n);return e}function Jf(r,e){for(;r!==null;){const n=g9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=p9(r)}function t(){return null}return t}const D0=mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gm=mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mm=mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),C9=mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vm=mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),S9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O0=mi(["#text"]),N0=mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ym=mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P0=mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),gp=mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),A9=Os(/<%[\w\W]*|[\w\W]*%>/gm),E9=Os(/\$\{[\w\W]*/gm),T9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),R9=Os(/^aria-[\-\w]+$/),EC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),k9=Os(/^(?:\w+script|data):/i),I9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TC=Os(/^html$/i),M9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var B0=Object.freeze({__proto__:null,ARIA_ATTR:R9,ATTR_WHITESPACE:I9,CUSTOM_ELEMENT:M9,DATA_ATTR:T9,DOCTYPE_NAME:TC,ERB_EXPR:A9,IS_ALLOWED_URI:EC,IS_SCRIPT_OR_DATA:k9,MUSTACHE_EXPR:_9,TMPLIT_EXPR:E9});const Qf={element:1,text:3,progressingInstruction:7,comment:8,document:9},L9=function(){return typeof window>"u"?null:window},D9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},F0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function RC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:L9();const e=kt=>RC(kt);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==Qf.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:h,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:v}=r,w=d.prototype,T=Jf(w,"cloneNode"),_=Jf(w,"remove"),A=Jf(w,"nextSibling"),R=Jf(w,"childNodes"),D=Jf(w,"parentNode");if(typeof a=="function"){const kt=t.createElement("template");kt.content&&kt.content.ownerDocument&&(t=kt.content.ownerDocument)}let I,B="";const{implementation:F,createNodeIterator:j,createDocumentFragment:H,getElementsByTagName:G}=t,{importNode:pe}=n;let P=F0();e.isSupported=typeof _C=="function"&&typeof D=="function"&&F&&F.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:q,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:ue,IS_SCRIPT_OR_DATA:oe,ATTR_WHITESPACE:le,CUSTOM_ELEMENT:ge}=B0;let{IS_ALLOWED_URI:re}=B0,ie=null;const fe=Wr({},[...D0,...gm,...mm,...vm,...O0]);let Se=null;const Le=Wr({},[...N0,...ym,...P0,...gp]);let ne=Object.seal(AC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ve=null,ke=null,Be=!0,De=!0,we=!1,_e=!0,Ae=!1,$e=!0,je=!1,et=!1,qe=!1,rt=!1,lt=!1,bt=!1,Mt=!0,Xe=!1;const Je="user-content-";let ht=!0,ft=!1,Ne={},Qe=null;const gt=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let It=null;const Et=Wr({},["audio","video","img","source","image","track"]);let Dt=null;const Xt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Wt="http://www.w3.org/1998/Math/MathML",hr="http://www.w3.org/2000/svg",dr="http://www.w3.org/1999/xhtml";let cr=dr,Te=!1,ae=null;const at=Wr({},[Wt,hr,dr],pm);let We=Wr({},["mi","mo","mn","ms","mtext"]),vt=Wr({},["annotation-xml"]);const _t=Wr({},["title","style","font","a","script"]);let Tt=null;const Ut=["application/xhtml+xml","text/html"],Ge="text/html";let st=null,ct=null;const xt=t.createElement("form"),Nt=function(xe){return xe instanceof RegExp||xe instanceof Function},Bt=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ct&&ct===xe)){if((!xe||typeof xe!="object")&&(xe={}),xe=Nl(xe),Tt=Ut.indexOf(xe.PARSER_MEDIA_TYPE)===-1?Ge:xe.PARSER_MEDIA_TYPE,st=Tt==="application/xhtml+xml"?pm:Hp,ie=aa(xe,"ALLOWED_TAGS")?Wr({},xe.ALLOWED_TAGS,st):fe,Se=aa(xe,"ALLOWED_ATTR")?Wr({},xe.ALLOWED_ATTR,st):Le,ae=aa(xe,"ALLOWED_NAMESPACES")?Wr({},xe.ALLOWED_NAMESPACES,pm):at,Dt=aa(xe,"ADD_URI_SAFE_ATTR")?Wr(Nl(Xt),xe.ADD_URI_SAFE_ATTR,st):Xt,It=aa(xe,"ADD_DATA_URI_TAGS")?Wr(Nl(Et),xe.ADD_DATA_URI_TAGS,st):Et,Qe=aa(xe,"FORBID_CONTENTS")?Wr({},xe.FORBID_CONTENTS,st):gt,ve=aa(xe,"FORBID_TAGS")?Wr({},xe.FORBID_TAGS,st):Nl({}),ke=aa(xe,"FORBID_ATTR")?Wr({},xe.FORBID_ATTR,st):Nl({}),Ne=aa(xe,"USE_PROFILES")?xe.USE_PROFILES:!1,Be=xe.ALLOW_ARIA_ATTR!==!1,De=xe.ALLOW_DATA_ATTR!==!1,we=xe.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=xe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ae=xe.SAFE_FOR_TEMPLATES||!1,$e=xe.SAFE_FOR_XML!==!1,je=xe.WHOLE_DOCUMENT||!1,rt=xe.RETURN_DOM||!1,lt=xe.RETURN_DOM_FRAGMENT||!1,bt=xe.RETURN_TRUSTED_TYPE||!1,qe=xe.FORCE_BODY||!1,Mt=xe.SANITIZE_DOM!==!1,Xe=xe.SANITIZE_NAMED_PROPS||!1,ht=xe.KEEP_CONTENT!==!1,ft=xe.IN_PLACE||!1,re=xe.ALLOWED_URI_REGEXP||EC,cr=xe.NAMESPACE||dr,We=xe.MATHML_TEXT_INTEGRATION_POINTS||We,vt=xe.HTML_INTEGRATION_POINTS||vt,ne=xe.CUSTOM_ELEMENT_HANDLING||{},xe.CUSTOM_ELEMENT_HANDLING&&Nt(xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ne.tagNameCheck=xe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&Nt(xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ne.attributeNameCheck=xe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),xe.CUSTOM_ELEMENT_HANDLING&&typeof xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ne.allowCustomizedBuiltInElements=xe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(De=!1),lt&&(rt=!0),Ne&&(ie=Wr({},O0),Se=[],Ne.html===!0&&(Wr(ie,D0),Wr(Se,N0)),Ne.svg===!0&&(Wr(ie,gm),Wr(Se,ym),Wr(Se,gp)),Ne.svgFilters===!0&&(Wr(ie,mm),Wr(Se,ym),Wr(Se,gp)),Ne.mathMl===!0&&(Wr(ie,vm),Wr(Se,P0),Wr(Se,gp))),xe.ADD_TAGS&&(ie===fe&&(ie=Nl(ie)),Wr(ie,xe.ADD_TAGS,st)),xe.ADD_ATTR&&(Se===Le&&(Se=Nl(Se)),Wr(Se,xe.ADD_ATTR,st)),xe.ADD_URI_SAFE_ATTR&&Wr(Dt,xe.ADD_URI_SAFE_ATTR,st),xe.FORBID_CONTENTS&&(Qe===gt&&(Qe=Nl(Qe)),Wr(Qe,xe.FORBID_CONTENTS,st)),ht&&(ie["#text"]=!0),je&&Wr(ie,["html","head","body"]),ie.table&&(Wr(ie,["tbody"]),delete ve.tbody),xe.TRUSTED_TYPES_POLICY){if(typeof xe.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof xe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=xe.TRUSTED_TYPES_POLICY,B=I.createHTML("")}else I===void 0&&(I=D9(v,o)),I!==null&&typeof B=="string"&&(B=I.createHTML(""));mi&&mi(xe),ct=xe}},qt=Wr({},[...gm,...mm,...C9]),Yt=Wr({},[...vm,...S9]),ir=function(xe){let ot=D(xe);(!ot||!ot.tagName)&&(ot={namespaceURI:cr,tagName:"template"});const yt=Hp(xe.tagName),yr=Hp(ot.tagName);return ae[xe.namespaceURI]?xe.namespaceURI===hr?ot.namespaceURI===dr?yt==="svg":ot.namespaceURI===Wt?yt==="svg"&&(yr==="annotation-xml"||We[yr]):!!qt[yt]:xe.namespaceURI===Wt?ot.namespaceURI===dr?yt==="math":ot.namespaceURI===hr?yt==="math"&&vt[yr]:!!Yt[yt]:xe.namespaceURI===dr?ot.namespaceURI===hr&&!vt[yr]||ot.namespaceURI===Wt&&!We[yr]?!1:!Yt[yt]&&(_t[yt]||!qt[yt]):!!(Tt==="application/xhtml+xml"&&ae[xe.namespaceURI]):!1},jt=function(xe){Zf(e.removed,{element:xe});try{D(xe).removeChild(xe)}catch{_(xe)}},xr=function(xe,ot){try{Zf(e.removed,{attribute:ot.getAttributeNode(xe),from:ot})}catch{Zf(e.removed,{attribute:null,from:ot})}if(ot.removeAttribute(xe),xe==="is")if(rt||lt)try{jt(ot)}catch{}else try{ot.setAttribute(xe,"")}catch{}},jr=function(xe){let ot=null,yt=null;if(qe)xe="<remove></remove>"+xe;else{const lr=L0(xe,/^[\r\n\t ]+/);yt=lr&&lr[0]}Tt==="application/xhtml+xml"&&cr===dr&&(xe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+xe+"</body></html>");const yr=I?I.createHTML(xe):xe;if(cr===dr)try{ot=new g().parseFromString(yr,Tt)}catch{}if(!ot||!ot.documentElement){ot=F.createDocument(cr,"template",null);try{ot.documentElement.innerHTML=Te?B:yr}catch{}}const Br=ot.body||ot.documentElement;return xe&&yt&&Br.insertBefore(t.createTextNode(yt),Br.childNodes[0]||null),cr===dr?G.call(ot,je?"html":"body")[0]:je?ot.documentElement:Br},Ze=function(xe){return j.call(xe.ownerDocument||xe,xe,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},ee=function(xe){return xe instanceof m&&(typeof xe.nodeName!="string"||typeof xe.textContent!="string"||typeof xe.removeChild!="function"||!(xe.attributes instanceof p)||typeof xe.removeAttribute!="function"||typeof xe.setAttribute!="function"||typeof xe.namespaceURI!="string"||typeof xe.insertBefore!="function"||typeof xe.hasChildNodes!="function")},be=function(xe){return typeof c=="function"&&xe instanceof c};function He(kt,xe,ot){pp(kt,yt=>{yt.call(e,xe,ot,ct)})}const At=function(xe){let ot=null;if(He(P.beforeSanitizeElements,xe,null),ee(xe))return jt(xe),!0;const yt=st(xe.nodeName);if(He(P.uponSanitizeElement,xe,{tagName:yt,allowedTags:ie}),$e&&xe.hasChildNodes()&&!be(xe.firstElementChild)&&hi(/<[/\w!]/g,xe.innerHTML)&&hi(/<[/\w!]/g,xe.textContent)||xe.nodeType===Qf.progressingInstruction||$e&&xe.nodeType===Qf.comment&&hi(/<[/\w]/g,xe.data))return jt(xe),!0;if(!ie[yt]||ve[yt]){if(!ve[yt]&&Ot(yt)&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,yt)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(yt)))return!1;if(ht&&!Qe[yt]){const yr=D(xe)||xe.parentNode,Br=R(xe)||xe.childNodes;if(Br&&yr){const lr=Br.length;for(let br=lr-1;br>=0;--br){const en=T(Br[br],!0);en.__removalCount=(xe.__removalCount||0)+1,yr.insertBefore(en,A(xe))}}}return jt(xe),!0}return xe instanceof d&&!ir(xe)||(yt==="noscript"||yt==="noembed"||yt==="noframes")&&hi(/<\/no(script|embed|frames)/i,xe.innerHTML)?(jt(xe),!0):(Ae&&xe.nodeType===Qf.text&&(ot=xe.textContent,pp([q,V,Q],yr=>{ot=Kf(ot,yr," ")}),xe.textContent!==ot&&(Zf(e.removed,{element:xe.cloneNode()}),xe.textContent=ot)),He(P.afterSanitizeElements,xe,null),!1)},Ft=function(xe,ot,yt){if(Mt&&(ot==="id"||ot==="name")&&(yt in t||yt in xt))return!1;if(!(De&&!ke[ot]&&hi(se,ot))){if(!(Be&&hi(ue,ot))){if(!Se[ot]||ke[ot]){if(!(Ot(xe)&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,xe)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(xe))&&(ne.attributeNameCheck instanceof RegExp&&hi(ne.attributeNameCheck,ot)||ne.attributeNameCheck instanceof Function&&ne.attributeNameCheck(ot))||ot==="is"&&ne.allowCustomizedBuiltInElements&&(ne.tagNameCheck instanceof RegExp&&hi(ne.tagNameCheck,yt)||ne.tagNameCheck instanceof Function&&ne.tagNameCheck(yt))))return!1}else if(!Dt[ot]){if(!hi(re,Kf(yt,le,""))){if(!((ot==="src"||ot==="xlink:href"||ot==="href")&&xe!=="script"&&y9(yt,"data:")===0&&It[xe])){if(!(we&&!hi(oe,Kf(yt,le,"")))){if(yt)return!1}}}}}}return!0},Ot=function(xe){return xe!=="annotation-xml"&&L0(xe,ge)},er=function(xe){He(P.beforeSanitizeAttributes,xe,null);const{attributes:ot}=xe;if(!ot||ee(xe))return;const yt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Se,forceKeepAttr:void 0};let yr=ot.length;for(;yr--;){const Br=ot[yr],{name:lr,namespaceURI:br,value:en}=Br,on=st(lr),Pn=en;let zr=lr==="value"?Pn:b9(Pn);if(yt.attrName=on,yt.attrValue=zr,yt.keepAttr=!0,yt.forceKeepAttr=void 0,He(P.uponSanitizeAttribute,xe,yt),zr=yt.attrValue,Xe&&(on==="id"||on==="name")&&(xr(lr,xe),zr=Je+zr),$e&&hi(/((--!?|])>)|<\/(style|title)/i,zr)){xr(lr,xe);continue}if(yt.forceKeepAttr)continue;if(!yt.keepAttr){xr(lr,xe);continue}if(!_e&&hi(/\/>/i,zr)){xr(lr,xe);continue}Ae&&pp([q,V,Q],kn=>{zr=Kf(zr,kn," ")});const tn=st(xe.nodeName);if(!Ft(tn,on,zr)){xr(lr,xe);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!br)switch(v.getAttributeType(tn,on)){case"TrustedHTML":{zr=I.createHTML(zr);break}case"TrustedScriptURL":{zr=I.createScriptURL(zr);break}}if(zr!==Pn)try{br?xe.setAttributeNS(br,lr,zr):xe.setAttribute(lr,zr),ee(xe)?jt(xe):M0(e.removed)}catch{xr(lr,xe)}}He(P.afterSanitizeAttributes,xe,null)},Qt=function kt(xe){let ot=null;const yt=Ze(xe);for(He(P.beforeSanitizeShadowDOM,xe,null);ot=yt.nextNode();)He(P.uponSanitizeShadowNode,ot,null),At(ot),er(ot),ot.content instanceof i&&kt(ot.content);He(P.afterSanitizeShadowDOM,xe,null)};return e.sanitize=function(kt){let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=null,yt=null,yr=null,Br=null;if(Te=!kt,Te&&(kt="<!-->"),typeof kt!="string"&&!be(kt))if(typeof kt.toString=="function"){if(kt=kt.toString(),typeof kt!="string")throw Xf("dirty is not a string, aborting")}else throw Xf("toString is not a function");if(!e.isSupported)return kt;if(et||Bt(xe),e.removed=[],typeof kt=="string"&&(ft=!1),ft){if(kt.nodeName){const en=st(kt.nodeName);if(!ie[en]||ve[en])throw Xf("root node is forbidden and cannot be sanitized in-place")}}else if(kt instanceof c)ot=jr("<!---->"),yt=ot.ownerDocument.importNode(kt,!0),yt.nodeType===Qf.element&&yt.nodeName==="BODY"||yt.nodeName==="HTML"?ot=yt:ot.appendChild(yt);else{if(!rt&&!Ae&&!je&&kt.indexOf("<")===-1)return I&&bt?I.createHTML(kt):kt;if(ot=jr(kt),!ot)return rt?null:bt?B:""}ot&&qe&&jt(ot.firstChild);const lr=Ze(ft?kt:ot);for(;yr=lr.nextNode();)At(yr),er(yr),yr.content instanceof i&&Qt(yr.content);if(ft)return kt;if(rt){if(lt)for(Br=H.call(ot.ownerDocument);ot.firstChild;)Br.appendChild(ot.firstChild);else Br=ot;return(Se.shadowroot||Se.shadowrootmode)&&(Br=pe.call(n,Br,!0)),Br}let br=je?ot.outerHTML:ot.innerHTML;return je&&ie["!doctype"]&&ot.ownerDocument&&ot.ownerDocument.doctype&&ot.ownerDocument.doctype.name&&hi(TC,ot.ownerDocument.doctype.name)&&(br="<!DOCTYPE "+ot.ownerDocument.doctype.name+`>
|
168
168
|
`+br),Ae&&pp([q,V,Q],en=>{br=Kf(br,en," ")}),I&&bt?I.createHTML(br):br},e.setConfig=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(kt),et=!0},e.clearConfig=function(){ct=null,et=!1},e.isValidAttribute=function(kt,xe,ot){ct||Bt({});const yt=st(kt),yr=st(xe);return Ft(yt,yr,ot)},e.addHook=function(kt,xe){typeof xe=="function"&&Zf(P[kt],xe)},e.removeHook=function(kt,xe){if(xe!==void 0){const ot=m9(P[kt],xe);return ot===-1?void 0:v9(P[kt],ot,1)[0]}return M0(P[kt])},e.removeHooks=function(kt){P[kt]=[]},e.removeAllHooks=function(){P=F0()},e}var O9=RC(),mp={exports:{}},bm,j0;function N9(){if(j0)return bm;j0=1;var r=-1,e=1,t=0;function n(P,q,V,Q,se){if(P===q)return P?[[t,P]]:[];if(V!=null){var ue=G(P,q,V);if(ue)return ue}var oe=c(P,q),le=P.substring(0,oe);P=P.substring(oe),q=q.substring(oe),oe=h(P,q);var ge=P.substring(P.length-oe);P=P.substring(0,P.length-oe),q=q.substring(0,q.length-oe);var re=o(P,q);return le&&re.unshift([t,le]),ge&&re.push([t,ge]),R(re,se),Q&&m(re),re}function o(P,q){var V;if(!P)return[[e,q]];if(!q)return[[r,P]];var Q=P.length>q.length?P:q,se=P.length>q.length?q:P,ue=Q.indexOf(se);if(ue!==-1)return V=[[e,Q.substring(0,ue)],[t,se],[e,Q.substring(ue+se.length)]],P.length>q.length&&(V[0][0]=V[2][0]=r),V;if(se.length===1)return[[r,P],[e,q]];var oe=p(P,q);if(oe){var le=oe[0],ge=oe[1],re=oe[2],ie=oe[3],fe=oe[4],Se=n(le,re),Le=n(ge,ie);return Se.concat([[t,fe]],Le)}return i(P,q)}function i(P,q){for(var V=P.length,Q=q.length,se=Math.ceil((V+Q)/2),ue=se,oe=2*se,le=new Array(oe),ge=new Array(oe),re=0;re<oe;re++)le[re]=-1,ge[re]=-1;le[ue+1]=0,ge[ue+1]=0;for(var ie=V-Q,fe=ie%2!==0,Se=0,Le=0,ne=0,ve=0,ke=0;ke<se;ke++){for(var Be=-ke+Se;Be<=ke-Le;Be+=2){var De=ue+Be,we;Be===-ke||Be!==ke&&le[De-1]<le[De+1]?we=le[De+1]:we=le[De-1]+1;for(var _e=we-Be;we<V&&_e<Q&&P.charAt(we)===q.charAt(_e);)we++,_e++;if(le[De]=we,we>V)Le+=2;else if(_e>Q)Se+=2;else if(fe){var Ae=ue+ie-Be;if(Ae>=0&&Ae<oe&&ge[Ae]!==-1){var $e=V-ge[Ae];if(we>=$e)return a(P,q,we,_e)}}}for(var je=-ke+ne;je<=ke-ve;je+=2){var Ae=ue+je,$e;je===-ke||je!==ke&&ge[Ae-1]<ge[Ae+1]?$e=ge[Ae+1]:$e=ge[Ae-1]+1;for(var et=$e-je;$e<V&&et<Q&&P.charAt(V-$e-1)===q.charAt(Q-et-1);)$e++,et++;if(ge[Ae]=$e,$e>V)ve+=2;else if(et>Q)ne+=2;else if(!fe){var De=ue+ie-je;if(De>=0&&De<oe&&le[De]!==-1){var we=le[De],_e=ue+we-De;if($e=V-$e,we>=$e)return a(P,q,we,_e)}}}}return[[r,P],[e,q]]}function a(P,q,V,Q){var se=P.substring(0,V),ue=q.substring(0,Q),oe=P.substring(V),le=q.substring(Q),ge=n(se,ue),re=n(oe,le);return ge.concat(re)}function c(P,q){if(!P||!q||P.charAt(0)!==q.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,q.length),se=Q,ue=0;V<se;)P.substring(ue,se)==q.substring(ue,se)?(V=se,ue=V):Q=se,se=Math.floor((Q-V)/2+V);return D(P.charCodeAt(se-1))&&se--,se}function d(P,q){var V=P.length,Q=q.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(q=q.substring(0,V));var se=Math.min(V,Q);if(P==q)return se;for(var ue=0,oe=1;;){var le=P.substring(se-oe),ge=q.indexOf(le);if(ge==-1)return ue;oe+=ge,(ge==0||P.substring(se-oe)==q.substring(0,oe))&&(ue=oe,oe++)}}function h(P,q){if(!P||!q||P.slice(-1)!==q.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,q.length),se=Q,ue=0;V<se;)P.substring(P.length-se,P.length-ue)==q.substring(q.length-se,q.length-ue)?(V=se,ue=V):Q=se,se=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-se))&&se--,se}function p(P,q){var V=P.length>q.length?P:q,Q=P.length>q.length?q:P;if(V.length<4||Q.length*2<V.length)return null;function se(Le,ne,ve){for(var ke=Le.substring(ve,ve+Math.floor(Le.length/4)),Be=-1,De="",we,_e,Ae,$e;(Be=ne.indexOf(ke,Be+1))!==-1;){var je=c(Le.substring(ve),ne.substring(Be)),et=h(Le.substring(0,ve),ne.substring(0,Be));De.length<et+je&&(De=ne.substring(Be-et,Be)+ne.substring(Be,Be+je),we=Le.substring(0,ve-et),_e=Le.substring(ve+je),Ae=ne.substring(0,Be-et),$e=ne.substring(Be+je))}return De.length*2>=Le.length?[we,_e,Ae,$e,De]:null}var ue=se(V,Q,Math.ceil(V.length/4)),oe=se(V,Q,Math.ceil(V.length/2)),le;if(!ue&&!oe)return null;oe?ue?le=ue[4].length>oe[4].length?ue:oe:le=oe:le=ue;var ge,re,ie,fe;P.length>q.length?(ge=le[0],re=le[1],ie=le[2],fe=le[3]):(ie=le[0],fe=le[1],ge=le[2],re=le[3]);var Se=le[4];return[ge,re,ie,fe,Se]}function m(P){for(var q=!1,V=[],Q=0,se=null,ue=0,oe=0,le=0,ge=0,re=0;ue<P.length;)P[ue][0]==t?(V[Q++]=ue,oe=ge,le=re,ge=0,re=0,se=P[ue][1]):(P[ue][0]==e?ge+=P[ue][1].length:re+=P[ue][1].length,se&&se.length<=Math.max(oe,le)&&se.length<=Math.max(ge,re)&&(P.splice(V[Q-1],0,[r,se]),P[V[Q-1]+1][0]=e,Q--,Q--,ue=Q>0?V[Q-1]:-1,oe=0,le=0,ge=0,re=0,se=null,q=!0)),ue++;for(q&&R(P),A(P),ue=1;ue<P.length;){if(P[ue-1][0]==r&&P[ue][0]==e){var ie=P[ue-1][1],fe=P[ue][1],Se=d(ie,fe),Le=d(fe,ie);Se>=Le?(Se>=ie.length/2||Se>=fe.length/2)&&(P.splice(ue,0,[t,fe.substring(0,Se)]),P[ue-1][1]=ie.substring(0,ie.length-Se),P[ue+1][1]=fe.substring(Se),ue++):(Le>=ie.length/2||Le>=fe.length/2)&&(P.splice(ue,0,[t,ie.substring(0,Le)]),P[ue-1][0]=e,P[ue-1][1]=fe.substring(0,fe.length-Le),P[ue+1][0]=r,P[ue+1][1]=ie.substring(Le),ue++),ue++}ue++}}var g=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,_=/^\r?\n\r?\n/;function A(P){function q(Le,ne){if(!Le||!ne)return 6;var ve=Le.charAt(Le.length-1),ke=ne.charAt(0),Be=ve.match(g),De=ke.match(g),we=Be&&ve.match(v),_e=De&&ke.match(v),Ae=we&&ve.match(w),$e=_e&&ke.match(w),je=Ae&&Le.match(T),et=$e&&ne.match(_);return je||et?5:Ae||$e?4:Be&&!we&&_e?3:we||_e?2:Be||De?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],se=P[V][1],ue=P[V+1][1],oe=h(Q,se);if(oe){var le=se.substring(se.length-oe);Q=Q.substring(0,Q.length-oe),se=le+se.substring(0,se.length-oe),ue=le+ue}for(var ge=Q,re=se,ie=ue,fe=q(Q,se)+q(se,ue);se.charAt(0)===ue.charAt(0);){Q+=se.charAt(0),se=se.substring(1)+ue.charAt(0),ue=ue.substring(1);var Se=q(Q,se)+q(se,ue);Se>=fe&&(fe=Se,ge=Q,re=se,ie=ue)}P[V-1][1]!=ge&&(ge?P[V-1][1]=ge:(P.splice(V-1,1),V--),P[V][1]=re,ie?P[V+1][1]=ie:(P.splice(V+1,1),V--))}V++}}function R(P,q){P.push([t,""]);for(var V=0,Q=0,se=0,ue="",oe="",le;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:se++,oe+=P[V][1],V++;break;case r:Q++,ue+=P[V][1],V++;break;case t:var ge=V-se-Q-1;if(q){if(ge>=0&&F(P[ge][1])){var re=P[ge][1].slice(-1);if(P[ge][1]=P[ge][1].slice(0,-1),ue=re+ue,oe=re+oe,!P[ge][1]){P.splice(ge,1),V--;var ie=ge-1;P[ie]&&P[ie][0]===e&&(se++,oe=P[ie][1]+oe,ie--),P[ie]&&P[ie][0]===r&&(Q++,ue=P[ie][1]+ue,ie--),ge=ie}}if(B(P[V][1])){var re=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),ue+=re,oe+=re}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(ue.length>0||oe.length>0){ue.length>0&&oe.length>0&&(le=c(oe,ue),le!==0&&(ge>=0?P[ge][1]+=oe.substring(0,le):(P.splice(0,0,[t,oe.substring(0,le)]),V++),oe=oe.substring(le),ue=ue.substring(le)),le=h(oe,ue),le!==0&&(P[V][1]=oe.substring(oe.length-le)+P[V][1],oe=oe.substring(0,oe.length-le),ue=ue.substring(0,ue.length-le)));var fe=se+Q;ue.length===0&&oe.length===0?(P.splice(V-fe,fe),V=V-fe):ue.length===0?(P.splice(V-fe,fe,[e,oe]),V=V-fe+1):oe.length===0?(P.splice(V-fe,fe,[r,ue]),V=V-fe+1):(P.splice(V-fe,fe,[r,ue],[e,oe]),V=V-fe+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,se=0,Q=0,ue="",oe="";break}}P[P.length-1][1]===""&&P.pop();var Se=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),Se=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),Se=!0)),V++;Se&&R(P,q)}function D(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function B(P){return I(P.charCodeAt(0))}function F(P){return D(P.charCodeAt(P.length-1))}function j(P){for(var q=[],V=0;V<P.length;V++)P[V][1].length>0&&q.push(P[V]);return q}function H(P,q,V,Q){return F(P)||B(Q)?null:j([[t,P],[r,q],[e,V],[t,Q]])}function G(P,q,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,se=typeof V=="number"?null:V.newRange,ue=P.length,oe=q.length;if(Q.length===0&&(se===null||se.length===0)){var le=Q.index,ge=P.slice(0,le),re=P.slice(le),ie=se?se.index:null;e:{var fe=le+oe-ue;if(ie!==null&&ie!==fe||fe<0||fe>oe)break e;var Se=q.slice(0,fe),Le=q.slice(fe);if(Le!==re)break e;var ne=Math.min(le,fe),ve=ge.slice(0,ne),ke=Se.slice(0,ne);if(ve!==ke)break e;var Be=ge.slice(ne),De=Se.slice(ne);return H(ve,Be,De,re)}e:{if(ie!==null&&ie!==le)break e;var we=le,Se=q.slice(0,we),Le=q.slice(we);if(Se!==ge)break e;var _e=Math.min(ue-we,oe-we),Ae=re.slice(re.length-_e),$e=Le.slice(Le.length-_e);if(Ae!==$e)break e;var Be=re.slice(0,re.length-_e),De=Le.slice(0,Le.length-_e);return H(ge,Be,De,Ae)}}if(Q.length>0&&se&&se.length===0)e:{var ve=P.slice(0,Q.index),Ae=P.slice(Q.index+Q.length),ne=ve.length,_e=Ae.length;if(oe<ne+_e)break e;var ke=q.slice(0,ne),$e=q.slice(oe-_e);if(ve!==ke||Ae!==$e)break e;var Be=P.slice(ne,ue-_e),De=q.slice(ne,oe-_e);return H(ve,Be,De,Ae)}return null}function pe(P,q,V,Q){return n(P,q,V,Q,!0)}return pe.INSERT=e,pe.DELETE=r,pe.EQUAL=t,bm=pe,bm}var uh={exports:{}};uh.exports;var H0;function kC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",_="[object RegExp]",A="[object Set]",R="[object String]",D="[object Symbol]",I="[object WeakMap]",B="[object ArrayBuffer]",F="[object DataView]",j="[object Float32Array]",H="[object Float64Array]",G="[object Int8Array]",pe="[object Int16Array]",P="[object Int32Array]",q="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",se="[object Uint32Array]",ue=/[\\^$.*+?()[\]{}|]/g,oe=/\w*$/,le=/^\[object .+?Constructor\]$/,ge=/^(?:0|[1-9]\d*)$/,re={};re[i]=re[a]=re[B]=re[F]=re[c]=re[d]=re[j]=re[H]=re[G]=re[pe]=re[P]=re[g]=re[v]=re[w]=re[_]=re[A]=re[R]=re[D]=re[q]=re[V]=re[Q]=re[se]=!0,re[h]=re[p]=re[I]=!1;var ie=typeof Di=="object"&&Di&&Di.Object===Object&&Di,fe=typeof self=="object"&&self&&self.Object===Object&&self,Se=ie||fe||Function("return this")(),Le=e&&!e.nodeType&&e,ne=Le&&!0&&r&&!r.nodeType&&r,ve=ne&&ne.exports===Le;function ke(O,J){return O.set(J[0],J[1]),O}function Be(O,J){return O.add(J),O}function De(O,J){for(var Ce=-1,nt=O?O.length:0;++Ce<nt&&J(O[Ce],Ce,O)!==!1;);return O}function we(O,J){for(var Ce=-1,nt=J.length,or=O.length;++Ce<nt;)O[or+Ce]=J[Ce];return O}function _e(O,J,Ce,nt){for(var or=-1,Kt=O?O.length:0;++or<Kt;)Ce=J(Ce,O[or],or,O);return Ce}function Ae(O,J){for(var Ce=-1,nt=Array(O);++Ce<O;)nt[Ce]=J(Ce);return nt}function $e(O,J){return O==null?void 0:O[J]}function je(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function et(O){var J=-1,Ce=Array(O.size);return O.forEach(function(nt,or){Ce[++J]=[or,nt]}),Ce}function qe(O,J){return function(Ce){return O(J(Ce))}}function rt(O){var J=-1,Ce=Array(O.size);return O.forEach(function(nt){Ce[++J]=nt}),Ce}var lt=Array.prototype,bt=Function.prototype,Mt=Object.prototype,Xe=Se["__core-js_shared__"],Je=function(){var O=/[^.]+$/.exec(Xe&&Xe.keys&&Xe.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ht=bt.toString,ft=Mt.hasOwnProperty,Ne=Mt.toString,Qe=RegExp("^"+ht.call(ft).replace(ue,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gt=ve?Se.Buffer:void 0,It=Se.Symbol,Et=Se.Uint8Array,Dt=qe(Object.getPrototypeOf,Object),Xt=Object.create,Wt=Mt.propertyIsEnumerable,hr=lt.splice,dr=Object.getOwnPropertySymbols,cr=gt?gt.isBuffer:void 0,Te=qe(Object.keys,Object),ae=Ht(Se,"DataView"),at=Ht(Se,"Map"),We=Ht(Se,"Promise"),vt=Ht(Se,"Set"),_t=Ht(Se,"WeakMap"),Tt=Ht(Object,"create"),Ut=dn(ae),Ge=dn(at),st=dn(We),ct=dn(vt),xt=dn(_t),Nt=It?It.prototype:void 0,Bt=Nt?Nt.valueOf:void 0;function qt(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var nt=O[J];this.set(nt[0],nt[1])}}function Yt(){this.__data__=Tt?Tt(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function jt(O){var J=this.__data__;if(Tt){var Ce=J[O];return Ce===n?void 0:Ce}return ft.call(J,O)?J[O]:void 0}function xr(O){var J=this.__data__;return Tt?J[O]!==void 0:ft.call(J,O)}function jr(O,J){var Ce=this.__data__;return Ce[O]=Tt&&J===void 0?n:J,this}qt.prototype.clear=Yt,qt.prototype.delete=ir,qt.prototype.get=jt,qt.prototype.has=xr,qt.prototype.set=jr;function Ze(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var nt=O[J];this.set(nt[0],nt[1])}}function ee(){this.__data__=[]}function be(O){var J=this.__data__,Ce=zr(J,O);if(Ce<0)return!1;var nt=J.length-1;return Ce==nt?J.pop():hr.call(J,Ce,1),!0}function He(O){var J=this.__data__,Ce=zr(J,O);return Ce<0?void 0:J[Ce][1]}function At(O){return zr(this.__data__,O)>-1}function Ft(O,J){var Ce=this.__data__,nt=zr(Ce,O);return nt<0?Ce.push([O,J]):Ce[nt][1]=J,this}Ze.prototype.clear=ee,Ze.prototype.delete=be,Ze.prototype.get=He,Ze.prototype.has=At,Ze.prototype.set=Ft;function Ot(O){var J=-1,Ce=O?O.length:0;for(this.clear();++J<Ce;){var nt=O[J];this.set(nt[0],nt[1])}}function er(){this.__data__={hash:new qt,map:new(at||Ze),string:new qt}}function Qt(O){return St(this,O).delete(O)}function kt(O){return St(this,O).get(O)}function xe(O){return St(this,O).has(O)}function ot(O,J){return St(this,O).set(O,J),this}Ot.prototype.clear=er,Ot.prototype.delete=Qt,Ot.prototype.get=kt,Ot.prototype.has=xe,Ot.prototype.set=ot;function yt(O){this.__data__=new Ze(O)}function yr(){this.__data__=new Ze}function Br(O){return this.__data__.delete(O)}function lr(O){return this.__data__.get(O)}function br(O){return this.__data__.has(O)}function en(O,J){var Ce=this.__data__;if(Ce instanceof Ze){var nt=Ce.__data__;if(!at||nt.length<t-1)return nt.push([O,J]),this;Ce=this.__data__=new Ot(nt)}return Ce.set(O,J),this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=en;function on(O,J){var Ce=Pi(O)||io(O)?Ae(O.length,String):[],nt=Ce.length,or=!!nt;for(var Kt in O)ft.call(O,Kt)&&!(or&&(Kt=="length"||Mn(Kt,nt)))&&Ce.push(Kt);return Ce}function Pn(O,J,Ce){var nt=O[J];(!(ft.call(O,J)&&Kn(nt,Ce))||Ce===void 0&&!(J in O))&&(O[J]=Ce)}function zr(O,J){for(var Ce=O.length;Ce--;)if(Kn(O[Ce][0],J))return Ce;return-1}function tn(O,J){return O&&Ue(J,Hr(J),O)}function kn(O,J,Ce,nt,or,Kt,_r){var kr;if(nt&&(kr=Kt?nt(O,or,Kt,_r):nt(O)),kr!==void 0)return kr;if(!ao(O))return O;var Cr=Pi(O);if(Cr){if(kr=Rr(O),!J)return ce(O,kr)}else{var Mr=Vt(O),fn=Mr==p||Mr==m;if(zn(O))return Fn(O,J);if(Mr==w||Mr==i||fn&&!Kt){if(je(O))return Kt?O:{};if(kr=sn(fn?{}:O),!J)return Pe(O,tn(kr,O))}else{if(!re[Mr])return Kt?O:{};kr=In(O,Mr,kn,J)}}_r||(_r=new yt);var $n=_r.get(O);if($n)return $n;if(_r.set(O,kr),!Cr)var rn=Ce?tt(O):Hr(O);return De(rn||O,function(Vr,hn){rn&&(hn=Vr,Vr=O[hn]),Pn(kr,hn,kn(Vr,J,Ce,nt,hn,O,_r))}),kr}function Bn(O){return ao(O)?Xt(O):{}}function _o(O,J,Ce){var nt=J(O);return Pi(O)?nt:we(nt,Ce(O))}function Do(O){return Ne.call(O)}function Oo(O){if(!ao(O)||Zn(O))return!1;var J=Bi(O)||je(O)?Qe:le;return J.test(dn(O))}function Hn(O){if(!No(O))return Te(O);var J=[];for(var Ce in Object(O))ft.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function Fn(O,J){if(J)return O.slice();var Ce=new O.constructor(O.length);return O.copy(Ce),Ce}function Cn(O){var J=new O.constructor(O.byteLength);return new Et(J).set(new Et(O)),J}function oo(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.byteLength)}function mn(O,J,Ce){var nt=J?Ce(et(O),!0):et(O);return _e(nt,ke,new O.constructor)}function _n(O){var J=new O.constructor(O.source,oe.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,Ce){var nt=J?Ce(rt(O),!0):rt(O);return _e(nt,Be,new O.constructor)}function $(O){return Bt?Object(Bt.call(O)):{}}function X(O,J){var Ce=J?Cn(O.buffer):O.buffer;return new O.constructor(Ce,O.byteOffset,O.length)}function ce(O,J){var Ce=-1,nt=O.length;for(J||(J=Array(nt));++Ce<nt;)J[Ce]=O[Ce];return J}function Ue(O,J,Ce,nt){Ce||(Ce={});for(var or=-1,Kt=J.length;++or<Kt;){var _r=J[or],kr=void 0;Pn(Ce,_r,kr===void 0?O[_r]:kr)}return Ce}function Pe(O,J){return Ue(O,Gt(O),J)}function tt(O){return _o(O,Hr,Gt)}function St(O,J){var Ce=O.__data__;return ho(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Ht(O,J){var Ce=$e(O,J);return Oo(Ce)?Ce:void 0}var Gt=dr?qe(dr,Object):Ir,Vt=Do;(ae&&Vt(new ae(new ArrayBuffer(1)))!=F||at&&Vt(new at)!=g||We&&Vt(We.resolve())!=T||vt&&Vt(new vt)!=A||_t&&Vt(new _t)!=I)&&(Vt=function(O){var J=Ne.call(O),Ce=J==w?O.constructor:void 0,nt=Ce?dn(Ce):void 0;if(nt)switch(nt){case Ut:return F;case Ge:return g;case st:return T;case ct:return A;case xt:return I}return J});function Rr(O){var J=O.length,Ce=O.constructor(J);return J&&typeof O[0]=="string"&&ft.call(O,"index")&&(Ce.index=O.index,Ce.input=O.input),Ce}function sn(O){return typeof O.constructor=="function"&&!No(O)?Bn(Dt(O)):{}}function In(O,J,Ce,nt){var or=O.constructor;switch(J){case B:return Cn(O);case c:case d:return new or(+O);case F:return oo(O,nt);case j:case H:case G:case pe:case P:case q:case V:case Q:case se:return X(O,nt);case g:return mn(O,nt,Ce);case v:case R:return new or(O);case _:return _n(O);case A:return k(O,nt,Ce);case D:return $(O)}}function Mn(O,J){return J=J??o,!!J&&(typeof O=="number"||ge.test(O))&&O>-1&&O%1==0&&O<J}function ho(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Zn(O){return!!Je&&Je in O}function No(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||Mt;return O===Ce}function dn(O){if(O!=null){try{return ht.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O){return kn(O,!0,!0)}function Kn(O,J){return O===J||O!==O&&J!==J}function io(O){return bi(O)&&ft.call(O,"callee")&&(!Wt.call(O,"callee")||Ne.call(O)==i)}var Pi=Array.isArray;function yi(O){return O!=null&&so(O.length)&&!Bi(O)}function bi(O){return ti(O)&&yi(O)}var zn=cr||Fr;function Bi(O){var J=ao(O)?Ne.call(O):"";return J==p||J==m}function so(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function ao(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function ti(O){return!!O&&typeof O=="object"}function Hr(O){return yi(O)?on(O):Hn(O)}function Ir(){return[]}function Fr(){return!1}r.exports=Ao}(uh,uh.exports)),uh.exports}var dh={exports:{}};dh.exports;var z0;function IC(){return z0||(z0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",_="[object Number]",A="[object Null]",R="[object Object]",D="[object Promise]",I="[object Proxy]",B="[object RegExp]",F="[object Set]",j="[object String]",H="[object Symbol]",G="[object Undefined]",pe="[object WeakMap]",P="[object ArrayBuffer]",q="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",ue="[object Int16Array]",oe="[object Int32Array]",le="[object Uint8Array]",ge="[object Uint8ClampedArray]",re="[object Uint16Array]",ie="[object Uint32Array]",fe=/[\\^$.*+?()[\]{}|]/g,Se=/^\[object .+?Constructor\]$/,Le=/^(?:0|[1-9]\d*)$/,ne={};ne[V]=ne[Q]=ne[se]=ne[ue]=ne[oe]=ne[le]=ne[ge]=ne[re]=ne[ie]=!0,ne[c]=ne[d]=ne[P]=ne[p]=ne[q]=ne[m]=ne[g]=ne[v]=ne[T]=ne[_]=ne[R]=ne[B]=ne[F]=ne[j]=ne[pe]=!1;var ve=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ke=typeof self=="object"&&self&&self.Object===Object&&self,Be=ve||ke||Function("return this")(),De=e&&!e.nodeType&&e,we=De&&!0&&r&&!r.nodeType&&r,_e=we&&we.exports===De,Ae=_e&&ve.process,$e=function(){try{return Ae&&Ae.binding&&Ae.binding("util")}catch{}}(),je=$e&&$e.isTypedArray;function et(O,J){for(var Ce=-1,nt=O==null?0:O.length,or=0,Kt=[];++Ce<nt;){var _r=O[Ce];J(_r,Ce,O)&&(Kt[or++]=_r)}return Kt}function qe(O,J){for(var Ce=-1,nt=J.length,or=O.length;++Ce<nt;)O[or+Ce]=J[Ce];return O}function rt(O,J){for(var Ce=-1,nt=O==null?0:O.length;++Ce<nt;)if(J(O[Ce],Ce,O))return!0;return!1}function lt(O,J){for(var Ce=-1,nt=Array(O);++Ce<O;)nt[Ce]=J(Ce);return nt}function bt(O){return function(J){return O(J)}}function Mt(O,J){return O.has(J)}function Xe(O,J){return O==null?void 0:O[J]}function Je(O){var J=-1,Ce=Array(O.size);return O.forEach(function(nt,or){Ce[++J]=[or,nt]}),Ce}function ht(O,J){return function(Ce){return O(J(Ce))}}function ft(O){var J=-1,Ce=Array(O.size);return O.forEach(function(nt){Ce[++J]=nt}),Ce}var Ne=Array.prototype,Qe=Function.prototype,gt=Object.prototype,It=Be["__core-js_shared__"],Et=Qe.toString,Dt=gt.hasOwnProperty,Xt=function(){var O=/[^.]+$/.exec(It&&It.keys&&It.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),Wt=gt.toString,hr=RegExp("^"+Et.call(Dt).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),dr=_e?Be.Buffer:void 0,cr=Be.Symbol,Te=Be.Uint8Array,ae=gt.propertyIsEnumerable,at=Ne.splice,We=cr?cr.toStringTag:void 0,vt=Object.getOwnPropertySymbols,_t=dr?dr.isBuffer:void 0,Tt=ht(Object.keys,Object),Ut=Gt(Be,"DataView"),Ge=Gt(Be,"Map"),st=Gt(Be,"Promise"),ct=Gt(Be,"Set"),xt=Gt(Be,"WeakMap"),Nt=Gt(Object,"create"),Bt=dn(Ut),qt=dn(Ge),Yt=dn(st),ir=dn(ct),jt=dn(xt),xr=cr?cr.prototype:void 0,jr=xr?xr.valueOf:void 0;function Ze(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var nt=O[J];this.set(nt[0],nt[1])}}function ee(){this.__data__=Nt?Nt(null):{},this.size=0}function be(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function He(O){var J=this.__data__;if(Nt){var Ce=J[O];return Ce===n?void 0:Ce}return Dt.call(J,O)?J[O]:void 0}function At(O){var J=this.__data__;return Nt?J[O]!==void 0:Dt.call(J,O)}function Ft(O,J){var Ce=this.__data__;return this.size+=this.has(O)?0:1,Ce[O]=Nt&&J===void 0?n:J,this}Ze.prototype.clear=ee,Ze.prototype.delete=be,Ze.prototype.get=He,Ze.prototype.has=At,Ze.prototype.set=Ft;function Ot(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var nt=O[J];this.set(nt[0],nt[1])}}function er(){this.__data__=[],this.size=0}function Qt(O){var J=this.__data__,Ce=Fn(J,O);if(Ce<0)return!1;var nt=J.length-1;return Ce==nt?J.pop():at.call(J,Ce,1),--this.size,!0}function kt(O){var J=this.__data__,Ce=Fn(J,O);return Ce<0?void 0:J[Ce][1]}function xe(O){return Fn(this.__data__,O)>-1}function ot(O,J){var Ce=this.__data__,nt=Fn(Ce,O);return nt<0?(++this.size,Ce.push([O,J])):Ce[nt][1]=J,this}Ot.prototype.clear=er,Ot.prototype.delete=Qt,Ot.prototype.get=kt,Ot.prototype.has=xe,Ot.prototype.set=ot;function yt(O){var J=-1,Ce=O==null?0:O.length;for(this.clear();++J<Ce;){var nt=O[J];this.set(nt[0],nt[1])}}function yr(){this.size=0,this.__data__={hash:new Ze,map:new(Ge||Ot),string:new Ze}}function Br(O){var J=Ht(this,O).delete(O);return this.size-=J?1:0,J}function lr(O){return Ht(this,O).get(O)}function br(O){return Ht(this,O).has(O)}function en(O,J){var Ce=Ht(this,O),nt=Ce.size;return Ce.set(O,J),this.size+=Ce.size==nt?0:1,this}yt.prototype.clear=yr,yt.prototype.delete=Br,yt.prototype.get=lr,yt.prototype.has=br,yt.prototype.set=en;function on(O){var J=-1,Ce=O==null?0:O.length;for(this.__data__=new yt;++J<Ce;)this.add(O[J])}function Pn(O){return this.__data__.set(O,n),this}function zr(O){return this.__data__.has(O)}on.prototype.add=on.prototype.push=Pn,on.prototype.has=zr;function tn(O){var J=this.__data__=new Ot(O);this.size=J.size}function kn(){this.__data__=new Ot,this.size=0}function Bn(O){var J=this.__data__,Ce=J.delete(O);return this.size=J.size,Ce}function _o(O){return this.__data__.get(O)}function Do(O){return this.__data__.has(O)}function Oo(O,J){var Ce=this.__data__;if(Ce instanceof Ot){var nt=Ce.__data__;if(!Ge||nt.length<t-1)return nt.push([O,J]),this.size=++Ce.size,this;Ce=this.__data__=new yt(nt)}return Ce.set(O,J),this.size=Ce.size,this}tn.prototype.clear=kn,tn.prototype.delete=Bn,tn.prototype.get=_o,tn.prototype.has=Do,tn.prototype.set=Oo;function Hn(O,J){var Ce=io(O),nt=!Ce&&Kn(O),or=!Ce&&!nt&&yi(O),Kt=!Ce&&!nt&&!or&&ti(O),_r=Ce||nt||or||Kt,kr=_r?lt(O.length,String):[],Cr=kr.length;for(var Mr in O)Dt.call(O,Mr)&&!(_r&&(Mr=="length"||or&&(Mr=="offset"||Mr=="parent")||Kt&&(Mr=="buffer"||Mr=="byteLength"||Mr=="byteOffset")||In(Mr,Cr)))&&kr.push(Mr);return kr}function Fn(O,J){for(var Ce=O.length;Ce--;)if(Ao(O[Ce][0],J))return Ce;return-1}function Cn(O,J,Ce){var nt=J(O);return io(O)?nt:qe(nt,Ce(O))}function oo(O){return O==null?O===void 0?G:A:We&&We in Object(O)?Vt(O):No(O)}function mn(O){return ao(O)&&oo(O)==c}function _n(O,J,Ce,nt,or){return O===J?!0:O==null||J==null||!ao(O)&&!ao(J)?O!==O&&J!==J:k(O,J,Ce,nt,_n,or)}function k(O,J,Ce,nt,or,Kt){var _r=io(O),kr=io(J),Cr=_r?d:sn(O),Mr=kr?d:sn(J);Cr=Cr==c?R:Cr,Mr=Mr==c?R:Mr;var fn=Cr==R,$n=Mr==R,rn=Cr==Mr;if(rn&&yi(O)){if(!yi(J))return!1;_r=!0,fn=!1}if(rn&&!fn)return Kt||(Kt=new tn),_r||ti(O)?Ue(O,J,Ce,nt,or,Kt):Pe(O,J,Cr,Ce,nt,or,Kt);if(!(Ce&o)){var Vr=fn&&Dt.call(O,"__wrapped__"),hn=$n&&Dt.call(J,"__wrapped__");if(Vr||hn){var po=Vr?O.value():O,Eo=hn?J.value():J;return Kt||(Kt=new tn),or(po,Eo,Ce,nt,Kt)}}return rn?(Kt||(Kt=new tn),tt(O,J,Ce,nt,or,Kt)):!1}function $(O){if(!so(O)||ho(O))return!1;var J=zn(O)?hr:Se;return J.test(dn(O))}function X(O){return ao(O)&&Bi(O.length)&&!!ne[oo(O)]}function ce(O){if(!Zn(O))return Tt(O);var J=[];for(var Ce in Object(O))Dt.call(O,Ce)&&Ce!="constructor"&&J.push(Ce);return J}function Ue(O,J,Ce,nt,or,Kt){var _r=Ce&o,kr=O.length,Cr=J.length;if(kr!=Cr&&!(_r&&Cr>kr))return!1;var Mr=Kt.get(O);if(Mr&&Kt.get(J))return Mr==J;var fn=-1,$n=!0,rn=Ce&i?new on:void 0;for(Kt.set(O,J),Kt.set(J,O);++fn<kr;){var Vr=O[fn],hn=J[fn];if(nt)var po=_r?nt(hn,Vr,fn,J,O,Kt):nt(Vr,hn,fn,O,J,Kt);if(po!==void 0){if(po)continue;$n=!1;break}if(rn){if(!rt(J,function(Eo,Xn){if(!Mt(rn,Xn)&&(Vr===Eo||or(Vr,Eo,Ce,nt,Kt)))return rn.push(Xn)})){$n=!1;break}}else if(!(Vr===hn||or(Vr,hn,Ce,nt,Kt))){$n=!1;break}}return Kt.delete(O),Kt.delete(J),$n}function Pe(O,J,Ce,nt,or,Kt,_r){switch(Ce){case q:if(O.byteLength!=J.byteLength||O.byteOffset!=J.byteOffset)return!1;O=O.buffer,J=J.buffer;case P:return!(O.byteLength!=J.byteLength||!Kt(new Te(O),new Te(J)));case p:case m:case _:return Ao(+O,+J);case g:return O.name==J.name&&O.message==J.message;case B:case j:return O==J+"";case T:var kr=Je;case F:var Cr=nt&o;if(kr||(kr=ft),O.size!=J.size&&!Cr)return!1;var Mr=_r.get(O);if(Mr)return Mr==J;nt|=i,_r.set(O,J);var fn=Ue(kr(O),kr(J),nt,or,Kt,_r);return _r.delete(O),fn;case H:if(jr)return jr.call(O)==jr.call(J)}return!1}function tt(O,J,Ce,nt,or,Kt){var _r=Ce&o,kr=St(O),Cr=kr.length,Mr=St(J),fn=Mr.length;if(Cr!=fn&&!_r)return!1;for(var $n=Cr;$n--;){var rn=kr[$n];if(!(_r?rn in J:Dt.call(J,rn)))return!1}var Vr=Kt.get(O);if(Vr&&Kt.get(J))return Vr==J;var hn=!0;Kt.set(O,J),Kt.set(J,O);for(var po=_r;++$n<Cr;){rn=kr[$n];var Eo=O[rn],Xn=J[rn];if(nt)var Fi=_r?nt(Xn,Eo,rn,J,O,Kt):nt(Eo,Xn,rn,O,J,Kt);if(!(Fi===void 0?Eo===Xn||or(Eo,Xn,Ce,nt,Kt):Fi)){hn=!1;break}po||(po=rn=="constructor")}if(hn&&!po){var ri=O.constructor,vn=J.constructor;ri!=vn&&"constructor"in O&&"constructor"in J&&!(typeof ri=="function"&&ri instanceof ri&&typeof vn=="function"&&vn instanceof vn)&&(hn=!1)}return Kt.delete(O),Kt.delete(J),hn}function St(O){return Cn(O,Hr,Rr)}function Ht(O,J){var Ce=O.__data__;return Mn(J)?Ce[typeof J=="string"?"string":"hash"]:Ce.map}function Gt(O,J){var Ce=Xe(O,J);return $(Ce)?Ce:void 0}function Vt(O){var J=Dt.call(O,We),Ce=O[We];try{O[We]=void 0;var nt=!0}catch{}var or=Wt.call(O);return nt&&(J?O[We]=Ce:delete O[We]),or}var Rr=vt?function(O){return O==null?[]:(O=Object(O),et(vt(O),function(J){return ae.call(O,J)}))}:Ir,sn=oo;(Ut&&sn(new Ut(new ArrayBuffer(1)))!=q||Ge&&sn(new Ge)!=T||st&&sn(st.resolve())!=D||ct&&sn(new ct)!=F||xt&&sn(new xt)!=pe)&&(sn=function(O){var J=oo(O),Ce=J==R?O.constructor:void 0,nt=Ce?dn(Ce):"";if(nt)switch(nt){case Bt:return q;case qt:return T;case Yt:return D;case ir:return F;case jt:return pe}return J});function In(O,J){return J=J??a,!!J&&(typeof O=="number"||Le.test(O))&&O>-1&&O%1==0&&O<J}function Mn(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function ho(O){return!!Xt&&Xt in O}function Zn(O){var J=O&&O.constructor,Ce=typeof J=="function"&&J.prototype||gt;return O===Ce}function No(O){return Wt.call(O)}function dn(O){if(O!=null){try{return Et.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O,J){return O===J||O!==O&&J!==J}var Kn=mn(function(){return arguments}())?mn:function(O){return ao(O)&&Dt.call(O,"callee")&&!ae.call(O,"callee")},io=Array.isArray;function Pi(O){return O!=null&&Bi(O.length)&&!zn(O)}var yi=_t||Fr;function bi(O,J){return _n(O,J)}function zn(O){if(!so(O))return!1;var J=oo(O);return J==v||J==w||J==h||J==I}function Bi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function so(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function ao(O){return O!=null&&typeof O=="object"}var ti=je?bt(je):X;function Hr(O){return Pi(O)?Hn(O):ce(O)}function Ir(){return[]}function Fr(){return!1}r.exports=bi}(dh,dh.exports)),dh.exports}var vp={},$0;function P9(){if($0)return vp;$0=1,Object.defineProperty(vp,"__esModule",{value:!0});const r=kC(),e=IC();var t;return function(n){function o(d={},h={},p=!1){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});let m=r(h);p||(m=Object.keys(m).reduce((g,v)=>(m[v]!=null&&(g[v]=m[v]),g),{}));for(const g in d)d[g]!==void 0&&h[g]===void 0&&(m[g]=d[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(d={},h={}){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});const p=Object.keys(d).concat(Object.keys(h)).reduce((m,g)=>(e(d[g],h[g])||(m[g]=h[g]===void 0?null:h[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(d={},h={}){d=d||{};const p=Object.keys(h).reduce((m,g)=>(h[g]!==d[g]&&d[g]!==void 0&&(m[g]=h[g]),m),{});return Object.keys(d).reduce((m,g)=>(d[g]!==h[g]&&h[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(d,h,p=!1){if(typeof d!="object")return h;if(typeof h!="object")return;if(!p)return h;const m=Object.keys(h).reduce((g,v)=>(d[v]===void 0&&(g[v]=h[v]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),vp.default=t,vp}var yp={},U0;function MC(){if(U0)return yp;U0=1,Object.defineProperty(yp,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),yp.default=r,yp}var bp={},q0;function B9(){if(q0)return bp;q0=1,Object.defineProperty(bp,"__esModule",{value:!0});const r=MC();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return bp.default=e,bp}var W0;function F9(){return W0||(W0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=N9(),n=kC(),o=IC(),i=P9();e.AttributeMap=i.default;const a=MC();e.Op=a.default;const c=B9();e.OpIterator=c.default;const d="\0",h=(m,g)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(g)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(g)[0]}`);return[v,m[v],g[v]]};class p{constructor(g){Array.isArray(g)?this.ops=g:g!=null&&Array.isArray(g.ops)?this.ops=g.ops:this.ops=[]}static registerEmbed(g,v){this.handlers[g]=v}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const v=this.handlers[g];if(!v)throw new Error(`no handlers for embed type "${g}"`);return v}insert(g,v){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,v){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(g){let v=this.ops.length,w=this.ops[v-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(g),this;if(o(g.attributes,w.attributes)){if(typeof g.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this}}return v===this.ops.length?this.ops.push(g):this.ops.splice(v,0,g),this}chop(){const g=this.ops[this.ops.length-1];return g&&typeof g.retain=="number"&&!g.attributes&&this.ops.pop(),this}filter(g){return this.ops.filter(g)}forEach(g){this.ops.forEach(g)}map(g){return this.ops.map(g)}partition(g){const v=[],w=[];return this.forEach(T=>{(g(T)?v:w).push(T)}),[v,w]}reduce(g,v){return this.ops.reduce(g,v)}changeLength(){return this.reduce((g,v)=>v.insert?g+a.default.length(v):v.delete?g-v.delete:g,0)}length(){return this.reduce((g,v)=>g+a.default.length(v),0)}slice(g=0,v=1/0){const w=[],T=new c.default(this.ops);let _=0;for(;_<v&&T.hasNext();){let A;_<g?A=T.next(g-_):(A=T.next(v-_),w.push(A)),_+=a.default.length(A)}return new p(w)}compose(g){const v=new c.default(this.ops),w=new c.default(g.ops),T=[],_=w.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){let R=_.retain;for(;v.peekType()==="insert"&&v.peekLength()<=R;)R-=v.peekLength(),T.push(v.next());_.retain-R>0&&w.next(_.retain-R)}const A=new p(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")A.push(w.next());else if(v.peekType()==="delete")A.push(v.next());else{const R=Math.min(v.peekLength(),w.peekLength()),D=v.next(R),I=w.next(R);if(I.retain){const B={};if(typeof D.retain=="number")B.retain=typeof I.retain=="number"?R:I.retain;else if(typeof I.retain=="number")D.retain==null?B.insert=D.insert:B.retain=D.retain;else{const j=D.retain==null?"insert":"retain",[H,G,pe]=h(D[j],I.retain),P=p.getHandler(H);B[j]={[H]:P.compose(G,pe,j==="retain")}}const F=i.default.compose(D.attributes,I.attributes,typeof D.retain=="number");if(F&&(B.attributes=F),A.push(B),!w.hasNext()&&o(A.ops[A.ops.length-1],B)){const j=new p(v.rest());return A.concat(j).chop()}}else typeof I.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&A.push(I)}return A.chop()}concat(g){const v=new p(this.ops.slice());return g.ops.length>0&&(v.push(g.ops[0]),v.ops=v.ops.concat(g.ops.slice(1))),v}diff(g,v){if(this.ops===g.ops)return new p;const w=[this,g].map(D=>D.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:d;const B=D===g?"on":"with";throw new Error("diff() called "+B+" non-document")}).join("")),T=new p,_=t(w[0],w[1],v,!0),A=new c.default(this.ops),R=new c.default(g.ops);return _.forEach(D=>{let I=D[1].length;for(;I>0;){let B=0;switch(D[0]){case t.INSERT:B=Math.min(R.peekLength(),I),T.push(R.next(B));break;case t.DELETE:B=Math.min(I,A.peekLength()),A.next(B),T.delete(B);break;case t.EQUAL:B=Math.min(A.peekLength(),R.peekLength(),I);const F=A.next(B),j=R.next(B);o(F.insert,j.insert)?T.retain(B,i.default.diff(F.attributes,j.attributes)):T.push(j).delete(B);break}I-=B}}),T.chop()}eachLine(g,v=`
|
package/dist/index.es.js
CHANGED
@@ -19593,7 +19593,8 @@ ${B["Invalid file(s)"]}: ${Dt}${mt ? `
|
|
19593
19593
|
{
|
19594
19594
|
className: Ze.clsx(kn.DropIdle, "Title1", "NoSelect"),
|
19595
19595
|
style: {
|
19596
|
-
color: W ? "var(--AFileUploader_brand_color)" : "var(--AFileUploader_disabled_color)"
|
19596
|
+
color: W ? "var(--AFileUploader_brand_color)" : "var(--AFileUploader_disabled_color)",
|
19597
|
+
opacity: W ? 1 : 0.4
|
19597
19598
|
},
|
19598
19599
|
...We,
|
19599
19600
|
abaseRef: ae,
|