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