You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/16858.ec3e9dbb.async.js

1 line
52 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[16858],{28563:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},88142:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(5891),o=n(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},a=n(22589),l=function(e,t){return o.createElement(a.Z,(0,r.Z)({},e,{ref:t,icon:i}))};var c=o.forwardRef(l)},68610:function(e,t,n){n.d(t,{LB:function(){return Ae},g4:function(){return Y},VK:function(){return D},Cj:function(){return Xe},O1:function(){return Pe},Zj:function(){return Fe}});var r=n(59301),o=n(4676),i=n(35241);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}function c(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":o,"aria-atomic":!0},n)}const s=(0,r.createContext)(null);const u={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},d={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function f(e){let{announcements:t=d,container:n,hiddenTextDescribedById:a,screenReaderInstructions:f=u}=e;const{announce:g,announcement:v}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),h=(0,i.Ld)("DndLiveRegion"),[p,b]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{b(!0)}),[]),function(e){const t=(0,r.useContext)(s);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;g(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&g(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;g(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;g(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;g(t.onDragCancel({active:n,over:r}))}})),[g,t])),!p)return null;const m=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:f.draggable}),r.createElement(c,{id:h,announcement:v}));return n?(0,o.createPortal)(m,n):m}var g;function v(){}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(g||(g={}));const h=Object.freeze({x:0,y:0});function p(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function b(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const m=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=b(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(p)};function y(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:h}function w(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const x=w(1);function C(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const E={ignoreTransform:!1};function D(e,t){void 0===t&&(t=E);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,i.Jj)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=C(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,c=e.left-a-(1-o)*parseFloat(n),s=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:s,right:c+u,bottom:s+d,left:c}}(n,t,r))}const{top:r,left:o,width:a,height:l,bottom:c,right:s}=n;return{top:r,left:o,width:a,height:l,bottom:c,right:s}}function R(e){return D(e,{ignoreTransform:!0})}function S(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.Re)(o)||(0,i.vZ)(o))return n;if(n.includes(o))return n;const a=(0,i.Jj)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,a)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,a)?n:r(o.parentNode)}(e):n}function O(e){const[t]=S(e,1);return null!=t?t:null}function I(e){return i.Nq&&e?(0,i.FJ)(e)?e:(0,i.UG)(e)?(0,i.qk)(e)||e===(0,i.r3)(e).scrollingElement?window:(0,i.Re)(e)?e:null:null:null}function k(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function M(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function N(e){return{x:k(e),y:M(e)}}var j;function T(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function L(e){const t={x:0,y:0},n=T(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(j||(j={}));const A={x:.2,y:.2};function B(e,t,n,r,o){let{top:i,left:a,right:l,bottom:c}=n;void 0===r&&(r=10),void 0===o&&(o=A);const{isTop:s,isBottom:u,isLeft:d,isRight:f}=L(e),g={x:0,y:0},v={x:0,y:0},h=t.height*o.y,p=t.width*o.x;return!s&&i<=t.top+h?(g.y=j.Backward,v.y=r*Math.abs((t.top+h-i)/h)):!u&&c>=t.bottom-h&&(g.y=j.Forward,v.y=r*Math.abs((t.bottom-h-c)/h)),!f&&l>=t.right-p?(g.x=j.Forward,v.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(g.x=j.Backward,v.x=r*Math.abs((t.left+p-a)/p)),{direction:g,speed:v}}function z(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function P(e){return e.reduce(((e,t)=>(0,i.IH)(e,N(t))),h)}function X(e,t){if(void 0===t&&(t=D),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);O(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const H=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+k(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+M(t)),0)}]];class F{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 n=S(t),r=P(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of H)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ${constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function U(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var J,Y;function Z(e){e.preventDefault()}function K(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(J||(J={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(Y||(Y={}));const W={start:[Y.Space,Y.Enter],cancel:[Y.Esc],end:[Y.Space,Y.Enter]},_=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Y.Right:return{...n,x:n.x+25};case Y.Left:return{...n,x:n.x-25};case Y.Down:return{...n,y:n.y+25};case Y.Up:return{...n,y:n.y-25}}};class V{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 $((0,i.r3)(t)),this.windowListeners=new $((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(J.Resize,this.handleCancel),this.windowListeners.add(J.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(J.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&X(n),t(h)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=W,coordinateGetter:a=_,scrollBehavior:l="smooth"}=r,{code:c}=e;if(o.end.includes(c))return void this.handleEnd(e);if(o.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:s}=n.current,u=s?{x:s.left,y:s.top}:h;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:c,isBottom:s,maxScroll:u,minScroll:f}=L(n),g=z(n),v={x:Math.min(o===Y.Right?g.right-g.width/2:g.right,Math.max(o===Y.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(o===Y.Down?g.bottom-g.height/2:g.bottom,Math.max(o===Y.Down?g.top:g.top+g.height/2,d.y))},h=o===Y.Right&&!a||o===Y.Left&&!c,p=o===Y.Down&&!s||o===Y.Up&&!i;if(h&&v.x!==d.x){const e=n.scrollLeft+t.x,i=o===Y.Right&&e<=u.x||o===Y.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===Y.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&v.y!==d.y){const e=n.scrollTop+t.y,i=o===Y.Down&&e<=u.y||o===Y.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===Y.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,i.IH)((0,i.$X)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(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()}}function q(e){return Boolean(e&&"distance"in e)}function G(e){return Boolean(e&&"delay"in e)}V.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=W,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class Q{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.Jj)(e);return e instanceof t?e:(0,i.r3)(e)}(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:a}=o;this.props=e,this.events=t,this.document=(0,i.r3)(a),this.documentListeners=new $(this.document),this.listeners=new $(n),this.windowListeners=new $((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(o))?r:h,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:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(J.Resize,this.handleCancel),this.windowListeners.add(J.DragStart,Z),this.windowListeners.add(J.VisibilityChange,this.handleCancel),this.windowListeners.add(J.ContextMenu,Z),this.documentListeners.add(J.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(G(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(q(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(J.Click,K,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(J.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const c=null!=(t=(0,i.DC)(e))?t:h,s=(0,i.$X)(r,c);if(!n&&l){if(q(l)){if(null!=l.tolerance&&U(s,l.tolerance))return this.handleCancel();if(U(s,l.distance))return this.handleStart()}return G(l)&&U(s,l.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),a(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===Y.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const ee={move:{name:"pointermove"},end:{name:"pointerup"}};class te extends Q{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,ee,n)}}te.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const ne={move:{name:"mousemove"},end:{name:"mouseup"}};var re;!function(e){e[e.RightClick=2]="RightClick"}(re||(re={}));(class extends Q{constructor(e){super(e,ne,(0,i.r3)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==re.RightClick&&(null==r||r({event:n}),!0)}}];const oe={move:{name:"touchmove"},end:{name:"touchend"}};var ie,ae;function le(e){let{acceleration:t,activator:n=ie.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:c=5,order:s=ae.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:g,threshold:v}=e;const h=function(e){let{delta:t,disabled:n}=e;const r=(0,i.D9)(t);return(0,i.Gj)((e=>{if(n||!r||!e)return ce;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[j.Backward]:e.x[j.Backward]||-1===o.x,[j.Forward]:e.x[j.Forward]||1===o.x},y:{[j.Backward]:e.y[j.Backward]||-1===o.y,[j.Forward]:e.y[j.Forward]||1===o.y}}}),[n,t,r])}({delta:g,disabled:!l}),[p,b]=(0,i.Yz)(),m=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case ie.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case ie.DraggableRect:return a}}),[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)}),[]),E=(0,r.useMemo)((()=>s===ae.TreeOrder?[...d].reverse():d),[s,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=B(e,r,w,t,v);for(const e of["x","y"])h[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,c),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()}),[t,C,o,b,l,c,JSON.stringify(w),JSON.stringify(h),p,d,E,f,JSON.stringify(v)])}(class extends Q{constructor(e){super(e,oe)}static setup(){return window.addEventListener(oe.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(oe.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(ie||(ie={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ae||(ae={}));const ce={x:{[j.Backward]:!1,[j.Forward]:!1},y:{[j.Backward]:!1,[j.Forward]:!1}};var se,ue;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(se||(se={})),function(e){e.Optimized="optimized"}(ue||(ue={}));const de=new Map;function fe(e,t){return(0,i.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function ge(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function ve(e){return new F(D(e),e)}function he(e,t,n){void 0===t&&(t=ve);const[o,a]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);if(JSON.stringify(r)===JSON.stringify(i))return r;return i}),null),l=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),c=ge({callback:a});return(0,i.LI)((()=>{a(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())}),[e]),o}const pe=[];function be(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==h;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.$X)(e,n.current):h}function me(e){return(0,r.useMemo)((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const ye=[];function we(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.Re)(t)?t:e}const xe=[{sensor:te,options:{}},{sensor:V,options:{}}],Ce={current:{}},Ee={draggable:{measure:R},droppable:{measure:R,strategy:se.WhileDragging,frequency:ue.Optimized},dragOverlay:{measure:D}};class De extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?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,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Re={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new De,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:v},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ee,measureDroppableContainers:v,windowRect:null,measuringScheduled:!1},Se={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:v,draggableNodes:new Map,over:null,measureDroppableContainers:v},Oe=(0,r.createContext)(Se),Ie=(0,r.createContext)(Re);function ke(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new De}}}function Me(e,t){switch(t.type){case g.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case g.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case g.DragEnd:case g.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case g.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new De(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case g.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new De(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case g.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new De(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Ne(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Oe),l=(0,i.D9)(o),c=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=c){if(!(0,i.vd)(l))return;if(document.activeElement===l.target)return;const e=a.get(c);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,i.so)(e);if(t){t.focus();break}}}))}}),[o,t,a,c,l]),null}function je(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Te=(0,r.createContext)({...h,scaleX:1,scaleY:1});var Le;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(Le||(Le={}));const Ae=(0,r.memo)((function(e){var t,n,a,l;let{id:c,accessibility:u,autoScroll:d=!0,children:v,sensors:p=xe,collisionDetection:b=m,measuring:w,modifiers:C,...E}=e;const R=(0,r.useReducer)(Me,void 0,ke),[k,M]=R,[j,L]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[A,B]=(0,r.useState)(Le.Uninitialized),z=A===Le.Initialized,{draggable:{active:X,nodes:H,translate:$},droppable:{containers:U}}=k,J=X?H.get(X):null,Y=(0,r.useRef)({initial:null,translated:null}),Z=(0,r.useMemo)((()=>{var e;return null!=X?{id:X,data:null!=(e=null==J?void 0:J.data)?e:Ce,rect:Y}:null}),[X,J]),K=(0,r.useRef)(null),[W,_]=(0,r.useState)(null),[V,q]=(0,r.useState)(null),G=(0,i.Ey)(E,Object.values(E)),Q=(0,i.Ld)("DndDescribedBy",c),ee=(0,r.useMemo)((()=>U.getEnabled()),[U]),te=(ne=w,(0,r.useMemo)((()=>({draggable:{...Ee.draggable,...null==ne?void 0:ne.draggable},droppable:{...Ee.droppable,...null==ne?void 0:ne.droppable},dragOverlay:{...Ee.dragOverlay,...null==ne?void 0:ne.dragOverlay}})),[null==ne?void 0:ne.draggable,null==ne?void 0:ne.droppable,null==ne?void 0:ne.dragOverlay]));var ne;const{droppableRects:re,measureDroppableContainers:oe,measuringScheduled:ie}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[l,c]=(0,r.useState)(null),{frequency:s,measure:u,strategy:d}=a,f=(0,r.useRef)(e),g=function(){switch(d){case se.Always:return!1;case se.BeforeDragging:return n;default:return!n}}(),v=(0,i.Ey)(g),h=(0,r.useCallback)((function(e){void 0===e&&(e=[]),v.current||c((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[v]),p=(0,r.useRef)(null),b=(0,i.Gj)((t=>{if(g&&!n)return de;if(!t||t===de||f.current!==e||null!=l){const t=new Map;for(let n of e){if(!n)continue;if(l&&l.length>0&&!l.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new F(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t}),[e,l,n,g,u]);return(0,r.useEffect)((()=>{f.current=e}),[e]),(0,r.useEffect)((()=>{g||h()}),[n,g]),(0,r.useEffect)((()=>{l&&l.length>0&&c(null)}),[JSON.stringify(l)]),(0,r.useEffect)((()=>{g||"number"!=typeof s||null!==p.current||(p.current=setTimeout((()=>{h(),p.current=null}),s))}),[s,g,h,...o]),{droppableRects:b,measureDroppableContainers:h,measuringScheduled:null!=l}}(ee,{dragging:z,dependencies:[$.x,$.y],config:te.droppable}),ae=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(H,X),ce=(0,r.useMemo)((()=>V?(0,i.DC)(V):null),[V]),ue=function(){const e=!1===(null==W?void 0:W.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=z&&!e&&!t;if("object"==typeof d)return{...d,enabled:n};return{enabled:n}}(),ve=function(e,t){return fe(e,t)}(ae,te.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:c,y:s}="boolean"==typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!c&&!s||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=y(n(e),o);if(c||(r.x=0),s||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=O(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,c,s,o,n])}({activeNode:X?H.get(X):null,config:ue.layoutShiftCompensation,initialRect:ve,measure:te.draggable.measure});const De=he(ae,te.draggable.measure,ve),Re=he(ae?ae.parentElement:null),Se=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ae,collisionRect:null,collisions:null,droppableRects:re,draggableNodes:H,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Ae=U.getNodeFor(null==(t=Se.current.over)?void 0:t.id),Be=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=ge({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),l=(0,r.useCallback)((e=>{const n=we(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[c,s]=(0,i.wm)(l);return(0,r.useMemo)((()=>({nodeRef:c,rect:n,setRef:s})),[n,c,s])}({measure:te.dragOverlay.measure}),ze=null!=(n=Be.nodeRef.current)?n:ae,Pe=z?null!=(a=Be.rect)?a:De:null,Xe=Boolean(Be.nodeRef.current&&Be.rect),He=y(Fe=Xe?null:De,fe(Fe));var Fe;const $e=me(ze?(0,i.Jj)(ze):null),Ue=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==pe&&e&&t.current&&e.parentNode===t.current.parentNode?n:S(e):pe),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(z?null!=Ae?Ae:ae:null),Je=function(e,t){void 0===t&&(t=D);const[n]=e,o=me(n?(0,i.Jj)(n):null),[a,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>T(e)?o:new F(t(e),e))):ye}),ye),c=ge({callback:l});return e.length>0&&a===ye&&l(),(0,i.LI)((()=>{e.length?e.forEach((e=>null==c?void 0:c.observe(e))):(null==c||c.disconnect(),l())}),[e]),a}(Ue),Ye=je(C,{transform:{x:$.x-He.x,y:$.y-He.y,scaleX:1,scaleY:1},activatorEvent:V,active:Z,activeNodeRect:De,containerNodeRect:Re,draggingNodeRect:Pe,over:Se.current.over,overlayNodeRect:Be.rect,scrollableAncestors:Ue,scrollableAncestorRects:Je,windowRect:$e}),Ze=ce?(0,i.IH)(ce,$):null,Ke=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=I(e.target);t&&n((e=>e?(e.set(t,N(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=I(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,N(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=I(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.IH)(e,t)),h):P(e):h),[e,t])}(Ue),We=be(Ke),_e=be(Ke,[De]),Ve=(0,i.IH)(Ye,We),qe=Pe?x(Pe,Ye):null,Ge=Z&&qe?b({active:Z,collisionRect:qe,droppableRects:re,droppableContainers:ee,pointerCoordinates:Ze}):null,Qe=function(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}(Ge,"id"),[et,tt]=(0,r.useState)(null),nt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Xe?Ye:(0,i.IH)(Ye,_e),null!=(l=null==et?void 0:et.rect)?l:null,De),rt=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==K.current)return;const i=H.get(K.current);if(!i)return;const a=e.nativeEvent,l=new n({active:K.current,activeNode:i,event:a,options:r,context:Se,onStart(e){const t=K.current;if(null==t)return;const n=H.get(t);if(!n)return;const{onDragStart:r}=G.current,i={active:{id:t,data:n.data,rect:Y}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),B(Le.Initializing),M({type:g.DragStart,initialCoordinates:e,active:t}),j({type:"onDragStart",event:i})}))},onMove(e){M({type:g.DragMove,coordinates:e})},onEnd:c(g.DragEnd),onCancel:c(g.DragCancel)});function c(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=Se.current;let l=null;if(t&&i){const{cancelDrop:o}=G.current;if(l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===g.DragEnd&&"function"==typeof o){await Promise.resolve(o(l))&&(e=g.DragCancel)}}K.current=null,(0,o.unstable_batchedUpdates)((()=>{M({type:e}),B(Le.Uninitialized),tt(null),_(null),q(null);const t=e===g.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=G.current[t];null==e||e(l),j({type:t,event:l})}}))}}(0,o.unstable_batchedUpdates)((()=>{_(l),q(e.nativeEvent)}))}),[H]),ot=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=H.get(r);if(null!==K.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},K.current=r,rt(n,t))}),[H,rt]),it=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(p,ot);!function(e){(0,r.useEffect)((()=>{if(!i.Nq)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(p),(0,i.LI)((()=>{De&&A===Le.Initializing&&B(Le.Initialized)}),[De,A]),(0,r.useEffect)((()=>{const{onDragMove:e}=G.current,{active:t,activatorEvent:n,collisions:r,over:i}=Se.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:Ve.x,y:Ve.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),j({type:"onDragMove",event:a})}))}),[Ve.x,Ve.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=Se.current;if(!e||null==K.current||!t||!i)return;const{onDragOver:a}=G.current,l=r.get(Qe),c=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,s={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:c};(0,o.unstable_batchedUpdates)((()=>{tt(c),null==a||a(s),j({type:"onDragOver",event:s})}))}),[Qe]),(0,i.LI)((()=>{Se.current={activatorEvent:V,active:Z,activeNode:ae,collisionRect:qe,collisions:Ge,droppableRects:re,draggableNodes:H,draggingNode:ze,draggingNodeRect:Pe,droppableContainers:U,over:et,scrollableAncestors:Ue,scrollAdjustedTranslate:Ve},Y.current={initial:Pe,translated:qe}}),[Z,ae,Ge,qe,H,ze,Pe,re,U,et,Ue,Ve]),le({...ue,delta:$,draggingRect:qe,pointerCoordinates:Ze,scrollableAncestors:Ue,scrollableAncestorRects:Je});const at=(0,r.useMemo)((()=>({active:Z,activeNode:ae,activeNodeRect:De,activatorEvent:V,collisions:Ge,containerNodeRect:Re,dragOverlay:Be,draggableNodes:H,droppableContainers:U,droppableRects:re,over:et,measureDroppableContainers:oe,scrollableAncestors:Ue,scrollableAncestorRects:Je,measuringConfiguration:te,measuringScheduled:ie,windowRect:$e})),[Z,ae,De,V,Ge,Re,Be,H,U,re,et,oe,Ue,Je,te,ie,$e]),lt=(0,r.useMemo)((()=>({activatorEvent:V,activators:it,active:Z,activeNodeRect:De,ariaDescribedById:{draggable:Q},dispatch:M,draggableNodes:H,over:et,measureDroppableContainers:oe})),[V,it,Z,De,M,Q,H,et,oe]);return r.createElement(s.Provider,{value:L},r.createElement(Oe.Provider,{value:lt},r.createElement(Ie.Provider,{value:at},r.createElement(Te.Provider,{value:nt},v)),r.createElement(Ne,{disabled:!1===(null==u?void 0:u.restoreFocus)})),r.createElement(f,{...u,hiddenTextDescribedById:Q}))})),Be=(0,r.createContext)(null),ze="button";function Pe(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.Ld)("Droppable"),{activators:c,activatorEvent:s,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:g,over:v}=(0,r.useContext)(Oe),{role:h=ze,roleDescription:p="draggable",tabIndex:b=0}=null!=a?a:{},m=(null==u?void 0:u.id)===t,y=(0,r.useContext)(m?Te:Be),[w,x]=(0,i.wm)(),[C,E]=(0,i.wm)(),D=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(c,t),R=(0,i.Ey)(n);(0,i.LI)((()=>(g.set(t,{id:t,key:l,node:w,activatorNode:C,data:R}),()=>{const e=g.get(t);e&&e.key===l&&g.delete(t)})),[g,t]);return{active:u,activatorEvent:s,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:h,tabIndex:b,"aria-disabled":o,"aria-pressed":!(!m||h!==ze)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,h,b,m,p,f.draggable]),isDragging:m,listeners:o?void 0:D,node:w,over:v,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function Xe(){return(0,r.useContext)(Ie)}const He={timeout:25};function Fe(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.Ld)("Droppable"),{active:c,dispatch:s,over:u,measureDroppableContainers:d}=(0,r.useContext)(Oe),f=(0,r.useRef)({disabled:n}),v=(0,r.useRef)(!1),h=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:b,updateMeasurementsFor:m,timeout:y}={...He,...a},w=(0,i.Ey)(null!=m?m:o),x=ge({callback:(0,r.useCallback)((()=>{v.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):v.current=!0}),[y]),disabled:b||!c}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),v.current=!1),e&&x.observe(e))}),[x]),[E,D]=(0,i.wm)(C),R=(0,i.Ey)(t);return(0,r.useEffect)((()=>{x&&E.current&&(x.disconnect(),v.current=!1,x.observe(E.current))}),[E,x]),(0,i.LI)((()=>(s({type:g.RegisterDroppable,element:{id:o,key:l,disabled:n,node:E,rect:h,data:R}}),()=>s({type:g.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(s({type:g.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,s]),{active:c,rect:h,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:D}}},18257:function(e,t,n){n.d(t,{DL:function(){return r}});n(35241);const r=e=>{let{transform:t}=e;return{...t,x:0}}},19719:function(e,t,n){n.d(t,{Fo:function(){return v},nB:function(){return x},qw:function(){return d}});var r=n(59301),o=n(68610),i=n(35241);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function c(e){return null!==e&&e>=0}const s=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),l=t[o],c=i[o];return c&&l?{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...u}:null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-c,...u}:o<n&&o>=a?{x:0,y:l.height+c,...u}:{x:0,y:0,...u}};const f="Sortable",g=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:s,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:a,strategy:c=s,disabled:u=!1}=e;const{active:d,dragOverlay:v,droppableRects:h,over:p,measureDroppableContainers:b}=(0,o.Cj)(),m=(0,i.Ld)(f,n),y=Boolean(null!==v.rect),w=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),x=null!=d,C=d?w.indexOf(d.id):-1,E=p?w.indexOf(p.id):-1,D=(0,r.useRef)(w),R=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(w,D.current),S=-1!==E&&-1===C||R,O=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,i.LI)((()=>{R&&x&&b(w)}),[R,w,x,b]),(0,r.useEffect)((()=>{D.current=w}),[w]);const I=(0,r.useMemo)((()=>({activeIndex:C,containerId:m,disabled:O,disableTransforms:S,items:w,overIndex:E,useDragOverlay:y,sortedRects:l(w,h),strategy:c})),[C,m,O.draggable,O.droppable,S,w,E,h,y,c]);return r.createElement(g.Provider,{value:I},t)}const h=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},p=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:c,transition:s}=e;return!(!s||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===c))},b={duration:200,easing:"ease"},m="transform",y=i.ux.Transition.toString({property:m,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=p,attributes:n,disabled:a,data:l,getNewIndex:s=h,id:u,strategy:d,resizeObserverConfig:f,transition:v=b}=e;const{items:x,containerId:C,activeIndex:E,disabled:D,disableTransforms:R,sortedRects:S,overIndex:O,useDragOverlay:I,strategy:k}=(0,r.useContext)(g),M=function(e,t){var n,r;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,D),N=x.indexOf(u),j=(0,r.useMemo)((()=>({sortable:{containerId:C,index:N,items:x},...l})),[C,l,N,x]),T=(0,r.useMemo)((()=>x.slice(x.indexOf(u))),[x,u]),{rect:L,node:A,isOver:B,setNodeRef:z}=(0,o.Zj)({id:u,data:j,disabled:M.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...f}}),{active:P,activatorEvent:X,activeNodeRect:H,attributes:F,setNodeRef:$,listeners:U,isDragging:J,over:Y,setActivatorNodeRef:Z,transform:K}=(0,o.O1)({id:u,data:j,attributes:{...w,...n},disabled:M.draggable}),W=(0,i.HB)(z,$),_=Boolean(P),V=_&&!R&&c(E)&&c(O),q=!I&&J,G=q&&V?K:null,Q=V?null!=G?G:(null!=d?d:k)({rects:S,activeNodeRect:H,activeIndex:E,overIndex:O,index:N}):null,ee=c(E)&&c(O)?s({id:u,items:x,activeIndex:E,overIndex:O}):N,te=null==P?void 0:P.id,ne=(0,r.useRef)({activeId:te,items:x,newIndex:ee,containerId:C}),re=x!==ne.current.items,oe=t({active:P,containerId:C,isDragging:J,isSorting:_,id:u,index:N,items:x,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:v,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[c,s]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.LI)((()=>{if(!t&&n!==u.current&&a.current){const e=l.current;if(e){const t=(0,o.VK)(a.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&s(n)}}n!==u.current&&(u.current=n)}),[t,n,a,l]),(0,r.useEffect)((()=>{c&&s(null)}),[c]),c}({disabled:!oe,index:N,node:A,rect:L});return(0,r.useEffect)((()=>{_&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),x!==ne.current.items&&(ne.current.items=x)}),[_,ee,C,x]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:P,activeIndex:E,attributes:F,data:j,rect:L,index:N,newIndex:ee,items:x,isOver:B,isSorting:_,isDragging:J,listeners:U,node:A,overIndex:O,over:Y,setNodeRef:W,setActivatorNodeRef:Z,setDroppableNodeRef:z,setDraggableNodeRef:$,transform:null!=ie?ie:Q,transition:function(){if(ie||re&&ne.current.newIndex===N)return y;if(q&&!(0,i.vd)(X)||!v)return;if(_||oe)return i.ux.Transition.toString({...v,property:m});return}()}}o.g4.Down,o.g4.Right,o.g4.Up,o.g4.Left},35241:function(e,t,n){n.d(t,{$X:function(){return D},D9:function(){return y},DC:function(){return S},Ey:function(){return p},FJ:function(){return a},Gj:function(){return b},HB:function(){return o},IH:function(){return E},Jj:function(){return c},LI:function(){return g},Ld:function(){return x},Nq:function(){return i},Re:function(){return u},UG:function(){return l},Yz:function(){return h},qk:function(){return s},r3:function(){return f},so:function(){return k},ux:function(){return O},vZ:function(){return d},vd:function(){return R},wm:function(){return m},zX:function(){return v}});var r=n(59301);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function c(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function s(e){const{Document:t}=c(e);return e instanceof t}function u(e){return!a(e)&&e instanceof c(e).HTMLElement}function d(e){return e instanceof c(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?s(e)?e:u(e)||d(e)?e.ownerDocument:document:document:document}const g=i?r.useLayoutEffect:r.useEffect;function v(e){const t=(0,r.useRef)(e);return g((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function h(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return g((()=>{n.current!==e&&(n.current=e)}),t),n}function b(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function m(e){const t=v(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const E=C(1),D=C(-1);function R(e){if(!e)return!1;const{KeyboardEvent:t}=c(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=c(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const O=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[O.Translate.toString(e),O.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),I="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function k(e){return e.matches(I)?e:e.querySelector(I)}},66104:function(e,t,n){n.d(t,{Z:function(){return M}});var r=n(92310),o=n.n(r),i=n(75440),a=n(47413),l=n(59301),c=n(92343),s=n(36355),u=n(78386),d=n(91857);const f=e=>{let{children:t}=e;const{getPrefixCls:n}=l.useContext(s.E_),r=n("breadcrumb");return l.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};f.__ANT_BREADCRUMB_SEPARATOR=!0;var g=f,v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function h(e,t,n,r){if(null==n)return null;const{className:i,onClick:c}=t,s=v(t,["className","onClick"]),u=Object.assign(Object.assign({},(0,a.Z)(s,{data:!0,aria:!0})),{onClick:c});return void 0!==r?l.createElement("a",Object.assign({},u,{className:o()(`${e}-link`,i),href:r}),n):l.createElement("span",Object.assign({},u,{className:o()(`${e}-link`,i)}),n)}function p(e,t){return(n,r,o,i,a)=>{if(t)return t(n,r,o,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),((e,n)=>t[n]||e))}(n,r);return h(e,n,l,a)}}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const m=e=>{const{prefixCls:t,separator:n="/",children:r,menu:o,overlay:i,dropdownProps:a,href:c}=e;const s=(e=>{if(o||i){const n=Object.assign({},a);if(o){const e=o||{},{items:t}=e,r=b(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null==t?void 0:t.map(((e,t)=>{var{key:n,title:r,label:o,path:i}=e,a=b(e,["key","title","label","path"]);let s=null!=o?o:r;return i&&(s=l.createElement("a",{href:`${c}${i}`},s)),Object.assign(Object.assign({},a),{key:null!=n?n:t,label:s})}))})}else i&&(n.overlay=i);return l.createElement(d.Z,Object.assign({placement:"bottom"},n),l.createElement("span",{className:`${t}-overlay-link`},e,l.createElement(u.Z,null)))}return e})(r);return null!=s?l.createElement(l.Fragment,null,l.createElement("li",null,s),n&&l.createElement(g,null,n)):null},y=e=>{const{prefixCls:t,children:n,href:r}=e,o=b(e,["prefixCls","children","href"]),{getPrefixCls:i}=l.useContext(s.E_),a=i("breadcrumb",t);return l.createElement(m,Object.assign({},o,{prefixCls:a}),h(a,o,n,r))};y.__ANT_BREADCRUMB_ITEM=!0;var w=y,x=n(17313),C=n(83116),E=n(37613);const D=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},(0,x.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,x.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var R=(0,C.Z)("Breadcrumb",(e=>{const t=(0,E.TS)(e,{});return[D(t)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),S=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function O(e){const{breadcrumbName:t,children:n}=e,r=S(e,["breadcrumbName","children"]),o=Object.assign({title:t},r);return n&&(o.menu={items:n.map((e=>{var{breadcrumbName:t}=e,n=S(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})}))}),o}var I=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const k=e=>{const{prefixCls:t,separator:n="/",style:r,className:u,rootClassName:d,routes:f,items:v,children:h,itemRender:b,params:y={}}=e,w=I(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:x,direction:C,breadcrumb:E}=l.useContext(s.E_);let D;const S=x("breadcrumb",t),[k,M]=R(S),N=function(e,t){return(0,l.useMemo)((()=>e||(t?t.map(O):null)),[e,t])}(v,f);const j=p(S,b);if(N&&N.length>0){const e=[],t=v||f;D=N.map(((r,o)=>{const{path:i,key:c,type:s,menu:u,overlay:d,onClick:f,className:v,separator:h,dropdownProps:p}=r,b=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach((t=>{n=n.replace(`:${t}`,e[t])})),n})(y,i);void 0!==b&&e.push(b);const w=null!=c?c:o;if("separator"===s)return l.createElement(g,{key:w},h);const x={},C=o===N.length-1;u?x.menu=u:d&&(x.overlay=d);let{href:E}=r;return e.length&&void 0!==b&&(E=`#/${e.join("/")}`),l.createElement(m,Object.assign({key:w},x,(0,a.Z)(r,{data:!0,aria:!0}),{className:v,dropdownProps:p,href:E,separator:C?"":n,onClick:f,prefixCls:S}),j(r,y,t,e,E))}))}else if(h){const e=(0,i.Z)(h).length;D=(0,i.Z)(h).map(((t,r)=>{if(!t)return t;const o=r===e-1;return(0,c.Tm)(t,{separator:o?"":n,key:r})}))}const T=o()(S,null==E?void 0:E.className,{[`${S}-rtl`]:"rtl"===C},u,d,M),L=Object.assign(Object.assign({},null==E?void 0:E.style),r);return k(l.createElement("nav",Object.assign({className:T,style:L},w),l.createElement("ol",null,D)))};k.Item=w,k.Separator=g;var M=k}}]);