You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
83 KiB
JavaScript
1 line
83 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3338],{84717:function(e,t,r){r.d(t,{Z5:function(){return nF},_l:function(){return n1},bK:function(){return lA}});var n=r(2265),l=r(54887),i=r(70746),a=r(73416),o=r(871),d=r(71925),s=r(38439),c=r(11713),u=r(14749);let p=/[ \t]{2,}/g,g=/^[ \t]*/gm,f=e=>e.replace(p," ").replace(g,"").trim();function m(e,t){}function b(){}function h(e,t,r){let n=t.map(t=>{var n;let l=(n=t.options,{...r,...n});return e.addEventListener(t.eventName,t.fn,l),function(){e.removeEventListener(t.eventName,t.fn,l)}});return function(){n.forEach(e=>{e()})}}m.bind(null,"warn"),m.bind(null,"error");class I extends Error{}function y(e,t){if(!e)throw new I("Invariant failed")}I.prototype.toString=function(){return this.message};class v extends n.Component{componentDidMount(){this.unbind=h(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(e){if(e instanceof I){this.setState({});return}throw e}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}constructor(...e){super(...e),this.callbacks=null,this.unbind=b,this.onWindowError=e=>{let t=this.getCallbacks();t.isDragging()&&t.tryAbort(),e.error instanceof I&&e.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=e=>{this.callbacks=e}}}let x=e=>e+1,D=(e,t)=>{let r=e.droppableId===t.droppableId,n=x(e.index),l=x(t.index);return r?"\n You have moved the item from position ".concat(n,"\n to position ").concat(l,"\n "):"\n You have moved the item from position ".concat(n,"\n in list ").concat(e.droppableId,"\n to list ").concat(t.droppableId,"\n in position ").concat(l,"\n ")},E=(e,t,r)=>t.droppableId===r.droppableId?"\n The item ".concat(e,"\n has been combined with ").concat(r.draggableId):"\n The item ".concat(e,"\n in list ").concat(t.droppableId,"\n has been combined with ").concat(r.draggableId,"\n in list ").concat(r.droppableId,"\n "),A=e=>"\n The item has returned to its starting position\n of ".concat(x(e.index),"\n");var N={dragHandleUsageInstructions:"\n Press space bar to start a drag.\n When dragging you can use the arrow keys to move the item around and escape to cancel.\n Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:e=>"\n You have lifted an item in position ".concat(x(e.source.index),"\n"),onDragUpdate:e=>{let t=e.destination;if(t)return D(e.source,t);let r=e.combine;return r?E(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:e=>{if("CANCEL"===e.reason)return"\n Movement cancelled.\n ".concat(A(e.source),"\n ");let t=e.destination,r=e.combine;return t?"\n You have dropped the item.\n ".concat(D(e.source,t),"\n "):r?"\n You have dropped the item.\n ".concat(E(e.draggableId,e.source,r),"\n "):"\n The item has been dropped while not over a drop area.\n ".concat(A(e.source),"\n ")}};let C={x:0,y:0},R=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),P=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),w=(e,t)=>e.x===t.x&&e.y===t.y,O=e=>({x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}),S=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return"x"===e?{x:t,y:r}:{x:r,y:t}},B=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),G=(e,t)=>Math.min(...t.map(t=>B(e,t))),L=e=>t=>({x:e(t.x),y:e(t.y)});var T=(e,t)=>{let r=(0,d.Dz)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r};let _=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),M=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],F=(e,t)=>t?_(e,t.scroll.diff.displacement):e,k=(e,t,r)=>r&&r.increasedBy?{...e,[t.end]:e[t.end]+r.increasedBy[t.line]}:e,W=(e,t)=>t&&t.shouldClipSubject?T(t.pageMarginBox,e):(0,d.Dz)(e);var U=e=>{let{page:t,withPlaceholder:r,axis:n,frame:l}=e,i=W(k(F(t.marginBox,l),n,r),l);return{page:t,withPlaceholder:r,active:i}},Y=(e,t)=>{e.frame||y(!1);let r=e.frame,n=P(t,r.scroll.initial),l=O(n),i={...r,scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:l},max:r.scroll.max}},a=U({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:a}};let H=(0,s.Z)(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),V=(0,s.Z)(e=>e.reduce((e,t)=>(e[t.descriptor.id]=t,e),{})),j=(0,s.Z)(e=>Object.values(e)),z=(0,s.Z)(e=>Object.values(e));var q=(0,s.Z)((e,t)=>z(t).filter(t=>e===t.descriptor.droppableId).sort((e,t)=>e.descriptor.index-t.descriptor.index));function Z(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function J(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var X=(0,s.Z)((e,t)=>t.filter(t=>t.descriptor.id!==e.descriptor.id)),K=e=>{let{isMovingForward:t,draggable:r,destination:n,insideDestination:l,previousImpact:i}=e;if(!n.isCombineEnabled||!Z(i))return null;function a(e){let t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return{...i,at:t}}let o=i.displaced.all,d=o.length?o[0]:null;if(t)return d?a(d):null;let s=X(r,l);if(!d)return s.length?a(s[s.length-1].descriptor.id):null;let c=s.findIndex(e=>e.descriptor.id===d);-1!==c||y(!1);let u=c-1;return u<0?null:a(s[u].descriptor.id)},$=(e,t)=>e.descriptor.droppableId===t.descriptor.id;let Q={point:C,value:0},ee={invisible:{},visible:{},all:[]};var et={displaced:ee,displacedBy:Q,at:null},er=(e,t)=>r=>e<=r&&r<=t,en=e=>{let t=er(e.top,e.bottom),r=er(e.left,e.right);return n=>{if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;let l=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(l&&i)return!0;let a=n.top<e.top&&n.bottom>e.bottom,o=n.left<e.left&&n.right>e.right;return!!a&&!!o||a&&i||o&&l}},el=e=>{let t=er(e.top,e.bottom),r=er(e.left,e.right);return e=>t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)};let ei={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},ea={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var eo=e=>t=>{let r=er(t.top,t.bottom),n=er(t.left,t.right);return t=>e===ei?r(t.top)&&r(t.bottom):n(t.left)&&n(t.right)};let ed=(e,t)=>_(e,t.frame?t.frame.scroll.diff.displacement:C),es=(e,t,r)=>!!t.subject.active&&r(t.subject.active)(e),ec=(e,t,r)=>r(t)(e),eu=e=>{let{target:t,destination:r,viewport:n,withDroppableDisplacement:l,isVisibleThroughFrameFn:i}=e,a=l?ed(t,r):t;return es(a,r,i)&&ec(a,n,i)},ep=e=>eu({...e,isVisibleThroughFrameFn:en}),eg=e=>eu({...e,isVisibleThroughFrameFn:el}),ef=e=>eu({...e,isVisibleThroughFrameFn:eo(e.destination.axis)}),em=(e,t,r)=>{if("boolean"==typeof r)return r;if(!t)return!0;let{invisible:n,visible:l}=t;if(n[e])return!1;let i=l[e];return!i||i.shouldAnimate};function eb(e){let{afterDragging:t,destination:r,displacedBy:n,viewport:l,forceShouldAnimate:i,last:a}=e;return t.reduce(function(e,t){let o=function(e,t){let r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,d.Dz)((0,d.jn)(r,n))}(t,n),s=t.descriptor.id;if(e.all.push(s),!ep({target:o,destination:r,viewport:l,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;let c=em(s,a,i);return e.visible[s]={draggableId:s,shouldAnimate:c},e},{all:[],visible:{},invisible:{}})}function eh(e){let{insideDestination:t,inHomeList:r,displacedBy:n,destination:l}=e,i=function(e,t){if(!e.length)return 0;let r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:ee,displacedBy:n,at:{type:"REORDER",destination:{droppableId:l.descriptor.id,index:i}}}}function eI(e){let{draggable:t,insideDestination:r,destination:n,viewport:l,displacedBy:i,last:a,index:o,forceShouldAnimate:d}=e,s=$(t,n);if(null==o)return eh({insideDestination:r,inHomeList:s,displacedBy:i,destination:n});let c=r.find(e=>e.descriptor.index===o);if(!c)return eh({insideDestination:r,inHomeList:s,displacedBy:i,destination:n});let u=X(t,r),p=r.indexOf(c);return{displaced:eb({afterDragging:u.slice(p),destination:n,displacedBy:i,last:a,viewport:l.frame,forceShouldAnimate:d}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:o}}}}function ey(e,t){return!!t.effected[e]}var ev=e=>{let{isMovingForward:t,destination:r,draggables:n,combine:l,afterCritical:i}=e;if(!r.isCombineEnabled)return null;let a=l.draggableId,o=n[a].descriptor.index;return ey(a,i)?t?o:o-1:t?o+1:o},ex=e=>{let{isMovingForward:t,isInHomeList:r,insideDestination:n,location:l}=e;if(!n.length)return null;let i=l.index,a=t?i+1:i-1,o=n[0].descriptor.index,d=n[n.length-1].descriptor.index;return a<o||a>(r?d:d+1)?null:a},eD=e=>{let{isMovingForward:t,isInHomeList:r,draggable:n,draggables:l,destination:i,insideDestination:a,previousImpact:o,viewport:d,afterCritical:s}=e,c=o.at;if(c||y(!1),"REORDER"===c.type){let e=ex({isMovingForward:t,isInHomeList:r,location:c.destination,insideDestination:a});return null==e?null:eI({draggable:n,insideDestination:a,destination:i,viewport:d,last:o.displaced,displacedBy:o.displacedBy,index:e})}let u=ev({isMovingForward:t,destination:i,displaced:o.displaced,draggables:l,combine:c.combine,afterCritical:s});return null==u?null:eI({draggable:n,insideDestination:a,destination:i,viewport:d,last:o.displaced,displacedBy:o.displacedBy,index:u})},eE=e=>{let{displaced:t,afterCritical:r,combineWith:n,displacedBy:l}=e,i=!!(t.visible[n]||t.invisible[n]);return ey(n,r)?i?C:O(l.point):i?l.point:C},eA=e=>{let{afterCritical:t,impact:r,draggables:n}=e,l=J(r);l||y(!1);let i=l.draggableId;return R(n[i].page.borderBox.center,eE({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy}))};let eN=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,eC=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,eR=(e,t,r)=>t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2,eP=e=>{let{axis:t,moveRelativeTo:r,isMoving:n}=e;return S(t.line,r.marginBox[t.end]+eN(t,n),eR(t,r.marginBox,n))},ew=e=>{let{axis:t,moveRelativeTo:r,isMoving:n}=e;return S(t.line,r.marginBox[t.start]-eC(t,n),eR(t,r.marginBox,n))},eO=e=>{let{axis:t,moveInto:r,isMoving:n}=e;return S(t.line,r.contentBox[t.start]+eN(t,n),eR(t,r.contentBox,n))};var eS=e=>{let{impact:t,draggable:r,draggables:n,droppable:l,afterCritical:i}=e,a=q(l.descriptor.id,n),o=r.page,s=l.axis;if(!a.length)return eO({axis:s,moveInto:l.page,isMoving:o});let{displaced:c,displacedBy:u}=t,p=c.all[0];if(p){let e=n[p];return ey(p,i)?ew({axis:s,moveRelativeTo:e.page,isMoving:o}):ew({axis:s,moveRelativeTo:(0,d.cv)(e.page,u.point),isMoving:o})}let g=a[a.length-1];return g.descriptor.id===r.descriptor.id?o.borderBox.center:ey(g.descriptor.id,i)?eP({axis:s,moveRelativeTo:(0,d.cv)(g.page,O(i.displacedBy.point)),isMoving:o}):eP({axis:s,moveRelativeTo:g.page,isMoving:o})},eB=(e,t)=>{let r=e.frame;return r?R(t,r.scroll.diff.displacement):t};let eG=e=>{let{impact:t,draggable:r,droppable:n,draggables:l,afterCritical:i}=e,a=r.page.borderBox.center,o=t.at;return n&&o?"REORDER"===o.type?eS({impact:t,draggable:r,draggables:l,droppable:n,afterCritical:i}):eA({impact:t,draggables:l,afterCritical:i}):a};var eL=e=>{let t=eG(e),r=e.droppable;return r?eB(r,t):t},eT=(e,t)=>{let r=P(t,e.scroll.initial),n=O(r);return{frame:(0,d.Dz)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function e_(e,t){return e.map(e=>t[e])}var eM=e=>{let{impact:t,viewport:r,destination:n,draggables:l,maxScrollChange:i}=e,a=eT(r,R(r.scroll.current,i)),o=n.frame?Y(n,R(n.frame.scroll.current,i)):n,d=t.displaced,s=eb({afterDragging:e_(d.all,l),destination:n,displacedBy:t.displacedBy,viewport:a.frame,last:d,forceShouldAnimate:!1}),c=eb({afterDragging:e_(d.all,l),destination:o,displacedBy:t.displacedBy,viewport:r.frame,last:d,forceShouldAnimate:!1}),u={},p={},g=[d,s,c];return d.all.forEach(e=>{let t=function(e,t){for(let r=0;r<t.length;r++){let n=t[r].visible[e];if(n)return n}return null}(e,g);if(t){p[e]=t;return}u[e]=!0}),{...t,displaced:{all:d.all,invisible:u,visible:p}}},eF=(e,t)=>R(e.scroll.diff.displacement,t),ek=e=>{let{pageBorderBoxCenter:t,draggable:r,viewport:n}=e,l=P(eF(n,t),r.page.borderBox.center);return R(r.client.borderBox.center,l)},eW=e=>{let{draggable:t,destination:r,newPageBorderBoxCenter:n,viewport:l,withDroppableDisplacement:i,onlyOnMainAxis:a=!1}=e,o=P(n,t.page.borderBox.center),d={target:_(t.page.borderBox,o),destination:r,withDroppableDisplacement:i,viewport:l};return a?ef(d):eg(d)},eU=e=>{let{isMovingForward:t,draggable:r,destination:n,draggables:l,previousImpact:i,viewport:a,previousPageBorderBoxCenter:o,previousClientSelection:d,afterCritical:s}=e;if(!n.isEnabled)return null;let c=q(n.descriptor.id,l),u=$(r,n),p=K({isMovingForward:t,draggable:r,destination:n,insideDestination:c,previousImpact:i})||eD({isMovingForward:t,isInHomeList:u,draggable:r,draggables:l,destination:n,insideDestination:c,previousImpact:i,viewport:a,afterCritical:s});if(!p)return null;let g=eL({impact:p,draggable:r,droppable:n,draggables:l,afterCritical:s});if(eW({draggable:r,destination:n,newPageBorderBoxCenter:g,viewport:a.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:ek({pageBorderBoxCenter:g,draggable:r,viewport:a}),impact:p,scrollJumpRequest:null};let f=P(g,o);return{clientSelection:d,impact:eM({impact:p,viewport:a,destination:n,draggables:l,maxScrollChange:f}),scrollJumpRequest:f}};let eY=e=>{let t=e.subject.active;return t||y(!1),t};var eH=e=>{let{isMovingForward:t,pageBorderBoxCenter:r,source:n,droppables:l,viewport:i}=e,a=n.subject.active;if(!a)return null;let o=n.axis,d=er(a[o.start],a[o.end]),s=j(l).filter(e=>e!==n).filter(e=>e.isEnabled).filter(e=>!!e.subject.active).filter(e=>en(i.frame)(eY(e))).filter(e=>{let r=eY(e);return t?a[o.crossAxisEnd]<r[o.crossAxisEnd]:r[o.crossAxisStart]<a[o.crossAxisStart]}).filter(e=>{let t=eY(e),r=er(t[o.start],t[o.end]);return d(t[o.start])||d(t[o.end])||r(a[o.start])||r(a[o.end])}).sort((e,r)=>{let n=eY(e)[o.crossAxisStart],l=eY(r)[o.crossAxisStart];return t?n-l:l-n}).filter((e,t,r)=>eY(e)[o.crossAxisStart]===eY(r[0])[o.crossAxisStart]);if(!s.length)return null;if(1===s.length)return s[0];let c=s.filter(e=>er(eY(e)[o.start],eY(e)[o.end])(r[o.line]));return 1===c.length?c[0]:c.length>1?c.sort((e,t)=>eY(e)[o.start]-eY(t)[o.start])[0]:s.sort((e,t)=>{let n=G(r,M(eY(e))),l=G(r,M(eY(t)));return n!==l?n-l:eY(e)[o.start]-eY(t)[o.start]})[0]};let eV=(e,t)=>{let r=e.page.borderBox.center;return ey(e.descriptor.id,t)?P(r,t.displacedBy.point):r},ej=(e,t)=>{let r=e.page.borderBox;return ey(e.descriptor.id,t)?_(r,O(t.displacedBy.point)):r};var ez=e=>{let{pageBorderBoxCenter:t,viewport:r,destination:n,insideDestination:l,afterCritical:i}=e;return l.filter(e=>eg({target:ej(e,i),destination:n,viewport:r.frame,withDroppableDisplacement:!0})).sort((e,r)=>{let l=B(t,eB(n,eV(e,i))),a=B(t,eB(n,eV(r,i)));return l<a?-1:a<l?1:e.descriptor.index-r.descriptor.index})[0]||null},eq=(0,s.Z)(function(e,t){let r=t[e.line];return{value:r,point:S(e.line,r)}});let eZ=(e,t,r)=>{let n=e.axis;if("virtual"===e.descriptor.mode)return S(n.line,t[n.line]);let l=e.subject.page.contentBox[n.size],i=q(e.descriptor.id,r).reduce((e,t)=>e+t.client.marginBox[n.size],0)+t[n.line]-l;return i<=0?null:S(n.line,i)},eJ=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),eX=(e,t,r)=>{let n=e.frame;$(t,e)&&y(!1),e.subject.withPlaceholder&&y(!1);let l=eq(e.axis,t.displaceBy).point,i=eZ(e,l,r),a={placeholderSize:l,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){let t=U({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:e.frame});return{...e,subject:t}}let o=i?R(n.scroll.max,i):n.scroll.max,d=eJ(n,o),s=U({page:e.subject.page,withPlaceholder:a,axis:e.axis,frame:d});return{...e,subject:s,frame:d}},eK=e=>{let t=e.subject.withPlaceholder;t||y(!1);let r=e.frame;if(!r){let t=U({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:t}}let n=t.oldFrameMaxScroll;n||y(!1);let l=eJ(r,n),i=U({page:e.subject.page,axis:e.axis,frame:l,withPlaceholder:null});return{...e,subject:i,frame:l}};var e$=e=>{let{previousPageBorderBoxCenter:t,moveRelativeTo:r,insideDestination:n,draggable:l,draggables:i,destination:a,viewport:o,afterCritical:d}=e;if(!r){if(n.length)return null;let e={displaced:ee,displacedBy:Q,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},t=eL({impact:e,draggable:l,droppable:a,draggables:i,afterCritical:d}),r=$(l,a)?a:eX(a,l,i);return eW({draggable:l,destination:r,newPageBorderBoxCenter:t,viewport:o.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?e:null}let s=t[a.axis.line]<=r.page.borderBox.center[a.axis.line],c=(()=>{let e=r.descriptor.index;return r.descriptor.id===l.descriptor.id||s?e:e+1})(),u=eq(a.axis,l.displaceBy);return eI({draggable:l,insideDestination:n,destination:a,viewport:o,displacedBy:u,last:ee,index:c})},eQ=e=>{let{isMovingForward:t,previousPageBorderBoxCenter:r,draggable:n,isOver:l,draggables:i,droppables:a,viewport:o,afterCritical:d}=e,s=eH({isMovingForward:t,pageBorderBoxCenter:r,source:l,droppables:a,viewport:o});if(!s)return null;let c=q(s.descriptor.id,i),u=ez({pageBorderBoxCenter:r,viewport:o,destination:s,insideDestination:c,afterCritical:d}),p=e$({previousPageBorderBoxCenter:r,destination:s,draggable:n,draggables:i,moveRelativeTo:u,insideDestination:c,viewport:o,afterCritical:d});return p?{clientSelection:ek({pageBorderBoxCenter:eL({impact:p,draggable:n,droppable:s,draggables:i,afterCritical:d}),draggable:n,viewport:o}),impact:p,scrollJumpRequest:null}:null},e0=e=>{let t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null};let e1=(e,t)=>{let r=e0(e);return r?t[r]:null};var e4=e=>{let{state:t,type:r}=e,n=e1(t.impact,t.dimensions.droppables),l=!!n,i=t.dimensions.droppables[t.critical.droppable.id],a=n||i,o=a.axis.direction,d="vertical"===o&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===o&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(d&&!l)return null;let s="MOVE_DOWN"===r||"MOVE_RIGHT"===r,c=t.dimensions.draggables[t.critical.draggable.id],u=t.current.page.borderBoxCenter,{draggables:p,droppables:g}=t.dimensions;return d?eU({isMovingForward:s,previousPageBorderBoxCenter:u,draggable:c,destination:a,draggables:p,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):eQ({isMovingForward:s,previousPageBorderBoxCenter:u,draggable:c,isOver:a,draggables:p,droppables:g,viewport:t.viewport,afterCritical:t.afterCritical})};function e2(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function e3(e){let t=er(e.top,e.bottom),r=er(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}let e5=(e,t)=>(0,d.Dz)(_(e,t));var e7=(e,t)=>{let r=e.frame;return r?e5(t,r.scroll.diff.value):t};function e6(e){let{displaced:t,id:r}=e;return!!(t.visible[r]||t.invisible[r])}var e8=e=>{let{pageBorderBoxWithDroppableScroll:t,draggable:r,destination:n,insideDestination:l,last:i,viewport:a,afterCritical:o}=e,d=n.axis,s=eq(n.axis,r.displaceBy),c=s.value,u=t[d.start],p=t[d.end],g=X(r,l).find(e=>{let t=e.descriptor.id,r=e.page.borderBox.center[d.line],n=ey(t,o),l=e6({displaced:i,id:t});return n?l?p<=r:u<r-c:l?p<=r+c:u<r})||null,f=function(e){let{draggable:t,closest:r,inHomeList:n}=e;return r?n&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:g,inHomeList:$(r,n)});return eI({draggable:r,insideDestination:l,destination:n,viewport:a,last:i,displacedBy:s,index:f})},e9=e=>{let{draggable:t,pageBorderBoxWithDroppableScroll:r,previousImpact:n,destination:l,insideDestination:i,afterCritical:a}=e;if(!l.isCombineEnabled)return null;let o=l.axis,d=eq(l.axis,t.displaceBy),s=d.value,c=r[o.start],u=r[o.end],p=X(t,i).find(e=>{let t=e.descriptor.id,r=e.page.borderBox,l=r[o.size]/4,i=ey(t,a),d=e6({displaced:n.displaced,id:t});return i?d?u>r[o.start]+l&&u<r[o.end]-l:c>r[o.start]-s+l&&c<r[o.end]-s-l:d?u>r[o.start]+s+l&&u<r[o.end]+s-l:c>r[o.start]+l&&c<r[o.end]-l});return p?{displacedBy:d,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:p.descriptor.id,droppableId:l.descriptor.id}}}:null},te=e=>{let{pageOffset:t,draggable:r,draggables:n,droppables:l,previousImpact:i,viewport:a,afterCritical:o}=e,d=e5(r.page.borderBox,t),s=function(e){let{pageBorderBox:t,draggable:r,droppables:n}=e,l=j(n).filter(e=>{if(!e.isEnabled)return!1;let r=e.subject.active;if(!r||!(t.left<r.right)||!(t.right>r.left)||!(t.top<r.bottom)||!(t.bottom>r.top))return!1;if(e3(r)(t.center))return!0;let n=e.axis,l=r.center[n.crossAxisLine],i=t[n.crossAxisStart],a=t[n.crossAxisEnd],o=er(r[n.crossAxisStart],r[n.crossAxisEnd]),d=o(i),s=o(a);return!d&&!s||(d?i<l:a>l)});return l.length?1===l.length?l[0].descriptor.id:function(e){let{pageBorderBox:t,draggable:r,candidates:n}=e,l=r.page.borderBox.center,i=n.map(e=>{let r=e.axis,n=S(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:B(l,n)}}).sort((e,t)=>t.distance-e.distance);return i[0]?i[0].id:null}({pageBorderBox:t,draggable:r,candidates:l}):null}({pageBorderBox:d,draggable:r,droppables:l});if(!s)return et;let c=l[s],u=q(c.descriptor.id,n),p=e7(c,d);return e9({pageBorderBoxWithDroppableScroll:p,draggable:r,previousImpact:i,destination:c,insideDestination:u,afterCritical:o})||e8({pageBorderBoxWithDroppableScroll:p,draggable:r,destination:c,insideDestination:u,last:i.displaced,viewport:a,afterCritical:o})},tt=(e,t)=>({...e,[t.descriptor.id]:t});let tr=e=>{let{previousImpact:t,impact:r,droppables:n}=e,l=e0(t),i=e0(r);if(!l||l===i)return n;let a=n[l];return a.subject.withPlaceholder?tt(n,eK(a)):n};var tn=e=>{let{draggable:t,draggables:r,droppables:n,previousImpact:l,impact:i}=e,a=tr({previousImpact:l,impact:i,droppables:n}),o=e0(i);if(!o)return a;let d=n[o];return $(t,d)||d.subject.withPlaceholder?a:tt(a,eX(d,t,r))},tl=e=>{let{state:t,clientSelection:r,dimensions:n,viewport:l,impact:i,scrollJumpRequest:a}=e,o=l||t.viewport,d=n||t.dimensions,s=r||t.current.client.selection,c=P(s,t.initial.client.selection),u={offset:c,selection:s,borderBoxCenter:R(t.initial.client.borderBoxCenter,c)},p={selection:R(u.selection,o.scroll.current),borderBoxCenter:R(u.borderBoxCenter,o.scroll.current),offset:R(u.offset,o.scroll.diff.value)},g={client:u,page:p};if("COLLECTING"===t.phase)return{...t,dimensions:d,viewport:o,current:g};let f=d.draggables[t.critical.draggable.id],m=i||te({pageOffset:p.offset,draggable:f,draggables:d.draggables,droppables:d.droppables,previousImpact:t.impact,viewport:o,afterCritical:t.afterCritical}),b=tn({draggable:f,impact:m,previousImpact:t.impact,draggables:d.draggables,droppables:d.droppables});return{...t,current:g,dimensions:{draggables:d.draggables,droppables:b},impact:m,viewport:o,scrollJumpRequest:a||null,forceShouldAnimate:!a&&null}},ti=e=>{let{impact:t,viewport:r,draggables:n,destination:l,forceShouldAnimate:i}=e,a=t.displaced,o=eb({afterDragging:a.all.map(e=>n[e]),destination:l,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:i,last:a});return{...t,displaced:o}},ta=e=>{let{impact:t,draggable:r,droppable:n,draggables:l,viewport:i,afterCritical:a}=e;return ek({pageBorderBoxCenter:eL({impact:t,draggable:r,draggables:l,droppable:n,afterCritical:a}),draggable:r,viewport:i})},to=e=>{let{state:t,dimensions:r,viewport:n}=e;"SNAP"!==t.movementMode&&y(!1);let l=t.impact,i=n||t.viewport,a=r||t.dimensions,{draggables:o,droppables:d}=a,s=o[t.critical.draggable.id],c=e0(l);c||y(!1);let u=d[c],p=ti({impact:l,viewport:i,destination:u,draggables:o}),g=ta({impact:p,draggable:s,droppable:u,draggables:o,viewport:i,afterCritical:t.afterCritical});return tl({impact:p,clientSelection:g,state:t,dimensions:a,viewport:i})},td=e=>({index:e.index,droppableId:e.droppableId}),ts=e=>{let{draggable:t,home:r,draggables:n,viewport:l}=e,i=eq(r.axis,t.displaceBy),a=q(r.descriptor.id,n),o=a.indexOf(t);-1!==o||y(!1);let d=a.slice(o+1),s=d.reduce((e,t)=>(e[t.descriptor.id]=!0,e),{}),c={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:i,effected:s};return{impact:{displaced:eb({afterDragging:d,destination:r,displacedBy:i,last:null,viewport:l.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:td(t.descriptor)}},afterCritical:c}},tc=(e,t)=>({draggables:e.draggables,droppables:tt(e.droppables,t)});let tu=e=>{},tp=e=>{};var tg=e=>{let{draggable:t,offset:r,initialWindowScroll:n}=e,l=(0,d.cv)(t.client,r),i=(0,d.oc)(l,n);return{...t,placeholder:{...t.placeholder,client:l},client:l,page:i}},tf=e=>{let t=e.frame;return t||y(!1),t},tm=e=>{let{additions:t,updatedDroppables:r,viewport:n}=e,l=n.scroll.diff.value;return t.map(e=>{let t=R(l,tf(r[e.descriptor.droppableId]).scroll.diff.value);return tg({draggable:e,offset:t,initialWindowScroll:n.scroll.initial})})};let tb="Processing dynamic changes";var th=e=>{let{state:t,published:r}=e;tu(tb);let n=r.modified.map(e=>Y(t.dimensions.droppables[e.droppableId],e.scroll)),l={...t.dimensions.droppables,...H(n)},i=V(tm({additions:r.additions,updatedDroppables:l,viewport:t.viewport})),a={...t.dimensions.draggables,...i};r.removals.forEach(e=>{delete a[e]});let o={droppables:l,draggables:a},d=e0(t.impact),s=d?o.droppables[d]:null,{impact:c,afterCritical:u}=ts({draggable:o.draggables[t.critical.draggable.id],home:o.droppables[t.critical.droppable.id],draggables:a,viewport:t.viewport}),p=s&&s.isCombineEnabled?t.impact:c,g=te({pageOffset:t.current.page.offset,draggable:o.draggables[t.critical.draggable.id],draggables:o.draggables,droppables:o.droppables,previousImpact:p,viewport:t.viewport,afterCritical:u});tp(tb);let f={...t,phase:"DRAGGING",impact:g,onLiftImpact:c,dimensions:o,afterCritical:u,forceShouldAnimate:!1};return"COLLECTING"===t.phase?f:{...f,phase:"DROP_PENDING",reason:t.reason,isWaiting:!1}};let tI=e=>"SNAP"===e.movementMode,ty=(e,t,r)=>{let n=tc(e.dimensions,t);return!tI(e)||r?tl({state:e,dimensions:n}):to({state:e,dimensions:n})};function tv(e){return e.isDragging&&"SNAP"===e.movementMode?{...e,scrollJumpRequest:null}:e}let tx={phase:"IDLE",completed:null,shouldFlush:!1};var tD=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tx,t=arguments.length>1?arguments[1]:void 0;if("FLUSH"===t.type)return{...tx,shouldFlush:!0};if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&y(!1);let{critical:r,clientSelection:n,viewport:l,dimensions:i,movementMode:a}=t.payload,o=i.draggables[r.draggable.id],d=i.droppables[r.droppable.id],s={selection:n,borderBoxCenter:o.client.borderBox.center,offset:C},c={client:s,page:{selection:R(s.selection,l.scroll.initial),borderBoxCenter:R(s.selection,l.scroll.initial),offset:R(s.selection,l.scroll.diff.value)}},u=j(i.droppables).every(e=>!e.isFixedOnPage),{impact:p,afterCritical:g}=ts({draggable:o,home:d,draggables:i.draggables,viewport:l});return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:a,dimensions:i,initial:c,current:c,isWindowScrollAllowed:u,impact:p,afterCritical:g,onLiftImpact:p,viewport:l,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&y(!1),{...e,phase:"COLLECTING"});if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase||y(!1),th({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;e2(e)||y(!1);let{client:r}=t.payload;return w(r,e.current.client.selection)?e:tl({state:e,clientSelection:r,impact:tI(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"COLLECTING"===e.phase)return tv(e);e2(e)||y(!1);let{id:r,newScroll:n}=t.payload,l=e.dimensions.droppables[r];return l?ty(e,Y(l,n),!1):e}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;e2(e)||y(!1);let{id:r,isEnabled:n}=t.payload,l=e.dimensions.droppables[r];return l||y(!1),l.isEnabled!==n||y(!1),ty(e,{...l,isEnabled:n},!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;e2(e)||y(!1);let{id:r,isCombineEnabled:n}=t.payload,l=e.dimensions.droppables[r];return l||y(!1),l.isCombineEnabled!==n||y(!1),ty(e,{...l,isCombineEnabled:n},!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;e2(e)||y(!1),e.isWindowScrollAllowed||y(!1);let r=t.payload.newScroll;if(w(e.viewport.scroll.current,r))return tv(e);let n=eT(e.viewport,r);return tI(e)?to({state:e,viewport:n}):tl({state:e,viewport:n})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!e2(e))return e;let r=t.payload.maxScroll;if(w(r,e.viewport.scroll.max))return e;let n={...e.viewport,scroll:{...e.viewport.scroll,max:r}};return{...e,viewport:n}}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&y(!1);let r=e4({state:e,type:t.type});return r?tl({state:e,impact:r.impact,clientSelection:r.clientSelection,scrollJumpRequest:r.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){let r=t.payload.reason;return"COLLECTING"!==e.phase&&y(!1),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:r}}if("DROP_ANIMATE"===t.type){let{completed:r,dropDuration:n,newHomeClientOffset:l}=t.payload;return"DRAGGING"===e.phase||"DROP_PENDING"===e.phase||y(!1),{phase:"DROP_ANIMATING",completed:r,dropDuration:n,newHomeClientOffset:l,dimensions:e.dimensions}}if("DROP_COMPLETE"===t.type){let{completed:e}=t.payload;return{phase:"IDLE",completed:e,shouldFlush:!1}}return e};let tE=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),tA=e=>({type:"LIFT",payload:e}),tN=e=>({type:"INITIAL_PUBLISH",payload:e}),tC=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),tR=()=>({type:"COLLECTION_STARTING",payload:null}),tP=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),tw=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),tO=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),tS=e=>({type:"MOVE",payload:e}),tB=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),tG=()=>({type:"MOVE_UP",payload:null}),tL=()=>({type:"MOVE_DOWN",payload:null}),tT=()=>({type:"MOVE_RIGHT",payload:null}),t_=()=>({type:"MOVE_LEFT",payload:null}),tM=()=>({type:"FLUSH",payload:null}),tF=e=>({type:"DROP_ANIMATE",payload:e}),tk=e=>({type:"DROP_COMPLETE",payload:e}),tW=e=>({type:"DROP",payload:e}),tU=e=>({type:"DROP_PENDING",payload:e}),tY=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var tH=e=>t=>{let{getState:r,dispatch:n}=t;return t=>l=>{if("LIFT"!==l.type){t(l);return}let{id:i,clientSelection:a,movementMode:o}=l.payload,d=r();"DROP_ANIMATING"===d.phase&&n(tk({completed:d.completed})),"IDLE"!==r().phase&&y(!1),n(tM()),n(tE({draggableId:i,movementMode:o}));let{critical:s,dimensions:c,viewport:u}=e.startPublishing({draggableId:i,scrollOptions:{shouldPublishImmediately:"SNAP"===o}});n(tN({critical:s,dimensions:c,clientSelection:a,movementMode:o,viewport:u}))}},tV=e=>()=>t=>r=>{"INITIAL_PUBLISH"===r.type&&e.dragging(),"DROP_ANIMATE"===r.type&&e.dropping(r.payload.completed.result.reason),("FLUSH"===r.type||"DROP_COMPLETE"===r.type)&&e.resting(),t(r)};let tj={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},tz={opacity:{drop:0,combining:.7},scale:{drop:.75}},tq={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},tZ="".concat(tq.outOfTheWay,"s ").concat(tj.outOfTheWay),tJ={fluid:"opacity ".concat(tZ),snap:"transform ".concat(tZ,", opacity ").concat(tZ),drop:e=>{let t="".concat(e,"s ").concat(tj.drop);return"transform ".concat(t,", opacity ").concat(t)},outOfTheWay:"transform ".concat(tZ),placeholder:"height ".concat(tZ,", width ").concat(tZ,", margin ").concat(tZ)},tX=e=>w(e,C)?void 0:"translate(".concat(e.x,"px, ").concat(e.y,"px)"),tK={moveTo:tX,drop:(e,t)=>{let r=tX(e);return r?t?"".concat(r," scale(").concat(tz.scale.drop,")"):r:void 0}},{minDropTime:t$,maxDropTime:tQ}=tq,t0=tQ-t$;var t1=e=>{let{current:t,destination:r,reason:n}=e,l=B(t,r);if(l<=0)return t$;if(l>=1500)return tQ;let i=t$+l/1500*t0;return Number(("CANCEL"===n?.6*i:i).toFixed(2))},t4=e=>{let{impact:t,draggable:r,dimensions:n,viewport:l,afterCritical:i}=e,{draggables:a,droppables:o}=n,d=e0(t),s=d?o[d]:null,c=o[r.descriptor.droppableId];return P(ta({impact:t,draggable:r,draggables:a,afterCritical:i,droppable:s||c,viewport:l}),r.client.borderBox.center)},t2=e=>{let{draggables:t,reason:r,lastImpact:n,home:l,viewport:i,onLiftImpact:a}=e;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:ee},didDropInsideDroppable:!0}:{impact:ti({draggables:t,impact:a,destination:l,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}},t3=e=>{let{getState:t,dispatch:r}=e;return e=>n=>{if("DROP"!==n.type){e(n);return}let l=t(),i=n.payload.reason;if("COLLECTING"===l.phase){r(tU({reason:i}));return}if("IDLE"===l.phase)return;"DROP_PENDING"===l.phase&&l.isWaiting&&y(!1),"DRAGGING"===l.phase||"DROP_PENDING"===l.phase||y(!1);let a=l.critical,o=l.dimensions,d=o.draggables[l.critical.draggable.id],{impact:s,didDropInsideDroppable:c}=t2({reason:i,lastImpact:l.impact,afterCritical:l.afterCritical,onLiftImpact:l.onLiftImpact,home:l.dimensions.droppables[l.critical.droppable.id],viewport:l.viewport,draggables:l.dimensions.draggables}),u=c?Z(s):null,p=c?J(s):null,g={index:a.draggable.index,droppableId:a.droppable.id},f={draggableId:d.descriptor.id,type:d.descriptor.type,source:g,reason:i,mode:l.movementMode,destination:u,combine:p},m=t4({impact:s,draggable:d,dimensions:o,viewport:l.viewport,afterCritical:l.afterCritical}),b={critical:l.critical,afterCritical:l.afterCritical,result:f,impact:s};if(!(!w(l.current.client.offset,m)||f.combine)){r(tk({completed:b}));return}let h=t1({current:l.current.client.offset,destination:m,reason:i});r(tF({newHomeClientOffset:m,dropDuration:h,completed:b}))}},t5=()=>({x:window.pageXOffset,y:window.pageYOffset});let t7=e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type;var t6=e=>{let t=function(e){let{onWindowScroll:t}=e,r=(0,c.Z)(function(){t(t5())}),n={eventName:"scroll",options:{passive:!0,capture:!1},fn:e=>{(e.target===window||e.target===window.document)&&r()}},l=b;function i(){return l!==b}return{start:function(){i()&&y(!1),l=h(window,[n])},stop:function(){i()||y(!1),r.cancel(),l(),l=b},isActive:i}}({onWindowScroll:t=>{e.dispatch(tB({newScroll:t}))}});return e=>r=>{t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&t7(r)&&t.stop(),e(r)}},t8=e=>{let t=!1,r=!1,n=setTimeout(()=>{r=!0}),l=l=>{t||r||(t=!0,e(l),clearTimeout(n))};return l.wasCalled=()=>t,l},t9=()=>{let e=[],t=t=>{let r=e.findIndex(e=>e.timerId===t);-1!==r||y(!1);let[n]=e.splice(r,1);n.callback()};return{add:r=>{let n=setTimeout(()=>t(n));e.push({timerId:n,callback:r})},flush:()=>{if(!e.length)return;let t=[...e];e.length=0,t.forEach(e=>{clearTimeout(e.timerId),e.callback()})}}};let re=(e,t)=>null==e&&null==t||null!=e&&null!=t&&e.droppableId===t.droppableId&&e.index===t.index,rt=(e,t)=>null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId,rr=(e,t)=>{if(e===t)return!0;let r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n},rn=(e,t)=>{tu(),t(),tp()},rl=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function ri(e,t,r,n){if(!e){r(n(t));return}let l=t8(r);e(t,{announce:l}),l.wasCalled()||r(n(t))}var ra=(e,t)=>{let r=t9(),n=null,l=r=>{n||y(!1),n=null,rn("onDragEnd",()=>ri(e().onDragEnd,r,t,N.onDragEnd))};return{beforeCapture:(t,r)=>{n&&y(!1),rn("onBeforeCapture",()=>{let n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})})},beforeStart:(t,r)=>{n&&y(!1),rn("onBeforeDragStart",()=>{let n=e().onBeforeDragStart;n&&n(rl(t,r))})},start:(l,i)=>{n&&y(!1);let a=rl(l,i);n={mode:i,lastCritical:l,lastLocation:a.source,lastCombine:null},r.add(()=>{rn("onDragStart",()=>ri(e().onDragStart,a,t,N.onDragStart))})},update:(l,i)=>{let a=Z(i),o=J(i);n||y(!1);let d=!rr(l,n.lastCritical);d&&(n.lastCritical=l);let s=!re(n.lastLocation,a);s&&(n.lastLocation=a);let c=!rt(n.lastCombine,o);if(c&&(n.lastCombine=o),!d&&!s&&!c)return;let u={...rl(l,n.mode),combine:o,destination:a};r.add(()=>{rn("onDragUpdate",()=>ri(e().onDragUpdate,u,t,N.onDragUpdate))})},flush:()=>{n||y(!1),r.flush()},drop:l,abort:()=>{n&&l({...rl(n.lastCritical,n.mode),combine:null,destination:null,reason:"CANCEL"})}}},ro=(e,t)=>{let r=ra(e,t);return e=>t=>n=>{if("BEFORE_INITIAL_CAPTURE"===n.type){r.beforeCapture(n.payload.draggableId,n.payload.movementMode);return}if("INITIAL_PUBLISH"===n.type){let e=n.payload.critical;r.beforeStart(e,n.payload.movementMode),t(n),r.start(e,n.payload.movementMode);return}if("DROP_COMPLETE"===n.type){let e=n.payload.completed.result;r.flush(),t(n),r.drop(e);return}if(t(n),"FLUSH"===n.type){r.abort();return}let l=e.getState();"DRAGGING"===l.phase&&r.update(l.critical,l.impact)}},rd=e=>t=>r=>{if("DROP_ANIMATION_FINISHED"!==r.type){t(r);return}let n=e.getState();"DROP_ANIMATING"!==n.phase&&y(!1),e.dispatch(tk({completed:n.completed}))},rs=e=>{let t=null,r=null;return n=>l=>{if(("FLUSH"===l.type||"DROP_COMPLETE"===l.type||"DROP_ANIMATION_FINISHED"===l.type)&&(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(l),"DROP_ANIMATE"!==l.type)return;let i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch(tY())}};r=requestAnimationFrame(()=>{r=null,t=h(window,[i])})}},rc=e=>()=>t=>r=>{("DROP_COMPLETE"===r.type||"FLUSH"===r.type||"DROP_ANIMATE"===r.type)&&e.stopPublishing(),t(r)},ru=e=>{let t=!1;return()=>r=>n=>{if("INITIAL_PUBLISH"===n.type){t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),e.tryRestoreFocusRecorded();return}if(r(n),t){if("FLUSH"===n.type){t=!1,e.tryRestoreFocusRecorded();return}if("DROP_COMPLETE"===n.type){t=!1;let r=n.payload.completed.result;r.combine&&e.tryShiftRecord(r.draggableId,r.combine.draggableId),e.tryRestoreFocusRecorded()}}}};let rp=e=>"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type;var rg=e=>t=>r=>n=>{if(rp(n)){e.stop(),r(n);return}if("INITIAL_PUBLISH"===n.type){r(n);let l=t.getState();"DRAGGING"!==l.phase&&y(!1),e.start(l);return}r(n),e.scroll(t.getState())},rf=e=>t=>r=>{if(t(r),"PUBLISH_WHILE_DRAGGING"!==r.type)return;let n=e.getState();"DROP_PENDING"!==n.phase||n.isWaiting||e.dispatch(tW({reason:n.reason}))};let rm=i.qC;var rb=e=>{let{dimensionMarshal:t,focusMarshal:r,styleMarshal:n,getResponders:l,announce:a,autoScroller:o}=e;return(0,i.MT)(tD,rm((0,i.md)(tV(n),rc(t),tH(t),t3,rd,rs,rf,rg(o),t6,ru(r),ro(l,a))))};let rh=()=>({additions:{},removals:{},modified:{}});var rI=e=>{let{scrollHeight:t,scrollWidth:r,height:n,width:l}=e,i=P({x:r,y:t},{x:l,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},ry=()=>{let e=document.documentElement;return e||y(!1),e},rv=()=>{let e=ry();return rI({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},rx=()=>{let e=t5(),t=rv(),r=e.y,n=e.x,l=ry(),i=l.clientWidth,a=l.clientHeight;return{frame:(0,d.Dz)({top:r,left:n,right:n+i,bottom:r+a}),scroll:{initial:e,current:e,max:t,diff:{value:C,displacement:C}}}},rD=e=>{let{critical:t,scrollOptions:r,registry:n}=e;tu();let l=rx(),i=l.scroll.current,a=t.droppable,o=n.droppable.getAllByType(a.type).map(e=>e.callbacks.getDimensionAndWatchScroll(i,r)),d={draggables:V(n.draggable.getAllByType(t.draggable.type).map(e=>e.getDimension(i))),droppables:H(o)};return tp(),{dimensions:d,critical:t,viewport:l}};function rE(e,t,r){return r.descriptor.id!==t.id&&r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var rA=(e,t)=>{let r=null,n=function(e){let{registry:t,callbacks:r}=e,n=rh(),l=null,i=()=>{l||(r.collectionStarting(),l=requestAnimationFrame(()=>{l=null,tu();let{additions:e,removals:i,modified:a}=n,o=Object.keys(e).map(e=>t.draggable.getById(e).getDimension(C)).sort((e,t)=>e.descriptor.index-t.descriptor.index),d=Object.keys(a).map(e=>{let r=t.droppable.getById(e).callbacks.getScrollWhileDragging();return{droppableId:e,scroll:r}}),s={additions:o,removals:Object.keys(i),modified:d};n=rh(),tp(),r.publish(s)}))};return{add:e=>{let t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],i()},remove:e=>{let t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],i()},stop:()=>{l&&(cancelAnimationFrame(l),l=null,n=rh())}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),l=t=>{r||y(!1);let l=r.critical.draggable;"ADDITION"===t.type&&rE(e,l,t.value)&&n.add(t.value),"REMOVAL"===t.type&&rE(e,l,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:(n,l)=>{e.droppable.exists(n)||y(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:l})},updateDroppableIsCombineEnabled:(n,l)=>{r&&(e.droppable.exists(n)||y(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:l}))},scrollDroppable:(t,n)=>{r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:(n,l)=>{r&&(e.droppable.exists(n)||y(!1),t.updateDroppableScroll({id:n,newScroll:l}))},startPublishing:t=>{r&&y(!1);let n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor};return r={critical:a,unsubscribe:e.subscribe(l)},rD({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:()=>{if(!r)return;n.stop();let t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach(e=>e.callbacks.dragStopped()),r.unsubscribe(),r=null}}},rN=(e,t)=>"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason,rC=e=>{window.scrollBy(e.x,e.y)};let rR=(0,s.Z)(e=>j(e).filter(e=>!!e.isEnabled&&!!e.frame)),rP=(e,t)=>rR(t).find(t=>(t.frame||y(!1),e3(t.frame.pageMarginBox)(e)))||null;var rw=e=>{let{center:t,destination:r,droppables:n}=e;if(r){let e=n[r];return e.frame?e:null}return rP(t,n)};let rO={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var rS=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>rO,n=r();return{startScrollingFrom:e[t.size]*n.startFromPercentage,maxScrollValueAt:e[t.size]*n.maxScrollAtPercentage}},rB=e=>{let{startOfRange:t,endOfRange:r,current:n}=e,l=r-t;return 0===l?0:(n-t)/l},rG=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>rO,n=r();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return n.maxPixelScroll;if(e===t.startScrollingFrom)return 1;let l=rB({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e});return Math.ceil(n.maxPixelScroll*n.ease(1-l))},rL=(e,t,r)=>{let n=r(),l=n.durationDampening.accelerateAt,i=n.durationDampening.stopDampeningAt,a=Date.now()-t;if(a>=i)return e;if(a<l)return 1;let o=rB({startOfRange:l,endOfRange:i,current:a});return Math.ceil(e*n.ease(o))},rT=e=>{let{distanceToEdge:t,thresholds:r,dragStartTime:n,shouldUseTimeDampening:l,getAutoScrollerOptions:i}=e,a=rG(t,r,i);return 0===a?0:l?Math.max(rL(a,n,i),1):a},r_=e=>{let{container:t,distanceToEdges:r,dragStartTime:n,axis:l,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e,o=rS(t,l,a);return r[l.end]<r[l.start]?rT({distanceToEdge:r[l.end],thresholds:o,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a}):-1*rT({distanceToEdge:r[l.start],thresholds:o,dragStartTime:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a})},rM=e=>{let{container:t,subject:r,proposedScroll:n}=e,l=r.height>t.height,i=r.width>t.width;return i||l?i&&l?null:{x:i?0:n.x,y:l?0:n.y}:n};let rF=L(e=>0===e?0:e);var rk=e=>{let{dragStartTime:t,container:r,subject:n,center:l,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e,o={top:l.y-r.top,right:r.right-l.x,bottom:r.bottom-l.y,left:l.x-r.left},d=r_({container:r,distanceToEdges:o,dragStartTime:t,axis:ei,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),s=rF({x:r_({container:r,distanceToEdges:o,dragStartTime:t,axis:ea,shouldUseTimeDampening:i,getAutoScrollerOptions:a}),y:d});if(w(s,C))return null;let c=rM({container:r,subject:n,proposedScroll:s});return c?w(c,C)?null:c:null};let rW=L(e=>0===e?0:e>0?1:-1),rU=(()=>{let e=(e,t)=>e<0?e:e>t?e-t:0;return t=>{let{current:r,max:n,change:l}=t,i=R(r,l),a={x:e(i.x,n.x),y:e(i.y,n.y)};return w(a,C)?null:a}})(),rY=e=>{let{max:t,current:r,change:n}=e,l={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=rW(n),a=rU({max:l,current:r,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},rH=(e,t)=>rY({current:e.scroll.current,max:e.scroll.max,change:t}),rV=(e,t)=>{if(!rH(e,t))return null;let r=e.scroll.max;return rU({current:e.scroll.current,max:r,change:t})},rj=(e,t)=>{let r=e.frame;return!!r&&rY({current:r.scroll.current,max:r.scroll.max,change:t})},rz=(e,t)=>{let r=e.frame;return r&&rj(e,t)?rU({current:r.scroll.current,max:r.scroll.max,change:t}):null};var rq=e=>{let{viewport:t,subject:r,center:n,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e,o=rk({dragStartTime:l,container:t.frame,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return o&&rH(t,o)?o:null},rZ=e=>{let{droppable:t,subject:r,center:n,dragStartTime:l,shouldUseTimeDampening:i,getAutoScrollerOptions:a}=e,o=t.frame;if(!o)return null;let d=rk({dragStartTime:l,container:o.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i,getAutoScrollerOptions:a});return d&&rj(t,d)?d:null},rJ=e=>{let{state:t,dragStartTime:r,shouldUseTimeDampening:n,scrollWindow:l,scrollDroppable:i,getAutoScrollerOptions:a}=e,o=t.current.page.borderBoxCenter,d=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){let e=rq({dragStartTime:r,viewport:t.viewport,subject:d,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});if(e){l(e);return}}let s=rw({center:o,destination:e0(t.impact),droppables:t.dimensions.droppables});if(!s)return;let c=rZ({dragStartTime:r,droppable:s,subject:d,center:o,shouldUseTimeDampening:n,getAutoScrollerOptions:a});c&&i(s.descriptor.id,c)},rX=e=>{let{scrollWindow:t,scrollDroppable:r,getAutoScrollerOptions:n=()=>rO}=e,l=(0,c.Z)(t),i=(0,c.Z)(r),a=null,o=e=>{a||y(!1);let{shouldUseTimeDampening:t,dragStartTime:r}=a;rJ({state:e,scrollWindow:l,scrollDroppable:i,dragStartTime:r,shouldUseTimeDampening:t,getAutoScrollerOptions:n})};return{start:e=>{tu(),a&&y(!1);let t=Date.now(),r=!1,l=()=>{r=!0};rJ({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:l,scrollDroppable:l,getAutoScrollerOptions:n}),a={dragStartTime:t,shouldUseTimeDampening:r},tp(),r&&o(e)},stop:()=>{a&&(l.cancel(),i.cancel(),a=null)},scroll:o}},rK=e=>{let{move:t,scrollDroppable:r,scrollWindow:n}=e,l=(e,r)=>{t({client:R(e.current.client.selection,r)})},i=(e,t)=>{if(!rj(e,t))return t;let n=rz(e,t);if(!n)return r(e.descriptor.id,t),null;let l=P(t,n);return r(e.descriptor.id,l),P(t,l)},a=(e,t,r)=>{if(!e||!rH(t,r))return r;let l=rV(t,r);if(!l)return n(r),null;let i=P(r,l);return n(i),P(r,i)};return e=>{let t=e.scrollJumpRequest;if(!t)return;let r=e0(e.impact);r||y(!1);let n=i(e.dimensions.droppables[r],t);if(!n)return;let o=e.viewport,d=a(e.isWindowScrollAllowed,o,n);d&&l(e,d)}},r$=e=>{let{scrollDroppable:t,scrollWindow:r,move:n,getAutoScrollerOptions:l}=e,i=rX({scrollWindow:r,scrollDroppable:t,getAutoScrollerOptions:l}),a=rK({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:e=>{if(!l().disabled&&"DRAGGING"===e.phase){if("FLUID"===e.movementMode){i.scroll(e);return}e.scrollJumpRequest&&a(e)}},start:i.start,stop:i.stop}};let rQ="data-rfd",r0=(()=>{let e="".concat(rQ,"-drag-handle");return{base:e,draggableId:"".concat(e,"-draggable-id"),contextId:"".concat(e,"-context-id")}})(),r1=(()=>{let e="".concat(rQ,"-draggable");return{base:e,contextId:"".concat(e,"-context-id"),id:"".concat(e,"-id")}})(),r4=(()=>{let e="".concat(rQ,"-droppable");return{base:e,contextId:"".concat(e,"-context-id"),id:"".concat(e,"-id")}})(),r2={contextId:"".concat(rQ,"-scroll-container-context-id")},r3=e=>t=>"[".concat(t,'="').concat(e,'"]'),r5=(e,t)=>e.map(e=>{let r=e.styles[t];return r?"".concat(e.selector," { ").concat(r," }"):""}).join(" ");var r7=e=>{let t=r3(e),r=(()=>{let e="\n cursor: -webkit-grab;\n cursor: grab;\n ";return{selector:t(r0.contextId),styles:{always:"\n -webkit-touch-callout: none;\n -webkit-tap-highlight-color: rgba(0,0,0,0);\n touch-action: manipulation;\n ",resting:e,dragging:"pointer-events: none;",dropAnimating:e}}})(),n=[(()=>{let e="\n transition: ".concat(tJ.outOfTheWay,";\n ");return{selector:t(r1.contextId),styles:{dragging:e,dropAnimating:e,userCancel:e}}})(),r,{selector:t(r4.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n cursor: grabbing;\n cursor: -webkit-grabbing;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n overflow-anchor: none;\n "}}];return{always:r5(n,"always"),resting:r5(n,"resting"),dragging:r5(n,"dragging"),dropAnimating:r5(n,"dropAnimating"),userCancel:r5(n,"userCancel")}};let r6="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,r8=()=>{let e=document.querySelector("head");return e||y(!1),e},r9=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function ne(e,t){return Array.from(e.querySelectorAll(t))}var nt=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function nr(e){return e instanceof nt(e).HTMLElement}function nn(e,t){let r="[".concat(r0.contextId,'="').concat(e,'"]'),n=ne(document,r);if(!n.length)return null;let l=n.find(e=>e.getAttribute(r0.draggableId)===t);return l&&nr(l)?l:null}function nl(){let e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach(t=>t(e))}function n(t){return e.draggables[t]||null}function l(t){return e.droppables[t]||null}return{draggable:{register:t=>{e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:(t,r)=>{let n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:t=>{let l=t.descriptor.id,i=n(l);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[l],e.droppables[t.descriptor.droppableId]&&r({type:"REMOVAL",value:t}))},getById:function(e){let t=n(e);return t||y(!1),t},findById:n,exists:e=>!!n(e),getAllByType:t=>Object.values(e.draggables).filter(e=>e.descriptor.type===t)},droppable:{register:t=>{e.droppables[t.descriptor.id]=t},unregister:t=>{let r=l(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){let t=l(e);return t||y(!1),t},findById:l,exists:e=>!!l(e),getAllByType:t=>Object.values(e.droppables).filter(e=>e.descriptor.type===t)},subscribe:function(e){return t.push(e),function(){let r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var ni=n.createContext(null),na=()=>{let e=document.body;return e||y(!1),e},no={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"};let nd=e=>"rfd-announcement-".concat(e),ns={separator:"::"};var nc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ns,r=n.useId();return(0,o.Ye)(()=>"".concat(e).concat(t.separator).concat(r),[t.separator,e,r])},nu=n.createContext(null);let np=/(\d+)\.(\d+)\.(\d+)/,ng=e=>{let t=np.exec(e);return null!=t||y(!1),{major:Number(t[1]),minor:Number(t[2]),patch:Number(t[3]),raw:e}},nf=(e,t)=>t.major>e.major||!(t.major<e.major)&&(t.minor>e.minor||!(t.minor<e.minor)&&t.patch>=e.patch);var nm=(e,t)=>{if(nf(ng(e),ng(t)))return},nb=e=>{let t=e.doctype;t&&(t.name.toLowerCase(),t.publicId)};function nh(e,t){}function nI(e){let t=(0,n.useRef)(e);return(0,n.useEffect)(()=>{t.current=e}),t}function ny(e){return"IDLE"!==e.phase&&"DROP_ANIMATING"!==e.phase&&e.isDragging}let nv={13:!0,9:!0};var nx=e=>{nv[e.keyCode]&&e.preventDefault()};let nD=(()=>{let e="visibilitychange";return"undefined"==typeof document?e:[e,"ms".concat(e),"webkit".concat(e),"moz".concat(e),"o".concat(e)].find(e=>"on".concat(e) in document)||e})(),nE={type:"IDLE"};function nA(){}let nN={34:!0,33:!0,36:!0,35:!0},nC={type:"IDLE"},nR=["input","button","textarea","select","option","optgroup","video","audio"];var nP=e=>(0,d.Dz)(e.getBoundingClientRect()).center;let nw=(()=>{let e="matches";return"undefined"==typeof document?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(e=>e in Element.prototype)||e})();function nO(e){e.preventDefault()}function nS(e){let{expected:t,phase:r,isLockActive:n,shouldWarn:l}=e;return!!n()&&t===r}function nB(e){let{lockAPI:t,store:r,registry:n,draggableId:l}=e;if(t.isClaimed())return!1;let i=n.draggable.findById(l);return!!(i&&i.options.isEnabled&&rN(r.getState(),l))}let nG=[function(e){let t=(0,n.useRef)(nE),r=(0,n.useRef)(b),l=(0,o.Ye)(()=>({eventName:"mousedown",fn:function(t){if(t.defaultPrevented||0!==t.button||t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)return;let n=e.findClosestDraggableId(t);if(!n)return;let l=e.tryGetLock(n,d,{sourceEvent:t});if(!l)return;t.preventDefault();let i={x:t.clientX,y:t.clientY};r.current(),u(l,i)}}),[e]),i=(0,o.Ye)(()=>({eventName:"webkitmouseforcewillbegin",fn:t=>{if(t.defaultPrevented)return;let r=e.findClosestDraggableId(t);if(!r)return;let n=e.findOptionsForDraggable(r);n&&!n.shouldRespectForcePress&&e.canGetLock(r)&&t.preventDefault()}}),[e]),a=(0,o.I4)(function(){r.current=h(window,[i,l],{passive:!1,capture:!0})},[i,l]),d=(0,o.I4)(()=>{"IDLE"!==t.current.type&&(t.current=nE,r.current(),a())},[a]),s=(0,o.I4)(()=>{let e=t.current;d(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[d]),c=(0,o.I4)(function(){let e=function(e){let{cancel:t,completed:r,getPhase:n,setPhase:l}=e;return[{eventName:"mousemove",fn:e=>{var t;let{button:r,clientX:i,clientY:a}=e;if(0!==r)return;let o={x:i,y:a},d=n();if("DRAGGING"===d.type){e.preventDefault(),d.actions.move(o);return}"PENDING"!==d.type&&y(!1),t=d.point,(Math.abs(o.x-t.x)>=5||Math.abs(o.y-t.y)>=5)&&(e.preventDefault(),l({type:"DRAGGING",actions:d.actions.fluidLift(o)}))}},{eventName:"mouseup",fn:e=>{let l=n();if("DRAGGING"!==l.type){t();return}e.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"mousedown",fn:e=>{"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:e=>{if("PENDING"===n().type){t();return}if(27===e.keyCode){e.preventDefault(),t();return}nx(e)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:e=>{let r=n();if("IDLE"!==r.type||y(!1),r.actions.shouldRespectForcePress()){t();return}e.preventDefault()}},{eventName:nD,fn:t}]}({cancel:s,completed:d,getPhase:()=>t.current,setPhase:e=>{t.current=e}});r.current=h(window,e,{capture:!0,passive:!1})},[s,d]),u=(0,o.I4)(function(e,r){"IDLE"!==t.current.type&&y(!1),t.current={type:"PENDING",point:r,actions:e},c()},[c]);r6(function(){return a(),function(){r.current()}},[a])},function(e){let t=(0,n.useRef)(nA),r=(0,o.Ye)(()=>({eventName:"keydown",fn:function(r){if(r.defaultPrevented||32!==r.keyCode)return;let n=e.findClosestDraggableId(r);if(!n)return;let i=e.tryGetLock(n,d,{sourceEvent:r});if(!i)return;r.preventDefault();let a=!0,o=i.snapLift();function d(){a||y(!1),a=!1,t.current(),l()}t.current(),t.current=h(window,function(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:n=>{if(27===n.keyCode){n.preventDefault(),r();return}if(32===n.keyCode){n.preventDefault(),t(),e.drop();return}if(40===n.keyCode){n.preventDefault(),e.moveDown();return}if(38===n.keyCode){n.preventDefault(),e.moveUp();return}if(39===n.keyCode){n.preventDefault(),e.moveRight();return}if(37===n.keyCode){n.preventDefault(),e.moveLeft();return}if(nN[n.keyCode]){n.preventDefault();return}nx(n)}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:nD,fn:r}]}(o,d),{capture:!0,passive:!1})}}),[e]),l=(0,o.I4)(function(){t.current=h(window,[r],{passive:!1,capture:!0})},[r]);r6(function(){return l(),function(){t.current()}},[l])},function(e){let t=(0,n.useRef)(nC),r=(0,n.useRef)(b),l=(0,o.I4)(function(){return t.current},[]),i=(0,o.I4)(function(e){t.current=e},[]),a=(0,o.Ye)(()=>({eventName:"touchstart",fn:function(t){if(t.defaultPrevented)return;let n=e.findClosestDraggableId(t);if(!n)return;let l=e.tryGetLock(n,s,{sourceEvent:t});if(!l)return;let{clientX:i,clientY:a}=t.touches[0];r.current(),g(l,{x:i,y:a})}}),[e]),d=(0,o.I4)(function(){r.current=h(window,[a],{capture:!0,passive:!1})},[a]),s=(0,o.I4)(()=>{let e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(nC),r.current(),d())},[d,i]),c=(0,o.I4)(()=>{let e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()},[s]),u=(0,o.I4)(function(){let e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:l},n=h(window,function(e){let{cancel:t,completed:r,getPhase:n}=e;return[{eventName:"touchmove",options:{capture:!1},fn:e=>{let r=n();if("DRAGGING"!==r.type){t();return}r.hasMoved=!0;let{clientX:l,clientY:i}=e.touches[0];e.preventDefault(),r.actions.move({x:l,y:i})}},{eventName:"touchend",fn:e=>{let l=n();if("DRAGGING"!==l.type){t();return}e.preventDefault(),l.actions.drop({shouldBlockNextClick:!0}),r()}},{eventName:"touchcancel",fn:e=>{if("DRAGGING"!==n().type){t();return}e.preventDefault(),t()}},{eventName:"touchforcechange",fn:e=>{let r=n();"IDLE"!==r.type||y(!1);let l=e.touches[0];if(!l||!(l.force>=.15))return;let i=r.actions.shouldRespectForcePress();if("PENDING"===r.type){i&&t();return}if(i){if(r.hasMoved){e.preventDefault();return}t();return}e.preventDefault()}},{eventName:nD,fn:t}]}(t),e),i=h(window,function(e){let{cancel:t,getPhase:r}=e;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:e=>{e.preventDefault()}},{eventName:"keydown",fn:e=>{if("DRAGGING"!==r().type){t();return}27===e.keyCode&&e.preventDefault(),t()}},{eventName:nD,fn:t}]}(t),e);r.current=function(){n(),i()}},[c,l,s]),p=(0,o.I4)(function(){let e=l();"PENDING"!==e.type&&y(!1),i({type:"DRAGGING",actions:e.actions.fluidLift(e.point),hasMoved:!1})},[l,i]),g=(0,o.I4)(function(e,t){"IDLE"!==l().type&&y(!1),i({type:"PENDING",point:t,actions:e,longPressTimerId:setTimeout(p,120)}),u()},[u,l,i,p]);r6(function(){return d(),function(){r.current();let e=l();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(nC))}},[l,d,i]),r6(function(){return h(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}],nL=e=>({onBeforeCapture:t=>{let r=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};n.version.startsWith("16")||n.version.startsWith("17")?r():(0,l.flushSync)(r)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),nT=e=>({...rO,...e.autoScrollerOptions,durationDampening:{...rO.durationDampening,...e.autoScrollerOptions}});function n_(e){return e.current||y(!1),e.current}function nM(e){let{contextId:t,setCallbacks:r,sensors:l,nonce:d,dragHandleUsageInstructions:p}=e,g=(0,n.useRef)(null),f=nI(e),m=(0,o.I4)(()=>nL(f.current),[f]),I=(0,o.I4)(()=>nT(f.current),[f]),v=function(e){let t=(0,o.Ye)(()=>nd(e),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)(function(){let e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,u.Z)(e.style,no),na().appendChild(e),function(){setTimeout(function(){let t=na();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)})}},[t]),(0,o.I4)(e=>{let t=r.current;if(t){t.textContent=e;return}},[])}(t),x=function(e){let{contextId:t,text:r}=e,l=nc("hidden-text",{separator:"-"}),i=(0,o.Ye)(()=>(function(e){let{contextId:t,uniqueId:r}=e;return"rfd-hidden-text-".concat(t,"-").concat(r)})({contextId:t,uniqueId:l}),[l,t]);return(0,n.useEffect)(function(){let e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",na().appendChild(e),function(){let t=na();t.contains(e)&&t.removeChild(e)}},[i,r]),i}({contextId:t,text:p}),D=function(e,t){let r=(0,o.Ye)(()=>r7(e),[e]),l=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,o.I4)((0,s.Z)(e=>{let t=i.current;t||y(!1),t.textContent=e}),[]),d=(0,o.I4)(e=>{let t=l.current;t||y(!1),t.textContent=e},[]);r6(()=>{(l.current||i.current)&&y(!1);let n=r9(t),o=r9(t);return l.current=n,i.current=o,n.setAttribute("".concat(rQ,"-always"),e),o.setAttribute("".concat(rQ,"-dynamic"),e),r8().appendChild(n),r8().appendChild(o),d(r.always),a(r.resting),()=>{let e=e=>{let t=e.current;t||y(!1),r8().removeChild(t),e.current=null};e(l),e(i)}},[t,d,a,r.always,r.resting,e]);let c=(0,o.I4)(()=>a(r.dragging),[a,r.dragging]),u=(0,o.I4)(e=>{if("DROP"===e){a(r.dropAnimating);return}a(r.userCancel)},[a,r.dropAnimating,r.userCancel]),p=(0,o.I4)(()=>{i.current&&a(r.resting)},[a,r.resting]);return(0,o.Ye)(()=>({dragging:c,dropping:u,resting:p}),[c,u,p])}(t,d),E=(0,o.I4)(e=>{n_(g).dispatch(e)},[]),A=(0,o.Ye)(()=>(0,i.DE)({publishWhileDragging:tC,updateDroppableScroll:tP,updateDroppableIsEnabled:tw,updateDroppableIsCombineEnabled:tO,collectionStarting:tR},E),[E]),N=function(){let e=(0,o.Ye)(nl,[]);return(0,n.useEffect)(()=>function(){n.version.startsWith("16")||n.version.startsWith("17")?requestAnimationFrame(e.clean):e.clean()},[e]),e}(),C=(0,o.Ye)(()=>rA(N,A),[N,A]),R=(0,o.Ye)(()=>r$({scrollWindow:rC,scrollDroppable:C.scrollDroppable,getAutoScrollerOptions:I,...(0,i.DE)({move:tS},E)}),[C.scrollDroppable,E,I]),P=function(e){let t=(0,n.useRef)({}),r=(0,n.useRef)(null),l=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=(0,o.I4)(function(e,r){let n={id:e,focus:r};return t.current[e]=n,function(){let r=t.current;r[e]!==n&&delete r[e]}},[]),d=(0,o.I4)(function(t){let r=nn(e,t);r&&r!==document.activeElement&&r.focus()},[e]),s=(0,o.I4)(function(e,t){r.current===e&&(r.current=t)},[]),c=(0,o.I4)(function(){!l.current&&i.current&&(l.current=requestAnimationFrame(()=>{l.current=null;let e=r.current;e&&d(e)}))},[d]),u=(0,o.I4)(function(e){r.current=null;let t=document.activeElement;t&&t.getAttribute(r0.draggableId)===e&&(r.current=e)},[]);return r6(()=>(i.current=!0,function(){i.current=!1;let e=l.current;e&&cancelAnimationFrame(e)}),[]),(0,o.Ye)(()=>({register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s}),[a,u,c,s])}(t),w=(0,o.Ye)(()=>rb({announce:v,autoScroller:R,dimensionMarshal:C,focusMarshal:P,getResponders:m,styleMarshal:D}),[v,R,C,P,m,D]);g.current=w;let O=(0,o.I4)(()=>{let e=n_(g);"IDLE"!==e.getState().phase&&e.dispatch(tM())},[]),S=(0,o.I4)(()=>{let e=n_(g).getState();return"DROP_ANIMATING"===e.phase||"IDLE"!==e.phase&&e.isDragging},[]);r((0,o.Ye)(()=>({isDragging:S,tryAbort:O}),[S,O]));let B=(0,o.I4)(e=>rN(n_(g).getState(),e),[]),G=(0,o.I4)(()=>e2(n_(g).getState()),[]),L=(0,o.Ye)(()=>({marshal:C,focus:P,contextId:t,canLift:B,isMovementAllowed:G,dragHandleUsageInstructionsId:x,registry:N}),[t,C,x,P,B,G,N]);return!function(e){let{contextId:t,store:r,registry:l,customSensors:i,enableDefaultSensors:a}=e,d=[...a?nG:[],...i||[]],s=(0,n.useState)(()=>(function(){let e=null;function t(){e||y(!1),e=null}return{isClaimed:function(){return!!e},isActive:function(t){return t===e},claim:function(t){e&&y(!1);let r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}})())[0],u=(0,o.I4)(function(e,t){ny(e)&&!ny(t)&&s.tryAbandon()},[s]);r6(function(){let e=r.getState();return r.subscribe(()=>{let t=r.getState();u(e,t),e=t})},[s,r,u]),r6(()=>s.tryAbandon,[s.tryAbandon]);let p=(0,o.I4)(e=>nB({lockAPI:s,registry:l,store:r,draggableId:e}),[s,l,r]),g=(0,o.I4)((e,n,i)=>(function(e){let{lockAPI:t,contextId:r,store:n,registry:l,draggableId:i,forceSensorStop:a,sourceEvent:o}=e;if(!nB({lockAPI:t,store:n,registry:l,draggableId:i}))return null;let d=l.draggable.getById(i),s=function(e,t){let r="[".concat(r1.contextId,'="').concat(e,'"]'),n=ne(document,r).find(e=>e.getAttribute(r1.id)===t);return n&&nr(n)?n:null}(r,d.descriptor.id);if(!s||o&&!d.options.canDragInteractiveElements&&function(e,t){let r=t.target;return!!nr(r)&&function e(t,r){if(null==r)return!1;if(nR.includes(r.tagName.toLowerCase()))return!0;let n=r.getAttribute("contenteditable");return"true"===n||""===n||r!==t&&e(t,r.parentElement)}(e,r)}(s,o))return null;let u=t.claim(a||b),p="PRE_DRAG";function g(){return d.options.shouldRespectForcePress}function f(){return t.isActive(u)}let m=(function(e,t){nS({expected:e,phase:p,isLockActive:f,shouldWarn:!0})&&n.dispatch(t())}).bind(null,"DRAGGING");function I(e){function r(){t.release(),p="COMPLETED"}function l(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shouldBlockNextClick:!1};e.cleanup(),l.shouldBlockNextClick&&setTimeout(h(window,[{eventName:"click",fn:nO,options:{once:!0,passive:!1,capture:!0}}])),r(),n.dispatch(tW({reason:t}))}return"PRE_DRAG"!==p&&(r(),y(!1)),n.dispatch(tA(e.liftActionArgs)),p="DRAGGING",{isActive:()=>nS({expected:"DRAGGING",phase:p,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:g,drop:e=>l("DROP",e),cancel:e=>l("CANCEL",e),...e.actions}}return{isActive:()=>nS({expected:"PRE_DRAG",phase:p,isLockActive:f,shouldWarn:!1}),shouldRespectForcePress:g,fluidLift:function(e){let t=(0,c.Z)(e=>{m(()=>tS({client:e}))});return{...I({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:()=>t.cancel(),actions:{move:t}}),move:t}},snapLift:function(){return I({liftActionArgs:{id:i,clientSelection:nP(s),movementMode:"SNAP"},cleanup:b,actions:{moveUp:()=>m(tG),moveRight:()=>m(tT),moveDown:()=>m(tL),moveLeft:()=>m(t_)}})},abort:function(){nS({expected:"PRE_DRAG",phase:p,isLockActive:f,shouldWarn:!0})&&t.release()}}})({lockAPI:s,registry:l,contextId:t,store:r,draggableId:e,forceSensorStop:n||null,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null}),[t,s,l,r]),f=(0,o.I4)(e=>(function(e,t){let r=function(e,t){let r=t.target;if(!(r instanceof nt(r).Element))return null;let n="[".concat(r0.contextId,'="').concat(e,'"]'),l=r.closest?r.closest(n):function e(t,r){return null==t?null:t[nw](r)?t:e(t.parentElement,r)}(r,n);return l&&nr(l)?l:null}(e,t);return r?r.getAttribute(r0.draggableId):null})(t,e),[t]),m=(0,o.I4)(e=>{let t=l.draggable.findById(e);return t?t.options:null},[l.draggable]),I=(0,o.I4)(function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(tM()))},[s,r]),v=(0,o.I4)(()=>s.isClaimed(),[s]),x=(0,o.Ye)(()=>({canGetLock:p,tryGetLock:g,findClosestDraggableId:f,findOptionsForDraggable:m,tryReleaseLock:I,isLockClaimed:v}),[p,g,f,m,I,v]);for(let e=0;e<d.length;e++)d[e](x)}({contextId:t,store:w,registry:N,customSensors:l||null,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)(()=>O,[O]),n.createElement(nu.Provider,{value:L},n.createElement(a.zt,{context:ni,store:w},e.children))}function nF(e){let t=n.useId(),r=e.dragHandleUsageInstructions||N.dragHandleUsageInstructions;return n.createElement(v,null,l=>n.createElement(nM,{nonce:e.nonce,contextId:t,setCallbacks:l,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}let nk={dragging:5e3,dropAnimating:4500},nW=(e,t)=>t?tJ.drop(t.duration):e?tJ.snap:tJ.fluid,nU=(e,t)=>{if(e)return t?tz.opacity.drop:tz.opacity.combining},nY=e=>null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode;var nH=n.createContext(null);function nV(e){e&&nr(e)||y(!1)}function nj(e){let t=(0,n.useContext)(e);return t||y(!1),t}function nz(e){e.preventDefault()}var nq=(e,t)=>e===t,nZ=e=>{let{combine:t,destination:r}=e;return r?r.droppableId:t?t.droppableId:null};let nJ=e=>e.combine?e.combine.draggableId:null,nX=e=>e.at&&"COMBINE"===e.at.type?e.at.combine.draggableId:null;function nK(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}let n$={mapped:{type:"SECONDARY",offset:C,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:nK(null)}},nQ=(0,a.$j)(()=>{let e=function(){let e=(0,s.Z)((e,t)=>({x:e,y:t})),t=(0,s.Z)(function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;return{isDragging:!0,isClone:t,isDropAnimating:!!l,dropAnimation:l,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}}),r=(0,s.Z)(function(e,r,n,l){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:o,snapshot:t(r,l,i,a,null)}}});return(n,l)=>{if(ny(n)){if(n.critical.draggable.id!==l.draggableId)return null;let t=n.current.client.offset,i=n.dimensions.draggables[l.draggableId],a=e0(n.impact),o=nX(n.impact),d=n.forceShouldAnimate;return r(e(t.x,t.y),n.movementMode,i,l.isClone,a,o,d)}if("DROP_ANIMATING"===n.phase){let e=n.completed;if(e.result.draggableId!==l.draggableId)return null;let r=l.isClone,i=n.dimensions.draggables[l.draggableId],a=e.result,o=a.mode,d=nZ(a),s=nJ(a),c={duration:n.dropDuration,curve:tj.drop,moveTo:n.newHomeClientOffset,opacity:s?tz.opacity.drop:null,scale:s?tz.scale.drop:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:i,dropping:c,draggingOver:d,combineWith:s,mode:o,forceShouldAnimate:null,snapshot:t(o,r,d,s,c)}}}return null}}(),t=function(){let e=(0,s.Z)((e,t)=>({x:e,y:t})),t=(0,s.Z)(nK),r=(0,s.Z)(function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;return{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}}),n=e=>e?r(C,e,!0):null,l=(t,l,i,a)=>{let o=i.displaced.visible[t],d=!!(a.inVirtualList&&a.effected[t]),s=J(i),c=s&&s.draggableId===t?l:null;if(!o){if(!d)return n(c);if(i.displaced.invisible[t])return null;let l=O(a.displacedBy.point);return r(e(l.x,l.y),c,!0)}if(d)return n(c);let u=i.displacedBy.point;return r(e(u.x,u.y),c,o.shouldAnimate)};return(e,t)=>{if(ny(e))return e.critical.draggable.id===t.draggableId?null:l(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){let r=e.completed;return r.result.draggableId===t.draggableId?null:l(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return(r,n)=>e(r,n)||t(r,n)||n$},{dropAnimationFinished:tY},null,{context:ni,areStatePropsEqual:nq})(e=>{let t=(0,n.useRef)(null),r=(0,o.I4)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;t.current=e},[]),i=(0,o.I4)(()=>t.current,[]),{contextId:a,dragHandleUsageInstructionsId:s,registry:c}=nj(nu),{type:u,droppableId:p}=nj(nH),g=(0,o.Ye)(()=>({id:e.draggableId,index:e.index,type:u,droppableId:p}),[e.draggableId,e.index,u,p]),{children:f,draggableId:m,isEnabled:b,shouldRespectForcePress:h,canDragInteractiveElements:I,isClone:v,mapped:x,dropAnimationFinished:D}=e;()=>{let t=e.draggableId;t||y(!1),"string"!=typeof t&&y(!1),Number.isInteger(e.index)||y(!1),"DRAGGING"!==e.mapped.type&&(nV(i()),e.isEnabled&&(nn(a,t)||y(!1)))},v||function(e){let t=nc("draggable"),{descriptor:r,registry:l,getDraggableRef:i,canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:c}=e,u=(0,o.Ye)(()=>({canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:c}),[a,c,s]),p=(0,o.I4)(e=>{let t=i();return t||y(!1),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:C,n=window.getComputedStyle(t),l=t.getBoundingClientRect(),i=(0,d.Oq)(l,n),a=(0,d.oc)(i,r);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)},[r,i]),g=(0,o.Ye)(()=>({uniqueId:t,descriptor:r,options:u,getDimension:p}),[r,p,u,t]),f=(0,n.useRef)(g),m=(0,n.useRef)(!0);r6(()=>(l.draggable.register(f.current),()=>l.draggable.unregister(f.current)),[l.draggable]),r6(()=>{if(m.current){m.current=!1;return}let e=f.current;f.current=g,l.draggable.update(g,e)},[g,l.draggable])}((0,o.Ye)(()=>({descriptor:g,registry:c,getDraggableRef:i,canDragInteractiveElements:I,shouldRespectForcePress:h,isEnabled:b}),[g,c,i,I,h,b]));let E=(0,o.Ye)(()=>b?{tabIndex:0,role:"button","aria-describedby":s,"data-rfd-drag-handle-draggable-id":m,"data-rfd-drag-handle-context-id":a,draggable:!1,onDragStart:nz}:null,[a,s,m,b]),A=(0,o.I4)(e=>{"DRAGGING"===x.type&&x.dropping&&"transform"===e.propertyName&&(n.version.startsWith("16")||n.version.startsWith("17")?D():(0,l.flushSync)(D))},[D,x]),N=(0,o.Ye)(()=>({innerRef:r,draggableProps:{"data-rfd-draggable-context-id":a,"data-rfd-draggable-id":m,style:"DRAGGING"===x.type?function(e){let t=e.dimension.client,{offset:r,combineWith:n,dropping:l}=e,i=!!n,a=nY(e),o=!!l,d=o?tK.drop(r,i):tK.moveTo(r);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:nW(a,l),transform:d,opacity:nU(i,o),zIndex:o?nk.dropAnimating:nk.dragging,pointerEvents:"none"}}(x):{transform:tK.moveTo(x.offset),transition:x.shouldAnimateDisplacement?void 0:"none"},onTransitionEnd:"DRAGGING"===x.type&&x.dropping?A:void 0},dragHandleProps:E}),[a,E,m,x,A,r]),R=(0,o.Ye)(()=>({draggableId:g.id,type:g.type,source:{index:g.index,droppableId:g.droppableId}}),[g.droppableId,g.id,g.index,g.type]);return n.createElement(n.Fragment,null,f(N,x.snapshot,R))});function n0(e){return nj(nH).isUsingCloneFor!==e.draggableId||e.isClone?n.createElement(nQ,e):null}function n1(e){let t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=!!e.disableInteractiveElementBlocking,l=!!e.shouldRespectForcePress;return n.createElement(n0,(0,u.Z)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:l}))}let n4=e=>t=>e===t,n2=n4("scroll"),n3=n4("auto");n4("visible");let n5=(e,t)=>t(e.overflowX)||t(e.overflowY),n7=e=>{let t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return n5(r,n2)||n5(r,n3)},n6=()=>!1,n8=e=>null==e?null:e===document.body?n6()?e:null:e===document.documentElement?null:n7(e)?e:n8(e.parentElement);var n9=e=>({x:e.scrollLeft,y:e.scrollTop});let le=e=>!!e&&("fixed"===window.getComputedStyle(e).position||le(e.parentElement));var lt=e=>({closestScrollable:n8(e),isFixedOnPage:le(e)}),lr=e=>{let{descriptor:t,isEnabled:r,isCombineEnabled:n,isFixedOnPage:l,direction:i,client:a,page:o,closest:d}=e,s=(()=>{if(!d)return null;let{scrollSize:e,client:t}=d,r=rI({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:d.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:d.shouldClipSubject,scroll:{initial:d.scroll,current:d.scroll,max:r,diff:{value:C,displacement:C}}}})(),c="vertical"===i?ei:ea,u=U({page:o,withPlaceholder:null,axis:c,frame:s});return{descriptor:t,isCombineEnabled:n,isFixedOnPage:l,axis:c,isEnabled:r,client:a,page:o,frame:s,subject:u}};let ln=(e,t)=>{let r=(0,d.iz)(e);if(!t||e!==t)return r;let n=r.paddingBox.top-t.scrollTop,l=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,a=l+t.scrollWidth,o=(0,d.jn)({top:n,right:a,bottom:i,left:l},r.border);return(0,d.dO)({borderBox:o,margin:r.margin,border:r.border,padding:r.padding})};var ll=e=>{let{ref:t,descriptor:r,env:n,windowScroll:l,direction:i,isDropDisabled:a,isCombineEnabled:o,shouldClipSubject:s}=e,c=n.closestScrollable,u=ln(t,c),p=(0,d.oc)(u,l),g=(()=>{if(!c)return null;let e=(0,d.iz)(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:(0,d.oc)(e,l),scroll:n9(c),scrollSize:t,shouldClipSubject:s}})();return lr({descriptor:r,isEnabled:!a,isCombineEnabled:o,isFixedOnPage:n.isFixedOnPage,direction:i,client:u,page:p,closest:g})};let li={passive:!1},la={passive:!0};var lo=e=>e.shouldPublishImmediately?li:la;let ld=e=>e&&e.env.closestScrollable||null;function ls(){}let lc={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},lu=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:n}=e;return t||"close"===n?lc:{height:r.client.borderBox.height,width:r.client.borderBox.width,margin:r.client.margin}},lp=e=>{let{isAnimatingOpenOnMount:t,placeholder:r,animate:n}=e,l=lu({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:l.width,height:l.height,marginTop:l.margin.top,marginRight:l.margin.right,marginBottom:l.margin.bottom,marginLeft:l.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?tJ.placeholder:null}};var lg=n.memo(e=>{let t=(0,n.useRef)(null),r=(0,o.I4)(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:l,onTransitionEnd:i,onClose:a,contextId:d}=e,[s,c]=(0,n.useState)("open"===e.animate);(0,n.useEffect)(()=>s?"open"!==l?(r(),c(!1),ls):t.current?ls:(t.current=setTimeout(()=>{t.current=null,c(!1)}),r):ls,[l,s,r]);let u=(0,o.I4)(e=>{"height"===e.propertyName&&(i(),"close"===l&&a())},[l,a,i]),p=lp({isAnimatingOpenOnMount:s,animate:e.animate,placeholder:e.placeholder});return n.createElement(e.placeholder.tagName,{style:p,"data-rfd-placeholder-context-id":d,onTransitionEnd:u,ref:e.innerRef})});function lf(e){return"boolean"==typeof e}function lm(e,t){t.forEach(t=>t(e))}let lb=[function(e){let{props:t}=e;t.droppableId||y(!1),"string"!=typeof t.droppableId&&y(!1)},function(e){let{props:t}=e;lf(t.isDropDisabled)||y(!1),lf(t.isCombineEnabled)||y(!1),lf(t.ignoreContainerClipping)||y(!1)},function(e){let{getDroppableRef:t}=e;nV(t())}],lh=[function(e){let{props:t,getPlaceholderRef:r}=e;if(!t.placeholder||r())return}],lI=[function(e){let{props:t}=e;t.renderClone||y(!1)},function(e){let{getPlaceholderRef:t}=e;t()&&y(!1)}];class ly extends n.PureComponent{static getDerivedStateFromProps(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!e.on,data:e.on,animate:"none"}}render(){if(!this.state.isVisible)return null;let e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)}constructor(...e){super(...e),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{"close"===this.state.animate&&this.setState({isVisible:!1})}}}let lv={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||y(!1),document.body}},lx=e=>{let t,r={...e};for(t in lv)void 0===e[t]&&(r={...r,[t]:lv[t]});return r},lD=(e,t)=>e===t.droppable.type,lE=(e,t)=>t.draggables[e.draggable.id];var lA=(0,a.$j)(()=>{let e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},r=(0,s.Z)(e=>({draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}})),n=(0,s.Z)((n,l,i,a,o,d)=>{let s=o.descriptor.id;if(o.descriptor.droppableId===n){let e=d?{render:d,dragging:r(o.descriptor)}:null;return{placeholder:o.placeholder,shouldAnimatePlaceholder:!1,snapshot:{isDraggingOver:i,draggingOverWith:i?s:null,draggingFromThisWith:s,isUsingPlaceholder:!0},useClone:e}}return l?a?{placeholder:o.placeholder,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:i,draggingOverWith:s,draggingFromThisWith:null,isUsingPlaceholder:!0},useClone:null}:e:t});return(r,l)=>{let i=lx(l),a=i.droppableId,o=i.type,d=!i.isDropDisabled,s=i.renderClone;if(ny(r)){let e=r.critical;if(!lD(o,e))return t;let l=lE(e,r.dimensions),i=e0(r.impact)===a;return n(a,d,i,i,l,s)}if("DROP_ANIMATING"===r.phase){let e=r.completed;if(!lD(o,e.critical))return t;let l=lE(e.critical,r.dimensions);return n(a,d,nZ(e.result)===a,e0(e.impact)===a,l,s)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){let n=r.completed;if(!lD(o,n.critical))return t;let l=e0(n.impact)===a,i=!!(n.impact.at&&"COMBINE"===n.impact.at.type),d=n.critical.droppable.id===a;if(l)return i?e:t;if(d)return e}return t}},{updateViewportMaxScroll:e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e})},(e,t,r)=>({...lx(r),...e,...t}),{context:ni,areStatePropsEqual:nq})(e=>{var t;let r=(0,n.useContext)(nu);r||y(!1);let{contextId:i,isMovementAllowed:a}=r,d=(0,n.useRef)(null),u=(0,n.useRef)(null),{children:p,droppableId:g,type:f,mode:m,direction:b,ignoreContainerClipping:h,isDropDisabled:I,isCombineEnabled:v,snapshot:x,useClone:D,updateViewportMaxScroll:E,getContainerForClone:A}=e,N=(0,o.I4)(()=>d.current,[]),R=(0,o.I4)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;d.current=e},[]),P=(0,o.I4)(()=>u.current,[]),w=(0,o.I4)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;u.current=e},[]);t={props:e,getDroppableRef:N,getPlaceholderRef:P},()=>{lm(t,lb),"standard"===t.props.mode&&lm(t,lh),"virtual"===t.props.mode&&lm(t,lI)};let O=(0,o.I4)(()=>{a()&&E({maxScroll:rv()})},[a,E]);!function(e){let t=(0,n.useRef)(null),r=nj(nu),l=nc("droppable"),{registry:i,marshal:a}=r,d=nI(e),u=(0,o.Ye)(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),p=(0,n.useRef)(u),g=(0,o.Ye)(()=>(0,s.Z)((e,r)=>{t.current||y(!1),a.updateDroppableScroll(u.id,{x:e,y:r})}),[u.id,a]),f=(0,o.I4)(()=>{let e=t.current;return e&&e.env.closestScrollable?n9(e.env.closestScrollable):C},[]),m=(0,o.I4)(()=>{let e=f();g(e.x,e.y)},[f,g]),b=(0,o.Ye)(()=>(0,c.Z)(m),[m]),h=(0,o.I4)(()=>{let e=t.current,r=ld(e);if(e&&r||y(!1),e.scrollOptions.shouldPublishImmediately){m();return}b()},[b,m]),I=(0,o.I4)((e,n)=>{t.current&&y(!1);let l=d.current,i=l.getDroppableRef();i||y(!1);let a=lt(i),o={ref:i,descriptor:u,env:a,scrollOptions:n};t.current=o;let s=ll({ref:i,descriptor:u,env:a,windowScroll:e,direction:l.direction,isDropDisabled:l.isDropDisabled,isCombineEnabled:l.isCombineEnabled,shouldClipSubject:!l.ignoreContainerClipping}),c=a.closestScrollable;return c&&(c.setAttribute(r2.contextId,r.contextId),c.addEventListener("scroll",h,lo(o.scrollOptions))),s},[r.contextId,u,h,d]),v=(0,o.I4)(()=>{let e=t.current,r=ld(e);return e&&r||y(!1),n9(r)},[]),x=(0,o.I4)(()=>{let e=t.current;e||y(!1);let r=ld(e);t.current=null,r&&(b.cancel(),r.removeAttribute(r2.contextId),r.removeEventListener("scroll",h,lo(e.scrollOptions)))},[h,b]),D=(0,o.I4)(e=>{let r=t.current;r||y(!1);let n=ld(r);n||y(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x},[]),E=(0,o.Ye)(()=>({getDimensionAndWatchScroll:I,getScrollWhileDragging:v,dragStopped:x,scroll:D}),[x,I,v,D]),A=(0,o.Ye)(()=>({uniqueId:l,descriptor:u,callbacks:E}),[E,u,l]);r6(()=>(p.current=A.descriptor,i.droppable.register(A),()=>{t.current&&x(),i.droppable.unregister(A)}),[E,u,x,A,a,i.droppable]),r6(()=>{t.current&&a.updateDroppableIsEnabled(p.current.id,!e.isDropDisabled)},[e.isDropDisabled,a]),r6(()=>{t.current&&a.updateDroppableIsCombineEnabled(p.current.id,e.isCombineEnabled)},[e.isCombineEnabled,a])}({droppableId:g,type:f,mode:m,direction:b,isDropDisabled:I,isCombineEnabled:v,ignoreContainerClipping:h,getDroppableRef:N});let S=(0,o.Ye)(()=>n.createElement(ly,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},e=>{let{onClose:t,data:r,animate:l}=e;return n.createElement(lg,{placeholder:r,onClose:t,innerRef:w,animate:l,contextId:i,onTransitionEnd:O})}),[i,O,e.placeholder,e.shouldAnimatePlaceholder,w]),B=(0,o.Ye)(()=>({innerRef:R,placeholder:S,droppableProps:{"data-rfd-droppable-id":g,"data-rfd-droppable-context-id":i}}),[i,g,S,R]),G=D?D.dragging.draggableId:null,L=(0,o.Ye)(()=>({droppableId:g,type:f,isUsingCloneFor:G}),[g,G,f]);return n.createElement(nH.Provider,{value:L},p(B,x),function(){if(!D)return null;let{dragging:e,render:t}=D,r=n.createElement(n0,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(r,n)=>t(r,n,e));return l.createPortal(r,A())}())})}}]); |