PageSourceSearch

https://www.lefournwill.fr/static/js/5158.0ec95f9f.chunk.js

js lefournwill.fr collected 2026-10-06 18:28:27 UTC 48,421 bytes, 3 lines download raw bytes

1/*! For license information please see 5158.0ec95f9f.chunk.js.LICENSE.txt */
2"use strict";(self.webpackChunkDigi_Bakery=self.webpackChunkDigi_Bakery||[]).push([[5158],{3585(e,t,n){n.d(t,{Mp:()=>He,vL:()=>oe,uN:()=>ce,AN:()=>ve,fp:()=>k,y$:()=>M,Sj:()=>P,Vy:()=>E,sl:()=>W,fF:()=>Ze,PM:()=>Qe,zM:()=>et,MS:()=>y,FR:()=>w});var r=n(3986),o=n(9379),i=n(5043),a=n(7950),l=n(1024);const s={display:"none"};function c(e){let{id:t,value:n}=e;return i.createElement("div",{id:t,style:s},n)}function u(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;return i.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":r,"aria-atomic":!0},n)}const d=["transform"],f=["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"],h=(0,i.createContext)(null);const v={draggable:"\n    To pick up a draggable item, press the space bar.\n    While dragging, use the arrow keys to move the item.\n    Press space again to drop the item in its new position, or press escape to cancel.\n  "},g={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function p(e){let{announcements:t=g,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=v}=e;const{announce:s,announcement:d}=function(){const[e,t]=(0,i.useState)("");return{announce:(0,i.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),f=(0,l.YG)("DndLiveRegion"),[p,b]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{b(!0)},[]),function(e){const t=(0,i.useContext)(h);(0,i.useEffect)(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,i.useMemo)(()=>({onDragStart(e){let{active:n}=e;s(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&s(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;s(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;s(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;s(t.onDragCancel({active:n,over:r}))}}),[s,t])),!p)return null;const m=i.createElement(i.Fragment,null,i.createElement(c,{id:r,value:o.draggable}),i.createElement(u,{id:f,announcement:d}));return n?(0,a.createPortal)(m,n):m}var b;function m(){}function y(e,t){return(0,i.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,i.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(b||(b={}));const x=Object.freeze({x:0,y:0});function C(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function D(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function R(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function A(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function E(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function S(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const k=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=S(t,t.left,t.top),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=C(S(t),o);i.push({id:e,data:{droppableContainer:a,value:n}})}}return i.sort(D)},M=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=A(t),i=[];for(const a of r){const{id:e}=a,t=n.get(e);if(t){const n=A(t),r=o.reduce((e,t,r)=>e+C(n[r],t),0),l=Number((r/4).toFixed(4));i.push({id:e,data:{droppableContainer:a,value:l}})}}return i.sort(D)};function N(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const I=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const i of r){const{id:e}=i,r=n.get(e);if(r){const n=N(r,t);
2n>0&&o.push({id:e,data:{droppableContainer:i,value:n}})}}return o.sort(R)};function T(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:x}function L(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce((t,n)=>(0,o.A)((0,o.A)({},t),{},{top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),(0,o.A)({},t))}}const O=L(1);function z(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const B={ignoreTransform:!1};function P(e,t){void 0===t&&(t=B);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=(0,l.zk)(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=z(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,t,r))}const{top:r,left:o,width:i,height:a,bottom:s,right:c}=n;return{top:r,left:o,width:i,height:a,bottom:s,right:c}}function Y(e){return P(e,{ignoreTransform:!0})}function W(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,l.wz)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,l.sb)(o)||(0,l.xZ)(o))return n;if(n.includes(o))return n;const i=(0,l.zk)(e).getComputedStyle(o);return o!==e&&function(e,t){void 0===t&&(t=(0,l.zk)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const r=t[e];return"string"===typeof r&&n.test(r)})}(o,i)&&n.push(o),function(e,t){return void 0===t&&(t=(0,l.zk)(e).getComputedStyle(e)),"fixed"===t.position}(o,i)?n:r(o.parentNode)}(e):n}function j(e){const[t]=W(e,1);return null!=t?t:null}function F(e){return l.Sw&&e?(0,l.l6)(e)?e:(0,l.Ll)(e)?(0,l.wz)(e)||e===(0,l.TW)(e).scrollingElement?window:(0,l.sb)(e)?e:null:null:null}function K(e){return(0,l.l6)(e)?e.scrollX:e.scrollLeft}function U(e){return(0,l.l6)(e)?e.scrollY:e.scrollTop}function X(e){return{x:K(e),y:U(e)}}var G;function _(e){return!(!l.Sw||!e)&&e===document.scrollingElement}function q(e){const t={x:0,y:0},n=_(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(G||(G={}));const H={x:.2,y:.2};function V(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=H);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=q(e),h={x:0,y:0},v={x:0,y:0},g=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+g?(h.y=G.Backward,v.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(h.y=G.Forward,v.y=r*Math.abs((t.bottom-g-s)/g)),!f&&l>=t.right-p?(h.x=G.Forward,v.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(h.x=G.Backward,v.x=r*Math.abs((t.left+p-a)/p)),{direction:h,speed:v}}function J(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function Q(e){return e.reduce((e,t)=>(0,l.WQ)(e,X(t)),x)}function Z(e,t){if(void 0===t&&(t=P),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);j(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const $=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+K(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+U(t),0)}]];class ee{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=W(t),r=Q(n);this.rect=(0,o.A)({},e),this.width=e.width,this.height=e.height;for(const[o,i,a]of $)for(const e of i)Object.defineProperty(this,e,{get:()=>{const t=a(n),i=r[o]-t;return this.rect[e]+i},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class te{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>
2{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ne(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var re,oe;function ie(e){e.preventDefault()}function ae(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(re||(re={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(oe||(oe={}));const le={start:[oe.Space,oe.Enter],cancel:[oe.Esc],end:[oe.Space,oe.Enter,oe.Tab]},se=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case oe.Right:return(0,o.A)((0,o.A)({},n),{},{x:n.x+25});case oe.Left:return(0,o.A)((0,o.A)({},n),{},{x:n.x-25});case oe.Down:return(0,o.A)((0,o.A)({},n),{},{y:n.y+25});case oe.Up:return(0,o.A)((0,o.A)({},n),{},{y:n.y-25})}};class ce{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new te((0,l.TW)(t)),this.windowListeners=new te((0,l.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(re.Resize,this.handleCancel),this.windowListeners.add(re.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(re.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Z(n),t(x)}handleKeyDown(e){if((0,l.kx)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=le,coordinateGetter:i=se,scrollBehavior:a="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:x;this.referenceCoordinates||(this.referenceCoordinates=u);const d=i(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,l.Re)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:l,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=q(n),h=J(n),v={x:Math.min(o===oe.Right?h.right-h.width/2:h.right,Math.max(o===oe.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(o===oe.Down?h.bottom-h.height/2:h.bottom,Math.max(o===oe.Down?h.top:h.top+h.height/2,d.y))},g=o===oe.Right&&!l||o===oe.Left&&!s,p=o===oe.Down&&!c||o===oe.Up&&!i;if(g&&v.x!==d.x){const e=n.scrollLeft+t.x,i=o===oe.Right&&e<=u.x||o===oe.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=i?n.scrollLeft-e:o===oe.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(p&&v.y!==d.y){const e=n.scrollTop+t.y,i=o===oe.Down&&e<=u.y||o===oe.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=i?n.scrollTop-e:o===oe.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,(0,l.WQ)((0,l.Re)(d,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ue(e){return Boolean(e&&"distance"in e)}function de(e){return Boolean(e&&"delay"in e)}ce.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=le,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==o||o({event:e.nativeEvent}),!0)}return!1}}];class fe{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,l.zk)(e);return e instanceof t?e:(0,l.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:o}=e,{target:i}=o;this.props=e,this.events=t,this.document=(0,l.TW)(i),this.documentListeners=new te(this.document),this.listeners=new te(n),this.windowListeners=new te((0,l.zk)(i)),this.initialCoordinates=null!=(r=(0,l.e_)(o))?r:x,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(re.Resize,this.handleCancel),this.windowListeners.add(re.DragStart,ie),this.windowListeners.add(re.VisibilityChange,this.handleCancel),this.windowListeners.add(re.ContextMenu,ie),this.documentListeners.add(re.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(de(t))return this.timeoutId=setTimeout(this.handleStart,t.delay),void this.handlePending(t);if(ue(t))return void this.handlePending(t)}
2this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(re.Click,ae,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(re.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:a}}=o;if(!r)return;const s=null!=(t=(0,l.e_)(e))?t:x,c=(0,l.Re)(r,s);if(!n&&a){if(ue(a)){if(null!=a.tolerance&&ne(c,a.tolerance))return this.handleCancel();if(ne(c,a.distance))return this.handleStart()}return de(a)&&ne(c,a.tolerance)?this.handleCancel():void this.handlePending(a,c)}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){const{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===oe.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const he={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class ve extends fe{constructor(e){const{event:t}=e,n=(0,l.TW)(t.target);super(e,he,n)}}ve.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button)&&(null==r||r({event:n}),!0)}}];const ge={move:{name:"mousemove"},end:{name:"mouseup"}};var pe;!function(e){e[e.RightClick=2]="RightClick"}(pe||(pe={}));(class extends fe{constructor(e){super(e,ge,(0,l.TW)(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==pe.RightClick&&(null==r||r({event:n}),!0)}}];const be={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var me,ye;function we(e){let{acceleration:t,activator:n=me.Pointer,canScroll:r,draggingRect:o,enabled:a,interval:s=5,order:c=ye.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:v}=e;const g=function(e){let{delta:t,disabled:n}=e;const r=(0,l.ZC)(t);return(0,l.KG)(e=>{if(n||!r||!e)return xe;const o={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[G.Backward]:e.x[G.Backward]||-1===o.x,[G.Forward]:e.x[G.Forward]||1===o.x},y:{[G.Backward]:e.y[G.Backward]||-1===o.y,[G.Forward]:e.y[G.Forward]||1===o.y}}},[n,t,r])}({delta:h,disabled:!a}),[p,b]=(0,l.$$)(),m=(0,i.useRef)({x:0,y:0}),y=(0,i.useRef)({x:0,y:0}),w=(0,i.useMemo)(()=>{switch(n){case me.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case me.DraggableRect:return o}},[n,o,u]),x=(0,i.useRef)(null),C=(0,i.useCallback)(()=>{const e=x.current;if(!e)return;const t=m.current.x*y.current.x,n=m.current.y*y.current.y;e.scrollBy(t,n)},[]),D=(0,i.useMemo)(()=>c===ye.TreeOrder?[...d].reverse():d,[c,d]);(0,i.useEffect)(()=>{if(a&&d.length&&w){for(const e of D){if(!1===(null==r?void 0:r(e)))continue;const n=d.indexOf(e),o=f[n];if(!o)continue;const{direction:i,speed:a}=V(e,o,w,t,v);for(const e of["x","y"])g[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return b(),x.current=e,p(C,s),m.current=a,void(y.current=i)}m.current={x:0,y:0},y.current={x:0,y:0},b()}else b()},[t,C,r,b,a,s,JSON.stringify(w),JSON.stringify(g),p,d,D,f,JSON.stringify(v)])}(class extends fe{constructor(e){super(e,be)}static setup(){return window.addEventListener(be.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(be.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1)&&(null==r||r({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(me||(me={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
2sedTreeOrder"}(ye||(ye={}));const xe={x:{[G.Backward]:!1,[G.Forward]:!1},y:{[G.Backward]:!1,[G.Forward]:!1}};var Ce,De;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(Ce||(Ce={})),function(e){e.Optimized="optimized"}(De||(De={}));const Re=new Map;function Ae(e,t){return(0,l.KG)(n=>e?n||("function"===typeof t?t(e):e):null,[t,e])}function Ee(e){let{callback:t,disabled:n}=e;const r=(0,l._q)(t),o=(0,i.useMemo)(()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(r)},[n]);return(0,i.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}function Se(e){return new ee(P(e),e)}function ke(e,t,n){void 0===t&&(t=Se);const[r,o]=(0,i.useState)(null);function a(){o(r=>{if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}const s=function(e){let{callback:t,disabled:n}=e;const r=(0,l._q)(t),o=(0,i.useMemo)(()=>{if(n||"undefined"===typeof window||"undefined"===typeof window.MutationObserver)return;const{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,i.useEffect)(()=>()=>null==o?void 0:o.disconnect(),[o]),o}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),c=Ee({callback:a});return(0,l.Es)(()=>{a(),e?(null==c||c.observe(e),null==s||s.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==s||s.disconnect())},[e]),r}const Me=[];function Ne(e,t){void 0===t&&(t=[]);const n=(0,i.useRef)(null);return(0,i.useEffect)(()=>{n.current=null},t),(0,i.useEffect)(()=>{const t=e!==x;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?(0,l.Re)(e,n.current):x}function Ie(e){return(0,i.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const Te=[];function Le(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,l.sb)(t)?t:e}const Oe=[{sensor:ve,options:{}},{sensor:ce,options:{}}],ze={current:{}},Be={draggable:{measure:Y},droppable:{measure:Y,strategy:Ce.WhileDragging,frequency:De.Optimized},dragOverlay:{measure:P}};class Pe extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Ye={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Pe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:m},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Be,measureDroppableContainers:m,windowRect:null,measuringScheduled:!1},We={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:m,draggableNodes:new Map,over:null,measureDroppableContainers:m},je=(0,i.createContext)(We),Fe=(0,i.createContext)(Ye);function Ke(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pe}}}function Ue(e,t){switch(t.type){case b.DragStart:return(0,o.A)((0,o.A)({},e),{},{draggable:(0,o.A)((0,o.A)({},e.draggable),{},{initialCoordinates:t.initialCoordinates,active:t.active})});case b.DragMove:return null==e.draggable.active?e:(0,o.A)((0,o.A)({},e),{},{draggable:(0,o.A)((0,o.A)({},e.draggable),{},{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case b.DragEnd:case b.DragCancel:return(0,o.A)((0,o.A)({},e),{},{draggable:(0,o.A)((0,o.A)({},e.draggable),{},{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case b.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new Pe(e.droppable.containers);return i.set(r,n),(0,o.A)((0,o.A)({},e),{},{droppable:(0,o.A)((0,o.A)({},e.droppable),{},{containers:i})})}case b.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;
2const l=new Pe(e.droppable.containers);return l.set(n,(0,o.A)((0,o.A)({},a),{},{disabled:i})),(0,o.A)((0,o.A)({},e),{},{droppable:(0,o.A)((0,o.A)({},e.droppable),{},{containers:l})})}case b.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Pe(e.droppable.containers);return a.delete(n),(0,o.A)((0,o.A)({},e),{},{droppable:(0,o.A)((0,o.A)({},e.droppable),{},{containers:a})})}default:return e}}function Xe(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:o}=(0,i.useContext)(je),a=(0,l.ZC)(r),s=(0,l.ZC)(null==n?void 0:n.id);return(0,i.useEffect)(()=>{if(!t&&!r&&a&&null!=s){if(!(0,l.kx)(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=(0,l.ag)(e);if(t){t.focus();break}}})}},[r,t,o,s,a]),null}function Ge(e,t){let{transform:n}=t,i=(0,r.A)(t,d);return null!=e&&e.length?e.reduce((e,t)=>t((0,o.A)({transform:e},i)),n):n}const _e=(0,i.createContext)((0,o.A)((0,o.A)({},x),{},{scaleX:1,scaleY:1}));var qe;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(qe||(qe={}));const He=(0,i.memo)(function(e){var t,n,s,c;let{id:u,accessibility:d,autoScroll:v=!0,children:g,sensors:m=Oe,collisionDetection:y=I,measuring:w,modifiers:C}=e,D=(0,r.A)(e,f);const R=(0,i.useReducer)(Ue,void 0,Ke),[A,S]=R,[k,M]=function(){const[e]=(0,i.useState)(()=>new Set),t=(0,i.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,i.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)})},[e]),t]}(),[N,L]=(0,i.useState)(qe.Uninitialized),z=N===qe.Initialized,{draggable:{active:B,nodes:Y,translate:K},droppable:{containers:U}}=A,G=null!=B?Y.get(B):null,q=(0,i.useRef)({initial:null,translated:null}),H=(0,i.useMemo)(()=>{var e;return null!=B?{id:B,data:null!=(e=null==G?void 0:G.data)?e:ze,rect:q}:null},[B,G]),V=(0,i.useRef)(null),[J,Z]=(0,i.useState)(null),[$,te]=(0,i.useState)(null),ne=(0,l.YN)(D,Object.values(D)),re=(0,l.YG)("DndDescribedBy",u),oe=(0,i.useMemo)(()=>U.getEnabled(),[U]),ie=(ae=w,(0,i.useMemo)(()=>({draggable:(0,o.A)((0,o.A)({},Be.draggable),null==ae?void 0:ae.draggable),droppable:(0,o.A)((0,o.A)({},Be.droppable),null==ae?void 0:ae.droppable),dragOverlay:(0,o.A)((0,o.A)({},Be.dragOverlay),null==ae?void 0:ae.dragOverlay)}),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:le,measureDroppableContainers:se,measuringScheduled:ce}=function(e,t){let{dragging:n,dependencies:r,config:o}=t;const[a,s]=(0,i.useState)(null),{frequency:c,measure:u,strategy:d}=o,f=(0,i.useRef)(e),h=function(){switch(d){case Ce.Always:return!1;case Ce.BeforeDragging:return n;default:return!n}}(),v=(0,l.YN)(h),g=(0,i.useCallback)(function(e){void 0===e&&(e=[]),v.current||s(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[v]),p=(0,i.useRef)(null),b=(0,l.KG)(t=>{if(h&&!n)return Re;if(!t||t===Re||f.current!==e||null!=a){const t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,r=e?new ee(u(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,h,u]);return(0,i.useEffect)(()=>{f.current=e},[e]),(0,i.useEffect)(()=>{h||g()},[n,h]),(0,i.useEffect)(()=>{a&&a.length>0&&s(null)},[JSON.stringify(a)]),(0,i.useEffect)(()=>{h||"number"!==typeof c||null!==p.current||(p.current=setTimeout(()=>{g(),p.current=null},c))},[c,h,g,...r]),{droppableRects:b,measureDroppableContainers:g,measuringScheduled:null!=a}}(oe,{dragging:z,dependencies:[K.x,K.y],config:ie.droppable}),ue=function(e,t){const n=null!=t?e.get(t):void 0,r=n?n.node.current:null;return(0,l.KG)(e=>{var n;return null==t?null:null!=(n=null!=r?r:e)?n:null},[r,t])}(Y,B),de=(0,i.useMemo)(()=>$?(0,l.e_)($):null,[$]),fe=function(){const e=!1===(null==J?void 0:J.autoScrollEnabled),t="object"===typeof v?!1===v.enabled:!1===v,n=z&&!e&&!t;if("object"===typeof v)return(0,o.A)((0,o.A)({},v),{},{enabled:n});return{enabled:n}}(),he=function(e,t){return Ae(e,t)}(ue,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e;const a=(0,i.useRef)(!1),{x:s,y:c}="boolean"===typeof o?{x:o,y:o}:o;(0,l.Es)(()=>
2{if(!s&&!c||!t)return void(a.current=!1);if(a.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const o=T(n(e),r);if(s||(o.x=0),c||(o.y=0),a.current=!0,Math.abs(o.x)>0||Math.abs(o.y)>0){const t=j(e);t&&t.scrollBy({top:o.y,left:o.x})}},[t,s,c,r,n])}({activeNode:null!=B?Y.get(B):null,config:fe.layoutShiftCompensation,initialRect:he,measure:ie.draggable.measure});const ve=ke(ue,ie.draggable.measure,he),ge=ke(ue?ue.parentElement:null),pe=(0,i.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:Y,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),be=U.getNodeFor(null==(t=pe.current.over)?void 0:t.id),me=function(e){let{measure:t}=e;const[n,r]=(0,i.useState)(null),a=Ee({callback:(0,i.useCallback)(e=>{for(const{target:n}of e)if((0,l.sb)(n)){r(e=>{const r=t(n);return e?(0,o.A)((0,o.A)({},e),{},{width:r.width,height:r.height}):r});break}},[t])}),s=(0,i.useCallback)(e=>{const n=Le(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),r(n?t(n):null)},[t,a]),[c,u]=(0,l.lk)(s);return(0,i.useMemo)(()=>({nodeRef:c,rect:n,setRef:u}),[n,c,u])}({measure:ie.dragOverlay.measure}),ye=null!=(n=me.nodeRef.current)?n:ue,xe=z?null!=(s=me.rect)?s:ve:null,De=Boolean(me.nodeRef.current&&me.rect),Se=T(Pe=De?null:ve,Ae(Pe));var Pe;const Ye=Ie(ye?(0,l.zk)(ye):null),We=function(e){const t=(0,i.useRef)(e),n=(0,l.KG)(n=>e?n&&n!==Me&&e&&t.current&&e.parentNode===t.current.parentNode?n:W(e):Me,[e]);return(0,i.useEffect)(()=>{t.current=e},[e]),n}(z?null!=be?be:ue:null),He=function(e,t){void 0===t&&(t=P);const[n]=e,r=Ie(n?(0,l.zk)(n):null),[o,a]=(0,i.useState)(Te);function s(){a(()=>e.length?e.map(e=>_(e)?r:new ee(t(e),e)):Te)}const c=Ee({callback:s});return(0,l.Es)(()=>{null==c||c.disconnect(),s(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),o}(We),Ve=Ge(C,{transform:{x:K.x-Se.x,y:K.y-Se.y,scaleX:1,scaleY:1},activatorEvent:$,active:H,activeNodeRect:ve,containerNodeRect:ge,draggingNodeRect:xe,over:pe.current.over,overlayNodeRect:me.rect,scrollableAncestors:We,scrollableAncestorRects:He,windowRect:Ye}),Je=de?(0,l.WQ)(de,K):null,Qe=function(e){const[t,n]=(0,i.useState)(null),r=(0,i.useRef)(e),o=(0,i.useCallback)(e=>{const t=F(e.target);t&&n(e=>e?(e.set(t,X(t)),new Map(e)):null)},[]);return(0,i.useEffect)(()=>{const t=r.current;if(e!==t){i(t);const a=e.map(e=>{const t=F(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,X(t)]):null}).filter(e=>null!=e);n(a.length?new Map(a):null),r.current=e}return()=>{i(e),i(t)};function i(e){e.forEach(e=>{const t=F(e);null==t||t.removeEventListener("scroll",o)})}},[o,e]),(0,i.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,l.WQ)(e,t),x):Q(e):x,[e,t])}(We),Ze=Ne(Qe),$e=Ne(Qe,[ve]),et=(0,l.WQ)(Ve,Ze),tt=xe?O(xe,Ve):null,nt=H&&tt?y({active:H,collisionRect:tt,droppableRects:le,droppableContainers:oe,pointerCoordinates:Je}):null,rt=E(nt,"id"),[ot,it]=(0,i.useState)(null),at=function(e,t,n){return(0,o.A)((0,o.A)({},e),{},{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}(De?Ve:(0,l.WQ)(Ve,$e),null!=(c=null==ot?void 0:ot.rect)?c:null,ve),lt=(0,i.useRef)(null),st=(0,i.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(null==V.current)return;const o=Y.get(V.current);if(!o)return;const i=e.nativeEvent,l=new n({active:V.current,activeNode:o,event:i,options:r,context:pe,onAbort(e){if(!Y.get(e))return;const{onDragAbort:t}=ne.current,n={id:e};null==t||t(n),k({type:"onDragAbort",event:n})},onPending(e,t,n,r){if(!Y.get(e))return;const{onDragPending:o}=ne.current,i={id:e,constraint:t,initialCoordinates:n,offset:r};null==o||o(i),k({type:"onDragPending",event:i})},onStart(e){const t=V.current;if(null==t)return;const n=Y.get(t);if(!n)return;const{onDragStart:r}=ne.current,o={activatorEvent:i,active:{id:t,data:n.data,rect:q}};(0,a.unstable_batchedUpdates)(()=>{null==r||r(o),L(qe.Initializing),S({type:b.DragStart,initialCoordinates:e,active:t}),k({type:"onDragStart",event:o}),Z(lt.current),te(i)})},onMove(e){S({type:b.DragMove,coordinates:e})},onEnd:s(b.DragEnd),onCancel:s(b.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:o}=pe.current;let l=null;if(t&&o){const{cancelDrop:a}=ne.current;if(l={activatorEvent:i,active:t,collisions:n,delta:o,over:r},e===b.DragEnd&&"function"===typeof a){await Promise.resolve(a(l))&&(e=b.DragCancel)}}V.current=null,(0,a.unstable_batchedUpdates)(()=>{S({type:e}),L(qe.Uninitialized),it(null),Z(null),te(null),lt.current=null;const t=e===b.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=ne.current[t];null==e||e(l),k({type:t,event:l})}})}}lt.current=l},[Y]),ct=(0,i.useCallback)((e,t)=>(n,r)=>{const o=n.nativeEvent,i=Y.get(r);if(null!==V.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},V.current=r,st(n,t))},[Y,st]),ut=function(e,t){return(0,i.useMemo)(()=>e.reduce((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))]},[]),[e,t])}(m,ct);!function(e){(0,i.useEffect)(()=>
2{if(!l.Sw)return;const t=e.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>{let{sensor:t}=e;return t}))}(m),(0,l.Es)(()=>{ve&&N===qe.Initializing&&L(qe.Initialized)},[ve,N]),(0,i.useEffect)(()=>{const{onDragMove:e}=ne.current,{active:t,activatorEvent:n,collisions:r,over:o}=pe.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:r,delta:{x:et.x,y:et.y},over:o};(0,a.unstable_batchedUpdates)(()=>{null==e||e(i),k({type:"onDragMove",event:i})})},[et.x,et.y]),(0,i.useEffect)(()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=pe.current;if(!e||null==V.current||!t||!o)return;const{onDragOver:i}=ne.current,l=r.get(rt),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,a.unstable_batchedUpdates)(()=>{it(s),null==i||i(c),k({type:"onDragOver",event:c})})},[rt]),(0,l.Es)(()=>{pe.current={activatorEvent:$,active:H,activeNode:ue,collisionRect:tt,collisions:nt,droppableRects:le,draggableNodes:Y,draggingNode:ye,draggingNodeRect:xe,droppableContainers:U,over:ot,scrollableAncestors:We,scrollAdjustedTranslate:et},q.current={initial:xe,translated:tt}},[H,ue,nt,tt,Y,ye,xe,le,U,ot,We,et]),we((0,o.A)((0,o.A)({},fe),{},{delta:K,draggingRect:tt,pointerCoordinates:Je,scrollableAncestors:We,scrollableAncestorRects:He}));const dt=(0,i.useMemo)(()=>({active:H,activeNode:ue,activeNodeRect:ve,activatorEvent:$,collisions:nt,containerNodeRect:ge,dragOverlay:me,draggableNodes:Y,droppableContainers:U,droppableRects:le,over:ot,measureDroppableContainers:se,scrollableAncestors:We,scrollableAncestorRects:He,measuringConfiguration:ie,measuringScheduled:ce,windowRect:Ye}),[H,ue,ve,$,nt,ge,me,Y,U,le,ot,se,We,He,ie,ce,Ye]),ft=(0,i.useMemo)(()=>({activatorEvent:$,activators:ut,active:H,activeNodeRect:ve,ariaDescribedById:{draggable:re},dispatch:S,draggableNodes:Y,over:ot,measureDroppableContainers:se}),[$,ut,H,ve,S,re,Y,ot,se]);return i.createElement(h.Provider,{value:M},i.createElement(je.Provider,{value:ft},i.createElement(Fe.Provider,{value:dt},i.createElement(_e.Provider,{value:at},g)),i.createElement(Xe,{disabled:!1===(null==d?void 0:d.restoreFocus)})),i.createElement(p,(0,o.A)((0,o.A)({},d),{},{hiddenTextDescribedById:re})))}),Ve=(0,i.createContext)(null),Je="button";function Qe(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e;const a=(0,l.YG)("Draggable"),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:v}=(0,i.useContext)(je),{role:g=Je,roleDescription:p="draggable",tabIndex:b=0}=null!=o?o:{},m=(null==u?void 0:u.id)===t,y=(0,i.useContext)(m?_e:Ve),[w,x]=(0,l.lk)(),[C,D]=(0,l.lk)(),R=function(e,t){return(0,i.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e},{}),[e,t])}(s,t),A=(0,l.YN)(n);(0,l.Es)(()=>(h.set(t,{id:t,key:a,node:w,activatorNode:C,data:A}),()=>{const e=h.get(t);e&&e.key===a&&h.delete(t)}),[h,t]);return{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,i.useMemo)(()=>({role:g,tabIndex:b,"aria-disabled":r,"aria-pressed":!(!m||g!==Je)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable}),[r,g,b,m,p,f.draggable]),isDragging:m,listeners:r?void 0:R,node:w,over:v,setNodeRef:x,setActivatorNodeRef:D,transform:y}}function Ze(){return(0,i.useContext)(Fe)}const $e={timeout:25};function et(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const s=(0,l.YG)("Droppable"),{active:c,dispatch:u,over:d,measureDroppableContainers:f}=(0,i.useContext)(je),h=(0,i.useRef)({disabled:n}),v=(0,i.useRef)(!1),g=(0,i.useRef)(null),p=(0,i.useRef)(null),{disabled:m,updateMeasurementsFor:y,timeout:w}=(0,o.A)((0,o.A)({},$e),a),x=(0,l.YN)(null!=y?y:r),C=Ee({callback:(0,i.useCallback)(()=>{v.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout(()=>{f(Array.isArray(x.current)?x.current:[x.current]),p.current=null},w)):v.current=!0},[w]),disabled:m||!c}),D=(0,i.useCallback)((e,t)=>{C&&(t&&(C.unobserve(t),v.current=!1),e&&C.observe(e))},[C]),[R,A]=(0,l.lk)(D),E=(0,l.YN)(t);return(0,i.useEffect)(()=>{C&&R.current&&(C.disconnect(),v.current=!1,C.observe(R.current))},[R,C]),(0,i.useEffect)(()=>(u({type:b.RegisterDroppable,element:{id:r,key:s,disabled:n,node:R,rect:g,data:E}}),()=>u({type:b.UnregisterDroppable,key:s,id:r})),[r]),(0,i.useEffect)(()=>{n!==h.current.disabled&&(u({type:b.SetDroppableDisabled,id:r,key:s,disabled:n}),h.current.disabled=n)},[r,s,n,u]),{active:c,rect:g,isOver:(null==d?void 0:d.id)===r,node:R,over:d,setNodeRef:A}}},1648(e,t,n){n.d(t,{JR:()=>A,_G:()=>f,be:()=>l,gB:()=>g,gl:()=>C});var r=n(9379),o=n(5043),i=n(3585),a=n(1024);function l(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e},Array(e.length))}function c(e){return null!==e&&e>=0}const u=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=l(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},d={scaleX:1,scaleY:1},f=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:i,rects:a,overIndex:l}=e;const s=null!=(t=a[n])?t:o;if(!s)return null;if(i===n){const e=a[l];return e?(0,r.A)({x:0,y:n<l?e.top+e.height-(s.top+s.height):e.top-s.top},d):null}const c=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];if(!r)return 0;if(n<t)return o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0;return i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0}(a,i,n);return i>n&&i<=l?(0,r.A)({x:0,y:-s.height-c},d):i<n&&i>=l?(0,r.A)({x:0,y:s.height+c},d):(0,r.A)({x:0,y:0},d)};
2const h="Sortable",v=o.createContext({activeIndex:-1,containerId:h,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:u,disabled:{draggable:!1,droppable:!1}});function g(e){let{children:t,id:n,items:r,strategy:l=u,disabled:c=!1}=e;const{active:d,dragOverlay:f,droppableRects:g,over:p,measureDroppableContainers:b}=(0,i.fF)(),m=(0,a.YG)(h,n),y=Boolean(null!==f.rect),w=(0,o.useMemo)(()=>r.map(e=>"object"===typeof e&&"id"in e?e.id:e),[r]),x=null!=d,C=d?w.indexOf(d.id):-1,D=p?w.indexOf(p.id):-1,R=(0,o.useRef)(w),A=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(w,R.current),E=-1!==D&&-1===C||A,S=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(c);(0,a.Es)(()=>{A&&x&&b(w)},[A,w,x,b]),(0,o.useEffect)(()=>{R.current=w},[w]);const k=(0,o.useMemo)(()=>({activeIndex:C,containerId:m,disabled:S,disableTransforms:E,items:w,overIndex:D,useDragOverlay:y,sortedRects:s(w,g),strategy:l}),[C,m,S.draggable,S.droppable,E,w,D,g,y,l]);return o.createElement(v.Provider,{value:k},t)}const p=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return l(n,r,o).indexOf(t)},b=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r)&&((l===i||o!==a)&&(!!n||a!==o&&t===s))},m={duration:200,easing:"ease"},y="transform",w=a.Ks.Transition.toString({property:y,duration:0,easing:"linear"}),x={roleDescription:"sortable"};function C(e){let{animateLayoutChanges:t=b,attributes:n,disabled:l,data:s,getNewIndex:u=p,id:d,strategy:f,resizeObserverConfig:h,transition:g=m}=e;const{items:C,containerId:D,activeIndex:R,disabled:A,disableTransforms:E,sortedRects:S,overIndex:k,useDragOverlay:M,strategy:N}=(0,o.useContext)(v),I=function(e,t){var n,r;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(l,A),T=C.indexOf(d),L=(0,o.useMemo)(()=>(0,r.A)({sortable:{containerId:D,index:T,items:C}},s),[D,s,T,C]),O=(0,o.useMemo)(()=>C.slice(C.indexOf(d)),[C,d]),{rect:z,node:B,isOver:P,setNodeRef:Y}=(0,i.zM)({id:d,data:L,disabled:I.droppable,resizeObserverConfig:(0,r.A)({updateMeasurementsFor:O},h)}),{active:W,activatorEvent:j,activeNodeRect:F,attributes:K,setNodeRef:U,listeners:X,isDragging:G,over:_,setActivatorNodeRef:q,transform:H}=(0,i.PM)({id:d,data:L,attributes:(0,r.A)((0,r.A)({},x),n),disabled:I.draggable}),V=(0,a.jn)(Y,U),J=Boolean(W),Q=J&&!E&&c(R)&&c(k),Z=!M&&G,$=Z&&Q?H:null,ee=Q?null!=$?$:(null!=f?f:N)({rects:S,activeNodeRect:F,activeIndex:R,overIndex:k,index:T}):null,te=c(R)&&c(k)?u({id:d,items:C,activeIndex:R,overIndex:k}):T,ne=null==W?void 0:W.id,re=(0,o.useRef)({activeId:ne,items:C,newIndex:te,containerId:D}),oe=C!==re.current.items,ie=t({active:W,containerId:D,isDragging:G,isSorting:J,id:d,index:T,items:C,newIndex:re.current.newIndex,previousItems:re.current.items,previousContainerId:re.current.containerId,transition:g,wasDragging:null!=re.current.activeId}),ae=function(e){let{disabled:t,index:n,node:r,rect:l}=e;const[s,c]=(0,o.useState)(null),u=(0,o.useRef)(n);return(0,a.Es)(()=>{if(!t&&n!==u.current&&r.current){const e=l.current;if(e){const t=(0,i.Sj)(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&c(n)}}n!==u.current&&(u.current=n)},[t,n,r,l]),(0,o.useEffect)(()=>{s&&c(null)},[s]),s}({disabled:!ie,index:T,node:B,rect:z});return(0,o.useEffect)(()=>{J&&re.current.newIndex!==te&&(re.current.newIndex=te),D!==re.current.containerId&&(re.current.containerId=D),C!==re.current.items&&(re.current.items=C)},[J,te,D,C]),(0,o.useEffect)(()=>{if(ne===re.current.activeId)return;if(null!=ne&&null==re.current.activeId)return void(re.current.activeId=ne);const e=setTimeout(()=>{re.current.activeId=ne},50);return()=>clearTimeout(e)},[ne]),{active:W,activeIndex:R,attributes:K,data:L,rect:z,index:T,newIndex:te,items:C,isOver:P,isSorting:J,isDragging:G,listeners:X,node:B,overIndex:k,over:_,setNodeRef:V,setActivatorNodeRef:q,setDroppableNodeRef:Y,setDraggableNodeRef:U,transform:null!=ae?ae:ee,transition:function(){if(ae||oe&&re.current.newIndex===T)return w;if(Z&&!(0,a.kx)(j)||!g)return;if(J||ie)return a.Ks.Transition.toString((0,r.A)((0,r.A)({},g),{},{property:y}));return}()}}function D(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"===typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const R=[i.vL.Down,i.vL.Right,i.vL.Up,i.vL.Left],A=(e,t)=>
2{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:l,over:s,scrollableAncestors:c}}=t;if(R.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];l.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(e.code){case i.vL.Down:r.top<a.top&&t.push(n);break;case i.vL.Up:r.top>a.top&&t.push(n);break;case i.vL.Left:r.left>a.left&&t.push(n);break;case i.vL.Right:r.left<a.left&&t.push(n)}});const u=(0,i.y$)({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let d=(0,i.Vy)(u,"id");if(d===(null==s?void 0:s.id)&&u.length>1&&(d=u[1].id),null!=d){const e=l.get(n.id),t=l.get(d),s=t?o.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&s&&e&&t){const n=(0,i.sl)(u).some((e,t)=>c[t]!==e),o=E(e,t),l=function(e,t){if(!D(e)||!D(t))return!1;if(!E(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),d=n||!o?{x:0,y:0}:{x:l?r.width-s.width:0,y:l?r.height-s.height:0},f={x:s.left,y:s.top};return d.x&&d.y?f:(0,a.Re)(f,d)}}}};function E(e,t){return!(!D(e)||!D(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},1024(e,t,n){n.d(t,{$$:()=>p,Es:()=>v,KG:()=>m,Ks:()=>k,Ll:()=>s,Re:()=>A,Sw:()=>a,TW:()=>h,WQ:()=>R,YG:()=>C,YN:()=>b,ZC:()=>w,_q:()=>g,ag:()=>N,e_:()=>S,jn:()=>i,kx:()=>E,l6:()=>l,lk:()=>y,sb:()=>d,wz:()=>u,xZ:()=>f,zk:()=>c});var r=n(9379),o=n(5043);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}const a="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function l(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function s(e){return"nodeType"in e}function c(e){var t,n;return e?l(e)?e:s(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function u(e){const{Document:t}=c(e);return e instanceof t}function d(e){return!l(e)&&e instanceof c(e).HTMLElement}function f(e){return e instanceof c(e).SVGElement}function h(e){return e?l(e)?e.document:s(e)?u(e)?e:d(e)||f(e)?e.ownerDocument:document:document:document}const v=a?o.useLayoutEffect:o.useEffect;function g(e){const t=(0,o.useRef)(e);return v(()=>{t.current=e}),(0,o.useCallback)(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}function p(){const e=(0,o.useRef)(null);return[(0,o.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,o.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function b(e,t){void 0===t&&(t=[e]);const n=(0,o.useRef)(e);return v(()=>{n.current!==e&&(n.current=e)},t),n}function m(e,t){const n=(0,o.useRef)();return(0,o.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function y(e){const t=g(e),n=(0,o.useRef)(null),r=(0,o.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function w(e){const t=(0,o.useRef)();return(0,o.useEffect)(()=>{t.current=e},[e]),t.current}let x={};function C(e,t){return(0,o.useMemo)(()=>{if(t)return t;const n=null==x[e]?0:x[e]+1;return x[e]=n,e+"-"+n},[e,t])}function D(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return o.reduce((t,n)=>{const r=Object.entries(n);for(const[o,i]of r){const n=t[o];null!=n&&(t[o]=n+e*i)}return t},(0,r.A)({},t))}}const R=D(1),A=D(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=c(e.target);return t&&e instanceof t}function S(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=c(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const k=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[k.Translate.toString(e),k.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),M="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function N(e){return e.matches(M)?e:e.querySelector(M)}},4259(e,t,n){n.d(t,{A:()=>r});const r=(0,n(7784).A)("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]])}}]);
3//# sourceMappingURL=5158.0ec95f9f.chunk.js.map

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.