ados-rcm 1.1.340 → 1.1.341

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 CHANGED
@@ -344,9 +344,9 @@ Error generating stack: `+d.message+`
344
344
  `,"user"),this.quill.setSelection(i+1,0),t.index=i+1}else{const l=this.quill.getLine(t.index)[0];l&&l.length()>1?(this.quill.insertText(t.index,`
345
345
 
346
346
  `,"user"),t.index+=2):(this.quill.insertText(t.index,`
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 IP(){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 LP=IP();const Vb=il(LP);class MP{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(Br,{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(Br,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Os.renderToString(v.jsx(Br,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Os.renderToString(v.jsx(Br,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Os.renderToString(v.jsx(Br,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Os.renderToString(v.jsx(Br,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Os.renderToString(v.jsx(Br,{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=Wn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",Wn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=Wn["ql-tableui-helper__icon"],t.innerHTML=Os.renderToString(v.jsx(Br,{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:Wn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:Wn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:Wn["ql-tableui-options__item-text"],children:u.title})]},h)),l=()=>v.jsx("div",{className:Wn["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,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(Br,{icon:"Table",strokeWidth:2.5}));cS.divider=Os.renderToString(v.jsx(Br,{icon:"Minus",strokeWidth:2.5}));const DP={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},OP=$e.import("blots/block/embed");class rm extends OP{}at(rm,"blotName","divider"),at(rm,"tagName","hr");$e.register({"modules/imageCompress":ZD,"modules/resize":JD,"modules/tablePicker":RP,"modules/tableUI":MP,"formats/header":BP(lS),"formats/divider":rm},!0);const PP=["bold","italic","underline","strike","blockquote","table","size","header","color","indent","list","align","image","link","video","divider"],NP=[[{header:lS}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],jP=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:q="Med",...H}=r,G=I.useMemo(()=>n==="ReadOnly",[n]),Y=I.useMemo(()=>k?20:0,[k]),[de,ee]=I.useState(q==="Med"?40:50),ue=I.useMemo(()=>G?0:de,[G,de]),[P,ne]=I.useMemo(()=>[20,6],[]),K=I.useMemo(()=>u?P+ne:0,[u,P,ne]),[re,oe]=I.useState(k),[ce,me]=I.useState(!1),[ae,be]=I.useState(!1),ge=I.useRef(null),xe=I.useRef(0),Ie=I.useRef(0),Pe=I.useCallback(nt=>{if(!ce||!k)return;const We=nt.clientY-Ie.current,Ve=Math.min(O,Math.max(k,xe.current+We));oe(Ve)},[k,ce,O]),Ke=I.useCallback(()=>{me(!1),be(!1),window.removeEventListener("mousemove",Pe),window.removeEventListener("mouseup",Ke)},[Pe]),Te=I.useCallback(nt=>{if(!re)return;if(nt.detail===2){oe(k);return}me(!0),be(!0),xe.current=re,Ie.current=nt.clientY;const We=dt=>{if(!k)return;const Ce=dt.clientY-Ie.current,it=Math.min(O,Math.max(k,xe.current+Ce));oe(it)},Ve=()=>{me(!1),be(!1),window.removeEventListener("mousemove",We),window.removeEventListener("mouseup",Ve)};window.addEventListener("mousemove",We),window.addEventListener("mouseup",Ve)},[k,re,O]),rt=I.useMemo(()=>{if(k){if(re)switch(n){case"ReadOnly":return re;case"Raw":return re+K;default:return re+ue+K}}else return b},[k,re,n,ue,K,b]),pt=I.useMemo(()=>FP(t)?"Error":n,[t,n]),[Xe,Ze]=pn(l,""),[Oe,ke]=pn(u,!1),[Ee,Ne]=I.useState(()=>{if(!Xe)return new $t;try{const nt=document.createElement("div");return nt.innerHTML=Xe,new $e(nt,{readOnly:!0}).getContents()}catch(nt){return console.warn("Error parsing HTML content:",nt),new $t}}),Re=I.useMemo(()=>Math.floor(5e4*.68234)*3,[]),Je=I.useCallback(nt=>nt.ops?nt.ops.reduce((We,Ve)=>{if(typeof Ve.insert=="string"){const dt=Ve.insert.replace(/\n/g,"");return We+dt.split("").reduce((Ce,it)=>Ce+(it.charCodeAt(0)<=127?1:3),0)}return typeof Ve.insert=="object"&&Ve.insert.image?We+Ve.insert.image.length:We},0):0,[]),ut=I.useMemo(()=>({clipboard:{matchVisual:!1},imageCompress:{quality:.5},...!G&&{resize:{locale:DP},table:!0,tablePicker:!0,tableUI:!0,toolbar:{container:NP,handlers:{divider:function(){const nt=this.quill,We=nt.getSelection(!0),Ve=nt.getModule("table"),dt=Ve&&(()=>{try{return!!Ve.getTable(We)[0]}catch{return!1}})();dt||nt.insertText(We.index,`
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 IP(){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 LP=IP();const Vb=il(LP);class MP{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(Br,{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(Br,{icon:"AddColLeft"})),title:hn.AEditor["Insert Column Left"]},{handler:()=>{this.table.insertRowAbove()},icon:Os.renderToString(v.jsx(Br,{icon:"AddRowAbove"})),title:hn.AEditor["Insert Row Top"]},{handler:()=>{this.table.insertRowBelow()},icon:Os.renderToString(v.jsx(Br,{icon:"AddRowBelow"})),title:hn.AEditor["Insert Row Bottom"]},{handler:()=>{this.table.deleteColumn()},icon:Os.renderToString(v.jsx(Br,{icon:"RemoveCol"})),title:hn.AEditor["Delete Column"]},{handler:()=>{this.table.deleteRow()},icon:Os.renderToString(v.jsx(Br,{icon:"RemoveRow"})),title:hn.AEditor["Delete Row"]},{handler:()=>{this.table.deleteTable()},icon:Os.renderToString(v.jsx(Br,{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=Wn["ql-tableui-helper"];const e=document.createElement("span");e.className=Fe.clsx("Caption1",Wn["ql-tableui-helper__text"],"NoSelect"),e.textContent=hn.AEditor["Right click to open properties"];const t=document.createElement("span");t.className=Wn["ql-tableui-helper__icon"],t.innerHTML=Os.renderToString(v.jsx(Br,{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:Wn["ql-tableui-options__item"],onClick:this.createItemClickHandler(u),children:[v.jsx("span",{className:Wn["ql-tableui-options__item-icon"],dangerouslySetInnerHTML:{__html:u.icon}}),v.jsx("span",{className:Wn["ql-tableui-options__item-text"],children:u.title})]},h)),l=()=>v.jsx("div",{className:Wn["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,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(Br,{icon:"Table",strokeWidth:2.5}));cS.divider=Os.renderToString(v.jsx(Br,{icon:"Minus",strokeWidth:2.5}));const DP=$e.import("blots/block/embed");class rm extends DP{}at(rm,"blotName","divider"),at(rm,"tagName","hr");$e.register({"modules/imageCompress":ZD,"modules/resize":JD,"modules/tablePicker":RP,"modules/tableUI":MP,"formats/header":FP(lS),"formats/divider":rm},!0);const OP=["bold","italic","underline","strike","blockquote","table","size","header","color","indent","list","align","image","link","video","divider"],PP=[[{header:lS}],["bold","italic","underline","strike","blockquote","divider","table",{color:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["link","image","video"],["clean"]],NP=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:q="Med",...H}=r,G=I.useMemo(()=>n==="ReadOnly",[n]),Y=I.useMemo(()=>k?20:0,[k]),[de,ee]=I.useState(q==="Med"?40:50),ue=I.useMemo(()=>G?0:de,[G,de]),[P,ne]=I.useMemo(()=>[20,6],[]),K=I.useMemo(()=>u?P+ne:0,[u,P,ne]),[re,oe]=I.useState(k),[ce,me]=I.useState(!1),[ae,be]=I.useState(!1),ge=I.useRef(null),xe=I.useRef(0),Ie=I.useRef(0),Pe=I.useCallback(nt=>{if(!ce||!k)return;const We=nt.clientY-Ie.current,Ve=Math.min(O,Math.max(k,xe.current+We));oe(Ve)},[k,ce,O]),Ke=I.useCallback(()=>{me(!1),be(!1),window.removeEventListener("mousemove",Pe),window.removeEventListener("mouseup",Ke)},[Pe]),Te=I.useCallback(nt=>{if(!re)return;if(nt.detail===2){oe(k);return}me(!0),be(!0),xe.current=re,Ie.current=nt.clientY;const We=dt=>{if(!k)return;const Ce=dt.clientY-Ie.current,it=Math.min(O,Math.max(k,xe.current+Ce));oe(it)},Ve=()=>{me(!1),be(!1),window.removeEventListener("mousemove",We),window.removeEventListener("mouseup",Ve)};window.addEventListener("mousemove",We),window.addEventListener("mouseup",Ve)},[k,re,O]),rt=I.useMemo(()=>{if(k){if(re)switch(n){case"ReadOnly":return re;case"Raw":return re+K;default:return re+ue+K}}else return b},[k,re,n,ue,K,b]),pt=I.useMemo(()=>jP(t)?"Error":n,[t,n]),[Xe,Ze]=pn(l,""),[Oe,ke]=pn(u,!1),[Ee,Ne]=I.useState(()=>{if(!Xe)return new $t;try{const nt=document.createElement("div");return nt.innerHTML=Xe,new $e(nt,{readOnly:!0}).getContents()}catch(nt){return console.warn("Error parsing HTML content:",nt),new $t}}),Re=I.useMemo(()=>Math.floor(5e4*.68234)*3,[]),Je=I.useCallback(nt=>nt.ops?nt.ops.reduce((We,Ve)=>{if(typeof Ve.insert=="string"){const dt=Ve.insert.replace(/\n/g,"");return We+dt.split("").reduce((Ce,it)=>Ce+(it.charCodeAt(0)<=127?1:3),0)}return typeof Ve.insert=="object"&&Ve.insert.image?We+Ve.insert.image.length:We},0):0,[]),ut=I.useMemo(()=>({clipboard:{matchVisual:!1},imageCompress:{quality:.5},...!G&&{resize:{locale:{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}},table:!0,tablePicker:!0,tableUI:!0,toolbar:{container:PP,handlers:{divider:function(){const nt=this.quill,We=nt.getSelection(!0),Ve=nt.getModule("table"),dt=Ve&&(()=>{try{return!!Ve.getTable(We)[0]}catch{return!1}})();dt||nt.insertText(We.index,`
348
348
  `,$e.sources.USER);const Ce=dt?0:1;nt.insertEmbed(We.index+Ce,"divider",!0,$e.sources.USER),nt.setSelection(We.index+Ce+1,0,$e.sources.SILENT)}}}}}),[G]),wt=I.useCallback((nt,We,Ve,dt)=>{var Ct;if(!Ze||Ve!=="user")return;const Ce=dt.getContents(),it=dt.getHTML(),gt=((Ct=Ce.ops)==null?void 0:Ct.length)===1&&Ce.ops[0].insert===`
349
- `;if(ke){const Lt=Je(Ce);ke(Lt>Re)}Ze(gt?"":it),Ne(Ce)},[Je,Re,ke,Ze]),St=I.useMemo(()=>q==="Med"?8:12.5,[q]),vt=I.useCallback(nt=>{if(!nt)return;const We=nt.getEditor();if(!We)return;const Ve=[],dt={input:mt=>{const yt=mt.target;yt.value=yt.value.replace(/[^0-9]/g,"");const rr=parseInt(yt.value);rr>100&&(yt.value="100"),rr<1&&(yt.value="1")},keyDown:mt=>{if(mt.key!=="Delete"&&mt.key!=="Backspace")return;const yt=document.querySelector("#image-resizer");if(!yt)return;const rr=yt.getBoundingClientRect(),kr=document.querySelectorAll(".ql-editor img"),vr=Array.from(kr).find(he=>{const te=he.getBoundingClientRect();return Math.abs(te.left-rr.left)<5&&Math.abs(te.top-rr.top)<5});if(vr){yt.style.display="none";const he=$e.find(vr),te=We.getIndex(he);he.remove(),We.setSelection(te,0,$e.sources.USER)}},formatExpand:mt=>{const yt=We.getFormat();mt.forEach(rr=>{if(yt[rr]){const kr=yt[rr],vr=`.ql-${rr}`,he=document.querySelector(`${vr} .ql-picker-label`),te=document.querySelectorAll(`${vr} .ql-picker-item`),qe=Array.from(te).find(ot=>ot.getAttribute("data-value")===kr);qe&&(qe.classList.add("ql-selected"),he==null||he.classList.add("ql-active"))}})},resizeToolbar:mt=>{requestAnimationFrame(()=>{for(const yt of mt)ee(yt.contentRect.height+St*2)})}},Ce=We.root,it=document.querySelector(".ql-snow.ql-toolbar"),gt=document.querySelector("#image-resizer .input-wrapper input"),Ct=new ResizeObserver(dt.resizeToolbar),Lt=["header","color"],He=[];return Ce==null||Ce.addEventListener("keydown",dt.keyDown),gt==null||gt.addEventListener("input",dt.input),Ct.observe(it),Lt.forEach(mt=>{const yt=document.querySelector(`.ql-${mt} .ql-picker-label`);yt&&(yt.addEventListener("click",()=>dt.formatExpand(Lt)),He.push(yt))}),Ve.push(()=>{Ce==null||Ce.removeEventListener("keydown",dt.keyDown),gt==null||gt.removeEventListener("input",dt.input),Ct.disconnect(),He.forEach(mt=>mt.removeEventListener("click",()=>dt.formatExpand(Lt)))}),()=>Ve.forEach(mt=>mt())},[St]),It=I.useCallback(nt=>{i&&(typeof i=="function"?i(nt):i.current=nt),nt&&vt(nt)},[i,vt]);return v.jsx(Uc,{helperText:C,label:_,wrapType:D,labelProps:S,errorMessage:t,wrapProps:{...T,style:{...T==null?void 0:T.style,height:rt,maxHeight:O,minHeight:"fit-content"}},children:v.jsxs(Ur,{...H,className:Fe.clsx(H.className,Wn.AEditorContainer),style:{...A,height:rt},children:[v.jsx(bh,{...M,ref:It,className:Fe.clsx(M==null?void 0:M.className,Wn.AEditor,Wn[pt]),formats:PP,modules:ut,placeholder:h,readOnly:G,theme:"snow",value:Ee,style:{"--icon-size":`${q==="Med"?18:24}px`,"--toolbar-padding":`${St}px`,"--content-height":re?`${re-Y}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Os.renderToString(v.jsx(Br,{icon:"EditorArrow"})))}`},onChange:wt}),k&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:ge,className:Wn.Resizer,style:{height:Y,bottom:u&&!G?K:0},onMouseDown:Te}),ae&&v.jsx("div",{className:Fe.clsx(Wn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!G?K+2:2},children:`${Math.round(re)}px`})]}),u&&!G&&v.jsx("div",{className:Fe.clsx(Wn.LimitContainer,"NoSelect"),style:{marginTop:ne,minHeight:P},children:v.jsxs(Xl,{className:Wn.Limit,children:["(",v.jsx("span",{className:Oe?Wn.Error:void 0,children:nm(Je(Ee))})," / ",nm(Re),")"]})})]})})};function FP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function BP(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 qP(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function HP(r){Array.isArray(r)||(r=[r]);let e=0;return sd(r,()=>e++),e}function zP(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 $P(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 UP(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:qP,length:HP,replace:zP,descendants:$P,ancestors:UP},WP="_AWrap_f5le3_1",VP="_AContainer_f5le3_10",GP="_ATree_f5le3_18",ZP="_ATreeBody_f5le3_30",YP="_CoverBorder_f5le3_36",KP="_InsertBorder_f5le3_45",XP="_ATreeHeader_f5le3_76",JP="_ATreeBodyHeader_f5le3_82",QP="_ATreeBodyHeaderResources_f5le3_92",eN="_ATreeItem_f5le3_98",tN="_IsSelectUsed_f5le3_114",rN="_IsSelected_f5le3_117",nN="_IsSearchSelected_f5le3_122",iN="_IsHovered_f5le3_133",oN="_CheckBox_f5le3_137",sN="_Indents_f5le3_149",aN="_ExpandIcon_f5le3_156",lN="_Content_f5le3_168",cN="_RightSticky_f5le3_177",uN="_SearchInputWrap_f5le3_188",fN="_SearchInput_f5le3_188",dN="_RightAddon_f5le3_200",hN="_RightAddonIcon_f5le3_211",pN="_Loader_f5le3_218",fn={AWrap:WP,AContainer:VP,ATree:GP,ATreeBody:ZP,CoverBorder:YP,InsertBorder:KP,ATreeHeader:XP,ATreeBodyHeader:JP,ATreeBodyHeaderResources:QP,ATreeItem:eN,IsSelectUsed:tN,IsSelected:rN,IsSearchSelected:nN,IsHovered:iN,CheckBox:oN,Indents:sN,ExpandIcon:aN,Content:lN,RightSticky:cN,SearchInputWrap:uN,SearchInput:fN,RightAddon:dN,RightAddonIcon:hN,Loader:pN},gN=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:q,onMouseOver:H,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:ne,TreeItemClassName:K,searchItemStyle:re,searchItemClassName:oe,height:ce}=r,{children:me}=I.useMemo(()=>t,[t]),[ae,be]=I.useMemo(()=>g,[g]),[ge,xe]=I.useMemo(()=>m,[m]),[Ie,Pe]=I.useMemo(()=>M,[M]),Ke=I.useMemo(()=>i?i(t):!1,[i,t]),Te=I.useMemo(()=>!n||l?l:n(t),[n,l,t]),rt=I.useMemo(()=>ae.some(He=>e(He,t)),[ae,e,t]),pt=I.useMemo(()=>!me||me.length<1?"noChild":rt?"expanded":"collapsed",[me,rt]),Xe=I.useMemo(()=>{const He=D[pt];return am.includes(He)?v.jsx(Br,{style:{width:A,height:A},icon:He}):He},[D,A,pt]),Ze=I.useCallback(He=>{!be||pt==="noChild"||(be(rt?ae.filter(mt=>!e(mt,t)):[...ae,t]),He.stopPropagation())},[be,ae,rt,t,e,pt]),Oe=I.useMemo(()=>ge.some(He=>e(He,t)),[ge,e,t]),ke=I.useCallback(()=>{!xe||Te||(xe(b?Oe?ge.filter(He=>!e(He,t)):[...ge,t]:[t]),Ie&&Pe&&Ie.items.some(He=>e(He,t))&&Pe({...Ie,item:t}))},[b,Te,Oe,Ie,Pe,xe,e,ge,t]),Ee=I.useMemo(()=>Ie==null?void 0:Ie.items.some(He=>e(He,t)),[Ie,e,t]),Ne=I.useMemo(()=>Ee&&(Ie==null?void 0:Ie.item)&&e(Ie.item,t),[Ee,Ie,e,t]),Re=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{if(Ne&&Re.current&&P.current){const{top:He,bottom:mt}=Re.current.getBoundingClientRect(),{top:yt,bottom:rr}=P.current.getBoundingClientRect();(He<yt||mt>rr)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[P,Ne]);const[Je,ut]=I.useState(!1),wt=I.useCallback(()=>!Te&&ut(!0),[Te]),St=I.useCallback(()=>!Te&&ut(!1),[Te]),vt=I.useMemo(()=>Qa.map(t,He=>He).filter(He=>!(n!=null&&n(He))&&!(i!=null&&i(He))),[n,i,t]),It=I.useMemo(()=>!S||!b?!1:Oe&&vt.some(He=>ge.some(mt=>e(He,mt)))&&vt.some(He=>!ge.some(mt=>e(He,mt))),[S,b,Oe,vt,e,ge]),nt=I.useMemo(()=>S?b?vt.every(He=>ge.some(mt=>e(He,mt))):ge.some(He=>e(He,t)):!1,[S,b,vt,t,e,ge]),We=I.useCallback(()=>{if(!(!xe||Te))if(b)if(Oe){const He=ge.filter(mt=>!(i!=null&&i(mt))&&!(n!=null&&n(mt))&&vt.some(yt=>e(yt,mt)));He.length>0&&xe(ge.filter(mt=>!He.some(yt=>e(mt,yt))))}else{const He=vt.filter(mt=>!(i!=null&&i(mt))&&!(n!=null&&n(mt))&&!ge.some(yt=>e(yt,mt)));He.length>0&&xe([...ge,...He])}else xe([t])},[Te,n,i,b,xe,e,Oe,ge,vt,t]),Ve=I.useCallback(He=>{Te||We(),He.stopPropagation()},[Te,We]),dt=I.useMemo(()=>{if(!S||!b||Te)return"";if(Oe){const mt=ge.filter(yt=>!(i!=null&&i(yt))&&!(n!=null&&n(yt))&&vt.some(rr=>e(rr,yt)));if(mt.length>0)return ue["deselect n"](mt.length)}const He=vt.filter(mt=>!(i!=null&&i(mt))&&!(n!=null&&n(mt))&&!ge.some(yt=>e(yt,mt)));return ue["select n"](He.length)},[n,i,ue,Te,S,b,Oe,vt,e,ge]),Ce=I.useMemo(()=>Er.getContent(ee,r),[ee,r]),it=I.useMemo(()=>Er.getContent(ne,r),[r,ne]),gt=I.useMemo(()=>Er.getContent(K,r),[r,K]),Ct=I.useMemo(()=>Er.getContent(oe,r),[r,oe]),Lt=I.useMemo(()=>Er.getContent(re,r),[r,re]);return v.jsxs(I.Fragment,{children:[v.jsxs(Ur,{className:Fe.clsx(fn.ATreeItem,Oe&&fn.IsSelected,!Te&&(Je||O)&&fn.IsHovered,Ee&&fn.IsSearched,Ne&&(Ct||fn.IsSearchSelected),!Ke&&fn.IsSelectUsed,"NoSelect",gt),style:{...it,...Ne&&Lt,"--ATreeItem_height":`${ce}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:He=>C==null?void 0:C(He,t),onDragEnd:He=>_==null?void 0:_(He,t),onClick:ke,abaseRef:Re,isDisabled:Te,onMouseOver:He=>H==null?void 0:H(He,t),onMouseLeave:He=>G==null?void 0:G(He,t),children:[S&&v.jsx(Uu,{style:{visibility:Te||Ke?"hidden":"visible",zIndex:Te||Ke?0:2},className:fn.CheckBox,useCheck:[+nt,We],onClick:Ve,isIndeterminate:It,onMouseOver:wt,onMouseOut:St,tooltip:dt,isDisabled:Te}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((He,mt)=>{const yt=mt===u.length-1;return v.jsx(I2,{value:He,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(vN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:yt}).expanded:v.jsx(mN,{iconWidth:A,isLast:yt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(yN,{iconWidth:A})}},mt)})}),Xe&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ze,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&&(Je||O),hoverdItem:q,onMouseOver:H,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:ne,TreeItemClassName:K,searchItemClassName:Ct,searchItemStyle:re,height:ce})}),Ce&&v.jsx("div",{className:fn.RightSticky,children:Ce})]}),rt&&(me==null?void 0:me.map((He,mt)=>v.jsx(de,{isEqual:e,item:He,selectDisabled:n,selectUnused:i,indents:[...u.map(yt=>yt==="IsLast"?"Collapsed":yt),mt===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&&(Je||O),hoverdItem:q,onMouseOver:H,onMouseLeave:G,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:ne,TreeItemClassName:K,searchItemClassName:Ct,searchItemStyle:re,height:ce},mt)))]})},mN=({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)"}})}),vN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),yN=({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)"}}),bN=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(_N,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},_N=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(Br,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:C,isDisabled:M,children:v.jsx(Br,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},xN=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=CN,isDisabled:O,isLoading:q,ContentRenderer:H=SN,TreeItemRenderer:G=gN,RightStickyAddon:Y,TopRightAddon:de,TreeTopAddon:ee,resources:ue,maxLength:P,autoFocus:ne,TreeItemStyle:K,TreeItemClassName:re,OverflowPadding:oe,insertBorder:ce,width:me,searchItemClassName:ae,searchItemStyle:be,height:ge=40,...xe}=r,Ie=I.useMemo(()=>({...hn.ATree,...ue}),[ue]),Pe=I.useCallback((lt,Rt)=>e!==void 0?Array.isArray(e)?e.every(_t=>el.isEqual(lt[_t],Rt[_t])):el.isEqual(lt[e],Rt[e]):el.isEqual(lt,Rt),[e]),Ke=I.useRef(null),[Te,rt]=pn(i,[]),pt=I.useMemo(()=>Qa.map(Te,lt=>lt),[Te]),[Xe,Ze]=pn(l,[]),[Oe,ke]=pn(u,[]),[Ee,Ne]=pn(h,void 0),Re=I.useCallback(lt=>{if(O||!Ze||Xe.some(Qe=>Pe(Qe,lt)))return;const Rt=[];let _t=lt;for(;_t;){const Qe=_t;Xe.find(Pt=>Pe(Pt,Qe))||Rt.push(Qe),_t=pt.find(Pt=>{var Q;return(Q=Pt.children)==null?void 0:Q.some(Be=>Pe(Be,Qe))})}Ze([...Xe,...Rt])},[Xe,O,Pe,Ze,pt]),Je=I.useCallback(()=>{!Ze||O||Ze([...pt])},[pt,O,Ze]),ut=I.useCallback(()=>{!Ze||O||Ze([])},[Ze,O]),wt=I.useCallback(lt=>{!ke||O||n!=null&&n(lt)||(ke([lt]),Re(lt))},[ke,O,n,Re]),St=I.useCallback(lt=>{if(!Ne||O)return;if(!lt||_){Ne(void 0),D||ke==null||ke([]);return}const Rt=Qa.filter(Te,Qe=>k(lt,Qe));let _t;if(Rt.find(Qe=>(Ee==null?void 0:Ee.item)&&Pe(Qe,Ee.item))?_t=Ee==null?void 0:Ee.item:Rt.length>0&&(_t=Rt[0]),Ne({keyword:lt,items:Rt,item:_t}),_t&&Re(_t),ke&&!D)if(C)ke(Rt);else{const Qe=Rt.find(Pt=>_t&&Pe(Pt,_t));ke(Qe?[Qe]:[])}},[Te,O,Pe,k,Ne,ke,Re,D,_,C,Ee]),vt=I.useRef(!1);I.useEffect(()=>{vt.current=!0},[Te]),I.useEffect(()=>{Ee&&vt.current&&(St(Ee.keyword),vt.current=!1)},[St,Ee]);const It=I.useCallback(()=>{if(!Ee||!Ne||O)return;let lt=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))-1;lt<0||(Ne({...Ee,item:Ee.items[lt]}),Re(Ee.items[lt]),D||wt(Ee.items[lt]))},[Ee,Re,Ne,O,wt,Pe,D]),nt=I.useCallback(()=>{if(!Ee||!Ne||O)return;let lt=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))+1;lt>=Ee.items.length||(Ne({...Ee,item:Ee.items[lt]}),Re(Ee.items[lt]),D||wt(Ee.items[lt]))},[Ee,Re,O,Ne,wt,Pe,D]),We=I.useCallback(()=>{if(!Ee||!Ne||O)return;let lt=Ee.items.findIndex(_t=>Ee.item&&Pe(_t,Ee.item));if(!D||n!=null&&n(Ee.items[lt])){nt();return}if(Oe.some(_t=>Ee.item&&Pe(_t,Ee.item))){let _t=lt+1;const Qe=Ee.items[_t];if(_t>=Ee.items.length)return;Ne({...Ee,item:Qe}),wt(Qe)}else wt(Ee.items[lt])},[Ee,Ne,O,Oe,D,nt,Pe,wt,n]),[Ve,dt]=I.useState(!1),Ce=I.useCallback(()=>dt(!0),[]),it=I.useCallback(()=>dt(!1),[]),gt=I.useMemo(()=>n?Qa.map(Te,lt=>lt).filter(lt=>!n(lt)):t?Qa.map(Te,lt=>lt).filter(lt=>!t(lt)):Qa.map(Te,lt=>lt),[n,t,Te]),Ct=I.useMemo(()=>!g||!C?!1:Oe.length>0&&gt.length>Oe.length,[g,C,Oe,gt]),Lt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&gt.length===Oe.length,[g,C,Oe,gt]),He=I.useCallback(()=>{if(!ke||!C||O)return;const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&gt.some(_t=>Pe(_t,Rt)));if(lt.length>0)ke(Oe.filter(Rt=>!lt.some(_t=>Pe(Rt,_t))));else{const Rt=gt.filter(_t=>!(n!=null&&n(_t))&&!(t!=null&&t(_t))&&!Oe.some(Qe=>Pe(Qe,_t)));Rt.length>0&&ke([...Oe,...Rt])}},[C,O,n,t,ke,Oe,gt,Pe]),mt=I.useMemo(()=>{if(!g||!C||O)return"";const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&gt.some(_t=>Pe(_t,Rt)));if(lt.length>0)return Ie["deselect n"](lt.length);{const Rt=gt.filter(_t=>!(n!=null&&n(_t))&&!(t!=null&&t(_t))&&!Oe.some(Qe=>Pe(Qe,_t)));return Ie["select n"](Rt.length)}},[n,t,O,Ie,g,C,gt,Oe,Pe]),[yt,rr]=I.useState(null),[kr,vr]=I.useState(null),he=I.useCallback(lt=>{!S||O||rr(lt)},[O,S]),te=I.useCallback((lt,Rt)=>{if(!S||O||!yt||(lt.preventDefault(),lt.stopPropagation(),vr(Rt),!rt))return;const _t=Qa.replace(Te,yt,Rt,Pe);_t&&rt(_t)},[S,Te,yt,O,rt,Pe]),qe=I.useCallback(()=>{if(!S||O||!yt||!kr||!rt||Pe(yt,kr))return;const lt=Qa.replace(Te,yt,kr,Pe);lt&&(rt(lt),rr(null))},[S,rt,Te,yt,kr,Pe,O]);I.useEffect(()=>{var lt;g||(lt=Ke.current)==null||lt.scrollTo(0,0)},[g,Ke]),I.useEffect(()=>{!C&&Oe.length>1&&(ke==null||ke([Oe[Oe.length-1]]))},[C,ke,Oe]),I.useEffect(()=>{A&&(A.current={expandAll:Je,collapseAll:ut})},[A,Je,ut]),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(()=>{Ne&&Ne(void 0)},[Ne]);const[ot,Bt]=I.useState(!1);I.useEffect(()=>{Bt(lt=>!lt)},[Te]);const[xt,kt]=I.useState(null),Gt=I.useCallback((lt,Rt)=>{O||(lt.stopPropagation(),lt.preventDefault(),kt(Rt))},[O]),jt=I.useCallback((lt,Rt)=>{xt===null||O||Pe(Rt,xt)&&(lt.stopPropagation(),lt.preventDefault(),kt(null))},[xt,O,Pe]),or=I.useRef(null),[fr,Rr]=I.useState(!1),[cr,_r]=I.useState((Wr=or.current)==null?void 0:Wr.scrollHeight);return I.useEffect(()=>{if(Xe.length<0)return;const lt=Ke.current,Rt=or.current,_t=lt.clientHeight<Rt.clientHeight;_r(_t?Rt.scrollHeight:lt.clientHeight),Rr(_t)},[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(bN,{isEqual:Pe,searchResult:Ee,initSearch:St,searchUp:It,searchDown:nt,searchEnter:We,isLoading:q,isDisabled:O,resources:Ie,maxLength:P,autoFocus:ne}),!_&&de&&v.jsx(mn,{w:8}),de]}),(!_||de||g&&C||S)&&v.jsx(hm,{isLoading:q&&Te.length!==0}),(g&&C||S)&&v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Uu,{className:fn.CheckBox,useCheck:[+Lt,()=>He()],isIndeterminate:Ct,onMouseOver:Ce,onMouseOut:it,isDisabled:O,tooltip:mt}),Ie.Items,v.jsx(Yc,{}),v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:fr?8:0},children:[v.jsx("span",{children:g&&Ie["*Click row for single select"]}),v.jsx("span",{children:S&&Ie["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Ke,className:Fe.clsx(xe.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:me||"fit-content",marginRight:oe&&fr?8:0},children:[v.jsxs("div",{ref:or,className:fn.ATreeBody,children:[Te.length===0?q?v.jsx(wN,{text:Ie["Loading Contents..."]}):b:ee,Te.map((lt,Rt)=>v.jsx(G,{isEqual:Pe,indents:[],extIndents:T,item:lt,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Xe,Ze],useSelect:[Oe,ke],useSearch:[Ee,Ne],onDragStart:he,onDragOver:te,onDragEnd:qe,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&Ve,ContentRenderer:H,TreeItemRenderer:G,RightStickyAddon:Y,resources:Ie,containerRef:Ke,TreeItemStyle:K,TreeItemClassName:re,hoverdItem:xt,onMouseOver:Gt,onMouseLeave:jt,searchItemClassName:ae,searchItemStyle:be,height:ge},`${Rt}${ot}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${ge}px`,height:fr?cr:"100%"}})]})]})})]})},SN=r=>{const{item:e}=r,t={};return Kt.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function CN(r,e){return Kt.some(e,(t,n)=>{var i;return(i=Kt.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const wN=r=>{const{text:e}=r;return v.jsxs(si,{className:Fe.clsx(fn.Loader,"NoSelect"),children:[v.jsx(Br,{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 AN={},TN=Object.freeze(Object.defineProperty({__proto__:null,default:AN},Symbol.toStringTag,{value:"Module"})),EN=t4(TN);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,q=String.prototype.toUpperCase,H=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,ne=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,me=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(he){return he.__proto__}:null);function ae(he,te){if(he===1/0||he===-1/0||he!==he||he&&he>-1e3&&he<1e3||G.call(/e/,te))return te;var qe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof he=="number"){var ot=he<0?-ue(-he):ue(he);if(ot!==he){var Bt=String(ot),xt=k.call(te,Bt.length+1);return O.call(Bt,qe,"$&_")+"."+O.call(O.call(xt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(te,qe,"$&_")}var be=EN,ge=be.custom,xe=Re(ge)?ge:null,Ie={__proto__:null,double:'"',single:"'"},Pe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ug=function he(te,qe,ot,Bt){var xt=qe||{};if(wt(xt,"quoteStyle")&&!wt(Ie,xt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(wt(xt,"maxStringLength")&&(typeof xt.maxStringLength=="number"?xt.maxStringLength<0&&xt.maxStringLength!==1/0:xt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=wt(xt,"customInspect")?xt.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(wt(xt,"indent")&&xt.indent!==null&&xt.indent!==" "&&!(parseInt(xt.indent,10)===xt.indent&&xt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(wt(xt,"numericSeparator")&&typeof xt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gt=xt.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return gt(te,xt);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var jt=String(te);return Gt?ae(te,jt):jt}if(typeof te=="bigint"){var or=String(te)+"n";return Gt?ae(te,or):or}var fr=typeof xt.depth>"u"?5:xt.depth;if(typeof ot>"u"&&(ot=0),ot>=fr&&fr>0&&typeof te=="object")return pt(te)?"[Array]":"[Object]";var Rr=rr(xt,ot);if(typeof Bt>"u")Bt=[];else if(It(Bt,te)>=0)return"[Circular]";function cr(sr,ur,zr){if(ur&&(Bt=ee.call(Bt),Bt.push(ur)),zr){var pr={depth:xt.depth};return wt(xt,"quoteStyle")&&(pr.quoteStyle=xt.quoteStyle),he(sr,pr,ot+1,Bt)}return he(sr,xt,ot+1,Bt)}if(typeof te=="function"&&!Ze(te)){var _r=vt(te),Wr=vr(te,cr);return"[Function"+(_r?": "+_r:" (anonymous)")+"]"+(Wr.length>0?" { "+de.call(Wr,", ")+" }":"")}if(Re(te)){var lt=re?O.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(te);return typeof te=="object"&&!re?Lt(lt):lt}if(it(te)){for(var Rt="<"+H.call(String(te.nodeName)),_t=te.attributes||[],Qe=0;Qe<_t.length;Qe++)Rt+=" "+_t[Qe].name+"="+Ke(Te(_t[Qe].value),"double",xt);return Rt+=">",te.childNodes&&te.childNodes.length&&(Rt+="..."),Rt+="</"+H.call(String(te.nodeName))+">",Rt}if(pt(te)){if(te.length===0)return"[]";var Pt=vr(te,cr);return Rr&&!yt(Pt)?"["+kr(Pt,Rr)+"]":"[ "+de.call(Pt,", ")+" ]"}if(Oe(te)){var Q=vr(te,cr);return!("cause"in Error.prototype)&&"cause"in te&&!ce.call(te,"cause")?"{ ["+String(te)+"] "+de.call(Y.call("[cause]: "+cr(te.cause),Q),", ")+" }":Q.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+de.call(Q,", ")+" }"}if(typeof te=="object"&&kt){if(xe&&typeof te[xe]=="function"&&be)return be(te,{depth:fr-ot});if(kt!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(nt(te)){var Be=[];return n&&n.call(te,function(sr,ur){Be.push(cr(ur,te,!0)+" => "+cr(sr,te))}),mt("Map",t.call(te),Be,Rr)}if(dt(te)){var ht=[];return h&&h.call(te,function(sr){ht.push(cr(sr,te))}),mt("Set",u.call(te),ht,Rr)}if(We(te))return He("WeakMap");if(Ce(te))return He("WeakSet");if(Ve(te))return He("WeakRef");if(Ee(te))return Lt(cr(Number(te)));if(Je(te))return Lt(cr(P.call(te)));if(Ne(te))return Lt(S.call(te));if(ke(te))return Lt(cr(String(te)));if(typeof window<"u"&&te===window)return"{ [object Window] }";if(typeof globalThis<"u"&&te===globalThis||typeof yi<"u"&&te===yi)return"{ [object globalThis] }";if(!Xe(te)&&!Ze(te)){var Dt=vr(te,cr),Qt=me?me(te)===Object.prototype:te instanceof Object||te.constructor===Object,Zt=te instanceof Object?"":"null prototype",Mt=!Qt&&oe&&Object(te)===te&&oe in te?k.call(St(te),8,-1):Zt?"Object":"",Yt=Qt||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",Mr=Yt+(Mt||Zt?"["+de.call(Y.call([],Mt||[],Zt||[]),": ")+"] ":"");return Dt.length===0?Mr+"{}":Rr?Mr+"{"+kr(Dt,Rr)+"}":Mr+"{ "+de.call(Dt,", ")+" }"}return String(te)};function Ke(he,te,qe){var ot=qe.quoteStyle||te,Bt=Ie[ot];return Bt+he+Bt}function Te(he){return O.call(String(he),/"/g,"&quot;")}function rt(he){return!oe||!(typeof he=="object"&&(oe in he||typeof he[oe]<"u"))}function pt(he){return St(he)==="[object Array]"&&rt(he)}function Xe(he){return St(he)==="[object Date]"&&rt(he)}function Ze(he){return St(he)==="[object RegExp]"&&rt(he)}function Oe(he){return St(he)==="[object Error]"&&rt(he)}function ke(he){return St(he)==="[object String]"&&rt(he)}function Ee(he){return St(he)==="[object Number]"&&rt(he)}function Ne(he){return St(he)==="[object Boolean]"&&rt(he)}function Re(he){if(re)return he&&typeof he=="object"&&he instanceof Symbol;if(typeof he=="symbol")return!0;if(!he||typeof he!="object"||!K)return!1;try{return K.call(he),!0}catch{}return!1}function Je(he){if(!he||typeof he!="object"||!P)return!1;try{return P.call(he),!0}catch{}return!1}var ut=Object.prototype.hasOwnProperty||function(he){return he in this};function wt(he,te){return ut.call(he,te)}function St(he){return D.call(he)}function vt(he){if(he.name)return he.name;var te=b.call(A.call(he),/^function\s*([\w$]+)/);return te?te[1]:null}function It(he,te){if(he.indexOf)return he.indexOf(te);for(var qe=0,ot=he.length;qe<ot;qe++)if(he[qe]===te)return qe;return-1}function nt(he){if(!t||!he||typeof he!="object")return!1;try{t.call(he);try{u.call(he)}catch{return!0}return he instanceof Map}catch{}return!1}function We(he){if(!m||!he||typeof he!="object")return!1;try{m.call(he,m);try{T.call(he,T)}catch{return!0}return he instanceof WeakMap}catch{}return!1}function Ve(he){if(!_||!he||typeof he!="object")return!1;try{return _.call(he),!0}catch{}return!1}function dt(he){if(!u||!he||typeof he!="object")return!1;try{u.call(he);try{t.call(he)}catch{return!0}return he instanceof Set}catch{}return!1}function Ce(he){if(!T||!he||typeof he!="object")return!1;try{T.call(he,T);try{m.call(he,m)}catch{return!0}return he instanceof WeakSet}catch{}return!1}function it(he){return!he||typeof he!="object"?!1:typeof HTMLElement<"u"&&he instanceof HTMLElement?!0:typeof he.nodeName=="string"&&typeof he.getAttribute=="function"}function gt(he,te){if(he.length>te.maxStringLength){var qe=he.length-te.maxStringLength,ot="... "+qe+" more character"+(qe>1?"s":"");return gt(k.call(he,0,te.maxStringLength),te)+ot}var Bt=Pe[te.quoteStyle||"single"];Bt.lastIndex=0;var xt=O.call(O.call(he,Bt,"\\$1"),/[\x00-\x1f]/g,Ct);return Ke(xt,"single",te)}function Ct(he){var te=he.charCodeAt(0),qe={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return qe?"\\"+qe:"\\x"+(te<16?"0":"")+q.call(te.toString(16))}function Lt(he){return"Object("+he+")"}function He(he){return he+" { ? }"}function mt(he,te,qe,ot){var Bt=ot?kr(qe,ot):de.call(qe,", ");return he+" ("+te+") {"+Bt+"}"}function yt(he){for(var te=0;te<he.length;te++)if(It(he[te],`
349
+ `;if(ke){const Lt=Je(Ce);ke(Lt>Re)}Ze(gt?"":it),Ne(Ce)},[Je,Re,ke,Ze]),St=I.useMemo(()=>q==="Med"?8:12.5,[q]),vt=I.useCallback(nt=>{if(!nt)return;const We=nt.getEditor();if(!We)return;const Ve=[],dt={input:mt=>{const yt=mt.target;yt.value=yt.value.replace(/[^0-9]/g,"");const rr=parseInt(yt.value);rr>100&&(yt.value="100"),rr<1&&(yt.value="1")},keyDown:mt=>{if(mt.key!=="Delete"&&mt.key!=="Backspace")return;const yt=document.querySelector("#image-resizer");if(!yt)return;const rr=yt.getBoundingClientRect(),kr=document.querySelectorAll(".ql-editor img"),vr=Array.from(kr).find(he=>{const te=he.getBoundingClientRect();return Math.abs(te.left-rr.left)<5&&Math.abs(te.top-rr.top)<5});if(vr){yt.style.display="none";const he=$e.find(vr),te=We.getIndex(he);he.remove(),We.setSelection(te,0,$e.sources.USER)}},formatExpand:mt=>{const yt=We.getFormat();mt.forEach(rr=>{if(yt[rr]){const kr=yt[rr],vr=`.ql-${rr}`,he=document.querySelector(`${vr} .ql-picker-label`),te=document.querySelectorAll(`${vr} .ql-picker-item`),qe=Array.from(te).find(ot=>ot.getAttribute("data-value")===kr);qe&&(qe.classList.add("ql-selected"),he==null||he.classList.add("ql-active"))}})},resizeToolbar:mt=>{requestAnimationFrame(()=>{for(const yt of mt)ee(yt.contentRect.height+St*2)})}},Ce=We.root,it=document.querySelector(".ql-snow.ql-toolbar"),gt=document.querySelector("#image-resizer .input-wrapper input"),Ct=new ResizeObserver(dt.resizeToolbar),Lt=["header","color"],He=[];return Ce==null||Ce.addEventListener("keydown",dt.keyDown),gt==null||gt.addEventListener("input",dt.input),Ct.observe(it),Lt.forEach(mt=>{const yt=document.querySelector(`.ql-${mt} .ql-picker-label`);yt&&(yt.addEventListener("click",()=>dt.formatExpand(Lt)),He.push(yt))}),Ve.push(()=>{Ce==null||Ce.removeEventListener("keydown",dt.keyDown),gt==null||gt.removeEventListener("input",dt.input),Ct.disconnect(),He.forEach(mt=>mt.removeEventListener("click",()=>dt.formatExpand(Lt)))}),()=>Ve.forEach(mt=>mt())},[St]),It=I.useCallback(nt=>{i&&(typeof i=="function"?i(nt):i.current=nt),nt&&vt(nt)},[i,vt]);return v.jsx(Uc,{helperText:C,label:_,wrapType:D,labelProps:S,errorMessage:t,wrapProps:{...T,style:{...T==null?void 0:T.style,height:rt,maxHeight:O,minHeight:"fit-content"}},children:v.jsxs(Ur,{...H,className:Fe.clsx(H.className,Wn.AEditorContainer),style:{...A,height:rt},children:[v.jsx(bh,{...M,ref:It,className:Fe.clsx(M==null?void 0:M.className,Wn.AEditor,Wn[pt]),formats:OP,modules:ut,placeholder:h,readOnly:G,theme:"snow",value:Ee,style:{"--icon-size":`${q==="Med"?18:24}px`,"--toolbar-padding":`${St}px`,"--content-height":re?`${re-Y}px`:"100%","--default-text":`'${hn.AEditor.Default}'`,"--arrow-background":`url("data:image/svg+xml,${encodeURIComponent(Os.renderToString(v.jsx(Br,{icon:"EditorArrow"})))}`},onChange:wt}),k&&v.jsxs(v.Fragment,{children:[v.jsx("div",{ref:ge,className:Wn.Resizer,style:{height:Y,bottom:u&&!G?K:0},onMouseDown:Te}),ae&&v.jsx("div",{className:Fe.clsx(Wn.Indicator,"NoSelect","Caption"),style:{bottom:u&&!G?K+2:2},children:`${Math.round(re)}px`})]}),u&&!G&&v.jsx("div",{className:Fe.clsx(Wn.LimitContainer,"NoSelect"),style:{marginTop:ne,minHeight:P},children:v.jsxs(Xl,{className:Wn.Limit,children:["(",v.jsx("span",{className:Oe?Wn.Error:void 0,children:nm(Je(Ee))})," / ",nm(Re),")"]})})]})})};function jP(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}function FP(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 BP(r,e){Array.isArray(r)||(r=[r]);const t=[];return sd(r,(n,i)=>{e(n,i)&&t.push(n)}),t}function qP(r){Array.isArray(r)||(r=[r]);let e=0;return sd(r,()=>e++),e}function HP(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 zP(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 $P(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:BP,length:qP,replace:HP,descendants:zP,ancestors:$P},UP="_AWrap_f5le3_1",WP="_AContainer_f5le3_10",VP="_ATree_f5le3_18",GP="_ATreeBody_f5le3_30",ZP="_CoverBorder_f5le3_36",YP="_InsertBorder_f5le3_45",KP="_ATreeHeader_f5le3_76",XP="_ATreeBodyHeader_f5le3_82",JP="_ATreeBodyHeaderResources_f5le3_92",QP="_ATreeItem_f5le3_98",eN="_IsSelectUsed_f5le3_114",tN="_IsSelected_f5le3_117",rN="_IsSearchSelected_f5le3_122",nN="_IsHovered_f5le3_133",iN="_CheckBox_f5le3_137",oN="_Indents_f5le3_149",sN="_ExpandIcon_f5le3_156",aN="_Content_f5le3_168",lN="_RightSticky_f5le3_177",cN="_SearchInputWrap_f5le3_188",uN="_SearchInput_f5le3_188",fN="_RightAddon_f5le3_200",dN="_RightAddonIcon_f5le3_211",hN="_Loader_f5le3_218",fn={AWrap:UP,AContainer:WP,ATree:VP,ATreeBody:GP,CoverBorder:ZP,InsertBorder:YP,ATreeHeader:KP,ATreeBodyHeader:XP,ATreeBodyHeaderResources:JP,ATreeItem:QP,IsSelectUsed:eN,IsSelected:tN,IsSearchSelected:rN,IsHovered:nN,CheckBox:iN,Indents:oN,ExpandIcon:sN,Content:aN,RightSticky:lN,SearchInputWrap:cN,SearchInput:uN,RightAddon:fN,RightAddonIcon:dN,Loader:hN},pN=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:q,onMouseOver:H,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:ne,TreeItemClassName:K,searchItemStyle:re,searchItemClassName:oe,height:ce}=r,{children:me}=I.useMemo(()=>t,[t]),[ae,be]=I.useMemo(()=>g,[g]),[ge,xe]=I.useMemo(()=>m,[m]),[Ie,Pe]=I.useMemo(()=>M,[M]),Ke=I.useMemo(()=>i?i(t):!1,[i,t]),Te=I.useMemo(()=>!n||l?l:n(t),[n,l,t]),rt=I.useMemo(()=>ae.some(He=>e(He,t)),[ae,e,t]),pt=I.useMemo(()=>!me||me.length<1?"noChild":rt?"expanded":"collapsed",[me,rt]),Xe=I.useMemo(()=>{const He=D[pt];return am.includes(He)?v.jsx(Br,{style:{width:A,height:A},icon:He}):He},[D,A,pt]),Ze=I.useCallback(He=>{!be||pt==="noChild"||(be(rt?ae.filter(mt=>!e(mt,t)):[...ae,t]),He.stopPropagation())},[be,ae,rt,t,e,pt]),Oe=I.useMemo(()=>ge.some(He=>e(He,t)),[ge,e,t]),ke=I.useCallback(()=>{!xe||Te||(xe(b?Oe?ge.filter(He=>!e(He,t)):[...ge,t]:[t]),Ie&&Pe&&Ie.items.some(He=>e(He,t))&&Pe({...Ie,item:t}))},[b,Te,Oe,Ie,Pe,xe,e,ge,t]),Ee=I.useMemo(()=>Ie==null?void 0:Ie.items.some(He=>e(He,t)),[Ie,e,t]),Ne=I.useMemo(()=>Ee&&(Ie==null?void 0:Ie.item)&&e(Ie.item,t),[Ee,Ie,e,t]),Re=I.useRef(null);I.useEffect(()=>{setTimeout(()=>{if(Ne&&Re.current&&P.current){const{top:He,bottom:mt}=Re.current.getBoundingClientRect(),{top:yt,bottom:rr}=P.current.getBoundingClientRect();(He<yt||mt>rr)&&Re.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[P,Ne]);const[Je,ut]=I.useState(!1),wt=I.useCallback(()=>!Te&&ut(!0),[Te]),St=I.useCallback(()=>!Te&&ut(!1),[Te]),vt=I.useMemo(()=>Qa.map(t,He=>He).filter(He=>!(n!=null&&n(He))&&!(i!=null&&i(He))),[n,i,t]),It=I.useMemo(()=>!S||!b?!1:Oe&&vt.some(He=>ge.some(mt=>e(He,mt)))&&vt.some(He=>!ge.some(mt=>e(He,mt))),[S,b,Oe,vt,e,ge]),nt=I.useMemo(()=>S?b?vt.every(He=>ge.some(mt=>e(He,mt))):ge.some(He=>e(He,t)):!1,[S,b,vt,t,e,ge]),We=I.useCallback(()=>{if(!(!xe||Te))if(b)if(Oe){const He=ge.filter(mt=>!(i!=null&&i(mt))&&!(n!=null&&n(mt))&&vt.some(yt=>e(yt,mt)));He.length>0&&xe(ge.filter(mt=>!He.some(yt=>e(mt,yt))))}else{const He=vt.filter(mt=>!(i!=null&&i(mt))&&!(n!=null&&n(mt))&&!ge.some(yt=>e(yt,mt)));He.length>0&&xe([...ge,...He])}else xe([t])},[Te,n,i,b,xe,e,Oe,ge,vt,t]),Ve=I.useCallback(He=>{Te||We(),He.stopPropagation()},[Te,We]),dt=I.useMemo(()=>{if(!S||!b||Te)return"";if(Oe){const mt=ge.filter(yt=>!(i!=null&&i(yt))&&!(n!=null&&n(yt))&&vt.some(rr=>e(rr,yt)));if(mt.length>0)return ue["deselect n"](mt.length)}const He=vt.filter(mt=>!(i!=null&&i(mt))&&!(n!=null&&n(mt))&&!ge.some(yt=>e(yt,mt)));return ue["select n"](He.length)},[n,i,ue,Te,S,b,Oe,vt,e,ge]),Ce=I.useMemo(()=>Er.getContent(ee,r),[ee,r]),it=I.useMemo(()=>Er.getContent(ne,r),[r,ne]),gt=I.useMemo(()=>Er.getContent(K,r),[r,K]),Ct=I.useMemo(()=>Er.getContent(oe,r),[r,oe]),Lt=I.useMemo(()=>Er.getContent(re,r),[r,re]);return v.jsxs(I.Fragment,{children:[v.jsxs(Ur,{className:Fe.clsx(fn.ATreeItem,Oe&&fn.IsSelected,!Te&&(Je||O)&&fn.IsHovered,Ee&&fn.IsSearched,Ne&&(Ct||fn.IsSearchSelected),!Ke&&fn.IsSelectUsed,"NoSelect",gt),style:{...it,...Ne&&Lt,"--ATreeItem_height":`${ce}px`},draggable:k,onDragStart:()=>T==null?void 0:T(t),onDragEnter:He=>C==null?void 0:C(He,t),onDragEnd:He=>_==null?void 0:_(He,t),onClick:ke,abaseRef:Re,isDisabled:Te,onMouseOver:He=>H==null?void 0:H(He,t),onMouseLeave:He=>G==null?void 0:G(He,t),children:[S&&v.jsx(Uu,{style:{visibility:Te||Ke?"hidden":"visible",zIndex:Te||Ke?0:2},className:fn.CheckBox,useCheck:[+nt,We],onClick:Ve,isIndeterminate:It,onMouseOver:wt,onMouseOut:St,tooltip:dt,isDisabled:Te}),v.jsx("div",{className:fn.Indents,style:{paddingLeft:S?0:r.icons.noChild?12:0},children:u.map((He,mt)=>{const yt=mt===u.length-1;return v.jsx(I2,{value:He,map:{Collapsed:h?h({iconWidth:A}).collapsed:v.jsx(mN,{iconWidth:A}),Expanded:h?h({iconWidth:A,isLast:yt}).expanded:v.jsx(gN,{iconWidth:A,isLast:yt}),IsLast:h?h({iconWidth:A}).isLast:v.jsx(vN,{iconWidth:A})}},mt)})}),Xe&&v.jsx("div",{className:fn.ExpandIcon,style:{width:A,minWidth:A,maxWidth:A},onClick:Ze,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&&(Je||O),hoverdItem:q,onMouseOver:H,onMouseLeave:G,ContentRenderer:Y,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:ne,TreeItemClassName:K,searchItemClassName:Ct,searchItemStyle:re,height:ce})}),Ce&&v.jsx("div",{className:fn.RightSticky,children:Ce})]}),rt&&(me==null?void 0:me.map((He,mt)=>v.jsx(de,{isEqual:e,item:He,selectDisabled:n,selectUnused:i,indents:[...u.map(yt=>yt==="IsLast"?"Collapsed":yt),mt===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&&(Je||O),hoverdItem:q,onMouseOver:H,onMouseLeave:G,TreeItemRenderer:de,RightStickyAddon:ee,resources:ue,containerRef:P,TreeItemStyle:ne,TreeItemClassName:K,searchItemClassName:Ct,searchItemStyle:re,height:ce},mt)))]})},gN=({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)"}})}),mN=({iconWidth:r})=>v.jsx("div",{style:{width:r,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),vN=({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)"}}),yN=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(bN,{isEqual:e,searchResult:t,searchUp:i,searchDown:l,searchEnter:u,resources:m}),maxLength:M,autoFocus:T})},bN=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(Br,{className:fn.RightAddonIcon,icon:"ArrowUp",mask:""})}),v.jsx(Ur,{onClick:C,isDisabled:M,children:v.jsx(Br,{className:fn.RightAddonIcon,icon:"ArrowDown"})})]}):v.jsx(vo,{type:"Raw",className:fn.RightAddonIcon,style:{marginRight:4},icon:"Search",onClick:_,tooltip:u["Search(Button)"]})})},_N=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=SN,isDisabled:O,isLoading:q,ContentRenderer:H=xN,TreeItemRenderer:G=pN,RightStickyAddon:Y,TopRightAddon:de,TreeTopAddon:ee,resources:ue,maxLength:P,autoFocus:ne,TreeItemStyle:K,TreeItemClassName:re,OverflowPadding:oe,insertBorder:ce,width:me,searchItemClassName:ae,searchItemStyle:be,height:ge=40,...xe}=r,Ie=I.useMemo(()=>({...hn.ATree,...ue}),[ue]),Pe=I.useCallback((lt,Rt)=>e!==void 0?Array.isArray(e)?e.every(_t=>el.isEqual(lt[_t],Rt[_t])):el.isEqual(lt[e],Rt[e]):el.isEqual(lt,Rt),[e]),Ke=I.useRef(null),[Te,rt]=pn(i,[]),pt=I.useMemo(()=>Qa.map(Te,lt=>lt),[Te]),[Xe,Ze]=pn(l,[]),[Oe,ke]=pn(u,[]),[Ee,Ne]=pn(h,void 0),Re=I.useCallback(lt=>{if(O||!Ze||Xe.some(Qe=>Pe(Qe,lt)))return;const Rt=[];let _t=lt;for(;_t;){const Qe=_t;Xe.find(Pt=>Pe(Pt,Qe))||Rt.push(Qe),_t=pt.find(Pt=>{var Q;return(Q=Pt.children)==null?void 0:Q.some(Be=>Pe(Be,Qe))})}Ze([...Xe,...Rt])},[Xe,O,Pe,Ze,pt]),Je=I.useCallback(()=>{!Ze||O||Ze([...pt])},[pt,O,Ze]),ut=I.useCallback(()=>{!Ze||O||Ze([])},[Ze,O]),wt=I.useCallback(lt=>{!ke||O||n!=null&&n(lt)||(ke([lt]),Re(lt))},[ke,O,n,Re]),St=I.useCallback(lt=>{if(!Ne||O)return;if(!lt||_){Ne(void 0),D||ke==null||ke([]);return}const Rt=Qa.filter(Te,Qe=>k(lt,Qe));let _t;if(Rt.find(Qe=>(Ee==null?void 0:Ee.item)&&Pe(Qe,Ee.item))?_t=Ee==null?void 0:Ee.item:Rt.length>0&&(_t=Rt[0]),Ne({keyword:lt,items:Rt,item:_t}),_t&&Re(_t),ke&&!D)if(C)ke(Rt);else{const Qe=Rt.find(Pt=>_t&&Pe(Pt,_t));ke(Qe?[Qe]:[])}},[Te,O,Pe,k,Ne,ke,Re,D,_,C,Ee]),vt=I.useRef(!1);I.useEffect(()=>{vt.current=!0},[Te]),I.useEffect(()=>{Ee&&vt.current&&(St(Ee.keyword),vt.current=!1)},[St,Ee]);const It=I.useCallback(()=>{if(!Ee||!Ne||O)return;let lt=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))-1;lt<0||(Ne({...Ee,item:Ee.items[lt]}),Re(Ee.items[lt]),D||wt(Ee.items[lt]))},[Ee,Re,Ne,O,wt,Pe,D]),nt=I.useCallback(()=>{if(!Ee||!Ne||O)return;let lt=Ee.items.findIndex(Rt=>Ee.item&&Pe(Rt,Ee.item))+1;lt>=Ee.items.length||(Ne({...Ee,item:Ee.items[lt]}),Re(Ee.items[lt]),D||wt(Ee.items[lt]))},[Ee,Re,O,Ne,wt,Pe,D]),We=I.useCallback(()=>{if(!Ee||!Ne||O)return;let lt=Ee.items.findIndex(_t=>Ee.item&&Pe(_t,Ee.item));if(!D||n!=null&&n(Ee.items[lt])){nt();return}if(Oe.some(_t=>Ee.item&&Pe(_t,Ee.item))){let _t=lt+1;const Qe=Ee.items[_t];if(_t>=Ee.items.length)return;Ne({...Ee,item:Qe}),wt(Qe)}else wt(Ee.items[lt])},[Ee,Ne,O,Oe,D,nt,Pe,wt,n]),[Ve,dt]=I.useState(!1),Ce=I.useCallback(()=>dt(!0),[]),it=I.useCallback(()=>dt(!1),[]),gt=I.useMemo(()=>n?Qa.map(Te,lt=>lt).filter(lt=>!n(lt)):t?Qa.map(Te,lt=>lt).filter(lt=>!t(lt)):Qa.map(Te,lt=>lt),[n,t,Te]),Ct=I.useMemo(()=>!g||!C?!1:Oe.length>0&&gt.length>Oe.length,[g,C,Oe,gt]),Lt=I.useMemo(()=>!g||!C?!1:Oe.length>0&&gt.length===Oe.length,[g,C,Oe,gt]),He=I.useCallback(()=>{if(!ke||!C||O)return;const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&gt.some(_t=>Pe(_t,Rt)));if(lt.length>0)ke(Oe.filter(Rt=>!lt.some(_t=>Pe(Rt,_t))));else{const Rt=gt.filter(_t=>!(n!=null&&n(_t))&&!(t!=null&&t(_t))&&!Oe.some(Qe=>Pe(Qe,_t)));Rt.length>0&&ke([...Oe,...Rt])}},[C,O,n,t,ke,Oe,gt,Pe]),mt=I.useMemo(()=>{if(!g||!C||O)return"";const lt=Oe.filter(Rt=>!(n!=null&&n(Rt))&&!(t!=null&&t(Rt))&&gt.some(_t=>Pe(_t,Rt)));if(lt.length>0)return Ie["deselect n"](lt.length);{const Rt=gt.filter(_t=>!(n!=null&&n(_t))&&!(t!=null&&t(_t))&&!Oe.some(Qe=>Pe(Qe,_t)));return Ie["select n"](Rt.length)}},[n,t,O,Ie,g,C,gt,Oe,Pe]),[yt,rr]=I.useState(null),[kr,vr]=I.useState(null),he=I.useCallback(lt=>{!S||O||rr(lt)},[O,S]),te=I.useCallback((lt,Rt)=>{if(!S||O||!yt||(lt.preventDefault(),lt.stopPropagation(),vr(Rt),!rt))return;const _t=Qa.replace(Te,yt,Rt,Pe);_t&&rt(_t)},[S,Te,yt,O,rt,Pe]),qe=I.useCallback(()=>{if(!S||O||!yt||!kr||!rt||Pe(yt,kr))return;const lt=Qa.replace(Te,yt,kr,Pe);lt&&(rt(lt),rr(null))},[S,rt,Te,yt,kr,Pe,O]);I.useEffect(()=>{var lt;g||(lt=Ke.current)==null||lt.scrollTo(0,0)},[g,Ke]),I.useEffect(()=>{!C&&Oe.length>1&&(ke==null||ke([Oe[Oe.length-1]]))},[C,ke,Oe]),I.useEffect(()=>{A&&(A.current={expandAll:Je,collapseAll:ut})},[A,Je,ut]),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(()=>{Ne&&Ne(void 0)},[Ne]);const[ot,Bt]=I.useState(!1);I.useEffect(()=>{Bt(lt=>!lt)},[Te]);const[xt,kt]=I.useState(null),Gt=I.useCallback((lt,Rt)=>{O||(lt.stopPropagation(),lt.preventDefault(),kt(Rt))},[O]),jt=I.useCallback((lt,Rt)=>{xt===null||O||Pe(Rt,xt)&&(lt.stopPropagation(),lt.preventDefault(),kt(null))},[xt,O,Pe]),or=I.useRef(null),[fr,Rr]=I.useState(!1),[cr,_r]=I.useState((Wr=or.current)==null?void 0:Wr.scrollHeight);return I.useEffect(()=>{if(Xe.length<0)return;const lt=Ke.current,Rt=or.current,_t=lt.clientHeight<Rt.clientHeight;_r(_t?Rt.scrollHeight:lt.clientHeight),Rr(_t)},[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(yN,{isEqual:Pe,searchResult:Ee,initSearch:St,searchUp:It,searchDown:nt,searchEnter:We,isLoading:q,isDisabled:O,resources:Ie,maxLength:P,autoFocus:ne}),!_&&de&&v.jsx(mn,{w:8}),de]}),(!_||de||g&&C||S)&&v.jsx(hm,{isLoading:q&&Te.length!==0}),(g&&C||S)&&v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeader,"NoSelect"),children:[g&&v.jsx(Uu,{className:fn.CheckBox,useCheck:[+Lt,()=>He()],isIndeterminate:Ct,onMouseOver:Ce,onMouseOut:it,isDisabled:O,tooltip:mt}),Ie.Items,v.jsx(Yc,{}),v.jsxs("div",{className:Fe.clsx(fn.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:fr?8:0},children:[v.jsx("span",{children:g&&Ie["*Click row for single select"]}),v.jsx("span",{children:S&&Ie["*Change order to row drag"]})]})]}),v.jsx("div",{ref:Ke,className:Fe.clsx(xe.className,fn.AContainer),children:v.jsxs("div",{className:fn.ATree,style:{minWidth:me||"fit-content",marginRight:oe&&fr?8:0},children:[v.jsxs("div",{ref:or,className:fn.ATreeBody,children:[Te.length===0?q?v.jsx(CN,{text:Ie["Loading Contents..."]}):b:ee,Te.map((lt,Rt)=>v.jsx(G,{isEqual:Pe,indents:[],extIndents:T,item:lt,selectDisabled:t,selectUnused:n,isParentDisabled:O,useExpand:[Xe,Ze],useSelect:[Oe,ke],useSearch:[Ee,Ne],onDragStart:he,onDragOver:te,onDragEnd:qe,showCheckbox:g,icons:M,iconWidth:m,isSelectMulti:C,isDraggable:S,isParentCheckHovered:C&&Ve,ContentRenderer:H,TreeItemRenderer:G,RightStickyAddon:Y,resources:Ie,containerRef:Ke,TreeItemStyle:K,TreeItemClassName:re,hoverdItem:xt,onMouseOver:Gt,onMouseLeave:jt,searchItemClassName:ae,searchItemStyle:be,height:ge},`${Rt}${ot}`))]}),ce&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:fn.CoverBorder}),v.jsx("div",{className:fn.InsertBorder,style:{"--InsertBorder_height":`${ge}px`,height:fr?cr:"100%"}})]})]})})]})},xN=r=>{const{item:e}=r,t={};return Kt.keys(e).forEach(n=>{n!=="children"&&(t[n]=e[n])}),JSON.stringify(t)};function SN(r,e){return Kt.some(e,(t,n)=>{var i;return(i=Kt.stringify(n))==null?void 0:i.toLowerCase().includes(r.toLowerCase())})}const CN=r=>{const{text:e}=r;return v.jsxs(si,{className:Fe.clsx(fn.Loader,"NoSelect"),children:[v.jsx(Br,{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 wN={},AN=Object.freeze(Object.defineProperty({__proto__:null,default:wN},Symbol.toStringTag,{value:"Module"})),TN=t4(AN);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,q=String.prototype.toUpperCase,H=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,ne=Object.getOwnPropertySymbols,K=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,re=typeof Symbol=="function"&&typeof Symbol.iterator=="object",oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===re||!0)?Symbol.toStringTag:null,ce=Object.prototype.propertyIsEnumerable,me=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(he){return he.__proto__}:null);function ae(he,te){if(he===1/0||he===-1/0||he!==he||he&&he>-1e3&&he<1e3||G.call(/e/,te))return te;var qe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof he=="number"){var ot=he<0?-ue(-he):ue(he);if(ot!==he){var Bt=String(ot),xt=k.call(te,Bt.length+1);return O.call(Bt,qe,"$&_")+"."+O.call(O.call(xt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(te,qe,"$&_")}var be=TN,ge=be.custom,xe=Re(ge)?ge:null,Ie={__proto__:null,double:'"',single:"'"},Pe={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Ug=function he(te,qe,ot,Bt){var xt=qe||{};if(wt(xt,"quoteStyle")&&!wt(Ie,xt.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(wt(xt,"maxStringLength")&&(typeof xt.maxStringLength=="number"?xt.maxStringLength<0&&xt.maxStringLength!==1/0:xt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var kt=wt(xt,"customInspect")?xt.customInspect:!0;if(typeof kt!="boolean"&&kt!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(wt(xt,"indent")&&xt.indent!==null&&xt.indent!==" "&&!(parseInt(xt.indent,10)===xt.indent&&xt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(wt(xt,"numericSeparator")&&typeof xt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Gt=xt.numericSeparator;if(typeof te>"u")return"undefined";if(te===null)return"null";if(typeof te=="boolean")return te?"true":"false";if(typeof te=="string")return gt(te,xt);if(typeof te=="number"){if(te===0)return 1/0/te>0?"0":"-0";var jt=String(te);return Gt?ae(te,jt):jt}if(typeof te=="bigint"){var or=String(te)+"n";return Gt?ae(te,or):or}var fr=typeof xt.depth>"u"?5:xt.depth;if(typeof ot>"u"&&(ot=0),ot>=fr&&fr>0&&typeof te=="object")return pt(te)?"[Array]":"[Object]";var Rr=rr(xt,ot);if(typeof Bt>"u")Bt=[];else if(It(Bt,te)>=0)return"[Circular]";function cr(sr,ur,zr){if(ur&&(Bt=ee.call(Bt),Bt.push(ur)),zr){var pr={depth:xt.depth};return wt(xt,"quoteStyle")&&(pr.quoteStyle=xt.quoteStyle),he(sr,pr,ot+1,Bt)}return he(sr,xt,ot+1,Bt)}if(typeof te=="function"&&!Ze(te)){var _r=vt(te),Wr=vr(te,cr);return"[Function"+(_r?": "+_r:" (anonymous)")+"]"+(Wr.length>0?" { "+de.call(Wr,", ")+" }":"")}if(Re(te)){var lt=re?O.call(String(te),/^(Symbol\(.*\))_[^)]*$/,"$1"):K.call(te);return typeof te=="object"&&!re?Lt(lt):lt}if(it(te)){for(var Rt="<"+H.call(String(te.nodeName)),_t=te.attributes||[],Qe=0;Qe<_t.length;Qe++)Rt+=" "+_t[Qe].name+"="+Ke(Te(_t[Qe].value),"double",xt);return Rt+=">",te.childNodes&&te.childNodes.length&&(Rt+="..."),Rt+="</"+H.call(String(te.nodeName))+">",Rt}if(pt(te)){if(te.length===0)return"[]";var Pt=vr(te,cr);return Rr&&!yt(Pt)?"["+kr(Pt,Rr)+"]":"[ "+de.call(Pt,", ")+" ]"}if(Oe(te)){var Q=vr(te,cr);return!("cause"in Error.prototype)&&"cause"in te&&!ce.call(te,"cause")?"{ ["+String(te)+"] "+de.call(Y.call("[cause]: "+cr(te.cause),Q),", ")+" }":Q.length===0?"["+String(te)+"]":"{ ["+String(te)+"] "+de.call(Q,", ")+" }"}if(typeof te=="object"&&kt){if(xe&&typeof te[xe]=="function"&&be)return be(te,{depth:fr-ot});if(kt!=="symbol"&&typeof te.inspect=="function")return te.inspect()}if(nt(te)){var Be=[];return n&&n.call(te,function(sr,ur){Be.push(cr(ur,te,!0)+" => "+cr(sr,te))}),mt("Map",t.call(te),Be,Rr)}if(dt(te)){var ht=[];return h&&h.call(te,function(sr){ht.push(cr(sr,te))}),mt("Set",u.call(te),ht,Rr)}if(We(te))return He("WeakMap");if(Ce(te))return He("WeakSet");if(Ve(te))return He("WeakRef");if(Ee(te))return Lt(cr(Number(te)));if(Je(te))return Lt(cr(P.call(te)));if(Ne(te))return Lt(S.call(te));if(ke(te))return Lt(cr(String(te)));if(typeof window<"u"&&te===window)return"{ [object Window] }";if(typeof globalThis<"u"&&te===globalThis||typeof yi<"u"&&te===yi)return"{ [object globalThis] }";if(!Xe(te)&&!Ze(te)){var Dt=vr(te,cr),Qt=me?me(te)===Object.prototype:te instanceof Object||te.constructor===Object,Zt=te instanceof Object?"":"null prototype",Mt=!Qt&&oe&&Object(te)===te&&oe in te?k.call(St(te),8,-1):Zt?"Object":"",Yt=Qt||typeof te.constructor!="function"?"":te.constructor.name?te.constructor.name+" ":"",Mr=Yt+(Mt||Zt?"["+de.call(Y.call([],Mt||[],Zt||[]),": ")+"] ":"");return Dt.length===0?Mr+"{}":Rr?Mr+"{"+kr(Dt,Rr)+"}":Mr+"{ "+de.call(Dt,", ")+" }"}return String(te)};function Ke(he,te,qe){var ot=qe.quoteStyle||te,Bt=Ie[ot];return Bt+he+Bt}function Te(he){return O.call(String(he),/"/g,"&quot;")}function rt(he){return!oe||!(typeof he=="object"&&(oe in he||typeof he[oe]<"u"))}function pt(he){return St(he)==="[object Array]"&&rt(he)}function Xe(he){return St(he)==="[object Date]"&&rt(he)}function Ze(he){return St(he)==="[object RegExp]"&&rt(he)}function Oe(he){return St(he)==="[object Error]"&&rt(he)}function ke(he){return St(he)==="[object String]"&&rt(he)}function Ee(he){return St(he)==="[object Number]"&&rt(he)}function Ne(he){return St(he)==="[object Boolean]"&&rt(he)}function Re(he){if(re)return he&&typeof he=="object"&&he instanceof Symbol;if(typeof he=="symbol")return!0;if(!he||typeof he!="object"||!K)return!1;try{return K.call(he),!0}catch{}return!1}function Je(he){if(!he||typeof he!="object"||!P)return!1;try{return P.call(he),!0}catch{}return!1}var ut=Object.prototype.hasOwnProperty||function(he){return he in this};function wt(he,te){return ut.call(he,te)}function St(he){return D.call(he)}function vt(he){if(he.name)return he.name;var te=b.call(A.call(he),/^function\s*([\w$]+)/);return te?te[1]:null}function It(he,te){if(he.indexOf)return he.indexOf(te);for(var qe=0,ot=he.length;qe<ot;qe++)if(he[qe]===te)return qe;return-1}function nt(he){if(!t||!he||typeof he!="object")return!1;try{t.call(he);try{u.call(he)}catch{return!0}return he instanceof Map}catch{}return!1}function We(he){if(!m||!he||typeof he!="object")return!1;try{m.call(he,m);try{T.call(he,T)}catch{return!0}return he instanceof WeakMap}catch{}return!1}function Ve(he){if(!_||!he||typeof he!="object")return!1;try{return _.call(he),!0}catch{}return!1}function dt(he){if(!u||!he||typeof he!="object")return!1;try{u.call(he);try{t.call(he)}catch{return!0}return he instanceof Set}catch{}return!1}function Ce(he){if(!T||!he||typeof he!="object")return!1;try{T.call(he,T);try{m.call(he,m)}catch{return!0}return he instanceof WeakSet}catch{}return!1}function it(he){return!he||typeof he!="object"?!1:typeof HTMLElement<"u"&&he instanceof HTMLElement?!0:typeof he.nodeName=="string"&&typeof he.getAttribute=="function"}function gt(he,te){if(he.length>te.maxStringLength){var qe=he.length-te.maxStringLength,ot="... "+qe+" more character"+(qe>1?"s":"");return gt(k.call(he,0,te.maxStringLength),te)+ot}var Bt=Pe[te.quoteStyle||"single"];Bt.lastIndex=0;var xt=O.call(O.call(he,Bt,"\\$1"),/[\x00-\x1f]/g,Ct);return Ke(xt,"single",te)}function Ct(he){var te=he.charCodeAt(0),qe={8:"b",9:"t",10:"n",12:"f",13:"r"}[te];return qe?"\\"+qe:"\\x"+(te<16?"0":"")+q.call(te.toString(16))}function Lt(he){return"Object("+he+")"}function He(he){return he+" { ? }"}function mt(he,te,qe,ot){var Bt=ot?kr(qe,ot):de.call(qe,", ");return he+" ("+te+") {"+Bt+"}"}function yt(he){for(var te=0;te<he.length;te++)if(It(he[te],`
350
350
  `)>=0)return!1;return!0}function rr(he,te){var qe;if(he.indent===" ")qe=" ";else if(typeof he.indent=="number"&&he.indent>0)qe=de.call(Array(he.indent+1)," ");else return null;return{base:qe,prev:de.call(Array(te+1),qe)}}function kr(he,te){if(he.length===0)return"";var qe=`
351
351
  `+te.prev+te.base;return qe+de.call(he,","+qe)+`
352
- `+te.prev}function vr(he,te){var qe=pt(he),ot=[];if(qe){ot.length=he.length;for(var Bt=0;Bt<he.length;Bt++)ot[Bt]=wt(he,Bt)?te(he[Bt],he):""}var xt=typeof ne=="function"?ne(he):[],kt;if(re){kt={};for(var Gt=0;Gt<xt.length;Gt++)kt["$"+xt[Gt]]=xt[Gt]}for(var jt in he)wt(he,jt)&&(qe&&String(Number(jt))===jt&&jt<he.length||re&&kt["$"+jt]instanceof Symbol||(G.call(/[^\w$]/,jt)?ot.push(te(jt,he)+": "+te(he[jt],he)):ot.push(jt+": "+te(he[jt],he))));if(typeof ne=="function")for(var or=0;or<xt.length;or++)ce.call(he,xt[or])&&ot.push("["+te(xt[or])+"]: "+te(he[xt[or]],he));return ot}return Ug}var Wg,Yb;function kN(){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 RN(){return Xb||(Xb=1,Gg=Error),Gg}var Zg,Jb;function IN(){return Jb||(Jb=1,Zg=EvalError),Zg}var Yg,Qb;function LN(){return Qb||(Qb=1,Yg=RangeError),Yg}var Kg,e_;function MN(){return e_||(e_=1,Kg=ReferenceError),Kg}var Xg,t_;function DN(){return t_||(t_=1,Xg=SyntaxError),Xg}var Jg,r_;function ON(){return r_||(r_=1,Jg=URIError),Jg}var Qg,n_;function PN(){return n_||(n_=1,Qg=Math.abs),Qg}var e1,i_;function NN(){return i_||(i_=1,e1=Math.floor),e1}var t1,o_;function jN(){return o_||(o_=1,t1=Math.max),t1}var r1,s_;function FN(){return s_||(s_=1,r1=Math.min),r1}var n1,a_;function BN(){return a_||(a_=1,n1=Math.pow),n1}var i1,l_;function qN(){return l_||(l_=1,i1=Math.round),i1}var o1,c_;function HN(){return c_||(c_=1,o1=Number.isNaN||function(e){return e!==e}),o1}var s1,u_;function zN(){if(u_)return s1;u_=1;var r=HN();return s1=function(t){return r(t)||t===0?t:t<0?-1:1},s1}var a1,f_;function $N(){return f_||(f_=1,a1=Object.getOwnPropertyDescriptor),a1}var l1,d_;function hS(){if(d_)return l1;d_=1;var r=$N();if(r)try{r([],"length")}catch{r=null}return l1=r,l1}var c1,h_;function UN(){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 WN(){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 VN(){if(g_)return f1;g_=1;var r=typeof Symbol<"u"&&Symbol,e=WN();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 GN(){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=GN();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 ZN(){return S_||(S_=1,y1=typeof Reflect<"u"&&Reflect&&Reflect.apply),y1}var b1,C_;function YN(){if(C_)return b1;C_=1;var r=xh(),e=mS(),t=Bm(),n=ZN();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=YN();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 KN(){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 XN(){if(T_)return S1;T_=1;var r=pS(),e=gS(),t=KN();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 JN(){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=RN(),n=IN(),i=LN(),l=MN(),u=DN(),h=Qu(),g=ON(),m=PN(),M=NN(),T=jN(),C=FN(),_=BN(),S=qN(),D=zN(),A=Function,b=function(Ze){try{return A('"use strict"; return ('+Ze+").constructor;")()}catch{}},k=hS(),O=UN(),q=function(){throw new h},H=k?function(){try{return arguments.callee,q}catch{try{return k(arguments,"callee").get}catch{return q}}}():q,G=VN()(),Y=XN(),de=gS(),ee=pS(),ue=mS(),P=Bm(),ne={},K=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),re={__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%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%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%":ne,"%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%":H,"%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(Ze){var oe=Y(Y(Ze));re["%Error.prototype%"]=oe}var ce=function Ze(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 Ee=Ze("%AsyncGeneratorFunction%");Ee&&(ke=Ee.prototype)}else if(Oe==="%AsyncIteratorPrototype%"){var Ne=Ze("%AsyncGenerator%");Ne&&Y&&(ke=Y(Ne.prototype))}return re[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=JN(),ge=ae.call(P,Array.prototype.concat),xe=ae.call(ue,Array.prototype.splice),Ie=ae.call(P,String.prototype.replace),Pe=ae.call(P,String.prototype.slice),Ke=ae.call(P,RegExp.prototype.exec),Te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rt=/\\(\\)?/g,pt=function(Oe){var ke=Pe(Oe,0,1),Ee=Pe(Oe,-1);if(ke==="%"&&Ee!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(Ee==="%"&&ke!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ne=[];return Ie(Oe,Te,function(Re,Je,ut,wt){Ne[Ne.length]=ut?Ie(wt,rt,"$1"):Je||Re}),Ne},Xe=function(Oe,ke){var Ee=Oe,Ne;if(be(me,Ee)&&(Ne=me[Ee],Ee="%"+Ne[0]+"%"),be(re,Ee)){var Re=re[Ee];if(Re===ne&&(Re=ce(Ee)),typeof Re>"u"&&!ke)throw new h("intrinsic "+Oe+" exists, but is not available. Please file an issue!");return{alias:Ne,name:Ee,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(Ke(/^%?[^%]*%?$/,Oe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ee=pt(Oe),Ne=Ee.length>0?Ee[0]:"",Re=Xe("%"+Ne+"%",ke),Je=Re.name,ut=Re.value,wt=!1,St=Re.alias;St&&(Ne=St[0],xe(Ee,ge([0,1],St)));for(var vt=1,It=!0;vt<Ee.length;vt+=1){var nt=Ee[vt],We=Pe(nt,0,1),Ve=Pe(nt,-1);if((We==='"'||We==="'"||We==="`"||Ve==='"'||Ve==="'"||Ve==="`")&&We!==Ve)throw new u("property names with quotes must have matching quotes");if((nt==="constructor"||!It)&&(wt=!0),Ne+="."+nt,Je="%"+Ne+"%",be(re,Je))ut=re[Je];else if(ut!=null){if(!(nt in ut)){if(!ke)throw new h("base intrinsic for "+Oe+" exists, but the property is not available.");return}if(k&&vt+1>=Ee.length){var dt=k(ut,nt);It=!!dt,It&&"get"in dt&&!("originalValue"in dt.get)?ut=dt.get:ut=ut[nt]}else It=be(ut,nt),ut=ut[nt];It&&!wt&&(re[Je]=ut)}}return ut},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 QN(){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 ej(){if(M_)return k1;M_=1;var r=Qu(),e=_h(),t=kN(),n=bS(),i=QN(),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 q=[],H=0;H<O.length;++H)typeof O[H]<"u"&&q.push(O[H]);k.obj[k.prop]=q}}},l=function(b,k){for(var O=k&&k.plainObjects?{__proto__:null}:{},q=0;q<b.length;++q)typeof b[q]<"u"&&(O[q]=b[q]);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 q=b;return t(b)&&!t(k)&&(q=l(b,O)),t(b)&&t(k)?(k.forEach(function(H,G){if(e.call(b,G)){var Y=b[G];Y&&typeof Y=="object"&&H&&typeof H=="object"?b[G]=A(Y,H,O):b.push(H)}else b[G]=H}),b):Object.keys(k).reduce(function(H,G){var Y=k[G];return e.call(H,G)?H[G]=A(H[G],Y,O):H[G]=Y,H},q)},h=function(b,k){return Object.keys(k).reduce(function(O,q){return O[q]=k[q],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,q,H){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 ne=ee.charCodeAt(P);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||H===r.RFC1738&&(ne===40||ne===41)){ue[ue.length]=ee.charAt(P);continue}if(ne<128){ue[ue.length]=n[ne];continue}if(ne<2048){ue[ue.length]=n[192|ne>>6]+n[128|ne&63];continue}if(ne<55296||ne>=57344){ue[ue.length]=n[224|ne>>12]+n[128|ne>>6&63]+n[128|ne&63];continue}P+=1,ne=65536+((ne&1023)<<10|ee.charCodeAt(P)&1023),ue[ue.length]=n[240|ne>>18]+n[128|ne>>12&63]+n[128|ne>>6&63]+n[128|ne&63]}Y+=ue.join("")}return Y},T=function(b){for(var k=[{obj:{o:b},prop:"o"}],O=[],q=0;q<k.length;++q)for(var H=k[q],G=H.obj[H.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=[],q=0;q<b.length;q+=1)O.push(k(b[q]));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 tj(){if(P_)return L1;P_=1;var r=ej(),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,q,H,G,Y,de,ee,ue,P,ne,K,re,oe,ce,me){for(var ae=A,be=me,ge=0,xe=!1;(be=be.get(C))!==void 0&&!xe;){var Ie=be.get(A);if(ge+=1,typeof Ie<"u"){if(Ie===ge)throw new RangeError("Cyclic object value");xe=!0}typeof be.get(C)>"u"&&(ge=0)}if(typeof ee=="function"?ae=ee(b,ae):ae instanceof Date?ae=ne(ae):k==="comma"&&l(ae)&&(ae=e.maybeMap(ae,function(Je){return Je instanceof Date?ne(Je):Je})),ae===null){if(H)return de&&!oe?de(b,M.encoder,ce,"key",K):b;ae=""}if(T(ae)||e.isBuffer(ae)){if(de){var Pe=oe?b:de(b,M.encoder,ce,"key",K);return[re(Pe)+"="+re(de(ae,M.encoder,ce,"value",K))]}return[re(b)+"="+re(String(ae))]}var Ke=[];if(typeof ae>"u")return Ke;var Te;if(k==="comma"&&l(ae))oe&&de&&(ae=e.maybeMap(ae,de)),Te=[{value:ae.length>0?ae.join(",")||null:void 0}];else if(l(ee))Te=ee;else{var rt=Object.keys(ae);Te=ue?rt.sort(ue):rt}var pt=Y?String(b).replace(/\./g,"%2E"):String(b),Xe=O&&l(ae)&&ae.length===1?pt+"[]":pt;if(q&&l(ae)&&ae.length===0)return Xe+"[]";for(var Ze=0;Ze<Te.length;++Ze){var Oe=Te[Ze],ke=typeof Oe=="object"&&Oe&&typeof Oe.value<"u"?Oe.value:ae[Oe];if(!(G&&ke===null)){var Ee=P&&Y?String(Oe).replace(/\./g,"%2E"):String(Oe),Ne=l(ae)?typeof k=="function"?k(Xe,Ee):Xe:Xe+(P?"."+Ee:"["+Ee+"]");me.set(A,ge);var Re=r();Re.set(C,me),h(Ke,D(ke,Ne,k,O,q,H,G,Y,k==="comma"&&oe&&l(ae)?null:de,ee,ue,P,ne,K,re,oe,ce,Re))}}return Ke},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],q=M.filter;(typeof A.filter=="function"||l(A.filter))&&(q=A.filter);var H;if(A.arrayFormat in i?H=A.arrayFormat:"indices"in A?H=A.indices?"indices":"repeat":H=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:H,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:q,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,q;typeof k.filter=="function"?(q=k.filter,b=q("",b)):l(k.filter)&&(q=k.filter,O=q);var H=[];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(H,_(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 ne=H.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&"),ne.length>0?K+ne:""},L1}var M1,N_;function rj(){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,q,H=S.charset;if(S.charsetSentinel)for(q=0;q<k.length;++q)k[q].indexOf("utf8=")===0&&(k[q]===h?H="utf-8":k[q]===u&&(H="iso-8859-1"),O=q,q=k.length);for(q=0;q<k.length;++q)if(q!==O){var G=k[q],Y=G.indexOf("]="),de=Y===-1?G.indexOf("="):Y+1,ee,ue;de===-1?(ee=S.decoder(G,n.decoder,H,"key"),ue=S.strictNullHandling?null:""):(ee=S.decoder(G.slice(0,de),n.decoder,H,"key"),ue=r.maybeMap(l(G.slice(de+1),S,t(D[ee])?D[ee].length:0),function(ne){return S.decoder(ne,n.decoder,H,"value")})),ue&&S.interpretNumericEntities&&H==="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 q,H=C[O];if(H==="[]"&&S.parseArrays)q=S.allowEmptyArrays&&(k===""||S.strictNullHandling&&k===null)?[]:r.combine([],k);else{q=S.plainObjects?{__proto__:null}:{};var G=H.charAt(0)==="["&&H.charAt(H.length-1)==="]"?H.slice(1,-1):H,Y=S.decodeDotInKeys?G.replace(/%2E/g,"."):G,de=parseInt(Y,10);!S.parseArrays&&Y===""?q={0:k}:!isNaN(de)&&H!==Y&&String(de)===Y&&de>=0&&S.parseArrays&&de<=S.arrayLimit?(q=[],q[de]=k):Y!=="__proto__"&&(q[Y]=k)}k=q}return k},M=function(_,S,D,A){if(_){var b=D.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,k=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,q=D.depth>0&&k.exec(b),H=q?b.slice(0,q.index):b,G=[];if(H){if(!D.plainObjects&&e.call(Object.prototype,H)&&!D.allowPrototypes)return;G.push(H)}for(var Y=0;D.depth>0&&(q=O.exec(b))!==null&&Y<D.depth;){if(Y+=1,!D.plainObjects&&e.call(Object.prototype,q[1].slice(1,-1))&&!D.allowPrototypes)return;G.push(q[1])}if(q){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");G.push("["+b.slice(q.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],q=M(O,D[O],S,typeof C=="string");A=r.merge(A,q,S)}return S.allowSparse===!0?A:r.compact(A)},M1}var D1,j_;function nj(){if(j_)return D1;j_=1;var r=tj(),e=rj(),t=Hm();return D1={formats:t,parse:e,stringify:r},D1}var ij=nj();const oj=il(ij),im={StoredContexts:{},defaultHandler:()=>{}},xS={Init:()=>{},Create:r=>{const e=r.method+r.url;return im.StoredContexts[e]=r,sj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{im.defaultHandler=r}};function sj(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+="?"+oj.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 q=A.decode(O.value).trim();k+=q;let H=null;try{const G=q.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}H=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}H=await JSON.parse(de)}catch{}}if(H!=null&&(Object.keys(H).includes("err_code")?_.errorCode=H.err_code:(_.errorCode=0,_.data=H,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 q=await JSON.parse(O.replaceAll("\0",""));Object.keys(q).includes("err_code")?(_.errorCode=q.err_code,_.message=q.err_msg):_.data=q}}}}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 aj(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 lj(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 cj={toBase64:aj,toFile:lj};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=jP;exports.AEditorStyleKeys=a2;exports.AFileBox=C6;exports.AFileBoxStyleKeys=g2;exports.AFloatMenu=O2;exports.AFloatMenuKeys=C2;exports.AFrameStyleKeys=S2;exports.AGrow=Yc;exports.AIcon=Br;exports.AIconButton=vo;exports.AIconButtonStyleKeys=_2;exports.AIconButtonTypes=n5;exports.AIconHOC=F4;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=ck;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=wk;exports.AStepperStyleKeys=v2;exports.ASwitch=Y_;exports.ASwitchFrame=I2;exports.ASwitchStyleKeys=h2;exports.ATab=j2;exports.ATabStyleKeys=p2;exports.ATabTypes=Nk;exports.ATable=$8;exports.ATableStyleKeys=x2;exports.AText=z2;exports.ATextArea=eR;exports.ATextAreaStyleKeys=s2;exports.ATextAreaTypes=Q8;exports.AThemeButton=H5;exports.AThemes=Df;exports.ATooltip=Z_;exports.ATooltipStyleKeys=n2;exports.ATree=xN;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=Er;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=cj;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;
352
+ `+te.prev}function vr(he,te){var qe=pt(he),ot=[];if(qe){ot.length=he.length;for(var Bt=0;Bt<he.length;Bt++)ot[Bt]=wt(he,Bt)?te(he[Bt],he):""}var xt=typeof ne=="function"?ne(he):[],kt;if(re){kt={};for(var Gt=0;Gt<xt.length;Gt++)kt["$"+xt[Gt]]=xt[Gt]}for(var jt in he)wt(he,jt)&&(qe&&String(Number(jt))===jt&&jt<he.length||re&&kt["$"+jt]instanceof Symbol||(G.call(/[^\w$]/,jt)?ot.push(te(jt,he)+": "+te(he[jt],he)):ot.push(jt+": "+te(he[jt],he))));if(typeof ne=="function")for(var or=0;or<xt.length;or++)ce.call(he,xt[or])&&ot.push("["+te(xt[or])+"]: "+te(he[xt[or]],he));return ot}return Ug}var Wg,Yb;function EN(){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 kN(){return Xb||(Xb=1,Gg=Error),Gg}var Zg,Jb;function RN(){return Jb||(Jb=1,Zg=EvalError),Zg}var Yg,Qb;function IN(){return Qb||(Qb=1,Yg=RangeError),Yg}var Kg,e_;function LN(){return e_||(e_=1,Kg=ReferenceError),Kg}var Xg,t_;function MN(){return t_||(t_=1,Xg=SyntaxError),Xg}var Jg,r_;function DN(){return r_||(r_=1,Jg=URIError),Jg}var Qg,n_;function ON(){return n_||(n_=1,Qg=Math.abs),Qg}var e1,i_;function PN(){return i_||(i_=1,e1=Math.floor),e1}var t1,o_;function NN(){return o_||(o_=1,t1=Math.max),t1}var r1,s_;function jN(){return s_||(s_=1,r1=Math.min),r1}var n1,a_;function FN(){return a_||(a_=1,n1=Math.pow),n1}var i1,l_;function BN(){return l_||(l_=1,i1=Math.round),i1}var o1,c_;function qN(){return c_||(c_=1,o1=Number.isNaN||function(e){return e!==e}),o1}var s1,u_;function HN(){if(u_)return s1;u_=1;var r=qN();return s1=function(t){return r(t)||t===0?t:t<0?-1:1},s1}var a1,f_;function zN(){return f_||(f_=1,a1=Object.getOwnPropertyDescriptor),a1}var l1,d_;function hS(){if(d_)return l1;d_=1;var r=zN();if(r)try{r([],"length")}catch{r=null}return l1=r,l1}var c1,h_;function $N(){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 UN(){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 WN(){if(g_)return f1;g_=1;var r=typeof Symbol<"u"&&Symbol,e=UN();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 VN(){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=VN();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 GN(){return S_||(S_=1,y1=typeof Reflect<"u"&&Reflect&&Reflect.apply),y1}var b1,C_;function ZN(){if(C_)return b1;C_=1;var r=xh(),e=mS(),t=Bm(),n=GN();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=ZN();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 YN(){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 KN(){if(T_)return S1;T_=1;var r=pS(),e=gS(),t=YN();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 XN(){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=kN(),n=RN(),i=IN(),l=LN(),u=MN(),h=Qu(),g=DN(),m=ON(),M=PN(),T=NN(),C=jN(),_=FN(),S=BN(),D=HN(),A=Function,b=function(Ze){try{return A('"use strict"; return ('+Ze+").constructor;")()}catch{}},k=hS(),O=$N(),q=function(){throw new h},H=k?function(){try{return arguments.callee,q}catch{try{return k(arguments,"callee").get}catch{return q}}}():q,G=WN()(),Y=KN(),de=gS(),ee=pS(),ue=mS(),P=Bm(),ne={},K=typeof Uint8Array>"u"||!Y?r:Y(Uint8Array),re={__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%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%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%":ne,"%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%":H,"%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(Ze){var oe=Y(Y(Ze));re["%Error.prototype%"]=oe}var ce=function Ze(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 Ee=Ze("%AsyncGeneratorFunction%");Ee&&(ke=Ee.prototype)}else if(Oe==="%AsyncIteratorPrototype%"){var Ne=Ze("%AsyncGenerator%");Ne&&Y&&(ke=Y(Ne.prototype))}return re[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=XN(),ge=ae.call(P,Array.prototype.concat),xe=ae.call(ue,Array.prototype.splice),Ie=ae.call(P,String.prototype.replace),Pe=ae.call(P,String.prototype.slice),Ke=ae.call(P,RegExp.prototype.exec),Te=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rt=/\\(\\)?/g,pt=function(Oe){var ke=Pe(Oe,0,1),Ee=Pe(Oe,-1);if(ke==="%"&&Ee!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(Ee==="%"&&ke!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var Ne=[];return Ie(Oe,Te,function(Re,Je,ut,wt){Ne[Ne.length]=ut?Ie(wt,rt,"$1"):Je||Re}),Ne},Xe=function(Oe,ke){var Ee=Oe,Ne;if(be(me,Ee)&&(Ne=me[Ee],Ee="%"+Ne[0]+"%"),be(re,Ee)){var Re=re[Ee];if(Re===ne&&(Re=ce(Ee)),typeof Re>"u"&&!ke)throw new h("intrinsic "+Oe+" exists, but is not available. Please file an issue!");return{alias:Ne,name:Ee,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(Ke(/^%?[^%]*%?$/,Oe)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ee=pt(Oe),Ne=Ee.length>0?Ee[0]:"",Re=Xe("%"+Ne+"%",ke),Je=Re.name,ut=Re.value,wt=!1,St=Re.alias;St&&(Ne=St[0],xe(Ee,ge([0,1],St)));for(var vt=1,It=!0;vt<Ee.length;vt+=1){var nt=Ee[vt],We=Pe(nt,0,1),Ve=Pe(nt,-1);if((We==='"'||We==="'"||We==="`"||Ve==='"'||Ve==="'"||Ve==="`")&&We!==Ve)throw new u("property names with quotes must have matching quotes");if((nt==="constructor"||!It)&&(wt=!0),Ne+="."+nt,Je="%"+Ne+"%",be(re,Je))ut=re[Je];else if(ut!=null){if(!(nt in ut)){if(!ke)throw new h("base intrinsic for "+Oe+" exists, but the property is not available.");return}if(k&&vt+1>=Ee.length){var dt=k(ut,nt);It=!!dt,It&&"get"in dt&&!("originalValue"in dt.get)?ut=dt.get:ut=ut[nt]}else It=be(ut,nt),ut=ut[nt];It&&!wt&&(re[Je]=ut)}}return ut},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 JN(){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 QN(){if(M_)return k1;M_=1;var r=Qu(),e=_h(),t=EN(),n=bS(),i=JN(),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 q=[],H=0;H<O.length;++H)typeof O[H]<"u"&&q.push(O[H]);k.obj[k.prop]=q}}},l=function(b,k){for(var O=k&&k.plainObjects?{__proto__:null}:{},q=0;q<b.length;++q)typeof b[q]<"u"&&(O[q]=b[q]);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 q=b;return t(b)&&!t(k)&&(q=l(b,O)),t(b)&&t(k)?(k.forEach(function(H,G){if(e.call(b,G)){var Y=b[G];Y&&typeof Y=="object"&&H&&typeof H=="object"?b[G]=A(Y,H,O):b.push(H)}else b[G]=H}),b):Object.keys(k).reduce(function(H,G){var Y=k[G];return e.call(H,G)?H[G]=A(H[G],Y,O):H[G]=Y,H},q)},h=function(b,k){return Object.keys(k).reduce(function(O,q){return O[q]=k[q],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,q,H){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 ne=ee.charCodeAt(P);if(ne===45||ne===46||ne===95||ne===126||ne>=48&&ne<=57||ne>=65&&ne<=90||ne>=97&&ne<=122||H===r.RFC1738&&(ne===40||ne===41)){ue[ue.length]=ee.charAt(P);continue}if(ne<128){ue[ue.length]=n[ne];continue}if(ne<2048){ue[ue.length]=n[192|ne>>6]+n[128|ne&63];continue}if(ne<55296||ne>=57344){ue[ue.length]=n[224|ne>>12]+n[128|ne>>6&63]+n[128|ne&63];continue}P+=1,ne=65536+((ne&1023)<<10|ee.charCodeAt(P)&1023),ue[ue.length]=n[240|ne>>18]+n[128|ne>>12&63]+n[128|ne>>6&63]+n[128|ne&63]}Y+=ue.join("")}return Y},T=function(b){for(var k=[{obj:{o:b},prop:"o"}],O=[],q=0;q<k.length;++q)for(var H=k[q],G=H.obj[H.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=[],q=0;q<b.length;q+=1)O.push(k(b[q]));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 ej(){if(P_)return L1;P_=1;var r=QN(),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,q,H,G,Y,de,ee,ue,P,ne,K,re,oe,ce,me){for(var ae=A,be=me,ge=0,xe=!1;(be=be.get(C))!==void 0&&!xe;){var Ie=be.get(A);if(ge+=1,typeof Ie<"u"){if(Ie===ge)throw new RangeError("Cyclic object value");xe=!0}typeof be.get(C)>"u"&&(ge=0)}if(typeof ee=="function"?ae=ee(b,ae):ae instanceof Date?ae=ne(ae):k==="comma"&&l(ae)&&(ae=e.maybeMap(ae,function(Je){return Je instanceof Date?ne(Je):Je})),ae===null){if(H)return de&&!oe?de(b,M.encoder,ce,"key",K):b;ae=""}if(T(ae)||e.isBuffer(ae)){if(de){var Pe=oe?b:de(b,M.encoder,ce,"key",K);return[re(Pe)+"="+re(de(ae,M.encoder,ce,"value",K))]}return[re(b)+"="+re(String(ae))]}var Ke=[];if(typeof ae>"u")return Ke;var Te;if(k==="comma"&&l(ae))oe&&de&&(ae=e.maybeMap(ae,de)),Te=[{value:ae.length>0?ae.join(",")||null:void 0}];else if(l(ee))Te=ee;else{var rt=Object.keys(ae);Te=ue?rt.sort(ue):rt}var pt=Y?String(b).replace(/\./g,"%2E"):String(b),Xe=O&&l(ae)&&ae.length===1?pt+"[]":pt;if(q&&l(ae)&&ae.length===0)return Xe+"[]";for(var Ze=0;Ze<Te.length;++Ze){var Oe=Te[Ze],ke=typeof Oe=="object"&&Oe&&typeof Oe.value<"u"?Oe.value:ae[Oe];if(!(G&&ke===null)){var Ee=P&&Y?String(Oe).replace(/\./g,"%2E"):String(Oe),Ne=l(ae)?typeof k=="function"?k(Xe,Ee):Xe:Xe+(P?"."+Ee:"["+Ee+"]");me.set(A,ge);var Re=r();Re.set(C,me),h(Ke,D(ke,Ne,k,O,q,H,G,Y,k==="comma"&&oe&&l(ae)?null:de,ee,ue,P,ne,K,re,oe,ce,Re))}}return Ke},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],q=M.filter;(typeof A.filter=="function"||l(A.filter))&&(q=A.filter);var H;if(A.arrayFormat in i?H=A.arrayFormat:"indices"in A?H=A.indices?"indices":"repeat":H=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:H,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:q,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,q;typeof k.filter=="function"?(q=k.filter,b=q("",b)):l(k.filter)&&(q=k.filter,O=q);var H=[];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(H,_(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 ne=H.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&"),ne.length>0?K+ne:""},L1}var M1,N_;function tj(){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,q,H=S.charset;if(S.charsetSentinel)for(q=0;q<k.length;++q)k[q].indexOf("utf8=")===0&&(k[q]===h?H="utf-8":k[q]===u&&(H="iso-8859-1"),O=q,q=k.length);for(q=0;q<k.length;++q)if(q!==O){var G=k[q],Y=G.indexOf("]="),de=Y===-1?G.indexOf("="):Y+1,ee,ue;de===-1?(ee=S.decoder(G,n.decoder,H,"key"),ue=S.strictNullHandling?null:""):(ee=S.decoder(G.slice(0,de),n.decoder,H,"key"),ue=r.maybeMap(l(G.slice(de+1),S,t(D[ee])?D[ee].length:0),function(ne){return S.decoder(ne,n.decoder,H,"value")})),ue&&S.interpretNumericEntities&&H==="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 q,H=C[O];if(H==="[]"&&S.parseArrays)q=S.allowEmptyArrays&&(k===""||S.strictNullHandling&&k===null)?[]:r.combine([],k);else{q=S.plainObjects?{__proto__:null}:{};var G=H.charAt(0)==="["&&H.charAt(H.length-1)==="]"?H.slice(1,-1):H,Y=S.decodeDotInKeys?G.replace(/%2E/g,"."):G,de=parseInt(Y,10);!S.parseArrays&&Y===""?q={0:k}:!isNaN(de)&&H!==Y&&String(de)===Y&&de>=0&&S.parseArrays&&de<=S.arrayLimit?(q=[],q[de]=k):Y!=="__proto__"&&(q[Y]=k)}k=q}return k},M=function(_,S,D,A){if(_){var b=D.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_,k=/(\[[^[\]]*])/,O=/(\[[^[\]]*])/g,q=D.depth>0&&k.exec(b),H=q?b.slice(0,q.index):b,G=[];if(H){if(!D.plainObjects&&e.call(Object.prototype,H)&&!D.allowPrototypes)return;G.push(H)}for(var Y=0;D.depth>0&&(q=O.exec(b))!==null&&Y<D.depth;){if(Y+=1,!D.plainObjects&&e.call(Object.prototype,q[1].slice(1,-1))&&!D.allowPrototypes)return;G.push(q[1])}if(q){if(D.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+D.depth+" and strictDepth is true");G.push("["+b.slice(q.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],q=M(O,D[O],S,typeof C=="string");A=r.merge(A,q,S)}return S.allowSparse===!0?A:r.compact(A)},M1}var D1,j_;function rj(){if(j_)return D1;j_=1;var r=ej(),e=tj(),t=Hm();return D1={formats:t,parse:e,stringify:r},D1}var nj=rj();const ij=il(nj),im={StoredContexts:{},defaultHandler:()=>{}},xS={Init:()=>{},Create:r=>{const e=r.method+r.url;return im.StoredContexts[e]=r,oj(r)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:r=>{im.defaultHandler=r}};function oj(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+="?"+ij.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 q=A.decode(O.value).trim();k+=q;let H=null;try{const G=q.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}H=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}H=await JSON.parse(de)}catch{}}if(H!=null&&(Object.keys(H).includes("err_code")?_.errorCode=H.err_code:(_.errorCode=0,_.data=H,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 q=await JSON.parse(O.replaceAll("\0",""));Object.keys(q).includes("err_code")?(_.errorCode=q.err_code,_.message=q.err_msg):_.data=q}}}}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 sj(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 aj(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 lj={toBase64:sj,toFile:aj};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=NP;exports.AEditorStyleKeys=a2;exports.AFileBox=C6;exports.AFileBoxStyleKeys=g2;exports.AFloatMenu=O2;exports.AFloatMenuKeys=C2;exports.AFrameStyleKeys=S2;exports.AGrow=Yc;exports.AIcon=Br;exports.AIconButton=vo;exports.AIconButtonStyleKeys=_2;exports.AIconButtonTypes=n5;exports.AIconHOC=F4;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=ck;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=wk;exports.AStepperStyleKeys=v2;exports.ASwitch=Y_;exports.ASwitchFrame=I2;exports.ASwitchStyleKeys=h2;exports.ATab=j2;exports.ATabStyleKeys=p2;exports.ATabTypes=Nk;exports.ATable=$8;exports.ATableStyleKeys=x2;exports.AText=z2;exports.ATextArea=eR;exports.ATextAreaStyleKeys=s2;exports.ATextAreaTypes=Q8;exports.AThemeButton=H5;exports.AThemes=Df;exports.ATooltip=Z_;exports.ATooltipStyleKeys=n2;exports.ATree=_N;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=Er;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=lj;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;