ados-rcm 1.1.790 → 1.1.792
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -3
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -481,7 +481,7 @@ ${N["Invalid file(s)"]}: ${Et}${mt?`
|
|
|
481
481
|
To pick up a draggable item, press the space bar.
|
|
482
482
|
While dragging, use the arrow keys to move the item.
|
|
483
483
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
484
|
-
`},$W={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function eU(n){let{announcements:e=$W,container:t,hiddenTextDescribedById:r,screenReaderInstructions:i=jW}=n;const{announce:o,announcement:l}=JW(),a=nv("DndLiveRegion"),[c,u]=B.useState(!1);if(B.useEffect(()=>{u(!0)},[]),QW(B.useMemo(()=>({onDragStart(b){let{active:w}=b;o(e.onDragStart({active:w}))},onDragMove(b){let{active:w,over:S}=b;e.onDragMove&&o(e.onDragMove({active:w,over:S}))},onDragOver(b){let{active:w,over:S}=b;o(e.onDragOver({active:w,over:S}))},onDragEnd(b){let{active:w,over:S}=b;o(e.onDragEnd({active:w,over:S}))},onDragCancel(b){let{active:w,over:S}=b;o(e.onDragCancel({active:w,over:S}))}}),[o,e])),!c)return null;const p=B.createElement(B.Fragment,null,B.createElement(XW,{id:r,value:i.draggable}),B.createElement(KW,{id:a,announcement:l}));return t?Fa.createPortal(p,t):p}var Na;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Na||(Na={}));function k0(){}function TC(n,e){return B.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tU(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return B.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const Nd=Object.freeze({x:0,y:0});function nU(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function rU(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function iU(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function oU(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function EC(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const lU=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=EC(e,e.left,e.top),o=[];for(const l of r){const{id:a}=l,c=t.get(a);if(c){const u=nU(EC(c),i);o.push({id:a,data:{droppableContainer:l,value:u}})}}return o.sort(rU)};function sU(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),i=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),l=i-r,a=o-t;if(r<i&&t<o){const c=e.width*e.height,u=n.width*n.height,p=l*a,b=p/(c+u-p);return Number(b.toFixed(4))}return 0}const aU=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=[];for(const o of r){const{id:l}=o,a=t.get(l);if(a){const c=sU(a,e);c>0&&i.push({id:l,data:{droppableContainer:o,value:c}})}}return i.sort(iU)};function cU(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function DS(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Nd}function uU(n){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((l,a)=>({...l,top:l.top+n*a.y,bottom:l.bottom+n*a.y,left:l.left+n*a.x,right:l.right+n*a.x}),{...t})}}const fU=uU(1);function dU(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function hU(n,e,t){const r=dU(e);if(!r)return n;const{scaleX:i,scaleY:o,x:l,y:a}=r,c=n.left-l-(1-i)*parseFloat(t),u=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),p=i?n.width/i:n.width,b=o?n.height/o:n.height;return{width:p,height:b,top:u,right:c+p,bottom:u+b,left:c}}const gU={ignoreTransform:!1};function Y1(n,e){e===void 0&&(e=gU);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:p}=lf(n).getComputedStyle(n);u&&(t=hU(t,u,p))}const{top:r,left:i,width:o,height:l,bottom:a,right:c}=t;return{top:r,left:i,width:o,height:l,bottom:a,right:c}}function AC(n){return Y1(n,{ignoreTransform:!0})}function pU(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function vU(n,e){return e===void 0&&(e=lf(n).getComputedStyle(n)),e.position==="fixed"}function bU(n,e){e===void 0&&(e=lf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=e[i];return typeof o=="string"?t.test(o):!1})}function k2(n,e){const t=[];function r(i){if(e!=null&&t.length>=e||!i)return t;if(E2(i)&&i.scrollingElement!=null&&!t.includes(i.scrollingElement))return t.push(i.scrollingElement),t;if(!ev(i)||LS(i)||t.includes(i))return t;const o=lf(n).getComputedStyle(i);return i!==n&&bU(i,o)&&t.push(i),vU(i,o)?t:r(i.parentNode)}return n?r(n):t}function NS(n){const[e]=k2(n,1);return e??null}function oy(n){return!J0||!n?null:W1(n)?n:T2(n)?E2(n)||n===U1(n).scrollingElement?window:ev(n)?n:null:null}function FS(n){return W1(n)?n.scrollX:n.scrollLeft}function BS(n){return W1(n)?n.scrollY:n.scrollTop}function Nm(n){return{x:FS(n),y:BS(n)}}var ic;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(ic||(ic={}));function zS(n){return!J0||!n?!1:n===document.scrollingElement}function HS(n){const e={x:0,y:0},t=zS(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},i=n.scrollTop<=e.y,o=n.scrollLeft<=e.x,l=n.scrollTop>=r.y,a=n.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:l,isRight:a,maxScroll:r,minScroll:e}}const yU={x:.2,y:.2};function mU(n,e,t,r,i){let{top:o,left:l,right:a,bottom:c}=t;r===void 0&&(r=10),i===void 0&&(i=yU);const{isTop:u,isBottom:p,isLeft:b,isRight:w}=HS(n),S={x:0,y:0},_={x:0,y:0},A={height:e.height*i.y,width:e.width*i.x};return!u&&o<=e.top+A.height?(S.y=ic.Backward,_.y=r*Math.abs((e.top+A.height-o)/A.height)):!p&&c>=e.bottom-A.height&&(S.y=ic.Forward,_.y=r*Math.abs((e.bottom-A.height-c)/A.height)),!w&&a>=e.right-A.width?(S.x=ic.Forward,_.x=r*Math.abs((e.right-A.width-a)/A.width)):!b&&l<=e.left+A.width&&(S.x=ic.Backward,_.x=r*Math.abs((e.left+A.width-l)/A.width)),{direction:S,speed:_}}function xU(n){if(n===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:e,left:t,right:r,bottom:i}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:i,width:n.clientWidth,height:n.clientHeight}}function WS(n){return n.reduce((e,t)=>T1(e,Nm(t)),Nd)}function wU(n){return n.reduce((e,t)=>e+FS(t),0)}function CU(n){return n.reduce((e,t)=>e+BS(t),0)}function _U(n,e){if(e===void 0&&(e=Y1),!n)return;const{top:t,left:r,bottom:i,right:o}=e(n);NS(n)&&(i<=0||o<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SU=[["x",["left","right"],wU],["y",["top","bottom"],CU]];class I2{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=k2(t),i=WS(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,l,a]of SU)for(const c of l)Object.defineProperty(this,c,{get:()=>{const u=a(r),p=i[o]-u;return this.rect[c]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ep{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var i;(i=this.target)==null||i.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function TU(n){const{EventTarget:e}=lf(n);return n instanceof e?n:U1(n)}function ly(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var cd;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(cd||(cd={}));function RC(n){n.preventDefault()}function EU(n){n.stopPropagation()}var so;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter",n.Tab="Tab"})(so||(so={}));const US={start:[so.Space,so.Enter],cancel:[so.Esc],end:[so.Space,so.Enter,so.Tab]},AU=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case so.Right:return{...t,x:t.x+25};case so.Left:return{...t,x:t.x-25};case so.Down:return{...t,y:t.y+25};case so.Up:return{...t,y:t.y-25}}};class M2{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Ep(U1(t)),this.windowListeners=new Ep(lf(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(cd.Resize,this.handleCancel),this.windowListeners.add(cd.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(cd.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&_U(r),t(Nd)}handleKeyDown(e){if(R2(e)){const{active:t,context:r,options:i}=this.props,{keyboardCodes:o=US,coordinateGetter:l=AU,scrollBehavior:a="smooth"}=i,{code:c}=e;if(o.end.includes(c)){this.handleEnd(e);return}if(o.cancel.includes(c)){this.handleCancel(e);return}const{collisionRect:u}=r.current,p=u?{x:u.left,y:u.top}:Nd;this.referenceCoordinates||(this.referenceCoordinates=p);const b=l(e,{active:t,context:r.current,currentCoordinates:p});if(b){const w=R0(b,p),S={x:0,y:0},{scrollableAncestors:_}=r.current;for(const A of _){const R=e.code,{isTop:L,isRight:M,isLeft:F,isBottom:U,maxScroll:Z,minScroll:D}=HS(A),V=xU(A),N={x:Math.min(R===so.Right?V.right-V.width/2:V.right,Math.max(R===so.Right?V.left:V.left+V.width/2,b.x)),y:Math.min(R===so.Down?V.bottom-V.height/2:V.bottom,Math.max(R===so.Down?V.top:V.top+V.height/2,b.y))},K=R===so.Right&&!M||R===so.Left&&!F,ue=R===so.Down&&!U||R===so.Up&&!L;if(K&&N.x!==b.x){const H=A.scrollLeft+w.x,te=R===so.Right&&H<=Z.x||R===so.Left&&H>=D.x;if(te&&!w.y){A.scrollTo({left:H,behavior:a});return}te?S.x=A.scrollLeft-H:S.x=R===so.Right?A.scrollLeft-Z.x:A.scrollLeft-D.x,S.x&&A.scrollBy({left:-S.x,behavior:a});break}else if(ue&&N.y!==b.y){const H=A.scrollTop+w.y,te=R===so.Down&&H<=Z.y||R===so.Up&&H>=D.y;if(te&&!w.x){A.scrollTo({top:H,behavior:a});return}te?S.y=A.scrollTop-H:S.y=R===so.Down?A.scrollTop-Z.y:A.scrollTop-D.y,S.y&&A.scrollBy({top:-S.y,behavior:a});break}}this.handleMove(e,T1(R0(b,this.referenceCoordinates),S))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}M2.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=US,onActivation:i}=e,{active:o}=t;const{code:l}=n.nativeEvent;if(r.start.includes(l)){const a=o.activatorNode.current;return a&&n.target!==a?!1:(n.preventDefault(),i==null||i({event:n.nativeEvent}),!0)}return!1}}];function kC(n){return!!(n&&"distance"in n)}function IC(n){return!!(n&&"delay"in n)}class L2{constructor(e,t,r){var i;r===void 0&&(r=TU(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:l}=o;this.props=e,this.events=t,this.document=U1(l),this.documentListeners=new Ep(this.document),this.listeners=new Ep(r),this.windowListeners=new Ep(lf(l)),this.initialCoordinates=(i=Dm(o))!=null?i:Nd,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(cd.Resize,this.handleCancel),this.windowListeners.add(cd.DragStart,RC),this.windowListeners.add(cd.VisibilityChange,this.handleCancel),this.windowListeners.add(cd.ContextMenu,RC),this.documentListeners.add(cd.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(IC(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(kC(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:i}=this.props;i(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(cd.Click,EU,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(cd.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:l,options:{activationConstraint:a}}=o;if(!i)return;const c=(t=Dm(e))!=null?t:Nd,u=R0(i,c);if(!r&&a){if(kC(a)){if(a.tolerance!=null&&ly(u,a.tolerance))return this.handleCancel();if(ly(u,a.distance))return this.handleStart()}if(IC(a)&&ly(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}e.cancelable&&e.preventDefault(),l(c)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===so.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const RU={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class O2 extends L2{constructor(e){const{event:t}=e,r=U1(t.target);super(e,RU,r)}}O2.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const kU={move:{name:"mousemove"},end:{name:"mouseup"}};var Fm;(function(n){n[n.RightClick=2]="RightClick"})(Fm||(Fm={}));class IU extends L2{constructor(e){super(e,kU,U1(e.event.target))}}IU.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===Fm.RightClick?!1:(r==null||r({event:t}),!0)}}];const sy={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class MU extends L2{constructor(e){super(e,sy)}static setup(){return window.addEventListener(sy.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(sy.move.name,e)};function e(){}}}MU.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:i}=t;return i.length>1?!1:(r==null||r({event:t}),!0)}}];var Ap;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Ap||(Ap={}));var I0;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(I0||(I0={}));function LU(n){let{acceleration:e,activator:t=Ap.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:l=5,order:a=I0.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:p,delta:b,threshold:w}=n;const S=PU({delta:b,disabled:!o}),[_,A]=UW(),R=B.useRef({x:0,y:0}),L=B.useRef({x:0,y:0}),M=B.useMemo(()=>{switch(t){case Ap.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ap.DraggableRect:return i}},[t,i,c]),F=B.useRef(null),U=B.useCallback(()=>{const D=F.current;if(!D)return;const V=R.current.x*L.current.x,N=R.current.y*L.current.y;D.scrollBy(V,N)},[]),Z=B.useMemo(()=>a===I0.TreeOrder?[...u].reverse():u,[a,u]);B.useEffect(()=>{if(!o||!u.length||!M){A();return}for(const D of Z){if((r==null?void 0:r(D))===!1)continue;const V=u.indexOf(D),N=p[V];if(!N)continue;const{direction:K,speed:ue}=mU(D,N,M,e,w);for(const H of["x","y"])S[H][K[H]]||(ue[H]=0,K[H]=0);if(ue.x>0||ue.y>0){A(),F.current=D,_(U,l),R.current=ue,L.current=K;return}}R.current={x:0,y:0},L.current={x:0,y:0},A()},[e,U,r,A,o,l,JSON.stringify(M),JSON.stringify(S),_,u,Z,p,JSON.stringify(w)])}const OU={x:{[ic.Backward]:!1,[ic.Forward]:!1},y:{[ic.Backward]:!1,[ic.Forward]:!1}};function PU(n){let{delta:e,disabled:t}=n;const r=Pm(e);return tv(i=>{if(t||!r||!i)return OU;const o={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[ic.Backward]:i.x[ic.Backward]||o.x===-1,[ic.Forward]:i.x[ic.Forward]||o.x===1},y:{[ic.Backward]:i.y[ic.Backward]||o.y===-1,[ic.Forward]:i.y[ic.Forward]||o.y===1}}},[t,e,r])}function DU(n,e){const t=e!=null?n.get(e):void 0,r=t?t.node.current:null;return tv(i=>{var o;return e==null?null:(o=r??i)!=null?o:null},[r,e])}function NU(n,e){return B.useMemo(()=>n.reduce((t,r)=>{const{sensor:i}=r,o=i.activators.map(l=>({eventName:l.eventName,handler:e(l.handler,r)}));return[...t,...o]},[]),[n,e])}var F1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(F1||(F1={}));var Bm;(function(n){n.Optimized="optimized"})(Bm||(Bm={}));const MC=new Map;function FU(n,e){let{dragging:t,dependencies:r,config:i}=e;const[o,l]=B.useState(null),{frequency:a,measure:c,strategy:u}=i,p=B.useRef(n),b=R(),w=Gp(b),S=B.useCallback(function(L){L===void 0&&(L=[]),!w.current&&l(M=>M===null?L:M.concat(L.filter(F=>!M.includes(F))))},[w]),_=B.useRef(null),A=tv(L=>{if(b&&!t)return MC;if(!L||L===MC||p.current!==n||o!=null){const M=new Map;for(let F of n){if(!F)continue;if(o&&o.length>0&&!o.includes(F.id)&&F.rect.current){M.set(F.id,F.rect.current);continue}const U=F.node.current,Z=U?new I2(c(U),U):null;F.rect.current=Z,Z&&M.set(F.id,Z)}return M}return L},[n,o,t,b,c]);return B.useEffect(()=>{p.current=n},[n]),B.useEffect(()=>{b||S()},[t,b]),B.useEffect(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),B.useEffect(()=>{b||typeof a!="number"||_.current!==null||(_.current=setTimeout(()=>{S(),_.current=null},a))},[a,b,S,...r]),{droppableRects:A,measureDroppableContainers:S,measuringScheduled:o!=null};function R(){switch(u){case F1.Always:return!1;case F1.BeforeDragging:return t;default:return!t}}}function YS(n,e){return tv(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function BU(n,e){return YS(n,e)}function zU(n){let{callback:e,disabled:t}=n;const r=A2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Q0(n){let{callback:e,disabled:t}=n;const r=A2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function HU(n){return new I2(Y1(n),n)}function LC(n,e,t){e===void 0&&(e=HU);const[r,i]=B.useState(null);function o(){i(c=>{if(!n)return null;if(n.isConnected===!1){var u;return(u=c??t)!=null?u:null}const p=e(n);return JSON.stringify(c)===JSON.stringify(p)?c:p})}const l=zU({callback(c){if(n)for(const u of c){const{type:p,target:b}=u;if(p==="childList"&&b instanceof HTMLElement&&b.contains(n)){o();break}}}}),a=Q0({callback:o});return ih(()=>{o(),n?(a==null||a.observe(n),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),l==null||l.disconnect())},[n]),r}function WU(n){const e=YS(n);return DS(n,e)}const OC=[];function UU(n){const e=B.useRef(n),t=tv(r=>n?r&&r!==OC&&n&&e.current&&n.parentNode===e.current.parentNode?r:k2(n):OC,[n]);return B.useEffect(()=>{e.current=n},[n]),t}function YU(n){const[e,t]=B.useState(null),r=B.useRef(n),i=B.useCallback(o=>{const l=oy(o.target);l&&t(a=>a?(a.set(l,Nm(l)),new Map(a)):null)},[]);return B.useEffect(()=>{const o=r.current;if(n!==o){l(o);const a=n.map(c=>{const u=oy(c);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Nm(u)]):null}).filter(c=>c!=null);t(a.length?new Map(a):null),r.current=n}return()=>{l(n),l(o)};function l(a){a.forEach(c=>{const u=oy(c);u==null||u.removeEventListener("scroll",i)})}},[i,n]),B.useMemo(()=>n.length?e?Array.from(e.values()).reduce((o,l)=>T1(o,l),Nd):WS(n):Nd,[n,e])}function PC(n,e){e===void 0&&(e=[]);const t=B.useRef(null);return B.useEffect(()=>{t.current=null},e),B.useEffect(()=>{const r=n!==Nd;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?R0(n,t.current):Nd}function GU(n){B.useEffect(()=>{if(!J0)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function VU(n,e){return B.useMemo(()=>n.reduce((t,r)=>{let{eventName:i,handler:o}=r;return t[i]=l=>{o(l,e)},t},{}),[n,e])}function GS(n){return B.useMemo(()=>n?pU(n):null,[n])}const DC=[];function ZU(n,e){e===void 0&&(e=Y1);const[t]=n,r=GS(t?lf(t):null),[i,o]=B.useState(DC);function l(){o(()=>n.length?n.map(c=>zS(c)?r:new I2(e(c),c)):DC)}const a=Q0({callback:l});return ih(()=>{a==null||a.disconnect(),l(),n.forEach(c=>a==null?void 0:a.observe(c))},[n]),i}function XU(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return ev(e)?e:n}function KU(n){let{measure:e}=n;const[t,r]=B.useState(null),i=B.useCallback(u=>{for(const{target:p}of u)if(ev(p)){r(b=>{const w=e(p);return b?{...b,width:w.width,height:w.height}:w});break}},[e]),o=Q0({callback:i}),l=B.useCallback(u=>{const p=XU(u);o==null||o.disconnect(),p&&(o==null||o.observe(p)),r(p?e(p):null)},[e,o]),[a,c]=A0(l);return B.useMemo(()=>({nodeRef:a,rect:t,setRef:c}),[t,a,c])}const JU=[{sensor:O2,options:{}},{sensor:M2,options:{}}],QU={current:{}},s0={draggable:{measure:AC},droppable:{measure:AC,strategy:F1.WhileDragging,frequency:Bm.Optimized},dragOverlay:{measure:Y1}};class Rp extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const qU={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:k0},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:s0,measureDroppableContainers:k0,windowRect:null,measuringScheduled:!1},jU={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:k0,draggableNodes:new Map,over:null,measureDroppableContainers:k0},q0=B.createContext(jU),VS=B.createContext(qU);function $U(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rp}}}function eY(n,e){switch(e.type){case Na.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Na.DragMove:return n.draggable.active==null?n:{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}};case Na.DragEnd:case Na.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Na.RegisterDroppable:{const{element:t}=e,{id:r}=t,i=new Rp(n.droppable.containers);return i.set(r,t),{...n,droppable:{...n.droppable,containers:i}}}case Na.SetDroppableDisabled:{const{id:t,key:r,disabled:i}=e,o=n.droppable.containers.get(t);if(!o||r!==o.key)return n;const l=new Rp(n.droppable.containers);return l.set(t,{...o,disabled:i}),{...n,droppable:{...n.droppable,containers:l}}}case Na.UnregisterDroppable:{const{id:t,key:r}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Rp(n.droppable.containers);return o.delete(t),{...n,droppable:{...n.droppable,containers:o}}}default:return n}}function tY(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:i}=B.useContext(q0),o=Pm(r),l=Pm(t==null?void 0:t.id);return B.useEffect(()=>{if(!e&&!r&&o&&l!=null){if(!R2(o)||document.activeElement===o.target)return;const a=i.get(l);if(!a)return;const{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const p of[c.current,u.current]){if(!p)continue;const b=VW(p);if(b){b.focus();break}}})}},[r,e,i,l,o]),null}function nY(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((i,o)=>o({transform:i,...r}),t):t}function rY(n){return B.useMemo(()=>({draggable:{...s0.draggable,...n==null?void 0:n.draggable},droppable:{...s0.droppable,...n==null?void 0:n.droppable},dragOverlay:{...s0.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function iY(n){let{activeNode:e,measure:t,initialRect:r,config:i=!0}=n;const o=B.useRef(!1),{x:l,y:a}=typeof i=="boolean"?{x:i,y:i}:i;ih(()=>{if(!l&&!a||!e){o.current=!1;return}if(o.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const p=t(u),b=DS(p,r);if(l||(b.x=0),a||(b.y=0),o.current=!0,Math.abs(b.x)>0||Math.abs(b.y)>0){const w=NS(u);w&&w.scrollBy({top:b.y,left:b.x})}},[e,l,a,r,t])}const ZS=B.createContext({...Nd,scaleX:1,scaleY:1});var tg;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(tg||(tg={}));const oY=B.memo(function(e){var t,r,i,o;let{id:l,accessibility:a,autoScroll:c=!0,children:u,sensors:p=JU,collisionDetection:b=aU,measuring:w,modifiers:S,..._}=e;const A=B.useReducer(eY,void 0,$U),[R,L]=A,[M,F]=qW(),[U,Z]=B.useState(tg.Uninitialized),D=U===tg.Initialized,{draggable:{active:V,nodes:N,translate:K},droppable:{containers:ue}}=R,H=V!=null?N.get(V):null,te=B.useRef({initial:null,translated:null}),ie=B.useMemo(()=>{var sn;return V!=null?{id:V,data:(sn=H==null?void 0:H.data)!=null?sn:QU,rect:te}:null},[V,H]),le=B.useRef(null),[ee,X]=B.useState(null),[re,oe]=B.useState(null),ge=Gp(_,Object.values(_)),se=nv("DndDescribedBy",l),q=B.useMemo(()=>ue.getEnabled(),[ue]),pe=rY(w),{droppableRects:Se,measureDroppableContainers:Me,measuringScheduled:be}=FU(q,{dragging:D,dependencies:[K.x,K.y],config:pe.droppable}),ke=DU(N,V),Le=B.useMemo(()=>re?Dm(re):null,[re]),Re=Ot(),Pe=BU(ke,pe.draggable.measure);iY({activeNode:V!=null?N.get(V):null,config:Re.layoutShiftCompensation,initialRect:Pe,measure:pe.draggable.measure});const Ie=LC(ke,pe.draggable.measure,Pe),Ge=LC(ke?ke.parentElement:null),Ue=B.useRef({activatorEvent:null,active:null,activeNode:ke,collisionRect:null,collisions:null,droppableRects:Se,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:ue,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ze=ue.getNodeFor((t=Ue.current.over)==null?void 0:t.id),$e=KU({measure:pe.dragOverlay.measure}),tt=(r=$e.nodeRef.current)!=null?r:ke,Xe=D?(i=$e.rect)!=null?i:Ie:null,Ye=!!($e.nodeRef.current&&$e.rect),yt=WU(Ye?null:Ie),at=GS(tt?lf(tt):null),ft=UU(D?ze??ke:null),_t=ZU(ft),bt=nY(S,{transform:{x:K.x-yt.x,y:K.y-yt.y,scaleX:1,scaleY:1},activatorEvent:re,active:ie,activeNodeRect:Ie,containerNodeRect:Ge,draggingNodeRect:Xe,over:Ue.current.over,overlayNodeRect:$e.rect,scrollableAncestors:ft,scrollableAncestorRects:_t,windowRect:at}),Kt=Le?T1(Le,K):null,ln=YU(ft),Gt=PC(ln),fn=PC(ln,[Ie]),qt=T1(bt,Gt),Tn=Xe?fU(Xe,bt):null,$t=ie&&Tn?b({active:ie,collisionRect:Tn,droppableRects:Se,droppableContainers:q,pointerCoordinates:Kt}):null,cn=oU($t,"id"),[Ht,Jt]=B.useState(null),ht=Ye?bt:T1(bt,fn),Rt=cU(ht,(o=Ht==null?void 0:Ht.rect)!=null?o:null,Ie),Pt=B.useRef(null),we=B.useCallback((sn,hn)=>{let{sensor:vn,options:nn}=hn;if(le.current==null)return;const en=N.get(le.current);if(!en)return;const Zn=sn.nativeEvent,Wn=new vn({active:le.current,activeNode:en,event:Zn,options:nn,context:Ue,onAbort(kn){if(!N.get(kn))return;const{onDragAbort:Ft}=ge.current,Xt={id:kn};Ft==null||Ft(Xt),M({type:"onDragAbort",event:Xt})},onPending(kn,ar,Ft,Xt){if(!N.get(kn))return;const{onDragPending:yn}=ge.current,Un={id:kn,constraint:ar,initialCoordinates:Ft,offset:Xt};yn==null||yn(Un),M({type:"onDragPending",event:Un})},onStart(kn){const ar=le.current;if(ar==null)return;const Ft=N.get(ar);if(!Ft)return;const{onDragStart:Xt}=ge.current,Nt={activatorEvent:Zn,active:{id:ar,data:Ft.data,rect:te}};Fa.unstable_batchedUpdates(()=>{Xt==null||Xt(Nt),Z(tg.Initializing),L({type:Na.DragStart,initialCoordinates:kn,active:ar}),M({type:"onDragStart",event:Nt}),X(Pt.current),oe(Zn)})},onMove(kn){L({type:Na.DragMove,coordinates:kn})},onEnd:Mn(Na.DragEnd),onCancel:Mn(Na.DragCancel)});Pt.current=Wn;function Mn(kn){return async function(){const{active:Ft,collisions:Xt,over:Nt,scrollAdjustedTranslate:yn}=Ue.current;let Un=null;if(Ft&&yn){const{cancelDrop:br}=ge.current;Un={activatorEvent:Zn,active:Ft,collisions:Xt,delta:yn,over:Nt},kn===Na.DragEnd&&typeof br=="function"&&await Promise.resolve(br(Un))&&(kn=Na.DragCancel)}le.current=null,Fa.unstable_batchedUpdates(()=>{L({type:kn}),Z(tg.Uninitialized),Jt(null),X(null),oe(null),Pt.current=null;const br=kn===Na.DragEnd?"onDragEnd":"onDragCancel";if(Un){const Rn=ge.current[br];Rn==null||Rn(Un),M({type:br,event:Un})}})}}},[N]),Ce=B.useCallback((sn,hn)=>(vn,nn)=>{const en=vn.nativeEvent,Zn=N.get(nn);if(le.current!==null||!Zn||en.dndKit||en.defaultPrevented)return;const Wn={active:Zn};sn(vn,hn.options,Wn)===!0&&(en.dndKit={capturedBy:hn.sensor},le.current=nn,we(vn,hn))},[N,we]),ot=NU(p,Ce);GU(p),ih(()=>{Ie&&U===tg.Initializing&&Z(tg.Initialized)},[Ie,U]),B.useEffect(()=>{const{onDragMove:sn}=ge.current,{active:hn,activatorEvent:vn,collisions:nn,over:en}=Ue.current;if(!hn||!vn)return;const Zn={active:hn,activatorEvent:vn,collisions:nn,delta:{x:qt.x,y:qt.y},over:en};Fa.unstable_batchedUpdates(()=>{sn==null||sn(Zn),M({type:"onDragMove",event:Zn})})},[qt.x,qt.y]),B.useEffect(()=>{const{active:sn,activatorEvent:hn,collisions:vn,droppableContainers:nn,scrollAdjustedTranslate:en}=Ue.current;if(!sn||le.current==null||!hn||!en)return;const{onDragOver:Zn}=ge.current,Wn=nn.get(cn),Mn=Wn&&Wn.rect.current?{id:Wn.id,rect:Wn.rect.current,data:Wn.data,disabled:Wn.disabled}:null,kn={active:sn,activatorEvent:hn,collisions:vn,delta:{x:en.x,y:en.y},over:Mn};Fa.unstable_batchedUpdates(()=>{Jt(Mn),Zn==null||Zn(kn),M({type:"onDragOver",event:kn})})},[cn]),ih(()=>{Ue.current={activatorEvent:re,active:ie,activeNode:ke,collisionRect:Tn,collisions:$t,droppableRects:Se,draggableNodes:N,draggingNode:tt,draggingNodeRect:Xe,droppableContainers:ue,over:Ht,scrollableAncestors:ft,scrollAdjustedTranslate:qt},te.current={initial:Xe,translated:Tn}},[ie,ke,$t,Tn,N,tt,Xe,Se,ue,Ht,ft,qt]),LU({...Re,delta:K,draggingRect:Tn,pointerCoordinates:Kt,scrollableAncestors:ft,scrollableAncestorRects:_t});const mt=B.useMemo(()=>({active:ie,activeNode:ke,activeNodeRect:Ie,activatorEvent:re,collisions:$t,containerNodeRect:Ge,dragOverlay:$e,draggableNodes:N,droppableContainers:ue,droppableRects:Se,over:Ht,measureDroppableContainers:Me,scrollableAncestors:ft,scrollableAncestorRects:_t,measuringConfiguration:pe,measuringScheduled:be,windowRect:at}),[ie,ke,Ie,re,$t,Ge,$e,N,ue,Se,Ht,Me,ft,_t,pe,be,at]),Et=B.useMemo(()=>({activatorEvent:re,activators:ot,active:ie,activeNodeRect:Ie,ariaDescribedById:{draggable:se},dispatch:L,draggableNodes:N,over:Ht,measureDroppableContainers:Me}),[re,ot,ie,Ie,L,se,N,Ht,Me]);return B.createElement(PS.Provider,{value:F},B.createElement(q0.Provider,{value:Et},B.createElement(VS.Provider,{value:mt},B.createElement(ZS.Provider,{value:Rt},u)),B.createElement(tY,{disabled:(a==null?void 0:a.restoreFocus)===!1})),B.createElement(eU,{...a,hiddenTextDescribedById:se}));function Ot(){const sn=(ee==null?void 0:ee.autoScrollEnabled)===!1,hn=typeof c=="object"?c.enabled===!1:c===!1,vn=D&&!sn&&!hn;return typeof c=="object"?{...c,enabled:vn}:{enabled:vn}}}),lY=B.createContext(null),NC="button",sY="Draggable";function aY(n){let{id:e,data:t,disabled:r=!1,attributes:i}=n;const o=nv(sY),{activators:l,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:p,draggableNodes:b,over:w}=B.useContext(q0),{role:S=NC,roleDescription:_="draggable",tabIndex:A=0}=i??{},R=(c==null?void 0:c.id)===e,L=B.useContext(R?ZS:lY),[M,F]=A0(),[U,Z]=A0(),D=VU(l,e),V=Gp(t);ih(()=>(b.set(e,{id:e,key:o,node:M,activatorNode:U,data:V}),()=>{const K=b.get(e);K&&K.key===o&&b.delete(e)}),[b,e]);const N=B.useMemo(()=>({role:S,tabIndex:A,"aria-disabled":r,"aria-pressed":R&&S===NC?!0:void 0,"aria-roledescription":_,"aria-describedby":p.draggable}),[r,S,A,R,_,p.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:N,isDragging:R,listeners:r?void 0:D,node:M,over:w,setNodeRef:F,setActivatorNodeRef:Z,transform:L}}function cY(){return B.useContext(VS)}const uY="Droppable",fY={timeout:25};function dY(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:i}=n;const o=nv(uY),{active:l,dispatch:a,over:c,measureDroppableContainers:u}=B.useContext(q0),p=B.useRef({disabled:t}),b=B.useRef(!1),w=B.useRef(null),S=B.useRef(null),{disabled:_,updateMeasurementsFor:A,timeout:R}={...fY,...i},L=Gp(A??r),M=B.useCallback(()=>{if(!b.current){b.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{u(Array.isArray(L.current)?L.current:[L.current]),S.current=null},R)},[R]),F=Q0({callback:M,disabled:_||!l}),U=B.useCallback((N,K)=>{F&&(K&&(F.unobserve(K),b.current=!1),N&&F.observe(N))},[F]),[Z,D]=A0(U),V=Gp(e);return B.useEffect(()=>{!F||!Z.current||(F.disconnect(),b.current=!1,F.observe(Z.current))},[Z,F]),B.useEffect(()=>(a({type:Na.RegisterDroppable,element:{id:r,key:o,disabled:t,node:Z,rect:w,data:V}}),()=>a({type:Na.UnregisterDroppable,key:o,id:r})),[r]),B.useEffect(()=>{t!==p.current.disabled&&(a({type:Na.SetDroppableDisabled,id:r,key:o,disabled:t}),p.current.disabled=t)},[r,o,t,a]),{active:l,rect:w,isOver:(c==null?void 0:c.id)===r,node:Z,over:c,setNodeRef:D}}function XS(n,e,t){const r={...n};return e.top+n.y<=t.top?r.y=t.top-e.top:e.bottom+n.y>=t.top+t.height&&(r.y=t.top+t.height-e.bottom),e.left+n.x<=t.left?r.x=t.left-e.left:e.right+n.x>=t.left+t.width&&(r.x=t.left+t.width-e.right),r}const hY=n=>{let{containerNodeRect:e,draggingNodeRect:t,transform:r}=n;return!t||!e?r:XS(r,t,e)},gY=n=>{let{transform:e,draggingNodeRect:t,windowRect:r}=n;return!t||!r?e:XS(e,t,r)};function M0(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function pY(n,e){return n.reduce((t,r,i)=>{const o=e.get(r);return o&&(t[i]=o),t},Array(n.length))}function Uv(n){return n!==null&&n>=0}function vY(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function bY(n){return typeof n=="boolean"?{draggable:n,droppable:n}:n}const KS=n=>{let{rects:e,activeIndex:t,overIndex:r,index:i}=n;const o=M0(e,r,t),l=e[i],a=o[i];return!a||!l?null:{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}},Yv={scaleX:1,scaleY:1},yY=n=>{var e;let{activeIndex:t,activeNodeRect:r,index:i,rects:o,overIndex:l}=n;const a=(e=o[t])!=null?e:r;if(!a)return null;if(i===t){const u=o[l];return u?{x:0,y:t<l?u.top+u.height-(a.top+a.height):u.top-a.top,...Yv}:null}const c=mY(o,i,t);return i>t&&i<=l?{x:0,y:-a.height-c,...Yv}:i<t&&i>=l?{x:0,y:a.height+c,...Yv}:{x:0,y:0,...Yv}};function mY(n,e,t){const r=n[e],i=n[e-1],o=n[e+1];return r?t<e?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const JS="Sortable",QS=B.createContext({activeIndex:-1,containerId:JS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:KS,disabled:{draggable:!1,droppable:!1}});function xY(n){let{children:e,id:t,items:r,strategy:i=KS,disabled:o=!1}=n;const{active:l,dragOverlay:a,droppableRects:c,over:u,measureDroppableContainers:p}=cY(),b=nv(JS,t),w=a.rect!==null,S=B.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),_=l!=null,A=l?S.indexOf(l.id):-1,R=u?S.indexOf(u.id):-1,L=B.useRef(S),M=!vY(S,L.current),F=R!==-1&&A===-1||M,U=bY(o);ih(()=>{M&&_&&p(S)},[M,S,_,p]),B.useEffect(()=>{L.current=S},[S]);const Z=B.useMemo(()=>({activeIndex:A,containerId:b,disabled:U,disableTransforms:F,items:S,overIndex:R,useDragOverlay:w,sortedRects:pY(S,c),strategy:i}),[A,b,U.draggable,U.droppable,F,S,R,c,w,i]);return B.createElement(QS.Provider,{value:Z},e)}const wY=n=>{let{id:e,items:t,activeIndex:r,overIndex:i}=n;return M0(t,r,i).indexOf(e)},CY=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:i,items:o,newIndex:l,previousItems:a,previousContainerId:c,transition:u}=n;return!u||!r||a!==o&&i===l?!1:t?!0:l!==i&&e===c},_Y={duration:200,easing:"ease"},qS="transform",SY=Vp.Transition.toString({property:qS,duration:0,easing:"linear"}),TY={roleDescription:"sortable"};function EY(n){let{disabled:e,index:t,node:r,rect:i}=n;const[o,l]=B.useState(null),a=B.useRef(t);return ih(()=>{if(!e&&t!==a.current&&r.current){const c=i.current;if(c){const u=Y1(r.current,{ignoreTransform:!0}),p={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(p.x||p.y)&&l(p)}}t!==a.current&&(a.current=t)},[e,t,r,i]),B.useEffect(()=>{o&&l(null)},[o]),o}function AY(n){let{animateLayoutChanges:e=CY,attributes:t,disabled:r,data:i,getNewIndex:o=wY,id:l,strategy:a,resizeObserverConfig:c,transition:u=_Y}=n;const{items:p,containerId:b,activeIndex:w,disabled:S,disableTransforms:_,sortedRects:A,overIndex:R,useDragOverlay:L,strategy:M}=B.useContext(QS),F=RY(r,S),U=p.indexOf(l),Z=B.useMemo(()=>({sortable:{containerId:b,index:U,items:p},...i}),[b,i,U,p]),D=B.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:V,node:N,isOver:K,setNodeRef:ue}=dY({id:l,data:Z,disabled:F.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...c}}),{active:H,activatorEvent:te,activeNodeRect:ie,attributes:le,setNodeRef:ee,listeners:X,isDragging:re,over:oe,setActivatorNodeRef:ge,transform:se}=aY({id:l,data:Z,attributes:{...TY,...t},disabled:F.draggable}),q=WW(ue,ee),pe=!!H,Se=pe&&!_&&Uv(w)&&Uv(R),Me=!L&&re,be=Me&&Se?se:null,Le=Se?be??(a??M)({rects:A,activeNodeRect:ie,activeIndex:w,overIndex:R,index:U}):null,Re=Uv(w)&&Uv(R)?o({id:l,items:p,activeIndex:w,overIndex:R}):U,Pe=H==null?void 0:H.id,Ie=B.useRef({activeId:Pe,items:p,newIndex:Re,containerId:b}),Ge=p!==Ie.current.items,Ue=e({active:H,containerId:b,isDragging:re,isSorting:pe,id:l,index:U,items:p,newIndex:Ie.current.newIndex,previousItems:Ie.current.items,previousContainerId:Ie.current.containerId,transition:u,wasDragging:Ie.current.activeId!=null}),ze=EY({disabled:!Ue,index:U,node:N,rect:V});return B.useEffect(()=>{pe&&Ie.current.newIndex!==Re&&(Ie.current.newIndex=Re),b!==Ie.current.containerId&&(Ie.current.containerId=b),p!==Ie.current.items&&(Ie.current.items=p)},[pe,Re,b,p]),B.useEffect(()=>{if(Pe===Ie.current.activeId)return;if(Pe!=null&&Ie.current.activeId==null){Ie.current.activeId=Pe;return}const tt=setTimeout(()=>{Ie.current.activeId=Pe},50);return()=>clearTimeout(tt)},[Pe]),{active:H,activeIndex:w,attributes:le,data:Z,rect:V,index:U,newIndex:Re,items:p,isOver:K,isSorting:pe,isDragging:re,listeners:X,node:N,overIndex:R,over:oe,setNodeRef:q,setActivatorNodeRef:ge,setDroppableNodeRef:ue,setDraggableNodeRef:ee,transform:ze??Le,transition:$e()};function $e(){if(ze||Ge&&Ie.current.newIndex===U)return SY;if(!(Me&&!R2(te)||!u)&&(pe||Ue))return Vp.Transition.toString({...u,property:qS})}}function RY(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}so.Down,so.Right,so.Up,so.Left;function L0(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(e(t))return t;if(!t.children||t.children.length<1)continue;const r=L0(t.children,e);if(r)return r}}function rv(n,e){Array.isArray(n)||(n=[n]);for(const t of n)e(t),!(!t.children||t.children.length<1)&&rv(t.children,e)}function jS(n,e){Array.isArray(n)||(n=[n]);const t=[];return rv(n,(r,i)=>t.push(e(r,i))),t}function $S(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!$S(t.children,e))return!1}return!0}function kY(n,e){Array.isArray(n)||(n=[n]);const t=[];return rv(n,(r,i)=>{e(r,i)&&t.push(r)}),t}function IY(n){Array.isArray(n)||(n=[n]);let e=0;return rv(n,()=>e++),e}function MY(n,e,t,r){if(r(e,t))return null;Array.isArray(n)||(n=[n]);const i=L0(n,l=>{var a;return(a=l.children)==null?void 0:a.some(c=>r(c,e))}),o=L0(n,l=>{var a;return(a=l.children)==null?void 0:a.some(c=>r(c,t))});if(i===void 0&&o===void 0){const l=n.findIndex(c=>r(c,e)),a=n.findIndex(c=>r(c,t));return n.splice(l,1),n.splice(a,0,e),[...n]}else if(i!==void 0&&o!==void 0&&r(i,o)&&i.children){const l=i.children.findIndex(c=>r(c,e)),a=i.children.findIndex(c=>r(c,t));return l===void 0||a===void 0?null:(i.children.splice(l,1),i.children.splice(a,0,e),i.children=[...i.children],[...n])}return null}function LY(n,e,t){const r=[],i=[...e];for(;i.length>0;){const o=i.shift();if(o&&!r.find(l=>t(l,o))&&(r.push(o),!(!o.children||o.children.length<1)))for(const l of o.children)i.push(l)}return r}function OY(n,e,t){Array.isArray(n)||(n=[n]);const r=jS(n,l=>l),i=[],o=[...e];for(;o.length>0;){const l=o.shift();if(!l||i.find(c=>t(c,l)))continue;i.push(l);const a=r.find(c=>{var u;return(u=c.children)==null?void 0:u.some(p=>t(p,l))});a&&o.push(a)}return i}const ng={find:L0,forEach:rv,map:jS,every:$S,filter:kY,length:IY,replace:MY,descendants:LY,ancestors:OY},PY="_AWrap_1n0ow_1",DY="_AContainer_1n0ow_10",NY="_ATree_1n0ow_18",FY="_ATreeBody_1n0ow_30",BY="_TreeTopAddon_1n0ow_36",zY="_CoverBorder_1n0ow_46",HY="_InsertBorder_1n0ow_55",WY="_ATreeHeader_1n0ow_86",UY="_ATreeBodyHeader_1n0ow_92",YY="_ATreeBodyHeaderResources_1n0ow_102",GY="_ATreeItem_1n0ow_108",VY="_IsSelectUsed_1n0ow_124",ZY="_IsSelected_1n0ow_127",XY="_IsSearchSelected_1n0ow_132",KY="_IsHovered_1n0ow_143",JY="_CheckBox_1n0ow_147",QY="_Indents_1n0ow_159",qY="_ExpandIcon_1n0ow_166",jY="_Content_1n0ow_179",$Y="_RightSticky_1n0ow_188",eG="_SearchInputWrap_1n0ow_197",tG="_SearchInput_1n0ow_197",nG="_RightAddon_1n0ow_209",rG="_RightAddonIcon_1n0ow_220",iG="_Loader_1n0ow_227",oG="_IsChildOfDragSource_1n0ow_232",bo={AWrap:PY,AContainer:DY,ATree:NY,ATreeBody:FY,TreeTopAddon:BY,CoverBorder:zY,InsertBorder:HY,ATreeHeader:WY,ATreeBodyHeader:UY,ATreeBodyHeaderResources:YY,ATreeItem:GY,IsSelectUsed:VY,IsSelected:ZY,IsSearchSelected:XY,IsHovered:KY,CheckBox:JY,Indents:QY,ExpandIcon:qY,Content:jY,RightSticky:$Y,SearchInputWrap:eG,SearchInput:tG,RightAddon:nG,RightAddonIcon:rG,Loader:iG,IsChildOfDragSource:oG},lG=24,sG=8,aG=12,cG=n=>{const{isEqual:e,item:t,itemId:r,selectDisabled:i,selectUnused:o,isParentDisabled:l,indents:a,extIndents:c,useExpand:u,useSelect:p,useSearch:b,showCheckbox:w,icons:S,isSelectMulti:_,isDraggable:A,isParentCheckHovered:R,hoverdItem:L,onMouseOver:M,onMouseLeave:F,ContentRenderer:U,TreeItemRenderer:Z,RightStickyAddon:D,resources:V,containerRef:N,TreeItemStyle:K,TreeItemClassName:ue,searchItemStyle:H,searchItemClassName:te,height:ie,isDragSrcItem:le,isChildOfDragItem:ee,getItemId:X,treeItemTooltip:re,treeItemTooltipDelay:oe,treeItemTooltipDirection:ge,treeItemTooltipDistance:se}=n,{children:q}=B.useMemo(()=>t,[t]),[pe,Se]=B.useMemo(()=>u,[u]),[Me,be]=B.useMemo(()=>p,[p]),[ke,Le]=B.useMemo(()=>b,[b]),Re=B.useMemo(()=>o?o(t):!1,[o,t]),Pe=B.useMemo(()=>!i||l?l:i(t),[i,l,t]),Ie=B.useMemo(()=>pe.some(Ft=>e(Ft,t)),[pe,e,t]),Ge=B.useMemo(()=>!q||q.length<1?"noChild":Ie?"expanded":"collapsed",[q,Ie]),Ue=B.useMemo(()=>Or.getContent(S,n),[S,n]),ze=B.useCallback((Ft,Xt)=>Ue&&Ft in Ue&&typeof Ue[Ft]=="number"?Ue[Ft]:Xt,[Ue]),$e=B.useMemo(()=>ze("iconWidth",lG),[ze]),tt=B.useMemo(()=>ze("iconGap",sG),[ze]),Xe=B.useMemo(()=>ze("iconPadding",aG),[ze]),Ye=B.useMemo(()=>{if(!Ue)return null;const Ft=Ue[Ge];if(!Ft)return null;if(Gm.includes(Ft))return O.jsx(Eo,{icon:Ft,style:{width:$e,height:$e}});if(B.isValidElement(Ft)){const Xt=Ft.props;return B.cloneElement(Ft,{style:{width:$e,height:$e,...Xt==null?void 0:Xt.style}})}return Ft},[Ue,Ge,$e]),yt=B.useCallback(Ft=>{!Se||Ge==="noChild"||(Se(Ie?pe.filter(Xt=>!e(Xt,t)):[...pe,t]),Ft.stopPropagation())},[Se,pe,Ie,t,e,Ge]),at=B.useMemo(()=>Me.some(Ft=>e(Ft,t)),[Me,e,t]),ft=B.useCallback(()=>{!be||Pe||(be(_?at?Me.filter(Ft=>!e(Ft,t)):[...Me,t]:[t]),ke&&Le&&ke.items.some(Ft=>e(Ft,t))&&Le({...ke,item:t}))},[_,Pe,at,ke,Le,be,e,Me,t]),_t=B.useMemo(()=>ke==null?void 0:ke.items.some(Ft=>e(Ft,t)),[ke,e,t]),bt=B.useMemo(()=>_t&&(ke==null?void 0:ke.item)&&e(ke.item,t),[_t,ke,e,t]),Kt=B.useRef(null),ln=B.useRef(null),{attributes:Gt,listeners:fn,setNodeRef:qt,transform:Tn,transition:$t,isDragging:cn}=AY({id:r||`item-${JSON.stringify(t)}`,disabled:!A||!!l||!r}),Ht=B.useMemo(()=>ee?ee(t):!1,[ee,t]),Jt=B.useMemo(()=>{const Ft=Tn?{transform:Vp.Transform.toString(Tn),transition:$t,opacity:cn?.5:1,zIndex:cn?1:"auto"}:{};return le||Ht?{...Ft,opacity:.5,zIndex:10}:Ft},[Tn,$t,cn,le,Ht]);B.useEffect(()=>{r&&qt&&ln.current&&qt(ln.current)},[r,qt]),B.useEffect(()=>{setTimeout(()=>{if(bt&&Kt.current&&N.current){const{top:Ft,bottom:Xt}=Kt.current.getBoundingClientRect(),{top:Nt,bottom:yn}=N.current.getBoundingClientRect();(Ft<Nt||Xt>yn)&&Kt.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[N,bt]);const[ht,Rt]=B.useState(!1),Pt=B.useCallback(()=>!Pe&&Rt(!0),[Pe]),we=B.useCallback(()=>!Pe&&Rt(!1),[Pe]),Ce=B.useMemo(()=>ng.map(t,Ft=>Ft).filter(Ft=>!(i!=null&&i(Ft))&&!(o!=null&&o(Ft))),[i,o,t]),ot=B.useMemo(()=>!w||!_?!1:at&&Ce.some(Ft=>Me.some(Xt=>e(Ft,Xt)))&&Ce.some(Ft=>!Me.some(Xt=>e(Ft,Xt))),[w,_,at,Ce,e,Me]),mt=B.useMemo(()=>w?_?Ce.every(Ft=>Me.some(Xt=>e(Ft,Xt))):Me.some(Ft=>e(Ft,t)):!1,[w,_,Ce,t,e,Me]),Et=B.useCallback(()=>{if(!(!be||Pe))if(_)if(at){const Ft=Me.filter(Xt=>!(o!=null&&o(Xt))&&!(i!=null&&i(Xt))&&Ce.some(Nt=>e(Nt,Xt)));Ft.length>0&&be(Me.filter(Xt=>!Ft.some(Nt=>e(Xt,Nt))))}else{const Ft=Ce.filter(Xt=>!(o!=null&&o(Xt))&&!(i!=null&&i(Xt))&&!Me.some(Nt=>e(Nt,Xt)));Ft.length>0&&be([...Me,...Ft])}else be([t])},[Pe,i,o,_,be,e,at,Me,Ce,t]),Ot=B.useCallback(Ft=>{Pe||Et(),Ft.stopPropagation()},[Pe,Et]),sn=B.useMemo(()=>{if(!w||!_||Pe)return"";if(at){const Xt=Me.filter(Nt=>!(o!=null&&o(Nt))&&!(i!=null&&i(Nt))&&Ce.some(yn=>e(yn,Nt)));if(Xt.length>0)return V["deselect n"](Xt.length)}const Ft=Ce.filter(Xt=>!(o!=null&&o(Xt))&&!(i!=null&&i(Xt))&&!Me.some(Nt=>e(Nt,Xt)));return V["select n"](Ft.length)},[i,o,V,Pe,w,_,at,Ce,e,Me]),hn=B.useMemo(()=>Or.getContent(D,n),[D,n]),vn=B.useMemo(()=>Or.getContent(K,n),[n,K]),nn=B.useMemo(()=>Or.getContent(ue,n),[n,ue]),en=B.useMemo(()=>Or.getContent(te,n),[n,te]),Zn=B.useMemo(()=>Or.getContent(H,n),[n,H]),Wn=B.useMemo(()=>Or.getContent(re,n),[n,re]),Mn=B.useMemo(()=>Or.getContent(oe,n),[n,oe]),kn=B.useMemo(()=>Or.getContent(ge,n),[n,ge]),ar=B.useMemo(()=>Or.getContent(se,n),[n,se]);return O.jsxs(B.Fragment,{children:[O.jsxs(Ki,{abaseRef:ln,isDisabled:Pe,className:St.clsx(bo.ATreeItem,at&&bo.IsSelected,!Pe&&(ht||R)&&bo.IsHovered,_t&&bo.IsSearched,bt&&(en||bo.IsSearchSelected),!Re&&bo.IsSelectUsed,Ht&&bo.IsChildOfDragSource,"NoSelect",nn),style:{...vn,...bt&&Zn?Zn:{},"--ATreeItem_height":`${ie}px`,...Jt||{}},onClick:ft,onMouseLeave:Ft=>F==null?void 0:F(Ft,t),onMouseOver:Ft=>M==null?void 0:M(Ft,t),...A&&!Pe&&Gt?Gt:{},...A&&!Pe&&fn?fn:{},tooltip:Wn,tooltipDelay:Mn,tooltipDirection:kn,tooltipDistance:ar,children:[w&&O.jsx(A1,{className:bo.CheckBox,isDisabled:Pe,isIndeterminate:ot,tooltip:sn,useCheck:[+mt,Et],style:{visibility:Pe||Re?"hidden":"visible",zIndex:Pe||Re?0:2},onClick:Ot,onMouseOut:we,onMouseOver:Pt}),O.jsx("div",{className:bo.Indents,style:{paddingLeft:w?0:Ue!=null&&Ue.noChild?Xe:0},children:a.map((Ft,Xt)=>{const Nt=Xt===a.length-1;return O.jsx(E_,{value:Ft,map:{Collapsed:c?c({iconWidth:$e}).collapsed:O.jsx(fG,{iconWidth:$e}),Expanded:c?c({iconWidth:$e,isLast:Nt}).expanded:O.jsx(uG,{iconWidth:$e,isLast:Nt}),IsLast:c?c({iconWidth:$e}).isLast:O.jsx(dG,{iconWidth:$e})}},Xt)})}),Ye&&O.jsx("div",{className:bo.ExpandIcon,style:{"--ATree_icon-width":`${$e}px`,"--ATree_icon-gap":`${tt}px`},onClick:yt,children:Ye}),O.jsx("div",{className:St.clsx(bo.Content,"NoSelect"),children:O.jsx(U,{containerRef:N,ContentRenderer:U,extIndents:c,height:ie,hoverdItem:L,icons:S,indents:a,isDraggable:A,isEqual:e,isParentCheckHovered:_&&(ht||R),isSelectMulti:_,item:t,itemId:r,resources:V,RightStickyAddon:D,searchItemClassName:en,searchItemStyle:H,showCheckbox:w,TreeItemClassName:ue,TreeItemRenderer:Z,TreeItemStyle:K,treeItemTooltip:re,treeItemTooltipDelay:oe,treeItemTooltipDirection:ge,treeItemTooltipDistance:se,useExpand:u,useSearch:b,useSelect:p,onMouseLeave:F,onMouseOver:M})}),hn&&O.jsx("div",{className:bo.RightSticky,children:hn})]}),Ie&&(q==null?void 0:q.map((Ft,Xt)=>O.jsx(Z,{containerRef:N,ContentRenderer:U,extIndents:c,height:ie,hoverdItem:L,icons:S,isChildOfDragItem:ee,isDraggable:A,isDragSrcItem:le,isEqual:e,isParentCheckHovered:_&&(ht||R),isSelectMulti:_,item:Ft,itemId:X?`${X(t)}-child-${Xt}`:r?`${r}-child-${Xt}`:void 0,resources:V,RightStickyAddon:D,searchItemClassName:en,searchItemStyle:H,selectDisabled:i,selectUnused:o,showCheckbox:w,TreeItemClassName:ue,TreeItemRenderer:Z,TreeItemStyle:K,treeItemTooltip:re,treeItemTooltipDelay:oe,treeItemTooltipDirection:ge,treeItemTooltipDistance:se,useExpand:u,useSearch:b,useSelect:p,indents:[...a.map(Nt=>Nt==="IsLast"?"Collapsed":Nt),Xt===q.length-1?"IsLast":"Expanded"],onMouseLeave:F,onMouseOver:M},X?X(Ft):Xt)))]})},uG=n=>{const e=gn.c(9),{iconWidth:t,isLast:r}=n,i=t/8*3,o=t/2,l=t/8;let a;e[0]!==i||e[1]!==o||e[2]!==l?(a={width:i,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:o,marginRight:l,boxSizing:"border-box",transition:"border-color var(--Transition)"},e[0]=i,e[1]=o,e[2]=l,e[3]=a):a=e[3];let c;e[4]!==r?(c=r&&O.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}}),e[4]=r,e[5]=c):c=e[5];let u;return e[6]!==a||e[7]!==c?(u=O.jsx("div",{style:a,children:c}),e[6]=a,e[7]=c,e[8]=u):u=e[8],u},fG=n=>{const e=gn.c(2),{iconWidth:t}=n;let r;return e[0]!==t?(r=O.jsx("div",{style:{width:t,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),e[0]=t,e[1]=r):r=e[1],r},dG=n=>{const e=gn.c(4),{iconWidth:t}=n,r=t/8*3,i=t/2,o=t/8;let l;return e[0]!==r||e[1]!==i||e[2]!==o?(l=O.jsx("div",{style:{width:r,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:i,marginRight:o,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),e[0]=r,e[1]=i,e[2]=o,e[3]=l):l=e[3],l},hG=n=>{const e=gn.c(26),{isEqual:t,searchResult:r,initSearch:i,searchUp:o,searchDown:l,searchEnter:a,isDisabled:c,isLoading:u,resources:p,maxLength:b,autoFocus:w}=n;let S;e[0]!==l||e[1]!==a||e[2]!==o?(S=K=>{K.key==="Enter"?a():K.key==="ArrowDown"?l():K.key==="ArrowUp"&&o(),K.preventDefault(),K.stopPropagation()},e[0]=l,e[1]=a,e[2]=o,e[3]=S):S=e[3];const _=S;let A;e[4]!==i?(A=K=>{i(K)},e[4]=i,e[5]=A):A=e[5];const R=A;let L;c||u?L=-1:L=void 0;const M=L,F=p["Search(Placeholder)"],U=(r==null?void 0:r.keyword)??"";let Z;e[6]!==R||e[7]!==U?(Z=[U,R],e[6]=R,e[7]=U,e[8]=Z):Z=e[8];let D;e[9]!==t||e[10]!==p||e[11]!==l||e[12]!==a||e[13]!==r||e[14]!==o?(D=O.jsx(gG,{isEqual:t,resources:p,searchDown:l,searchEnter:a,searchResult:r,searchUp:o}),e[9]=t,e[10]=p,e[11]=l,e[12]=a,e[13]=r,e[14]=o,e[15]=D):D=e[15];let V;e[16]===Symbol.for("react.memo_cache_sentinel")?(V={className:bo.SearchInputWrap},e[16]=V):V=e[16];let N;return e[17]!==w||e[18]!==c||e[19]!==b||e[20]!==_||e[21]!==F||e[22]!==Z||e[23]!==D||e[24]!==M?(N=O.jsx(Ih,{autoFocus:w,className:bo.SearchInput,isDisabled:c,maxLength:b,placeholder:F,tabIndex:M,useValue:Z,RightAddon:D,wrapProps:V,onKeyDown:_}),e[17]=w,e[18]=c,e[19]=b,e[20]=_,e[21]=F,e[22]=Z,e[23]=D,e[24]=M,e[25]=N):N=e[25],N},gG=n=>{const e=gn.c(22),{isEqual:t,searchResult:r,searchUp:i,searchDown:o,searchEnter:l,resources:a}=n;let c;if(!r||r.items.length<1)c=0;else{let N;e[0]!==t||e[1]!==r.item?(N=K=>r.item&&t(K,r.item),e[0]=t,e[1]=r.item,e[2]=N):N=e[2],c=r.items.findIndex(N)+1}const u=c;let p;!r||r.items.length<1?p=0:p=r.items.length;const b=p;let w;u<2?w=!0:w=!1;const S=w;let _;u>=b?_=!0:_=!1;const A=_;let R;e[3]!==S||e[4]!==i?(R=N=>{N.stopPropagation(),!S&&i()},e[3]=S,e[4]=i,e[5]=R):R=e[5];const L=R;let M;e[6]!==A||e[7]!==o?(M=N=>{N.stopPropagation(),!A&&o()},e[6]=A,e[7]=o,e[8]=M):M=e[8];const F=M;let U;e[9]!==l?(U=N=>{N.stopPropagation(),l()},e[9]=l,e[10]=U):U=e[10];const Z=U;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=St.clsx(bo.RightAddon,"NoSelect"),e[11]=D):D=e[11];let V;return e[12]!==A||e[13]!==S||e[14]!==b||e[15]!==F||e[16]!==Z||e[17]!==L||e[18]!==u||e[19]!==a||e[20]!==r?(V=O.jsx("div",{className:D,children:r?O.jsxs(O.Fragment,{children:[u,"/",b,O.jsx(Ki,{isDisabled:S,onClick:L,children:O.jsx(Eo,{className:bo.RightAddonIcon,icon:"ArrowUp",mask:""})}),O.jsx(Ki,{isDisabled:A,onClick:F,children:O.jsx(Eo,{className:bo.RightAddonIcon,icon:"ArrowDown"})})]}):O.jsx(js,{className:bo.RightAddonIcon,icon:"Search",style:{marginRight:4},tooltip:a["Search(Button)"],type:"Raw",onClick:Z})}),e[12]=A,e[13]=S,e[14]=b,e[15]=F,e[16]=Z,e[17]=L,e[18]=u,e[19]=a,e[20]=r,e[21]=V):V=e[21],V},pG=n=>{var Rn;const{pk:e,selectDisabled:t,selectUnused:r,useItems:i,useExpand:o,useSelect:l,useSearch:a,showCheckbox:c,icons:u={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:p,isSelectMulti:b=!1,noSearch:w=!1,isDraggable:S,noSyncSearchSelect:_=!1,actionRef:A,placeholder:R,searchPredicate:L=bG,isDisabled:M,isLoading:F,ContentRenderer:U=vG,TreeItemRenderer:Z=cG,RightStickyAddon:D,TopRightAddon:V,TreeTopAddon:N,resources:K,maxLength:ue,autoFocus:H,TreeHeaderStyle:te,TreeHeaderClassName:ie,TreeItemStyle:le,TreeItemClassName:ee,OverflowPadding:X,insertBorder:re,width:oe,searchItemClassName:ge,searchItemStyle:se,height:q=40,treeItemTooltip:pe,treeItemTooltipDelay:Se,treeItemTooltipDirection:Me,treeItemTooltipDistance:be,...ke}=n,Le=B.useMemo(()=>({...Cr.ATree,...K}),[K]),Re=B.useCallback((ct,pt)=>!ct||!pt?!1:e!==void 0?Array.isArray(e)?e.every(dn=>ct&&pt&&ct[dn]!==void 0&&pt[dn]!==void 0&&ad.isEqual(ct[dn],pt[dn])):ct&&pt&&ct[e]!==void 0&&pt[e]!==void 0&&ad.isEqual(ct[e],pt[e]):ad.isEqual(ct,pt),[e]),Pe=B.useRef(null),[Ie,Ge]=yo(i,[]),Ue=B.useMemo(()=>ng.map(Ie,ct=>ct),[Ie]),[ze,$e]=yo(o,[]),[tt,Xe]=yo(l,[]),[Ye,yt]=yo(a,void 0),at=B.useCallback(ct=>{if(M||!$e||ze.some(Sn=>Re(Sn,ct)))return;const pt=[];let dn=ct;for(;dn;){const Sn=dn;ze.find(Wr=>Re(Wr,Sn))||pt.push(Sn),dn=Ue.find(Wr=>{var or;return(or=Wr.children)==null?void 0:or.some(pn=>Re(pn,Sn))})}$e([...ze,...pt])},[ze,M,Re,$e,Ue]),ft=B.useCallback(()=>{!$e||M||$e([...Ue])},[Ue,M,$e]),_t=B.useCallback(()=>{!$e||M||$e([])},[$e,M]),bt=B.useCallback(ct=>{!Xe||M||r!=null&&r(ct)||(Xe([ct]),at(ct))},[Xe,M,r,at]),Kt=B.useCallback(ct=>{if(!yt||M)return;if(!ct||w){yt(void 0),_||Xe==null||Xe([]);return}const pt=ng.filter(Ie,Sn=>L(ct,Sn));let dn;if(pt.find(Sn=>(Ye==null?void 0:Ye.item)&&Re(Sn,Ye.item))?dn=Ye==null?void 0:Ye.item:pt.length>0&&(dn=pt[0]),yt({keyword:ct,items:pt,item:dn}),dn&&at(dn),Xe&&!_)if(b)Xe(pt);else{const Sn=pt.find(Wr=>dn&&Re(Wr,dn));Xe(Sn?[Sn]:[])}},[Ie,M,Re,L,yt,Xe,at,_,w,b,Ye]),ln=B.useRef(!1);B.useEffect(()=>{ln.current=!0},[Ie]),B.useEffect(()=>{Ye&&ln.current&&(Kt(Ye.keyword),ln.current=!1)},[Kt,Ye]);const Gt=B.useCallback(()=>{if(!Ye||!yt||M)return;let ct=Ye.items.findIndex(pt=>Ye.item&&Re(pt,Ye.item))-1;ct<0||(yt({...Ye,item:Ye.items[ct]}),at(Ye.items[ct]),_||bt(Ye.items[ct]))},[Ye,at,yt,M,bt,Re,_]),fn=B.useCallback(()=>{if(!Ye||!yt||M)return;let ct=Ye.items.findIndex(pt=>Ye.item&&Re(pt,Ye.item))+1;ct>=Ye.items.length||(yt({...Ye,item:Ye.items[ct]}),at(Ye.items[ct]),_||bt(Ye.items[ct]))},[Ye,at,M,yt,bt,Re,_]),qt=B.useCallback(()=>{if(!Ye||!yt||M)return;let ct=Ye.items.findIndex(dn=>Ye.item&&Re(dn,Ye.item));if(!_||r!=null&&r(Ye.items[ct])){fn();return}if(tt.some(dn=>Ye.item&&Re(dn,Ye.item))){let dn=ct+1;const Sn=Ye.items[dn];if(dn>=Ye.items.length)return;yt({...Ye,item:Sn}),bt(Sn)}else bt(Ye.items[ct])},[Ye,yt,M,tt,_,fn,Re,bt,r]),[Tn,$t]=B.useState(!1),cn=B.useCallback(()=>$t(!0),[]),Ht=B.useCallback(()=>$t(!1),[]),Jt=B.useMemo(()=>r?ng.map(Ie,ct=>ct).filter(ct=>!r(ct)):t?ng.map(Ie,ct=>ct).filter(ct=>!t(ct)):ng.map(Ie,ct=>ct),[r,t,Ie]),ht=B.useMemo(()=>!c||!b?!1:tt.length>0&&Jt.length>tt.length,[c,b,tt,Jt]),Rt=B.useMemo(()=>!c||!b?!1:tt.length>0&&Jt.length===tt.length,[c,b,tt,Jt]),Pt=B.useCallback(()=>{if(!Xe||!b||M)return;const ct=tt.filter(pt=>!(r!=null&&r(pt))&&!(t!=null&&t(pt))&&Jt.some(dn=>Re(dn,pt)));if(ct.length>0)Xe(tt.filter(pt=>!ct.some(dn=>Re(pt,dn))));else{const pt=Jt.filter(dn=>!(r!=null&&r(dn))&&!(t!=null&&t(dn))&&!tt.some(Sn=>Re(Sn,dn)));pt.length>0&&Xe([...tt,...pt])}},[b,M,r,t,Xe,tt,Jt,Re]),we=B.useMemo(()=>{if(!c||!b||M)return"";const ct=tt.filter(pt=>!(r!=null&&r(pt))&&!(t!=null&&t(pt))&&Jt.some(dn=>Re(dn,pt)));if(ct.length>0)return Le["deselect n"](ct.length);{const pt=Jt.filter(dn=>!(r!=null&&r(dn))&&!(t!=null&&t(dn))&&!tt.some(Sn=>Re(Sn,dn)));return Le["select n"](pt.length)}},[r,t,M,Le,c,b,Jt,tt,Re]),[Ce,ot]=B.useState(),mt=tU(TC(O2,{activationConstraint:{distance:8}}),TC(M2)),Et=B.useRef(new Map),Ot=B.useCallback(ct=>{if(!Et.current.has(ct)){const pt=`item_${ad.uniqueId()}`;Et.current.set(ct,pt)}return Et.current.get(ct)},[]),sn=B.useCallback(ct=>Ue.find(pt=>Ot(pt)===ct),[Ue,Ot]),hn=B.useCallback(ct=>!Ce||!Ce.children?!1:Ce.children.some(dn=>Re(dn,ct))?!0:Ce.children.some(dn=>dn.children?ng.find(dn,Sn=>Re(Sn,ct))!==void 0:!1),[Ce,Re]),vn=B.useCallback(ct=>{if(!S||M)return;const pt=sn(ct.active.id);pt&&ot(pt)},[S,M,sn]),nn=B.useCallback((ct,pt,dn,Sn)=>{const Wr=ct.findIndex(pn=>Sn(pn,pt)),or=ct.findIndex(pn=>Sn(pn,dn));return Wr!==-1&&or!==-1?M0(ct,Wr,or):ct.map(pn=>{if(!pn.children)return pn;const Dt=pn.children.findIndex(rt=>Sn(rt,pt)),Ee=pn.children.findIndex(rt=>Sn(rt,dn));return Dt!==-1&&Ee!==-1?{...pn,children:M0(pn.children,Dt,Ee)}:pn.children?{...pn,children:nn(pn.children,pt,dn,Sn)}:pn})},[]),en=B.useCallback(ct=>{!S||M||!Ce||!ct.over||sn(ct.over.id)},[S,M,Ce,sn]),Zn=B.useCallback(ct=>{if(!S||M||!Ge||!Ce||!ct.over)return;const pt=sn(ct.over.id);if(!pt||Re(Ce,pt)){ot(void 0);return}const dn=nn(Ie,Ce,pt,Re);Ge(dn),ot(void 0)},[S,M,Ge,Ce,sn,Re,Ie,nn]),Wn=B.useMemo(()=>Ie.map(ct=>Ot(ct)),[Ie,Ot]);B.useEffect(()=>{var ct;c||(ct=Pe.current)==null||ct.scrollTo(0,0)},[c,Pe]),B.useEffect(()=>{!b&&tt.length>1&&(Xe==null||Xe([tt[tt.length-1]]))},[b,Xe,tt]),B.useEffect(()=>{A&&(A.current={expandAll:ft,collapseAll:_t})},[A,ft,_t]),B.useEffect(()=>{if(!t||!Xe)return;const ct=tt.filter(pt=>!t(pt));tt.length!==ct.length&&Xe(ct)},[t,tt,Xe]),B.useEffect(()=>{if(!r||!Xe)return;const ct=tt.filter(pt=>!r(pt));tt.length!==ct.length&&Xe(ct)},[r,tt,Xe]),B.useEffect(()=>{yt&&yt(void 0)},[yt]);const[Mn,kn]=B.useState(null),ar=B.useCallback((ct,pt)=>{M||(ct.stopPropagation(),ct.preventDefault(),kn(pt))},[M]),Ft=B.useCallback((ct,pt)=>{Mn===null||M||Re(pt,Mn)&&(ct.stopPropagation(),ct.preventDefault(),kn(null))},[Mn,M,Re]),Xt=B.useRef(null),[Nt,yn]=B.useState(!1),[Un,br]=B.useState((Rn=Xt.current)==null?void 0:Rn.scrollHeight);return B.useEffect(()=>{if(ze.length<0)return;const ct=Pe.current,pt=Xt.current,dn=ct.clientHeight<pt.clientHeight;br(dn?pt.scrollHeight:ct.clientHeight),yn(dn)},[ze]),O.jsxs(Ki,{...ke,className:St.clsx(ke.className,bo.AWrap),isDisabled:M,children:[(!w||V)&&O.jsxs(Ho,{className:St.clsx(bo.ATreeHeader,ie),style:te,children:[!w&&O.jsx(hG,{autoFocus:H,initSearch:Kt,isDisabled:M,isEqual:Re,isLoading:F,maxLength:ue,resources:Le,searchDown:fn,searchEnter:qt,searchResult:Ye,searchUp:Gt}),!w&&V&&O.jsx(kh,{w:8}),V]}),(!w||V||c&&b||S)&&O.jsx(S2,{isLoading:F&&Ie.length!==0}),(c&&b||S)&&O.jsxs("div",{className:St.clsx(bo.ATreeBodyHeader,"NoSelect"),children:[c&&O.jsx(A1,{className:bo.CheckBox,isDisabled:M,isIndeterminate:ht,tooltip:we,useCheck:[+Rt,()=>Pt()],onMouseOut:Ht,onMouseOver:cn}),Le.Items,O.jsx(Zp,{}),O.jsxs("div",{className:St.clsx(bo.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Nt?8:0},children:[O.jsx("span",{children:c&&Le["*Click row for single select"]}),O.jsx("span",{children:S&&Le["*Change order to row drag"]})]})]}),N&&O.jsx("div",{className:bo.TreeTopAddon,children:N}),O.jsx("div",{ref:Pe,className:St.clsx(ke.className,bo.AContainer),children:O.jsxs("div",{className:bo.ATree,style:{minWidth:oe||"fit-content",marginRight:X&&Nt?8:0},children:[O.jsxs("div",{ref:Xt,className:bo.ATreeBody,children:[Ie.length===0?F?O.jsx(yG,{text:Le["Loading Contents..."]}):R:null,O.jsx(oY,{collisionDetection:lU,modifiers:[hY,gY],sensors:mt,measuring:{droppable:{strategy:F1.Always}},onDragEnd:Zn,onDragOver:en,onDragStart:vn,children:O.jsx(xY,{items:Wn,strategy:yY,children:Ie.map(ct=>O.jsx(Z,{containerRef:Pe,ContentRenderer:U,extIndents:p,getItemId:Ot,height:q,hoverdItem:Mn,icons:u,indents:[],isChildOfDragItem:hn,isDraggable:S,isDragSrcItem:Re(ct,Ce),isEqual:Re,isParentCheckHovered:b&&Tn,isParentDisabled:M,isSelectMulti:b,item:ct,itemId:Ot(ct),resources:Le,RightStickyAddon:D,searchItemClassName:ge,searchItemStyle:se,selectDisabled:t,selectUnused:r,showCheckbox:c,TreeItemClassName:ee,TreeItemRenderer:Z,TreeItemStyle:le,treeItemTooltip:pe,treeItemTooltipDelay:Se,treeItemTooltipDirection:Me,treeItemTooltipDistance:be,useExpand:[ze,$e],useSearch:[Ye,yt],useSelect:[tt,Xe],onMouseLeave:Ft,onMouseOver:ar},Ot(ct)))})})]}),re&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:bo.CoverBorder}),O.jsx("div",{className:bo.InsertBorder,style:{"--InsertBorder_height":`${q}px`,height:Nt?Un:"100%"}})]})]})})]})},vG=n=>{const{item:e}=n,t={};return Kn.keys(e).forEach(r=>{r!=="children"&&(t[r]=e[r])}),JSON.stringify(t)};function bG(n,e){return Kn.some(e,(t,r)=>{var i;return(i=Kn.stringify(r))==null?void 0:i.toLowerCase().includes(n.toLowerCase())})}const yG=n=>{const e=gn.c(4),{text:t}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=St.clsx(bo.Loader,"NoSelect"),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=O.jsx(Eo,{height:40,icon:"Spinner",style:{height:40},width:40}),e[1]=i):i=e[1];let o;return e[2]!==t?(o=O.jsxs(Ho,{className:r,children:[i,O.jsx(MS,{text:t})]}),e[2]=t,e[3]=o):o=e[3],o};var ay,FC;function G1(){return FC||(FC=1,ay=TypeError),ay}const mG={},xG=Object.freeze(Object.defineProperty({__proto__:null,default:mG},Symbol.toStringTag,{value:"Module"})),wG=MA(xG);var cy,BC;function j0(){if(BC)return cy;BC=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,r=n&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&o&&typeof o.get=="function"?o.get:null,a=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,u=c?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,b=p?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,S=w?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,A=Object.prototype.toString,R=Function.prototype.toString,L=String.prototype.match,M=String.prototype.slice,F=String.prototype.replace,U=String.prototype.toUpperCase,Z=String.prototype.toLowerCase,D=RegExp.prototype.test,V=Array.prototype.concat,N=Array.prototype.join,K=Array.prototype.slice,ue=Math.floor,H=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,le=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===le||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(we){return we.__proto__}:null);function oe(we,Ce){if(we===1/0||we===-1/0||we!==we||we&&we>-1e3&&we<1e3||D.call(/e/,Ce))return Ce;var ot=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof we=="number"){var mt=we<0?-ue(-we):ue(we);if(mt!==we){var Et=String(mt),Ot=M.call(Ce,Et.length+1);return F.call(Et,ot,"$&_")+"."+F.call(F.call(Ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(Ce,ot,"$&_")}var ge=wG,se=ge.custom,q=$e(se)?se:null,pe={__proto__:null,double:'"',single:"'"},Se={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};cy=function we(Ce,ot,mt,Et){var Ot=ot||{};if(Ye(Ot,"quoteStyle")&&!Ye(pe,Ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ye(Ot,"maxStringLength")&&(typeof Ot.maxStringLength=="number"?Ot.maxStringLength<0&&Ot.maxStringLength!==1/0:Ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var sn=Ye(Ot,"customInspect")?Ot.customInspect:!0;if(typeof sn!="boolean"&&sn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ye(Ot,"indent")&&Ot.indent!==null&&Ot.indent!==" "&&!(parseInt(Ot.indent,10)===Ot.indent&&Ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ye(Ot,"numericSeparator")&&typeof Ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var hn=Ot.numericSeparator;if(typeof Ce>"u")return"undefined";if(Ce===null)return"null";if(typeof Ce=="boolean")return Ce?"true":"false";if(typeof Ce=="string")return qt(Ce,Ot);if(typeof Ce=="number"){if(Ce===0)return 1/0/Ce>0?"0":"-0";var vn=String(Ce);return hn?oe(Ce,vn):vn}if(typeof Ce=="bigint"){var nn=String(Ce)+"n";return hn?oe(Ce,nn):nn}var en=typeof Ot.depth>"u"?5:Ot.depth;if(typeof mt>"u"&&(mt=0),mt>=en&&en>0&&typeof Ce=="object")return Le(Ce)?"[Array]":"[Object]";var Zn=ht(Ot,mt);if(typeof Et>"u")Et=[];else if(ft(Et,Ce)>=0)return"[Circular]";function Wn(pn,Dt,Ee){if(Dt&&(Et=K.call(Et),Et.push(Dt)),Ee){var rt={depth:Ot.depth};return Ye(Ot,"quoteStyle")&&(rt.quoteStyle=Ot.quoteStyle),we(pn,rt,mt+1,Et)}return we(pn,Ot,mt+1,Et)}if(typeof Ce=="function"&&!Pe(Ce)){var Mn=at(Ce),kn=Pt(Ce,Wn);return"[Function"+(Mn?": "+Mn:" (anonymous)")+"]"+(kn.length>0?" { "+N.call(kn,", ")+" }":"")}if($e(Ce)){var ar=le?F.call(String(Ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):ie.call(Ce);return typeof Ce=="object"&&!le?$t(ar):ar}if(fn(Ce)){for(var Ft="<"+Z.call(String(Ce.nodeName)),Xt=Ce.attributes||[],Nt=0;Nt<Xt.length;Nt++)Ft+=" "+Xt[Nt].name+"="+Me(be(Xt[Nt].value),"double",Ot);return Ft+=">",Ce.childNodes&&Ce.childNodes.length&&(Ft+="..."),Ft+="</"+Z.call(String(Ce.nodeName))+">",Ft}if(Le(Ce)){if(Ce.length===0)return"[]";var yn=Pt(Ce,Wn);return Zn&&!Jt(yn)?"["+Rt(yn,Zn)+"]":"[ "+N.call(yn,", ")+" ]"}if(Ie(Ce)){var Un=Pt(Ce,Wn);return!("cause"in Error.prototype)&&"cause"in Ce&&!X.call(Ce,"cause")?"{ ["+String(Ce)+"] "+N.call(V.call("[cause]: "+Wn(Ce.cause),Un),", ")+" }":Un.length===0?"["+String(Ce)+"]":"{ ["+String(Ce)+"] "+N.call(Un,", ")+" }"}if(typeof Ce=="object"&&sn){if(q&&typeof Ce[q]=="function"&&ge)return ge(Ce,{depth:en-mt});if(sn!=="symbol"&&typeof Ce.inspect=="function")return Ce.inspect()}if(_t(Ce)){var br=[];return r&&r.call(Ce,function(pn,Dt){br.push(Wn(Dt,Ce,!0)+" => "+Wn(pn,Ce))}),Ht("Map",t.call(Ce),br,Zn)}if(ln(Ce)){var Rn=[];return a&&a.call(Ce,function(pn){Rn.push(Wn(pn,Ce))}),Ht("Set",l.call(Ce),Rn,Zn)}if(bt(Ce))return cn("WeakMap");if(Gt(Ce))return cn("WeakSet");if(Kt(Ce))return cn("WeakRef");if(Ue(Ce))return $t(Wn(Number(Ce)));if(tt(Ce))return $t(Wn(H.call(Ce)));if(ze(Ce))return $t(_.call(Ce));if(Ge(Ce))return $t(Wn(String(Ce)));if(typeof window<"u"&&Ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ce===globalThis||typeof rf<"u"&&Ce===rf)return"{ [object globalThis] }";if(!Re(Ce)&&!Pe(Ce)){var ct=Pt(Ce,Wn),pt=re?re(Ce)===Object.prototype:Ce instanceof Object||Ce.constructor===Object,dn=Ce instanceof Object?"":"null prototype",Sn=!pt&&ee&&Object(Ce)===Ce&&ee in Ce?M.call(yt(Ce),8,-1):dn?"Object":"",Wr=pt||typeof Ce.constructor!="function"?"":Ce.constructor.name?Ce.constructor.name+" ":"",or=Wr+(Sn||dn?"["+N.call(V.call([],Sn||[],dn||[]),": ")+"] ":"");return ct.length===0?or+"{}":Zn?or+"{"+Rt(ct,Zn)+"}":or+"{ "+N.call(ct,", ")+" }"}return String(Ce)};function Me(we,Ce,ot){var mt=ot.quoteStyle||Ce,Et=pe[mt];return Et+we+Et}function be(we){return F.call(String(we),/"/g,""")}function ke(we){return!ee||!(typeof we=="object"&&(ee in we||typeof we[ee]<"u"))}function Le(we){return yt(we)==="[object Array]"&&ke(we)}function Re(we){return yt(we)==="[object Date]"&&ke(we)}function Pe(we){return yt(we)==="[object RegExp]"&&ke(we)}function Ie(we){return yt(we)==="[object Error]"&&ke(we)}function Ge(we){return yt(we)==="[object String]"&&ke(we)}function Ue(we){return yt(we)==="[object Number]"&&ke(we)}function ze(we){return yt(we)==="[object Boolean]"&&ke(we)}function $e(we){if(le)return we&&typeof we=="object"&&we instanceof Symbol;if(typeof we=="symbol")return!0;if(!we||typeof we!="object"||!ie)return!1;try{return ie.call(we),!0}catch{}return!1}function tt(we){if(!we||typeof we!="object"||!H)return!1;try{return H.call(we),!0}catch{}return!1}var Xe=Object.prototype.hasOwnProperty||function(we){return we in this};function Ye(we,Ce){return Xe.call(we,Ce)}function yt(we){return A.call(we)}function at(we){if(we.name)return we.name;var Ce=L.call(R.call(we),/^function\s*([\w$]+)/);return Ce?Ce[1]:null}function ft(we,Ce){if(we.indexOf)return we.indexOf(Ce);for(var ot=0,mt=we.length;ot<mt;ot++)if(we[ot]===Ce)return ot;return-1}function _t(we){if(!t||!we||typeof we!="object")return!1;try{t.call(we);try{l.call(we)}catch{return!0}return we instanceof Map}catch{}return!1}function bt(we){if(!u||!we||typeof we!="object")return!1;try{u.call(we,u);try{b.call(we,b)}catch{return!0}return we instanceof WeakMap}catch{}return!1}function Kt(we){if(!S||!we||typeof we!="object")return!1;try{return S.call(we),!0}catch{}return!1}function ln(we){if(!l||!we||typeof we!="object")return!1;try{l.call(we);try{t.call(we)}catch{return!0}return we instanceof Set}catch{}return!1}function Gt(we){if(!b||!we||typeof we!="object")return!1;try{b.call(we,b);try{u.call(we,u)}catch{return!0}return we instanceof WeakSet}catch{}return!1}function fn(we){return!we||typeof we!="object"?!1:typeof HTMLElement<"u"&&we instanceof HTMLElement?!0:typeof we.nodeName=="string"&&typeof we.getAttribute=="function"}function qt(we,Ce){if(we.length>Ce.maxStringLength){var ot=we.length-Ce.maxStringLength,mt="... "+ot+" more character"+(ot>1?"s":"");return qt(M.call(we,0,Ce.maxStringLength),Ce)+mt}var Et=Se[Ce.quoteStyle||"single"];Et.lastIndex=0;var Ot=F.call(F.call(we,Et,"\\$1"),/[\x00-\x1f]/g,Tn);return Me(Ot,"single",Ce)}function Tn(we){var Ce=we.charCodeAt(0),ot={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ce];return ot?"\\"+ot:"\\x"+(Ce<16?"0":"")+U.call(Ce.toString(16))}function $t(we){return"Object("+we+")"}function cn(we){return we+" { ? }"}function Ht(we,Ce,ot,mt){var Et=mt?Rt(ot,mt):N.call(ot,", ");return we+" ("+Ce+") {"+Et+"}"}function Jt(we){for(var Ce=0;Ce<we.length;Ce++)if(ft(we[Ce],`
|
|
484
|
+
`},$W={onDragStart(n){let{active:e}=n;return"Picked up draggable item "+e.id+"."},onDragOver(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was moved over droppable area "+t.id+".":"Draggable item "+e.id+" is no longer over a droppable area."},onDragEnd(n){let{active:e,over:t}=n;return t?"Draggable item "+e.id+" was dropped over droppable area "+t.id:"Draggable item "+e.id+" was dropped."},onDragCancel(n){let{active:e}=n;return"Dragging was cancelled. Draggable item "+e.id+" was dropped."}};function eU(n){let{announcements:e=$W,container:t,hiddenTextDescribedById:r,screenReaderInstructions:i=jW}=n;const{announce:o,announcement:l}=JW(),a=nv("DndLiveRegion"),[c,u]=B.useState(!1);if(B.useEffect(()=>{u(!0)},[]),QW(B.useMemo(()=>({onDragStart(b){let{active:w}=b;o(e.onDragStart({active:w}))},onDragMove(b){let{active:w,over:S}=b;e.onDragMove&&o(e.onDragMove({active:w,over:S}))},onDragOver(b){let{active:w,over:S}=b;o(e.onDragOver({active:w,over:S}))},onDragEnd(b){let{active:w,over:S}=b;o(e.onDragEnd({active:w,over:S}))},onDragCancel(b){let{active:w,over:S}=b;o(e.onDragCancel({active:w,over:S}))}}),[o,e])),!c)return null;const p=B.createElement(B.Fragment,null,B.createElement(XW,{id:r,value:i.draggable}),B.createElement(KW,{id:a,announcement:l}));return t?Fa.createPortal(p,t):p}var Na;(function(n){n.DragStart="dragStart",n.DragMove="dragMove",n.DragEnd="dragEnd",n.DragCancel="dragCancel",n.DragOver="dragOver",n.RegisterDroppable="registerDroppable",n.SetDroppableDisabled="setDroppableDisabled",n.UnregisterDroppable="unregisterDroppable"})(Na||(Na={}));function k0(){}function TC(n,e){return B.useMemo(()=>({sensor:n,options:e??{}}),[n,e])}function tU(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return B.useMemo(()=>[...e].filter(r=>r!=null),[...e])}const Nd=Object.freeze({x:0,y:0});function nU(n,e){return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function rU(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return t-r}function iU(n,e){let{data:{value:t}}=n,{data:{value:r}}=e;return r-t}function oU(n,e){if(!n||n.length===0)return null;const[t]=n;return t[e]}function EC(n,e,t){return e===void 0&&(e=n.left),t===void 0&&(t=n.top),{x:e+n.width*.5,y:t+n.height*.5}}const lU=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=EC(e,e.left,e.top),o=[];for(const l of r){const{id:a}=l,c=t.get(a);if(c){const u=nU(EC(c),i);o.push({id:a,data:{droppableContainer:l,value:u}})}}return o.sort(rU)};function sU(n,e){const t=Math.max(e.top,n.top),r=Math.max(e.left,n.left),i=Math.min(e.left+e.width,n.left+n.width),o=Math.min(e.top+e.height,n.top+n.height),l=i-r,a=o-t;if(r<i&&t<o){const c=e.width*e.height,u=n.width*n.height,p=l*a,b=p/(c+u-p);return Number(b.toFixed(4))}return 0}const aU=n=>{let{collisionRect:e,droppableRects:t,droppableContainers:r}=n;const i=[];for(const o of r){const{id:l}=o,a=t.get(l);if(a){const c=sU(a,e);c>0&&i.push({id:l,data:{droppableContainer:o,value:c}})}}return i.sort(iU)};function cU(n,e,t){return{...n,scaleX:e&&t?e.width/t.width:1,scaleY:e&&t?e.height/t.height:1}}function DS(n,e){return n&&e?{x:n.left-e.left,y:n.top-e.top}:Nd}function uU(n){return function(t){for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return i.reduce((l,a)=>({...l,top:l.top+n*a.y,bottom:l.bottom+n*a.y,left:l.left+n*a.x,right:l.right+n*a.x}),{...t})}}const fU=uU(1);function dU(n){if(n.startsWith("matrix3d(")){const e=n.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}else if(n.startsWith("matrix(")){const e=n.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}function hU(n,e,t){const r=dU(e);if(!r)return n;const{scaleX:i,scaleY:o,x:l,y:a}=r,c=n.left-l-(1-i)*parseFloat(t),u=n.top-a-(1-o)*parseFloat(t.slice(t.indexOf(" ")+1)),p=i?n.width/i:n.width,b=o?n.height/o:n.height;return{width:p,height:b,top:u,right:c+p,bottom:u+b,left:c}}const gU={ignoreTransform:!1};function Y1(n,e){e===void 0&&(e=gU);let t=n.getBoundingClientRect();if(e.ignoreTransform){const{transform:u,transformOrigin:p}=lf(n).getComputedStyle(n);u&&(t=hU(t,u,p))}const{top:r,left:i,width:o,height:l,bottom:a,right:c}=t;return{top:r,left:i,width:o,height:l,bottom:a,right:c}}function AC(n){return Y1(n,{ignoreTransform:!0})}function pU(n){const e=n.innerWidth,t=n.innerHeight;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}function vU(n,e){return e===void 0&&(e=lf(n).getComputedStyle(n)),e.position==="fixed"}function bU(n,e){e===void 0&&(e=lf(n).getComputedStyle(n));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(i=>{const o=e[i];return typeof o=="string"?t.test(o):!1})}function k2(n,e){const t=[];function r(i){if(e!=null&&t.length>=e||!i)return t;if(E2(i)&&i.scrollingElement!=null&&!t.includes(i.scrollingElement))return t.push(i.scrollingElement),t;if(!ev(i)||LS(i)||t.includes(i))return t;const o=lf(n).getComputedStyle(i);return i!==n&&bU(i,o)&&t.push(i),vU(i,o)?t:r(i.parentNode)}return n?r(n):t}function NS(n){const[e]=k2(n,1);return e??null}function oy(n){return!J0||!n?null:W1(n)?n:T2(n)?E2(n)||n===U1(n).scrollingElement?window:ev(n)?n:null:null}function FS(n){return W1(n)?n.scrollX:n.scrollLeft}function BS(n){return W1(n)?n.scrollY:n.scrollTop}function Nm(n){return{x:FS(n),y:BS(n)}}var ic;(function(n){n[n.Forward=1]="Forward",n[n.Backward=-1]="Backward"})(ic||(ic={}));function zS(n){return!J0||!n?!1:n===document.scrollingElement}function HS(n){const e={x:0,y:0},t=zS(n)?{height:window.innerHeight,width:window.innerWidth}:{height:n.clientHeight,width:n.clientWidth},r={x:n.scrollWidth-t.width,y:n.scrollHeight-t.height},i=n.scrollTop<=e.y,o=n.scrollLeft<=e.x,l=n.scrollTop>=r.y,a=n.scrollLeft>=r.x;return{isTop:i,isLeft:o,isBottom:l,isRight:a,maxScroll:r,minScroll:e}}const yU={x:.2,y:.2};function mU(n,e,t,r,i){let{top:o,left:l,right:a,bottom:c}=t;r===void 0&&(r=10),i===void 0&&(i=yU);const{isTop:u,isBottom:p,isLeft:b,isRight:w}=HS(n),S={x:0,y:0},_={x:0,y:0},A={height:e.height*i.y,width:e.width*i.x};return!u&&o<=e.top+A.height?(S.y=ic.Backward,_.y=r*Math.abs((e.top+A.height-o)/A.height)):!p&&c>=e.bottom-A.height&&(S.y=ic.Forward,_.y=r*Math.abs((e.bottom-A.height-c)/A.height)),!w&&a>=e.right-A.width?(S.x=ic.Forward,_.x=r*Math.abs((e.right-A.width-a)/A.width)):!b&&l<=e.left+A.width&&(S.x=ic.Backward,_.x=r*Math.abs((e.left+A.width-l)/A.width)),{direction:S,speed:_}}function xU(n){if(n===document.scrollingElement){const{innerWidth:o,innerHeight:l}=window;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}const{top:e,left:t,right:r,bottom:i}=n.getBoundingClientRect();return{top:e,left:t,right:r,bottom:i,width:n.clientWidth,height:n.clientHeight}}function WS(n){return n.reduce((e,t)=>T1(e,Nm(t)),Nd)}function wU(n){return n.reduce((e,t)=>e+FS(t),0)}function CU(n){return n.reduce((e,t)=>e+BS(t),0)}function _U(n,e){if(e===void 0&&(e=Y1),!n)return;const{top:t,left:r,bottom:i,right:o}=e(n);NS(n)&&(i<=0||o<=0||t>=window.innerHeight||r>=window.innerWidth)&&n.scrollIntoView({block:"center",inline:"center"})}const SU=[["x",["left","right"],wU],["y",["top","bottom"],CU]];class I2{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=k2(t),i=WS(r);this.rect={...e},this.width=e.width,this.height=e.height;for(const[o,l,a]of SU)for(const c of l)Object.defineProperty(this,c,{get:()=>{const u=a(r),p=i[o]-u;return this.rect[c]+p},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Ep{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...t)})},this.target=e}add(e,t,r){var i;(i=this.target)==null||i.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function TU(n){const{EventTarget:e}=lf(n);return n instanceof e?n:U1(n)}function ly(n,e){const t=Math.abs(n.x),r=Math.abs(n.y);return typeof e=="number"?Math.sqrt(t**2+r**2)>e:"x"in e&&"y"in e?t>e.x&&r>e.y:"x"in e?t>e.x:"y"in e?r>e.y:!1}var cd;(function(n){n.Click="click",n.DragStart="dragstart",n.Keydown="keydown",n.ContextMenu="contextmenu",n.Resize="resize",n.SelectionChange="selectionchange",n.VisibilityChange="visibilitychange"})(cd||(cd={}));function RC(n){n.preventDefault()}function EU(n){n.stopPropagation()}var so;(function(n){n.Space="Space",n.Down="ArrowDown",n.Right="ArrowRight",n.Left="ArrowLeft",n.Up="ArrowUp",n.Esc="Escape",n.Enter="Enter",n.Tab="Tab"})(so||(so={}));const US={start:[so.Space,so.Enter],cancel:[so.Esc],end:[so.Space,so.Enter,so.Tab]},AU=(n,e)=>{let{currentCoordinates:t}=e;switch(n.code){case so.Right:return{...t,x:t.x+25};case so.Left:return{...t,x:t.x-25};case so.Down:return{...t,y:t.y+25};case so.Up:return{...t,y:t.y-25}}};class M2{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Ep(U1(t)),this.windowListeners=new Ep(lf(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(cd.Resize,this.handleCancel),this.windowListeners.add(cd.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(cd.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&_U(r),t(Nd)}handleKeyDown(e){if(R2(e)){const{active:t,context:r,options:i}=this.props,{keyboardCodes:o=US,coordinateGetter:l=AU,scrollBehavior:a="smooth"}=i,{code:c}=e;if(o.end.includes(c)){this.handleEnd(e);return}if(o.cancel.includes(c)){this.handleCancel(e);return}const{collisionRect:u}=r.current,p=u?{x:u.left,y:u.top}:Nd;this.referenceCoordinates||(this.referenceCoordinates=p);const b=l(e,{active:t,context:r.current,currentCoordinates:p});if(b){const w=R0(b,p),S={x:0,y:0},{scrollableAncestors:_}=r.current;for(const A of _){const R=e.code,{isTop:L,isRight:M,isLeft:F,isBottom:U,maxScroll:Z,minScroll:D}=HS(A),V=xU(A),N={x:Math.min(R===so.Right?V.right-V.width/2:V.right,Math.max(R===so.Right?V.left:V.left+V.width/2,b.x)),y:Math.min(R===so.Down?V.bottom-V.height/2:V.bottom,Math.max(R===so.Down?V.top:V.top+V.height/2,b.y))},K=R===so.Right&&!M||R===so.Left&&!F,ue=R===so.Down&&!U||R===so.Up&&!L;if(K&&N.x!==b.x){const H=A.scrollLeft+w.x,te=R===so.Right&&H<=Z.x||R===so.Left&&H>=D.x;if(te&&!w.y){A.scrollTo({left:H,behavior:a});return}te?S.x=A.scrollLeft-H:S.x=R===so.Right?A.scrollLeft-Z.x:A.scrollLeft-D.x,S.x&&A.scrollBy({left:-S.x,behavior:a});break}else if(ue&&N.y!==b.y){const H=A.scrollTop+w.y,te=R===so.Down&&H<=Z.y||R===so.Up&&H>=D.y;if(te&&!w.x){A.scrollTo({top:H,behavior:a});return}te?S.y=A.scrollTop-H:S.y=R===so.Down?A.scrollTop-Z.y:A.scrollTop-D.y,S.y&&A.scrollBy({top:-S.y,behavior:a});break}}this.handleMove(e,T1(R0(b,this.referenceCoordinates),S))}}}handleMove(e,t){const{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}M2.activators=[{eventName:"onKeyDown",handler:(n,e,t)=>{let{keyboardCodes:r=US,onActivation:i}=e,{active:o}=t;const{code:l}=n.nativeEvent;if(r.start.includes(l)){const a=o.activatorNode.current;return a&&n.target!==a?!1:(n.preventDefault(),i==null||i({event:n.nativeEvent}),!0)}return!1}}];function kC(n){return!!(n&&"distance"in n)}function IC(n){return!!(n&&"delay"in n)}class L2{constructor(e,t,r){var i;r===void 0&&(r=TU(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:l}=o;this.props=e,this.events=t,this.document=U1(l),this.documentListeners=new Ep(this.document),this.listeners=new Ep(r),this.windowListeners=new Ep(lf(l)),this.initialCoordinates=(i=Dm(o))!=null?i:Nd,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(cd.Resize,this.handleCancel),this.windowListeners.add(cd.DragStart,RC),this.windowListeners.add(cd.VisibilityChange,this.handleCancel),this.windowListeners.add(cd.ContextMenu,RC),this.documentListeners.add(cd.Keydown,this.handleKeydown),t){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(IC(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(kC(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:r,onPending:i}=this.props;i(r,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(cd.Click,EU,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(cd.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:r,initialCoordinates:i,props:o}=this,{onMove:l,options:{activationConstraint:a}}=o;if(!i)return;const c=(t=Dm(e))!=null?t:Nd,u=R0(i,c);if(!r&&a){if(kC(a)){if(a.tolerance!=null&&ly(u,a.tolerance))return this.handleCancel();if(ly(u,a.distance))return this.handleStart()}if(IC(a)&&ly(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}e.cancelable&&e.preventDefault(),l(c)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===so.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}}const RU={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class O2 extends L2{constructor(e){const{event:t}=e,r=U1(t.target);super(e,RU,r)}}O2.activators=[{eventName:"onPointerDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return!t.isPrimary||t.button!==0?!1:(r==null||r({event:t}),!0)}}];const kU={move:{name:"mousemove"},end:{name:"mouseup"}};var Fm;(function(n){n[n.RightClick=2]="RightClick"})(Fm||(Fm={}));class IU extends L2{constructor(e){super(e,kU,U1(e.event.target))}}IU.activators=[{eventName:"onMouseDown",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;return t.button===Fm.RightClick?!1:(r==null||r({event:t}),!0)}}];const sy={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class MU extends L2{constructor(e){super(e,sy)}static setup(){return window.addEventListener(sy.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(sy.move.name,e)};function e(){}}}MU.activators=[{eventName:"onTouchStart",handler:(n,e)=>{let{nativeEvent:t}=n,{onActivation:r}=e;const{touches:i}=t;return i.length>1?!1:(r==null||r({event:t}),!0)}}];var Ap;(function(n){n[n.Pointer=0]="Pointer",n[n.DraggableRect=1]="DraggableRect"})(Ap||(Ap={}));var I0;(function(n){n[n.TreeOrder=0]="TreeOrder",n[n.ReversedTreeOrder=1]="ReversedTreeOrder"})(I0||(I0={}));function LU(n){let{acceleration:e,activator:t=Ap.Pointer,canScroll:r,draggingRect:i,enabled:o,interval:l=5,order:a=I0.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:p,delta:b,threshold:w}=n;const S=PU({delta:b,disabled:!o}),[_,A]=UW(),R=B.useRef({x:0,y:0}),L=B.useRef({x:0,y:0}),M=B.useMemo(()=>{switch(t){case Ap.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ap.DraggableRect:return i}},[t,i,c]),F=B.useRef(null),U=B.useCallback(()=>{const D=F.current;if(!D)return;const V=R.current.x*L.current.x,N=R.current.y*L.current.y;D.scrollBy(V,N)},[]),Z=B.useMemo(()=>a===I0.TreeOrder?[...u].reverse():u,[a,u]);B.useEffect(()=>{if(!o||!u.length||!M){A();return}for(const D of Z){if((r==null?void 0:r(D))===!1)continue;const V=u.indexOf(D),N=p[V];if(!N)continue;const{direction:K,speed:ue}=mU(D,N,M,e,w);for(const H of["x","y"])S[H][K[H]]||(ue[H]=0,K[H]=0);if(ue.x>0||ue.y>0){A(),F.current=D,_(U,l),R.current=ue,L.current=K;return}}R.current={x:0,y:0},L.current={x:0,y:0},A()},[e,U,r,A,o,l,JSON.stringify(M),JSON.stringify(S),_,u,Z,p,JSON.stringify(w)])}const OU={x:{[ic.Backward]:!1,[ic.Forward]:!1},y:{[ic.Backward]:!1,[ic.Forward]:!1}};function PU(n){let{delta:e,disabled:t}=n;const r=Pm(e);return tv(i=>{if(t||!r||!i)return OU;const o={x:Math.sign(e.x-r.x),y:Math.sign(e.y-r.y)};return{x:{[ic.Backward]:i.x[ic.Backward]||o.x===-1,[ic.Forward]:i.x[ic.Forward]||o.x===1},y:{[ic.Backward]:i.y[ic.Backward]||o.y===-1,[ic.Forward]:i.y[ic.Forward]||o.y===1}}},[t,e,r])}function DU(n,e){const t=e!=null?n.get(e):void 0,r=t?t.node.current:null;return tv(i=>{var o;return e==null?null:(o=r??i)!=null?o:null},[r,e])}function NU(n,e){return B.useMemo(()=>n.reduce((t,r)=>{const{sensor:i}=r,o=i.activators.map(l=>({eventName:l.eventName,handler:e(l.handler,r)}));return[...t,...o]},[]),[n,e])}var F1;(function(n){n[n.Always=0]="Always",n[n.BeforeDragging=1]="BeforeDragging",n[n.WhileDragging=2]="WhileDragging"})(F1||(F1={}));var Bm;(function(n){n.Optimized="optimized"})(Bm||(Bm={}));const MC=new Map;function FU(n,e){let{dragging:t,dependencies:r,config:i}=e;const[o,l]=B.useState(null),{frequency:a,measure:c,strategy:u}=i,p=B.useRef(n),b=R(),w=Gp(b),S=B.useCallback(function(L){L===void 0&&(L=[]),!w.current&&l(M=>M===null?L:M.concat(L.filter(F=>!M.includes(F))))},[w]),_=B.useRef(null),A=tv(L=>{if(b&&!t)return MC;if(!L||L===MC||p.current!==n||o!=null){const M=new Map;for(let F of n){if(!F)continue;if(o&&o.length>0&&!o.includes(F.id)&&F.rect.current){M.set(F.id,F.rect.current);continue}const U=F.node.current,Z=U?new I2(c(U),U):null;F.rect.current=Z,Z&&M.set(F.id,Z)}return M}return L},[n,o,t,b,c]);return B.useEffect(()=>{p.current=n},[n]),B.useEffect(()=>{b||S()},[t,b]),B.useEffect(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),B.useEffect(()=>{b||typeof a!="number"||_.current!==null||(_.current=setTimeout(()=>{S(),_.current=null},a))},[a,b,S,...r]),{droppableRects:A,measureDroppableContainers:S,measuringScheduled:o!=null};function R(){switch(u){case F1.Always:return!1;case F1.BeforeDragging:return t;default:return!t}}}function YS(n,e){return tv(t=>n?t||(typeof e=="function"?e(n):n):null,[e,n])}function BU(n,e){return YS(n,e)}function zU(n){let{callback:e,disabled:t}=n;const r=A2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:o}=window;return new o(r)},[r,t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function Q0(n){let{callback:e,disabled:t}=n;const r=A2(e),i=B.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:o}=window;return new o(r)},[t]);return B.useEffect(()=>()=>i==null?void 0:i.disconnect(),[i]),i}function HU(n){return new I2(Y1(n),n)}function LC(n,e,t){e===void 0&&(e=HU);const[r,i]=B.useState(null);function o(){i(c=>{if(!n)return null;if(n.isConnected===!1){var u;return(u=c??t)!=null?u:null}const p=e(n);return JSON.stringify(c)===JSON.stringify(p)?c:p})}const l=zU({callback(c){if(n)for(const u of c){const{type:p,target:b}=u;if(p==="childList"&&b instanceof HTMLElement&&b.contains(n)){o();break}}}}),a=Q0({callback:o});return ih(()=>{o(),n?(a==null||a.observe(n),l==null||l.observe(document.body,{childList:!0,subtree:!0})):(a==null||a.disconnect(),l==null||l.disconnect())},[n]),r}function WU(n){const e=YS(n);return DS(n,e)}const OC=[];function UU(n){const e=B.useRef(n),t=tv(r=>n?r&&r!==OC&&n&&e.current&&n.parentNode===e.current.parentNode?r:k2(n):OC,[n]);return B.useEffect(()=>{e.current=n},[n]),t}function YU(n){const[e,t]=B.useState(null),r=B.useRef(n),i=B.useCallback(o=>{const l=oy(o.target);l&&t(a=>a?(a.set(l,Nm(l)),new Map(a)):null)},[]);return B.useEffect(()=>{const o=r.current;if(n!==o){l(o);const a=n.map(c=>{const u=oy(c);return u?(u.addEventListener("scroll",i,{passive:!0}),[u,Nm(u)]):null}).filter(c=>c!=null);t(a.length?new Map(a):null),r.current=n}return()=>{l(n),l(o)};function l(a){a.forEach(c=>{const u=oy(c);u==null||u.removeEventListener("scroll",i)})}},[i,n]),B.useMemo(()=>n.length?e?Array.from(e.values()).reduce((o,l)=>T1(o,l),Nd):WS(n):Nd,[n,e])}function PC(n,e){e===void 0&&(e=[]);const t=B.useRef(null);return B.useEffect(()=>{t.current=null},e),B.useEffect(()=>{const r=n!==Nd;r&&!t.current&&(t.current=n),!r&&t.current&&(t.current=null)},[n]),t.current?R0(n,t.current):Nd}function GU(n){B.useEffect(()=>{if(!J0)return;const e=n.map(t=>{let{sensor:r}=t;return r.setup==null?void 0:r.setup()});return()=>{for(const t of e)t==null||t()}},n.map(e=>{let{sensor:t}=e;return t}))}function VU(n,e){return B.useMemo(()=>n.reduce((t,r)=>{let{eventName:i,handler:o}=r;return t[i]=l=>{o(l,e)},t},{}),[n,e])}function GS(n){return B.useMemo(()=>n?pU(n):null,[n])}const DC=[];function ZU(n,e){e===void 0&&(e=Y1);const[t]=n,r=GS(t?lf(t):null),[i,o]=B.useState(DC);function l(){o(()=>n.length?n.map(c=>zS(c)?r:new I2(e(c),c)):DC)}const a=Q0({callback:l});return ih(()=>{a==null||a.disconnect(),l(),n.forEach(c=>a==null?void 0:a.observe(c))},[n]),i}function XU(n){if(!n)return null;if(n.children.length>1)return n;const e=n.children[0];return ev(e)?e:n}function KU(n){let{measure:e}=n;const[t,r]=B.useState(null),i=B.useCallback(u=>{for(const{target:p}of u)if(ev(p)){r(b=>{const w=e(p);return b?{...b,width:w.width,height:w.height}:w});break}},[e]),o=Q0({callback:i}),l=B.useCallback(u=>{const p=XU(u);o==null||o.disconnect(),p&&(o==null||o.observe(p)),r(p?e(p):null)},[e,o]),[a,c]=A0(l);return B.useMemo(()=>({nodeRef:a,rect:t,setRef:c}),[t,a,c])}const JU=[{sensor:O2,options:{}},{sensor:M2,options:{}}],QU={current:{}},s0={draggable:{measure:AC},droppable:{measure:AC,strategy:F1.WhileDragging,frequency:Bm.Optimized},dragOverlay:{measure:Y1}};class Rp extends Map{get(e){var t;return e!=null&&(t=super.get(e))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return(t=(r=this.get(e))==null?void 0:r.node.current)!=null?t:void 0}}const qU={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Rp,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:k0},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:s0,measureDroppableContainers:k0,windowRect:null,measuringScheduled:!1},jU={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:k0,draggableNodes:new Map,over:null,measureDroppableContainers:k0},q0=B.createContext(jU),VS=B.createContext(qU);function $U(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Rp}}}function eY(n,e){switch(e.type){case Na.DragStart:return{...n,draggable:{...n.draggable,initialCoordinates:e.initialCoordinates,active:e.active}};case Na.DragMove:return n.draggable.active==null?n:{...n,draggable:{...n.draggable,translate:{x:e.coordinates.x-n.draggable.initialCoordinates.x,y:e.coordinates.y-n.draggable.initialCoordinates.y}}};case Na.DragEnd:case Na.DragCancel:return{...n,draggable:{...n.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Na.RegisterDroppable:{const{element:t}=e,{id:r}=t,i=new Rp(n.droppable.containers);return i.set(r,t),{...n,droppable:{...n.droppable,containers:i}}}case Na.SetDroppableDisabled:{const{id:t,key:r,disabled:i}=e,o=n.droppable.containers.get(t);if(!o||r!==o.key)return n;const l=new Rp(n.droppable.containers);return l.set(t,{...o,disabled:i}),{...n,droppable:{...n.droppable,containers:l}}}case Na.UnregisterDroppable:{const{id:t,key:r}=e,i=n.droppable.containers.get(t);if(!i||r!==i.key)return n;const o=new Rp(n.droppable.containers);return o.delete(t),{...n,droppable:{...n.droppable,containers:o}}}default:return n}}function tY(n){let{disabled:e}=n;const{active:t,activatorEvent:r,draggableNodes:i}=B.useContext(q0),o=Pm(r),l=Pm(t==null?void 0:t.id);return B.useEffect(()=>{if(!e&&!r&&o&&l!=null){if(!R2(o)||document.activeElement===o.target)return;const a=i.get(l);if(!a)return;const{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(const p of[c.current,u.current]){if(!p)continue;const b=VW(p);if(b){b.focus();break}}})}},[r,e,i,l,o]),null}function nY(n,e){let{transform:t,...r}=e;return n!=null&&n.length?n.reduce((i,o)=>o({transform:i,...r}),t):t}function rY(n){return B.useMemo(()=>({draggable:{...s0.draggable,...n==null?void 0:n.draggable},droppable:{...s0.droppable,...n==null?void 0:n.droppable},dragOverlay:{...s0.dragOverlay,...n==null?void 0:n.dragOverlay}}),[n==null?void 0:n.draggable,n==null?void 0:n.droppable,n==null?void 0:n.dragOverlay])}function iY(n){let{activeNode:e,measure:t,initialRect:r,config:i=!0}=n;const o=B.useRef(!1),{x:l,y:a}=typeof i=="boolean"?{x:i,y:i}:i;ih(()=>{if(!l&&!a||!e){o.current=!1;return}if(o.current||!r)return;const u=e==null?void 0:e.node.current;if(!u||u.isConnected===!1)return;const p=t(u),b=DS(p,r);if(l||(b.x=0),a||(b.y=0),o.current=!0,Math.abs(b.x)>0||Math.abs(b.y)>0){const w=NS(u);w&&w.scrollBy({top:b.y,left:b.x})}},[e,l,a,r,t])}const ZS=B.createContext({...Nd,scaleX:1,scaleY:1});var tg;(function(n){n[n.Uninitialized=0]="Uninitialized",n[n.Initializing=1]="Initializing",n[n.Initialized=2]="Initialized"})(tg||(tg={}));const oY=B.memo(function(e){var t,r,i,o;let{id:l,accessibility:a,autoScroll:c=!0,children:u,sensors:p=JU,collisionDetection:b=aU,measuring:w,modifiers:S,..._}=e;const A=B.useReducer(eY,void 0,$U),[R,L]=A,[M,F]=qW(),[U,Z]=B.useState(tg.Uninitialized),D=U===tg.Initialized,{draggable:{active:V,nodes:N,translate:K},droppable:{containers:ue}}=R,H=V!=null?N.get(V):null,te=B.useRef({initial:null,translated:null}),ie=B.useMemo(()=>{var sn;return V!=null?{id:V,data:(sn=H==null?void 0:H.data)!=null?sn:QU,rect:te}:null},[V,H]),le=B.useRef(null),[ee,X]=B.useState(null),[re,oe]=B.useState(null),ge=Gp(_,Object.values(_)),se=nv("DndDescribedBy",l),q=B.useMemo(()=>ue.getEnabled(),[ue]),pe=rY(w),{droppableRects:Se,measureDroppableContainers:Me,measuringScheduled:be}=FU(q,{dragging:D,dependencies:[K.x,K.y],config:pe.droppable}),ke=DU(N,V),Le=B.useMemo(()=>re?Dm(re):null,[re]),Re=Ot(),Pe=BU(ke,pe.draggable.measure);iY({activeNode:V!=null?N.get(V):null,config:Re.layoutShiftCompensation,initialRect:Pe,measure:pe.draggable.measure});const Ie=LC(ke,pe.draggable.measure,Pe),Ge=LC(ke?ke.parentElement:null),Ue=B.useRef({activatorEvent:null,active:null,activeNode:ke,collisionRect:null,collisions:null,droppableRects:Se,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:ue,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ze=ue.getNodeFor((t=Ue.current.over)==null?void 0:t.id),$e=KU({measure:pe.dragOverlay.measure}),tt=(r=$e.nodeRef.current)!=null?r:ke,Xe=D?(i=$e.rect)!=null?i:Ie:null,Ye=!!($e.nodeRef.current&&$e.rect),yt=WU(Ye?null:Ie),at=GS(tt?lf(tt):null),ft=UU(D?ze??ke:null),_t=ZU(ft),bt=nY(S,{transform:{x:K.x-yt.x,y:K.y-yt.y,scaleX:1,scaleY:1},activatorEvent:re,active:ie,activeNodeRect:Ie,containerNodeRect:Ge,draggingNodeRect:Xe,over:Ue.current.over,overlayNodeRect:$e.rect,scrollableAncestors:ft,scrollableAncestorRects:_t,windowRect:at}),Kt=Le?T1(Le,K):null,ln=YU(ft),Gt=PC(ln),fn=PC(ln,[Ie]),qt=T1(bt,Gt),Tn=Xe?fU(Xe,bt):null,$t=ie&&Tn?b({active:ie,collisionRect:Tn,droppableRects:Se,droppableContainers:q,pointerCoordinates:Kt}):null,cn=oU($t,"id"),[Ht,Jt]=B.useState(null),ht=Ye?bt:T1(bt,fn),Rt=cU(ht,(o=Ht==null?void 0:Ht.rect)!=null?o:null,Ie),Pt=B.useRef(null),we=B.useCallback((sn,hn)=>{let{sensor:vn,options:nn}=hn;if(le.current==null)return;const en=N.get(le.current);if(!en)return;const Zn=sn.nativeEvent,Wn=new vn({active:le.current,activeNode:en,event:Zn,options:nn,context:Ue,onAbort(kn){if(!N.get(kn))return;const{onDragAbort:Ft}=ge.current,Xt={id:kn};Ft==null||Ft(Xt),M({type:"onDragAbort",event:Xt})},onPending(kn,ar,Ft,Xt){if(!N.get(kn))return;const{onDragPending:yn}=ge.current,Un={id:kn,constraint:ar,initialCoordinates:Ft,offset:Xt};yn==null||yn(Un),M({type:"onDragPending",event:Un})},onStart(kn){const ar=le.current;if(ar==null)return;const Ft=N.get(ar);if(!Ft)return;const{onDragStart:Xt}=ge.current,Nt={activatorEvent:Zn,active:{id:ar,data:Ft.data,rect:te}};Fa.unstable_batchedUpdates(()=>{Xt==null||Xt(Nt),Z(tg.Initializing),L({type:Na.DragStart,initialCoordinates:kn,active:ar}),M({type:"onDragStart",event:Nt}),X(Pt.current),oe(Zn)})},onMove(kn){L({type:Na.DragMove,coordinates:kn})},onEnd:Mn(Na.DragEnd),onCancel:Mn(Na.DragCancel)});Pt.current=Wn;function Mn(kn){return async function(){const{active:Ft,collisions:Xt,over:Nt,scrollAdjustedTranslate:yn}=Ue.current;let Un=null;if(Ft&&yn){const{cancelDrop:br}=ge.current;Un={activatorEvent:Zn,active:Ft,collisions:Xt,delta:yn,over:Nt},kn===Na.DragEnd&&typeof br=="function"&&await Promise.resolve(br(Un))&&(kn=Na.DragCancel)}le.current=null,Fa.unstable_batchedUpdates(()=>{L({type:kn}),Z(tg.Uninitialized),Jt(null),X(null),oe(null),Pt.current=null;const br=kn===Na.DragEnd?"onDragEnd":"onDragCancel";if(Un){const Rn=ge.current[br];Rn==null||Rn(Un),M({type:br,event:Un})}})}}},[N]),Ce=B.useCallback((sn,hn)=>(vn,nn)=>{const en=vn.nativeEvent,Zn=N.get(nn);if(le.current!==null||!Zn||en.dndKit||en.defaultPrevented)return;const Wn={active:Zn};sn(vn,hn.options,Wn)===!0&&(en.dndKit={capturedBy:hn.sensor},le.current=nn,we(vn,hn))},[N,we]),ot=NU(p,Ce);GU(p),ih(()=>{Ie&&U===tg.Initializing&&Z(tg.Initialized)},[Ie,U]),B.useEffect(()=>{const{onDragMove:sn}=ge.current,{active:hn,activatorEvent:vn,collisions:nn,over:en}=Ue.current;if(!hn||!vn)return;const Zn={active:hn,activatorEvent:vn,collisions:nn,delta:{x:qt.x,y:qt.y},over:en};Fa.unstable_batchedUpdates(()=>{sn==null||sn(Zn),M({type:"onDragMove",event:Zn})})},[qt.x,qt.y]),B.useEffect(()=>{const{active:sn,activatorEvent:hn,collisions:vn,droppableContainers:nn,scrollAdjustedTranslate:en}=Ue.current;if(!sn||le.current==null||!hn||!en)return;const{onDragOver:Zn}=ge.current,Wn=nn.get(cn),Mn=Wn&&Wn.rect.current?{id:Wn.id,rect:Wn.rect.current,data:Wn.data,disabled:Wn.disabled}:null,kn={active:sn,activatorEvent:hn,collisions:vn,delta:{x:en.x,y:en.y},over:Mn};Fa.unstable_batchedUpdates(()=>{Jt(Mn),Zn==null||Zn(kn),M({type:"onDragOver",event:kn})})},[cn]),ih(()=>{Ue.current={activatorEvent:re,active:ie,activeNode:ke,collisionRect:Tn,collisions:$t,droppableRects:Se,draggableNodes:N,draggingNode:tt,draggingNodeRect:Xe,droppableContainers:ue,over:Ht,scrollableAncestors:ft,scrollAdjustedTranslate:qt},te.current={initial:Xe,translated:Tn}},[ie,ke,$t,Tn,N,tt,Xe,Se,ue,Ht,ft,qt]),LU({...Re,delta:K,draggingRect:Tn,pointerCoordinates:Kt,scrollableAncestors:ft,scrollableAncestorRects:_t});const mt=B.useMemo(()=>({active:ie,activeNode:ke,activeNodeRect:Ie,activatorEvent:re,collisions:$t,containerNodeRect:Ge,dragOverlay:$e,draggableNodes:N,droppableContainers:ue,droppableRects:Se,over:Ht,measureDroppableContainers:Me,scrollableAncestors:ft,scrollableAncestorRects:_t,measuringConfiguration:pe,measuringScheduled:be,windowRect:at}),[ie,ke,Ie,re,$t,Ge,$e,N,ue,Se,Ht,Me,ft,_t,pe,be,at]),Et=B.useMemo(()=>({activatorEvent:re,activators:ot,active:ie,activeNodeRect:Ie,ariaDescribedById:{draggable:se},dispatch:L,draggableNodes:N,over:Ht,measureDroppableContainers:Me}),[re,ot,ie,Ie,L,se,N,Ht,Me]);return B.createElement(PS.Provider,{value:F},B.createElement(q0.Provider,{value:Et},B.createElement(VS.Provider,{value:mt},B.createElement(ZS.Provider,{value:Rt},u)),B.createElement(tY,{disabled:(a==null?void 0:a.restoreFocus)===!1})),B.createElement(eU,{...a,hiddenTextDescribedById:se}));function Ot(){const sn=(ee==null?void 0:ee.autoScrollEnabled)===!1,hn=typeof c=="object"?c.enabled===!1:c===!1,vn=D&&!sn&&!hn;return typeof c=="object"?{...c,enabled:vn}:{enabled:vn}}}),lY=B.createContext(null),NC="button",sY="Draggable";function aY(n){let{id:e,data:t,disabled:r=!1,attributes:i}=n;const o=nv(sY),{activators:l,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:p,draggableNodes:b,over:w}=B.useContext(q0),{role:S=NC,roleDescription:_="draggable",tabIndex:A=0}=i??{},R=(c==null?void 0:c.id)===e,L=B.useContext(R?ZS:lY),[M,F]=A0(),[U,Z]=A0(),D=VU(l,e),V=Gp(t);ih(()=>(b.set(e,{id:e,key:o,node:M,activatorNode:U,data:V}),()=>{const K=b.get(e);K&&K.key===o&&b.delete(e)}),[b,e]);const N=B.useMemo(()=>({role:S,tabIndex:A,"aria-disabled":r,"aria-pressed":R&&S===NC?!0:void 0,"aria-roledescription":_,"aria-describedby":p.draggable}),[r,S,A,R,_,p.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:N,isDragging:R,listeners:r?void 0:D,node:M,over:w,setNodeRef:F,setActivatorNodeRef:Z,transform:L}}function cY(){return B.useContext(VS)}const uY="Droppable",fY={timeout:25};function dY(n){let{data:e,disabled:t=!1,id:r,resizeObserverConfig:i}=n;const o=nv(uY),{active:l,dispatch:a,over:c,measureDroppableContainers:u}=B.useContext(q0),p=B.useRef({disabled:t}),b=B.useRef(!1),w=B.useRef(null),S=B.useRef(null),{disabled:_,updateMeasurementsFor:A,timeout:R}={...fY,...i},L=Gp(A??r),M=B.useCallback(()=>{if(!b.current){b.current=!0;return}S.current!=null&&clearTimeout(S.current),S.current=setTimeout(()=>{u(Array.isArray(L.current)?L.current:[L.current]),S.current=null},R)},[R]),F=Q0({callback:M,disabled:_||!l}),U=B.useCallback((N,K)=>{F&&(K&&(F.unobserve(K),b.current=!1),N&&F.observe(N))},[F]),[Z,D]=A0(U),V=Gp(e);return B.useEffect(()=>{!F||!Z.current||(F.disconnect(),b.current=!1,F.observe(Z.current))},[Z,F]),B.useEffect(()=>(a({type:Na.RegisterDroppable,element:{id:r,key:o,disabled:t,node:Z,rect:w,data:V}}),()=>a({type:Na.UnregisterDroppable,key:o,id:r})),[r]),B.useEffect(()=>{t!==p.current.disabled&&(a({type:Na.SetDroppableDisabled,id:r,key:o,disabled:t}),p.current.disabled=t)},[r,o,t,a]),{active:l,rect:w,isOver:(c==null?void 0:c.id)===r,node:Z,over:c,setNodeRef:D}}function XS(n,e,t){const r={...n};return e.top+n.y<=t.top?r.y=t.top-e.top:e.bottom+n.y>=t.top+t.height&&(r.y=t.top+t.height-e.bottom),e.left+n.x<=t.left?r.x=t.left-e.left:e.right+n.x>=t.left+t.width&&(r.x=t.left+t.width-e.right),r}const hY=n=>{let{containerNodeRect:e,draggingNodeRect:t,transform:r}=n;return!t||!e?r:XS(r,t,e)},gY=n=>{let{transform:e,draggingNodeRect:t,windowRect:r}=n;return!t||!r?e:XS(e,t,r)};function M0(n,e,t){const r=n.slice();return r.splice(t<0?r.length+t:t,0,r.splice(e,1)[0]),r}function pY(n,e){return n.reduce((t,r,i)=>{const o=e.get(r);return o&&(t[i]=o),t},Array(n.length))}function Uv(n){return n!==null&&n>=0}function vY(n,e){if(n===e)return!0;if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function bY(n){return typeof n=="boolean"?{draggable:n,droppable:n}:n}const KS=n=>{let{rects:e,activeIndex:t,overIndex:r,index:i}=n;const o=M0(e,r,t),l=e[i],a=o[i];return!a||!l?null:{x:a.left-l.left,y:a.top-l.top,scaleX:a.width/l.width,scaleY:a.height/l.height}},Yv={scaleX:1,scaleY:1},yY=n=>{var e;let{activeIndex:t,activeNodeRect:r,index:i,rects:o,overIndex:l}=n;const a=(e=o[t])!=null?e:r;if(!a)return null;if(i===t){const u=o[l];return u?{x:0,y:t<l?u.top+u.height-(a.top+a.height):u.top-a.top,...Yv}:null}const c=mY(o,i,t);return i>t&&i<=l?{x:0,y:-a.height-c,...Yv}:i<t&&i>=l?{x:0,y:a.height+c,...Yv}:{x:0,y:0,...Yv}};function mY(n,e,t){const r=n[e],i=n[e-1],o=n[e+1];return r?t<e?i?r.top-(i.top+i.height):o?o.top-(r.top+r.height):0:o?o.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}const JS="Sortable",QS=B.createContext({activeIndex:-1,containerId:JS,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:KS,disabled:{draggable:!1,droppable:!1}});function xY(n){let{children:e,id:t,items:r,strategy:i=KS,disabled:o=!1}=n;const{active:l,dragOverlay:a,droppableRects:c,over:u,measureDroppableContainers:p}=cY(),b=nv(JS,t),w=a.rect!==null,S=B.useMemo(()=>r.map(D=>typeof D=="object"&&"id"in D?D.id:D),[r]),_=l!=null,A=l?S.indexOf(l.id):-1,R=u?S.indexOf(u.id):-1,L=B.useRef(S),M=!vY(S,L.current),F=R!==-1&&A===-1||M,U=bY(o);ih(()=>{M&&_&&p(S)},[M,S,_,p]),B.useEffect(()=>{L.current=S},[S]);const Z=B.useMemo(()=>({activeIndex:A,containerId:b,disabled:U,disableTransforms:F,items:S,overIndex:R,useDragOverlay:w,sortedRects:pY(S,c),strategy:i}),[A,b,U.draggable,U.droppable,F,S,R,c,w,i]);return B.createElement(QS.Provider,{value:Z},e)}const wY=n=>{let{id:e,items:t,activeIndex:r,overIndex:i}=n;return M0(t,r,i).indexOf(e)},CY=n=>{let{containerId:e,isSorting:t,wasDragging:r,index:i,items:o,newIndex:l,previousItems:a,previousContainerId:c,transition:u}=n;return!u||!r||a!==o&&i===l?!1:t?!0:l!==i&&e===c},_Y={duration:200,easing:"ease"},qS="transform",SY=Vp.Transition.toString({property:qS,duration:0,easing:"linear"}),TY={roleDescription:"sortable"};function EY(n){let{disabled:e,index:t,node:r,rect:i}=n;const[o,l]=B.useState(null),a=B.useRef(t);return ih(()=>{if(!e&&t!==a.current&&r.current){const c=i.current;if(c){const u=Y1(r.current,{ignoreTransform:!0}),p={x:c.left-u.left,y:c.top-u.top,scaleX:c.width/u.width,scaleY:c.height/u.height};(p.x||p.y)&&l(p)}}t!==a.current&&(a.current=t)},[e,t,r,i]),B.useEffect(()=>{o&&l(null)},[o]),o}function AY(n){let{animateLayoutChanges:e=CY,attributes:t,disabled:r,data:i,getNewIndex:o=wY,id:l,strategy:a,resizeObserverConfig:c,transition:u=_Y}=n;const{items:p,containerId:b,activeIndex:w,disabled:S,disableTransforms:_,sortedRects:A,overIndex:R,useDragOverlay:L,strategy:M}=B.useContext(QS),F=RY(r,S),U=p.indexOf(l),Z=B.useMemo(()=>({sortable:{containerId:b,index:U,items:p},...i}),[b,i,U,p]),D=B.useMemo(()=>p.slice(p.indexOf(l)),[p,l]),{rect:V,node:N,isOver:K,setNodeRef:ue}=dY({id:l,data:Z,disabled:F.droppable,resizeObserverConfig:{updateMeasurementsFor:D,...c}}),{active:H,activatorEvent:te,activeNodeRect:ie,attributes:le,setNodeRef:ee,listeners:X,isDragging:re,over:oe,setActivatorNodeRef:ge,transform:se}=aY({id:l,data:Z,attributes:{...TY,...t},disabled:F.draggable}),q=WW(ue,ee),pe=!!H,Se=pe&&!_&&Uv(w)&&Uv(R),Me=!L&&re,be=Me&&Se?se:null,Le=Se?be??(a??M)({rects:A,activeNodeRect:ie,activeIndex:w,overIndex:R,index:U}):null,Re=Uv(w)&&Uv(R)?o({id:l,items:p,activeIndex:w,overIndex:R}):U,Pe=H==null?void 0:H.id,Ie=B.useRef({activeId:Pe,items:p,newIndex:Re,containerId:b}),Ge=p!==Ie.current.items,Ue=e({active:H,containerId:b,isDragging:re,isSorting:pe,id:l,index:U,items:p,newIndex:Ie.current.newIndex,previousItems:Ie.current.items,previousContainerId:Ie.current.containerId,transition:u,wasDragging:Ie.current.activeId!=null}),ze=EY({disabled:!Ue,index:U,node:N,rect:V});return B.useEffect(()=>{pe&&Ie.current.newIndex!==Re&&(Ie.current.newIndex=Re),b!==Ie.current.containerId&&(Ie.current.containerId=b),p!==Ie.current.items&&(Ie.current.items=p)},[pe,Re,b,p]),B.useEffect(()=>{if(Pe===Ie.current.activeId)return;if(Pe!=null&&Ie.current.activeId==null){Ie.current.activeId=Pe;return}const tt=setTimeout(()=>{Ie.current.activeId=Pe},50);return()=>clearTimeout(tt)},[Pe]),{active:H,activeIndex:w,attributes:le,data:Z,rect:V,index:U,newIndex:Re,items:p,isOver:K,isSorting:pe,isDragging:re,listeners:X,node:N,overIndex:R,over:oe,setNodeRef:q,setActivatorNodeRef:ge,setDroppableNodeRef:ue,setDraggableNodeRef:ee,transform:ze??Le,transition:$e()};function $e(){if(ze||Ge&&Ie.current.newIndex===U)return SY;if(!(Me&&!R2(te)||!u)&&(pe||Ue))return Vp.Transition.toString({...u,property:qS})}}function RY(n,e){var t,r;return typeof n=="boolean"?{draggable:n,droppable:!1}:{draggable:(t=n==null?void 0:n.draggable)!=null?t:e.draggable,droppable:(r=n==null?void 0:n.droppable)!=null?r:e.droppable}}so.Down,so.Right,so.Up,so.Left;function L0(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(e(t))return t;if(!t.children||t.children.length<1)continue;const r=L0(t.children,e);if(r)return r}}function rv(n,e){Array.isArray(n)||(n=[n]);for(const t of n)e(t),!(!t.children||t.children.length<1)&&rv(t.children,e)}function jS(n,e){Array.isArray(n)||(n=[n]);const t=[];return rv(n,(r,i)=>t.push(e(r,i))),t}function $S(n,e){Array.isArray(n)||(n=[n]);for(const t of n){if(!e(t))return!1;if(!(!t.children||t.children.length<1)&&!$S(t.children,e))return!1}return!0}function kY(n,e){Array.isArray(n)||(n=[n]);const t=[];return rv(n,(r,i)=>{e(r,i)&&t.push(r)}),t}function IY(n){Array.isArray(n)||(n=[n]);let e=0;return rv(n,()=>e++),e}function MY(n,e,t,r){if(r(e,t))return null;Array.isArray(n)||(n=[n]);const i=L0(n,l=>{var a;return(a=l.children)==null?void 0:a.some(c=>r(c,e))}),o=L0(n,l=>{var a;return(a=l.children)==null?void 0:a.some(c=>r(c,t))});if(i===void 0&&o===void 0){const l=n.findIndex(c=>r(c,e)),a=n.findIndex(c=>r(c,t));return n.splice(l,1),n.splice(a,0,e),[...n]}else if(i!==void 0&&o!==void 0&&r(i,o)&&i.children){const l=i.children.findIndex(c=>r(c,e)),a=i.children.findIndex(c=>r(c,t));return l===void 0||a===void 0?null:(i.children.splice(l,1),i.children.splice(a,0,e),i.children=[...i.children],[...n])}return null}function LY(n,e,t){const r=[],i=[...e];for(;i.length>0;){const o=i.shift();if(o&&!r.find(l=>t(l,o))&&(r.push(o),!(!o.children||o.children.length<1)))for(const l of o.children)i.push(l)}return r}function OY(n,e,t){Array.isArray(n)||(n=[n]);const r=jS(n,l=>l),i=[],o=[...e];for(;o.length>0;){const l=o.shift();if(!l||i.find(c=>t(c,l)))continue;i.push(l);const a=r.find(c=>{var u;return(u=c.children)==null?void 0:u.some(p=>t(p,l))});a&&o.push(a)}return i}const ng={find:L0,forEach:rv,map:jS,every:$S,filter:kY,length:IY,replace:MY,descendants:LY,ancestors:OY},PY="_AWrap_1n0ow_1",DY="_AContainer_1n0ow_10",NY="_ATree_1n0ow_18",FY="_ATreeBody_1n0ow_30",BY="_TreeTopAddon_1n0ow_36",zY="_CoverBorder_1n0ow_46",HY="_InsertBorder_1n0ow_55",WY="_ATreeHeader_1n0ow_86",UY="_ATreeBodyHeader_1n0ow_92",YY="_ATreeBodyHeaderResources_1n0ow_102",GY="_ATreeItem_1n0ow_108",VY="_IsSelectUsed_1n0ow_124",ZY="_IsSelected_1n0ow_127",XY="_IsSearchSelected_1n0ow_132",KY="_IsHovered_1n0ow_143",JY="_CheckBox_1n0ow_147",QY="_Indents_1n0ow_159",qY="_ExpandIcon_1n0ow_166",jY="_Content_1n0ow_179",$Y="_RightSticky_1n0ow_188",eG="_SearchInputWrap_1n0ow_197",tG="_SearchInput_1n0ow_197",nG="_RightAddon_1n0ow_209",rG="_RightAddonIcon_1n0ow_220",iG="_Loader_1n0ow_227",oG="_IsChildOfDragSource_1n0ow_232",bo={AWrap:PY,AContainer:DY,ATree:NY,ATreeBody:FY,TreeTopAddon:BY,CoverBorder:zY,InsertBorder:HY,ATreeHeader:WY,ATreeBodyHeader:UY,ATreeBodyHeaderResources:YY,ATreeItem:GY,IsSelectUsed:VY,IsSelected:ZY,IsSearchSelected:XY,IsHovered:KY,CheckBox:JY,Indents:QY,ExpandIcon:qY,Content:jY,RightSticky:$Y,SearchInputWrap:eG,SearchInput:tG,RightAddon:nG,RightAddonIcon:rG,Loader:iG,IsChildOfDragSource:oG},lG=24,sG=8,aG=12,cG=n=>{const{isEqual:e,item:t,itemId:r,selectDisabled:i,selectUnused:o,isParentDisabled:l,indents:a,extIndents:c,useExpand:u,useSelect:p,useSearch:b,showCheckbox:w,icons:S,isSelectMulti:_,isDraggable:A,isParentCheckHovered:R,hoverdItem:L,onMouseOver:M,onMouseLeave:F,ContentRenderer:U,TreeItemRenderer:Z,RightStickyAddon:D,resources:V,containerRef:N,TreeItemStyle:K,TreeItemClassName:ue,searchItemStyle:H,searchItemClassName:te,height:ie,isDragSrcItem:le,isChildOfDragItem:ee,getItemId:X,treeItemTooltip:re,treeItemTooltipDelay:oe,treeItemTooltipDirection:ge,treeItemTooltipDistance:se}=n,{children:q}=B.useMemo(()=>t,[t]),[pe,Se]=B.useMemo(()=>u,[u]),[Me,be]=B.useMemo(()=>p,[p]),[ke,Le]=B.useMemo(()=>b,[b]),Re=B.useMemo(()=>o?o(t):!1,[o,t]),Pe=B.useMemo(()=>!i||l?l:i(t),[i,l,t]),Ie=B.useMemo(()=>pe.some(Ft=>e(Ft,t)),[pe,e,t]),Ge=B.useMemo(()=>!q||q.length<1?"noChild":Ie?"expanded":"collapsed",[q,Ie]),Ue=B.useMemo(()=>Or.getContent(S,n),[S,n]),ze=B.useCallback((Ft,Xt)=>Ue&&Ft in Ue&&typeof Ue[Ft]=="number"?Ue[Ft]:Xt,[Ue]),$e=B.useMemo(()=>ze("iconWidth",lG),[ze]),tt=B.useMemo(()=>ze("iconGap",sG),[ze]),Xe=B.useMemo(()=>ze("iconPadding",aG),[ze]),Ye=B.useMemo(()=>{if(!Ue)return null;const Ft=Ue[Ge];if(!Ft)return null;if(Gm.includes(Ft))return O.jsx(Eo,{icon:Ft,style:{width:$e,height:$e}});if(B.isValidElement(Ft)){const Xt=Ft.props;return B.cloneElement(Ft,{style:{width:$e,height:$e,...Xt==null?void 0:Xt.style}})}return Ft},[Ue,Ge,$e]),yt=B.useCallback(Ft=>{!Se||Ge==="noChild"||(Se(Ie?pe.filter(Xt=>!e(Xt,t)):[...pe,t]),Ft.stopPropagation())},[Se,pe,Ie,t,e,Ge]),at=B.useMemo(()=>Me.some(Ft=>e(Ft,t)),[Me,e,t]),ft=B.useCallback(()=>{!be||Pe||(be(_?at?Me.filter(Ft=>!e(Ft,t)):[...Me,t]:[t]),ke&&Le&&ke.items.some(Ft=>e(Ft,t))&&Le({...ke,item:t}))},[_,Pe,at,ke,Le,be,e,Me,t]),_t=B.useMemo(()=>ke==null?void 0:ke.items.some(Ft=>e(Ft,t)),[ke,e,t]),bt=B.useMemo(()=>_t&&(ke==null?void 0:ke.item)&&e(ke.item,t),[_t,ke,e,t]),Kt=B.useRef(null),ln=B.useRef(null),{attributes:Gt,listeners:fn,setNodeRef:qt,transform:Tn,transition:$t,isDragging:cn}=AY({id:r||`item-${JSON.stringify(t)}`,disabled:!A||!!l||!r}),Ht=B.useMemo(()=>ee?ee(t):!1,[ee,t]),Jt=B.useMemo(()=>{const Ft=Tn?{transform:Vp.Transform.toString(Tn),transition:$t,opacity:cn?.5:1,zIndex:cn?1:"auto"}:{};return le||Ht?{...Ft,opacity:.5,zIndex:10}:Ft},[Tn,$t,cn,le,Ht]);B.useEffect(()=>{r&&qt&&ln.current&&qt(ln.current)},[r,qt]),B.useEffect(()=>{setTimeout(()=>{if(bt&&Kt.current&&N.current){const{top:Ft,bottom:Xt}=Kt.current.getBoundingClientRect(),{top:Nt,bottom:yn}=N.current.getBoundingClientRect();(Ft<Nt||Xt>yn)&&Kt.current.scrollIntoView({behavior:"smooth",block:"center"})}},10)},[N,bt]);const[ht,Rt]=B.useState(!1),Pt=B.useCallback(()=>!Pe&&Rt(!0),[Pe]),we=B.useCallback(()=>!Pe&&Rt(!1),[Pe]),Ce=B.useMemo(()=>ng.map(t,Ft=>Ft).filter(Ft=>!(i!=null&&i(Ft))&&!(o!=null&&o(Ft))),[i,o,t]),ot=B.useMemo(()=>!w||!_?!1:at&&Ce.some(Ft=>Me.some(Xt=>e(Ft,Xt)))&&Ce.some(Ft=>!Me.some(Xt=>e(Ft,Xt))),[w,_,at,Ce,e,Me]),mt=B.useMemo(()=>w?_?Ce.every(Ft=>Me.some(Xt=>e(Ft,Xt))):Me.some(Ft=>e(Ft,t)):!1,[w,_,Ce,t,e,Me]),Et=B.useCallback(()=>{if(!(!be||Pe))if(_)if(at){const Ft=Me.filter(Xt=>!(o!=null&&o(Xt))&&!(i!=null&&i(Xt))&&Ce.some(Nt=>e(Nt,Xt)));Ft.length>0&&be(Me.filter(Xt=>!Ft.some(Nt=>e(Xt,Nt))))}else{const Ft=Ce.filter(Xt=>!(o!=null&&o(Xt))&&!(i!=null&&i(Xt))&&!Me.some(Nt=>e(Nt,Xt)));Ft.length>0&&be([...Me,...Ft])}else be([t])},[Pe,i,o,_,be,e,at,Me,Ce,t]),Ot=B.useCallback(Ft=>{Pe||Et(),Ft.stopPropagation()},[Pe,Et]),sn=B.useMemo(()=>{if(!w||!_||Pe)return"";if(at){const Xt=Me.filter(Nt=>!(o!=null&&o(Nt))&&!(i!=null&&i(Nt))&&Ce.some(yn=>e(yn,Nt)));if(Xt.length>0)return V["deselect n"](Xt.length)}const Ft=Ce.filter(Xt=>!(o!=null&&o(Xt))&&!(i!=null&&i(Xt))&&!Me.some(Nt=>e(Nt,Xt)));return V["select n"](Ft.length)},[i,o,V,Pe,w,_,at,Ce,e,Me]),hn=B.useMemo(()=>Or.getContent(D,n),[D,n]),vn=B.useMemo(()=>Or.getContent(K,n),[n,K]),nn=B.useMemo(()=>Or.getContent(ue,n),[n,ue]),en=B.useMemo(()=>Or.getContent(te,n),[n,te]),Zn=B.useMemo(()=>Or.getContent(H,n),[n,H]),Wn=B.useMemo(()=>Or.getContent(re,n),[n,re]),Mn=B.useMemo(()=>Or.getContent(oe,n),[n,oe]),kn=B.useMemo(()=>Or.getContent(ge,n),[n,ge]),ar=B.useMemo(()=>Or.getContent(se,n),[n,se]);return O.jsxs(B.Fragment,{children:[O.jsxs(Ki,{abaseRef:ln,isDisabled:Pe,className:St.clsx(bo.ATreeItem,at&&bo.IsSelected,!Pe&&(ht||R)&&bo.IsHovered,_t&&bo.IsSearched,bt&&(en||bo.IsSearchSelected),!Re&&bo.IsSelectUsed,Ht&&bo.IsChildOfDragSource,"NoSelect",nn),style:{...vn,...bt&&Zn?Zn:{},"--ATreeItem_height":`${ie}px`,...Jt||{}},onClick:ft,onMouseLeave:Ft=>F==null?void 0:F(Ft,t),onMouseOver:Ft=>M==null?void 0:M(Ft,t),...A&&!Pe&&Gt?Gt:{},...A&&!Pe&&fn?fn:{},tooltip:Wn,tooltipDelay:Mn,tooltipDirection:kn,tooltipDistance:ar,children:[w&&O.jsx(A1,{className:bo.CheckBox,isDisabled:Pe,isIndeterminate:ot,tooltip:sn,useCheck:[+mt,Et],style:{visibility:Pe||Re?"hidden":"visible",zIndex:Pe||Re?0:2},onClick:Ot,onMouseOut:we,onMouseOver:Pt}),O.jsx("div",{className:bo.Indents,style:{paddingLeft:w?0:Ue!=null&&Ue.noChild?Xe:0},children:a.map((Ft,Xt)=>{const Nt=Xt===a.length-1;return O.jsx(E_,{value:Ft,map:{Collapsed:c?c({iconWidth:$e}).collapsed:O.jsx(fG,{iconWidth:$e}),Expanded:c?c({iconWidth:$e,isLast:Nt}).expanded:O.jsx(uG,{iconWidth:$e,isLast:Nt}),IsLast:c?c({iconWidth:$e}).isLast:O.jsx(dG,{iconWidth:$e})}},Xt)})}),Ye&&O.jsx("div",{className:bo.ExpandIcon,style:{"--ATree_icon-width":`${$e}px`,"--ATree_icon-gap":`${tt}px`},onClick:yt,children:Ye}),O.jsx("div",{className:St.clsx(bo.Content,"NoSelect"),children:O.jsx(U,{containerRef:N,ContentRenderer:U,extIndents:c,height:ie,hoverdItem:L,icons:S,indents:a,isDraggable:A,isEqual:e,isParentCheckHovered:_&&(ht||R),isSelectMulti:_,item:t,itemId:r,resources:V,RightStickyAddon:D,searchItemClassName:en,searchItemStyle:H,showCheckbox:w,TreeItemClassName:ue,TreeItemRenderer:Z,TreeItemStyle:K,treeItemTooltip:re,treeItemTooltipDelay:oe,treeItemTooltipDirection:ge,treeItemTooltipDistance:se,useExpand:u,useSearch:b,useSelect:p,onMouseLeave:F,onMouseOver:M})}),hn&&O.jsx("div",{className:bo.RightSticky,children:hn})]}),Ie&&(q==null?void 0:q.map((Ft,Xt)=>O.jsx(Z,{containerRef:N,ContentRenderer:U,extIndents:c,height:ie,hoverdItem:L,icons:S,isChildOfDragItem:ee,isDraggable:A,isDragSrcItem:le,isEqual:e,isParentCheckHovered:_&&(ht||R),isSelectMulti:_,item:Ft,itemId:X?`${X(t)}-child-${Xt}`:r?`${r}-child-${Xt}`:void 0,resources:V,RightStickyAddon:D,searchItemClassName:en,searchItemStyle:H,selectDisabled:i,selectUnused:o,showCheckbox:w,TreeItemClassName:ue,TreeItemRenderer:Z,TreeItemStyle:K,treeItemTooltip:re,treeItemTooltipDelay:oe,treeItemTooltipDirection:ge,treeItemTooltipDistance:se,useExpand:u,useSearch:b,useSelect:p,indents:[...a.map(Nt=>Nt==="IsLast"?"Collapsed":Nt),Xt===q.length-1?"IsLast":"Expanded"],onMouseLeave:F,onMouseOver:M},X?X(Ft):Xt)))]})},uG=n=>{const e=gn.c(9),{iconWidth:t,isLast:r}=n,i=t/8*3,o=t/2,l=t/8;let a;e[0]!==i||e[1]!==o||e[2]!==l?(a={width:i,height:"100%",borderLeft:"var(--ATree_Indent_border)",marginLeft:o,marginRight:l,boxSizing:"border-box",transition:"border-color var(--Transition)"},e[0]=i,e[1]=o,e[2]=l,e[3]=a):a=e[3];let c;e[4]!==r?(c=r&&O.jsx("div",{style:{borderBottom:"var(--ATree_Indent_border)",height:"50%",transition:"border-color var(--Transition)"}}),e[4]=r,e[5]=c):c=e[5];let u;return e[6]!==a||e[7]!==c?(u=O.jsx("div",{style:a,children:c}),e[6]=a,e[7]=c,e[8]=u):u=e[8],u},fG=n=>{const e=gn.c(2),{iconWidth:t}=n;let r;return e[0]!==t?(r=O.jsx("div",{style:{width:t,height:"100%",borderLeft:"none",marginLeft:0,transition:"border-color var(--Transition)"}}),e[0]=t,e[1]=r):r=e[1],r},dG=n=>{const e=gn.c(4),{iconWidth:t}=n,r=t/8*3,i=t/2,o=t/8;let l;return e[0]!==r||e[1]!==i||e[2]!==o?(l=O.jsx("div",{style:{width:r,height:"50%",borderLeft:"var(--ATree_Indent_border)",borderBottom:"var(--ATree_Indent_border)",marginLeft:i,marginRight:o,boxSizing:"border-box",transition:"border-color var(--Transition)"}}),e[0]=r,e[1]=i,e[2]=o,e[3]=l):l=e[3],l},hG=n=>{const e=gn.c(26),{isEqual:t,searchResult:r,initSearch:i,searchUp:o,searchDown:l,searchEnter:a,isDisabled:c,isLoading:u,resources:p,maxLength:b,autoFocus:w}=n;let S;e[0]!==l||e[1]!==a||e[2]!==o?(S=K=>{K.key==="Enter"?a():K.key==="ArrowDown"?l():K.key==="ArrowUp"&&o(),K.preventDefault(),K.stopPropagation()},e[0]=l,e[1]=a,e[2]=o,e[3]=S):S=e[3];const _=S;let A;e[4]!==i?(A=K=>{i(K)},e[4]=i,e[5]=A):A=e[5];const R=A;let L;c||u?L=-1:L=void 0;const M=L,F=p["Search(Placeholder)"],U=(r==null?void 0:r.keyword)??"";let Z;e[6]!==R||e[7]!==U?(Z=[U,R],e[6]=R,e[7]=U,e[8]=Z):Z=e[8];let D;e[9]!==t||e[10]!==p||e[11]!==l||e[12]!==a||e[13]!==r||e[14]!==o?(D=O.jsx(gG,{isEqual:t,resources:p,searchDown:l,searchEnter:a,searchResult:r,searchUp:o}),e[9]=t,e[10]=p,e[11]=l,e[12]=a,e[13]=r,e[14]=o,e[15]=D):D=e[15];let V;e[16]===Symbol.for("react.memo_cache_sentinel")?(V={className:bo.SearchInputWrap},e[16]=V):V=e[16];let N;return e[17]!==w||e[18]!==c||e[19]!==b||e[20]!==_||e[21]!==F||e[22]!==Z||e[23]!==D||e[24]!==M?(N=O.jsx(Ih,{autoFocus:w,className:bo.SearchInput,isDisabled:c,maxLength:b,placeholder:F,tabIndex:M,useValue:Z,RightAddon:D,wrapProps:V,onKeyDown:_}),e[17]=w,e[18]=c,e[19]=b,e[20]=_,e[21]=F,e[22]=Z,e[23]=D,e[24]=M,e[25]=N):N=e[25],N},gG=n=>{const e=gn.c(22),{isEqual:t,searchResult:r,searchUp:i,searchDown:o,searchEnter:l,resources:a}=n;let c;if(!r||r.items.length<1)c=0;else{let N;e[0]!==t||e[1]!==r.item?(N=K=>r.item&&t(K,r.item),e[0]=t,e[1]=r.item,e[2]=N):N=e[2],c=r.items.findIndex(N)+1}const u=c;let p;!r||r.items.length<1?p=0:p=r.items.length;const b=p;let w;u<2?w=!0:w=!1;const S=w;let _;u>=b?_=!0:_=!1;const A=_;let R;e[3]!==S||e[4]!==i?(R=N=>{N.stopPropagation(),!S&&i()},e[3]=S,e[4]=i,e[5]=R):R=e[5];const L=R;let M;e[6]!==A||e[7]!==o?(M=N=>{N.stopPropagation(),!A&&o()},e[6]=A,e[7]=o,e[8]=M):M=e[8];const F=M;let U;e[9]!==l?(U=N=>{N.stopPropagation(),l()},e[9]=l,e[10]=U):U=e[10];const Z=U;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=St.clsx(bo.RightAddon,"NoSelect"),e[11]=D):D=e[11];let V;return e[12]!==A||e[13]!==S||e[14]!==b||e[15]!==F||e[16]!==Z||e[17]!==L||e[18]!==u||e[19]!==a||e[20]!==r?(V=O.jsx("div",{className:D,children:r?O.jsxs(O.Fragment,{children:[u,"/",b,O.jsx(Ki,{isDisabled:S,onClick:L,children:O.jsx(Eo,{className:bo.RightAddonIcon,icon:"ArrowUp",mask:""})}),O.jsx(Ki,{isDisabled:A,onClick:F,children:O.jsx(Eo,{className:bo.RightAddonIcon,icon:"ArrowDown"})})]}):O.jsx(js,{className:bo.RightAddonIcon,icon:"Search",tooltip:a["Search(Button)"],type:"Raw",onClick:Z})}),e[12]=A,e[13]=S,e[14]=b,e[15]=F,e[16]=Z,e[17]=L,e[18]=u,e[19]=a,e[20]=r,e[21]=V):V=e[21],V},pG=n=>{var Rn;const{pk:e,selectDisabled:t,selectUnused:r,useItems:i,useExpand:o,useSelect:l,useSearch:a,showCheckbox:c,icons:u={noChild:"Folder",collapsed:"FolderCopy",expanded:"FolderOpen"},indents:p,isSelectMulti:b=!1,noSearch:w=!1,isDraggable:S,noSyncSearchSelect:_=!1,actionRef:A,placeholder:R,searchPredicate:L=bG,isDisabled:M,isLoading:F,ContentRenderer:U=vG,TreeItemRenderer:Z=cG,RightStickyAddon:D,TopRightAddon:V,TreeTopAddon:N,resources:K,maxLength:ue,autoFocus:H,TreeHeaderStyle:te,TreeHeaderClassName:ie,TreeItemStyle:le,TreeItemClassName:ee,OverflowPadding:X,insertBorder:re,width:oe,searchItemClassName:ge,searchItemStyle:se,height:q=40,treeItemTooltip:pe,treeItemTooltipDelay:Se,treeItemTooltipDirection:Me,treeItemTooltipDistance:be,...ke}=n,Le=B.useMemo(()=>({...Cr.ATree,...K}),[K]),Re=B.useCallback((ct,pt)=>!ct||!pt?!1:e!==void 0?Array.isArray(e)?e.every(dn=>ct&&pt&&ct[dn]!==void 0&&pt[dn]!==void 0&&ad.isEqual(ct[dn],pt[dn])):ct&&pt&&ct[e]!==void 0&&pt[e]!==void 0&&ad.isEqual(ct[e],pt[e]):ad.isEqual(ct,pt),[e]),Pe=B.useRef(null),[Ie,Ge]=yo(i,[]),Ue=B.useMemo(()=>ng.map(Ie,ct=>ct),[Ie]),[ze,$e]=yo(o,[]),[tt,Xe]=yo(l,[]),[Ye,yt]=yo(a,void 0),at=B.useCallback(ct=>{if(M||!$e||ze.some(Sn=>Re(Sn,ct)))return;const pt=[];let dn=ct;for(;dn;){const Sn=dn;ze.find(Wr=>Re(Wr,Sn))||pt.push(Sn),dn=Ue.find(Wr=>{var or;return(or=Wr.children)==null?void 0:or.some(pn=>Re(pn,Sn))})}$e([...ze,...pt])},[ze,M,Re,$e,Ue]),ft=B.useCallback(()=>{!$e||M||$e([...Ue])},[Ue,M,$e]),_t=B.useCallback(()=>{!$e||M||$e([])},[$e,M]),bt=B.useCallback(ct=>{!Xe||M||r!=null&&r(ct)||(Xe([ct]),at(ct))},[Xe,M,r,at]),Kt=B.useCallback(ct=>{if(!yt||M)return;if(!ct||w){yt(void 0),_||Xe==null||Xe([]);return}const pt=ng.filter(Ie,Sn=>L(ct,Sn));let dn;if(pt.find(Sn=>(Ye==null?void 0:Ye.item)&&Re(Sn,Ye.item))?dn=Ye==null?void 0:Ye.item:pt.length>0&&(dn=pt[0]),yt({keyword:ct,items:pt,item:dn}),dn&&at(dn),Xe&&!_)if(b)Xe(pt);else{const Sn=pt.find(Wr=>dn&&Re(Wr,dn));Xe(Sn?[Sn]:[])}},[Ie,M,Re,L,yt,Xe,at,_,w,b,Ye]),ln=B.useRef(!1);B.useEffect(()=>{ln.current=!0},[Ie]),B.useEffect(()=>{Ye&&ln.current&&(Kt(Ye.keyword),ln.current=!1)},[Kt,Ye]);const Gt=B.useCallback(()=>{if(!Ye||!yt||M)return;let ct=Ye.items.findIndex(pt=>Ye.item&&Re(pt,Ye.item))-1;ct<0||(yt({...Ye,item:Ye.items[ct]}),at(Ye.items[ct]),_||bt(Ye.items[ct]))},[Ye,at,yt,M,bt,Re,_]),fn=B.useCallback(()=>{if(!Ye||!yt||M)return;let ct=Ye.items.findIndex(pt=>Ye.item&&Re(pt,Ye.item))+1;ct>=Ye.items.length||(yt({...Ye,item:Ye.items[ct]}),at(Ye.items[ct]),_||bt(Ye.items[ct]))},[Ye,at,M,yt,bt,Re,_]),qt=B.useCallback(()=>{if(!Ye||!yt||M)return;let ct=Ye.items.findIndex(dn=>Ye.item&&Re(dn,Ye.item));if(!_||r!=null&&r(Ye.items[ct])){fn();return}if(tt.some(dn=>Ye.item&&Re(dn,Ye.item))){let dn=ct+1;const Sn=Ye.items[dn];if(dn>=Ye.items.length)return;yt({...Ye,item:Sn}),bt(Sn)}else bt(Ye.items[ct])},[Ye,yt,M,tt,_,fn,Re,bt,r]),[Tn,$t]=B.useState(!1),cn=B.useCallback(()=>$t(!0),[]),Ht=B.useCallback(()=>$t(!1),[]),Jt=B.useMemo(()=>r?ng.map(Ie,ct=>ct).filter(ct=>!r(ct)):t?ng.map(Ie,ct=>ct).filter(ct=>!t(ct)):ng.map(Ie,ct=>ct),[r,t,Ie]),ht=B.useMemo(()=>!c||!b?!1:tt.length>0&&Jt.length>tt.length,[c,b,tt,Jt]),Rt=B.useMemo(()=>!c||!b?!1:tt.length>0&&Jt.length===tt.length,[c,b,tt,Jt]),Pt=B.useCallback(()=>{if(!Xe||!b||M)return;const ct=tt.filter(pt=>!(r!=null&&r(pt))&&!(t!=null&&t(pt))&&Jt.some(dn=>Re(dn,pt)));if(ct.length>0)Xe(tt.filter(pt=>!ct.some(dn=>Re(pt,dn))));else{const pt=Jt.filter(dn=>!(r!=null&&r(dn))&&!(t!=null&&t(dn))&&!tt.some(Sn=>Re(Sn,dn)));pt.length>0&&Xe([...tt,...pt])}},[b,M,r,t,Xe,tt,Jt,Re]),we=B.useMemo(()=>{if(!c||!b||M)return"";const ct=tt.filter(pt=>!(r!=null&&r(pt))&&!(t!=null&&t(pt))&&Jt.some(dn=>Re(dn,pt)));if(ct.length>0)return Le["deselect n"](ct.length);{const pt=Jt.filter(dn=>!(r!=null&&r(dn))&&!(t!=null&&t(dn))&&!tt.some(Sn=>Re(Sn,dn)));return Le["select n"](pt.length)}},[r,t,M,Le,c,b,Jt,tt,Re]),[Ce,ot]=B.useState(),mt=tU(TC(O2,{activationConstraint:{distance:8}}),TC(M2)),Et=B.useRef(new Map),Ot=B.useCallback(ct=>{if(!Et.current.has(ct)){const pt=`item_${ad.uniqueId()}`;Et.current.set(ct,pt)}return Et.current.get(ct)},[]),sn=B.useCallback(ct=>Ue.find(pt=>Ot(pt)===ct),[Ue,Ot]),hn=B.useCallback(ct=>!Ce||!Ce.children?!1:Ce.children.some(dn=>Re(dn,ct))?!0:Ce.children.some(dn=>dn.children?ng.find(dn,Sn=>Re(Sn,ct))!==void 0:!1),[Ce,Re]),vn=B.useCallback(ct=>{if(!S||M)return;const pt=sn(ct.active.id);pt&&ot(pt)},[S,M,sn]),nn=B.useCallback((ct,pt,dn,Sn)=>{const Wr=ct.findIndex(pn=>Sn(pn,pt)),or=ct.findIndex(pn=>Sn(pn,dn));return Wr!==-1&&or!==-1?M0(ct,Wr,or):ct.map(pn=>{if(!pn.children)return pn;const Dt=pn.children.findIndex(rt=>Sn(rt,pt)),Ee=pn.children.findIndex(rt=>Sn(rt,dn));return Dt!==-1&&Ee!==-1?{...pn,children:M0(pn.children,Dt,Ee)}:pn.children?{...pn,children:nn(pn.children,pt,dn,Sn)}:pn})},[]),en=B.useCallback(ct=>{!S||M||!Ce||!ct.over||sn(ct.over.id)},[S,M,Ce,sn]),Zn=B.useCallback(ct=>{if(!S||M||!Ge||!Ce||!ct.over)return;const pt=sn(ct.over.id);if(!pt||Re(Ce,pt)){ot(void 0);return}const dn=nn(Ie,Ce,pt,Re);Ge(dn),ot(void 0)},[S,M,Ge,Ce,sn,Re,Ie,nn]),Wn=B.useMemo(()=>Ie.map(ct=>Ot(ct)),[Ie,Ot]);B.useEffect(()=>{var ct;c||(ct=Pe.current)==null||ct.scrollTo(0,0)},[c,Pe]),B.useEffect(()=>{!b&&tt.length>1&&(Xe==null||Xe([tt[tt.length-1]]))},[b,Xe,tt]),B.useEffect(()=>{A&&(A.current={expandAll:ft,collapseAll:_t})},[A,ft,_t]),B.useEffect(()=>{if(!t||!Xe)return;const ct=tt.filter(pt=>!t(pt));tt.length!==ct.length&&Xe(ct)},[t,tt,Xe]),B.useEffect(()=>{if(!r||!Xe)return;const ct=tt.filter(pt=>!r(pt));tt.length!==ct.length&&Xe(ct)},[r,tt,Xe]),B.useEffect(()=>{yt&&yt(void 0)},[yt]);const[Mn,kn]=B.useState(null),ar=B.useCallback((ct,pt)=>{M||(ct.stopPropagation(),ct.preventDefault(),kn(pt))},[M]),Ft=B.useCallback((ct,pt)=>{Mn===null||M||Re(pt,Mn)&&(ct.stopPropagation(),ct.preventDefault(),kn(null))},[Mn,M,Re]),Xt=B.useRef(null),[Nt,yn]=B.useState(!1),[Un,br]=B.useState((Rn=Xt.current)==null?void 0:Rn.scrollHeight);return B.useEffect(()=>{if(ze.length<0)return;const ct=Pe.current,pt=Xt.current,dn=ct.clientHeight<pt.clientHeight;br(dn?pt.scrollHeight:ct.clientHeight),yn(dn)},[ze]),O.jsxs(Ki,{...ke,className:St.clsx(ke.className,bo.AWrap),isDisabled:M,children:[(!w||V)&&O.jsxs(Ho,{className:St.clsx(bo.ATreeHeader,ie),style:te,children:[!w&&O.jsx(hG,{autoFocus:H,initSearch:Kt,isDisabled:M,isEqual:Re,isLoading:F,maxLength:ue,resources:Le,searchDown:fn,searchEnter:qt,searchResult:Ye,searchUp:Gt}),!w&&V&&O.jsx(kh,{w:8}),V]}),(!w||V||c&&b||S)&&O.jsx(S2,{isLoading:F&&Ie.length!==0}),(c&&b||S)&&O.jsxs("div",{className:St.clsx(bo.ATreeBodyHeader,"NoSelect"),children:[c&&O.jsx(A1,{className:bo.CheckBox,isDisabled:M,isIndeterminate:ht,tooltip:we,useCheck:[+Rt,()=>Pt()],onMouseOut:Ht,onMouseOver:cn}),Le.Items,O.jsx(Zp,{}),O.jsxs("div",{className:St.clsx(bo.ATreeBodyHeaderResources,"NoSelect"),style:{marginRight:Nt?8:0},children:[O.jsx("span",{children:c&&Le["*Click row for single select"]}),O.jsx("span",{children:S&&Le["*Change order to row drag"]})]})]}),N&&O.jsx("div",{className:bo.TreeTopAddon,children:N}),O.jsx("div",{ref:Pe,className:St.clsx(ke.className,bo.AContainer),children:O.jsxs("div",{className:bo.ATree,style:{minWidth:oe||"fit-content",marginRight:X&&Nt?8:0},children:[O.jsxs("div",{ref:Xt,className:bo.ATreeBody,children:[Ie.length===0?F?O.jsx(yG,{text:Le["Loading Contents..."]}):R:null,O.jsx(oY,{collisionDetection:lU,modifiers:[hY,gY],sensors:mt,measuring:{droppable:{strategy:F1.Always}},onDragEnd:Zn,onDragOver:en,onDragStart:vn,children:O.jsx(xY,{items:Wn,strategy:yY,children:Ie.map(ct=>O.jsx(Z,{containerRef:Pe,ContentRenderer:U,extIndents:p,getItemId:Ot,height:q,hoverdItem:Mn,icons:u,indents:[],isChildOfDragItem:hn,isDraggable:S,isDragSrcItem:Re(ct,Ce),isEqual:Re,isParentCheckHovered:b&&Tn,isParentDisabled:M,isSelectMulti:b,item:ct,itemId:Ot(ct),resources:Le,RightStickyAddon:D,searchItemClassName:ge,searchItemStyle:se,selectDisabled:t,selectUnused:r,showCheckbox:c,TreeItemClassName:ee,TreeItemRenderer:Z,TreeItemStyle:le,treeItemTooltip:pe,treeItemTooltipDelay:Se,treeItemTooltipDirection:Me,treeItemTooltipDistance:be,useExpand:[ze,$e],useSearch:[Ye,yt],useSelect:[tt,Xe],onMouseLeave:Ft,onMouseOver:ar},Ot(ct)))})})]}),re&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:bo.CoverBorder}),O.jsx("div",{className:bo.InsertBorder,style:{"--InsertBorder_height":`${q}px`,height:Nt?Un:"100%"}})]})]})})]})},vG=n=>{const{item:e}=n,t={};return Kn.keys(e).forEach(r=>{r!=="children"&&(t[r]=e[r])}),JSON.stringify(t)};function bG(n,e){return Kn.some(e,(t,r)=>{var i;return(i=Kn.stringify(r))==null?void 0:i.toLowerCase().includes(n.toLowerCase())})}const yG=n=>{const e=gn.c(4),{text:t}=n;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=St.clsx(bo.Loader,"NoSelect"),e[0]=r):r=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=O.jsx(Eo,{height:40,icon:"Spinner",style:{height:40},width:40}),e[1]=i):i=e[1];let o;return e[2]!==t?(o=O.jsxs(Ho,{className:r,children:[i,O.jsx(MS,{text:t})]}),e[2]=t,e[3]=o):o=e[3],o};var ay,FC;function G1(){return FC||(FC=1,ay=TypeError),ay}const mG={},xG=Object.freeze(Object.defineProperty({__proto__:null,default:mG},Symbol.toStringTag,{value:"Module"})),wG=MA(xG);var cy,BC;function j0(){if(BC)return cy;BC=1;var n=typeof Map=="function"&&Map.prototype,e=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=n&&e&&typeof e.get=="function"?e.get:null,r=n&&Map.prototype.forEach,i=typeof Set=="function"&&Set.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=i&&o&&typeof o.get=="function"?o.get:null,a=i&&Set.prototype.forEach,c=typeof WeakMap=="function"&&WeakMap.prototype,u=c?WeakMap.prototype.has:null,p=typeof WeakSet=="function"&&WeakSet.prototype,b=p?WeakSet.prototype.has:null,w=typeof WeakRef=="function"&&WeakRef.prototype,S=w?WeakRef.prototype.deref:null,_=Boolean.prototype.valueOf,A=Object.prototype.toString,R=Function.prototype.toString,L=String.prototype.match,M=String.prototype.slice,F=String.prototype.replace,U=String.prototype.toUpperCase,Z=String.prototype.toLowerCase,D=RegExp.prototype.test,V=Array.prototype.concat,N=Array.prototype.join,K=Array.prototype.slice,ue=Math.floor,H=typeof BigInt=="function"?BigInt.prototype.valueOf:null,te=Object.getOwnPropertySymbols,ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,le=typeof Symbol=="function"&&typeof Symbol.iterator=="object",ee=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===le||!0)?Symbol.toStringTag:null,X=Object.prototype.propertyIsEnumerable,re=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(we){return we.__proto__}:null);function oe(we,Ce){if(we===1/0||we===-1/0||we!==we||we&&we>-1e3&&we<1e3||D.call(/e/,Ce))return Ce;var ot=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof we=="number"){var mt=we<0?-ue(-we):ue(we);if(mt!==we){var Et=String(mt),Ot=M.call(Ce,Et.length+1);return F.call(Et,ot,"$&_")+"."+F.call(F.call(Ot,/([0-9]{3})/g,"$&_"),/_$/,"")}}return F.call(Ce,ot,"$&_")}var ge=wG,se=ge.custom,q=$e(se)?se:null,pe={__proto__:null,double:'"',single:"'"},Se={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};cy=function we(Ce,ot,mt,Et){var Ot=ot||{};if(Ye(Ot,"quoteStyle")&&!Ye(pe,Ot.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Ye(Ot,"maxStringLength")&&(typeof Ot.maxStringLength=="number"?Ot.maxStringLength<0&&Ot.maxStringLength!==1/0:Ot.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var sn=Ye(Ot,"customInspect")?Ot.customInspect:!0;if(typeof sn!="boolean"&&sn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Ye(Ot,"indent")&&Ot.indent!==null&&Ot.indent!==" "&&!(parseInt(Ot.indent,10)===Ot.indent&&Ot.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Ye(Ot,"numericSeparator")&&typeof Ot.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var hn=Ot.numericSeparator;if(typeof Ce>"u")return"undefined";if(Ce===null)return"null";if(typeof Ce=="boolean")return Ce?"true":"false";if(typeof Ce=="string")return qt(Ce,Ot);if(typeof Ce=="number"){if(Ce===0)return 1/0/Ce>0?"0":"-0";var vn=String(Ce);return hn?oe(Ce,vn):vn}if(typeof Ce=="bigint"){var nn=String(Ce)+"n";return hn?oe(Ce,nn):nn}var en=typeof Ot.depth>"u"?5:Ot.depth;if(typeof mt>"u"&&(mt=0),mt>=en&&en>0&&typeof Ce=="object")return Le(Ce)?"[Array]":"[Object]";var Zn=ht(Ot,mt);if(typeof Et>"u")Et=[];else if(ft(Et,Ce)>=0)return"[Circular]";function Wn(pn,Dt,Ee){if(Dt&&(Et=K.call(Et),Et.push(Dt)),Ee){var rt={depth:Ot.depth};return Ye(Ot,"quoteStyle")&&(rt.quoteStyle=Ot.quoteStyle),we(pn,rt,mt+1,Et)}return we(pn,Ot,mt+1,Et)}if(typeof Ce=="function"&&!Pe(Ce)){var Mn=at(Ce),kn=Pt(Ce,Wn);return"[Function"+(Mn?": "+Mn:" (anonymous)")+"]"+(kn.length>0?" { "+N.call(kn,", ")+" }":"")}if($e(Ce)){var ar=le?F.call(String(Ce),/^(Symbol\(.*\))_[^)]*$/,"$1"):ie.call(Ce);return typeof Ce=="object"&&!le?$t(ar):ar}if(fn(Ce)){for(var Ft="<"+Z.call(String(Ce.nodeName)),Xt=Ce.attributes||[],Nt=0;Nt<Xt.length;Nt++)Ft+=" "+Xt[Nt].name+"="+Me(be(Xt[Nt].value),"double",Ot);return Ft+=">",Ce.childNodes&&Ce.childNodes.length&&(Ft+="..."),Ft+="</"+Z.call(String(Ce.nodeName))+">",Ft}if(Le(Ce)){if(Ce.length===0)return"[]";var yn=Pt(Ce,Wn);return Zn&&!Jt(yn)?"["+Rt(yn,Zn)+"]":"[ "+N.call(yn,", ")+" ]"}if(Ie(Ce)){var Un=Pt(Ce,Wn);return!("cause"in Error.prototype)&&"cause"in Ce&&!X.call(Ce,"cause")?"{ ["+String(Ce)+"] "+N.call(V.call("[cause]: "+Wn(Ce.cause),Un),", ")+" }":Un.length===0?"["+String(Ce)+"]":"{ ["+String(Ce)+"] "+N.call(Un,", ")+" }"}if(typeof Ce=="object"&&sn){if(q&&typeof Ce[q]=="function"&&ge)return ge(Ce,{depth:en-mt});if(sn!=="symbol"&&typeof Ce.inspect=="function")return Ce.inspect()}if(_t(Ce)){var br=[];return r&&r.call(Ce,function(pn,Dt){br.push(Wn(Dt,Ce,!0)+" => "+Wn(pn,Ce))}),Ht("Map",t.call(Ce),br,Zn)}if(ln(Ce)){var Rn=[];return a&&a.call(Ce,function(pn){Rn.push(Wn(pn,Ce))}),Ht("Set",l.call(Ce),Rn,Zn)}if(bt(Ce))return cn("WeakMap");if(Gt(Ce))return cn("WeakSet");if(Kt(Ce))return cn("WeakRef");if(Ue(Ce))return $t(Wn(Number(Ce)));if(tt(Ce))return $t(Wn(H.call(Ce)));if(ze(Ce))return $t(_.call(Ce));if(Ge(Ce))return $t(Wn(String(Ce)));if(typeof window<"u"&&Ce===window)return"{ [object Window] }";if(typeof globalThis<"u"&&Ce===globalThis||typeof rf<"u"&&Ce===rf)return"{ [object globalThis] }";if(!Re(Ce)&&!Pe(Ce)){var ct=Pt(Ce,Wn),pt=re?re(Ce)===Object.prototype:Ce instanceof Object||Ce.constructor===Object,dn=Ce instanceof Object?"":"null prototype",Sn=!pt&&ee&&Object(Ce)===Ce&&ee in Ce?M.call(yt(Ce),8,-1):dn?"Object":"",Wr=pt||typeof Ce.constructor!="function"?"":Ce.constructor.name?Ce.constructor.name+" ":"",or=Wr+(Sn||dn?"["+N.call(V.call([],Sn||[],dn||[]),": ")+"] ":"");return ct.length===0?or+"{}":Zn?or+"{"+Rt(ct,Zn)+"}":or+"{ "+N.call(ct,", ")+" }"}return String(Ce)};function Me(we,Ce,ot){var mt=ot.quoteStyle||Ce,Et=pe[mt];return Et+we+Et}function be(we){return F.call(String(we),/"/g,""")}function ke(we){return!ee||!(typeof we=="object"&&(ee in we||typeof we[ee]<"u"))}function Le(we){return yt(we)==="[object Array]"&&ke(we)}function Re(we){return yt(we)==="[object Date]"&&ke(we)}function Pe(we){return yt(we)==="[object RegExp]"&&ke(we)}function Ie(we){return yt(we)==="[object Error]"&&ke(we)}function Ge(we){return yt(we)==="[object String]"&&ke(we)}function Ue(we){return yt(we)==="[object Number]"&&ke(we)}function ze(we){return yt(we)==="[object Boolean]"&&ke(we)}function $e(we){if(le)return we&&typeof we=="object"&&we instanceof Symbol;if(typeof we=="symbol")return!0;if(!we||typeof we!="object"||!ie)return!1;try{return ie.call(we),!0}catch{}return!1}function tt(we){if(!we||typeof we!="object"||!H)return!1;try{return H.call(we),!0}catch{}return!1}var Xe=Object.prototype.hasOwnProperty||function(we){return we in this};function Ye(we,Ce){return Xe.call(we,Ce)}function yt(we){return A.call(we)}function at(we){if(we.name)return we.name;var Ce=L.call(R.call(we),/^function\s*([\w$]+)/);return Ce?Ce[1]:null}function ft(we,Ce){if(we.indexOf)return we.indexOf(Ce);for(var ot=0,mt=we.length;ot<mt;ot++)if(we[ot]===Ce)return ot;return-1}function _t(we){if(!t||!we||typeof we!="object")return!1;try{t.call(we);try{l.call(we)}catch{return!0}return we instanceof Map}catch{}return!1}function bt(we){if(!u||!we||typeof we!="object")return!1;try{u.call(we,u);try{b.call(we,b)}catch{return!0}return we instanceof WeakMap}catch{}return!1}function Kt(we){if(!S||!we||typeof we!="object")return!1;try{return S.call(we),!0}catch{}return!1}function ln(we){if(!l||!we||typeof we!="object")return!1;try{l.call(we);try{t.call(we)}catch{return!0}return we instanceof Set}catch{}return!1}function Gt(we){if(!b||!we||typeof we!="object")return!1;try{b.call(we,b);try{u.call(we,u)}catch{return!0}return we instanceof WeakSet}catch{}return!1}function fn(we){return!we||typeof we!="object"?!1:typeof HTMLElement<"u"&&we instanceof HTMLElement?!0:typeof we.nodeName=="string"&&typeof we.getAttribute=="function"}function qt(we,Ce){if(we.length>Ce.maxStringLength){var ot=we.length-Ce.maxStringLength,mt="... "+ot+" more character"+(ot>1?"s":"");return qt(M.call(we,0,Ce.maxStringLength),Ce)+mt}var Et=Se[Ce.quoteStyle||"single"];Et.lastIndex=0;var Ot=F.call(F.call(we,Et,"\\$1"),/[\x00-\x1f]/g,Tn);return Me(Ot,"single",Ce)}function Tn(we){var Ce=we.charCodeAt(0),ot={8:"b",9:"t",10:"n",12:"f",13:"r"}[Ce];return ot?"\\"+ot:"\\x"+(Ce<16?"0":"")+U.call(Ce.toString(16))}function $t(we){return"Object("+we+")"}function cn(we){return we+" { ? }"}function Ht(we,Ce,ot,mt){var Et=mt?Rt(ot,mt):N.call(ot,", ");return we+" ("+Ce+") {"+Et+"}"}function Jt(we){for(var Ce=0;Ce<we.length;Ce++)if(ft(we[Ce],`
|
|
485
485
|
`)>=0)return!1;return!0}function ht(we,Ce){var ot;if(we.indent===" ")ot=" ";else if(typeof we.indent=="number"&&we.indent>0)ot=N.call(Array(we.indent+1)," ");else return null;return{base:ot,prev:N.call(Array(Ce+1),ot)}}function Rt(we,Ce){if(we.length===0)return"";var ot=`
|
|
486
486
|
`+Ce.prev+Ce.base;return ot+N.call(we,","+ot)+`
|
|
487
487
|
`+Ce.prev}function Pt(we,Ce){var ot=Le(we),mt=[];if(ot){mt.length=we.length;for(var Et=0;Et<we.length;Et++)mt[Et]=Ye(we,Et)?Ce(we[Et],we):""}var Ot=typeof te=="function"?te(we):[],sn;if(le){sn={};for(var hn=0;hn<Ot.length;hn++)sn["$"+Ot[hn]]=Ot[hn]}for(var vn in we)Ye(we,vn)&&(ot&&String(Number(vn))===vn&&vn<we.length||le&&sn["$"+vn]instanceof Symbol||(D.call(/[^\w$]/,vn)?mt.push(Ce(vn,we)+": "+Ce(we[vn],we)):mt.push(vn+": "+Ce(we[vn],we))));if(typeof te=="function")for(var nn=0;nn<Ot.length;nn++)X.call(we,Ot[nn])&&mt.push("["+Ce(Ot[nn])+"]: "+Ce(we[Ot[nn]],we));return mt}return cy}var uy,zC;function CG(){if(zC)return uy;zC=1;var n=j0(),e=G1(),t=function(a,c,u){for(var p=a,b;(b=p.next)!=null;p=b)if(b.key===c)return p.next=b.next,u||(b.next=a.next,a.next=b),b},r=function(a,c){if(a){var u=t(a,c);return u&&u.value}},i=function(a,c,u){var p=t(a,c);p?p.value=u:a.next={key:c,next:a.next,value:u}},o=function(a,c){return a?!!t(a,c):!1},l=function(a,c){if(a)return t(a,c,!0)};return uy=function(){var c,u={assert:function(p){if(!u.has(p))throw new e("Side channel does not contain "+n(p))},delete:function(p){var b=c&&c.next,w=l(c,p);return w&&b&&b===w&&(c=void 0),!!w},get:function(p){return r(c,p)},has:function(p){return o(c,p)},set:function(p,b){c||(c={next:void 0}),i(c,p,b)}};return u},uy}var fy,HC;function eT(){return HC||(HC=1,fy=Object),fy}var dy,WC;function _G(){return WC||(WC=1,dy=Error),dy}var hy,UC;function SG(){return UC||(UC=1,hy=EvalError),hy}var gy,YC;function TG(){return YC||(YC=1,gy=RangeError),gy}var py,GC;function EG(){return GC||(GC=1,py=ReferenceError),py}var vy,VC;function AG(){return VC||(VC=1,vy=SyntaxError),vy}var by,ZC;function RG(){return ZC||(ZC=1,by=URIError),by}var yy,XC;function kG(){return XC||(XC=1,yy=Math.abs),yy}var my,KC;function IG(){return KC||(KC=1,my=Math.floor),my}var xy,JC;function MG(){return JC||(JC=1,xy=Math.max),xy}var wy,QC;function LG(){return QC||(QC=1,wy=Math.min),wy}var Cy,qC;function OG(){return qC||(qC=1,Cy=Math.pow),Cy}var _y,jC;function PG(){return jC||(jC=1,_y=Math.round),_y}var Sy,$C;function DG(){return $C||($C=1,Sy=Number.isNaN||function(e){return e!==e}),Sy}var Ty,e3;function NG(){if(e3)return Ty;e3=1;var n=DG();return Ty=function(t){return n(t)||t===0?t:t<0?-1:1},Ty}var Ey,t3;function FG(){return t3||(t3=1,Ey=Object.getOwnPropertyDescriptor),Ey}var Ay,n3;function tT(){if(n3)return Ay;n3=1;var n=FG();if(n)try{n([],"length")}catch{n=null}return Ay=n,Ay}var Ry,r3;function BG(){if(r3)return Ry;r3=1;var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch{n=!1}return Ry=n,Ry}var ky,i3;function zG(){return i3||(i3=1,ky=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),r=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var o 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 l=Object.getOwnPropertySymbols(e);if(l.length!==1||l[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,t);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),ky}var Iy,o3;function HG(){if(o3)return Iy;o3=1;var n=typeof Symbol<"u"&&Symbol,e=zG();return Iy=function(){return typeof n!="function"||typeof Symbol!="function"||typeof n("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Iy}var My,l3;function nT(){return l3||(l3=1,My=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),My}var Ly,s3;function rT(){if(s3)return Ly;s3=1;var n=eT();return Ly=n.getPrototypeOf||null,Ly}var Oy,a3;function WG(){if(a3)return Oy;a3=1;var n="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,t=Math.max,r="[object Function]",i=function(c,u){for(var p=[],b=0;b<c.length;b+=1)p[b]=c[b];for(var w=0;w<u.length;w+=1)p[w+c.length]=u[w];return p},o=function(c,u){for(var p=[],b=u,w=0;b<c.length;b+=1,w+=1)p[w]=c[b];return p},l=function(a,c){for(var u="",p=0;p<a.length;p+=1)u+=a[p],p+1<a.length&&(u+=c);return u};return Oy=function(c){var u=this;if(typeof u!="function"||e.apply(u)!==r)throw new TypeError(n+u);for(var p=o(arguments,1),b,w=function(){if(this instanceof b){var L=u.apply(this,i(p,arguments));return Object(L)===L?L:this}return u.apply(c,i(p,arguments))},S=t(0,u.length-p.length),_=[],A=0;A<S;A++)_[A]="$"+A;if(b=Function("binder","return function ("+l(_,",")+"){ return binder.apply(this,arguments); }")(w),u.prototype){var R=function(){};R.prototype=u.prototype,b.prototype=new R,R.prototype=null}return b},Oy}var Py,c3;function $0(){if(c3)return Py;c3=1;var n=WG();return Py=Function.prototype.bind||n,Py}var Dy,u3;function P2(){return u3||(u3=1,Dy=Function.prototype.call),Dy}var Ny,f3;function iT(){return f3||(f3=1,Ny=Function.prototype.apply),Ny}var Fy,d3;function UG(){return d3||(d3=1,Fy=typeof Reflect<"u"&&Reflect&&Reflect.apply),Fy}var By,h3;function YG(){if(h3)return By;h3=1;var n=$0(),e=iT(),t=P2(),r=UG();return By=r||n.call(t,e),By}var zy,g3;function oT(){if(g3)return zy;g3=1;var n=$0(),e=G1(),t=P2(),r=YG();return zy=function(o){if(o.length<1||typeof o[0]!="function")throw new e("a function is required");return r(n,t,o)},zy}var Hy,p3;function GG(){if(p3)return Hy;p3=1;var n=oT(),e=tT(),t;try{t=[].__proto__===Array.prototype}catch(l){if(!l||typeof l!="object"||!("code"in l)||l.code!=="ERR_PROTO_ACCESS")throw l}var r=!!t&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Hy=r&&typeof r.get=="function"?n([r.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,Hy}var Wy,v3;function VG(){if(v3)return Wy;v3=1;var n=nT(),e=rT(),t=GG();return Wy=n?function(i){return n(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,Wy}var Uy,b3;function ZG(){if(b3)return Uy;b3=1;var n=Function.prototype.call,e=Object.prototype.hasOwnProperty,t=$0();return Uy=t.call(n,e),Uy}var Yy,y3;function D2(){if(y3)return Yy;y3=1;var n,e=eT(),t=_G(),r=SG(),i=TG(),o=EG(),l=AG(),a=G1(),c=RG(),u=kG(),p=IG(),b=MG(),w=LG(),S=OG(),_=PG(),A=NG(),R=Function,L=function(Pe){try{return R('"use strict"; return ('+Pe+").constructor;")()}catch{}},M=tT(),F=BG(),U=function(){throw new a},Z=M?(function(){try{return arguments.callee,U}catch{try{return M(arguments,"callee").get}catch{return U}}})():U,D=HG()(),V=VG(),N=rT(),K=nT(),ue=iT(),H=P2(),te={},ie=typeof Uint8Array>"u"||!V?n:V(Uint8Array),le={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?n:ArrayBuffer,"%ArrayIteratorPrototype%":D&&V?V([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":te,"%AsyncGenerator%":te,"%AsyncGeneratorFunction%":te,"%AsyncIteratorPrototype%":te,"%Atomics%":typeof Atomics>"u"?n:Atomics,"%BigInt%":typeof BigInt>"u"?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":r,"%Float16Array%":typeof Float16Array>"u"?n:Float16Array,"%Float32Array%":typeof Float32Array>"u"?n:Float32Array,"%Float64Array%":typeof Float64Array>"u"?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?n:FinalizationRegistry,"%Function%":R,"%GeneratorFunction%":te,"%Int8Array%":typeof Int8Array>"u"?n:Int8Array,"%Int16Array%":typeof Int16Array>"u"?n:Int16Array,"%Int32Array%":typeof Int32Array>"u"?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":D&&V?V(V([][Symbol.iterator]())):n,"%JSON%":typeof JSON=="object"?JSON:n,"%Map%":typeof Map>"u"?n:Map,"%MapIteratorPrototype%":typeof Map>"u"||!D||!V?n:V(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":M,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?n:Promise,"%Proxy%":typeof Proxy>"u"?n:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?n:Set,"%SetIteratorPrototype%":typeof Set>"u"||!D||!V?n:V(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":D&&V?V(""[Symbol.iterator]()):n,"%Symbol%":D?Symbol:n,"%SyntaxError%":l,"%ThrowTypeError%":Z,"%TypedArray%":ie,"%TypeError%":a,"%Uint8Array%":typeof Uint8Array>"u"?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?n:Uint32Array,"%URIError%":c,"%WeakMap%":typeof WeakMap>"u"?n:WeakMap,"%WeakRef%":typeof WeakRef>"u"?n:WeakRef,"%WeakSet%":typeof WeakSet>"u"?n:WeakSet,"%Function.prototype.call%":H,"%Function.prototype.apply%":ue,"%Object.defineProperty%":F,"%Object.getPrototypeOf%":N,"%Math.abs%":u,"%Math.floor%":p,"%Math.max%":b,"%Math.min%":w,"%Math.pow%":S,"%Math.round%":_,"%Math.sign%":A,"%Reflect.getPrototypeOf%":K};if(V)try{null.error}catch(Pe){var ee=V(V(Pe));le["%Error.prototype%"]=ee}var X=function Pe(Ie){var Ge;if(Ie==="%AsyncFunction%")Ge=L("async function () {}");else if(Ie==="%GeneratorFunction%")Ge=L("function* () {}");else if(Ie==="%AsyncGeneratorFunction%")Ge=L("async function* () {}");else if(Ie==="%AsyncGenerator%"){var Ue=Pe("%AsyncGeneratorFunction%");Ue&&(Ge=Ue.prototype)}else if(Ie==="%AsyncIteratorPrototype%"){var ze=Pe("%AsyncGenerator%");ze&&V&&(Ge=V(ze.prototype))}return le[Ie]=Ge,Ge},re={__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"]},oe=$0(),ge=ZG(),se=oe.call(H,Array.prototype.concat),q=oe.call(ue,Array.prototype.splice),pe=oe.call(H,String.prototype.replace),Se=oe.call(H,String.prototype.slice),Me=oe.call(H,RegExp.prototype.exec),be=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ke=/\\(\\)?/g,Le=function(Ie){var Ge=Se(Ie,0,1),Ue=Se(Ie,-1);if(Ge==="%"&&Ue!=="%")throw new l("invalid intrinsic syntax, expected closing `%`");if(Ue==="%"&&Ge!=="%")throw new l("invalid intrinsic syntax, expected opening `%`");var ze=[];return pe(Ie,be,function($e,tt,Xe,Ye){ze[ze.length]=Xe?pe(Ye,ke,"$1"):tt||$e}),ze},Re=function(Ie,Ge){var Ue=Ie,ze;if(ge(re,Ue)&&(ze=re[Ue],Ue="%"+ze[0]+"%"),ge(le,Ue)){var $e=le[Ue];if($e===te&&($e=X(Ue)),typeof $e>"u"&&!Ge)throw new a("intrinsic "+Ie+" exists, but is not available. Please file an issue!");return{alias:ze,name:Ue,value:$e}}throw new l("intrinsic "+Ie+" does not exist!")};return Yy=function(Ie,Ge){if(typeof Ie!="string"||Ie.length===0)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ge!="boolean")throw new a('"allowMissing" argument must be a boolean');if(Me(/^%?[^%]*%?$/,Ie)===null)throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Ue=Le(Ie),ze=Ue.length>0?Ue[0]:"",$e=Re("%"+ze+"%",Ge),tt=$e.name,Xe=$e.value,Ye=!1,yt=$e.alias;yt&&(ze=yt[0],q(Ue,se([0,1],yt)));for(var at=1,ft=!0;at<Ue.length;at+=1){var _t=Ue[at],bt=Se(_t,0,1),Kt=Se(_t,-1);if((bt==='"'||bt==="'"||bt==="`"||Kt==='"'||Kt==="'"||Kt==="`")&&bt!==Kt)throw new l("property names with quotes must have matching quotes");if((_t==="constructor"||!ft)&&(Ye=!0),ze+="."+_t,tt="%"+ze+"%",ge(le,tt))Xe=le[tt];else if(Xe!=null){if(!(_t in Xe)){if(!Ge)throw new a("base intrinsic for "+Ie+" exists, but the property is not available.");return}if(M&&at+1>=Ue.length){var ln=M(Xe,_t);ft=!!ln,ft&&"get"in ln&&!("originalValue"in ln.get)?Xe=ln.get:Xe=Xe[_t]}else ft=ge(Xe,_t),Xe=Xe[_t];ft&&!Ye&&(le[tt]=Xe)}}return Xe},Yy}var Gy,m3;function lT(){if(m3)return Gy;m3=1;var n=D2(),e=oT(),t=e([n("%String.prototype.indexOf%")]);return Gy=function(i,o){var l=n(i,!!o);return typeof l=="function"&&t(i,".prototype.")>-1?e([l]):l},Gy}var Vy,x3;function sT(){if(x3)return Vy;x3=1;var n=D2(),e=lT(),t=j0(),r=G1(),i=n("%Map%",!0),o=e("Map.prototype.get",!0),l=e("Map.prototype.set",!0),a=e("Map.prototype.has",!0),c=e("Map.prototype.delete",!0),u=e("Map.prototype.size",!0);return Vy=!!i&&function(){var b,w={assert:function(S){if(!w.has(S))throw new r("Side channel does not contain "+t(S))},delete:function(S){if(b){var _=c(b,S);return u(b)===0&&(b=void 0),_}return!1},get:function(S){if(b)return o(b,S)},has:function(S){return b?a(b,S):!1},set:function(S,_){b||(b=new i),l(b,S,_)}};return w},Vy}var Zy,w3;function XG(){if(w3)return Zy;w3=1;var n=D2(),e=lT(),t=j0(),r=sT(),i=G1(),o=n("%WeakMap%",!0),l=e("WeakMap.prototype.get",!0),a=e("WeakMap.prototype.set",!0),c=e("WeakMap.prototype.has",!0),u=e("WeakMap.prototype.delete",!0);return Zy=o?function(){var b,w,S={assert:function(_){if(!S.has(_))throw new i("Side channel does not contain "+t(_))},delete:function(_){if(o&&_&&(typeof _=="object"||typeof _=="function")){if(b)return u(b,_)}else if(r&&w)return w.delete(_);return!1},get:function(_){return o&&_&&(typeof _=="object"||typeof _=="function")&&b?l(b,_):w&&w.get(_)},has:function(_){return o&&_&&(typeof _=="object"||typeof _=="function")&&b?c(b,_):!!w&&w.has(_)},set:function(_,A){o&&_&&(typeof _=="object"||typeof _=="function")?(b||(b=new o),a(b,_,A)):r&&(w||(w=r()),w.set(_,A))}};return S}:r,Zy}var Xy,C3;function aT(){if(C3)return Xy;C3=1;var n=G1(),e=j0(),t=CG(),r=sT(),i=XG(),o=i||r||t;return Xy=function(){var a,c={assert:function(u){if(!c.has(u))throw new n("Side channel does not contain "+e(u))},delete:function(u){return!!a&&a.delete(u)},get:function(u){return a&&a.get(u)},has:function(u){return!!a&&a.has(u)},set:function(u,p){a||(a=o()),a.set(u,p)}};return c},Xy}var Ky,_3;function N2(){if(_3)return Ky;_3=1;var n=String.prototype.replace,e=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Ky={default:t.RFC3986,formatters:{RFC1738:function(r){return n.call(r,e,"+")},RFC3986:function(r){return String(r)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},Ky}var Jy,S3;function cT(){if(S3)return Jy;S3=1;var n=N2(),e=aT(),t=Object.prototype.hasOwnProperty,r=Array.isArray,i=e(),o=function(V,N){return i.set(V,N),V},l=function(V){return i.has(V)},a=function(V){return i.get(V)},c=function(V,N){i.set(V,N)},u=(function(){for(var D=[],V=0;V<256;++V)D.push("%"+((V<16?"0":"")+V.toString(16)).toUpperCase());return D})(),p=function(V){for(;V.length>1;){var N=V.pop(),K=N.obj[N.prop];if(r(K)){for(var ue=[],H=0;H<K.length;++H)typeof K[H]<"u"&&ue.push(K[H]);N.obj[N.prop]=ue}}},b=function(V,N){for(var K=N&&N.plainObjects?{__proto__:null}:{},ue=0;ue<V.length;++ue)typeof V[ue]<"u"&&(K[ue]=V[ue]);return K},w=function D(V,N,K){if(!N)return V;if(typeof N!="object"&&typeof N!="function"){if(r(V))V.push(N);else if(V&&typeof V=="object")if(l(V)){var ue=a(V)+1;V[ue]=N,c(V,ue)}else(K&&(K.plainObjects||K.allowPrototypes)||!t.call(Object.prototype,N))&&(V[N]=!0);else return[V,N];return V}if(!V||typeof V!="object"){if(l(N)){for(var H=Object.keys(N),te=K&&K.plainObjects?{__proto__:null,0:V}:{0:V},ie=0;ie<H.length;ie++){var le=parseInt(H[ie],10);te[le+1]=N[H[ie]]}return o(te,a(N)+1)}return[V].concat(N)}var ee=V;return r(V)&&!r(N)&&(ee=b(V,K)),r(V)&&r(N)?(N.forEach(function(X,re){if(t.call(V,re)){var oe=V[re];oe&&typeof oe=="object"&&X&&typeof X=="object"?V[re]=D(oe,X,K):V.push(X)}else V[re]=X}),V):Object.keys(N).reduce(function(X,re){var oe=N[re];return t.call(X,re)?X[re]=D(X[re],oe,K):X[re]=oe,X},ee)},S=function(V,N){return Object.keys(N).reduce(function(K,ue){return K[ue]=N[ue],K},V)},_=function(D,V,N){var K=D.replace(/\+/g," ");if(N==="iso-8859-1")return K.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(K)}catch{return K}},A=1024,R=function(V,N,K,ue,H){if(V.length===0)return V;var te=V;if(typeof V=="symbol"?te=Symbol.prototype.toString.call(V):typeof V!="string"&&(te=String(V)),K==="iso-8859-1")return escape(te).replace(/%u[0-9a-f]{4}/gi,function(ge){return"%26%23"+parseInt(ge.slice(2),16)+"%3B"});for(var ie="",le=0;le<te.length;le+=A){for(var ee=te.length>=A?te.slice(le,le+A):te,X=[],re=0;re<ee.length;++re){var oe=ee.charCodeAt(re);if(oe===45||oe===46||oe===95||oe===126||oe>=48&&oe<=57||oe>=65&&oe<=90||oe>=97&&oe<=122||H===n.RFC1738&&(oe===40||oe===41)){X[X.length]=ee.charAt(re);continue}if(oe<128){X[X.length]=u[oe];continue}if(oe<2048){X[X.length]=u[192|oe>>6]+u[128|oe&63];continue}if(oe<55296||oe>=57344){X[X.length]=u[224|oe>>12]+u[128|oe>>6&63]+u[128|oe&63];continue}re+=1,oe=65536+((oe&1023)<<10|ee.charCodeAt(re)&1023),X[X.length]=u[240|oe>>18]+u[128|oe>>12&63]+u[128|oe>>6&63]+u[128|oe&63]}ie+=X.join("")}return ie},L=function(V){for(var N=[{obj:{o:V},prop:"o"}],K=[],ue=0;ue<N.length;++ue)for(var H=N[ue],te=H.obj[H.prop],ie=Object.keys(te),le=0;le<ie.length;++le){var ee=ie[le],X=te[ee];typeof X=="object"&&X!==null&&K.indexOf(X)===-1&&(N.push({obj:te,prop:ee}),K.push(X))}return p(N),V},M=function(V){return Object.prototype.toString.call(V)==="[object RegExp]"},F=function(V){return!V||typeof V!="object"?!1:!!(V.constructor&&V.constructor.isBuffer&&V.constructor.isBuffer(V))},U=function(V,N,K,ue){if(l(V)){var H=a(V)+1;return V[H]=N,c(V,H),V}var te=[].concat(V,N);return te.length>K?o(b(te,{plainObjects:ue}),te.length-1):te},Z=function(V,N){if(r(V)){for(var K=[],ue=0;ue<V.length;ue+=1)K.push(N(V[ue]));return K}return N(V)};return Jy={arrayToObject:b,assign:S,combine:U,compact:L,decode:_,encode:R,isBuffer:F,isOverflow:l,isRegExp:M,maybeMap:Z,merge:w},Jy}var Qy,T3;function KG(){if(T3)return Qy;T3=1;var n=aT(),e=cT(),t=N2(),r=Object.prototype.hasOwnProperty,i={brackets:function(R){return R+"[]"},comma:"comma",indices:function(R,L){return R+"["+L+"]"},repeat:function(R){return R}},o=Array.isArray,l=Array.prototype.push,a=function(A,R){l.apply(A,o(R)?R:[R])},c=Date.prototype.toISOString,u=t.default,p={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:u,formatter:t.formatters[u],indices:!1,serializeDate:function(R){return c.call(R)},skipNulls:!1,strictNullHandling:!1},b=function(R){return typeof R=="string"||typeof R=="number"||typeof R=="boolean"||typeof R=="symbol"||typeof R=="bigint"},w={},S=function A(R,L,M,F,U,Z,D,V,N,K,ue,H,te,ie,le,ee,X,re){for(var oe=R,ge=re,se=0,q=!1;(ge=ge.get(w))!==void 0&&!q;){var pe=ge.get(R);if(se+=1,typeof pe<"u"){if(pe===se)throw new RangeError("Cyclic object value");q=!0}typeof ge.get(w)>"u"&&(se=0)}if(typeof K=="function"?oe=K(L,oe):oe instanceof Date?oe=te(oe):M==="comma"&&o(oe)&&(oe=e.maybeMap(oe,function(tt){return tt instanceof Date?te(tt):tt})),oe===null){if(Z)return N&&!ee?N(L,p.encoder,X,"key",ie):L;oe=""}if(b(oe)||e.isBuffer(oe)){if(N){var Se=ee?L:N(L,p.encoder,X,"key",ie);return[le(Se)+"="+le(N(oe,p.encoder,X,"value",ie))]}return[le(L)+"="+le(String(oe))]}var Me=[];if(typeof oe>"u")return Me;var be;if(M==="comma"&&o(oe))ee&&N&&(oe=e.maybeMap(oe,N)),be=[{value:oe.length>0?oe.join(",")||null:void 0}];else if(o(K))be=K;else{var ke=Object.keys(oe);be=ue?ke.sort(ue):ke}var Le=V?String(L).replace(/\./g,"%2E"):String(L),Re=F&&o(oe)&&oe.length===1?Le+"[]":Le;if(U&&o(oe)&&oe.length===0)return Re+"[]";for(var Pe=0;Pe<be.length;++Pe){var Ie=be[Pe],Ge=typeof Ie=="object"&&Ie&&typeof Ie.value<"u"?Ie.value:oe[Ie];if(!(D&&Ge===null)){var Ue=H&&V?String(Ie).replace(/\./g,"%2E"):String(Ie),ze=o(oe)?typeof M=="function"?M(Re,Ue):Re:Re+(H?"."+Ue:"["+Ue+"]");re.set(R,se);var $e=n();$e.set(w,re),a(Me,A(Ge,ze,M,F,U,Z,D,V,M==="comma"&&ee&&o(oe)?null:N,K,ue,H,te,ie,le,ee,X,$e))}}return Me},_=function(R){if(!R)return p;if(typeof R.allowEmptyArrays<"u"&&typeof R.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof R.encodeDotInKeys<"u"&&typeof R.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(R.encoder!==null&&typeof R.encoder<"u"&&typeof R.encoder!="function")throw new TypeError("Encoder has to be a function.");var L=R.charset||p.charset;if(typeof R.charset<"u"&&R.charset!=="utf-8"&&R.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var M=t.default;if(typeof R.format<"u"){if(!r.call(t.formatters,R.format))throw new TypeError("Unknown format option provided.");M=R.format}var F=t.formatters[M],U=p.filter;(typeof R.filter=="function"||o(R.filter))&&(U=R.filter);var Z;if(R.arrayFormat in i?Z=R.arrayFormat:"indices"in R?Z=R.indices?"indices":"repeat":Z=p.arrayFormat,"commaRoundTrip"in R&&typeof R.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var D=typeof R.allowDots>"u"?R.encodeDotInKeys===!0?!0:p.allowDots:!!R.allowDots;return{addQueryPrefix:typeof R.addQueryPrefix=="boolean"?R.addQueryPrefix:p.addQueryPrefix,allowDots:D,allowEmptyArrays:typeof R.allowEmptyArrays=="boolean"?!!R.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:Z,charset:L,charsetSentinel:typeof R.charsetSentinel=="boolean"?R.charsetSentinel:p.charsetSentinel,commaRoundTrip:!!R.commaRoundTrip,delimiter:typeof R.delimiter>"u"?p.delimiter:R.delimiter,encode:typeof R.encode=="boolean"?R.encode:p.encode,encodeDotInKeys:typeof R.encodeDotInKeys=="boolean"?R.encodeDotInKeys:p.encodeDotInKeys,encoder:typeof R.encoder=="function"?R.encoder:p.encoder,encodeValuesOnly:typeof R.encodeValuesOnly=="boolean"?R.encodeValuesOnly:p.encodeValuesOnly,filter:U,format:M,formatter:F,serializeDate:typeof R.serializeDate=="function"?R.serializeDate:p.serializeDate,skipNulls:typeof R.skipNulls=="boolean"?R.skipNulls:p.skipNulls,sort:typeof R.sort=="function"?R.sort:null,strictNullHandling:typeof R.strictNullHandling=="boolean"?R.strictNullHandling:p.strictNullHandling}};return Qy=function(A,R){var L=A,M=_(R),F,U;typeof M.filter=="function"?(U=M.filter,L=U("",L)):o(M.filter)&&(U=M.filter,F=U);var Z=[];if(typeof L!="object"||L===null)return"";var D=i[M.arrayFormat],V=D==="comma"&&M.commaRoundTrip;F||(F=Object.keys(L)),M.sort&&F.sort(M.sort);for(var N=n(),K=0;K<F.length;++K){var ue=F[K],H=L[ue];M.skipNulls&&H===null||a(Z,S(H,ue,D,V,M.allowEmptyArrays,M.strictNullHandling,M.skipNulls,M.encodeDotInKeys,M.encode?M.encoder:null,M.filter,M.sort,M.allowDots,M.serializeDate,M.format,M.formatter,M.encodeValuesOnly,M.charset,N))}var te=Z.join(M.delimiter),ie=M.addQueryPrefix===!0?"?":"";return M.charsetSentinel&&(M.charset==="iso-8859-1"?ie+="utf8=%26%2310003%3B&":ie+="utf8=%E2%9C%93&"),te.length>0?ie+te:""},Qy}var qy,E3;function JG(){if(E3)return qy;E3=1;var n=cT(),e=Object.prototype.hasOwnProperty,t=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(S){return S.replace(/&#(\d+);/g,function(_,A){return String.fromCharCode(parseInt(A,10))})},o=function(S,_,A){if(S&&typeof S=="string"&&_.comma&&S.indexOf(",")>-1)return S.split(",");if(_.throwOnLimitExceeded&&A>=_.arrayLimit)throw new RangeError("Array limit exceeded. Only "+_.arrayLimit+" element"+(_.arrayLimit===1?"":"s")+" allowed in an array.");return S},l="utf8=%26%2310003%3B",a="utf8=%E2%9C%93",c=function(_,A){var R={__proto__:null},L=A.ignoreQueryPrefix?_.replace(/^\?/,""):_;L=L.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var M=A.parameterLimit===1/0?void 0:A.parameterLimit,F=L.split(A.delimiter,A.throwOnLimitExceeded?M+1:M);if(A.throwOnLimitExceeded&&F.length>M)throw new RangeError("Parameter limit exceeded. Only "+M+" parameter"+(M===1?"":"s")+" allowed.");var U=-1,Z,D=A.charset;if(A.charsetSentinel)for(Z=0;Z<F.length;++Z)F[Z].indexOf("utf8=")===0&&(F[Z]===a?D="utf-8":F[Z]===l&&(D="iso-8859-1"),U=Z,Z=F.length);for(Z=0;Z<F.length;++Z)if(Z!==U){var V=F[Z],N=V.indexOf("]="),K=N===-1?V.indexOf("="):N+1,ue,H;if(K===-1?(ue=A.decoder(V,r.decoder,D,"key"),H=A.strictNullHandling?null:""):(ue=A.decoder(V.slice(0,K),r.decoder,D,"key"),ue!==null&&(H=n.maybeMap(o(V.slice(K+1),A,t(R[ue])?R[ue].length:0),function(ie){return A.decoder(ie,r.decoder,D,"value")}))),H&&A.interpretNumericEntities&&D==="iso-8859-1"&&(H=i(String(H))),V.indexOf("[]=")>-1&&(H=t(H)?[H]:H),ue!==null){var te=e.call(R,ue);te&&A.duplicates==="combine"?R[ue]=n.combine(R[ue],H,A.arrayLimit,A.plainObjects):(!te||A.duplicates==="last")&&(R[ue]=H)}}return R},u=function(S,_,A,R){var L=0;if(S.length>0&&S[S.length-1]==="[]"){var M=S.slice(0,-1).join("");L=Array.isArray(_)&&_[M]?_[M].length:0}for(var F=R?_:o(_,A,L),U=S.length-1;U>=0;--U){var Z,D=S[U];if(D==="[]"&&A.parseArrays)n.isOverflow(F)?Z=F:Z=A.allowEmptyArrays&&(F===""||A.strictNullHandling&&F===null)?[]:n.combine([],F,A.arrayLimit,A.plainObjects);else{Z=A.plainObjects?{__proto__:null}:{};var V=D.charAt(0)==="["&&D.charAt(D.length-1)==="]"?D.slice(1,-1):D,N=A.decodeDotInKeys?V.replace(/%2E/g,"."):V,K=parseInt(N,10);!A.parseArrays&&N===""?Z={0:F}:!isNaN(K)&&D!==N&&String(K)===N&&K>=0&&A.parseArrays&&K<=A.arrayLimit?(Z=[],Z[K]=F):N!=="__proto__"&&(Z[N]=F)}F=Z}return F},p=function(_,A){var R=A.allowDots?_.replace(/\.([^.[]+)/g,"[$1]"):_;if(A.depth<=0)return!A.plainObjects&&e.call(Object.prototype,R)&&!A.allowPrototypes?void 0:[R];var L=/(\[[^[\]]*])/,M=/(\[[^[\]]*])/g,F=L.exec(R),U=F?R.slice(0,F.index):R,Z=[];if(U){if(!A.plainObjects&&e.call(Object.prototype,U)&&!A.allowPrototypes)return;Z.push(U)}for(var D=0;(F=M.exec(R))!==null&&D<A.depth;){D+=1;var V=F[1].slice(1,-1);if(!A.plainObjects&&e.call(Object.prototype,V)&&!A.allowPrototypes)return;Z.push(F[1])}if(F){if(A.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+A.depth+" and strictDepth is true");Z.push("["+R.slice(F.index)+"]")}return Z},b=function(_,A,R,L){if(_){var M=p(_,R);if(M)return u(M,A,R,L)}},w=function(_){if(!_)return r;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 A=typeof _.charset>"u"?r.charset:_.charset,R=typeof _.duplicates>"u"?r.duplicates:_.duplicates;if(R!=="combine"&&R!=="first"&&R!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var L=typeof _.allowDots>"u"?_.decodeDotInKeys===!0?!0:r.allowDots:!!_.allowDots;return{allowDots:L,allowEmptyArrays:typeof _.allowEmptyArrays=="boolean"?!!_.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof _.allowPrototypes=="boolean"?_.allowPrototypes:r.allowPrototypes,allowSparse:typeof _.allowSparse=="boolean"?_.allowSparse:r.allowSparse,arrayLimit:typeof _.arrayLimit=="number"?_.arrayLimit:r.arrayLimit,charset:A,charsetSentinel:typeof _.charsetSentinel=="boolean"?_.charsetSentinel:r.charsetSentinel,comma:typeof _.comma=="boolean"?_.comma:r.comma,decodeDotInKeys:typeof _.decodeDotInKeys=="boolean"?_.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof _.decoder=="function"?_.decoder:r.decoder,delimiter:typeof _.delimiter=="string"||n.isRegExp(_.delimiter)?_.delimiter:r.delimiter,depth:typeof _.depth=="number"||_.depth===!1?+_.depth:r.depth,duplicates:R,ignoreQueryPrefix:_.ignoreQueryPrefix===!0,interpretNumericEntities:typeof _.interpretNumericEntities=="boolean"?_.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof _.parameterLimit=="number"?_.parameterLimit:r.parameterLimit,parseArrays:_.parseArrays!==!1,plainObjects:typeof _.plainObjects=="boolean"?_.plainObjects:r.plainObjects,strictDepth:typeof _.strictDepth=="boolean"?!!_.strictDepth:r.strictDepth,strictNullHandling:typeof _.strictNullHandling=="boolean"?_.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof _.throwOnLimitExceeded=="boolean"?_.throwOnLimitExceeded:!1}};return qy=function(S,_){var A=w(_);if(S===""||S===null||typeof S>"u")return A.plainObjects?{__proto__:null}:{};for(var R=typeof S=="string"?c(S,A):S,L=A.plainObjects?{__proto__:null}:{},M=Object.keys(R),F=0;F<M.length;++F){var U=M[F],Z=b(U,R[U],A,typeof S=="string");L=n.merge(L,Z,A)}return A.allowSparse===!0?L:n.compact(L)},qy}var jy,A3;function QG(){if(A3)return jy;A3=1;var n=KG(),e=JG(),t=N2();return jy={formats:t,parse:e,stringify:n},jy}var qG=QG();const jG=Ph(qG),zm={StoredContexts:{},defaultHandler:()=>{}},uT={Init:()=>{},Create:n=>{const e=n.method+n.url;return zm.StoredContexts[e]=n,$G(n)},FetchBaseUrl:()=>window.location.href,useDefaultHandler:n=>{zm.defaultHandler=n}};function $G(n){const e=`[${n.method}] ${n.url}`;return{Call:async r=>{let{url:i,method:o,stream:l,paramType:a}=n;const{po:c,onStream:u,onStreamEnd:p,noDefaultHandle:b=[]}=r??{};(a==="query"||o==="GET")&&c!==void 0&&(i+="?"+jG.stringify(c,{arrayFormat:"comma"}));const w={method:o,headers:{Accept:"application/json;charset=UTF-8","X-Requested-With":"XMLHttpRequest","Cache-Control":"no-cache",Pragma:"no-cache",crossDomain:"true"}};if(a==="form"){const A=new FormData;if(c!==void 0)for(const R in c){const L=c[R];A.append(R,L)}w.body=A}else(a==="body"||a===void 0&&n.method!=="GET")&&(w.body=JSON.stringify(c),w.headers["Content-Type"]="application/json;charset=UTF-8");let S={errorCode:0,message:""};const _=Date.now();i=uT.FetchBaseUrl()+i;try{let A=await fetch(i,w);if(A.ok===!1)return S.errorCode=A.status,S.message=A.statusText,S;{const R=new TextDecoder("utf-8");if(l){if(A.body){let L=A.body.getReader(),M="";for(;;){const F=await L.read();if(F.done)break;const U=R.decode(F.value).trim();M+=U;let Z=null;try{const D=U.split("\0");let V=D[D.length-1];for(let N=D.length-2;N>=0;N--)if(D[N].trim().length!==0){V=D[N];break}Z=await JSON.parse(V)}catch{try{const V=M.split("\0");let N=V[V.length-1];for(let K=V.length-2;K>=0;K--)if(V[K].trim().length!==0){N=V[K];break}Z=await JSON.parse(N)}catch{}}if(Z!=null&&(Object.keys(Z).includes("err_code")?S.errorCode=Z.err_code:(S.errorCode=0,S.data=Z,M="",F.done?p==null||p(S.data):u==null||u(S.data))),F.done)break}}}else if(A.body){const M=await A.body.getReader().read(),F=R.decode(M.value);if(F==="null")return S;{let U=await JSON.parse(F.replaceAll("\0",""));Object.keys(U).includes("err_code")?(S.errorCode=U.err_code,S.message=U.err_msg):S.data=U}}}}catch(A){console.warn(A),S.errorCode=-1,S.message=A.message}return console.debug(`${e} ${Date.now()-_}ms`),b!==!0&&await zm.defaultHandler(S,b),S}}}exports.ABase=Ki;exports.ABaseStyleKeys=J3;exports.AButton=pd;exports.AButtonStyleKeys=q3;exports.AButtonTypes=g6;exports.ACheckBox=A1;exports.ACheckBoxStyleKeys=t_;exports.AChip=Zm;exports.AChipKeys=w_;exports.AChips=TR;exports.AClock=WR;exports.AColFrame=T_;exports.ADatePicker=Qm;exports.ADatePickerStyleKeys=d_;exports.ADatePickerTypes=L9;exports.ADateRangePicker=qm;exports.ADateRangePickerStyleKeys=h_;exports.ADialog=uk;exports.ADialogStyleKeys=n_;exports.ADialogTypes=ck;exports.ADivideFrame=A_;exports.AEditor=aB;exports.AEditorStyleKeys=e_;exports.AFileBox=gB;exports.AFileBoxStyleKeys=a_;exports.AFileUploader=QB;exports.AFileUploaderStyleKeys=c_;exports.AFloatMenu=TS;exports.AFloatMenuKeys=b_;exports.AFrameStyleKeys=v_;exports.AGrow=Zp;exports.AIcon=Eo;exports.AIconButton=js;exports.AIconButtonStyleKeys=g_;exports.AIconButtonTypes=p6;exports.AIconHOC=y5;exports.AIcons=Gm;exports.AInput=Ih;exports.AInputStyleKeys=j3;exports.AInputTypes=jR;exports.AListView=sz;exports.AListViewStyleKeys=u_;exports.ALoadingBorder=S2;exports.ALoadingBorderKeys=y_;exports.AMultiSelect=Pz;exports.AMultiSelectStyleKeys=i_;exports.ANumInput=nz;exports.AOverflowFrame=eh;exports.AProgressBar=D3;exports.ARadioSelect=mz;exports.ARadioSelectKeys=x_;exports.ARowFrame=Ho;exports.ASelect=Hg;exports.ASelectStyleKeys=r_;exports.ASelectTypes=h9;exports.ASpace=kh;exports.AStepper=Jz;exports.AStepperStyleKeys=f_;exports.ASwitch=U3;exports.ASwitchFrame=E_;exports.ASwitchStyleKeys=l_;exports.ATab=AS;exports.ATabStyleKeys=s_;exports.ATabTypes=aH;exports.ATable=EW;exports.ATableStyleKeys=p_;exports.AText=MS;exports.ATextArea=zW;exports.ATextAreaStyleKeys=$3;exports.ATextAreaTypes=BW;exports.AThemeButton=H6;exports.AThemes=xp;exports.AToast=Km;exports.AToastLoad=c8;exports.ATooltip=W3;exports.ATooltipStyleKeys=Q3;exports.ATree=pG;exports.ATreeStyleKeys=o_;exports.AWrap=Vg;exports.AWrapKeys=m_;exports.AWrapPropsExtract=Dh;exports.AWrapTypes=w6;exports.ApiContext=uT;exports.BodyStyleKeys=K3;exports.CreateADC=bk;exports.DefaultOptionRenderer=ES;exports.EDir12=B1;exports.EDir4=rc;exports.FileSizeTrans=Fg;exports.Icons=O0;exports.IsCursorPointer=O3;exports.IsFixedShape=L3;exports.IsInteractive=P3;exports.NoSelect=I3;exports.NoTransition=M3;exports.Resources=Cr;exports.SetResources=O5;exports.alphanumericRegex=RR;exports.bound=mp;exports.cbF=Or;exports.changeSemanticMode=Vm;exports.classes=Hm;exports.componentStyleKeys=O6;exports.createEvent=Jv;exports.dateF=Ch;exports.dbF=Ed;exports.defaultPredicate=kS;exports.dlgF=yk;exports.emailIdRegex=MR;exports.emailRegex=IR;exports.fileF=SS;exports.fontWeights=Wm;exports.getFileKey=_S;exports.hangulRegex=OR;exports.hexRegex=LR;exports.key=k3;exports.noHanguljamoRegex=DR;exports.noSpaceRegex=PR;exports.numF=l0;exports.objF=Kn;exports.onlyAlphanumericRegex=kR;exports.paletteKeys=Y3;exports.paletteModes=P0;exports.passwordRegex=FR;exports.refinedDesignTokens=oc;exports.sF=St;exports.semanticKeys=Z3;exports.semanticModes=E1;exports.setDir12Style=B3;exports.setDir12StyleElem=z3;exports.specialCharRegex=NR;exports.strF=Xm;exports.tableF=Sh;exports.textMeasurement=Ng;exports.treeF=ng;exports.typographies=Um;exports.useADialogCore=hk;exports.useADialogCores=pk;exports.useDB=__;exports.useEvent=Og;exports.useInit=RS;exports.useLayoutDB=S_;exports.useOffset=F3;exports.useValues=yo;exports.uuidRegex=BR;
|
package/dist/index.es.js
CHANGED
|
@@ -54157,9 +54157,7 @@ const Fg = {
|
|
|
54157
54157
|
y,
|
|
54158
54158
|
/* @__PURE__ */ O.jsx(so, { isDisabled: T, onClick: L, children: /* @__PURE__ */ O.jsx(Go, { className: Co.RightAddonIcon, icon: "ArrowUp", mask: "" }) }),
|
|
54159
54159
|
/* @__PURE__ */ O.jsx(so, { isDisabled: A, onClick: F, children: /* @__PURE__ */ O.jsx(Go, { className: Co.RightAddonIcon, icon: "ArrowDown" }) })
|
|
54160
|
-
] }) : /* @__PURE__ */ O.jsx(ba, { className: Co.RightAddonIcon, icon: "Search",
|
|
54161
|
-
marginRight: 4
|
|
54162
|
-
}, tooltip: a["Search(Button)"], type: "Raw", onClick: V }) }), e[12] = A, e[13] = T, e[14] = y, e[15] = F, e[16] = V, e[17] = L, e[18] = u, e[19] = a, e[20] = r, e[21] = G) : G = e[21], G;
|
|
54160
|
+
] }) : /* @__PURE__ */ O.jsx(ba, { className: Co.RightAddonIcon, icon: "Search", tooltip: a["Search(Button)"], type: "Raw", onClick: V }) }), e[12] = A, e[13] = T, e[14] = y, e[15] = F, e[16] = V, e[17] = L, e[18] = u, e[19] = a, e[20] = r, e[21] = G) : G = e[21], G;
|
|
54163
54161
|
}, MV = (n) => {
|
|
54164
54162
|
var Ln;
|
|
54165
54163
|
const {
|