ados-rcm 1.1.3 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -124,10 +124,10 @@ export declare const AFloatMenuKeys: readonly ["AFloatMenu_background-color", "A
|
|
124
124
|
export type TAFloatMenuKeys = (typeof AFloatMenuKeys)[number];
|
125
125
|
export declare const ALoadingBorderKeys: readonly ["ALoadingBorder_background-color", "ALoadingBorder_ProgressBar_background-color", "ALoadingBorder_Cover_background-color"];
|
126
126
|
export type TALoadingBorderKeys = (typeof ALoadingBorderKeys)[number];
|
127
|
-
export declare const AWrapKeys:
|
127
|
+
export declare const AWrapKeys: readonly ["AWrap_Error_color"];
|
128
128
|
export type TAWrapKeys = (typeof AWrapKeys)[number];
|
129
|
-
export declare const
|
130
|
-
export type TComponentStyleKeys = (typeof
|
129
|
+
export declare const componentStyleKeys: readonly ["Body-background-color", "Body-color", "Body-transition", "Font", "Scrollbar-handle", "Scrollbar-handle-hover", "Scrollbar-handle-active", "Scrollbar-track", "Scrollbar-border-radius", "Scrollbar-width", "ABase_Dimming_background-color", "ATooltip_background-color", "ATooltip_color", "AButton_Primary_border", "AButton_Primary_background-color", "AButton_Primary_color", "AButton_Secondary_border", "AButton_Secondary_background-color", "AButton_Secondary_color", "AInput_Primary_background-color", "AInput_Primary_border", "AInput_Primary_color", "AInput_Primary_hover_border", "AInput_Primary_focus_background-color", "AInput_Primary_focus_border", "AInput_Primary_placeholder_color", "AInput_Secondary_background-color", "AInput_Secondary_border", "AInput_Secondary_color", "AInput_Secondary_hover_border", "AInput_Secondary_focus_border", "AInput_Secondary_placeholder_color", "AInput_ReadOnly_background-color", "AInput_ReadOnly_border", "AInput_ReadOnly_color", "AInput_Error_HelperText_color", "AInput_Error_background-color", "AInput_Error_border", "AInput_Error_color", "AInput_Error_placeholder_color", "ATextArea_Primary_background-color", "ATextArea_Primary_border", "ATextArea_Primary_color", "ATextArea_Primary_hover_border", "ATextArea_Primary_focus_background-color", "ATextArea_Primary_focus_border", "ATextArea_Secondary_background-color", "ATextArea_Secondary_border", "ATextArea_Secondary_color", "ATextArea_Secondary_hover_border", "ATextArea_Secondary_focus_border", "ATextArea_ReadOnly_background-color", "ATextArea_ReadOnly_border", "ATextArea_ReadOnly_color", "ATextArea_Error_background-color", "ATextArea_Error_border", "ATextArea_Error_color", "ATextArea_Error_placeholder_color", "ACheckBox_color", "ADialog_Paper_background-color", "ADialog_background-color", "ADialog_border", "ADialog_Action_background-color", "ASelect_Primary_border", "ASelect_Primary_hover_border", "ASelect_Primary_Arrow_color", "ASelect_Primary_Options_background-color", "ASelect_Primary_Options_border", "ASelect_Primary_Option_hover_background-color", "ASelect_Primary_Option_active_background-color", "ASelect_Primary_Option_Selected_background-color", "ASelect_Secondary_border", "ASelect_Secondary_hover_border", "ASelect_Secondary_Arrow_color", "ASelect_Secondary_Options_background-color", "ASelect_Secondary_Options_border", "ASelect_Secondary_Option_hover_background-color", "ASelect_Secondary_Option_active_background-color", "ASelect_Secondary_Option_Selected_background-color", "AMultiSelect_Primary_border", "AMultiSelect_Primary_hover_border", "AMultiSelect_Primary_Arrow_color", "AMultiSelect_Primary_Options_background-color", "AMultiSelect_Primary_Options_border", "AMultiSelect_Primary_Option_hover_background-color", "AMultiSelect_Primary_Option_active_background-color", "AMultiSelect_Primary_Option_Selected_background-color", "AMultiSelect_Secondary_border", "AMultiSelect_Secondary_hover_border", "AMultiSelect_Secondary_Arrow_color", "AMultiSelect_Secondary_Options_background-color", "AMultiSelect_Secondary_Options_border", "AMultiSelect_Secondary_Option_hover_background-color", "AMultiSelect_Secondary_Option_active_background-color", "AMultiSelect_Secondary_Option_Selected_background-color", "ATree_background-color", "ATree_Indent_border", "ATreeBodyHeader_border-bottom", "ATreeItem_hover_background-color", "ATreeItem_active_background-color", "ATreeItem_select_background-color", "ATreeItem_search_background-color", "ATreeItem_search_border-top", "ATreeItem_search_border-bottom", "ATreeItem_select_color", "ASwitch_Track_Falsy_border", "ASwitch_Track_Truthy_border", "ASwitch_Thumb_border", "ATab_IndicatorTrack_Primary_border-bottom", "ATab_Indicator_Primary_background-color", "ATab_Option_Secondary_border", "ATab_Option_Secondary_IsSelected_border-bottom", "ATab_Option_Secondary_IsDisabled_border", "AFileBox_border", "AFileBox_background-color", "AFileBox_SelectedFile_color", "AFileBox_Dropping_color", "AListView_border-top", "AListView_Row_border-bottom", "AListView_Label_border-left", "AListView_Rendered_border-left", "AListView_Rendered_border-right", "AStepper_OutCircle_background-color", "AStepper_OutCircle_IsOver_background-color", "AStepper_InCircle_background-color", "AStepper_InCircle_IsOver_background-color", "AStepper_Line_background-color", "AStepper_Line_IsOver_background-color", "ADatePicker_Anchor_border", "ADatePicker_Anchor_color", "ADatePicker_Anchor_hover_border", "ADatePicker_Anchor_focus_border", "ADatePicker_Anchor_Icon_Primary_color", "ADatePicker_Anchor_Icon_Secondary_color", "ADatePicker_background-color", "ADatePicker_border", "ADatePicker_StringInputContainer_background-color", "ADatePicker_String_border", "ADatePicker_Prev_background-color", "ADatePicker_Prev_border-right", "ADatePicker_Next_background-color", "ADatePicker_Next_border-left", "ADatePicker_Cell_color", "ADatePicker_Cell_IsNotCurrentMonth_color", "ADatePicker_Cell_IsDisabled_color", "ADatePicker_Cell_IsSelected_background-color", "ADatePicker_Cell_IsSelected_color", "ADatePicker_Cell_IsHovered_background-color", "ADateRangePicker_Anchor_border", "ADateRangePicker_Anchor_color", "ADateRangePicker_Anchor_hover_border", "ADateRangePicker_Anchor_focus_border", "ADateRangePicker_Anchor_Icon_Primary_color", "ADateRangePicker_Anchor_Icon_Secondary_color", "ADateRangePicker_background-color", "ADateRangePicker_border", "ADateRangePicker_StringInputContainer_background-color", "ADateRangePicker_String_border", "ADateRangePicker_Prev_background-color", "ADateRangePicker_Prev_border-right", "ADateRangePicker_Next_background-color", "ADateRangePicker_Next_border-left", "ADateRangePicker_Cell_color", "ADateRangePicker_Cell_IsNotCurrentMonth_color", "ADateRangePicker_Cell_IsDisabled_color", "ADateRangePicker_Cell_IsSelected_background-color", "ADateRangePicker_Cell_IsSelected_color", "ADateRangePicker_Cell_IsHovered_background-color", "AIconButton_Primary_color", "AIconButton_Primary_background-color", "AIconButton_Primary_border", "AIconButton_Primary_hover_border", "ATableBody_TRow_border-bottom", "ATableBody_TRow_IsSelected_background-color", "ATableBody_TRow_IsSelectable_hover_background-color", "ATableBody_TH_color", "ATableBody_TD_IsMarked_background-color", "ATableBody_Resizer_hover_ResizerCenter_background-color", "ATableBody_Resizer_active_ResizerCenter_background-color", "ATableBody_Resizer_active_ResizerOut_background-color", "ATableBody_Resizer_active_ResizerIn_background-color", "ATableFooter_Button_IsSelected_background-color", "ATableFooter_Button_IsSelected_color", "ATableFooter_Button_IsDisabled_color", "ATableFilter_SubFilters_background-color", "ATableFilter_SubFilters_border", "ATableFilter_Icon_color", "ADivideFrame_DividerInner_background-color", "AFloatMenu_background-color", "AFloatMenu_hover_background-color", "AFloatMenu_color", "AFloatMenu_border", "ALoadingBorder_background-color", "ALoadingBorder_ProgressBar_background-color", "ALoadingBorder_Cover_background-color", "AWrap_Error_color"];
|
130
|
+
export type TComponentStyleKeys = (typeof componentStyleKeys)[number];
|
131
131
|
export type TComponentStyle = {
|
132
132
|
[key in TComponentStyleKeys]: string;
|
133
133
|
};
|
package/dist/index.cjs.js
CHANGED
@@ -56,4 +56,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
56
56
|
`);return r.map((o,s)=>c.jsxs(u.Fragment,{children:[o,s!==r.length-1&&c.jsx("br",{})]},s))}const z3="_Base_1vu9b_1",U3="_ATextArea_1vu9b_5",V3="_Primary_1vu9b_33",K3="_UnAvailable_1vu9b_38",q3="_Secondary_1vu9b_46",G3="_ReadOnly_1vu9b_58",Xi={Base:z3,ATextArea:U3,Primary:V3,UnAvailable:K3,Secondary:q3,ReadOnly:G3,Error:"_Error_1vu9b_65"},Y3=["Primary","Secondary","ReadOnly","Error"],Z3=n=>{const{onEnterPress:r,errorMessage:o,type:s="Primary",textAreaRef:l,useValue:f,rows:h,isReadonly:_,placeholder:m,maxLength:g,tabIndex:y,autoFocus:b,textAreaProps:w,wrapProps:x,helperText:I,label:E,wrapType:M,...C}=n,T=u.useMemo(()=>J3(o)?"Error":s,[o,s]),F=u.useMemo(()=>T==="ReadOnly"?!0:_,[T,_]),le=u.useMemo(()=>C.isDisabled||C.isLoading,[C.isDisabled,C.isLoading]),[P,Z]=jt(f,""),V=u.useCallback(O=>{Z&&Z(O)},[Z]),re=u.useCallback(O=>{var ae;le||(V(O.target.value),(ae=w==null?void 0:w.onChange)==null||ae.call(w,O))},[le,V,w]),K=u.useCallback(O=>{var ae;if(!le){if((ae=w==null?void 0:w.onKeyDown)==null||ae.call(w,O),O.key==="Tab"){const te=O.currentTarget.selectionStart,ee=O.currentTarget.selectionEnd;O.currentTarget.value=O.currentTarget.value.substring(0,te)+" "+O.currentTarget.value.substring(ee),O.currentTarget.selectionStart=O.currentTarget.selectionEnd=te+1,O.preventDefault()}else O.key==="Enter"&&(r==null||r(O.currentTarget.value),O.stopPropagation());O.key!=="Escape"&&O.stopPropagation()}},[le,r,w]);return c.jsx(bo,{wrapProps:x,label:E,helperText:I,errorMessage:o,wrapType:M??T==="Error"?"Error":"Default",children:c.jsx(bt,{...C,className:Q.clsx(Xi.Base,C.className),children:c.jsx("textarea",{...w,className:Q.clsx(Xi.ATextArea,Xi[T],le&&Xi.UnAvailable,w==null?void 0:w.className),value:P,rows:h,readOnly:F,onChange:re,onKeyDown:K,placeholder:m,maxLength:g,tabIndex:C.isDisabled||C.isLoading?-1:y,autoFocus:b,ref:l})})})};function J3(n){return Array.isArray(n)?n.filter(Boolean).length>0:!!n}function da(n,r){Array.isArray(n)||(n=[n]);for(const o of n){if(r(o))return o;if(!o.children||o.children.length<1)continue;const s=da(o.children,r);if(s)return s}}function xa(n,r){Array.isArray(n)||(n=[n]);for(const o of n)r(o),!(!o.children||o.children.length<1)&&xa(o.children,r)}function X3(n,r){const o=[];return xa(n,(s,l)=>o.push(r(s,l))),o}function xd(n,r){Array.isArray(n)||(n=[n]);for(const o of n){if(!r(o))return!1;if(!(!o.children||o.children.length<1)&&!xd(o.children,r))return!1}return!0}function Q3(n,r){const o=[];return xa(n,(s,l)=>{r(s,l)&&o.push(s)}),o}function Sd(n){return Array.isArray(n)||(n=[n]),n.reduce((r,o)=>r+1+(o.children?Sd(o.children):0),0)}function ex(n,r,o,s){if(s(r,o))return null;Array.isArray(n)||(n=[n]);const l=da(n,h=>{var _;return(_=h.children)==null?void 0:_.some(m=>s(m,r))}),f=da(n,h=>{var _;return(_=h.children)==null?void 0:_.some(m=>s(m,o))});if(l===void 0&&f===void 0){const h=n.findIndex(m=>s(m,r)),_=n.findIndex(m=>s(m,o));return n.splice(h,1),n.splice(_,0,r),[...n]}else if(l!==void 0&&f!==void 0&&s(l,f)&&l.children){const h=l.children.findIndex(m=>s(m,r)),_=l.children.findIndex(m=>s(m,o));return h===void 0||_===void 0?null:(l.children.splice(h,1),l.children.splice(_,0,r),l.children=[...l.children],[...n])}return null}const lr={find:da,forEach:xa,map:X3,every:xd,filter:Q3,length:Sd,replace:ex},tx="_AWrap_54x0h_1",nx="_AContainer_54x0h_10",rx="_ATree_54x0h_18",ox="_ATreeHeader_54x0h_31",ix="_ATreeBodyHeader_54x0h_37",ax="_ATreeItem_54x0h_46",sx="_IsSelected_54x0h_63",lx="_IsSearchSelected_54x0h_68",cx="_IsHovered_54x0h_79",ux="_CheckBox_54x0h_83",fx="_Indents_54x0h_95",dx="_ExpandIcon_54x0h_102",hx="_Content_54x0h_115",gx="_RightSticky_54x0h_124",vx="_SearchInputWrap_54x0h_136",_x="_SearchInput_54x0h_136",px="_RightAddon_54x0h_148",mx="_RightAddonIcon_54x0h_158",Rt={AWrap:tx,AContainer:nx,ATree:rx,ATreeHeader:ox,ATreeBodyHeader:ix,ATreeItem:ax,IsSelected:sx,IsSearchSelected:lx,IsHovered:cx,CheckBox:ux,Indents:fx,ExpandIcon:dx,Content:hx,RightSticky:gx,SearchInputWrap:vx,SearchInput:_x,RightAddon:px,RightAddonIcon:mx},yx=n=>{const{isEqual:r,item:o,selectDisabled:s,isParentDisabled:l,indents:f,useExpand:h,useSelect:_,useSearch:m,onDragStart:g,onDragOver:y,onDragEnd:b,showCheckbox:w,icons:x,iconWidth:I,isSelectMulti:E,isDraggable:M,isParentCheckHovered:C,ContentRenderer:T,TreeItemRenderer:F,RightStickyAddon:le,resources:P,containerRef:Z,TreeItemStyle:V,TreeItemClassName:re}=n,{children:K}=u.useMemo(()=>o,[o]),[O,ae]=u.useMemo(()=>h,[h]),[te,ee]=u.useMemo(()=>_,[_]),[z,U]=u.useMemo(()=>m,[m]),oe=u.useMemo(()=>!s||l?l:s(o),[s,l,o]),$=u.useMemo(()=>O.some(J=>r(J,o)),[O,r,o]),ve=u.useMemo(()=>!K||K.length<1?"noChild":$?"expanded":"collapsed",[K,$]),Se=u.useMemo(()=>{const J=x[ve];return nl.includes(J)?c.jsx(Mt,{style:{width:I,height:I},icon:J}):J},[x,I,ve]),Ne=u.useCallback(J=>{!ae||ve==="noChild"||(ae($?O.filter(j=>!r(j,o)):[...O,o]),J.stopPropagation())},[ae,O,$,o,r,ve]),De=u.useMemo(()=>te.some(J=>r(J,o)),[te,r,o]),Re=u.useCallback(()=>{!ee||oe||(ee(E?De?te.filter(J=>!r(J,o)):[...te,o]:[o]),z&&U&&z.items.some(J=>r(J,o))&&U({...z,item:o}))},[E,oe,De,z,U,ee,r,te,o]),Te=u.useMemo(()=>z==null?void 0:z.items.some(J=>r(J,o)),[z,r,o]),ie=u.useMemo(()=>Te&&(z==null?void 0:z.item)&&r(z.item,o),[Te,z,r,o]),be=u.useRef(null);u.useEffect(()=>{setTimeout(()=>{if(ie&&be.current&&Z.current){const{top:J,bottom:j}=be.current.getBoundingClientRect(),{top:Y,bottom:Oe}=Z.current.getBoundingClientRect();(J<Y||j>Oe)&&be.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[Z,ie]);const[Ge,it]=u.useState(!1),ne=u.useCallback(()=>!oe&&it(!0),[oe]),Me=u.useCallback(()=>!oe&&it(!1),[oe]),de=u.useMemo(()=>s?lr.map(o,J=>J).filter(J=>!s(J)):lr.map(o,J=>J),[s,o]),Ue=u.useMemo(()=>!w||!E?!1:De&&de.some(J=>te.some(j=>r(J,j)))&&de.some(J=>!te.some(j=>r(J,j))),[w,E,De,de,r,te]),xe=u.useMemo(()=>w?E?de.every(J=>te.some(j=>r(J,j))):te.some(J=>r(J,o)):!1,[w,E,de,o,r,te]),Ye=u.useCallback(()=>{if(!(!ee||oe))if(E)if(De){const J=te.filter(j=>!(s!=null&&s(j))&&de.some(Y=>r(Y,j)));J.length>0&&ee(te.filter(j=>!J.some(Y=>r(j,Y))))}else{const J=de.filter(j=>!(s!=null&&s(j))&&!te.some(Y=>r(Y,j)));J.length>0&&ee([...te,...J])}else ee([o])},[oe,s,E,ee,r,De,te,de,o]),We=u.useCallback(J=>{oe||Ye(),J.stopPropagation()},[oe,Ye]),_e=u.useMemo(()=>{if(!w||!E||oe)return"";if(De){const j=te.filter(Y=>!(s!=null&&s(Y))&&de.some(Oe=>r(Oe,Y)));if(j.length>0)return P["deselect n"](j.length)}const J=de.filter(j=>!(s!=null&&s(j))&&!te.some(Y=>r(Y,j)));return P["select n"](J.length)},[s,P,oe,w,E,De,de,r,te]),Le=u.useMemo(()=>ht.getContent(le,n),[le,n]),Ee=u.useMemo(()=>ht.getContent(V,n),[n,V]),Fe=u.useMemo(()=>ht.getContent(re,n),[n,re]);return c.jsxs(u.Fragment,{children:[c.jsxs(bt,{className:Q.clsx(Rt.ATreeItem,De&&Rt.IsSelected,!oe&&(Ge||C)&&Rt.IsHovered,Te&&Rt.IsSearched,ie&&Rt.IsSearchSelected,"NoSelect",Fe),style:Ee,draggable:M,onDragStart:()=>g==null?void 0:g(o),onDragEnter:J=>y==null?void 0:y(J,o),onDragEnd:J=>b==null?void 0:b(J,o),onClick:Re,abaseRef:be,isDisabled:oe,children:[w&&c.jsx(yo,{style:{visibility:oe?"hidden":"visible",zIndex:oe?0:2},className:Rt.CheckBox,useCheck:[+xe,Ye],onClick:We,isIndeterminate:Ue,onMouseOver:ne,onMouseOut:Me,tooltip:_e,isDisabled:oe}),c.jsx("div",{className:Rt.Indents,style:{paddingLeft:w?0:n.icons.noChild?12:0},children:f.map((J,j)=>{const Y=j===f.length-1;return c.jsx(gd,{value:J,map:{Collapsed:c.jsx(xx,{iconWidth:I}),Expanded:c.jsx(bx,{iconWidth:I,isLast:Y}),IsLast:c.jsx(Sx,{iconWidth:I})}},j)})}),Se&&c.jsx("div",{className:Rt.ExpandIcon,style:{width:I,minWidth:I,maxWidth:I},onClick:Ne,children:Se}),c.jsx("div",{className:Q.clsx(Rt.Content,"NoSelect"),children:c.jsx(T,{isEqual:r,item:o,indents:f,useExpand:h,useSelect:_,useSearch:m,onDragStart:g,onDragOver:y,onDragEnd:b,showCheckbox:w,icons:x,iconWidth:I,isSelectMulti:E,isDraggable:M,isParentCheckHovered:E&&(Ge||C),ContentRenderer:T,TreeItemRenderer:F,RightStickyAddon:le,resources:P,containerRef:Z,TreeItemStyle:V,TreeItemClassName:re})}),Le&&c.jsx("div",{className:Rt.RightSticky,children:Le})]}),$&&(K==null?void 0:K.map((J,j)=>c.jsx(F,{isEqual:r,item:J,selectDisabled:s,indents:[...f.map(Y=>Y==="IsLast"?"Collapsed":Y),j===K.length-1?"IsLast":"Expanded"],ContentRenderer:T,useExpand:h,useSelect:_,useSearch:m,onDragStart:g,onDragOver:y,onDragEnd:b,showCheckbox:w,icons:x,iconWidth:I,isSelectMulti:E,isDraggable:M,isParentCheckHovered:E&&(Ge||C),TreeItemRenderer:F,RightStickyAddon:le,resources:P,containerRef:Z,TreeItemStyle:V,TreeItemClassName:re},j)))]})},bx=({iconWidth:n,isLast:r})=>c.jsx("div",{style:{width:n/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:n/2,marginRight:n/8,boxSizing:"border-box",transition:"border-color 0.3s"},children:r&&c.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color 0.3s"}})}),xx=({iconWidth:n})=>c.jsx("div",{style:{width:n,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color 0.3s"}}),Sx=({iconWidth:n})=>c.jsx("div",{style:{width:n/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:n/2,marginRight:n/8,boxSizing:"border-box",transition:"border-color 0.3s"}}),Ax=n=>{const{isEqual:r,searchResult:o,initSearch:s,searchUp:l,searchDown:f,isDisabled:h,isLoading:_,resources:m,maxLength:g,autoFocus:y}=n,b=u.useCallback(I=>{I.key==="Enter"||I.key==="ArrowDown"?(f(),I.preventDefault(),I.stopPropagation()):I.key==="ArrowUp"&&(l(),I.preventDefault(),I.stopPropagation())},[f,l]),w=u.useCallback(I=>{s(I)},[s]),x=u.useMemo(()=>h||_?-1:void 0,[h,_]);return c.jsx(wr,{className:Rt.SearchInput,wrapProps:{className:Rt.SearchInputWrap},isDisabled:h,tabIndex:x,useValue:[(o==null?void 0:o.keyword)??"",w],onKeyDown:b,placeholder:m.Search,RightAddon:c.jsx(wx,{isEqual:r,searchResult:o,searchUp:l,searchDown:f}),maxLength:g,autoFocus:y})},wx=n=>{const{isEqual:r,searchResult:o,searchUp:s,searchDown:l}=n,f=u.useMemo(()=>!o||o.items.length<1?0:o.items.findIndex(w=>o.item&&r(w,o.item))+1,[o,r]),h=u.useMemo(()=>!o||o.items.length<1?0:o.items.length,[o]),_=u.useMemo(()=>f<2,[f]),m=u.useMemo(()=>f>=h,[f,h]),g=u.useCallback(w=>{w.stopPropagation(),!_&&s()},[s,_]),y=u.useCallback(w=>{w.stopPropagation(),!m&&l()},[l,m]),b=u.useCallback(w=>{w.stopPropagation(),l()},[l]);return c.jsx("div",{className:Q.clsx(Rt.RightAddon,"NoSelect"),children:o?c.jsxs(c.Fragment,{children:[f,"/",h,c.jsx(bt,{onClick:g,isDisabled:_,children:c.jsx(Mt,{className:Rt.RightAddonIcon,icon:"ArrowUp",mask:""})}),c.jsx(bt,{onClick:y,isDisabled:m,children:c.jsx(Mt,{className:Rt.RightAddonIcon,icon:"ArrowDown"})})]}):c.jsx(Mt,{className:Rt.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:b})})},Cx=n=>{const{pk:r,selectDisabled:o,useItems:s,useExpand:l,useSelect:f,useSearch:h,showCheckbox:_,iconWidth:m=24,icons:g={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},isSelectMulti:y=!1,noSearch:b=!1,isDraggable:w=!1,noSyncSearchSelect:x=!1,actionRef:I,placeholder:E,searchPredicate:M=Ix,isDisabled:C,isLoading:T,ContentRenderer:F=kx,TreeItemRenderer:le=yx,RightStickyAddon:P,TopRightAddon:Z,TreeTopAddon:V,resources:re,maxLength:K,autoFocus:O,TreeItemStyle:ae,TreeItemClassName:te,...ee}=n,z=u.useMemo(()=>({...Xn.ATree,...re}),[re]),U=u.useCallback((B,se)=>r!==void 0?Array.isArray(r)?r.every(ze=>Zn.isEqual(B[ze],se[ze])):Zn.isEqual(B[r],se[r]):Zn.isEqual(B,se),[r]),oe=u.useRef(null),[$,ve]=jt(s,[]),Se=u.useMemo(()=>lr.map($,B=>B),[$]),[Ne,De]=jt(l,[]),[Re,Te]=jt(f,[]),[ie,be]=jt(h,void 0),Ge=u.useCallback(B=>{if(C||!De||Ne.some(at=>U(at,B)))return;const se=[];let ze=B;for(;ze;){const at=ze;Ne.find(xt=>U(xt,at))||se.push(at),ze=Se.find(xt=>{var ct;return(ct=xt.children)==null?void 0:ct.some(st=>U(st,at))})}De([...Ne,...se])},[Ne,C,U,De,Se]),it=u.useCallback(()=>{!De||C||De([...Se])},[Se,C,De]),ne=u.useCallback(()=>{!De||C||De([])},[De,C]),Me=u.useCallback(B=>{!Te||C||(Te([B]),Ge(B))},[Te,C,Ge]),de=u.useCallback(B=>{if(!be||C)return;if(!B||b){be(void 0),x||Te==null||Te([]);return}const se=lr.filter($,at=>M(B,at));let ze;if(se.find(at=>(ie==null?void 0:ie.item)&&U(at,ie.item))?ze=ie==null?void 0:ie.item:se.length>0&&(ze=se[0]),be({keyword:B,items:se,item:ze}),Te&&!x)if(y)Te(se);else{const at=se.find(xt=>ze&&U(xt,ze));Te(at?[at]:[])}},[$,C,U,M,be,Te,x,b,y,ie]),Ue=u.useRef(!1);u.useEffect(()=>{Ue.current=!0},[$]),u.useEffect(()=>{ie&&Ue.current&&(de(ie.keyword),Ue.current=!1)},[de,ie]);const xe=u.useCallback(()=>{if(!ie||!be||C)return;let B=ie.items.findIndex(se=>ie.item&&U(se,ie.item))-1;B<0||(be({...ie,item:ie.items[B]}),Ge(ie.items[B]),x||Me(ie.items[B]))},[ie,Ge,be,C,Me,U,x]),Ye=u.useCallback(()=>{if(!ie||!be||C)return;let B=ie.items.findIndex(se=>ie.item&&U(se,ie.item))+1;B>=ie.items.length||(be({...ie,item:ie.items[B]}),Ge(ie.items[B]),x||Me(ie.items[B]))},[ie,Ge,C,be,Me,U,x]),[We,_e]=u.useState(!1),Le=u.useCallback(()=>_e(!0),[]),Ee=u.useCallback(()=>_e(!1),[]),Fe=u.useMemo(()=>o?lr.map($,B=>B).filter(B=>!o(B)):lr.map($,B=>B),[o,$]),J=u.useMemo(()=>!_||!y?!1:Re.length>0&&Fe.length>Re.length,[_,y,Re,Fe]),j=u.useMemo(()=>!_||!y?!1:Re.length>0&&Fe.length===Re.length,[_,y,Re,Fe]),Y=u.useCallback(()=>{if(!Te||!y||C)return;const B=Re.filter(se=>!(o!=null&&o(se))&&Fe.some(ze=>U(ze,se)));if(B.length>0)Te(Re.filter(se=>!B.some(ze=>U(se,ze))));else{const se=Fe.filter(ze=>!(o!=null&&o(ze))&&!Re.some(at=>U(at,ze)));se.length>0&&Te([...Re,...se])}},[y,C,o,Te,Re,Fe,U]),Oe=u.useMemo(()=>{if(!_||!y||C)return"";const B=Re.filter(se=>!(o!=null&&o(se))&&Fe.some(ze=>U(ze,se)));if(B.length>0)return z["deselect n"](B.length);{const se=Fe.filter(ze=>!(o!=null&&o(ze))&&!Re.some(at=>U(at,ze)));return z["select n"](se.length)}},[o,C,z,_,y,Fe,Re,U]),[me,Ae]=u.useState(null),[Be,pt]=u.useState(null),Je=u.useCallback(B=>{!w||C||Ae(B)},[C,w]),wt=u.useCallback((B,se)=>{if(!w||C||!me||(B.preventDefault(),B.stopPropagation(),pt(se),!ve))return;const ze=lr.replace($,me,se,U);ze&&ve(ze)},[w,$,me,C,ve,U]),en=u.useCallback(()=>{if(!w||C||!me||!Be||!ve||U(me,Be))return;const B=lr.replace($,me,Be,U);B&&(ve(B),Ae(null))},[w,ve,$,me,Be,U,C]);u.useEffect(()=>{var B;_||(B=oe.current)==null||B.scrollTo(0,0)},[_,oe]),u.useEffect(()=>{!y&&Re.length>1&&(Te==null||Te([Re[Re.length-1]]))},[y,Te,Re]),u.useEffect(()=>{I&&(I.current={expandAll:it,collapseAll:ne})},[I,it,ne]),u.useEffect(()=>{if(!o||!Te)return;const B=Re.filter(se=>!o(se));Re.length!==B.length&&Te(B)},[o,Re,Te]),u.useEffect(()=>{be&&be(void 0)},[be]);const[tn,q]=u.useState(!1);return u.useEffect(()=>{q(B=>!B)},[$]),c.jsxs(bt,{...ee,isDisabled:C,className:Q.clsx(ee.className,Rt.AWrap),children:[(!b||Z)&&c.jsxs(Jn,{className:Rt.ATreeHeader,children:[!b&&c.jsx(Ax,{isEqual:U,searchResult:ie,initSearch:de,searchUp:xe,searchDown:Ye,isLoading:T,isDisabled:C,resources:z,maxLength:K,autoFocus:O}),!b&&Z&&c.jsx(Vt,{w:8}),Z]}),(!b||Z||_&&y)&&c.jsx(ll,{isLoading:T&&$.length!==0}),_&&y&&c.jsxs("div",{className:Rt.ATreeBodyHeader,children:[c.jsx(yo,{className:Rt.CheckBox,useCheck:[+j,()=>Y()],isIndeterminate:J,onMouseOver:Le,onMouseOut:Ee,isDisabled:C,tooltip:Oe}),z.Items,c.jsx(Kr,{}),z["*Click row for single select"]]}),c.jsx("div",{ref:oe,className:Q.clsx(ee.className,Rt.AContainer),children:c.jsxs("div",{className:Rt.ATree,children:[$.length===0?T?c.jsx(Dx,{text:z["Loading Contents..."]}):E:V,$.map((B,se)=>c.jsx(le,{isEqual:U,indents:[],item:B,selectDisabled:o,isParentDisabled:C,useExpand:[Ne,De],useSelect:[Re,Te],useSearch:[ie,be],onDragStart:Je,onDragOver:wt,onDragEnd:en,showCheckbox:_,icons:g,iconWidth:m,isSelectMulti:y,isDraggable:w,isParentCheckHovered:y&&We,ContentRenderer:F,TreeItemRenderer:le,RightStickyAddon:P,resources:z,containerRef:oe,TreeItemStyle:ae,TreeItemClassName:te},`${se}${tn}`))]})})]})},kx=n=>{const{item:r}=n,o={};return Ce.keys(r).forEach(s=>{s!=="children"&&(o[s]=r[s])}),JSON.stringify(o)};function Ix(n,r){return Ce.some(r,(o,s)=>{var l;return(l=Ce.stringify(s))==null?void 0:l.toLowerCase().includes(n.toLowerCase())})}const Dx=n=>{const{text:r}=n;return c.jsxs(Jn,{className:Rt.Loader,children:[c.jsx(Mt,{icon:"Spinner",style:{height:40},height:40,width:40}),c.jsx(bd,{text:r})]})};function Rx(n,r){u.useEffect(()=>{if(n.current)for(const o in r){const s=r[o];s!==void 0&&n.current.style.setProperty(o,s)}},[n,r])}var Tx=Error,Ex=EvalError,Mx=RangeError,Px=ReferenceError,Ad=SyntaxError,oi=TypeError,Lx=URIError,Ox=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},o=Symbol("test"),s=Object(o);if(typeof o=="string"||Object.prototype.toString.call(o)!=="[object Symbol]"||Object.prototype.toString.call(s)!=="[object Symbol]")return!1;var l=42;r[o]=l;for(o in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var f=Object.getOwnPropertySymbols(r);if(f.length!==1||f[0]!==o||!Object.prototype.propertyIsEnumerable.call(r,o))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(r,o);if(h.value!==l||h.enumerable!==!0)return!1}return!0},ef=typeof Symbol<"u"&&Symbol,jx=Ox,Nx=function(){return typeof ef!="function"||typeof Symbol!="function"||typeof ef("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:jx()},Os={__proto__:null,foo:{}},Fx=Object,Bx=function(){return{__proto__:Os}.foo===Os.foo&&!(Os instanceof Fx)},$x="Function.prototype.bind called on incompatible ",Wx=Object.prototype.toString,Hx=Math.max,zx="[object Function]",tf=function(r,o){for(var s=[],l=0;l<r.length;l+=1)s[l]=r[l];for(var f=0;f<o.length;f+=1)s[f+r.length]=o[f];return s},Ux=function(r,o){for(var s=[],l=o||0,f=0;l<r.length;l+=1,f+=1)s[f]=r[l];return s},Vx=function(n,r){for(var o="",s=0;s<n.length;s+=1)o+=n[s],s+1<n.length&&(o+=r);return o},Kx=function(r){var o=this;if(typeof o!="function"||Wx.apply(o)!==zx)throw new TypeError($x+o);for(var s=Ux(arguments,1),l,f=function(){if(this instanceof l){var y=o.apply(this,tf(s,arguments));return Object(y)===y?y:this}return o.apply(r,tf(s,arguments))},h=Hx(0,o.length-s.length),_=[],m=0;m<h;m++)_[m]="$"+m;if(l=Function("binder","return function ("+Vx(_,",")+"){ return binder.apply(this,arguments); }")(f),o.prototype){var g=function(){};g.prototype=o.prototype,l.prototype=new g,g.prototype=null}return l},qx=Kx,cl=Function.prototype.bind||qx,Gx=Function.prototype.call,Yx=Object.prototype.hasOwnProperty,Zx=cl,Jx=Zx.call(Gx,Yx),tt,Xx=Tx,Qx=Ex,e6=Mx,t6=Px,xo=Ad,po=oi,n6=Lx,wd=Function,js=function(n){try{return wd('"use strict"; return ('+n+").constructor;")()}catch{}},Ur=Object.getOwnPropertyDescriptor;if(Ur)try{Ur({},"")}catch{Ur=null}var Ns=function(){throw new po},r6=Ur?function(){try{return arguments.callee,Ns}catch{try{return Ur(arguments,"callee").get}catch{return Ns}}}():Ns,uo=Nx(),o6=Bx(),zt=Object.getPrototypeOf||(o6?function(n){return n.__proto__}:null),go={},i6=typeof Uint8Array>"u"||!zt?tt:zt(Uint8Array),Vr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?tt:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?tt:ArrayBuffer,"%ArrayIteratorPrototype%":uo&&zt?zt([][Symbol.iterator]()):tt,"%AsyncFromSyncIteratorPrototype%":tt,"%AsyncFunction%":go,"%AsyncGenerator%":go,"%AsyncGeneratorFunction%":go,"%AsyncIteratorPrototype%":go,"%Atomics%":typeof Atomics>"u"?tt:Atomics,"%BigInt%":typeof BigInt>"u"?tt:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?tt:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?tt:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?tt:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Xx,"%eval%":eval,"%EvalError%":Qx,"%Float32Array%":typeof Float32Array>"u"?tt:Float32Array,"%Float64Array%":typeof Float64Array>"u"?tt:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?tt:FinalizationRegistry,"%Function%":wd,"%GeneratorFunction%":go,"%Int8Array%":typeof Int8Array>"u"?tt:Int8Array,"%Int16Array%":typeof Int16Array>"u"?tt:Int16Array,"%Int32Array%":typeof Int32Array>"u"?tt:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":uo&&zt?zt(zt([][Symbol.iterator]())):tt,"%JSON%":typeof JSON=="object"?JSON:tt,"%Map%":typeof Map>"u"?tt:Map,"%MapIteratorPrototype%":typeof Map>"u"||!uo||!zt?tt:zt(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?tt:Promise,"%Proxy%":typeof Proxy>"u"?tt:Proxy,"%RangeError%":e6,"%ReferenceError%":t6,"%Reflect%":typeof Reflect>"u"?tt:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?tt:Set,"%SetIteratorPrototype%":typeof Set>"u"||!uo||!zt?tt:zt(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?tt:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":uo&&zt?zt(""[Symbol.iterator]()):tt,"%Symbol%":uo?Symbol:tt,"%SyntaxError%":xo,"%ThrowTypeError%":r6,"%TypedArray%":i6,"%TypeError%":po,"%Uint8Array%":typeof Uint8Array>"u"?tt:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?tt:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?tt:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?tt:Uint32Array,"%URIError%":n6,"%WeakMap%":typeof WeakMap>"u"?tt:WeakMap,"%WeakRef%":typeof WeakRef>"u"?tt:WeakRef,"%WeakSet%":typeof WeakSet>"u"?tt:WeakSet};if(zt)try{null.error}catch(n){var a6=zt(zt(n));Vr["%Error.prototype%"]=a6}var s6=function n(r){var o;if(r==="%AsyncFunction%")o=js("async function () {}");else if(r==="%GeneratorFunction%")o=js("function* () {}");else if(r==="%AsyncGeneratorFunction%")o=js("async function* () {}");else if(r==="%AsyncGenerator%"){var s=n("%AsyncGeneratorFunction%");s&&(o=s.prototype)}else if(r==="%AsyncIteratorPrototype%"){var l=n("%AsyncGenerator%");l&&zt&&(o=zt(l.prototype))}return Vr[r]=o,o},nf={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ii=cl,ha=Jx,l6=ii.call(Function.call,Array.prototype.concat),c6=ii.call(Function.apply,Array.prototype.splice),rf=ii.call(Function.call,String.prototype.replace),ga=ii.call(Function.call,String.prototype.slice),u6=ii.call(Function.call,RegExp.prototype.exec),f6=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,d6=/\\(\\)?/g,h6=function(r){var o=ga(r,0,1),s=ga(r,-1);if(o==="%"&&s!=="%")throw new xo("invalid intrinsic syntax, expected closing `%`");if(s==="%"&&o!=="%")throw new xo("invalid intrinsic syntax, expected opening `%`");var l=[];return rf(r,f6,function(f,h,_,m){l[l.length]=_?rf(m,d6,"$1"):h||f}),l},g6=function(r,o){var s=r,l;if(ha(nf,s)&&(l=nf[s],s="%"+l[0]+"%"),ha(Vr,s)){var f=Vr[s];if(f===go&&(f=s6(s)),typeof f>"u"&&!o)throw new po("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:l,name:s,value:f}}throw new xo("intrinsic "+r+" does not exist!")},wo=function(r,o){if(typeof r!="string"||r.length===0)throw new po("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof o!="boolean")throw new po('"allowMissing" argument must be a boolean');if(u6(/^%?[^%]*%?$/,r)===null)throw new xo("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var s=h6(r),l=s.length>0?s[0]:"",f=g6("%"+l+"%",o),h=f.name,_=f.value,m=!1,g=f.alias;g&&(l=g[0],c6(s,l6([0,1],g)));for(var y=1,b=!0;y<s.length;y+=1){var w=s[y],x=ga(w,0,1),I=ga(w,-1);if((x==='"'||x==="'"||x==="`"||I==='"'||I==="'"||I==="`")&&x!==I)throw new xo("property names with quotes must have matching quotes");if((w==="constructor"||!b)&&(m=!0),l+="."+w,h="%"+l+"%",ha(Vr,h))_=Vr[h];else if(_!=null){if(!(w in _)){if(!o)throw new po("base intrinsic for "+r+" exists, but the property is not available.");return}if(Ur&&y+1>=s.length){var E=Ur(_,w);b=!!E,b&&"get"in E&&!("originalValue"in E.get)?_=E.get:_=_[w]}else b=ha(_,w),_=_[w];b&&!m&&(Vr[h]=_)}}return _},Cd={exports:{}},Fs,of;function ul(){if(of)return Fs;of=1;var n=wo,r=n("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return Fs=r,Fs}var v6=wo,oa=v6("%Object.getOwnPropertyDescriptor%",!0);if(oa)try{oa([],"length")}catch{oa=null}var kd=oa,af=ul(),_6=Ad,fo=oi,sf=kd,p6=function(r,o,s){if(!r||typeof r!="object"&&typeof r!="function")throw new fo("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new fo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new fo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new fo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new fo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new fo("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,f=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,_=arguments.length>6?arguments[6]:!1,m=!!sf&&sf(r,o);if(af)af(r,o,{configurable:h===null&&m?m.configurable:!h,enumerable:l===null&&m?m.enumerable:!l,value:s,writable:f===null&&m?m.writable:!f});else if(_||!l&&!f&&!h)r[o]=s;else throw new _6("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},qs=ul(),Id=function(){return!!qs};Id.hasArrayLengthDefineBug=function(){if(!qs)return null;try{return qs([],"length",{value:1}).length!==1}catch{return!0}};var m6=Id,y6=wo,lf=p6,b6=m6(),cf=kd,uf=oi,x6=y6("%Math.floor%"),S6=function(r,o){if(typeof r!="function")throw new uf("`fn` is not a function");if(typeof o!="number"||o<0||o>4294967295||x6(o)!==o)throw new uf("`length` must be a positive 32-bit integer");var s=arguments.length>2&&!!arguments[2],l=!0,f=!0;if("length"in r&&cf){var h=cf(r,"length");h&&!h.configurable&&(l=!1),h&&!h.writable&&(f=!1)}return(l||f||!s)&&(b6?lf(r,"length",o,!0,!0):lf(r,"length",o)),r};(function(n){var r=cl,o=wo,s=S6,l=oi,f=o("%Function.prototype.apply%"),h=o("%Function.prototype.call%"),_=o("%Reflect.apply%",!0)||r.call(h,f),m=ul(),g=o("%Math.max%");n.exports=function(w){if(typeof w!="function")throw new l("a function is required");var x=_(r,h,arguments);return s(x,1+g(0,w.length-(arguments.length-1)),!0)};var y=function(){return _(r,f,arguments)};m?m(n.exports,"apply",{value:y}):n.exports.apply=y})(Cd);var A6=Cd.exports,Dd=wo,Rd=A6,w6=Rd(Dd("String.prototype.indexOf")),C6=function(r,o){var s=Dd(r,!!o);return typeof s=="function"&&w6(r,".prototype.")>-1?Rd(s):s};const k6={},I6=Object.freeze(Object.defineProperty({__proto__:null,default:k6},Symbol.toStringTag,{value:"Module"})),D6=Jp(I6);var fl=typeof Map=="function"&&Map.prototype,Bs=Object.getOwnPropertyDescriptor&&fl?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,va=fl&&Bs&&typeof Bs.get=="function"?Bs.get:null,ff=fl&&Map.prototype.forEach,dl=typeof Set=="function"&&Set.prototype,$s=Object.getOwnPropertyDescriptor&&dl?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,_a=dl&&$s&&typeof $s.get=="function"?$s.get:null,df=dl&&Set.prototype.forEach,R6=typeof WeakMap=="function"&&WeakMap.prototype,Jo=R6?WeakMap.prototype.has:null,T6=typeof WeakSet=="function"&&WeakSet.prototype,Xo=T6?WeakSet.prototype.has:null,E6=typeof WeakRef=="function"&&WeakRef.prototype,hf=E6?WeakRef.prototype.deref:null,M6=Boolean.prototype.valueOf,P6=Object.prototype.toString,L6=Function.prototype.toString,O6=String.prototype.match,hl=String.prototype.slice,Ar=String.prototype.replace,j6=String.prototype.toUpperCase,gf=String.prototype.toLowerCase,Td=RegExp.prototype.test,vf=Array.prototype.concat,Yn=Array.prototype.join,N6=Array.prototype.slice,_f=Math.floor,Gs=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Ws=Object.getOwnPropertySymbols,Ys=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,So=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Qt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===So||!0)?Symbol.toStringTag:null,Ed=Object.prototype.propertyIsEnumerable,pf=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function mf(n,r){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||Td.call(/e/,r))return r;var o=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var s=n<0?-_f(-n):_f(n);if(s!==n){var l=String(s),f=hl.call(r,l.length+1);return Ar.call(l,o,"$&_")+"."+Ar.call(Ar.call(f,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Ar.call(r,o,"$&_")}var Zs=D6,yf=Zs.custom,bf=Pd(yf)?yf:null,F6=function n(r,o,s,l){var f=o||{};if(xr(f,"quoteStyle")&&f.quoteStyle!=="single"&&f.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(xr(f,"maxStringLength")&&(typeof f.maxStringLength=="number"?f.maxStringLength<0&&f.maxStringLength!==1/0:f.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=xr(f,"customInspect")?f.customInspect:!0;if(typeof h!="boolean"&&h!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(xr(f,"indent")&&f.indent!==null&&f.indent!==" "&&!(parseInt(f.indent,10)===f.indent&&f.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(xr(f,"numericSeparator")&&typeof f.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=f.numericSeparator;if(typeof r>"u")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return Od(r,f);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var m=String(r);return _?mf(r,m):m}if(typeof r=="bigint"){var g=String(r)+"n";return _?mf(r,g):g}var y=typeof f.depth>"u"?5:f.depth;if(typeof s>"u"&&(s=0),s>=y&&y>0&&typeof r=="object")return Js(r)?"[Array]":"[Object]";var b=nS(f,s);if(typeof l>"u")l=[];else if(Ld(l,r)>=0)return"[Circular]";function w(ee,z,U){if(z&&(l=N6.call(l),l.push(z)),U){var oe={depth:f.depth};return xr(f,"quoteStyle")&&(oe.quoteStyle=f.quoteStyle),n(ee,oe,s+1,l)}return n(ee,f,s+1,l)}if(typeof r=="function"&&!xf(r)){var x=q6(r),I=Qi(r,w);return"[Function"+(x?": "+x:" (anonymous)")+"]"+(I.length>0?" { "+Yn.call(I,", ")+" }":"")}if(Pd(r)){var E=So?Ar.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ys.call(r);return typeof r=="object"&&!So?Yo(E):E}if(Q6(r)){for(var M="<"+gf.call(String(r.nodeName)),C=r.attributes||[],T=0;T<C.length;T++)M+=" "+C[T].name+"="+Md(B6(C[T].value),"double",f);return M+=">",r.childNodes&&r.childNodes.length&&(M+="..."),M+="</"+gf.call(String(r.nodeName))+">",M}if(Js(r)){if(r.length===0)return"[]";var F=Qi(r,w);return b&&!tS(F)?"["+Xs(F,b)+"]":"[ "+Yn.call(F,", ")+" ]"}if(W6(r)){var le=Qi(r,w);return!("cause"in Error.prototype)&&"cause"in r&&!Ed.call(r,"cause")?"{ ["+String(r)+"] "+Yn.call(vf.call("[cause]: "+w(r.cause),le),", ")+" }":le.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+Yn.call(le,", ")+" }"}if(typeof r=="object"&&h){if(bf&&typeof r[bf]=="function"&&Zs)return Zs(r,{depth:y-s});if(h!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(G6(r)){var P=[];return ff&&ff.call(r,function(ee,z){P.push(w(z,r,!0)+" => "+w(ee,r))}),Sf("Map",va.call(r),P,b)}if(J6(r)){var Z=[];return df&&df.call(r,function(ee){Z.push(w(ee,r))}),Sf("Set",_a.call(r),Z,b)}if(Y6(r))return Hs("WeakMap");if(X6(r))return Hs("WeakSet");if(Z6(r))return Hs("WeakRef");if(z6(r))return Yo(w(Number(r)));if(V6(r))return Yo(w(Gs.call(r)));if(U6(r))return Yo(M6.call(r));if(H6(r))return Yo(w(String(r)));if(typeof window<"u"&&r===window)return"{ [object Window] }";if(r===ho)return"{ [object globalThis] }";if(!$6(r)&&!xf(r)){var V=Qi(r,w),re=pf?pf(r)===Object.prototype:r instanceof Object||r.constructor===Object,K=r instanceof Object?"":"null prototype",O=!re&&Qt&&Object(r)===r&&Qt in r?hl.call(Cr(r),8,-1):K?"Object":"",ae=re||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",te=ae+(O||K?"["+Yn.call(vf.call([],O||[],K||[]),": ")+"] ":"");return V.length===0?te+"{}":b?te+"{"+Xs(V,b)+"}":te+"{ "+Yn.call(V,", ")+" }"}return String(r)};function Md(n,r,o){var s=(o.quoteStyle||r)==="double"?'"':"'";return s+n+s}function B6(n){return Ar.call(String(n),/"/g,""")}function Js(n){return Cr(n)==="[object Array]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function $6(n){return Cr(n)==="[object Date]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function xf(n){return Cr(n)==="[object RegExp]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function W6(n){return Cr(n)==="[object Error]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function H6(n){return Cr(n)==="[object String]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function z6(n){return Cr(n)==="[object Number]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function U6(n){return Cr(n)==="[object Boolean]"&&(!Qt||!(typeof n=="object"&&Qt in n))}function Pd(n){if(So)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Ys)return!1;try{return Ys.call(n),!0}catch{}return!1}function V6(n){if(!n||typeof n!="object"||!Gs)return!1;try{return Gs.call(n),!0}catch{}return!1}var K6=Object.prototype.hasOwnProperty||function(n){return n in this};function xr(n,r){return K6.call(n,r)}function Cr(n){return P6.call(n)}function q6(n){if(n.name)return n.name;var r=O6.call(L6.call(n),/^function\s*([\w$]+)/);return r?r[1]:null}function Ld(n,r){if(n.indexOf)return n.indexOf(r);for(var o=0,s=n.length;o<s;o++)if(n[o]===r)return o;return-1}function G6(n){if(!va||!n||typeof n!="object")return!1;try{va.call(n);try{_a.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function Y6(n){if(!Jo||!n||typeof n!="object")return!1;try{Jo.call(n,Jo);try{Xo.call(n,Xo)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function Z6(n){if(!hf||!n||typeof n!="object")return!1;try{return hf.call(n),!0}catch{}return!1}function J6(n){if(!_a||!n||typeof n!="object")return!1;try{_a.call(n);try{va.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function X6(n){if(!Xo||!n||typeof n!="object")return!1;try{Xo.call(n,Xo);try{Jo.call(n,Jo)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function Q6(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Od(n,r){if(n.length>r.maxStringLength){var o=n.length-r.maxStringLength,s="... "+o+" more character"+(o>1?"s":"");return Od(hl.call(n,0,r.maxStringLength),r)+s}var l=Ar.call(Ar.call(n,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,eS);return Md(l,"single",r)}function eS(n){var r=n.charCodeAt(0),o={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return o?"\\"+o:"\\x"+(r<16?"0":"")+j6.call(r.toString(16))}function Yo(n){return"Object("+n+")"}function Hs(n){return n+" { ? }"}function Sf(n,r,o,s){var l=s?Xs(o,s):Yn.call(o,", ");return n+" ("+r+") {"+l+"}"}function tS(n){for(var r=0;r<n.length;r++)if(Ld(n[r],`
|
57
57
|
`)>=0)return!1;return!0}function nS(n,r){var o;if(n.indent===" ")o=" ";else if(typeof n.indent=="number"&&n.indent>0)o=Yn.call(Array(n.indent+1)," ");else return null;return{base:o,prev:Yn.call(Array(r+1),o)}}function Xs(n,r){if(n.length===0)return"";var o=`
|
58
58
|
`+r.prev+r.base;return o+Yn.call(n,","+o)+`
|
59
|
-
`+r.prev}function Qi(n,r){var o=Js(n),s=[];if(o){s.length=n.length;for(var l=0;l<n.length;l++)s[l]=xr(n,l)?r(n[l],n):""}var f=typeof Ws=="function"?Ws(n):[],h;if(So){h={};for(var _=0;_<f.length;_++)h["$"+f[_]]=f[_]}for(var m in n)xr(n,m)&&(o&&String(Number(m))===m&&m<n.length||So&&h["$"+m]instanceof Symbol||(Td.call(/[^\w$]/,m)?s.push(r(m,n)+": "+r(n[m],n)):s.push(m+": "+r(n[m],n))));if(typeof Ws=="function")for(var g=0;g<f.length;g++)Ed.call(n,f[g])&&s.push("["+r(f[g])+"]: "+r(n[f[g]],n));return s}var jd=wo,Co=C6,rS=F6,oS=oi,ea=jd("%WeakMap%",!0),ta=jd("%Map%",!0),iS=Co("WeakMap.prototype.get",!0),aS=Co("WeakMap.prototype.set",!0),sS=Co("WeakMap.prototype.has",!0),lS=Co("Map.prototype.get",!0),cS=Co("Map.prototype.set",!0),uS=Co("Map.prototype.has",!0),gl=function(n,r){for(var o=n,s;(s=o.next)!==null;o=s)if(s.key===r)return o.next=s.next,s.next=n.next,n.next=s,s},fS=function(n,r){var o=gl(n,r);return o&&o.value},dS=function(n,r,o){var s=gl(n,r);s?s.value=o:n.next={key:r,next:n.next,value:o}},hS=function(n,r){return!!gl(n,r)},gS=function(){var r,o,s,l={assert:function(f){if(!l.has(f))throw new oS("Side channel does not contain "+rS(f))},get:function(f){if(ea&&f&&(typeof f=="object"||typeof f=="function")){if(r)return iS(r,f)}else if(ta){if(o)return lS(o,f)}else if(s)return fS(s,f)},has:function(f){if(ea&&f&&(typeof f=="object"||typeof f=="function")){if(r)return sS(r,f)}else if(ta){if(o)return uS(o,f)}else if(s)return hS(s,f);return!1},set:function(f,h){ea&&f&&(typeof f=="object"||typeof f=="function")?(r||(r=new ea),aS(r,f,h)):ta?(o||(o=new ta),cS(o,f,h)):(s||(s={key:{},next:null}),dS(s,f,h))}};return l},vS=String.prototype.replace,_S=/%20/g,zs={RFC1738:"RFC1738",RFC3986:"RFC3986"},vl={default:zs.RFC3986,formatters:{RFC1738:function(n){return vS.call(n,_S,"+")},RFC3986:function(n){return String(n)}},RFC1738:zs.RFC1738,RFC3986:zs.RFC3986},pS=vl,Us=Object.prototype.hasOwnProperty,zr=Array.isArray,qn=function(){for(var n=[],r=0;r<256;++r)n.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return n}(),mS=function(r){for(;r.length>1;){var o=r.pop(),s=o.obj[o.prop];if(zr(s)){for(var l=[],f=0;f<s.length;++f)typeof s[f]<"u"&&l.push(s[f]);o.obj[o.prop]=l}}},Nd=function(r,o){for(var s=o&&o.plainObjects?Object.create(null):{},l=0;l<r.length;++l)typeof r[l]<"u"&&(s[l]=r[l]);return s},yS=function n(r,o,s){if(!o)return r;if(typeof o!="object"){if(zr(r))r.push(o);else if(r&&typeof r=="object")(s&&(s.plainObjects||s.allowPrototypes)||!Us.call(Object.prototype,o))&&(r[o]=!0);else return[r,o];return r}if(!r||typeof r!="object")return[r].concat(o);var l=r;return zr(r)&&!zr(o)&&(l=Nd(r,s)),zr(r)&&zr(o)?(o.forEach(function(f,h){if(Us.call(r,h)){var _=r[h];_&&typeof _=="object"&&f&&typeof f=="object"?r[h]=n(_,f,s):r.push(f)}else r[h]=f}),r):Object.keys(o).reduce(function(f,h){var _=o[h];return Us.call(f,h)?f[h]=n(f[h],_,s):f[h]=_,f},l)},bS=function(r,o){return Object.keys(o).reduce(function(s,l){return s[l]=o[l],s},r)},xS=function(n,r,o){var s=n.replace(/\+/g," ");if(o==="iso-8859-1")return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch{return s}},SS=function(r,o,s,l,f){if(r.length===0)return r;var h=r;if(typeof r=="symbol"?h=Symbol.prototype.toString.call(r):typeof r!="string"&&(h=String(r)),s==="iso-8859-1")return escape(h).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var _="",m=0;m<h.length;++m){var g=h.charCodeAt(m);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||f===pS.RFC1738&&(g===40||g===41)){_+=h.charAt(m);continue}if(g<128){_=_+qn[g];continue}if(g<2048){_=_+(qn[192|g>>6]+qn[128|g&63]);continue}if(g<55296||g>=57344){_=_+(qn[224|g>>12]+qn[128|g>>6&63]+qn[128|g&63]);continue}m+=1,g=65536+((g&1023)<<10|h.charCodeAt(m)&1023),_+=qn[240|g>>18]+qn[128|g>>12&63]+qn[128|g>>6&63]+qn[128|g&63]}return _},AS=function(r){for(var o=[{obj:{o:r},prop:"o"}],s=[],l=0;l<o.length;++l)for(var f=o[l],h=f.obj[f.prop],_=Object.keys(h),m=0;m<_.length;++m){var g=_[m],y=h[g];typeof y=="object"&&y!==null&&s.indexOf(y)===-1&&(o.push({obj:h,prop:g}),s.push(y))}return mS(o),r},wS=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},CS=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},kS=function(r,o){return[].concat(r,o)},IS=function(r,o){if(zr(r)){for(var s=[],l=0;l<r.length;l+=1)s.push(o(r[l]));return s}return o(r)},Fd={arrayToObject:Nd,assign:bS,combine:kS,compact:AS,decode:xS,encode:SS,isBuffer:CS,isRegExp:wS,maybeMap:IS,merge:yS},Bd=gS,ia=Fd,Qo=vl,DS=Object.prototype.hasOwnProperty,$d={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,o){return r+"["+o+"]"},repeat:function(r){return r}},Gn=Array.isArray,RS=Array.prototype.push,Wd=function(n,r){RS.apply(n,Gn(r)?r:[r])},TS=Date.prototype.toISOString,Af=Qo.default,$t={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ia.encode,encodeValuesOnly:!1,format:Af,formatter:Qo.formatters[Af],indices:!1,serializeDate:function(r){return TS.call(r)},skipNulls:!1,strictNullHandling:!1},ES=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Vs={},MS=function n(r,o,s,l,f,h,_,m,g,y,b,w,x,I,E,M,C,T){for(var F=r,le=T,P=0,Z=!1;(le=le.get(Vs))!==void 0&&!Z;){var V=le.get(r);if(P+=1,typeof V<"u"){if(V===P)throw new RangeError("Cyclic object value");Z=!0}typeof le.get(Vs)>"u"&&(P=0)}if(typeof y=="function"?F=y(o,F):F instanceof Date?F=x(F):s==="comma"&&Gn(F)&&(F=ia.maybeMap(F,function(Ne){return Ne instanceof Date?x(Ne):Ne})),F===null){if(h)return g&&!M?g(o,$t.encoder,C,"key",I):o;F=""}if(ES(F)||ia.isBuffer(F)){if(g){var re=M?o:g(o,$t.encoder,C,"key",I);return[E(re)+"="+E(g(F,$t.encoder,C,"value",I))]}return[E(o)+"="+E(String(F))]}var K=[];if(typeof F>"u")return K;var O;if(s==="comma"&&Gn(F))M&&g&&(F=ia.maybeMap(F,g)),O=[{value:F.length>0?F.join(",")||null:void 0}];else if(Gn(y))O=y;else{var ae=Object.keys(F);O=b?ae.sort(b):ae}var te=m?o.replace(/\./g,"%2E"):o,ee=l&&Gn(F)&&F.length===1?te+"[]":te;if(f&&Gn(F)&&F.length===0)return ee+"[]";for(var z=0;z<O.length;++z){var U=O[z],oe=typeof U=="object"&&typeof U.value<"u"?U.value:F[U];if(!(_&&oe===null)){var $=w&&m?U.replace(/\./g,"%2E"):U,ve=Gn(F)?typeof s=="function"?s(ee,$):ee:ee+(w?"."+$:"["+$+"]");T.set(r,P);var Se=Bd();Se.set(Vs,T),Wd(K,n(oe,ve,s,l,f,h,_,m,s==="comma"&&M&&Gn(F)?null:g,y,b,w,x,I,E,M,C,Se))}}return K},PS=function(r){if(!r)return $t;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.encodeDotInKeys<"u"&&typeof r.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(r.encoder!==null&&typeof r.encoder<"u"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=r.charset||$t.charset;if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=Qo.default;if(typeof r.format<"u"){if(!DS.call(Qo.formatters,r.format))throw new TypeError("Unknown format option provided.");s=r.format}var l=Qo.formatters[s],f=$t.filter;(typeof r.filter=="function"||Gn(r.filter))&&(f=r.filter);var h;if(r.arrayFormat in $d?h=r.arrayFormat:"indices"in r?h=r.indices?"indices":"repeat":h=$t.arrayFormat,"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var _=typeof r.allowDots>"u"?r.encodeDotInKeys===!0?!0:$t.allowDots:!!r.allowDots;return{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:$t.addQueryPrefix,allowDots:_,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:$t.allowEmptyArrays,arrayFormat:h,charset:o,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:$t.charsetSentinel,commaRoundTrip:r.commaRoundTrip,delimiter:typeof r.delimiter>"u"?$t.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:$t.encode,encodeDotInKeys:typeof r.encodeDotInKeys=="boolean"?r.encodeDotInKeys:$t.encodeDotInKeys,encoder:typeof r.encoder=="function"?r.encoder:$t.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:$t.encodeValuesOnly,filter:f,format:s,formatter:l,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:$t.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:$t.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:$t.strictNullHandling}},LS=function(n,r){var o=n,s=PS(r),l,f;typeof s.filter=="function"?(f=s.filter,o=f("",o)):Gn(s.filter)&&(f=s.filter,l=f);var h=[];if(typeof o!="object"||o===null)return"";var _=$d[s.arrayFormat],m=_==="comma"&&s.commaRoundTrip;l||(l=Object.keys(o)),s.sort&&l.sort(s.sort);for(var g=Bd(),y=0;y<l.length;++y){var b=l[y];s.skipNulls&&o[b]===null||Wd(h,MS(o[b],b,_,m,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,g))}var w=h.join(s.delimiter),x=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""},Ao=Fd,Qs=Object.prototype.hasOwnProperty,OS=Array.isArray,Ot={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:Ao.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},jS=function(n){return n.replace(/&#(\d+);/g,function(r,o){return String.fromCharCode(parseInt(o,10))})},Hd=function(n,r){return n&&typeof n=="string"&&r.comma&&n.indexOf(",")>-1?n.split(","):n},NS="utf8=%26%2310003%3B",FS="utf8=%E2%9C%93",BS=function(r,o){var s={__proto__:null},l=o.ignoreQueryPrefix?r.replace(/^\?/,""):r,f=o.parameterLimit===1/0?void 0:o.parameterLimit,h=l.split(o.delimiter,f),_=-1,m,g=o.charset;if(o.charsetSentinel)for(m=0;m<h.length;++m)h[m].indexOf("utf8=")===0&&(h[m]===FS?g="utf-8":h[m]===NS&&(g="iso-8859-1"),_=m,m=h.length);for(m=0;m<h.length;++m)if(m!==_){var y=h[m],b=y.indexOf("]="),w=b===-1?y.indexOf("="):b+1,x,I;w===-1?(x=o.decoder(y,Ot.decoder,g,"key"),I=o.strictNullHandling?null:""):(x=o.decoder(y.slice(0,w),Ot.decoder,g,"key"),I=Ao.maybeMap(Hd(y.slice(w+1),o),function(M){return o.decoder(M,Ot.decoder,g,"value")})),I&&o.interpretNumericEntities&&g==="iso-8859-1"&&(I=jS(I)),y.indexOf("[]=")>-1&&(I=OS(I)?[I]:I);var E=Qs.call(s,x);E&&o.duplicates==="combine"?s[x]=Ao.combine(s[x],I):(!E||o.duplicates==="last")&&(s[x]=I)}return s},$S=function(n,r,o,s){for(var l=s?r:Hd(r,o),f=n.length-1;f>=0;--f){var h,_=n[f];if(_==="[]"&&o.parseArrays)h=o.allowEmptyArrays&&l===""?[]:[].concat(l);else{h=o.plainObjects?Object.create(null):{};var m=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,g=o.decodeDotInKeys?m.replace(/%2E/g,"."):m,y=parseInt(g,10);!o.parseArrays&&g===""?h={0:l}:!isNaN(y)&&_!==g&&String(y)===g&&y>=0&&o.parseArrays&&y<=o.arrayLimit?(h=[],h[y]=l):g!=="__proto__"&&(h[g]=l)}l=h}return l},WS=function(r,o,s,l){if(r){var f=s.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,h=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,m=s.depth>0&&h.exec(f),g=m?f.slice(0,m.index):f,y=[];if(g){if(!s.plainObjects&&Qs.call(Object.prototype,g)&&!s.allowPrototypes)return;y.push(g)}for(var b=0;s.depth>0&&(m=_.exec(f))!==null&&b<s.depth;){if(b+=1,!s.plainObjects&&Qs.call(Object.prototype,m[1].slice(1,-1))&&!s.allowPrototypes)return;y.push(m[1])}return m&&y.push("["+f.slice(m.index)+"]"),$S(y,o,s,l)}},HS=function(r){if(!r)return Ot;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.decodeDotInKeys<"u"&&typeof r.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(r.decoder!==null&&typeof r.decoder<"u"&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=typeof r.charset>"u"?Ot.charset:r.charset,s=typeof r.duplicates>"u"?Ot.duplicates:r.duplicates;if(s!=="combine"&&s!=="first"&&s!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof r.allowDots>"u"?r.decodeDotInKeys===!0?!0:Ot.allowDots:!!r.allowDots;return{allowDots:l,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:Ot.allowEmptyArrays,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Ot.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Ot.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Ot.arrayLimit,charset:o,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ot.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Ot.comma,decodeDotInKeys:typeof r.decodeDotInKeys=="boolean"?r.decodeDotInKeys:Ot.decodeDotInKeys,decoder:typeof r.decoder=="function"?r.decoder:Ot.decoder,delimiter:typeof r.delimiter=="string"||Ao.isRegExp(r.delimiter)?r.delimiter:Ot.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Ot.depth,duplicates:s,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Ot.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Ot.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Ot.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ot.strictNullHandling}},zS=function(n,r){var o=HS(r);if(n===""||n===null||typeof n>"u")return o.plainObjects?Object.create(null):{};for(var s=typeof n=="string"?BS(n,o):n,l=o.plainObjects?Object.create(null):{},f=Object.keys(s),h=0;h<f.length;++h){var _=f[h],m=WS(_,s[_],o,typeof n=="string");l=Ao.merge(l,m,o)}return o.allowSparse===!0?l:Ao.compact(l)},US=LS,VS=zS,KS=vl,qS={formats:KS,parse:VS,stringify:US};const GS=wf(qS),el={StoredContexts:{},defaultHandler:()=>{}},zd={Init:()=>{},Create:n=>{const r=n.method+n.url;return el.StoredContexts[r]=n,YS(n)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:n=>{el.defaultHandler=n}};function YS(n){const r=`[${n.method}] ${n.url}`;return{Call:async s=>{let{url:l,method:f,stream:h,paramType:_}=n;const{po:m,onStream:g,onStreamEnd:y,noDefaultHandle:b=[]}=s??{};(_==="query"||f==="GET")&&m!==void 0&&(l+="?"+GS.stringify(m,{arrayFormat:"comma"}));const w={method:f,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(_==="form"){const E=new FormData;if(m!==void 0)for(const M in m){const C=m[M];E.append(M,C)}w.body=E}else(_==="body"||_===void 0&&n.method!=="GET")&&(w.body=JSON.stringify(m),w.headers["Content-Type"]="application/json;charset=UTF-8");let x={errorCode:0,message:""};const I=Date.now();l=zd.FetchBaseUrl()+l;try{let E=await fetch(l,w);if(E.ok===!1)return x.errorCode=E.status,x.message=E.statusText,x;{const M=new TextDecoder("utf-8");if(h){if(E.body){let C=E.body.getReader(),T="";for(;;){const F=await C.read();if(F.done)break;const le=M.decode(F.value).trim();T+=le;let P=null;try{const Z=le.split("\0");let V=Z[Z.length-1];for(let re=Z.length-2;re>=0;re--)if(Z[re].trim().length!==0){V=Z[re];break}P=await JSON.parse(V)}catch{try{const V=T.split("\0");let re=V[V.length-1];for(let K=V.length-2;K>=0;K--)if(V[K].trim().length!==0){re=V[K];break}P=await JSON.parse(re)}catch{}}if(P!=null&&(Object.keys(P).includes("err_code")?x.errorCode=P.err_code:(x.errorCode=0,x.data=P,T="",F.done?y==null||y(x.data):g==null||g(x.data))),F.done)break}}}else if(E.body){const T=await E.body.getReader().read(),F=M.decode(T.value);if(F==="null")return x;{let le=await JSON.parse(F.replaceAll("\0",""));Object.keys(le).includes("err_code")?(x.errorCode=le.err_code,x.message=le.err_msg):x.data=le}}}}catch(E){console.warn(E),x.errorCode=-1,x.message=E.message}return console.debug(`${r} ${Date.now()-I}ms`),b!==!0&&await el.defaultHandler(x,b),x}}}async function ZS(n){const r=new Promise((o,s)=>{const l=new FileReader;l.onloadend=()=>{l.result?typeof l.result=="string"?o(l.result):s(new Error("Failed to convert file to Base64: Invalid result type.")):s(new Error("Failed to convert file to Base64: Empty result."))},l.onerror=s,l.readAsDataURL(n)});try{return await r}catch{return}}function JS(n,r){var _,m;const o=n.split(","),s=(m=(_=o[0])==null?void 0:_.match(/:(.*?);/))==null?void 0:m[1],l=atob(o[1]);let f=l.length;const h=new Uint8Array(f);for(;f--;)h[f]=l.charCodeAt(f);return new File([h],r,{type:s})}const XS={toBase64:ZS,toFile:JS};exports.ABase=bt;exports.ABaseStyleKeys=Hf;exports.AButton=ln;exports.AButtonStyleKeys=Uf;exports.AButtonTypes=Pm;exports.ACheckBox=yo;exports.ACheckBoxStyleKeys=qf;exports.AClock=iy;exports.AColFrame=hd;exports.ADatePicker=sl;exports.ADatePickerStyleKeys=rd;exports.ADatePickerTypes=ob;exports.ADateRangePicker=il;exports.ADateRangePickerStyleKeys=od;exports.ADialog=hb;exports.ADialogStyleKeys=Gf;exports.ADialogTypes=db;exports.ADivideFrame=xy;exports.AFileBox=Ab;exports.AFileBoxStyleKeys=ed;exports.AFloatMenu=Rb;exports.AFloatMenuKeys=ld;exports.AFrameStyleKeys=sd;exports.AGrow=Kr;exports.AIcon=Mt;exports.AIconButton=vo;exports.AIconButtonStyleKeys=id;exports.AIconButtonTypes=Lm;exports.AIconHOC=pm;exports.AIcons=nl;exports.AInput=wr;exports.AInputStyleKeys=Vf;exports.AInputTypes=Oy;exports.AListView=Fb;exports.AListViewStyleKeys=td;exports.ALoadingBorder=ll;exports.ALoadingBorderKeys=cd;exports.AMultiSelect=o4;exports.AMultiSelectStyleKeys=Zf;exports.ANumInput=Pb;exports.AOverflowFrame=ti;exports.ARowFrame=Jn;exports.ASelect=qr;exports.ASelectStyleKeys=Yf;exports.ASelectTypes=i2;exports.ASpace=Vt;exports.AStepper=y4;exports.AStepperStyleKeys=nd;exports.ASwitch=w4;exports.ASwitchFrame=gd;exports.ASwitchStyleKeys=Xf;exports.ATab=L4;exports.ATabStyleKeys=Qf;exports.ATabTypes=P4;exports.ATable=N3;exports.ATableStyleKeys=ad;exports.AText=bd;exports.ATextArea=Z3;exports.ATextAreaStyleKeys=Kf;exports.ATextAreaTypes=Y3;exports.AThemeButton=Ym;exports.AThemes=na;exports.ATooltip=Of;exports.ATooltipStyleKeys=zf;exports.ATree=Cx;exports.ATreeStyleKeys=Jf;exports.AWrap=bo;exports.AWrapKeys=ud;exports.AWrapTypes=oy;exports.ApiContext=zd;exports.BodyStyleKeys=Wf;exports.ComponentStyleKeys=Hm;exports.CreateADC=yb;exports.Dummy=If;exports.EDir12=ri;exports.EDir4=Ut;exports.IsCursorPointer=Tf;exports.IsFixedShape=Rf;exports.IsInteractive=Ef;exports.NoSelect=Df;exports.Resources=Xn;exports.SetResources=Ky;exports.bound=Zo;exports.cbF=ht;exports.changeSemanticMode=ol;exports.createEvent=Hr;exports.dateF=ye;exports.defaultPredicate=pd;exports.fileF=XS;exports.getMonthsOptions=ni;exports.getYearsOptions=al;exports.numF=vd;exports.objF=Ce;exports.paletteKeys=jf;exports.paletteModes=ma;exports.refinedDesignTokens=Kt;exports.sF=Q;exports.semanticKeys=Bf;exports.semanticModes=mo;exports.setDir12Style=rl;exports.setDir12StyleElem=Pf;exports.strF=dd;exports.tableF=br;exports.treeF=lr;exports.useADialogCore=pb;exports.useADialogCores=_b;exports.useEvent=yd;exports.useInit=_d;exports.useTheme=Rx;exports.useValues=jt;
|
59
|
+
`+r.prev}function Qi(n,r){var o=Js(n),s=[];if(o){s.length=n.length;for(var l=0;l<n.length;l++)s[l]=xr(n,l)?r(n[l],n):""}var f=typeof Ws=="function"?Ws(n):[],h;if(So){h={};for(var _=0;_<f.length;_++)h["$"+f[_]]=f[_]}for(var m in n)xr(n,m)&&(o&&String(Number(m))===m&&m<n.length||So&&h["$"+m]instanceof Symbol||(Td.call(/[^\w$]/,m)?s.push(r(m,n)+": "+r(n[m],n)):s.push(m+": "+r(n[m],n))));if(typeof Ws=="function")for(var g=0;g<f.length;g++)Ed.call(n,f[g])&&s.push("["+r(f[g])+"]: "+r(n[f[g]],n));return s}var jd=wo,Co=C6,rS=F6,oS=oi,ea=jd("%WeakMap%",!0),ta=jd("%Map%",!0),iS=Co("WeakMap.prototype.get",!0),aS=Co("WeakMap.prototype.set",!0),sS=Co("WeakMap.prototype.has",!0),lS=Co("Map.prototype.get",!0),cS=Co("Map.prototype.set",!0),uS=Co("Map.prototype.has",!0),gl=function(n,r){for(var o=n,s;(s=o.next)!==null;o=s)if(s.key===r)return o.next=s.next,s.next=n.next,n.next=s,s},fS=function(n,r){var o=gl(n,r);return o&&o.value},dS=function(n,r,o){var s=gl(n,r);s?s.value=o:n.next={key:r,next:n.next,value:o}},hS=function(n,r){return!!gl(n,r)},gS=function(){var r,o,s,l={assert:function(f){if(!l.has(f))throw new oS("Side channel does not contain "+rS(f))},get:function(f){if(ea&&f&&(typeof f=="object"||typeof f=="function")){if(r)return iS(r,f)}else if(ta){if(o)return lS(o,f)}else if(s)return fS(s,f)},has:function(f){if(ea&&f&&(typeof f=="object"||typeof f=="function")){if(r)return sS(r,f)}else if(ta){if(o)return uS(o,f)}else if(s)return hS(s,f);return!1},set:function(f,h){ea&&f&&(typeof f=="object"||typeof f=="function")?(r||(r=new ea),aS(r,f,h)):ta?(o||(o=new ta),cS(o,f,h)):(s||(s={key:{},next:null}),dS(s,f,h))}};return l},vS=String.prototype.replace,_S=/%20/g,zs={RFC1738:"RFC1738",RFC3986:"RFC3986"},vl={default:zs.RFC3986,formatters:{RFC1738:function(n){return vS.call(n,_S,"+")},RFC3986:function(n){return String(n)}},RFC1738:zs.RFC1738,RFC3986:zs.RFC3986},pS=vl,Us=Object.prototype.hasOwnProperty,zr=Array.isArray,qn=function(){for(var n=[],r=0;r<256;++r)n.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return n}(),mS=function(r){for(;r.length>1;){var o=r.pop(),s=o.obj[o.prop];if(zr(s)){for(var l=[],f=0;f<s.length;++f)typeof s[f]<"u"&&l.push(s[f]);o.obj[o.prop]=l}}},Nd=function(r,o){for(var s=o&&o.plainObjects?Object.create(null):{},l=0;l<r.length;++l)typeof r[l]<"u"&&(s[l]=r[l]);return s},yS=function n(r,o,s){if(!o)return r;if(typeof o!="object"){if(zr(r))r.push(o);else if(r&&typeof r=="object")(s&&(s.plainObjects||s.allowPrototypes)||!Us.call(Object.prototype,o))&&(r[o]=!0);else return[r,o];return r}if(!r||typeof r!="object")return[r].concat(o);var l=r;return zr(r)&&!zr(o)&&(l=Nd(r,s)),zr(r)&&zr(o)?(o.forEach(function(f,h){if(Us.call(r,h)){var _=r[h];_&&typeof _=="object"&&f&&typeof f=="object"?r[h]=n(_,f,s):r.push(f)}else r[h]=f}),r):Object.keys(o).reduce(function(f,h){var _=o[h];return Us.call(f,h)?f[h]=n(f[h],_,s):f[h]=_,f},l)},bS=function(r,o){return Object.keys(o).reduce(function(s,l){return s[l]=o[l],s},r)},xS=function(n,r,o){var s=n.replace(/\+/g," ");if(o==="iso-8859-1")return s.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(s)}catch{return s}},SS=function(r,o,s,l,f){if(r.length===0)return r;var h=r;if(typeof r=="symbol"?h=Symbol.prototype.toString.call(r):typeof r!="string"&&(h=String(r)),s==="iso-8859-1")return escape(h).replace(/%u[0-9a-f]{4}/gi,function(y){return"%26%23"+parseInt(y.slice(2),16)+"%3B"});for(var _="",m=0;m<h.length;++m){var g=h.charCodeAt(m);if(g===45||g===46||g===95||g===126||g>=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||f===pS.RFC1738&&(g===40||g===41)){_+=h.charAt(m);continue}if(g<128){_=_+qn[g];continue}if(g<2048){_=_+(qn[192|g>>6]+qn[128|g&63]);continue}if(g<55296||g>=57344){_=_+(qn[224|g>>12]+qn[128|g>>6&63]+qn[128|g&63]);continue}m+=1,g=65536+((g&1023)<<10|h.charCodeAt(m)&1023),_+=qn[240|g>>18]+qn[128|g>>12&63]+qn[128|g>>6&63]+qn[128|g&63]}return _},AS=function(r){for(var o=[{obj:{o:r},prop:"o"}],s=[],l=0;l<o.length;++l)for(var f=o[l],h=f.obj[f.prop],_=Object.keys(h),m=0;m<_.length;++m){var g=_[m],y=h[g];typeof y=="object"&&y!==null&&s.indexOf(y)===-1&&(o.push({obj:h,prop:g}),s.push(y))}return mS(o),r},wS=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},CS=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},kS=function(r,o){return[].concat(r,o)},IS=function(r,o){if(zr(r)){for(var s=[],l=0;l<r.length;l+=1)s.push(o(r[l]));return s}return o(r)},Fd={arrayToObject:Nd,assign:bS,combine:kS,compact:AS,decode:xS,encode:SS,isBuffer:CS,isRegExp:wS,maybeMap:IS,merge:yS},Bd=gS,ia=Fd,Qo=vl,DS=Object.prototype.hasOwnProperty,$d={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,o){return r+"["+o+"]"},repeat:function(r){return r}},Gn=Array.isArray,RS=Array.prototype.push,Wd=function(n,r){RS.apply(n,Gn(r)?r:[r])},TS=Date.prototype.toISOString,Af=Qo.default,$t={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:ia.encode,encodeValuesOnly:!1,format:Af,formatter:Qo.formatters[Af],indices:!1,serializeDate:function(r){return TS.call(r)},skipNulls:!1,strictNullHandling:!1},ES=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},Vs={},MS=function n(r,o,s,l,f,h,_,m,g,y,b,w,x,I,E,M,C,T){for(var F=r,le=T,P=0,Z=!1;(le=le.get(Vs))!==void 0&&!Z;){var V=le.get(r);if(P+=1,typeof V<"u"){if(V===P)throw new RangeError("Cyclic object value");Z=!0}typeof le.get(Vs)>"u"&&(P=0)}if(typeof y=="function"?F=y(o,F):F instanceof Date?F=x(F):s==="comma"&&Gn(F)&&(F=ia.maybeMap(F,function(Ne){return Ne instanceof Date?x(Ne):Ne})),F===null){if(h)return g&&!M?g(o,$t.encoder,C,"key",I):o;F=""}if(ES(F)||ia.isBuffer(F)){if(g){var re=M?o:g(o,$t.encoder,C,"key",I);return[E(re)+"="+E(g(F,$t.encoder,C,"value",I))]}return[E(o)+"="+E(String(F))]}var K=[];if(typeof F>"u")return K;var O;if(s==="comma"&&Gn(F))M&&g&&(F=ia.maybeMap(F,g)),O=[{value:F.length>0?F.join(",")||null:void 0}];else if(Gn(y))O=y;else{var ae=Object.keys(F);O=b?ae.sort(b):ae}var te=m?o.replace(/\./g,"%2E"):o,ee=l&&Gn(F)&&F.length===1?te+"[]":te;if(f&&Gn(F)&&F.length===0)return ee+"[]";for(var z=0;z<O.length;++z){var U=O[z],oe=typeof U=="object"&&typeof U.value<"u"?U.value:F[U];if(!(_&&oe===null)){var $=w&&m?U.replace(/\./g,"%2E"):U,ve=Gn(F)?typeof s=="function"?s(ee,$):ee:ee+(w?"."+$:"["+$+"]");T.set(r,P);var Se=Bd();Se.set(Vs,T),Wd(K,n(oe,ve,s,l,f,h,_,m,s==="comma"&&M&&Gn(F)?null:g,y,b,w,x,I,E,M,C,Se))}}return K},PS=function(r){if(!r)return $t;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.encodeDotInKeys<"u"&&typeof r.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(r.encoder!==null&&typeof r.encoder<"u"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var o=r.charset||$t.charset;if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=Qo.default;if(typeof r.format<"u"){if(!DS.call(Qo.formatters,r.format))throw new TypeError("Unknown format option provided.");s=r.format}var l=Qo.formatters[s],f=$t.filter;(typeof r.filter=="function"||Gn(r.filter))&&(f=r.filter);var h;if(r.arrayFormat in $d?h=r.arrayFormat:"indices"in r?h=r.indices?"indices":"repeat":h=$t.arrayFormat,"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var _=typeof r.allowDots>"u"?r.encodeDotInKeys===!0?!0:$t.allowDots:!!r.allowDots;return{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:$t.addQueryPrefix,allowDots:_,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:$t.allowEmptyArrays,arrayFormat:h,charset:o,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:$t.charsetSentinel,commaRoundTrip:r.commaRoundTrip,delimiter:typeof r.delimiter>"u"?$t.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:$t.encode,encodeDotInKeys:typeof r.encodeDotInKeys=="boolean"?r.encodeDotInKeys:$t.encodeDotInKeys,encoder:typeof r.encoder=="function"?r.encoder:$t.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:$t.encodeValuesOnly,filter:f,format:s,formatter:l,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:$t.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:$t.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:$t.strictNullHandling}},LS=function(n,r){var o=n,s=PS(r),l,f;typeof s.filter=="function"?(f=s.filter,o=f("",o)):Gn(s.filter)&&(f=s.filter,l=f);var h=[];if(typeof o!="object"||o===null)return"";var _=$d[s.arrayFormat],m=_==="comma"&&s.commaRoundTrip;l||(l=Object.keys(o)),s.sort&&l.sort(s.sort);for(var g=Bd(),y=0;y<l.length;++y){var b=l[y];s.skipNulls&&o[b]===null||Wd(h,MS(o[b],b,_,m,s.allowEmptyArrays,s.strictNullHandling,s.skipNulls,s.encodeDotInKeys,s.encode?s.encoder:null,s.filter,s.sort,s.allowDots,s.serializeDate,s.format,s.formatter,s.encodeValuesOnly,s.charset,g))}var w=h.join(s.delimiter),x=s.addQueryPrefix===!0?"?":"";return s.charsetSentinel&&(s.charset==="iso-8859-1"?x+="utf8=%26%2310003%3B&":x+="utf8=%E2%9C%93&"),w.length>0?x+w:""},Ao=Fd,Qs=Object.prototype.hasOwnProperty,OS=Array.isArray,Ot={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!0,decoder:Ao.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},jS=function(n){return n.replace(/&#(\d+);/g,function(r,o){return String.fromCharCode(parseInt(o,10))})},Hd=function(n,r){return n&&typeof n=="string"&&r.comma&&n.indexOf(",")>-1?n.split(","):n},NS="utf8=%26%2310003%3B",FS="utf8=%E2%9C%93",BS=function(r,o){var s={__proto__:null},l=o.ignoreQueryPrefix?r.replace(/^\?/,""):r,f=o.parameterLimit===1/0?void 0:o.parameterLimit,h=l.split(o.delimiter,f),_=-1,m,g=o.charset;if(o.charsetSentinel)for(m=0;m<h.length;++m)h[m].indexOf("utf8=")===0&&(h[m]===FS?g="utf-8":h[m]===NS&&(g="iso-8859-1"),_=m,m=h.length);for(m=0;m<h.length;++m)if(m!==_){var y=h[m],b=y.indexOf("]="),w=b===-1?y.indexOf("="):b+1,x,I;w===-1?(x=o.decoder(y,Ot.decoder,g,"key"),I=o.strictNullHandling?null:""):(x=o.decoder(y.slice(0,w),Ot.decoder,g,"key"),I=Ao.maybeMap(Hd(y.slice(w+1),o),function(M){return o.decoder(M,Ot.decoder,g,"value")})),I&&o.interpretNumericEntities&&g==="iso-8859-1"&&(I=jS(I)),y.indexOf("[]=")>-1&&(I=OS(I)?[I]:I);var E=Qs.call(s,x);E&&o.duplicates==="combine"?s[x]=Ao.combine(s[x],I):(!E||o.duplicates==="last")&&(s[x]=I)}return s},$S=function(n,r,o,s){for(var l=s?r:Hd(r,o),f=n.length-1;f>=0;--f){var h,_=n[f];if(_==="[]"&&o.parseArrays)h=o.allowEmptyArrays&&l===""?[]:[].concat(l);else{h=o.plainObjects?Object.create(null):{};var m=_.charAt(0)==="["&&_.charAt(_.length-1)==="]"?_.slice(1,-1):_,g=o.decodeDotInKeys?m.replace(/%2E/g,"."):m,y=parseInt(g,10);!o.parseArrays&&g===""?h={0:l}:!isNaN(y)&&_!==g&&String(y)===g&&y>=0&&o.parseArrays&&y<=o.arrayLimit?(h=[],h[y]=l):g!=="__proto__"&&(h[g]=l)}l=h}return l},WS=function(r,o,s,l){if(r){var f=s.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,h=/(\[[^[\]]*])/,_=/(\[[^[\]]*])/g,m=s.depth>0&&h.exec(f),g=m?f.slice(0,m.index):f,y=[];if(g){if(!s.plainObjects&&Qs.call(Object.prototype,g)&&!s.allowPrototypes)return;y.push(g)}for(var b=0;s.depth>0&&(m=_.exec(f))!==null&&b<s.depth;){if(b+=1,!s.plainObjects&&Qs.call(Object.prototype,m[1].slice(1,-1))&&!s.allowPrototypes)return;y.push(m[1])}return m&&y.push("["+f.slice(m.index)+"]"),$S(y,o,s,l)}},HS=function(r){if(!r)return Ot;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.decodeDotInKeys<"u"&&typeof r.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(r.decoder!==null&&typeof r.decoder<"u"&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var o=typeof r.charset>"u"?Ot.charset:r.charset,s=typeof r.duplicates>"u"?Ot.duplicates:r.duplicates;if(s!=="combine"&&s!=="first"&&s!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var l=typeof r.allowDots>"u"?r.decodeDotInKeys===!0?!0:Ot.allowDots:!!r.allowDots;return{allowDots:l,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:Ot.allowEmptyArrays,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:Ot.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:Ot.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:Ot.arrayLimit,charset:o,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:Ot.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:Ot.comma,decodeDotInKeys:typeof r.decodeDotInKeys=="boolean"?r.decodeDotInKeys:Ot.decodeDotInKeys,decoder:typeof r.decoder=="function"?r.decoder:Ot.decoder,delimiter:typeof r.delimiter=="string"||Ao.isRegExp(r.delimiter)?r.delimiter:Ot.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:Ot.depth,duplicates:s,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:Ot.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:Ot.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:Ot.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:Ot.strictNullHandling}},zS=function(n,r){var o=HS(r);if(n===""||n===null||typeof n>"u")return o.plainObjects?Object.create(null):{};for(var s=typeof n=="string"?BS(n,o):n,l=o.plainObjects?Object.create(null):{},f=Object.keys(s),h=0;h<f.length;++h){var _=f[h],m=WS(_,s[_],o,typeof n=="string");l=Ao.merge(l,m,o)}return o.allowSparse===!0?l:Ao.compact(l)},US=LS,VS=zS,KS=vl,qS={formats:KS,parse:VS,stringify:US};const GS=wf(qS),el={StoredContexts:{},defaultHandler:()=>{}},zd={Init:()=>{},Create:n=>{const r=n.method+n.url;return el.StoredContexts[r]=n,YS(n)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:n=>{el.defaultHandler=n}};function YS(n){const r=`[${n.method}] ${n.url}`;return{Call:async s=>{let{url:l,method:f,stream:h,paramType:_}=n;const{po:m,onStream:g,onStreamEnd:y,noDefaultHandle:b=[]}=s??{};(_==="query"||f==="GET")&&m!==void 0&&(l+="?"+GS.stringify(m,{arrayFormat:"comma"}));const w={method:f,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(_==="form"){const E=new FormData;if(m!==void 0)for(const M in m){const C=m[M];E.append(M,C)}w.body=E}else(_==="body"||_===void 0&&n.method!=="GET")&&(w.body=JSON.stringify(m),w.headers["Content-Type"]="application/json;charset=UTF-8");let x={errorCode:0,message:""};const I=Date.now();l=zd.FetchBaseUrl()+l;try{let E=await fetch(l,w);if(E.ok===!1)return x.errorCode=E.status,x.message=E.statusText,x;{const M=new TextDecoder("utf-8");if(h){if(E.body){let C=E.body.getReader(),T="";for(;;){const F=await C.read();if(F.done)break;const le=M.decode(F.value).trim();T+=le;let P=null;try{const Z=le.split("\0");let V=Z[Z.length-1];for(let re=Z.length-2;re>=0;re--)if(Z[re].trim().length!==0){V=Z[re];break}P=await JSON.parse(V)}catch{try{const V=T.split("\0");let re=V[V.length-1];for(let K=V.length-2;K>=0;K--)if(V[K].trim().length!==0){re=V[K];break}P=await JSON.parse(re)}catch{}}if(P!=null&&(Object.keys(P).includes("err_code")?x.errorCode=P.err_code:(x.errorCode=0,x.data=P,T="",F.done?y==null||y(x.data):g==null||g(x.data))),F.done)break}}}else if(E.body){const T=await E.body.getReader().read(),F=M.decode(T.value);if(F==="null")return x;{let le=await JSON.parse(F.replaceAll("\0",""));Object.keys(le).includes("err_code")?(x.errorCode=le.err_code,x.message=le.err_msg):x.data=le}}}}catch(E){console.warn(E),x.errorCode=-1,x.message=E.message}return console.debug(`${r} ${Date.now()-I}ms`),b!==!0&&await el.defaultHandler(x,b),x}}}async function ZS(n){const r=new Promise((o,s)=>{const l=new FileReader;l.onloadend=()=>{l.result?typeof l.result=="string"?o(l.result):s(new Error("Failed to convert file to Base64: Invalid result type.")):s(new Error("Failed to convert file to Base64: Empty result."))},l.onerror=s,l.readAsDataURL(n)});try{return await r}catch{return}}function JS(n,r){var _,m;const o=n.split(","),s=(m=(_=o[0])==null?void 0:_.match(/:(.*?);/))==null?void 0:m[1],l=atob(o[1]);let f=l.length;const h=new Uint8Array(f);for(;f--;)h[f]=l.charCodeAt(f);return new File([h],r,{type:s})}const XS={toBase64:ZS,toFile:JS};exports.ABase=bt;exports.ABaseStyleKeys=Hf;exports.AButton=ln;exports.AButtonStyleKeys=Uf;exports.AButtonTypes=Pm;exports.ACheckBox=yo;exports.ACheckBoxStyleKeys=qf;exports.AClock=iy;exports.AColFrame=hd;exports.ADatePicker=sl;exports.ADatePickerStyleKeys=rd;exports.ADatePickerTypes=ob;exports.ADateRangePicker=il;exports.ADateRangePickerStyleKeys=od;exports.ADialog=hb;exports.ADialogStyleKeys=Gf;exports.ADialogTypes=db;exports.ADivideFrame=xy;exports.AFileBox=Ab;exports.AFileBoxStyleKeys=ed;exports.AFloatMenu=Rb;exports.AFloatMenuKeys=ld;exports.AFrameStyleKeys=sd;exports.AGrow=Kr;exports.AIcon=Mt;exports.AIconButton=vo;exports.AIconButtonStyleKeys=id;exports.AIconButtonTypes=Lm;exports.AIconHOC=pm;exports.AIcons=nl;exports.AInput=wr;exports.AInputStyleKeys=Vf;exports.AInputTypes=Oy;exports.AListView=Fb;exports.AListViewStyleKeys=td;exports.ALoadingBorder=ll;exports.ALoadingBorderKeys=cd;exports.AMultiSelect=o4;exports.AMultiSelectStyleKeys=Zf;exports.ANumInput=Pb;exports.AOverflowFrame=ti;exports.ARowFrame=Jn;exports.ASelect=qr;exports.ASelectStyleKeys=Yf;exports.ASelectTypes=i2;exports.ASpace=Vt;exports.AStepper=y4;exports.AStepperStyleKeys=nd;exports.ASwitch=w4;exports.ASwitchFrame=gd;exports.ASwitchStyleKeys=Xf;exports.ATab=L4;exports.ATabStyleKeys=Qf;exports.ATabTypes=P4;exports.ATable=N3;exports.ATableStyleKeys=ad;exports.AText=bd;exports.ATextArea=Z3;exports.ATextAreaStyleKeys=Kf;exports.ATextAreaTypes=Y3;exports.AThemeButton=Ym;exports.AThemes=na;exports.ATooltip=Of;exports.ATooltipStyleKeys=zf;exports.ATree=Cx;exports.ATreeStyleKeys=Jf;exports.AWrap=bo;exports.AWrapKeys=ud;exports.AWrapTypes=oy;exports.ApiContext=zd;exports.BodyStyleKeys=Wf;exports.CreateADC=yb;exports.Dummy=If;exports.EDir12=ri;exports.EDir4=Ut;exports.IsCursorPointer=Tf;exports.IsFixedShape=Rf;exports.IsInteractive=Ef;exports.NoSelect=Df;exports.Resources=Xn;exports.SetResources=Ky;exports.bound=Zo;exports.cbF=ht;exports.changeSemanticMode=ol;exports.componentStyleKeys=Hm;exports.createEvent=Hr;exports.dateF=ye;exports.defaultPredicate=pd;exports.fileF=XS;exports.getMonthsOptions=ni;exports.getYearsOptions=al;exports.numF=vd;exports.objF=Ce;exports.paletteKeys=jf;exports.paletteModes=ma;exports.refinedDesignTokens=Kt;exports.sF=Q;exports.semanticKeys=Bf;exports.semanticModes=mo;exports.setDir12Style=rl;exports.setDir12StyleElem=Pf;exports.strF=dd;exports.tableF=br;exports.treeF=lr;exports.useADialogCore=pb;exports.useADialogCores=_b;exports.useEvent=yd;exports.useInit=_d;exports.useTheme=Rx;exports.useValues=jt;
|
package/dist/index.es.js
CHANGED
@@ -11471,7 +11471,6 @@ export {
|
|
11471
11471
|
j5 as AWrapTypes,
|
11472
11472
|
C5 as ApiContext,
|
11473
11473
|
gm as BodyStyleKeys,
|
11474
|
-
O5 as ComponentStyleKeys,
|
11475
11474
|
K5 as CreateADC,
|
11476
11475
|
Ep as Dummy,
|
11477
11476
|
Sa as EDir12,
|
@@ -11485,6 +11484,7 @@ export {
|
|
11485
11484
|
Yi as bound,
|
11486
11485
|
xt as cbF,
|
11487
11486
|
Lf as changeSemanticMode,
|
11487
|
+
O5 as componentStyleKeys,
|
11488
11488
|
go as createEvent,
|
11489
11489
|
xe as dateF,
|
11490
11490
|
g3 as defaultPredicate,
|