ados-rcm 1.1.366 → 1.1.367
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 +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -346,7 +346,7 @@ Error generating stack: `+d.message+`
|
|
346
346
|
`,"user"),t.index+=2):(this.quill.insertText(t.index,`
|
347
347
|
`,"user"),t.index+=1)}}findTableParent(e){let t=e;for(;t;){if(t.domNode&&t.domNode.tagName==="TABLE")return t;t=t.parent}return null}hidePicker(){this.removeTooltip(),this.picker&&(this.picker.remove(),this.picker=null),this.tableButton&&this.tableButton.classList.remove("ql-expanded")}}var Iu={},Wb;function LP(){if(Wb)return Iu;Wb=1;var r=Fs;if(process.env.NODE_ENV==="production")Iu.createRoot=r.createRoot,Iu.hydrateRoot=r.hydrateRoot;else{var e=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Iu.createRoot=function(t,n){e.usingClientEntryPoint=!0;try{return r.createRoot(t,n)}finally{e.usingClientEntryPoint=!1}},Iu.hydrateRoot=function(t,n,i){e.usingClientEntryPoint=!0;try{return r.hydrateRoot(t,n,i)}finally{e.usingClientEntryPoint=!1}}}return Iu}var MP=LP();const Vb=il(MP);class DP{constructor(e,t){at(this,"DEFAULTS",{maxRowCount:-1});at(this,"quill");at(this,"options");at(this,"position",null);at(this,"table");at(this,"selectedCell",null);at(this,"menuRoot",null);at(this,"helperTextElement",null);at(this,"scrollTimeout",null);at(this,"SCROLL_DEBOUNCE_TIME",80);at(this,"lastSelectedCellRef",null);at(this,"boundDocClickHandler",this.hideMenu.bind(this));at(this,"boundEditorChangeHandler",this.editorChangeHandler.bind(this));at(this,"boundContextMenuHandler",this.contextMenuHandler.bind(this));at(this,"boundCopyHandler",this.copyHandler.bind(this));at(this,"boundScrollHandler",this.handleScroll.bind(this));at(this,"boundPasteHandler",this.pasteHandler.bind(this));at(this,"menuItems",[]);at(this,"positionCache",new Map);at(this,"POSITION_CACHE_LIFETIME",1e3);at(this,"reactRoot",null);if(this.quill=e,this.options={...this.DEFAULTS,...t},this.table=e.getModule("table"),!this.table){console.error('"table" module not found');return}this.initializeMenuItems(),this.overrideTableMethods(),this.initializeHelperText(),this.attachEventListeners()}initializeMenuItems(){this.menuItems=[{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnRight()},icon:Os.renderToString(v.jsx(Fr,{icon:"AddColRight"})),title:hn.AEditor["Insert Column Right"]},{handler:()=>{(!(this.options.maxRowCount!==void 0&&this.options.maxRowCount>0)||this.getColCount()<(this.options.maxRowCount||0))&&this.table.insertColumnLeft()},icon:Os.renderToString(v.jsx(Fr,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Os.renderToString(v.jsx(Fr,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Os.renderToString(v.jsx(Fr,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Os.renderToString(v.jsx(Fr,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Os.renderToString(v.jsx(Fr,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Os.renderToString(v.jsx(Fr,{icon:"Trash"})),title:hn.AEditor["Delete Table"]}]}overrideTableMethods(){const e=this.table.insertTable;this.table.insertTable=(...n)=>{const i=e.apply(this.table,n),l=this.quill.getSelection();return l&&(this.quill.focus(),setTimeout(()=>this.detectButton(l),0)),i};const t=this.table.deleteTable;this.table.deleteTable=(...n)=>{const i=t.apply(this.table,n);return this.cleanupTableUI(),i}}initializeHelperText(){this.helperTextElement=document.createElement("div"),this.helperTextElement.className=Nn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",Nn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=Nn["ql-tableui-helper__icon"],t.innerHTML=Os.renderToString(v.jsx(Fr,{icon:"MoreHorizontal",size:"xs"})),t.addEventListener("click",n=>{n.preventDefault(),n.stopPropagation(),this.menuRoot?this.hideMenu():this.showMenu()}),this.helperTextElement.appendChild(e),this.helperTextElement.appendChild(t),this.helperTextElement.style.display="none",this.quill.container.appendChild(this.helperTextElement)}attachEventListeners(){this.quill.on("editor-change",this.boundEditorChangeHandler),this.quill.root.addEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.addEventListener("copy",this.boundCopyHandler),this.quill.root.addEventListener("paste",this.boundPasteHandler),window.addEventListener("scroll",this.boundScrollHandler,!0)}removeEventListeners(){this.quill.off("editor-change",this.boundEditorChangeHandler),this.quill.root.removeEventListener("contextmenu",this.boundContextMenuHandler),this.quill.root.removeEventListener("copy",this.boundCopyHandler),this.quill.root.removeEventListener("paste",this.boundPasteHandler),document.removeEventListener("click",this.boundDocClickHandler),window.removeEventListener("scroll",this.boundScrollHandler,!0)}editorChangeHandler(e,t,n,i){e==="selection-change"&&this.detectButton(t)}contextMenuHandler(e){return this.isTable()?(e.preventDefault(),this.showMenu(),!1):!0}copyHandler(e){if(!this.selectedCell||!e.clipboardData)return;e.preventDefault();const t=this.selectedCell.textContent||"";e.clipboardData.setData("text/plain",t)}isTable(e){return e=e||this.quill.getSelection(),e?!!(this.quill.getFormat(e.index).table&&!e.length):!1}getColCount(e){if(e=e||this.quill.getSelection(),!e)return 0;const[t]=this.table.getTable(e);return t?t.rows().reduce((n,i)=>Math.max(i.children.length,n),0):0}showMenu(){if(this.menuRoot){this.hideMenu();return}if(!this.selectedCell)return;this.menuRoot||(this.menuRoot=document.createElement("div"),document.body.appendChild(this.menuRoot));const e=this.getBoundingRectWithCache(this.selectedCell),t=window.innerWidth,n=window.innerHeight,i=I.memo(({item:u,index:h})=>v.jsxs("div",{className:Nn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:Nn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:Nn["ql-tableui-options__item-text"],children:u.title})]},h)),l=()=>v.jsx("div",{className:Nn["ql-tableui-options"],style:{position:"fixed",visibility:"hidden",zIndex:1e4},children:this.menuItems.map((u,h)=>v.jsx(i,{item:u,index:h},h))});try{Vb.createRoot?(this.reactRoot=Vb.createRoot(this.menuRoot),this.reactRoot.render(v.jsx(l,{}))):Fs.render(v.jsx(l,{}),this.menuRoot)}catch{Fs.render(v.jsx(l,{}),this.menuRoot)}document.addEventListener("click",this.boundDocClickHandler),requestAnimationFrame(()=>{if(!this.menuRoot)return;const u=this.menuRoot.firstElementChild;if(u){const h=u.getBoundingClientRect();let g=e.bottom+window.scrollY-8,m=e.left+window.scrollX;m+h.width>t&&(m=e.right-h.width+window.scrollX),g+h.height>n+window.scrollY&&(g=e.top-h.height+window.scrollY),u.style.top=`${g}px`,u.style.left=`${m}px`,u.style.visibility="visible"}})}hideMenu(){this.menuRoot&&(document.removeEventListener("click",this.boundDocClickHandler),this.reactRoot?(this.reactRoot.unmount(),this.reactRoot=null):Fs.unmountComponentAtNode(this.menuRoot),this.menuRoot.remove(),this.menuRoot=null)}detectButton(e){if(e)if(this.isTable(e)){const[t,n]=this.quill.getLine(e.index);if(!t||!t.domNode)return;const i=t.domNode,l=`${i.tagName}-${i.offsetLeft}-${i.offsetTop}`;this.selectedCell===i||this.lastSelectedCellRef===l||(this.clearAllTableCellOutlines(),i.style.outline="2px solid var(--acent-brand)",i.style.outlineOffset="-1px",this.selectedCell=i,this.lastSelectedCellRef=l),this.showHelperText();const h=this.quill.container.getBoundingClientRect(),g=i.getBoundingClientRect(),m={bottom:g.bottom-h.top,height:g.height,left:g.left-h.left,right:g.right-h.left,top:g.top-h.top,width:g.width,x:g.x,y:g.y,toJSON:()=>JSON.stringify(m)};this.position&&(this.position.top!==m.top||this.position.left!==m.left)&&this.hideMenu(),this.position=m}else this.cleanupTableUI()}clearAllTableCellOutlines(){this.selectedCell&&(this.selectedCell.style.removeProperty("outline"),this.selectedCell.style.removeProperty("outline-offset"),this.selectedCell=null),this.quill.root.querySelectorAll("td, th").forEach(t=>{t instanceof HTMLElement&&(t.style.removeProperty("outline"),t.style.removeProperty("outline-offset"))}),this.lastSelectedCellRef=null}showHelperText(){if(!this.selectedCell||!this.helperTextElement)return;const e=this.quill.getSelection();if(!e)return;const[t]=this.table.getTable(e);if(!t||!t.domNode)return;const i=t.domNode.getBoundingClientRect(),l=this.quill.container.getBoundingClientRect();if(!(i.bottom<l.top+5||i.top>l.bottom-5)){let h=i.top-l.top-20;i.top<l.top&&(h=5),this.helperTextElement.style.display="block",this.helperTextElement.style.left=`${i.left-l.left}px`,this.helperTextElement.style.top=`${h}px`}else this.helperTextElement.style.display="none"}removeHelperText(){this.helperTextElement&&(this.helperTextElement.style.display="none")}handleScroll(){this.removeHelperText(),this.hideMenu(),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{const e=this.quill.getSelection();e&&this.isTable(e)&&this.detectButton(e),this.scrollTimeout=null},this.SCROLL_DEBOUNCE_TIME)}destroy(){this.removeEventListeners(),this.cleanupTableUI(),this.helperTextElement&&this.helperTextElement.remove(),this.scrollTimeout&&(clearTimeout(this.scrollTimeout),this.scrollTimeout=null),this.positionCache.clear(),this.reactRoot=null,this.selectedCell=null,this.helperTextElement=null,this.position=null,this.options=this.DEFAULTS,this.menuRoot=null,this.table=null}createItemClickHandler(e){return t=>{t.preventDefault(),t.stopPropagation(),this.quill.focus(),e.handler(),this.hideMenu(),this.detectButton(this.quill.getSelection())}}getBoundingRectWithCache(e){const t=Date.now(),n=this.positionCache.get(e);if(n&&t-n.timestamp<this.POSITION_CACHE_LIFETIME)return n.rect;const i=e.getBoundingClientRect();return this.positionCache.set(e,{rect:i,timestamp:t}),i}pasteHandler(){this.clearAllTableCellOutlines(),setTimeout(()=>{const e=this.quill.getSelection();e&&this.detectButton(e)},0)}cleanupTableUI(){this.removeHelperText(),this.clearAllTableCellOutlines(),this.hideMenu(),this.lastSelectedCellRef=null}}const lS=[1,2,3,!1,4],cS=$e.import("ui/icons");cS.table=Os.renderToString(v.jsx(Fr,{icon:"Table",strokeWidth:2.5}));cS.divider=Os.renderToString(v.jsx(Fr,{icon:"Minus",strokeWidth:2.5}));const OP={altTip:hn.AEditor["Image size adjust"],center:hn.AEditor.Center,left:hn.AEditor.Left,right:hn.AEditor.Right,inputTip:hn.AEditor["Input on mouse down"],restore:hn.AEditor.Restore},PP=$e.import("blots/block/embed");class rm extends PP{}at(rm,"blotName","divider"),at(rm,"tagName","hr");$e.register({"modules/imageCompress":ZD,"modules/resize":JD,"modules/tablePicker":IP,"modules/tableUI":DP,"formats/header":qP(lS),"formats/divider":rm},!0);const NP=["bold","italic","underline","strike","blockquote","table","size","header","color","indent","list","align","image","link","video","divider"],jP=[[{header:lS}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],FP=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",editorRef:i,useValue:l,useError:u,placeholder:h,tabIndex:g,autoFocus:m,editorProps:M,wrapProps:T,helperText:C,label:_,labelProps:S,wrapType:D,style:A,minHeight:b="100%",contentHeight:k,maxHeight:O=1e3,toolbarSize:H="Med",...q}=r,G=I.useMemo(()=>n==="ReadOnly",[n]),Y=I.useMemo(()=>k?20:0,[k]),[de,ee]=I.useState(42),ue=I.useMemo(()=>G?0:de,[G,de]),P=I.useMemo(()=>u?20:0,[u]),[te,K]=I.useState(k),[ne,oe]=I.useState(!1),[ce,me]=I.useState(!1),ae=I.useRef(null),be=I.useRef(0),pe=I.useRef(0),xe=I.useCallback(it=>{if(!ne||!k)return;const rt=it.clientY-pe.current,mt=Math.min(O,Math.max(k,be.current+rt));K(mt)},[k,ne,O]),Le=I.useCallback(()=>{oe(!1),me(!1),window.removeEventListener("mousemove",xe),window.removeEventListener("mouseup",Le)},[xe]),Ne=I.useCallback(it=>{if(!te)return;if(it.detail===2){K(k);return}oe(!0),me(!0),be.current=te,pe.current=it.clientY;const rt=vt=>{if(!k)return;const Ke=vt.clientY-pe.current,Ze=Math.min(O,Math.max(k,be.current+Ke));K(Ze)},mt=()=>{oe(!1),me(!1),window.removeEventListener("mousemove",rt),window.removeEventListener("mouseup",mt)};window.addEventListener("mousemove",rt),window.addEventListener("mouseup",mt)},[k,te,O]),Ve=I.useMemo(()=>{if(k){if(te)switch(n){case"ReadOnly":return te;case"Raw":return te+P;default:return te+ue+P}}else return b},[k,te,n,ue,P,b]),Ae=I.useMemo(()=>BP(t)?"Error":n,[t,n]),[ot,pt]=pn(l,""),[Xe,Ge]=pn(u,!1),[Oe,ke]=I.useState(()=>{if(!ot)return new $t;try{const it=document.createElement("div");return it.innerHTML=ot,new $e(it,{readOnly:!0}).getContents()}catch(it){return console.warn("Error parsing HTML content:",it),new $t}}),Te=I.useMemo(()=>Math.floor(5e4*.68234)*3,[]),Pe=I.useCallback(it=>it.ops?it.ops.reduce((rt,mt)=>{if(typeof mt.insert=="string"){const vt=mt.insert.replace(/\n/g,"");return rt+vt.split("").reduce((Ke,Ze)=>Ke+(Ze.charCodeAt(0)<=127?1:3),0)}return typeof mt.insert=="object"&&mt.insert.image?rt+mt.insert.image.length:rt},0):0,[]),Re=I.useMemo(()=>({clipboard:{matchVisual:!1},imageCompress:{quality:.5},...!G&&{resize:{locale:OP},table:!0,tablePicker:!0,tableUI:!0,toolbar:{container:jP,handlers:{divider:function(){const it=this.quill,rt=it.getSelection(!0),mt=it.getModule("table"),vt=mt&&(()=>{try{return!!mt.getTable(rt)[0]}catch{return!1}})();vt||it.insertText(rt.index,`
|
348
348
|
`,$e.sources.USER);const Ke=vt?0:1;it.insertEmbed(rt.index+Ke,"divider",!0,$e.sources.USER),it.setSelection(rt.index+Ke+1,0,$e.sources.SILENT)}}}}}),[G]),et=I.useCallback((it,rt,mt,vt)=>{var Ee;if(!pt||mt!=="user")return;const Ke=vt.getContents(),Ze=vt.getHTML(),yt=((Ee=Ke.ops)==null?void 0:Ee.length)===1&&Ke.ops[0].insert===`
|
349
|
-
`;if(Ge){const Je=Pe(Ke);Ge(Je>Te)}pt(yt?"":Ze),ke(Ke)},[Pe,Te,Ge,pt]),ft=I.useCallback(it=>{if(!it)return;const rt=it.getEditor();if(!rt)return;const mt=[],vt=rt.root,Ke=document.querySelector(".ql-toolbar.ql-snow"),Ze=document.querySelector(".ql-header .ql-picker-label"),yt=document.querySelector("#editor-resizer .input-wrapper input");if(Ke){const Je=new ResizeObserver(dt=>{requestAnimationFrame(()=>{for(const _t of dt)ee(_t.contentRect.height)})});Je.observe(Ke),mt.push(()=>Je.disconnect())}const Ee={input:Je=>{const dt=Je.target;dt.value=dt.value.replace(/[^0-9]/g,"");const _t=parseInt(dt.value);_t>100&&(dt.value="100"),_t<1&&(dt.value="1")},keyDown:Je=>{if(Je.key!=="Delete"&&Je.key!=="Backspace")return;const dt=document.querySelector("#editor-resizer");if(!dt)return;const _t=dt.getBoundingClientRect(),Lt=document.querySelectorAll(".ql-editor img"),qe=Array.from(Lt).find(Ct=>{const Mt=Ct.getBoundingClientRect();return Math.abs(Mt.left-_t.left)<5&&Math.abs(Mt.top-_t.top)<5});if(qe){dt.style.display="none";const Ct=$e.find(qe),Mt=rt.getIndex(Ct);Ct.remove(),rt.setSelection(Mt,0,$e.sources.USER)}},headerExpand:()=>{const Je=rt.getFormat();if(!Je.header)return;const dt=Je.header,_t=document.querySelectorAll(".ql-header .ql-picker-item"),Lt=Array.from(_t).find(qe=>qe.getAttribute("data-value")===dt.toString());Lt&&(Lt.classList.add("ql-selected"),Ze==null||Ze.classList.add("ql-active"))}};return yt==null||yt.addEventListener("input",Ee.input),vt==null||vt.addEventListener("keydown",Ee.keyDown),Ze==null||Ze.addEventListener("click",Ee.headerExpand),mt.push(()=>{yt==null||yt.removeEventListener("input",Ee.input),vt==null||vt.removeEventListener("keydown",Ee.keyDown),Ze==null||Ze.removeEventListener("click",Ee.headerExpand)}),()=>mt.forEach(Je=>Je())},[]),wt=I.useCallback(it=>{i&&(typeof i=="function"?i(it):i.current=it),it&&ft(it)},[i,ft]);return v.jsx(Uc,{helperText:C,label:_,wrapType:D,labelProps:S,errorMessage:t,wrapProps:{...T,style:{...T==null?void 0:T.style,height:Ve,maxHeight:O,minHeight:"fit-content",overflow:k===void 0?"hidden":void 0}},children:v.jsxs(Ur,{...q,className:Fe.clsx(q.className,Nn.AEditorContainer),style:{...A,height:Ve},children:[v.jsx(bh,{...M,ref:wt,className:Fe.clsx(M==null?void 0:M.className,Nn.AEditor,Nn[Ae],k===void 0&&Nn.NoOverflow),formats:NP,modules:Re,placeholder:h,readOnly:G,theme:"snow",value:Oe,style:{"--icon-size":`${H==="Med"?18:24}px`,"--toolbar-padding":`${H==="Med"?8:13}px`,"--content-height":te?`${te-Y}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Os.renderToString(v.jsx(Fr,{icon:"EditorArrow"})))}`},onChange:et}),k&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:ae,className:Nn.Resizer,style:{height:Y,bottom:u&&!G?P:0},onMouseDown:Ne}),ce&&v.jsx("div",{className:Fe.clsx(Nn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!G?P+2:2},children:`${Math.round(te)}px`})]}),u&&!G&&v.jsx("div",{className:Fe.clsx(Nn.LimitContainer,"NoSelect"),style:{minHeight:P},children:v.jsxs(Xl,{className:Nn.Limit,children:[v.jsx("span",{className:Xe?Nn.Error:void 0,children:nm(Pe(Oe))})," / ",nm(Te)]})})]})})};function BP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function qP(r){const e=$e.import("formats/header");return e.whitelist=r,e}const nm=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`};function eh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=eh(t.children,e);if(n)return n}}function sd(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&sd(t.children,e)}function uS(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>t.push(e(n,i))),t}function fS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!fS(t.children,e))return!1}return!0}function HP(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function zP(r){Array.isArray(r)||(r=[r]);let e=0;return sd(r,()=>e++),e}function $P(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,e))}),l=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),h=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(h,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),h=i.children.findIndex(g=>n(g,t));return u===void 0||h===void 0?null:(i.children.splice(u,1),i.children.splice(h,0,e),i.children=[...i.children],[...r])}return null}function UP(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function WP(r,e,t){Array.isArray(r)||(r=[r]);const n=uS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const h=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(M=>t(M,u))});h&&l.push(h)}return i}const Qa={find:eh,forEach:sd,map:uS,every:fS,filter:HP,length:zP,replace:$P,descendants:UP,ancestors:WP},VP="_AWrap_f5le3_1",GP="_AContainer_f5le3_10",ZP="_ATree_f5le3_18",YP="_ATreeBody_f5le3_30",KP="_CoverBorder_f5le3_36",XP="_InsertBorder_f5le3_45",JP="_ATreeHeader_f5le3_76",QP="_ATreeBodyHeader_f5le3_82",eN="_ATreeBodyHeaderResources_f5le3_92",tN="_ATreeItem_f5le3_98",rN="_IsSelectUsed_f5le3_114",nN="_IsSelected_f5le3_117",iN="_IsSearchSelected_f5le3_122",oN="_IsHovered_f5le3_133",sN="_CheckBox_f5le3_137",aN="_Indents_f5le3_149",lN="_ExpandIcon_f5le3_156",cN="_Content_f5le3_168",uN="_RightSticky_f5le3_177",fN="_SearchInputWrap_f5le3_188",dN="_SearchInput_f5le3_188",hN="_RightAddon_f5le3_200",pN="_RightAddonIcon_f5le3_211",gN="_Loader_f5le3_218",fn={AWrap:VP,AContainer:GP,ATree:ZP,ATreeBody:YP,CoverBorder:KP,InsertBorder:XP,ATreeHeader:JP,ATreeBodyHeader:QP,ATreeBodyHeaderResources:eN,ATreeItem:tN,IsSelectUsed:rN,IsSelected:nN,IsSearchSelected:iN,IsHovered:oN,CheckBox:sN,Indents:aN,ExpandIcon:lN,Content:cN,RightSticky:uN,SearchInputWrap:fN,SearchInput:dN,RightAddon:hN,RightAddonIcon:pN,Loader:gN},mN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:te,TreeItemClassName:K,searchItemStyle:ne,searchItemClassName:oe,height:ce}=r,{children:me}=I.useMemo(()=>t,[t]),[ae,be]=I.useMemo(()=>g,[g]),[pe,xe]=I.useMemo(()=>m,[m]),[Le,Ne]=I.useMemo(()=>M,[M]),Ve=I.useMemo(()=>i?i(t):!1,[i,t]),Ae=I.useMemo(()=>!n||l?l:n(t),[n,l,t]),ot=I.useMemo(()=>ae.some(qe=>e(qe,t)),[ae,e,t]),pt=I.useMemo(()=>!me||me.length<1?"noChild":ot?"expanded":"collapsed",[me,ot]),Xe=I.useMemo(()=>{const qe=D[pt];return am.includes(qe)?v.jsx(Fr,{style:{width:A,height:A},icon:qe}):qe},[D,A,pt]),Ge=I.useCallback(qe=>{!be||pt==="noChild"||(be(ot?ae.filter(Ct=>!e(Ct,t)):[...ae,t]),qe.stopPropagation())},[be,ae,ot,t,e,pt]),Oe=I.useMemo(()=>pe.some(qe=>e(qe,t)),[pe,e,t]),ke=I.useCallback(()=>{!xe||Ae||(xe(b?Oe?pe.filter(qe=>!e(qe,t)):[...pe,t]:[t]),Le&&Ne&&Le.items.some(qe=>e(qe,t))&&Ne({...Le,item:t}))},[b,Ae,Oe,Le,Ne,xe,e,pe,t]),Te=I.useMemo(()=>Le==null?void 0:Le.items.some(qe=>e(qe,t)),[Le,e,t]),Pe=I.useMemo(()=>Te&&(Le==null?void 0:Le.item)&&e(Le.item,t),[Te,Le,e,t]),Re=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{if(Pe&&Re.current&&P.current){const{top:qe,bottom:Ct}=Re.current.getBoundingClientRect(),{top:Mt,bottom:Sr}=P.current.getBoundingClientRect();(qe<Mt||Ct>Sr)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[P,Pe]);const[et,ft]=I.useState(!1),wt=I.useCallback(()=>!Ae&&ft(!0),[Ae]),it=I.useCallback(()=>!Ae&&ft(!1),[Ae]),rt=I.useMemo(()=>Qa.map(t,qe=>qe).filter(qe=>!(n!=null&&n(qe))&&!(i!=null&&i(qe))),[n,i,t]),mt=I.useMemo(()=>!S||!b?!1:Oe&&rt.some(qe=>pe.some(Ct=>e(qe,Ct)))&&rt.some(qe=>!pe.some(Ct=>e(qe,Ct))),[S,b,Oe,rt,e,pe]),vt=I.useMemo(()=>S?b?rt.every(qe=>pe.some(Ct=>e(qe,Ct))):pe.some(qe=>e(qe,t)):!1,[S,b,rt,t,e,pe]),Ke=I.useCallback(()=>{if(!(!xe||Ae))if(b)if(Oe){const qe=pe.filter(Ct=>!(i!=null&&i(Ct))&&!(n!=null&&n(Ct))&&rt.some(Mt=>e(Mt,Ct)));qe.length>0&&xe(pe.filter(Ct=>!qe.some(Mt=>e(Ct,Mt))))}else{const qe=rt.filter(Ct=>!(i!=null&&i(Ct))&&!(n!=null&&n(Ct))&&!pe.some(Mt=>e(Mt,Ct)));qe.length>0&&xe([...pe,...qe])}else xe([t])},[Ae,n,i,b,xe,e,Oe,pe,rt,t]),Ze=I.useCallback(qe=>{Ae||Ke(),qe.stopPropagation()},[Ae,Ke]),yt=I.useMemo(()=>{if(!S||!b||Ae)return"";if(Oe){const Ct=pe.filter(Mt=>!(i!=null&&i(Mt))&&!(n!=null&&n(Mt))&&rt.some(Sr=>e(Sr,Mt)));if(Ct.length>0)return ue["deselect n"](Ct.length)}const qe=rt.filter(Ct=>!(i!=null&&i(Ct))&&!(n!=null&&n(Ct))&&!pe.some(Mt=>e(Mt,Ct)));return ue["select n"](qe.length)},[n,i,ue,Ae,S,b,Oe,rt,e,pe]),Ee=I.useMemo(()=>Tr.getContent(ee,r),[ee,r]),Je=I.useMemo(()=>Tr.getContent(te,r),[r,te]),dt=I.useMemo(()=>Tr.getContent(K,r),[r,K]),_t=I.useMemo(()=>Tr.getContent(oe,r),[r,oe]),Lt=I.useMemo(()=>Tr.getContent(ne,r),[r,ne]);return v.jsxs(I.Fragment,{children:[v.jsxs(Ur,{className:Fe.clsx(fn.ATreeItem,Oe&&fn.IsSelected,!Ae&&(et||O)&&fn.IsHovered,Te&&fn.IsSearched,Pe&&(_t||fn.IsSearchSelected),!Ve&&fn.IsSelectUsed,"NoSelect",dt),style:{...Je,...Pe&&Lt,"--ATreeItem_height":`${ce}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:qe=>C==null?void 0:C(qe,t),onDragEnd:qe=>_==null?void 0:_(qe,t),onClick:ke,abaseRef:Re,isDisabled:Ae,onMouseOver:qe=>q==null?void 0:q(qe,t),onMouseLeave:qe=>G==null?void 0:G(qe,t),children:[S&&v.jsx(Uu,{style:{visibility:Ae||Ve?"hidden":"visible",zIndex:Ae||Ve?0:2},className:fn.CheckBox,useCheck:[+vt,Ke],onClick:Ze,isIndeterminate:mt,onMouseOver:wt,onMouseOut:it,tooltip:yt,isDisabled:Ae}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((qe,Ct)=>{const Mt=Ct===u.length-1;return v.jsx(I2,{value:qe,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(yN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:Mt}).expanded:v.jsx(vN,{iconWidth:A,isLast:Mt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(bN,{iconWidth:A})}},Ct)})}),Xe&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ge,children:Xe}),v.jsx("div",{className:Fe.clsx(fn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(et||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:te,TreeItemClassName:K,searchItemClassName:_t,searchItemStyle:ne,height:ce})}),Ee&&v.jsx("div",{className:fn.RightSticky,children:Ee})]}),ot&&(me==null?void 0:me.map((qe,Ct)=>v.jsx(de,{isEqual:e,item:qe,selectDisabled:n,selectUnused:i,indents:[...u.map(Mt=>Mt==="IsLast"?"Collapsed":Mt),Ct===me.length-1?"IsLast":"Expanded"],extIndents:h,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(et||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:te,TreeItemClassName:K,searchItemClassName:_t,searchItemStyle:ne,height:ce},Ct)))]})},vN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),yN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),bN=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),_N=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:h,isLoading:g,resources:m,maxLength:M,autoFocus:T}=r,C=I.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),_=I.useCallback(D=>{n(D)},[n]),S=I.useMemo(()=>h||g?-1:void 0,[h,g]);return v.jsx(Jl,{className:fn.SearchInput,wrapProps:{className:fn.SearchInputWrap},isDisabled:h,tabIndex:S,useValue:[(t==null?void 0:t.keyword)??"",_],onKeyDown:C,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(xN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},xN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,h=I.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(S=>t.item&&e(S,t.item))+1,[t,e]),g=I.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=I.useMemo(()=>h<2,[h]),M=I.useMemo(()=>h>=g,[h,g]),T=I.useCallback(S=>{S.stopPropagation(),!m&&n()},[n,m]),C=I.useCallback(S=>{S.stopPropagation(),!M&&i()},[i,M]),_=I.useCallback(S=>{S.stopPropagation(),l()},[l]);return v.jsx("div",{className:Fe.clsx(fn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[h,"/",g,v.jsx(Ur,{onClick:T,isDisabled:m,children:v.jsx(Fr,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:C,isDisabled:M,children:v.jsx(Fr,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},SN=r=>{var Wr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:h,showCheckbox:g,iconWidth:m=24,icons:M={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:T,isSelectMulti:C=!1,noSearch:_=!1,isDraggable:S,noSyncSearchSelect:D=!1,actionRef:A,placeholder:b,searchPredicate:k=wN,isDisabled:O,isLoading:H,ContentRenderer:q=CN,TreeItemRenderer:G=mN,RightStickyAddon:Y,TopRightAddon:de,TreeTopAddon:ee,resources:ue,maxLength:P,autoFocus:te,TreeItemStyle:K,TreeItemClassName:ne,OverflowPadding:oe,insertBorder:ce,width:me,searchItemClassName:ae,searchItemStyle:be,height:pe=40,...xe}=r,Le=I.useMemo(()=>({...hn.ATree,...ue}),[ue]),Ne=I.useCallback((lt,Rt)=>e!==void 0?Array.isArray(e)?e.every(xt=>el.isEqual(lt[xt],Rt[xt])):el.isEqual(lt[e],Rt[e]):el.isEqual(lt,Rt),[e]),Ve=I.useRef(null),[Ae,ot]=pn(i,[]),pt=I.useMemo(()=>Qa.map(Ae,lt=>lt),[Ae]),[Xe,Ge]=pn(l,[]),[Oe,ke]=pn(u,[]),[Te,Pe]=pn(h,void 0),Re=I.useCallback(lt=>{if(O||!Ge||Xe.some(Qe=>Ne(Qe,lt)))return;const Rt=[];let xt=lt;for(;xt;){const Qe=xt;Xe.find(Pt=>Ne(Pt,Qe))||Rt.push(Qe),xt=pt.find(Pt=>{var Q;return(Q=Pt.children)==null?void 0:Q.some(Be=>Ne(Be,Qe))})}Ge([...Xe,...Rt])},[Xe,O,Ne,Ge,pt]),et=I.useCallback(()=>{!Ge||O||Ge([...pt])},[pt,O,Ge]),ft=I.useCallback(()=>{!Ge||O||Ge([])},[Ge,O]),wt=I.useCallback(lt=>{!ke||O||n!=null&&n(lt)||(ke([lt]),Re(lt))},[ke,O,n,Re]),it=I.useCallback(lt=>{if(!Pe||O)return;if(!lt||_){Pe(void 0),D||ke==null||ke([]);return}const Rt=Qa.filter(Ae,Qe=>k(lt,Qe));let xt;if(Rt.find(Qe=>(Te==null?void 0:Te.item)&&Ne(Qe,Te.item))?xt=Te==null?void 0:Te.item:Rt.length>0&&(xt=Rt[0]),Pe({keyword:lt,items:Rt,item:xt}),xt&&Re(xt),ke&&!D)if(C)ke(Rt);else{const Qe=Rt.find(Pt=>xt&&Ne(Pt,xt));ke(Qe?[Qe]:[])}},[Ae,O,Ne,k,Pe,ke,Re,D,_,C,Te]),rt=I.useRef(!1);I.useEffect(()=>{rt.current=!0},[Ae]),I.useEffect(()=>{Te&&rt.current&&(it(Te.keyword),rt.current=!1)},[it,Te]);const mt=I.useCallback(()=>{if(!Te||!Pe||O)return;let lt=Te.items.findIndex(Rt=>Te.item&&Ne(Rt,Te.item))-1;lt<0||(Pe({...Te,item:Te.items[lt]}),Re(Te.items[lt]),D||wt(Te.items[lt]))},[Te,Re,Pe,O,wt,Ne,D]),vt=I.useCallback(()=>{if(!Te||!Pe||O)return;let lt=Te.items.findIndex(Rt=>Te.item&&Ne(Rt,Te.item))+1;lt>=Te.items.length||(Pe({...Te,item:Te.items[lt]}),Re(Te.items[lt]),D||wt(Te.items[lt]))},[Te,Re,O,Pe,wt,Ne,D]),Ke=I.useCallback(()=>{if(!Te||!Pe||O)return;let lt=Te.items.findIndex(xt=>Te.item&&Ne(xt,Te.item));if(!D||n!=null&&n(Te.items[lt])){vt();return}if(Oe.some(xt=>Te.item&&Ne(xt,Te.item))){let xt=lt+1;const Qe=Te.items[xt];if(xt>=Te.items.length)return;Pe({...Te,item:Qe}),wt(Qe)}else wt(Te.items[lt])},[Te,Pe,O,Oe,D,vt,Ne,wt,n]),[Ze,yt]=I.useState(!1),Ee=I.useCallback(()=>yt(!0),[]),Je=I.useCallback(()=>yt(!1),[]),dt=I.useMemo(()=>n?Qa.map(Ae,lt=>lt).filter(lt=>!n(lt)):t?Qa.map(Ae,lt=>lt).filter(lt=>!t(lt)):Qa.map(Ae,lt=>lt),[n,t,Ae]),_t=I.useMemo(()=>!g||!C?!1:Oe.length>0&&dt.length>Oe.length,[g,C,Oe,dt]),Lt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&dt.length===Oe.length,[g,C,Oe,dt]),qe=I.useCallback(()=>{if(!ke||!C||O)return;const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&dt.some(xt=>Ne(xt,Rt)));if(lt.length>0)ke(Oe.filter(Rt=>!lt.some(xt=>Ne(Rt,xt))));else{const Rt=dt.filter(xt=>!(n!=null&&n(xt))&&!(t!=null&&t(xt))&&!Oe.some(Qe=>Ne(Qe,xt)));Rt.length>0&&ke([...Oe,...Rt])}},[C,O,n,t,ke,Oe,dt,Ne]),Ct=I.useMemo(()=>{if(!g||!C||O)return"";const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&dt.some(xt=>Ne(xt,Rt)));if(lt.length>0)return Le["deselect n"](lt.length);{const Rt=dt.filter(xt=>!(n!=null&&n(xt))&&!(t!=null&&t(xt))&&!Oe.some(Qe=>Ne(Qe,xt)));return Le["select n"](Rt.length)}},[n,t,O,Le,g,C,dt,Oe,Ne]),[Mt,Sr]=I.useState(null),[Br,Pr]=I.useState(null),ge=I.useCallback(lt=>{!S||O||Sr(lt)},[O,S]),re=I.useCallback((lt,Rt)=>{if(!S||O||!Mt||(lt.preventDefault(),lt.stopPropagation(),Pr(Rt),!ot))return;const xt=Qa.replace(Ae,Mt,Rt,Ne);xt&&ot(xt)},[S,Ae,Mt,O,ot,Ne]),He=I.useCallback(()=>{if(!S||O||!Mt||!Br||!ot||Ne(Mt,Br))return;const lt=Qa.replace(Ae,Mt,Br,Ne);lt&&(ot(lt),Sr(null))},[S,ot,Ae,Mt,Br,Ne,O]);I.useEffect(()=>{var lt;g||(lt=Ve.current)==null||lt.scrollTo(0,0)},[g,Ve]),I.useEffect(()=>{!C&&Oe.length>1&&(ke==null||ke([Oe[Oe.length-1]]))},[C,ke,Oe]),I.useEffect(()=>{A&&(A.current={expandAll:et,collapseAll:ft})},[A,et,ft]),I.useEffect(()=>{if(!t||!ke)return;const lt=Oe.filter(Rt=>!t(Rt));Oe.length!==lt.length&&ke(lt)},[t,Oe,ke]),I.useEffect(()=>{if(!n||!ke)return;const lt=Oe.filter(Rt=>!n(Rt));Oe.length!==lt.length&&ke(lt)},[n,Oe,ke]),I.useEffect(()=>{Pe&&Pe(void 0)},[Pe]);const[ct,Bt]=I.useState(!1);I.useEffect(()=>{Bt(lt=>!lt)},[Ae]);const[St,kt]=I.useState(null),Gt=I.useCallback((lt,Rt)=>{O||(lt.stopPropagation(),lt.preventDefault(),kt(Rt))},[O]),jt=I.useCallback((lt,Rt)=>{St===null||O||Ne(Rt,St)&&(lt.stopPropagation(),lt.preventDefault(),kt(null))},[St,O,Ne]),ir=I.useRef(null),[ur,Er]=I.useState(!1),[lr,yr]=I.useState((Wr=ir.current)==null?void 0:Wr.scrollHeight);return I.useEffect(()=>{if(Xe.length<0)return;const lt=Ve.current,Rt=ir.current,xt=lt.clientHeight<Rt.clientHeight;yr(xt?Rt.scrollHeight:lt.clientHeight),Er(xt)},[Xe]),v.jsxs(Ur,{...xe,isDisabled:O,className:Fe.clsx(xe.className,fn.AWrap),children:[(!_||de)&&v.jsxs(si,{className:fn.ATreeHeader,children:[!_&&v.jsx(_N,{isEqual:Ne,searchResult:Te,initSearch:it,searchUp:mt,searchDown:vt,searchEnter:Ke,isLoading:H,isDisabled:O,resources:Le,maxLength:P,autoFocus:te}),!_&&de&&v.jsx(mn,{w:8}),de]}),(!_||de||g&&C||S)&&v.jsx(hm,{isLoading:H&&Ae.length!==0}),(g&&C||S)&&v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Uu,{className:fn.CheckBox,useCheck:[+Lt,()=>qe()],isIndeterminate:_t,onMouseOver:Ee,onMouseOut:Je,isDisabled:O,tooltip:Ct}),Le.Items,v.jsx(Yc,{}),v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:ur?8:0},children:[v.jsx("span",{children:g&&Le["*Click row for single select"]}),v.jsx("span",{children:S&&Le["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Ve,className:Fe.clsx(xe.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:me||"fit-content",marginRight:oe&&ur?8:0},children:[v.jsxs("div",{ref:ir,className:fn.ATreeBody,children:[Ae.length===0?H?v.jsx(AN,{text:Le["Loading Contents..."]}):b:ee,Ae.map((lt,Rt)=>v.jsx(G,{isEqual:Ne,indents:[],extIndents:T,item:lt,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Xe,Ge],useSelect:[Oe,ke],useSearch:[Te,Pe],onDragStart:ge,onDragOver:re,onDragEnd:He,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&Ze,ContentRenderer:q,TreeItemRenderer:G,RightStickyAddon:Y,resources:Le,containerRef:Ve,TreeItemStyle:K,TreeItemClassName:ne,hoverdItem:St,onMouseOver:Gt,onMouseLeave:jt,searchItemClassName:ae,searchItemStyle:be,height:pe},`${Rt}${ct}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${pe}px`,height:ur?lr:"100%"}})]})]})})]})},CN=r=>{const{item:e}=r,t={};return Kt.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function wN(r,e){return Kt.some(e,(t,n)=>{var i;return(i=Kt.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const AN=r=>{const{text:e}=r;return v.jsxs(si,{className:Fe.clsx(fn.Loader,"NoSelect"),children:[v.jsx(Fr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(z2,{text:e})]})};var $g,Gb;function Qu(){return Gb||(Gb=1,$g=TypeError),$g}const TN={},EN=Object.freeze(Object.defineProperty({__proto__:null,default:TN},Symbol.toStringTag,{value:"Module"})),kN=tA(EN);var Ug,Zb;function _h(){if(Zb)return Ug;Zb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,h=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,M=typeof WeakSet=="function"&&WeakSet.prototype,T=M?WeakSet.prototype.has:null,C=typeof WeakRef=="function"&&WeakRef.prototype,_=C?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,D=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,k=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,G=RegExp.prototype.test,Y=Array.prototype.concat,de=Array.prototype.join,ee=Array.prototype.slice,ue=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,me=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ge){return ge.__proto__}:null);function ae(ge,re){if(ge===1/0||ge===-1/0||ge!==ge||ge&&ge>-1e3&&ge<1e3||G.call(/e/,re))return re;var He=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ge=="number"){var ct=ge<0?-ue(-ge):ue(ge);if(ct!==ge){var Bt=String(ct),St=k.call(re,Bt.length+1);return O.call(Bt,He,"$&_")+"."+O.call(O.call(St,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(re,He,"$&_")}var be=kN,pe=be.custom,xe=Re(pe)?pe:null,Le={__proto__:null,double:'"',single:"'"},Ne={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ug=function ge(re,He,ct,Bt){var St=He||{};if(wt(St,"quoteStyle")&&!wt(Le,St.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(wt(St,"maxStringLength")&&(typeof St.maxStringLength=="number"?St.maxStringLength<0&&St.maxStringLength!==1/0:St.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=wt(St,"customInspect")?St.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(wt(St,"indent")&&St.indent!==null&&St.indent!==" "&&!(parseInt(St.indent,10)===St.indent&&St.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(wt(St,"numericSeparator")&&typeof St.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gt=St.numericSeparator;if(typeof re>"u")return"undefined";if(re===null)return"null";if(typeof re=="boolean")return re?"true":"false";if(typeof re=="string")return dt(re,St);if(typeof re=="number"){if(re===0)return 1/0/re>0?"0":"-0";var jt=String(re);return Gt?ae(re,jt):jt}if(typeof re=="bigint"){var ir=String(re)+"n";return Gt?ae(re,ir):ir}var ur=typeof St.depth>"u"?5:St.depth;if(typeof ct>"u"&&(ct=0),ct>=ur&&ur>0&&typeof re=="object")return pt(re)?"[Array]":"[Object]";var Er=Sr(St,ct);if(typeof Bt>"u")Bt=[];else if(mt(Bt,re)>=0)return"[Circular]";function lr(or,cr,zr){if(cr&&(Bt=ee.call(Bt),Bt.push(cr)),zr){var hr={depth:St.depth};return wt(St,"quoteStyle")&&(hr.quoteStyle=St.quoteStyle),ge(or,hr,ct+1,Bt)}return ge(or,St,ct+1,Bt)}if(typeof re=="function"&&!Ge(re)){var yr=rt(re),Wr=Pr(re,lr);return"[Function"+(yr?": "+yr:" (anonymous)")+"]"+(Wr.length>0?" { "+de.call(Wr,", ")+" }":"")}if(Re(re)){var lt=ne?O.call(String(re),/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(re);return typeof re=="object"&&!ne?Lt(lt):lt}if(Je(re)){for(var Rt="<"+q.call(String(re.nodeName)),xt=re.attributes||[],Qe=0;Qe<xt.length;Qe++)Rt+=" "+xt[Qe].name+"="+Ve(Ae(xt[Qe].value),"double",St);return Rt+=">",re.childNodes&&re.childNodes.length&&(Rt+="..."),Rt+="</"+q.call(String(re.nodeName))+">",Rt}if(pt(re)){if(re.length===0)return"[]";var Pt=Pr(re,lr);return Er&&!Mt(Pt)?"["+Br(Pt,Er)+"]":"[ "+de.call(Pt,", ")+" ]"}if(Oe(re)){var Q=Pr(re,lr);return!("cause"in Error.prototype)&&"cause"in re&&!ce.call(re,"cause")?"{ ["+String(re)+"] "+de.call(Y.call("[cause]: "+lr(re.cause),Q),", ")+" }":Q.length===0?"["+String(re)+"]":"{ ["+String(re)+"] "+de.call(Q,", ")+" }"}if(typeof re=="object"&&kt){if(xe&&typeof re[xe]=="function"&&be)return be(re,{depth:ur-ct});if(kt!=="symbol"&&typeof re.inspect=="function")return re.inspect()}if(vt(re)){var Be=[];return n&&n.call(re,function(or,cr){Be.push(lr(cr,re,!0)+" => "+lr(or,re))}),Ct("Map",t.call(re),Be,Er)}if(yt(re)){var gt=[];return h&&h.call(re,function(or){gt.push(lr(or,re))}),Ct("Set",u.call(re),gt,Er)}if(Ke(re))return qe("WeakMap");if(Ee(re))return qe("WeakSet");if(Ze(re))return qe("WeakRef");if(Te(re))return Lt(lr(Number(re)));if(et(re))return Lt(lr(P.call(re)));if(Pe(re))return Lt(S.call(re));if(ke(re))return Lt(lr(String(re)));if(typeof window<"u"&&re===window)return"{ [object Window] }";if(typeof globalThis<"u"&&re===globalThis||typeof yi<"u"&&re===yi)return"{ [object globalThis] }";if(!Xe(re)&&!Ge(re)){var Dt=Pr(re,lr),Qt=me?me(re)===Object.prototype:re instanceof Object||re.constructor===Object,Zt=re instanceof Object?"":"null prototype",It=!Qt&&oe&&Object(re)===re&&oe in re?k.call(it(re),8,-1):Zt?"Object":"",Yt=Qt||typeof re.constructor!="function"?"":re.constructor.name?re.constructor.name+" ":"",Ir=Yt+(It||Zt?"["+de.call(Y.call([],It||[],Zt||[]),": ")+"] ":"");return Dt.length===0?Ir+"{}":Er?Ir+"{"+Br(Dt,Er)+"}":Ir+"{ "+de.call(Dt,", ")+" }"}return String(re)};function Ve(ge,re,He){var ct=He.quoteStyle||re,Bt=Le[ct];return Bt+ge+Bt}function Ae(ge){return O.call(String(ge),/"/g,""")}function ot(ge){return!oe||!(typeof ge=="object"&&(oe in ge||typeof ge[oe]<"u"))}function pt(ge){return it(ge)==="[object Array]"&&ot(ge)}function Xe(ge){return it(ge)==="[object Date]"&&ot(ge)}function Ge(ge){return it(ge)==="[object RegExp]"&&ot(ge)}function Oe(ge){return it(ge)==="[object Error]"&&ot(ge)}function ke(ge){return it(ge)==="[object String]"&&ot(ge)}function Te(ge){return it(ge)==="[object Number]"&&ot(ge)}function Pe(ge){return it(ge)==="[object Boolean]"&&ot(ge)}function Re(ge){if(ne)return ge&&typeof ge=="object"&&ge instanceof Symbol;if(typeof ge=="symbol")return!0;if(!ge||typeof ge!="object"||!K)return!1;try{return K.call(ge),!0}catch{}return!1}function et(ge){if(!ge||typeof ge!="object"||!P)return!1;try{return P.call(ge),!0}catch{}return!1}var ft=Object.prototype.hasOwnProperty||function(ge){return ge in this};function wt(ge,re){return ft.call(ge,re)}function it(ge){return D.call(ge)}function rt(ge){if(ge.name)return ge.name;var re=b.call(A.call(ge),/^function\s*([\w$]+)/);return re?re[1]:null}function mt(ge,re){if(ge.indexOf)return ge.indexOf(re);for(var He=0,ct=ge.length;He<ct;He++)if(ge[He]===re)return He;return-1}function vt(ge){if(!t||!ge||typeof ge!="object")return!1;try{t.call(ge);try{u.call(ge)}catch{return!0}return ge instanceof Map}catch{}return!1}function Ke(ge){if(!m||!ge||typeof ge!="object")return!1;try{m.call(ge,m);try{T.call(ge,T)}catch{return!0}return ge instanceof WeakMap}catch{}return!1}function Ze(ge){if(!_||!ge||typeof ge!="object")return!1;try{return _.call(ge),!0}catch{}return!1}function yt(ge){if(!u||!ge||typeof ge!="object")return!1;try{u.call(ge);try{t.call(ge)}catch{return!0}return ge instanceof Set}catch{}return!1}function Ee(ge){if(!T||!ge||typeof ge!="object")return!1;try{T.call(ge,T);try{m.call(ge,m)}catch{return!0}return ge instanceof WeakSet}catch{}return!1}function Je(ge){return!ge||typeof ge!="object"?!1:typeof HTMLElement<"u"&&ge instanceof HTMLElement?!0:typeof ge.nodeName=="string"&&typeof ge.getAttribute=="function"}function dt(ge,re){if(ge.length>re.maxStringLength){var He=ge.length-re.maxStringLength,ct="... "+He+" more character"+(He>1?"s":"");return dt(k.call(ge,0,re.maxStringLength),re)+ct}var Bt=Ne[re.quoteStyle||"single"];Bt.lastIndex=0;var St=O.call(O.call(ge,Bt,"\\$1"),/[\x00-\x1f]/g,_t);return Ve(St,"single",re)}function _t(ge){var re=ge.charCodeAt(0),He={8:"b",9:"t",10:"n",12:"f",13:"r"}[re];return He?"\\"+He:"\\x"+(re<16?"0":"")+H.call(re.toString(16))}function Lt(ge){return"Object("+ge+")"}function qe(ge){return ge+" { ? }"}function Ct(ge,re,He,ct){var Bt=ct?Br(He,ct):de.call(He,", ");return ge+" ("+re+") {"+Bt+"}"}function Mt(ge){for(var re=0;re<ge.length;re++)if(mt(ge[re],`
|
349
|
+
`;if(Ge){const Je=Pe(Ke);Ge(Je>Te)}pt(yt?"":Ze),ke(Ke)},[Pe,Te,Ge,pt]),ft=I.useCallback(it=>{if(!it)return;const rt=it.getEditor();if(!rt)return;const mt=[],vt=rt.root,Ke=document.querySelector(".ql-toolbar.ql-snow"),Ze=document.querySelector(".ql-header .ql-picker-label"),yt=document.querySelector("#editor-resizer .input-wrapper input");if(Ke){const Je=new ResizeObserver(dt=>{requestAnimationFrame(()=>{for(const _t of dt)ee(_t.contentRect.height)})});Je.observe(Ke),mt.push(()=>Je.disconnect())}const Ee={input:Je=>{const dt=Je.target;dt.value=dt.value.replace(/[^0-9]/g,"");const _t=parseInt(dt.value);_t>100&&(dt.value="100"),_t<1&&(dt.value="1")},keyDown:Je=>{if(Je.key!=="Delete"&&Je.key!=="Backspace")return;const dt=document.querySelector("#editor-resizer");if(!dt)return;const _t=dt.getBoundingClientRect(),Lt=document.querySelectorAll(".ql-editor img"),qe=Array.from(Lt).find(Ct=>{const Mt=Ct.getBoundingClientRect();return Math.abs(Mt.left-_t.left)<5&&Math.abs(Mt.top-_t.top)<5});if(qe){dt.style.display="none";const Ct=$e.find(qe),Mt=rt.getIndex(Ct);Ct.remove(),rt.setSelection(Mt,0,$e.sources.USER)}},headerExpand:()=>{const Je=rt.getFormat();if(!Je.header)return;const dt=Je.header,_t=document.querySelectorAll(".ql-header .ql-picker-item"),Lt=Array.from(_t).find(qe=>qe.getAttribute("data-value")===dt.toString());Lt&&(Lt.classList.add("ql-selected"),Ze==null||Ze.classList.add("ql-active"))}};return yt==null||yt.addEventListener("input",Ee.input),vt==null||vt.addEventListener("keydown",Ee.keyDown),Ze==null||Ze.addEventListener("click",Ee.headerExpand),mt.push(()=>{yt==null||yt.removeEventListener("input",Ee.input),vt==null||vt.removeEventListener("keydown",Ee.keyDown),Ze==null||Ze.removeEventListener("click",Ee.headerExpand)}),()=>mt.forEach(Je=>Je())},[]),wt=I.useCallback(it=>{i&&(typeof i=="function"?i(it):i.current=it),it&&ft(it)},[i,ft]);return v.jsx(Uc,{helperText:C,label:_,wrapType:D,labelProps:S,errorMessage:t,wrapProps:{...T,style:{...T==null?void 0:T.style,height:Ve,maxHeight:O,minHeight:k===void 0?void 0:"fit-content",overflow:k===void 0?"hidden":void 0}},children:v.jsxs(Ur,{...q,className:Fe.clsx(q.className,Nn.AEditorContainer),style:{...A,height:Ve},children:[v.jsx(bh,{...M,ref:wt,className:Fe.clsx(M==null?void 0:M.className,Nn.AEditor,Nn[Ae],k===void 0&&Nn.NoOverflow),formats:NP,modules:Re,placeholder:h,readOnly:G,theme:"snow",value:Oe,style:{"--icon-size":`${H==="Med"?18:24}px`,"--toolbar-padding":`${H==="Med"?8:13}px`,"--content-height":te?`${te-Y}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Os.renderToString(v.jsx(Fr,{icon:"EditorArrow"})))}`},onChange:et}),k&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:ae,className:Nn.Resizer,style:{height:Y,bottom:u&&!G?P:0},onMouseDown:Ne}),ce&&v.jsx("div",{className:Fe.clsx(Nn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!G?P+2:2},children:`${Math.round(te)}px`})]}),u&&!G&&v.jsx("div",{className:Fe.clsx(Nn.LimitContainer,"NoSelect"),style:{minHeight:P},children:v.jsxs(Xl,{className:Nn.Limit,children:[v.jsx("span",{className:Xe?Nn.Error:void 0,children:nm(Pe(Oe))})," / ",nm(Te)]})})]})})};function BP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function qP(r){const e=$e.import("formats/header");return e.whitelist=r,e}const nm=r=>{if(!r)return"0 bytes";const e=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB","RB","QB"];let t=0;for(;r>=1024&&t<e.length-1;)r/=1024,t++;return`${t===0?Math.floor(r):r.toFixed(1)} ${e[t]}`};function eh(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(e(t))return t;if(!t.children||t.children.length<1)continue;const n=eh(t.children,e);if(n)return n}}function sd(r,e){Array.isArray(r)||(r=[r]);for(const t of r)e(t),!(!t.children||t.children.length<1)&&sd(t.children,e)}function uS(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>t.push(e(n,i))),t}function fS(r,e){Array.isArray(r)||(r=[r]);for(const t of r){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!fS(t.children,e))return!1}return!0}function HP(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function zP(r){Array.isArray(r)||(r=[r]);let e=0;return sd(r,()=>e++),e}function $P(r,e,t,n){if(n(e,t))return null;Array.isArray(r)||(r=[r]);const i=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,e))}),l=eh(r,u=>{var h;return(h=u.children)==null?void 0:h.some(g=>n(g,t))});if(i===void 0&&l===void 0){const u=r.findIndex(g=>n(g,e)),h=r.findIndex(g=>n(g,t));return r.splice(u,1),r.splice(h,0,e),[...r]}else if(i!==void 0&&l!==void 0&&n(i,l)&&i.children){const u=i.children.findIndex(g=>n(g,e)),h=i.children.findIndex(g=>n(g,t));return u===void 0||h===void 0?null:(i.children.splice(u,1),i.children.splice(h,0,e),i.children=[...i.children],[...r])}return null}function UP(r,e,t){const n=[],i=[...e];for(;i.length>0;){const l=i.shift();if(l&&!n.find(u=>t(u,l))&&(n.push(l),!(!l.children||l.children.length<1)))for(const u of l.children)i.push(u)}return n}function WP(r,e,t){Array.isArray(r)||(r=[r]);const n=uS(r,u=>u),i=[],l=[...e];for(;l.length>0;){const u=l.shift();if(!u||i.find(g=>t(g,u)))continue;i.push(u);const h=n.find(g=>{var m;return(m=g.children)==null?void 0:m.some(M=>t(M,u))});h&&l.push(h)}return i}const Qa={find:eh,forEach:sd,map:uS,every:fS,filter:HP,length:zP,replace:$P,descendants:UP,ancestors:WP},VP="_AWrap_f5le3_1",GP="_AContainer_f5le3_10",ZP="_ATree_f5le3_18",YP="_ATreeBody_f5le3_30",KP="_CoverBorder_f5le3_36",XP="_InsertBorder_f5le3_45",JP="_ATreeHeader_f5le3_76",QP="_ATreeBodyHeader_f5le3_82",eN="_ATreeBodyHeaderResources_f5le3_92",tN="_ATreeItem_f5le3_98",rN="_IsSelectUsed_f5le3_114",nN="_IsSelected_f5le3_117",iN="_IsSearchSelected_f5le3_122",oN="_IsHovered_f5le3_133",sN="_CheckBox_f5le3_137",aN="_Indents_f5le3_149",lN="_ExpandIcon_f5le3_156",cN="_Content_f5le3_168",uN="_RightSticky_f5le3_177",fN="_SearchInputWrap_f5le3_188",dN="_SearchInput_f5le3_188",hN="_RightAddon_f5le3_200",pN="_RightAddonIcon_f5le3_211",gN="_Loader_f5le3_218",fn={AWrap:VP,AContainer:GP,ATree:ZP,ATreeBody:YP,CoverBorder:KP,InsertBorder:XP,ATreeHeader:JP,ATreeBodyHeader:QP,ATreeBodyHeaderResources:eN,ATreeItem:tN,IsSelectUsed:rN,IsSelected:nN,IsSearchSelected:iN,IsHovered:oN,CheckBox:sN,Indents:aN,ExpandIcon:lN,Content:cN,RightSticky:uN,SearchInputWrap:fN,SearchInput:dN,RightAddon:hN,RightAddonIcon:pN,Loader:gN},mN=r=>{const{isEqual:e,item:t,selectDisabled:n,selectUnused:i,isParentDisabled:l,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:O,hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:te,TreeItemClassName:K,searchItemStyle:ne,searchItemClassName:oe,height:ce}=r,{children:me}=I.useMemo(()=>t,[t]),[ae,be]=I.useMemo(()=>g,[g]),[pe,xe]=I.useMemo(()=>m,[m]),[Le,Ne]=I.useMemo(()=>M,[M]),Ve=I.useMemo(()=>i?i(t):!1,[i,t]),Ae=I.useMemo(()=>!n||l?l:n(t),[n,l,t]),ot=I.useMemo(()=>ae.some(qe=>e(qe,t)),[ae,e,t]),pt=I.useMemo(()=>!me||me.length<1?"noChild":ot?"expanded":"collapsed",[me,ot]),Xe=I.useMemo(()=>{const qe=D[pt];return am.includes(qe)?v.jsx(Fr,{style:{width:A,height:A},icon:qe}):qe},[D,A,pt]),Ge=I.useCallback(qe=>{!be||pt==="noChild"||(be(ot?ae.filter(Ct=>!e(Ct,t)):[...ae,t]),qe.stopPropagation())},[be,ae,ot,t,e,pt]),Oe=I.useMemo(()=>pe.some(qe=>e(qe,t)),[pe,e,t]),ke=I.useCallback(()=>{!xe||Ae||(xe(b?Oe?pe.filter(qe=>!e(qe,t)):[...pe,t]:[t]),Le&&Ne&&Le.items.some(qe=>e(qe,t))&&Ne({...Le,item:t}))},[b,Ae,Oe,Le,Ne,xe,e,pe,t]),Te=I.useMemo(()=>Le==null?void 0:Le.items.some(qe=>e(qe,t)),[Le,e,t]),Pe=I.useMemo(()=>Te&&(Le==null?void 0:Le.item)&&e(Le.item,t),[Te,Le,e,t]),Re=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{if(Pe&&Re.current&&P.current){const{top:qe,bottom:Ct}=Re.current.getBoundingClientRect(),{top:Mt,bottom:Sr}=P.current.getBoundingClientRect();(qe<Mt||Ct>Sr)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[P,Pe]);const[et,ft]=I.useState(!1),wt=I.useCallback(()=>!Ae&&ft(!0),[Ae]),it=I.useCallback(()=>!Ae&&ft(!1),[Ae]),rt=I.useMemo(()=>Qa.map(t,qe=>qe).filter(qe=>!(n!=null&&n(qe))&&!(i!=null&&i(qe))),[n,i,t]),mt=I.useMemo(()=>!S||!b?!1:Oe&&rt.some(qe=>pe.some(Ct=>e(qe,Ct)))&&rt.some(qe=>!pe.some(Ct=>e(qe,Ct))),[S,b,Oe,rt,e,pe]),vt=I.useMemo(()=>S?b?rt.every(qe=>pe.some(Ct=>e(qe,Ct))):pe.some(qe=>e(qe,t)):!1,[S,b,rt,t,e,pe]),Ke=I.useCallback(()=>{if(!(!xe||Ae))if(b)if(Oe){const qe=pe.filter(Ct=>!(i!=null&&i(Ct))&&!(n!=null&&n(Ct))&&rt.some(Mt=>e(Mt,Ct)));qe.length>0&&xe(pe.filter(Ct=>!qe.some(Mt=>e(Ct,Mt))))}else{const qe=rt.filter(Ct=>!(i!=null&&i(Ct))&&!(n!=null&&n(Ct))&&!pe.some(Mt=>e(Mt,Ct)));qe.length>0&&xe([...pe,...qe])}else xe([t])},[Ae,n,i,b,xe,e,Oe,pe,rt,t]),Ze=I.useCallback(qe=>{Ae||Ke(),qe.stopPropagation()},[Ae,Ke]),yt=I.useMemo(()=>{if(!S||!b||Ae)return"";if(Oe){const Ct=pe.filter(Mt=>!(i!=null&&i(Mt))&&!(n!=null&&n(Mt))&&rt.some(Sr=>e(Sr,Mt)));if(Ct.length>0)return ue["deselect n"](Ct.length)}const qe=rt.filter(Ct=>!(i!=null&&i(Ct))&&!(n!=null&&n(Ct))&&!pe.some(Mt=>e(Mt,Ct)));return ue["select n"](qe.length)},[n,i,ue,Ae,S,b,Oe,rt,e,pe]),Ee=I.useMemo(()=>Tr.getContent(ee,r),[ee,r]),Je=I.useMemo(()=>Tr.getContent(te,r),[r,te]),dt=I.useMemo(()=>Tr.getContent(K,r),[r,K]),_t=I.useMemo(()=>Tr.getContent(oe,r),[r,oe]),Lt=I.useMemo(()=>Tr.getContent(ne,r),[r,ne]);return v.jsxs(I.Fragment,{children:[v.jsxs(Ur,{className:Fe.clsx(fn.ATreeItem,Oe&&fn.IsSelected,!Ae&&(et||O)&&fn.IsHovered,Te&&fn.IsSearched,Pe&&(_t||fn.IsSearchSelected),!Ve&&fn.IsSelectUsed,"NoSelect",dt),style:{...Je,...Pe&&Lt,"--ATreeItem_height":`${ce}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:qe=>C==null?void 0:C(qe,t),onDragEnd:qe=>_==null?void 0:_(qe,t),onClick:ke,abaseRef:Re,isDisabled:Ae,onMouseOver:qe=>q==null?void 0:q(qe,t),onMouseLeave:qe=>G==null?void 0:G(qe,t),children:[S&&v.jsx(Uu,{style:{visibility:Ae||Ve?"hidden":"visible",zIndex:Ae||Ve?0:2},className:fn.CheckBox,useCheck:[+vt,Ke],onClick:Ze,isIndeterminate:mt,onMouseOver:wt,onMouseOut:it,tooltip:yt,isDisabled:Ae}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((qe,Ct)=>{const Mt=Ct===u.length-1;return v.jsx(I2,{value:qe,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(yN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:Mt}).expanded:v.jsx(vN,{iconWidth:A,isLast:Mt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(bN,{iconWidth:A})}},Ct)})}),Xe&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ge,children:Xe}),v.jsx("div",{className:Fe.clsx(fn.Content,"NoSelect"),children:v.jsx(Y,{isEqual:e,item:t,indents:u,extIndents:h,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(et||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:te,TreeItemClassName:K,searchItemClassName:_t,searchItemStyle:ne,height:ce})}),Ee&&v.jsx("div",{className:fn.RightSticky,children:Ee})]}),ot&&(me==null?void 0:me.map((qe,Ct)=>v.jsx(de,{isEqual:e,item:qe,selectDisabled:n,selectUnused:i,indents:[...u.map(Mt=>Mt==="IsLast"?"Collapsed":Mt),Ct===me.length-1?"IsLast":"Expanded"],extIndents:h,ContentRenderer:Y,useExpand:g,useSelect:m,useSearch:M,onDragStart:T,onDragOver:C,onDragEnd:_,showCheckbox:S,icons:D,iconWidth:A,isSelectMulti:b,isDraggable:k,isParentCheckHovered:b&&(et||O),hoverdItem:H,onMouseOver:q,onMouseLeave:G,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:te,TreeItemClassName:K,searchItemClassName:_t,searchItemStyle:ne,height:ce},Ct)))]})},vN=({iconWidth:r,isLast:e})=>v.jsx("div",{style:{width:r/8*3,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"},children:e&&v.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}})}),yN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),bN=({iconWidth:r})=>v.jsx("div",{style:{width:r/8*3,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:r/2,marginRight:r/8,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),_N=r=>{const{isEqual:e,searchResult:t,initSearch:n,searchUp:i,searchDown:l,searchEnter:u,isDisabled:h,isLoading:g,resources:m,maxLength:M,autoFocus:T}=r,C=I.useCallback(D=>{D.key==="Enter"?u():D.key==="ArrowDown"?l():D.key==="ArrowUp"&&i(),D.preventDefault(),D.stopPropagation()},[l,u,i]),_=I.useCallback(D=>{n(D)},[n]),S=I.useMemo(()=>h||g?-1:void 0,[h,g]);return v.jsx(Jl,{className:fn.SearchInput,wrapProps:{className:fn.SearchInputWrap},isDisabled:h,tabIndex:S,useValue:[(t==null?void 0:t.keyword)??"",_],onKeyDown:C,placeholder:m["Search(Placeholder)"],RightAddon:v.jsx(xN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},xN=r=>{const{isEqual:e,searchResult:t,searchUp:n,searchDown:i,searchEnter:l,resources:u}=r,h=I.useMemo(()=>!t||t.items.length<1?0:t.items.findIndex(S=>t.item&&e(S,t.item))+1,[t,e]),g=I.useMemo(()=>!t||t.items.length<1?0:t.items.length,[t]),m=I.useMemo(()=>h<2,[h]),M=I.useMemo(()=>h>=g,[h,g]),T=I.useCallback(S=>{S.stopPropagation(),!m&&n()},[n,m]),C=I.useCallback(S=>{S.stopPropagation(),!M&&i()},[i,M]),_=I.useCallback(S=>{S.stopPropagation(),l()},[l]);return v.jsx("div",{className:Fe.clsx(fn.RightAddon,"NoSelect"),children:t?v.jsxs(v.Fragment,{children:[h,"/",g,v.jsx(Ur,{onClick:T,isDisabled:m,children:v.jsx(Fr,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:C,isDisabled:M,children:v.jsx(Fr,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},SN=r=>{var Wr;const{pk:e,selectDisabled:t,selectUnused:n,useItems:i,useExpand:l,useSelect:u,useSearch:h,showCheckbox:g,iconWidth:m=24,icons:M={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:T,isSelectMulti:C=!1,noSearch:_=!1,isDraggable:S,noSyncSearchSelect:D=!1,actionRef:A,placeholder:b,searchPredicate:k=wN,isDisabled:O,isLoading:H,ContentRenderer:q=CN,TreeItemRenderer:G=mN,RightStickyAddon:Y,TopRightAddon:de,TreeTopAddon:ee,resources:ue,maxLength:P,autoFocus:te,TreeItemStyle:K,TreeItemClassName:ne,OverflowPadding:oe,insertBorder:ce,width:me,searchItemClassName:ae,searchItemStyle:be,height:pe=40,...xe}=r,Le=I.useMemo(()=>({...hn.ATree,...ue}),[ue]),Ne=I.useCallback((lt,Rt)=>e!==void 0?Array.isArray(e)?e.every(xt=>el.isEqual(lt[xt],Rt[xt])):el.isEqual(lt[e],Rt[e]):el.isEqual(lt,Rt),[e]),Ve=I.useRef(null),[Ae,ot]=pn(i,[]),pt=I.useMemo(()=>Qa.map(Ae,lt=>lt),[Ae]),[Xe,Ge]=pn(l,[]),[Oe,ke]=pn(u,[]),[Te,Pe]=pn(h,void 0),Re=I.useCallback(lt=>{if(O||!Ge||Xe.some(Qe=>Ne(Qe,lt)))return;const Rt=[];let xt=lt;for(;xt;){const Qe=xt;Xe.find(Pt=>Ne(Pt,Qe))||Rt.push(Qe),xt=pt.find(Pt=>{var Q;return(Q=Pt.children)==null?void 0:Q.some(Be=>Ne(Be,Qe))})}Ge([...Xe,...Rt])},[Xe,O,Ne,Ge,pt]),et=I.useCallback(()=>{!Ge||O||Ge([...pt])},[pt,O,Ge]),ft=I.useCallback(()=>{!Ge||O||Ge([])},[Ge,O]),wt=I.useCallback(lt=>{!ke||O||n!=null&&n(lt)||(ke([lt]),Re(lt))},[ke,O,n,Re]),it=I.useCallback(lt=>{if(!Pe||O)return;if(!lt||_){Pe(void 0),D||ke==null||ke([]);return}const Rt=Qa.filter(Ae,Qe=>k(lt,Qe));let xt;if(Rt.find(Qe=>(Te==null?void 0:Te.item)&&Ne(Qe,Te.item))?xt=Te==null?void 0:Te.item:Rt.length>0&&(xt=Rt[0]),Pe({keyword:lt,items:Rt,item:xt}),xt&&Re(xt),ke&&!D)if(C)ke(Rt);else{const Qe=Rt.find(Pt=>xt&&Ne(Pt,xt));ke(Qe?[Qe]:[])}},[Ae,O,Ne,k,Pe,ke,Re,D,_,C,Te]),rt=I.useRef(!1);I.useEffect(()=>{rt.current=!0},[Ae]),I.useEffect(()=>{Te&&rt.current&&(it(Te.keyword),rt.current=!1)},[it,Te]);const mt=I.useCallback(()=>{if(!Te||!Pe||O)return;let lt=Te.items.findIndex(Rt=>Te.item&&Ne(Rt,Te.item))-1;lt<0||(Pe({...Te,item:Te.items[lt]}),Re(Te.items[lt]),D||wt(Te.items[lt]))},[Te,Re,Pe,O,wt,Ne,D]),vt=I.useCallback(()=>{if(!Te||!Pe||O)return;let lt=Te.items.findIndex(Rt=>Te.item&&Ne(Rt,Te.item))+1;lt>=Te.items.length||(Pe({...Te,item:Te.items[lt]}),Re(Te.items[lt]),D||wt(Te.items[lt]))},[Te,Re,O,Pe,wt,Ne,D]),Ke=I.useCallback(()=>{if(!Te||!Pe||O)return;let lt=Te.items.findIndex(xt=>Te.item&&Ne(xt,Te.item));if(!D||n!=null&&n(Te.items[lt])){vt();return}if(Oe.some(xt=>Te.item&&Ne(xt,Te.item))){let xt=lt+1;const Qe=Te.items[xt];if(xt>=Te.items.length)return;Pe({...Te,item:Qe}),wt(Qe)}else wt(Te.items[lt])},[Te,Pe,O,Oe,D,vt,Ne,wt,n]),[Ze,yt]=I.useState(!1),Ee=I.useCallback(()=>yt(!0),[]),Je=I.useCallback(()=>yt(!1),[]),dt=I.useMemo(()=>n?Qa.map(Ae,lt=>lt).filter(lt=>!n(lt)):t?Qa.map(Ae,lt=>lt).filter(lt=>!t(lt)):Qa.map(Ae,lt=>lt),[n,t,Ae]),_t=I.useMemo(()=>!g||!C?!1:Oe.length>0&&dt.length>Oe.length,[g,C,Oe,dt]),Lt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&dt.length===Oe.length,[g,C,Oe,dt]),qe=I.useCallback(()=>{if(!ke||!C||O)return;const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&dt.some(xt=>Ne(xt,Rt)));if(lt.length>0)ke(Oe.filter(Rt=>!lt.some(xt=>Ne(Rt,xt))));else{const Rt=dt.filter(xt=>!(n!=null&&n(xt))&&!(t!=null&&t(xt))&&!Oe.some(Qe=>Ne(Qe,xt)));Rt.length>0&&ke([...Oe,...Rt])}},[C,O,n,t,ke,Oe,dt,Ne]),Ct=I.useMemo(()=>{if(!g||!C||O)return"";const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&dt.some(xt=>Ne(xt,Rt)));if(lt.length>0)return Le["deselect n"](lt.length);{const Rt=dt.filter(xt=>!(n!=null&&n(xt))&&!(t!=null&&t(xt))&&!Oe.some(Qe=>Ne(Qe,xt)));return Le["select n"](Rt.length)}},[n,t,O,Le,g,C,dt,Oe,Ne]),[Mt,Sr]=I.useState(null),[Br,Pr]=I.useState(null),ge=I.useCallback(lt=>{!S||O||Sr(lt)},[O,S]),re=I.useCallback((lt,Rt)=>{if(!S||O||!Mt||(lt.preventDefault(),lt.stopPropagation(),Pr(Rt),!ot))return;const xt=Qa.replace(Ae,Mt,Rt,Ne);xt&&ot(xt)},[S,Ae,Mt,O,ot,Ne]),He=I.useCallback(()=>{if(!S||O||!Mt||!Br||!ot||Ne(Mt,Br))return;const lt=Qa.replace(Ae,Mt,Br,Ne);lt&&(ot(lt),Sr(null))},[S,ot,Ae,Mt,Br,Ne,O]);I.useEffect(()=>{var lt;g||(lt=Ve.current)==null||lt.scrollTo(0,0)},[g,Ve]),I.useEffect(()=>{!C&&Oe.length>1&&(ke==null||ke([Oe[Oe.length-1]]))},[C,ke,Oe]),I.useEffect(()=>{A&&(A.current={expandAll:et,collapseAll:ft})},[A,et,ft]),I.useEffect(()=>{if(!t||!ke)return;const lt=Oe.filter(Rt=>!t(Rt));Oe.length!==lt.length&&ke(lt)},[t,Oe,ke]),I.useEffect(()=>{if(!n||!ke)return;const lt=Oe.filter(Rt=>!n(Rt));Oe.length!==lt.length&&ke(lt)},[n,Oe,ke]),I.useEffect(()=>{Pe&&Pe(void 0)},[Pe]);const[ct,Bt]=I.useState(!1);I.useEffect(()=>{Bt(lt=>!lt)},[Ae]);const[St,kt]=I.useState(null),Gt=I.useCallback((lt,Rt)=>{O||(lt.stopPropagation(),lt.preventDefault(),kt(Rt))},[O]),jt=I.useCallback((lt,Rt)=>{St===null||O||Ne(Rt,St)&&(lt.stopPropagation(),lt.preventDefault(),kt(null))},[St,O,Ne]),ir=I.useRef(null),[ur,Er]=I.useState(!1),[lr,yr]=I.useState((Wr=ir.current)==null?void 0:Wr.scrollHeight);return I.useEffect(()=>{if(Xe.length<0)return;const lt=Ve.current,Rt=ir.current,xt=lt.clientHeight<Rt.clientHeight;yr(xt?Rt.scrollHeight:lt.clientHeight),Er(xt)},[Xe]),v.jsxs(Ur,{...xe,isDisabled:O,className:Fe.clsx(xe.className,fn.AWrap),children:[(!_||de)&&v.jsxs(si,{className:fn.ATreeHeader,children:[!_&&v.jsx(_N,{isEqual:Ne,searchResult:Te,initSearch:it,searchUp:mt,searchDown:vt,searchEnter:Ke,isLoading:H,isDisabled:O,resources:Le,maxLength:P,autoFocus:te}),!_&&de&&v.jsx(mn,{w:8}),de]}),(!_||de||g&&C||S)&&v.jsx(hm,{isLoading:H&&Ae.length!==0}),(g&&C||S)&&v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Uu,{className:fn.CheckBox,useCheck:[+Lt,()=>qe()],isIndeterminate:_t,onMouseOver:Ee,onMouseOut:Je,isDisabled:O,tooltip:Ct}),Le.Items,v.jsx(Yc,{}),v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:ur?8:0},children:[v.jsx("span",{children:g&&Le["*Click row for single select"]}),v.jsx("span",{children:S&&Le["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Ve,className:Fe.clsx(xe.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:me||"fit-content",marginRight:oe&&ur?8:0},children:[v.jsxs("div",{ref:ir,className:fn.ATreeBody,children:[Ae.length===0?H?v.jsx(AN,{text:Le["Loading Contents..."]}):b:ee,Ae.map((lt,Rt)=>v.jsx(G,{isEqual:Ne,indents:[],extIndents:T,item:lt,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Xe,Ge],useSelect:[Oe,ke],useSearch:[Te,Pe],onDragStart:ge,onDragOver:re,onDragEnd:He,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&Ze,ContentRenderer:q,TreeItemRenderer:G,RightStickyAddon:Y,resources:Le,containerRef:Ve,TreeItemStyle:K,TreeItemClassName:ne,hoverdItem:St,onMouseOver:Gt,onMouseLeave:jt,searchItemClassName:ae,searchItemStyle:be,height:pe},`${Rt}${ct}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${pe}px`,height:ur?lr:"100%"}})]})]})})]})},CN=r=>{const{item:e}=r,t={};return Kt.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function wN(r,e){return Kt.some(e,(t,n)=>{var i;return(i=Kt.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const AN=r=>{const{text:e}=r;return v.jsxs(si,{className:Fe.clsx(fn.Loader,"NoSelect"),children:[v.jsx(Fr,{icon:"Spinner",style:{height:40},height:40,width:40}),v.jsx(z2,{text:e})]})};var $g,Gb;function Qu(){return Gb||(Gb=1,$g=TypeError),$g}const TN={},EN=Object.freeze(Object.defineProperty({__proto__:null,default:TN},Symbol.toStringTag,{value:"Module"})),kN=tA(EN);var Ug,Zb;function _h(){if(Zb)return Ug;Zb=1;var r=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=r&&e&&typeof e.get=="function"?e.get:null,n=r&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,l=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=i&&l&&typeof l.get=="function"?l.get:null,h=i&&Set.prototype.forEach,g=typeof WeakMap=="function"&&WeakMap.prototype,m=g?WeakMap.prototype.has:null,M=typeof WeakSet=="function"&&WeakSet.prototype,T=M?WeakSet.prototype.has:null,C=typeof WeakRef=="function"&&WeakRef.prototype,_=C?WeakRef.prototype.deref:null,S=Boolean.prototype.valueOf,D=Object.prototype.toString,A=Function.prototype.toString,b=String.prototype.match,k=String.prototype.slice,O=String.prototype.replace,H=String.prototype.toUpperCase,q=String.prototype.toLowerCase,G=RegExp.prototype.test,Y=Array.prototype.concat,de=Array.prototype.join,ee=Array.prototype.slice,ue=Math.floor,P=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ne=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ne||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,me=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ge){return ge.__proto__}:null);function ae(ge,re){if(ge===1/0||ge===-1/0||ge!==ge||ge&&ge>-1e3&&ge<1e3||G.call(/e/,re))return re;var He=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ge=="number"){var ct=ge<0?-ue(-ge):ue(ge);if(ct!==ge){var Bt=String(ct),St=k.call(re,Bt.length+1);return O.call(Bt,He,"$&_")+"."+O.call(O.call(St,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(re,He,"$&_")}var be=kN,pe=be.custom,xe=Re(pe)?pe:null,Le={__proto__:null,double:'"',single:"'"},Ne={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ug=function ge(re,He,ct,Bt){var St=He||{};if(wt(St,"quoteStyle")&&!wt(Le,St.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(wt(St,"maxStringLength")&&(typeof St.maxStringLength=="number"?St.maxStringLength<0&&St.maxStringLength!==1/0:St.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=wt(St,"customInspect")?St.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(wt(St,"indent")&&St.indent!==null&&St.indent!==" "&&!(parseInt(St.indent,10)===St.indent&&St.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(wt(St,"numericSeparator")&&typeof St.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gt=St.numericSeparator;if(typeof re>"u")return"undefined";if(re===null)return"null";if(typeof re=="boolean")return re?"true":"false";if(typeof re=="string")return dt(re,St);if(typeof re=="number"){if(re===0)return 1/0/re>0?"0":"-0";var jt=String(re);return Gt?ae(re,jt):jt}if(typeof re=="bigint"){var ir=String(re)+"n";return Gt?ae(re,ir):ir}var ur=typeof St.depth>"u"?5:St.depth;if(typeof ct>"u"&&(ct=0),ct>=ur&&ur>0&&typeof re=="object")return pt(re)?"[Array]":"[Object]";var Er=Sr(St,ct);if(typeof Bt>"u")Bt=[];else if(mt(Bt,re)>=0)return"[Circular]";function lr(or,cr,zr){if(cr&&(Bt=ee.call(Bt),Bt.push(cr)),zr){var hr={depth:St.depth};return wt(St,"quoteStyle")&&(hr.quoteStyle=St.quoteStyle),ge(or,hr,ct+1,Bt)}return ge(or,St,ct+1,Bt)}if(typeof re=="function"&&!Ge(re)){var yr=rt(re),Wr=Pr(re,lr);return"[Function"+(yr?": "+yr:" (anonymous)")+"]"+(Wr.length>0?" { "+de.call(Wr,", ")+" }":"")}if(Re(re)){var lt=ne?O.call(String(re),/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(re);return typeof re=="object"&&!ne?Lt(lt):lt}if(Je(re)){for(var Rt="<"+q.call(String(re.nodeName)),xt=re.attributes||[],Qe=0;Qe<xt.length;Qe++)Rt+=" "+xt[Qe].name+"="+Ve(Ae(xt[Qe].value),"double",St);return Rt+=">",re.childNodes&&re.childNodes.length&&(Rt+="..."),Rt+="</"+q.call(String(re.nodeName))+">",Rt}if(pt(re)){if(re.length===0)return"[]";var Pt=Pr(re,lr);return Er&&!Mt(Pt)?"["+Br(Pt,Er)+"]":"[ "+de.call(Pt,", ")+" ]"}if(Oe(re)){var Q=Pr(re,lr);return!("cause"in Error.prototype)&&"cause"in re&&!ce.call(re,"cause")?"{ ["+String(re)+"] "+de.call(Y.call("[cause]: "+lr(re.cause),Q),", ")+" }":Q.length===0?"["+String(re)+"]":"{ ["+String(re)+"] "+de.call(Q,", ")+" }"}if(typeof re=="object"&&kt){if(xe&&typeof re[xe]=="function"&&be)return be(re,{depth:ur-ct});if(kt!=="symbol"&&typeof re.inspect=="function")return re.inspect()}if(vt(re)){var Be=[];return n&&n.call(re,function(or,cr){Be.push(lr(cr,re,!0)+" => "+lr(or,re))}),Ct("Map",t.call(re),Be,Er)}if(yt(re)){var gt=[];return h&&h.call(re,function(or){gt.push(lr(or,re))}),Ct("Set",u.call(re),gt,Er)}if(Ke(re))return qe("WeakMap");if(Ee(re))return qe("WeakSet");if(Ze(re))return qe("WeakRef");if(Te(re))return Lt(lr(Number(re)));if(et(re))return Lt(lr(P.call(re)));if(Pe(re))return Lt(S.call(re));if(ke(re))return Lt(lr(String(re)));if(typeof window<"u"&&re===window)return"{ [object Window] }";if(typeof globalThis<"u"&&re===globalThis||typeof yi<"u"&&re===yi)return"{ [object globalThis] }";if(!Xe(re)&&!Ge(re)){var Dt=Pr(re,lr),Qt=me?me(re)===Object.prototype:re instanceof Object||re.constructor===Object,Zt=re instanceof Object?"":"null prototype",It=!Qt&&oe&&Object(re)===re&&oe in re?k.call(it(re),8,-1):Zt?"Object":"",Yt=Qt||typeof re.constructor!="function"?"":re.constructor.name?re.constructor.name+" ":"",Ir=Yt+(It||Zt?"["+de.call(Y.call([],It||[],Zt||[]),": ")+"] ":"");return Dt.length===0?Ir+"{}":Er?Ir+"{"+Br(Dt,Er)+"}":Ir+"{ "+de.call(Dt,", ")+" }"}return String(re)};function Ve(ge,re,He){var ct=He.quoteStyle||re,Bt=Le[ct];return Bt+ge+Bt}function Ae(ge){return O.call(String(ge),/"/g,""")}function ot(ge){return!oe||!(typeof ge=="object"&&(oe in ge||typeof ge[oe]<"u"))}function pt(ge){return it(ge)==="[object Array]"&&ot(ge)}function Xe(ge){return it(ge)==="[object Date]"&&ot(ge)}function Ge(ge){return it(ge)==="[object RegExp]"&&ot(ge)}function Oe(ge){return it(ge)==="[object Error]"&&ot(ge)}function ke(ge){return it(ge)==="[object String]"&&ot(ge)}function Te(ge){return it(ge)==="[object Number]"&&ot(ge)}function Pe(ge){return it(ge)==="[object Boolean]"&&ot(ge)}function Re(ge){if(ne)return ge&&typeof ge=="object"&&ge instanceof Symbol;if(typeof ge=="symbol")return!0;if(!ge||typeof ge!="object"||!K)return!1;try{return K.call(ge),!0}catch{}return!1}function et(ge){if(!ge||typeof ge!="object"||!P)return!1;try{return P.call(ge),!0}catch{}return!1}var ft=Object.prototype.hasOwnProperty||function(ge){return ge in this};function wt(ge,re){return ft.call(ge,re)}function it(ge){return D.call(ge)}function rt(ge){if(ge.name)return ge.name;var re=b.call(A.call(ge),/^function\s*([\w$]+)/);return re?re[1]:null}function mt(ge,re){if(ge.indexOf)return ge.indexOf(re);for(var He=0,ct=ge.length;He<ct;He++)if(ge[He]===re)return He;return-1}function vt(ge){if(!t||!ge||typeof ge!="object")return!1;try{t.call(ge);try{u.call(ge)}catch{return!0}return ge instanceof Map}catch{}return!1}function Ke(ge){if(!m||!ge||typeof ge!="object")return!1;try{m.call(ge,m);try{T.call(ge,T)}catch{return!0}return ge instanceof WeakMap}catch{}return!1}function Ze(ge){if(!_||!ge||typeof ge!="object")return!1;try{return _.call(ge),!0}catch{}return!1}function yt(ge){if(!u||!ge||typeof ge!="object")return!1;try{u.call(ge);try{t.call(ge)}catch{return!0}return ge instanceof Set}catch{}return!1}function Ee(ge){if(!T||!ge||typeof ge!="object")return!1;try{T.call(ge,T);try{m.call(ge,m)}catch{return!0}return ge instanceof WeakSet}catch{}return!1}function Je(ge){return!ge||typeof ge!="object"?!1:typeof HTMLElement<"u"&&ge instanceof HTMLElement?!0:typeof ge.nodeName=="string"&&typeof ge.getAttribute=="function"}function dt(ge,re){if(ge.length>re.maxStringLength){var He=ge.length-re.maxStringLength,ct="... "+He+" more character"+(He>1?"s":"");return dt(k.call(ge,0,re.maxStringLength),re)+ct}var Bt=Ne[re.quoteStyle||"single"];Bt.lastIndex=0;var St=O.call(O.call(ge,Bt,"\\$1"),/[\x00-\x1f]/g,_t);return Ve(St,"single",re)}function _t(ge){var re=ge.charCodeAt(0),He={8:"b",9:"t",10:"n",12:"f",13:"r"}[re];return He?"\\"+He:"\\x"+(re<16?"0":"")+H.call(re.toString(16))}function Lt(ge){return"Object("+ge+")"}function qe(ge){return ge+" { ? }"}function Ct(ge,re,He,ct){var Bt=ct?Br(He,ct):de.call(He,", ");return ge+" ("+re+") {"+Bt+"}"}function Mt(ge){for(var re=0;re<ge.length;re++)if(mt(ge[re],`
|
350
350
|
`)>=0)return!1;return!0}function Sr(ge,re){var He;if(ge.indent===" ")He=" ";else if(typeof ge.indent=="number"&&ge.indent>0)He=de.call(Array(ge.indent+1)," ");else return null;return{base:He,prev:de.call(Array(re+1),He)}}function Br(ge,re){if(ge.length===0)return"";var He=`
|
351
351
|
`+re.prev+re.base;return He+de.call(ge,","+He)+`
|
352
352
|
`+re.prev}function Pr(ge,re){var He=pt(ge),ct=[];if(He){ct.length=ge.length;for(var Bt=0;Bt<ge.length;Bt++)ct[Bt]=wt(ge,Bt)?re(ge[Bt],ge):""}var St=typeof te=="function"?te(ge):[],kt;if(ne){kt={};for(var Gt=0;Gt<St.length;Gt++)kt["$"+St[Gt]]=St[Gt]}for(var jt in ge)wt(ge,jt)&&(He&&String(Number(jt))===jt&&jt<ge.length||ne&&kt["$"+jt]instanceof Symbol||(G.call(/[^\w$]/,jt)?ct.push(re(jt,ge)+": "+re(ge[jt],ge)):ct.push(jt+": "+re(ge[jt],ge))));if(typeof te=="function")for(var ir=0;ir<St.length;ir++)ce.call(ge,St[ir])&&ct.push("["+re(St[ir])+"]: "+re(ge[St[ir]],ge));return ct}return Ug}var Wg,Yb;function RN(){if(Yb)return Wg;Yb=1;var r=_h(),e=Qu(),t=function(h,g,m){for(var M=h,T;(T=M.next)!=null;M=T)if(T.key===g)return M.next=T.next,m||(T.next=h.next,h.next=T),T},n=function(h,g){if(h){var m=t(h,g);return m&&m.value}},i=function(h,g,m){var M=t(h,g);M?M.value=m:h.next={key:g,next:h.next,value:m}},l=function(h,g){return h?!!t(h,g):!1},u=function(h,g){if(h)return t(h,g,!0)};return Wg=function(){var g,m={assert:function(M){if(!m.has(M))throw new e("Side channel does not contain "+r(M))},delete:function(M){var T=g&&g.next,C=u(g,M);return C&&T&&T===C&&(g=void 0),!!C},get:function(M){return n(g,M)},has:function(M){return l(g,M)},set:function(M,T){g||(g={next:void 0}),i(g,M,T)}};return m},Wg}var Vg,Kb;function dS(){return Kb||(Kb=1,Vg=Object),Vg}var Gg,Xb;function IN(){return Xb||(Xb=1,Gg=Error),Gg}var Zg,Jb;function LN(){return Jb||(Jb=1,Zg=EvalError),Zg}var Yg,Qb;function MN(){return Qb||(Qb=1,Yg=RangeError),Yg}var Kg,e_;function DN(){return e_||(e_=1,Kg=ReferenceError),Kg}var Xg,t_;function ON(){return t_||(t_=1,Xg=SyntaxError),Xg}var Jg,r_;function PN(){return r_||(r_=1,Jg=URIError),Jg}var Qg,n_;function NN(){return n_||(n_=1,Qg=Math.abs),Qg}var e1,i_;function jN(){return i_||(i_=1,e1=Math.floor),e1}var t1,o_;function FN(){return o_||(o_=1,t1=Math.max),t1}var r1,s_;function BN(){return s_||(s_=1,r1=Math.min),r1}var n1,a_;function qN(){return a_||(a_=1,n1=Math.pow),n1}var i1,l_;function HN(){return l_||(l_=1,i1=Math.round),i1}var o1,c_;function zN(){return c_||(c_=1,o1=Number.isNaN||function(e){return e!==e}),o1}var s1,u_;function $N(){if(u_)return s1;u_=1;var r=zN();return s1=function(t){return r(t)||t===0?t:t<0?-1:1},s1}var a1,f_;function UN(){return f_||(f_=1,a1=Object.getOwnPropertyDescriptor),a1}var l1,d_;function hS(){if(d_)return l1;d_=1;var r=UN();if(r)try{r([],"length")}catch{r=null}return l1=r,l1}var c1,h_;function WN(){if(h_)return c1;h_=1;var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}return c1=r,c1}var u1,p_;function VN(){return p_||(p_=1,u1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var l in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var u=Object.getOwnPropertySymbols(e);if(u.length!==1||u[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var h=Object.getOwnPropertyDescriptor(e,t);if(h.value!==i||h.enumerable!==!0)return!1}return!0}),u1}var f1,g_;function GN(){if(g_)return f1;g_=1;var r=typeof Symbol<"u"&&Symbol,e=VN();return f1=function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},f1}var d1,m_;function pS(){return m_||(m_=1,d1=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),d1}var h1,v_;function gS(){if(v_)return h1;v_=1;var r=dS();return h1=r.getPrototypeOf||null,h1}var p1,y_;function ZN(){if(y_)return p1;y_=1;var r="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,n="[object Function]",i=function(g,m){for(var M=[],T=0;T<g.length;T+=1)M[T]=g[T];for(var C=0;C<m.length;C+=1)M[C+g.length]=m[C];return M},l=function(g,m){for(var M=[],T=m,C=0;T<g.length;T+=1,C+=1)M[C]=g[T];return M},u=function(h,g){for(var m="",M=0;M<h.length;M+=1)m+=h[M],M+1<h.length&&(m+=g);return m};return p1=function(g){var m=this;if(typeof m!="function"||e.apply(m)!==n)throw new TypeError(r+m);for(var M=l(arguments,1),T,C=function(){if(this instanceof T){var b=m.apply(this,i(M,arguments));return Object(b)===b?b:this}return m.apply(g,i(M,arguments))},_=t(0,m.length-M.length),S=[],D=0;D<_;D++)S[D]="$"+D;if(T=Function("binder","return function ("+u(S,",")+"){ return binder.apply(this,arguments); }")(C),m.prototype){var A=function(){};A.prototype=m.prototype,T.prototype=new A,A.prototype=null}return T},p1}var g1,b_;function xh(){if(b_)return g1;b_=1;var r=ZN();return g1=Function.prototype.bind||r,g1}var m1,__;function Bm(){return __||(__=1,m1=Function.prototype.call),m1}var v1,x_;function mS(){return x_||(x_=1,v1=Function.prototype.apply),v1}var y1,S_;function YN(){return S_||(S_=1,y1=typeof Reflect<"u"&&Reflect&&Reflect.apply),y1}var b1,C_;function KN(){if(C_)return b1;C_=1;var r=xh(),e=mS(),t=Bm(),n=YN();return b1=n||r.call(t,e),b1}var _1,w_;function vS(){if(w_)return _1;w_=1;var r=xh(),e=Qu(),t=Bm(),n=KN();return _1=function(l){if(l.length<1||typeof l[0]!="function")throw new e("a function is required");return n(r,t,l)},_1}var x1,A_;function XN(){if(A_)return x1;A_=1;var r=vS(),e=hS(),t;try{t=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var n=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;return x1=n&&typeof n.get=="function"?r([n.get]):typeof l=="function"?function(h){return l(h==null?h:i(h))}:!1,x1}var S1,T_;function JN(){if(T_)return S1;T_=1;var r=pS(),e=gS(),t=XN();return S1=r?function(i){return r(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:t?function(i){return t(i)}:null,S1}var C1,E_;function QN(){if(E_)return C1;E_=1;var r=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=xh();return C1=t.call(r,e),C1}var w1,k_;function qm(){if(k_)return w1;k_=1;var r,e=dS(),t=IN(),n=LN(),i=MN(),l=DN(),u=ON(),h=Qu(),g=PN(),m=NN(),M=jN(),T=FN(),C=BN(),_=qN(),S=HN(),D=$N(),A=Function,b=function(Ge){try{return A('"use strict"; return ('+Ge+").constructor;")()}catch{}},k=hS(),O=WN(),H=function(){throw new h},q=k?function(){try{return arguments.callee,H}catch{try{return k(arguments,"callee").get}catch{return H}}}():H,G=GN()(),Y=JN(),de=gS(),ee=pS(),ue=mS(),P=Bm(),te={},K=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),ne={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":G&&Y?Y([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":A,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G&&Y?Y(Y([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G||!Y?r:Y(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":k,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G||!Y?r:Y(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G&&Y?Y(""[Symbol.iterator]()):r,"%Symbol%":G?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":q,"%TypedArray%":K,"%TypeError%":h,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":g,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":ue,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":de,"%Math.abs%":m,"%Math.floor%":M,"%Math.max%":T,"%Math.min%":C,"%Math.pow%":_,"%Math.round%":S,"%Math.sign%":D,"%Reflect.getPrototypeOf%":ee};if(Y)try{null.error}catch(Ge){var oe=Y(Y(Ge));ne["%Error.prototype%"]=oe}var ce=function Ge(Oe){var ke;if(Oe==="%AsyncFunction%")ke=b("async function () {}");else if(Oe==="%GeneratorFunction%")ke=b("function* () {}");else if(Oe==="%AsyncGeneratorFunction%")ke=b("async function* () {}");else if(Oe==="%AsyncGenerator%"){var Te=Ge("%AsyncGeneratorFunction%");Te&&(ke=Te.prototype)}else if(Oe==="%AsyncIteratorPrototype%"){var Pe=Ge("%AsyncGenerator%");Pe&&Y&&(ke=Y(Pe.prototype))}return ne[Oe]=ke,ke},me={__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"]},ae=xh(),be=QN(),pe=ae.call(P,Array.prototype.concat),xe=ae.call(ue,Array.prototype.splice),Le=ae.call(P,String.prototype.replace),Ne=ae.call(P,String.prototype.slice),Ve=ae.call(P,RegExp.prototype.exec),Ae=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ot=/\\(\\)?/g,pt=function(Oe){var ke=Ne(Oe,0,1),Te=Ne(Oe,-1);if(ke==="%"&&Te!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&ke!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Pe=[];return Le(Oe,Ae,function(Re,et,ft,wt){Pe[Pe.length]=ft?Le(wt,ot,"$1"):et||Re}),Pe},Xe=function(Oe,ke){var Te=Oe,Pe;if(be(me,Te)&&(Pe=me[Te],Te="%"+Pe[0]+"%"),be(ne,Te)){var Re=ne[Te];if(Re===te&&(Re=ce(Te)),typeof Re>"u"&&!ke)throw new h("intrinsic "+Oe+" exists, but is not available. Please file an issue!");return{alias:Pe,name:Te,value:Re}}throw new u("intrinsic "+Oe+" does not exist!")};return w1=function(Oe,ke){if(typeof Oe!="string"||Oe.length===0)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ke!="boolean")throw new h('"allowMissing" argument must be a boolean');if(Ve(/^%?[^%]*%?$/,Oe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=pt(Oe),Pe=Te.length>0?Te[0]:"",Re=Xe("%"+Pe+"%",ke),et=Re.name,ft=Re.value,wt=!1,it=Re.alias;it&&(Pe=it[0],xe(Te,pe([0,1],it)));for(var rt=1,mt=!0;rt<Te.length;rt+=1){var vt=Te[rt],Ke=Ne(vt,0,1),Ze=Ne(vt,-1);if((Ke==='"'||Ke==="'"||Ke==="`"||Ze==='"'||Ze==="'"||Ze==="`")&&Ke!==Ze)throw new u("property names with quotes must have matching quotes");if((vt==="constructor"||!mt)&&(wt=!0),Pe+="."+vt,et="%"+Pe+"%",be(ne,et))ft=ne[et];else if(ft!=null){if(!(vt in ft)){if(!ke)throw new h("base intrinsic for "+Oe+" exists, but the property is not available.");return}if(k&&rt+1>=Te.length){var yt=k(ft,vt);mt=!!yt,mt&&"get"in yt&&!("originalValue"in yt.get)?ft=yt.get:ft=ft[vt]}else mt=be(ft,vt),ft=ft[vt];mt&&!wt&&(ne[et]=ft)}}return ft},w1}var A1,R_;function yS(){if(R_)return A1;R_=1;var r=qm(),e=vS(),t=e([r("%String.prototype.indexOf%")]);return A1=function(i,l){var u=r(i,!!l);return typeof u=="function"&&t(i,".prototype.")>-1?e([u]):u},A1}var T1,I_;function bS(){if(I_)return T1;I_=1;var r=qm(),e=yS(),t=_h(),n=Qu(),i=r("%Map%",!0),l=e("Map.prototype.get",!0),u=e("Map.prototype.set",!0),h=e("Map.prototype.has",!0),g=e("Map.prototype.delete",!0),m=e("Map.prototype.size",!0);return T1=!!i&&function(){var T,C={assert:function(_){if(!C.has(_))throw new n("Side channel does not contain "+t(_))},delete:function(_){if(T){var S=g(T,_);return m(T)===0&&(T=void 0),S}return!1},get:function(_){if(T)return l(T,_)},has:function(_){return T?h(T,_):!1},set:function(_,S){T||(T=new i),u(T,_,S)}};return C},T1}var E1,L_;function ej(){if(L_)return E1;L_=1;var r=qm(),e=yS(),t=_h(),n=bS(),i=Qu(),l=r("%WeakMap%",!0),u=e("WeakMap.prototype.get",!0),h=e("WeakMap.prototype.set",!0),g=e("WeakMap.prototype.has",!0),m=e("WeakMap.prototype.delete",!0);return E1=l?function(){var T,C,_={assert:function(S){if(!_.has(S))throw new i("Side channel does not contain "+t(S))},delete:function(S){if(l&&S&&(typeof S=="object"||typeof S=="function")){if(T)return m(T,S)}else if(n&&C)return C.delete(S);return!1},get:function(S){return l&&S&&(typeof S=="object"||typeof S=="function")&&T?u(T,S):C&&C.get(S)},has:function(S){return l&&S&&(typeof S=="object"||typeof S=="function")&&T?g(T,S):!!C&&C.has(S)},set:function(S,D){l&&S&&(typeof S=="object"||typeof S=="function")?(T||(T=new l),h(T,S,D)):n&&(C||(C=n()),C.set(S,D))}};return _}:n,E1}var k1,M_;function tj(){if(M_)return k1;M_=1;var r=Qu(),e=_h(),t=RN(),n=bS(),i=ej(),l=i||n||t;return k1=function(){var h,g={assert:function(m){if(!g.has(m))throw new r("Side channel does not contain "+e(m))},delete:function(m){return!!h&&h.delete(m)},get:function(m){return h&&h.get(m)},has:function(m){return!!h&&h.has(m)},set:function(m,M){h||(h=l()),h.set(m,M)}};return g},k1}var R1,D_;function Hm(){if(D_)return R1;D_=1;var r=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return R1={default:t.RFC3986,formatters:{RFC1738:function(n){return r.call(n,e,"+")},RFC3986:function(n){return String(n)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},R1}var I1,O_;function _S(){if(O_)return I1;O_=1;var r=Hm(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n=function(){for(var A=[],b=0;b<256;++b)A.push("%"+((b<16?"0":"")+b.toString(16)).toUpperCase());return A}(),i=function(b){for(;b.length>1;){var k=b.pop(),O=k.obj[k.prop];if(t(O)){for(var H=[],q=0;q<O.length;++q)typeof O[q]<"u"&&H.push(O[q]);k.obj[k.prop]=H}}},l=function(b,k){for(var O=k&&k.plainObjects?{__proto__:null}:{},H=0;H<b.length;++H)typeof b[H]<"u"&&(O[H]=b[H]);return O},u=function A(b,k,O){if(!k)return b;if(typeof k!="object"&&typeof k!="function"){if(t(b))b.push(k);else if(b&&typeof b=="object")(O&&(O.plainObjects||O.allowPrototypes)||!e.call(Object.prototype,k))&&(b[k]=!0);else return[b,k];return b}if(!b||typeof b!="object")return[b].concat(k);var H=b;return t(b)&&!t(k)&&(H=l(b,O)),t(b)&&t(k)?(k.forEach(function(q,G){if(e.call(b,G)){var Y=b[G];Y&&typeof Y=="object"&&q&&typeof q=="object"?b[G]=A(Y,q,O):b.push(q)}else b[G]=q}),b):Object.keys(k).reduce(function(q,G){var Y=k[G];return e.call(q,G)?q[G]=A(q[G],Y,O):q[G]=Y,q},H)},h=function(b,k){return Object.keys(k).reduce(function(O,H){return O[H]=k[H],O},b)},g=function(A,b,k){var O=A.replace(/\+/g," ");if(k==="iso-8859-1")return O.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(O)}catch{return O}},m=1024,M=function(b,k,O,H,q){if(b.length===0)return b;var G=b;if(typeof b=="symbol"?G=Symbol.prototype.toString.call(b):typeof b!="string"&&(G=String(b)),O==="iso-8859-1")return escape(G).replace(/%u[0-9a-f]{4}/gi,function(K){return"%26%23"+parseInt(K.slice(2),16)+"%3B"});for(var Y="",de=0;de<G.length;de+=m){for(var ee=G.length>=m?G.slice(de,de+m):G,ue=[],P=0;P<ee.length;++P){var te=ee.charCodeAt(P);if(te===45||te===46||te===95||te===126||te>=48&&te<=57||te>=65&&te<=90||te>=97&&te<=122||q===r.RFC1738&&(te===40||te===41)){ue[ue.length]=ee.charAt(P);continue}if(te<128){ue[ue.length]=n[te];continue}if(te<2048){ue[ue.length]=n[192|te>>6]+n[128|te&63];continue}if(te<55296||te>=57344){ue[ue.length]=n[224|te>>12]+n[128|te>>6&63]+n[128|te&63];continue}P+=1,te=65536+((te&1023)<<10|ee.charCodeAt(P)&1023),ue[ue.length]=n[240|te>>18]+n[128|te>>12&63]+n[128|te>>6&63]+n[128|te&63]}Y+=ue.join("")}return Y},T=function(b){for(var k=[{obj:{o:b},prop:"o"}],O=[],H=0;H<k.length;++H)for(var q=k[H],G=q.obj[q.prop],Y=Object.keys(G),de=0;de<Y.length;++de){var ee=Y[de],ue=G[ee];typeof ue=="object"&&ue!==null&&O.indexOf(ue)===-1&&(k.push({obj:G,prop:ee}),O.push(ue))}return i(k),b},C=function(b){return Object.prototype.toString.call(b)==="[object RegExp]"},_=function(b){return!b||typeof b!="object"?!1:!!(b.constructor&&b.constructor.isBuffer&&b.constructor.isBuffer(b))},S=function(b,k){return[].concat(b,k)},D=function(b,k){if(t(b)){for(var O=[],H=0;H<b.length;H+=1)O.push(k(b[H]));return O}return k(b)};return I1={arrayToObject:l,assign:h,combine:S,compact:T,decode:g,encode:M,isBuffer:_,isRegExp:C,maybeMap:D,merge:u},I1}var L1,P_;function rj(){if(P_)return L1;P_=1;var r=tj(),e=_S(),t=Hm(),n=Object.prototype.hasOwnProperty,i={brackets:function(A){return A+"[]"},comma:"comma",indices:function(A,b){return A+"["+b+"]"},repeat:function(A){return A}},l=Array.isArray,u=Array.prototype.push,h=function(D,A){u.apply(D,l(A)?A:[A])},g=Date.prototype.toISOString,m=t.default,M={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:e.encode,encodeValuesOnly:!1,filter:void 0,format:m,formatter:t.formatters[m],indices:!1,serializeDate:function(A){return g.call(A)},skipNulls:!1,strictNullHandling:!1},T=function(A){return typeof A=="string"||typeof A=="number"||typeof A=="boolean"||typeof A=="symbol"||typeof A=="bigint"},C={},_=function D(A,b,k,O,H,q,G,Y,de,ee,ue,P,te,K,ne,oe,ce,me){for(var ae=A,be=me,pe=0,xe=!1;(be=be.get(C))!==void 0&&!xe;){var Le=be.get(A);if(pe+=1,typeof Le<"u"){if(Le===pe)throw new RangeError("Cyclic object value");xe=!0}typeof be.get(C)>"u"&&(pe=0)}if(typeof ee=="function"?ae=ee(b,ae):ae instanceof Date?ae=te(ae):k==="comma"&&l(ae)&&(ae=e.maybeMap(ae,function(et){return et instanceof Date?te(et):et})),ae===null){if(q)return de&&!oe?de(b,M.encoder,ce,"key",K):b;ae=""}if(T(ae)||e.isBuffer(ae)){if(de){var Ne=oe?b:de(b,M.encoder,ce,"key",K);return[ne(Ne)+"="+ne(de(ae,M.encoder,ce,"value",K))]}return[ne(b)+"="+ne(String(ae))]}var Ve=[];if(typeof ae>"u")return Ve;var Ae;if(k==="comma"&&l(ae))oe&&de&&(ae=e.maybeMap(ae,de)),Ae=[{value:ae.length>0?ae.join(",")||null:void 0}];else if(l(ee))Ae=ee;else{var ot=Object.keys(ae);Ae=ue?ot.sort(ue):ot}var pt=Y?String(b).replace(/\./g,"%2E"):String(b),Xe=O&&l(ae)&&ae.length===1?pt+"[]":pt;if(H&&l(ae)&&ae.length===0)return Xe+"[]";for(var Ge=0;Ge<Ae.length;++Ge){var Oe=Ae[Ge],ke=typeof Oe=="object"&&Oe&&typeof Oe.value<"u"?Oe.value:ae[Oe];if(!(G&&ke===null)){var Te=P&&Y?String(Oe).replace(/\./g,"%2E"):String(Oe),Pe=l(ae)?typeof k=="function"?k(Xe,Te):Xe:Xe+(P?"."+Te:"["+Te+"]");me.set(A,pe);var Re=r();Re.set(C,me),h(Ve,D(ke,Pe,k,O,H,q,G,Y,k==="comma"&&oe&&l(ae)?null:de,ee,ue,P,te,K,ne,oe,ce,Re))}}return Ve},S=function(A){if(!A)return M;if(typeof A.allowEmptyArrays<"u"&&typeof A.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof A.encodeDotInKeys<"u"&&typeof A.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(A.encoder!==null&&typeof A.encoder<"u"&&typeof A.encoder!="function")throw new TypeError("Encoder has to be a function.");var b=A.charset||M.charset;if(typeof A.charset<"u"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var k=t.default;if(typeof A.format<"u"){if(!n.call(t.formatters,A.format))throw new TypeError("Unknown format option provided.");k=A.format}var O=t.formatters[k],H=M.filter;(typeof A.filter=="function"||l(A.filter))&&(H=A.filter);var q;if(A.arrayFormat in i?q=A.arrayFormat:"indices"in A?q=A.indices?"indices":"repeat":q=M.arrayFormat,"commaRoundTrip"in A&&typeof A.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var G=typeof A.allowDots>"u"?A.encodeDotInKeys===!0?!0:M.allowDots:!!A.allowDots;return{addQueryPrefix:typeof A.addQueryPrefix=="boolean"?A.addQueryPrefix:M.addQueryPrefix,allowDots:G,allowEmptyArrays:typeof A.allowEmptyArrays=="boolean"?!!A.allowEmptyArrays:M.allowEmptyArrays,arrayFormat:q,charset:b,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:M.charsetSentinel,commaRoundTrip:!!A.commaRoundTrip,delimiter:typeof A.delimiter>"u"?M.delimiter:A.delimiter,encode:typeof A.encode=="boolean"?A.encode:M.encode,encodeDotInKeys:typeof A.encodeDotInKeys=="boolean"?A.encodeDotInKeys:M.encodeDotInKeys,encoder:typeof A.encoder=="function"?A.encoder:M.encoder,encodeValuesOnly:typeof A.encodeValuesOnly=="boolean"?A.encodeValuesOnly:M.encodeValuesOnly,filter:H,format:k,formatter:O,serializeDate:typeof A.serializeDate=="function"?A.serializeDate:M.serializeDate,skipNulls:typeof A.skipNulls=="boolean"?A.skipNulls:M.skipNulls,sort:typeof A.sort=="function"?A.sort:null,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:M.strictNullHandling}};return L1=function(D,A){var b=D,k=S(A),O,H;typeof k.filter=="function"?(H=k.filter,b=H("",b)):l(k.filter)&&(H=k.filter,O=H);var q=[];if(typeof b!="object"||b===null)return"";var G=i[k.arrayFormat],Y=G==="comma"&&k.commaRoundTrip;O||(O=Object.keys(b)),k.sort&&O.sort(k.sort);for(var de=r(),ee=0;ee<O.length;++ee){var ue=O[ee],P=b[ue];k.skipNulls&&P===null||h(q,_(P,ue,G,Y,k.allowEmptyArrays,k.strictNullHandling,k.skipNulls,k.encodeDotInKeys,k.encode?k.encoder:null,k.filter,k.sort,k.allowDots,k.serializeDate,k.format,k.formatter,k.encodeValuesOnly,k.charset,de))}var te=q.join(k.delimiter),K=k.addQueryPrefix===!0?"?":"";return k.charsetSentinel&&(k.charset==="iso-8859-1"?K+="utf8=%26%2310003%3B&":K+="utf8=%E2%9C%93&"),te.length>0?K+te:""},L1}var M1,N_;function nj(){if(N_)return M1;N_=1;var r=_S(),e=Object.prototype.hasOwnProperty,t=Array.isArray,n={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(C){return C.replace(/&#(\d+);/g,function(_,S){return String.fromCharCode(parseInt(S,10))})},l=function(C,_,S){if(C&&typeof C=="string"&&_.comma&&C.indexOf(",")>-1)return C.split(",");if(_.throwOnLimitExceeded&&S>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return C},u="utf8=%26%2310003%3B",h="utf8=%E2%9C%93",g=function(_,S){var D={__proto__:null},A=S.ignoreQueryPrefix?_.replace(/^\?/,""):_;A=A.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var b=S.parameterLimit===1/0?void 0:S.parameterLimit,k=A.split(S.delimiter,S.throwOnLimitExceeded?b+1:b);if(S.throwOnLimitExceeded&&k.length>b)throw new RangeError("Parameter limit exceeded. Only "+b+" parameter"+(b===1?"":"s")+" allowed.");var O=-1,H,q=S.charset;if(S.charsetSentinel)for(H=0;H<k.length;++H)k[H].indexOf("utf8=")===0&&(k[H]===h?q="utf-8":k[H]===u&&(q="iso-8859-1"),O=H,H=k.length);for(H=0;H<k.length;++H)if(H!==O){var G=k[H],Y=G.indexOf("]="),de=Y===-1?G.indexOf("="):Y+1,ee,ue;de===-1?(ee=S.decoder(G,n.decoder,q,"key"),ue=S.strictNullHandling?null:""):(ee=S.decoder(G.slice(0,de),n.decoder,q,"key"),ue=r.maybeMap(l(G.slice(de+1),S,t(D[ee])?D[ee].length:0),function(te){return S.decoder(te,n.decoder,q,"value")})),ue&&S.interpretNumericEntities&&q==="iso-8859-1"&&(ue=i(String(ue))),G.indexOf("[]=")>-1&&(ue=t(ue)?[ue]:ue);var P=e.call(D,ee);P&&S.duplicates==="combine"?D[ee]=r.combine(D[ee],ue):(!P||S.duplicates==="last")&&(D[ee]=ue)}return D},m=function(C,_,S,D){var A=0;if(C.length>0&&C[C.length-1]==="[]"){var b=C.slice(0,-1).join("");A=Array.isArray(_)&&_[b]?_[b].length:0}for(var k=D?_:l(_,S,A),O=C.length-1;O>=0;--O){var H,q=C[O];if(q==="[]"&&S.parseArrays)H=S.allowEmptyArrays&&(k===""||S.strictNullHandling&&k===null)?[]:r.combine([],k);else{H=S.plainObjects?{__proto__:null}:{};var G=q.charAt(0)==="["&&q.charAt(q.length-1)==="]"?q.slice(1,-1):q,Y=S.decodeDotInKeys?G.replace(/%2E/g,"."):G,de=parseInt(Y,10);!S.parseArrays&&Y===""?H={0:k}:!isNaN(de)&&q!==Y&&String(de)===Y&&de>=0&&S.parseArrays&&de<=S.arrayLimit?(H=[],H[de]=k):Y!=="__proto__"&&(H[Y]=k)}k=H}return k},M=function(_,S,D,A){if(_){var b=D.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,k=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,H=D.depth>0&&k.exec(b),q=H?b.slice(0,H.index):b,G=[];if(q){if(!D.plainObjects&&e.call(Object.prototype,q)&&!D.allowPrototypes)return;G.push(q)}for(var Y=0;D.depth>0&&(H=O.exec(b))!==null&&Y<D.depth;){if(Y+=1,!D.plainObjects&&e.call(Object.prototype,H[1].slice(1,-1))&&!D.allowPrototypes)return;G.push(H[1])}if(H){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");G.push("["+b.slice(H.index)+"]")}return m(G,S,D,A)}},T=function(_){if(!_)return n;if(typeof _.allowEmptyArrays<"u"&&typeof _.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof _.decodeDotInKeys<"u"&&typeof _.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(_.decoder!==null&&typeof _.decoder<"u"&&typeof _.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof _.charset<"u"&&_.charset!=="utf-8"&&_.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof _.throwOnLimitExceeded<"u"&&typeof _.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var S=typeof _.charset>"u"?n.charset:_.charset,D=typeof _.duplicates>"u"?n.duplicates:_.duplicates;if(D!=="combine"&&D!=="first"&&D!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var A=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:n.allowDots:!!_.allowDots;return{allowDots:A,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:n.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:n.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:n.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:n.arrayLimit,charset:S,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:n.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:n.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:n.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:n.decoder,delimiter:typeof _.delimiter=="string"||r.isRegExp(_.delimiter)?_.delimiter:n.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:n.depth,duplicates:D,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:n.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:n.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:n.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:n.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:n.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded=="boolean"?_.throwOnLimitExceeded:!1}};return M1=function(C,_){var S=T(_);if(C===""||C===null||typeof C>"u")return S.plainObjects?{__proto__:null}:{};for(var D=typeof C=="string"?g(C,S):C,A=S.plainObjects?{__proto__:null}:{},b=Object.keys(D),k=0;k<b.length;++k){var O=b[k],H=M(O,D[O],S,typeof C=="string");A=r.merge(A,H,S)}return S.allowSparse===!0?A:r.compact(A)},M1}var D1,j_;function ij(){if(j_)return D1;j_=1;var r=rj(),e=nj(),t=Hm();return D1={formats:t,parse:e,stringify:r},D1}var oj=ij();const sj=il(oj),im={StoredContexts:{},defaultHandler:()=>{}},xS={Init:()=>{},Create:r=>{const e=r.method+r.url;return im.StoredContexts[e]=r,aj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{im.defaultHandler=r}};function aj(r){const e=`[${r.method}] ${r.url}`;return{Call:async n=>{let{url:i,method:l,stream:u,paramType:h}=r;const{po:g,onStream:m,onStreamEnd:M,noDefaultHandle:T=[]}=n??{};(h==="query"||l==="GET")&&g!==void 0&&(i+="?"+sj.stringify(g,{arrayFormat:"comma"}));const C={method:l,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(h==="form"){const D=new FormData;if(g!==void 0)for(const A in g){const b=g[A];D.append(A,b)}C.body=D}else(h==="body"||h===void 0&&r.method!=="GET")&&(C.body=JSON.stringify(g),C.headers["Content-Type"]="application/json;charset=UTF-8");let _={errorCode:0,message:""};const S=Date.now();i=xS.FetchBaseUrl()+i;try{let D=await fetch(i,C);if(D.ok===!1)return _.errorCode=D.status,_.message=D.statusText,_;{const A=new TextDecoder("utf-8");if(u){if(D.body){let b=D.body.getReader(),k="";for(;;){const O=await b.read();if(O.done)break;const H=A.decode(O.value).trim();k+=H;let q=null;try{const G=H.split("\0");let Y=G[G.length-1];for(let de=G.length-2;de>=0;de--)if(G[de].trim().length!==0){Y=G[de];break}q=await JSON.parse(Y)}catch{try{const Y=k.split("\0");let de=Y[Y.length-1];for(let ee=Y.length-2;ee>=0;ee--)if(Y[ee].trim().length!==0){de=Y[ee];break}q=await JSON.parse(de)}catch{}}if(q!=null&&(Object.keys(q).includes("err_code")?_.errorCode=q.err_code:(_.errorCode=0,_.data=q,k="",O.done?M==null||M(_.data):m==null||m(_.data))),O.done)break}}}else if(D.body){const k=await D.body.getReader().read(),O=A.decode(k.value);if(O==="null")return _;{let H=await JSON.parse(O.replaceAll("\0",""));Object.keys(H).includes("err_code")?(_.errorCode=H.err_code,_.message=H.err_msg):_.data=H}}}}catch(D){console.warn(D),_.errorCode=-1,_.message=D.message}return console.debug(`${e} ${Date.now()-S}ms`),T!==!0&&await im.defaultHandler(_,T),_}}}async function lj(r){const e=new Promise((t,n)=>{const i=new FileReader;i.onloadend=()=>{i.result?typeof i.result=="string"?t(i.result):n(new Error("Failed to convert file to Base64: Invalid result type.")):n(new Error("Failed to convert file to Base64: Empty result."))},i.onerror=n,i.readAsDataURL(r)});try{return await e}catch{return}}function cj(r,e){var h,g;const t=r.split(","),n=(g=(h=t[0])==null?void 0:h.match(/:(.*?);/))==null?void 0:g[1],i=atob(t[1]);let l=i.length;const u=new Uint8Array(l);for(;l--;)u[l]=i.charCodeAt(l);return new File([u],e,{type:n})}const uj={toBase64:lj,toFile:cj};exports.ABase=Ur;exports.ABaseStyleKeys=r2;exports.AButton=Bi;exports.AButtonStyleKeys=i2;exports.AButtonTypes=r5;exports.ACheckBox=Uu;exports.ACheckBoxStyleKeys=l2;exports.AChip=L2;exports.AChipKeys=E2;exports.AChips=vT;exports.AClock=IT;exports.AColFrame=R2;exports.ADatePicker=dm;exports.ADatePickerStyleKeys=y2;exports.ADatePickerTypes=n6;exports.ADateRangePicker=um;exports.ADateRangePickerStyleKeys=b2;exports.ADialog=d6;exports.ADialogStyleKeys=c2;exports.ADialogTypes=f6;exports.ADivideFrame=oT;exports.AEditor=FP;exports.AEditorStyleKeys=a2;exports.AFileBox=C6;exports.AFileBoxStyleKeys=g2;exports.AFloatMenu=O2;exports.AFloatMenuKeys=C2;exports.AFrameStyleKeys=S2;exports.AGrow=Yc;exports.AIcon=Fr;exports.AIconButton=vo;exports.AIconButtonStyleKeys=_2;exports.AIconButtonTypes=n5;exports.AIconHOC=FA;exports.AIcons=am;exports.AInput=Jl;exports.AInputStyleKeys=o2;exports.AInputTypes=$T;exports.AListView=P6;exports.AListViewStyleKeys=m2;exports.ALoadingBorder=hm;exports.ALoadingBorderKeys=w2;exports.AMultiSelect=c8;exports.AMultiSelectStyleKeys=f2;exports.ANumInput=I6;exports.AOverflowFrame=Xl;exports.ARadioSelect=Z6;exports.ARadioSelectKeys=T2;exports.ARowFrame=si;exports.ASelect=Wc;exports.ASelectStyleKeys=u2;exports.ASelectTypes=iE;exports.ASpace=mn;exports.AStepper=w8;exports.AStepperStyleKeys=v2;exports.ASwitch=Y_;exports.ASwitchFrame=I2;exports.ASwitchStyleKeys=h2;exports.ATab=j2;exports.ATabStyleKeys=p2;exports.ATabTypes=N8;exports.ATable=$k;exports.ATableStyleKeys=x2;exports.AText=z2;exports.ATextArea=eR;exports.ATextAreaStyleKeys=s2;exports.ATextAreaTypes=Qk;exports.AThemeButton=H5;exports.AThemes=Df;exports.ATooltip=Z_;exports.ATooltipStyleKeys=n2;exports.ATree=SN;exports.ATreeStyleKeys=d2;exports.AWrap=Uc;exports.AWrapKeys=A2;exports.AWrapTypes=x5;exports.ApiContext=xS;exports.BodyStyleKeys=t2;exports.CreateADC=y6;exports.DefaultOptionRenderer=N2;exports.EDir12=Ku;exports.EDir4=vi;exports.FileSizeTrans=nm;exports.Icons=th;exports.IsCursorPointer=z_;exports.IsFixedShape=H_;exports.IsInteractive=$_;exports.NoSelect=q_;exports.Resources=hn;exports.SetResources=g5;exports.alphanumericRegex=bT;exports.bound=Mf;exports.cbF=Tr;exports.changeSemanticMode=cm;exports.componentStyleKeys=D5;exports.createEvent=$c;exports.dateF=zt;exports.defaultPredicate=B2;exports.dlgF=b6;exports.emailIdRegex=xT;exports.emailRegex=_T;exports.fileF=uj;exports.getMonthsOptions=Wf;exports.getYearsOptions=fm;exports.hangulRegex=CT;exports.hexRegex=ST;exports.noHanguljamoRegex=AT;exports.noSpaceRegex=wT;exports.numF=P2;exports.objF=Kt;exports.paletteKeys=K_;exports.paletteModes=rh;exports.passwordRegex=ET;exports.refinedDesignTokens=bi;exports.sF=Fe;exports.semanticKeys=Q_;exports.semanticModes=$u;exports.setDir12Style=lm;exports.setDir12StyleElem=V_;exports.specialCharRegex=TT;exports.strF=D2;exports.tableF=Ja;exports.treeF=Qa;exports.useADialogCore=m6;exports.useADialogCores=g6;exports.useEvent=H2;exports.useInit=F2;exports.useValues=pn;exports.uuidRegex=kT;
|
package/dist/index.es.js
CHANGED
@@ -30802,7 +30802,7 @@ const oM = [
|
|
30802
30802
|
...T == null ? void 0 : T.style,
|
30803
30803
|
height: Ge,
|
30804
30804
|
maxHeight: O,
|
30805
|
-
minHeight: "fit-content",
|
30805
|
+
minHeight: R === void 0 ? void 0 : "fit-content",
|
30806
30806
|
overflow: R === void 0 ? "hidden" : void 0
|
30807
30807
|
}
|
30808
30808
|
},
|